// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: osmformat.proto

#ifndef PROTOBUF_osmformat_2eproto__INCLUDED
#define PROTOBUF_osmformat_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2004000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_reflection.h>
// @@protoc_insertion_point(includes)

namespace PBF {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_osmformat_2eproto();
void protobuf_AssignDesc_osmformat_2eproto();
void protobuf_ShutdownFile_osmformat_2eproto();

class HeaderBlock;
class HeaderBBox;
class PrimitiveBlock;
class PrimitiveGroup;
class StringTable;
class Info;
class DenseInfo;
class ChangeSet;
class Node;
class DenseNodes;
class Way;
class Relation;

enum Relation_MemberType {
  Relation_MemberType_NODE = 0,
  Relation_MemberType_WAY = 1,
  Relation_MemberType_RELATION = 2
};
bool Relation_MemberType_IsValid(int value);
const Relation_MemberType Relation_MemberType_MemberType_MIN = Relation_MemberType_NODE;
const Relation_MemberType Relation_MemberType_MemberType_MAX = Relation_MemberType_RELATION;
const int Relation_MemberType_MemberType_ARRAYSIZE = Relation_MemberType_MemberType_MAX + 1;

const ::google::protobuf::EnumDescriptor* Relation_MemberType_descriptor();
inline const ::std::string& Relation_MemberType_Name(Relation_MemberType value) {
  return ::google::protobuf::internal::NameOfEnum(
    Relation_MemberType_descriptor(), value);
}
inline bool Relation_MemberType_Parse(
    const ::std::string& name, Relation_MemberType* value) {
  return ::google::protobuf::internal::ParseNamedEnum<Relation_MemberType>(
    Relation_MemberType_descriptor(), name, value);
}
// ===================================================================

class HeaderBlock : public ::google::protobuf::Message {
 public:
  HeaderBlock();
  virtual ~HeaderBlock();
  
  HeaderBlock(const HeaderBlock& from);
  
  inline HeaderBlock& operator=(const HeaderBlock& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const HeaderBlock& default_instance();
  
  void Swap(HeaderBlock* other);
  
  // implements Message ----------------------------------------------
  
  HeaderBlock* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const HeaderBlock& from);
  void MergeFrom(const HeaderBlock& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // optional .PBF.HeaderBBox bbox = 1;
  inline bool has_bbox() const;
  inline void clear_bbox();
  static const int kBboxFieldNumber = 1;
  inline const ::PBF::HeaderBBox& bbox() const;
  inline ::PBF::HeaderBBox* mutable_bbox();
  inline ::PBF::HeaderBBox* release_bbox();
  
  // repeated string required_features = 4;
  inline int required_features_size() const;
  inline void clear_required_features();
  static const int kRequiredFeaturesFieldNumber = 4;
  inline const ::std::string& required_features(int index) const;
  inline ::std::string* mutable_required_features(int index);
  inline void set_required_features(int index, const ::std::string& value);
  inline void set_required_features(int index, const char* value);
  inline void set_required_features(int index, const char* value, size_t size);
  inline ::std::string* add_required_features();
  inline void add_required_features(const ::std::string& value);
  inline void add_required_features(const char* value);
  inline void add_required_features(const char* value, size_t size);
  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& required_features() const;
  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_required_features();
  
  // repeated string optional_features = 5;
  inline int optional_features_size() const;
  inline void clear_optional_features();
  static const int kOptionalFeaturesFieldNumber = 5;
  inline const ::std::string& optional_features(int index) const;
  inline ::std::string* mutable_optional_features(int index);
  inline void set_optional_features(int index, const ::std::string& value);
  inline void set_optional_features(int index, const char* value);
  inline void set_optional_features(int index, const char* value, size_t size);
  inline ::std::string* add_optional_features();
  inline void add_optional_features(const ::std::string& value);
  inline void add_optional_features(const char* value);
  inline void add_optional_features(const char* value, size_t size);
  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& optional_features() const;
  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_optional_features();
  
  // optional string writingprogram = 16;
  inline bool has_writingprogram() const;
  inline void clear_writingprogram();
  static const int kWritingprogramFieldNumber = 16;
  inline const ::std::string& writingprogram() const;
  inline void set_writingprogram(const ::std::string& value);
  inline void set_writingprogram(const char* value);
  inline void set_writingprogram(const char* value, size_t size);
  inline ::std::string* mutable_writingprogram();
  inline ::std::string* release_writingprogram();
  
  // optional string source = 17;
  inline bool has_source() const;
  inline void clear_source();
  static const int kSourceFieldNumber = 17;
  inline const ::std::string& source() const;
  inline void set_source(const ::std::string& value);
  inline void set_source(const char* value);
  inline void set_source(const char* value, size_t size);
  inline ::std::string* mutable_source();
  inline ::std::string* release_source();
  
  // @@protoc_insertion_point(class_scope:PBF.HeaderBlock)
 private:
  inline void set_has_bbox();
  inline void clear_has_bbox();
  inline void set_has_writingprogram();
  inline void clear_has_writingprogram();
  inline void set_has_source();
  inline void clear_has_source();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::PBF::HeaderBBox* bbox_;
  ::google::protobuf::RepeatedPtrField< ::std::string> required_features_;
  ::google::protobuf::RepeatedPtrField< ::std::string> optional_features_;
  ::std::string* writingprogram_;
  ::std::string* source_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static HeaderBlock* default_instance_;
};
// -------------------------------------------------------------------

class HeaderBBox : public ::google::protobuf::Message {
 public:
  HeaderBBox();
  virtual ~HeaderBBox();
  
  HeaderBBox(const HeaderBBox& from);
  
  inline HeaderBBox& operator=(const HeaderBBox& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const HeaderBBox& default_instance();
  
  void Swap(HeaderBBox* other);
  
  // implements Message ----------------------------------------------
  
  HeaderBBox* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const HeaderBBox& from);
  void MergeFrom(const HeaderBBox& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // required sint64 left = 1;
  inline bool has_left() const;
  inline void clear_left();
  static const int kLeftFieldNumber = 1;
  inline ::google::protobuf::int64 left() const;
  inline void set_left(::google::protobuf::int64 value);
  
  // required sint64 right = 2;
  inline bool has_right() const;
  inline void clear_right();
  static const int kRightFieldNumber = 2;
  inline ::google::protobuf::int64 right() const;
  inline void set_right(::google::protobuf::int64 value);
  
  // required sint64 top = 3;
  inline bool has_top() const;
  inline void clear_top();
  static const int kTopFieldNumber = 3;
  inline ::google::protobuf::int64 top() const;
  inline void set_top(::google::protobuf::int64 value);
  
  // required sint64 bottom = 4;
  inline bool has_bottom() const;
  inline void clear_bottom();
  static const int kBottomFieldNumber = 4;
  inline ::google::protobuf::int64 bottom() const;
  inline void set_bottom(::google::protobuf::int64 value);
  
  // @@protoc_insertion_point(class_scope:PBF.HeaderBBox)
 private:
  inline void set_has_left();
  inline void clear_has_left();
  inline void set_has_right();
  inline void clear_has_right();
  inline void set_has_top();
  inline void clear_has_top();
  inline void set_has_bottom();
  inline void clear_has_bottom();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 left_;
  ::google::protobuf::int64 right_;
  ::google::protobuf::int64 top_;
  ::google::protobuf::int64 bottom_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static HeaderBBox* default_instance_;
};
// -------------------------------------------------------------------

class PrimitiveBlock : public ::google::protobuf::Message {
 public:
  PrimitiveBlock();
  virtual ~PrimitiveBlock();
  
  PrimitiveBlock(const PrimitiveBlock& from);
  
  inline PrimitiveBlock& operator=(const PrimitiveBlock& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const PrimitiveBlock& default_instance();
  
  void Swap(PrimitiveBlock* other);
  
  // implements Message ----------------------------------------------
  
  PrimitiveBlock* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const PrimitiveBlock& from);
  void MergeFrom(const PrimitiveBlock& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // required .PBF.StringTable stringtable = 1;
  inline bool has_stringtable() const;
  inline void clear_stringtable();
  static const int kStringtableFieldNumber = 1;
  inline const ::PBF::StringTable& stringtable() const;
  inline ::PBF::StringTable* mutable_stringtable();
  inline ::PBF::StringTable* release_stringtable();
  
  // repeated .PBF.PrimitiveGroup primitivegroup = 2;
  inline int primitivegroup_size() const;
  inline void clear_primitivegroup();
  static const int kPrimitivegroupFieldNumber = 2;
  inline const ::PBF::PrimitiveGroup& primitivegroup(int index) const;
  inline ::PBF::PrimitiveGroup* mutable_primitivegroup(int index);
  inline ::PBF::PrimitiveGroup* add_primitivegroup();
  inline const ::google::protobuf::RepeatedPtrField< ::PBF::PrimitiveGroup >&
      primitivegroup() const;
  inline ::google::protobuf::RepeatedPtrField< ::PBF::PrimitiveGroup >*
      mutable_primitivegroup();
  
  // optional int32 granularity = 17 [default = 100];
  inline bool has_granularity() const;
  inline void clear_granularity();
  static const int kGranularityFieldNumber = 17;
  inline ::google::protobuf::int32 granularity() const;
  inline void set_granularity(::google::protobuf::int32 value);
  
  // optional int64 lat_offset = 19 [default = 0];
  inline bool has_lat_offset() const;
  inline void clear_lat_offset();
  static const int kLatOffsetFieldNumber = 19;
  inline ::google::protobuf::int64 lat_offset() const;
  inline void set_lat_offset(::google::protobuf::int64 value);
  
  // optional int64 lon_offset = 20 [default = 0];
  inline bool has_lon_offset() const;
  inline void clear_lon_offset();
  static const int kLonOffsetFieldNumber = 20;
  inline ::google::protobuf::int64 lon_offset() const;
  inline void set_lon_offset(::google::protobuf::int64 value);
  
  // optional int32 date_granularity = 18 [default = 1000];
  inline bool has_date_granularity() const;
  inline void clear_date_granularity();
  static const int kDateGranularityFieldNumber = 18;
  inline ::google::protobuf::int32 date_granularity() const;
  inline void set_date_granularity(::google::protobuf::int32 value);
  
  // @@protoc_insertion_point(class_scope:PBF.PrimitiveBlock)
 private:
  inline void set_has_stringtable();
  inline void clear_has_stringtable();
  inline void set_has_granularity();
  inline void clear_has_granularity();
  inline void set_has_lat_offset();
  inline void clear_has_lat_offset();
  inline void set_has_lon_offset();
  inline void clear_has_lon_offset();
  inline void set_has_date_granularity();
  inline void clear_has_date_granularity();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::PBF::StringTable* stringtable_;
  ::google::protobuf::RepeatedPtrField< ::PBF::PrimitiveGroup > primitivegroup_;
  ::google::protobuf::int64 lat_offset_;
  ::google::protobuf::int32 granularity_;
  ::google::protobuf::int32 date_granularity_;
  ::google::protobuf::int64 lon_offset_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static PrimitiveBlock* default_instance_;
};
// -------------------------------------------------------------------

class PrimitiveGroup : public ::google::protobuf::Message {
 public:
  PrimitiveGroup();
  virtual ~PrimitiveGroup();
  
  PrimitiveGroup(const PrimitiveGroup& from);
  
  inline PrimitiveGroup& operator=(const PrimitiveGroup& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const PrimitiveGroup& default_instance();
  
  void Swap(PrimitiveGroup* other);
  
  // implements Message ----------------------------------------------
  
  PrimitiveGroup* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const PrimitiveGroup& from);
  void MergeFrom(const PrimitiveGroup& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // repeated .PBF.Node nodes = 1;
  inline int nodes_size() const;
  inline void clear_nodes();
  static const int kNodesFieldNumber = 1;
  inline const ::PBF::Node& nodes(int index) const;
  inline ::PBF::Node* mutable_nodes(int index);
  inline ::PBF::Node* add_nodes();
  inline const ::google::protobuf::RepeatedPtrField< ::PBF::Node >&
      nodes() const;
  inline ::google::protobuf::RepeatedPtrField< ::PBF::Node >*
      mutable_nodes();
  
  // optional .PBF.DenseNodes dense = 2;
  inline bool has_dense() const;
  inline void clear_dense();
  static const int kDenseFieldNumber = 2;
  inline const ::PBF::DenseNodes& dense() const;
  inline ::PBF::DenseNodes* mutable_dense();
  inline ::PBF::DenseNodes* release_dense();
  
  // repeated .PBF.Way ways = 3;
  inline int ways_size() const;
  inline void clear_ways();
  static const int kWaysFieldNumber = 3;
  inline const ::PBF::Way& ways(int index) const;
  inline ::PBF::Way* mutable_ways(int index);
  inline ::PBF::Way* add_ways();
  inline const ::google::protobuf::RepeatedPtrField< ::PBF::Way >&
      ways() const;
  inline ::google::protobuf::RepeatedPtrField< ::PBF::Way >*
      mutable_ways();
  
  // repeated .PBF.Relation relations = 4;
  inline int relations_size() const;
  inline void clear_relations();
  static const int kRelationsFieldNumber = 4;
  inline const ::PBF::Relation& relations(int index) const;
  inline ::PBF::Relation* mutable_relations(int index);
  inline ::PBF::Relation* add_relations();
  inline const ::google::protobuf::RepeatedPtrField< ::PBF::Relation >&
      relations() const;
  inline ::google::protobuf::RepeatedPtrField< ::PBF::Relation >*
      mutable_relations();
  
  // repeated .PBF.ChangeSet changesets = 5;
  inline int changesets_size() const;
  inline void clear_changesets();
  static const int kChangesetsFieldNumber = 5;
  inline const ::PBF::ChangeSet& changesets(int index) const;
  inline ::PBF::ChangeSet* mutable_changesets(int index);
  inline ::PBF::ChangeSet* add_changesets();
  inline const ::google::protobuf::RepeatedPtrField< ::PBF::ChangeSet >&
      changesets() const;
  inline ::google::protobuf::RepeatedPtrField< ::PBF::ChangeSet >*
      mutable_changesets();
  
  // @@protoc_insertion_point(class_scope:PBF.PrimitiveGroup)
 private:
  inline void set_has_dense();
  inline void clear_has_dense();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::RepeatedPtrField< ::PBF::Node > nodes_;
  ::PBF::DenseNodes* dense_;
  ::google::protobuf::RepeatedPtrField< ::PBF::Way > ways_;
  ::google::protobuf::RepeatedPtrField< ::PBF::Relation > relations_;
  ::google::protobuf::RepeatedPtrField< ::PBF::ChangeSet > changesets_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static PrimitiveGroup* default_instance_;
};
// -------------------------------------------------------------------

class StringTable : public ::google::protobuf::Message {
 public:
  StringTable();
  virtual ~StringTable();
  
  StringTable(const StringTable& from);
  
  inline StringTable& operator=(const StringTable& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const StringTable& default_instance();
  
  void Swap(StringTable* other);
  
  // implements Message ----------------------------------------------
  
  StringTable* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const StringTable& from);
  void MergeFrom(const StringTable& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // repeated bytes s = 1;
  inline int s_size() const;
  inline void clear_s();
  static const int kSFieldNumber = 1;
  inline const ::std::string& s(int index) const;
  inline ::std::string* mutable_s(int index);
  inline void set_s(int index, const ::std::string& value);
  inline void set_s(int index, const char* value);
  inline void set_s(int index, const void* value, size_t size);
  inline ::std::string* add_s();
  inline void add_s(const ::std::string& value);
  inline void add_s(const char* value);
  inline void add_s(const void* value, size_t size);
  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& s() const;
  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_s();
  
  // @@protoc_insertion_point(class_scope:PBF.StringTable)
 private:
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::RepeatedPtrField< ::std::string> s_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static StringTable* default_instance_;
};
// -------------------------------------------------------------------

class Info : public ::google::protobuf::Message {
 public:
  Info();
  virtual ~Info();
  
  Info(const Info& from);
  
  inline Info& operator=(const Info& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const Info& default_instance();
  
  void Swap(Info* other);
  
  // implements Message ----------------------------------------------
  
  Info* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Info& from);
  void MergeFrom(const Info& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // optional int32 version = 1 [default = -1];
  inline bool has_version() const;
  inline void clear_version();
  static const int kVersionFieldNumber = 1;
  inline ::google::protobuf::int32 version() const;
  inline void set_version(::google::protobuf::int32 value);
  
  // optional int64 timestamp = 2;
  inline bool has_timestamp() const;
  inline void clear_timestamp();
  static const int kTimestampFieldNumber = 2;
  inline ::google::protobuf::int64 timestamp() const;
  inline void set_timestamp(::google::protobuf::int64 value);
  
  // optional int64 changeset = 3;
  inline bool has_changeset() const;
  inline void clear_changeset();
  static const int kChangesetFieldNumber = 3;
  inline ::google::protobuf::int64 changeset() const;
  inline void set_changeset(::google::protobuf::int64 value);
  
  // optional int32 uid = 4;
  inline bool has_uid() const;
  inline void clear_uid();
  static const int kUidFieldNumber = 4;
  inline ::google::protobuf::int32 uid() const;
  inline void set_uid(::google::protobuf::int32 value);
  
  // optional int32 user_sid = 5;
  inline bool has_user_sid() const;
  inline void clear_user_sid();
  static const int kUserSidFieldNumber = 5;
  inline ::google::protobuf::int32 user_sid() const;
  inline void set_user_sid(::google::protobuf::int32 value);
  
  // @@protoc_insertion_point(class_scope:PBF.Info)
 private:
  inline void set_has_version();
  inline void clear_has_version();
  inline void set_has_timestamp();
  inline void clear_has_timestamp();
  inline void set_has_changeset();
  inline void clear_has_changeset();
  inline void set_has_uid();
  inline void clear_has_uid();
  inline void set_has_user_sid();
  inline void clear_has_user_sid();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 timestamp_;
  ::google::protobuf::int32 version_;
  ::google::protobuf::int32 uid_;
  ::google::protobuf::int64 changeset_;
  ::google::protobuf::int32 user_sid_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static Info* default_instance_;
};
// -------------------------------------------------------------------

class DenseInfo : public ::google::protobuf::Message {
 public:
  DenseInfo();
  virtual ~DenseInfo();
  
  DenseInfo(const DenseInfo& from);
  
  inline DenseInfo& operator=(const DenseInfo& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const DenseInfo& default_instance();
  
  void Swap(DenseInfo* other);
  
  // implements Message ----------------------------------------------
  
  DenseInfo* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const DenseInfo& from);
  void MergeFrom(const DenseInfo& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // repeated int32 version = 1 [packed = true];
  inline int version_size() const;
  inline void clear_version();
  static const int kVersionFieldNumber = 1;
  inline ::google::protobuf::int32 version(int index) const;
  inline void set_version(int index, ::google::protobuf::int32 value);
  inline void add_version(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      version() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_version();
  
  // repeated sint64 timestamp = 2 [packed = true];
  inline int timestamp_size() const;
  inline void clear_timestamp();
  static const int kTimestampFieldNumber = 2;
  inline ::google::protobuf::int64 timestamp(int index) const;
  inline void set_timestamp(int index, ::google::protobuf::int64 value);
  inline void add_timestamp(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      timestamp() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_timestamp();
  
  // repeated sint64 changeset = 3 [packed = true];
  inline int changeset_size() const;
  inline void clear_changeset();
  static const int kChangesetFieldNumber = 3;
  inline ::google::protobuf::int64 changeset(int index) const;
  inline void set_changeset(int index, ::google::protobuf::int64 value);
  inline void add_changeset(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      changeset() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_changeset();
  
  // repeated sint32 uid = 4 [packed = true];
  inline int uid_size() const;
  inline void clear_uid();
  static const int kUidFieldNumber = 4;
  inline ::google::protobuf::int32 uid(int index) const;
  inline void set_uid(int index, ::google::protobuf::int32 value);
  inline void add_uid(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      uid() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_uid();
  
  // repeated sint32 user_sid = 5 [packed = true];
  inline int user_sid_size() const;
  inline void clear_user_sid();
  static const int kUserSidFieldNumber = 5;
  inline ::google::protobuf::int32 user_sid(int index) const;
  inline void set_user_sid(int index, ::google::protobuf::int32 value);
  inline void add_user_sid(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      user_sid() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_user_sid();
  
  // @@protoc_insertion_point(class_scope:PBF.DenseInfo)
 private:
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > version_;
  mutable int _version_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > timestamp_;
  mutable int _timestamp_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > changeset_;
  mutable int _changeset_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > uid_;
  mutable int _uid_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > user_sid_;
  mutable int _user_sid_cached_byte_size_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static DenseInfo* default_instance_;
};
// -------------------------------------------------------------------

class ChangeSet : public ::google::protobuf::Message {
 public:
  ChangeSet();
  virtual ~ChangeSet();
  
  ChangeSet(const ChangeSet& from);
  
  inline ChangeSet& operator=(const ChangeSet& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const ChangeSet& default_instance();
  
  void Swap(ChangeSet* other);
  
  // implements Message ----------------------------------------------
  
  ChangeSet* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const ChangeSet& from);
  void MergeFrom(const ChangeSet& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // required int64 id = 1;
  inline bool has_id() const;
  inline void clear_id();
  static const int kIdFieldNumber = 1;
  inline ::google::protobuf::int64 id() const;
  inline void set_id(::google::protobuf::int64 value);
  
  // @@protoc_insertion_point(class_scope:PBF.ChangeSet)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 id_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static ChangeSet* default_instance_;
};
// -------------------------------------------------------------------

class Node : public ::google::protobuf::Message {
 public:
  Node();
  virtual ~Node();
  
  Node(const Node& from);
  
  inline Node& operator=(const Node& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const Node& default_instance();
  
  void Swap(Node* other);
  
  // implements Message ----------------------------------------------
  
  Node* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Node& from);
  void MergeFrom(const Node& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // required sint64 id = 1;
  inline bool has_id() const;
  inline void clear_id();
  static const int kIdFieldNumber = 1;
  inline ::google::protobuf::int64 id() const;
  inline void set_id(::google::protobuf::int64 value);
  
  // repeated uint32 keys = 2 [packed = true];
  inline int keys_size() const;
  inline void clear_keys();
  static const int kKeysFieldNumber = 2;
  inline ::google::protobuf::uint32 keys(int index) const;
  inline void set_keys(int index, ::google::protobuf::uint32 value);
  inline void add_keys(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      keys() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_keys();
  
  // repeated uint32 vals = 3 [packed = true];
  inline int vals_size() const;
  inline void clear_vals();
  static const int kValsFieldNumber = 3;
  inline ::google::protobuf::uint32 vals(int index) const;
  inline void set_vals(int index, ::google::protobuf::uint32 value);
  inline void add_vals(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      vals() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_vals();
  
  // optional .PBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::PBF::Info& info() const;
  inline ::PBF::Info* mutable_info();
  inline ::PBF::Info* release_info();
  
  // required sint64 lat = 8;
  inline bool has_lat() const;
  inline void clear_lat();
  static const int kLatFieldNumber = 8;
  inline ::google::protobuf::int64 lat() const;
  inline void set_lat(::google::protobuf::int64 value);
  
  // required sint64 lon = 9;
  inline bool has_lon() const;
  inline void clear_lon();
  static const int kLonFieldNumber = 9;
  inline ::google::protobuf::int64 lon() const;
  inline void set_lon(::google::protobuf::int64 value);
  
  // @@protoc_insertion_point(class_scope:PBF.Node)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  inline void set_has_info();
  inline void clear_has_info();
  inline void set_has_lat();
  inline void clear_has_lat();
  inline void set_has_lon();
  inline void clear_has_lon();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 id_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
  mutable int _keys_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
  mutable int _vals_cached_byte_size_;
  ::PBF::Info* info_;
  ::google::protobuf::int64 lat_;
  ::google::protobuf::int64 lon_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static Node* default_instance_;
};
// -------------------------------------------------------------------

class DenseNodes : public ::google::protobuf::Message {
 public:
  DenseNodes();
  virtual ~DenseNodes();
  
  DenseNodes(const DenseNodes& from);
  
  inline DenseNodes& operator=(const DenseNodes& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const DenseNodes& default_instance();
  
  void Swap(DenseNodes* other);
  
  // implements Message ----------------------------------------------
  
  DenseNodes* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const DenseNodes& from);
  void MergeFrom(const DenseNodes& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // repeated sint64 id = 1 [packed = true];
  inline int id_size() const;
  inline void clear_id();
  static const int kIdFieldNumber = 1;
  inline ::google::protobuf::int64 id(int index) const;
  inline void set_id(int index, ::google::protobuf::int64 value);
  inline void add_id(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      id() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_id();
  
  // optional .PBF.DenseInfo denseinfo = 5;
  inline bool has_denseinfo() const;
  inline void clear_denseinfo();
  static const int kDenseinfoFieldNumber = 5;
  inline const ::PBF::DenseInfo& denseinfo() const;
  inline ::PBF::DenseInfo* mutable_denseinfo();
  inline ::PBF::DenseInfo* release_denseinfo();
  
  // repeated sint64 lat = 8 [packed = true];
  inline int lat_size() const;
  inline void clear_lat();
  static const int kLatFieldNumber = 8;
  inline ::google::protobuf::int64 lat(int index) const;
  inline void set_lat(int index, ::google::protobuf::int64 value);
  inline void add_lat(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      lat() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_lat();
  
  // repeated sint64 lon = 9 [packed = true];
  inline int lon_size() const;
  inline void clear_lon();
  static const int kLonFieldNumber = 9;
  inline ::google::protobuf::int64 lon(int index) const;
  inline void set_lon(int index, ::google::protobuf::int64 value);
  inline void add_lon(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      lon() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_lon();
  
  // repeated int32 keys_vals = 10 [packed = true];
  inline int keys_vals_size() const;
  inline void clear_keys_vals();
  static const int kKeysValsFieldNumber = 10;
  inline ::google::protobuf::int32 keys_vals(int index) const;
  inline void set_keys_vals(int index, ::google::protobuf::int32 value);
  inline void add_keys_vals(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      keys_vals() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_keys_vals();
  
  // @@protoc_insertion_point(class_scope:PBF.DenseNodes)
 private:
  inline void set_has_denseinfo();
  inline void clear_has_denseinfo();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_;
  mutable int _id_cached_byte_size_;
  ::PBF::DenseInfo* denseinfo_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lat_;
  mutable int _lat_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lon_;
  mutable int _lon_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > keys_vals_;
  mutable int _keys_vals_cached_byte_size_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static DenseNodes* default_instance_;
};
// -------------------------------------------------------------------

class Way : public ::google::protobuf::Message {
 public:
  Way();
  virtual ~Way();
  
  Way(const Way& from);
  
  inline Way& operator=(const Way& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const Way& default_instance();
  
  void Swap(Way* other);
  
  // implements Message ----------------------------------------------
  
  Way* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Way& from);
  void MergeFrom(const Way& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  // accessors -------------------------------------------------------
  
  // required int64 id = 1;
  inline bool has_id() const;
  inline void clear_id();
  static const int kIdFieldNumber = 1;
  inline ::google::protobuf::int64 id() const;
  inline void set_id(::google::protobuf::int64 value);
  
  // repeated uint32 keys = 2 [packed = true];
  inline int keys_size() const;
  inline void clear_keys();
  static const int kKeysFieldNumber = 2;
  inline ::google::protobuf::uint32 keys(int index) const;
  inline void set_keys(int index, ::google::protobuf::uint32 value);
  inline void add_keys(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      keys() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_keys();
  
  // repeated uint32 vals = 3 [packed = true];
  inline int vals_size() const;
  inline void clear_vals();
  static const int kValsFieldNumber = 3;
  inline ::google::protobuf::uint32 vals(int index) const;
  inline void set_vals(int index, ::google::protobuf::uint32 value);
  inline void add_vals(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      vals() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_vals();
  
  // optional .PBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::PBF::Info& info() const;
  inline ::PBF::Info* mutable_info();
  inline ::PBF::Info* release_info();
  
  // repeated sint64 refs = 8 [packed = true];
  inline int refs_size() const;
  inline void clear_refs();
  static const int kRefsFieldNumber = 8;
  inline ::google::protobuf::int64 refs(int index) const;
  inline void set_refs(int index, ::google::protobuf::int64 value);
  inline void add_refs(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      refs() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_refs();
  
  // @@protoc_insertion_point(class_scope:PBF.Way)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  inline void set_has_info();
  inline void clear_has_info();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 id_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
  mutable int _keys_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
  mutable int _vals_cached_byte_size_;
  ::PBF::Info* info_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > refs_;
  mutable int _refs_cached_byte_size_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static Way* default_instance_;
};
// -------------------------------------------------------------------

class Relation : public ::google::protobuf::Message {
 public:
  Relation();
  virtual ~Relation();
  
  Relation(const Relation& from);
  
  inline Relation& operator=(const Relation& from) {
    CopyFrom(from);
    return *this;
  }
  
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }
  
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }
  
  static const ::google::protobuf::Descriptor* descriptor();
  static const Relation& default_instance();
  
  void Swap(Relation* other);
  
  // implements Message ----------------------------------------------
  
  Relation* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const Relation& from);
  void MergeFrom(const Relation& from);
  void Clear();
  bool IsInitialized() const;
  
  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  
  ::google::protobuf::Metadata GetMetadata() const;
  
  // nested types ----------------------------------------------------
  
  typedef Relation_MemberType MemberType;
  static const MemberType NODE = Relation_MemberType_NODE;
  static const MemberType WAY = Relation_MemberType_WAY;
  static const MemberType RELATION = Relation_MemberType_RELATION;
  static inline bool MemberType_IsValid(int value) {
    return Relation_MemberType_IsValid(value);
  }
  static const MemberType MemberType_MIN =
    Relation_MemberType_MemberType_MIN;
  static const MemberType MemberType_MAX =
    Relation_MemberType_MemberType_MAX;
  static const int MemberType_ARRAYSIZE =
    Relation_MemberType_MemberType_ARRAYSIZE;
  static inline const ::google::protobuf::EnumDescriptor*
  MemberType_descriptor() {
    return Relation_MemberType_descriptor();
  }
  static inline const ::std::string& MemberType_Name(MemberType value) {
    return Relation_MemberType_Name(value);
  }
  static inline bool MemberType_Parse(const ::std::string& name,
      MemberType* value) {
    return Relation_MemberType_Parse(name, value);
  }
  
  // accessors -------------------------------------------------------
  
  // required int64 id = 1;
  inline bool has_id() const;
  inline void clear_id();
  static const int kIdFieldNumber = 1;
  inline ::google::protobuf::int64 id() const;
  inline void set_id(::google::protobuf::int64 value);
  
  // repeated uint32 keys = 2 [packed = true];
  inline int keys_size() const;
  inline void clear_keys();
  static const int kKeysFieldNumber = 2;
  inline ::google::protobuf::uint32 keys(int index) const;
  inline void set_keys(int index, ::google::protobuf::uint32 value);
  inline void add_keys(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      keys() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_keys();
  
  // repeated uint32 vals = 3 [packed = true];
  inline int vals_size() const;
  inline void clear_vals();
  static const int kValsFieldNumber = 3;
  inline ::google::protobuf::uint32 vals(int index) const;
  inline void set_vals(int index, ::google::protobuf::uint32 value);
  inline void add_vals(::google::protobuf::uint32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
      vals() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
      mutable_vals();
  
  // optional .PBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::PBF::Info& info() const;
  inline ::PBF::Info* mutable_info();
  inline ::PBF::Info* release_info();
  
  // repeated int32 roles_sid = 8 [packed = true];
  inline int roles_sid_size() const;
  inline void clear_roles_sid();
  static const int kRolesSidFieldNumber = 8;
  inline ::google::protobuf::int32 roles_sid(int index) const;
  inline void set_roles_sid(int index, ::google::protobuf::int32 value);
  inline void add_roles_sid(::google::protobuf::int32 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
      roles_sid() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
      mutable_roles_sid();
  
  // repeated sint64 memids = 9 [packed = true];
  inline int memids_size() const;
  inline void clear_memids();
  static const int kMemidsFieldNumber = 9;
  inline ::google::protobuf::int64 memids(int index) const;
  inline void set_memids(int index, ::google::protobuf::int64 value);
  inline void add_memids(::google::protobuf::int64 value);
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
      memids() const;
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
      mutable_memids();
  
  // repeated .PBF.Relation.MemberType types = 10 [packed = true];
  inline int types_size() const;
  inline void clear_types();
  static const int kTypesFieldNumber = 10;
  inline ::PBF::Relation_MemberType types(int index) const;
  inline void set_types(int index, ::PBF::Relation_MemberType value);
  inline void add_types(::PBF::Relation_MemberType value);
  inline const ::google::protobuf::RepeatedField<int>& types() const;
  inline ::google::protobuf::RepeatedField<int>* mutable_types();
  
  // @@protoc_insertion_point(class_scope:PBF.Relation)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  inline void set_has_info();
  inline void clear_has_info();
  
  ::google::protobuf::UnknownFieldSet _unknown_fields_;
  
  ::google::protobuf::int64 id_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
  mutable int _keys_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
  mutable int _vals_cached_byte_size_;
  ::PBF::Info* info_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > roles_sid_;
  mutable int _roles_sid_cached_byte_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > memids_;
  mutable int _memids_cached_byte_size_;
  ::google::protobuf::RepeatedField<int> types_;
  mutable int _types_cached_byte_size_;
  
  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
  
  friend void  protobuf_AddDesc_osmformat_2eproto();
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();
  
  void InitAsDefaultInstance();
  static Relation* default_instance_;
};
// ===================================================================


// ===================================================================

// HeaderBlock

// optional .PBF.HeaderBBox bbox = 1;
inline bool HeaderBlock::has_bbox() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void HeaderBlock::set_has_bbox() {
  _has_bits_[0] |= 0x00000001u;
}
inline void HeaderBlock::clear_has_bbox() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void HeaderBlock::clear_bbox() {
  if (bbox_ != NULL) bbox_->::PBF::HeaderBBox::Clear();
  clear_has_bbox();
}
inline const ::PBF::HeaderBBox& HeaderBlock::bbox() const {
  return bbox_ != NULL ? *bbox_ : *default_instance_->bbox_;
}
inline ::PBF::HeaderBBox* HeaderBlock::mutable_bbox() {
  set_has_bbox();
  if (bbox_ == NULL) bbox_ = new ::PBF::HeaderBBox;
  return bbox_;
}
inline ::PBF::HeaderBBox* HeaderBlock::release_bbox() {
  clear_has_bbox();
  ::PBF::HeaderBBox* temp = bbox_;
  bbox_ = NULL;
  return temp;
}

// repeated string required_features = 4;
inline int HeaderBlock::required_features_size() const {
  return required_features_.size();
}
inline void HeaderBlock::clear_required_features() {
  required_features_.Clear();
}
inline const ::std::string& HeaderBlock::required_features(int index) const {
  return required_features_.Get(index);
}
inline ::std::string* HeaderBlock::mutable_required_features(int index) {
  return required_features_.Mutable(index);
}
inline void HeaderBlock::set_required_features(int index, const ::std::string& value) {
  required_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_required_features(int index, const char* value) {
  required_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_required_features(int index, const char* value, size_t size) {
  required_features_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
}
inline ::std::string* HeaderBlock::add_required_features() {
  return required_features_.Add();
}
inline void HeaderBlock::add_required_features(const ::std::string& value) {
  required_features_.Add()->assign(value);
}
inline void HeaderBlock::add_required_features(const char* value) {
  required_features_.Add()->assign(value);
}
inline void HeaderBlock::add_required_features(const char* value, size_t size) {
  required_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
HeaderBlock::required_features() const {
  return required_features_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
HeaderBlock::mutable_required_features() {
  return &required_features_;
}

// repeated string optional_features = 5;
inline int HeaderBlock::optional_features_size() const {
  return optional_features_.size();
}
inline void HeaderBlock::clear_optional_features() {
  optional_features_.Clear();
}
inline const ::std::string& HeaderBlock::optional_features(int index) const {
  return optional_features_.Get(index);
}
inline ::std::string* HeaderBlock::mutable_optional_features(int index) {
  return optional_features_.Mutable(index);
}
inline void HeaderBlock::set_optional_features(int index, const ::std::string& value) {
  optional_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_optional_features(int index, const char* value) {
  optional_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_optional_features(int index, const char* value, size_t size) {
  optional_features_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
}
inline ::std::string* HeaderBlock::add_optional_features() {
  return optional_features_.Add();
}
inline void HeaderBlock::add_optional_features(const ::std::string& value) {
  optional_features_.Add()->assign(value);
}
inline void HeaderBlock::add_optional_features(const char* value) {
  optional_features_.Add()->assign(value);
}
inline void HeaderBlock::add_optional_features(const char* value, size_t size) {
  optional_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
HeaderBlock::optional_features() const {
  return optional_features_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
HeaderBlock::mutable_optional_features() {
  return &optional_features_;
}

// optional string writingprogram = 16;
inline bool HeaderBlock::has_writingprogram() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void HeaderBlock::set_has_writingprogram() {
  _has_bits_[0] |= 0x00000008u;
}
inline void HeaderBlock::clear_has_writingprogram() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void HeaderBlock::clear_writingprogram() {
  if (writingprogram_ != &::google::protobuf::internal::kEmptyString) {
    writingprogram_->clear();
  }
  clear_has_writingprogram();
}
inline const ::std::string& HeaderBlock::writingprogram() const {
  return *writingprogram_;
}
inline void HeaderBlock::set_writingprogram(const ::std::string& value) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::kEmptyString) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(value);
}
inline void HeaderBlock::set_writingprogram(const char* value) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::kEmptyString) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(value);
}
inline void HeaderBlock::set_writingprogram(const char* value, size_t size) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::kEmptyString) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* HeaderBlock::mutable_writingprogram() {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::kEmptyString) {
    writingprogram_ = new ::std::string;
  }
  return writingprogram_;
}
inline ::std::string* HeaderBlock::release_writingprogram() {
  clear_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::kEmptyString) {
    return NULL;
  } else {
    ::std::string* temp = writingprogram_;
    writingprogram_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    return temp;
  }
}

// optional string source = 17;
inline bool HeaderBlock::has_source() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void HeaderBlock::set_has_source() {
  _has_bits_[0] |= 0x00000010u;
}
inline void HeaderBlock::clear_has_source() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void HeaderBlock::clear_source() {
  if (source_ != &::google::protobuf::internal::kEmptyString) {
    source_->clear();
  }
  clear_has_source();
}
inline const ::std::string& HeaderBlock::source() const {
  return *source_;
}
inline void HeaderBlock::set_source(const ::std::string& value) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::kEmptyString) {
    source_ = new ::std::string;
  }
  source_->assign(value);
}
inline void HeaderBlock::set_source(const char* value) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::kEmptyString) {
    source_ = new ::std::string;
  }
  source_->assign(value);
}
inline void HeaderBlock::set_source(const char* value, size_t size) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::kEmptyString) {
    source_ = new ::std::string;
  }
  source_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* HeaderBlock::mutable_source() {
  set_has_source();
  if (source_ == &::google::protobuf::internal::kEmptyString) {
    source_ = new ::std::string;
  }
  return source_;
}
inline ::std::string* HeaderBlock::release_source() {
  clear_has_source();
  if (source_ == &::google::protobuf::internal::kEmptyString) {
    return NULL;
  } else {
    ::std::string* temp = source_;
    source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    return temp;
  }
}

// -------------------------------------------------------------------

// HeaderBBox

// required sint64 left = 1;
inline bool HeaderBBox::has_left() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void HeaderBBox::set_has_left() {
  _has_bits_[0] |= 0x00000001u;
}
inline void HeaderBBox::clear_has_left() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void HeaderBBox::clear_left() {
  left_ = GOOGLE_LONGLONG(0);
  clear_has_left();
}
inline ::google::protobuf::int64 HeaderBBox::left() const {
  return left_;
}
inline void HeaderBBox::set_left(::google::protobuf::int64 value) {
  set_has_left();
  left_ = value;
}

// required sint64 right = 2;
inline bool HeaderBBox::has_right() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void HeaderBBox::set_has_right() {
  _has_bits_[0] |= 0x00000002u;
}
inline void HeaderBBox::clear_has_right() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void HeaderBBox::clear_right() {
  right_ = GOOGLE_LONGLONG(0);
  clear_has_right();
}
inline ::google::protobuf::int64 HeaderBBox::right() const {
  return right_;
}
inline void HeaderBBox::set_right(::google::protobuf::int64 value) {
  set_has_right();
  right_ = value;
}

// required sint64 top = 3;
inline bool HeaderBBox::has_top() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void HeaderBBox::set_has_top() {
  _has_bits_[0] |= 0x00000004u;
}
inline void HeaderBBox::clear_has_top() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void HeaderBBox::clear_top() {
  top_ = GOOGLE_LONGLONG(0);
  clear_has_top();
}
inline ::google::protobuf::int64 HeaderBBox::top() const {
  return top_;
}
inline void HeaderBBox::set_top(::google::protobuf::int64 value) {
  set_has_top();
  top_ = value;
}

// required sint64 bottom = 4;
inline bool HeaderBBox::has_bottom() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void HeaderBBox::set_has_bottom() {
  _has_bits_[0] |= 0x00000008u;
}
inline void HeaderBBox::clear_has_bottom() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void HeaderBBox::clear_bottom() {
  bottom_ = GOOGLE_LONGLONG(0);
  clear_has_bottom();
}
inline ::google::protobuf::int64 HeaderBBox::bottom() const {
  return bottom_;
}
inline void HeaderBBox::set_bottom(::google::protobuf::int64 value) {
  set_has_bottom();
  bottom_ = value;
}

// -------------------------------------------------------------------

// PrimitiveBlock

// required .PBF.StringTable stringtable = 1;
inline bool PrimitiveBlock::has_stringtable() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void PrimitiveBlock::set_has_stringtable() {
  _has_bits_[0] |= 0x00000001u;
}
inline void PrimitiveBlock::clear_has_stringtable() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void PrimitiveBlock::clear_stringtable() {
  if (stringtable_ != NULL) stringtable_->::PBF::StringTable::Clear();
  clear_has_stringtable();
}
inline const ::PBF::StringTable& PrimitiveBlock::stringtable() const {
  return stringtable_ != NULL ? *stringtable_ : *default_instance_->stringtable_;
}
inline ::PBF::StringTable* PrimitiveBlock::mutable_stringtable() {
  set_has_stringtable();
  if (stringtable_ == NULL) stringtable_ = new ::PBF::StringTable;
  return stringtable_;
}
inline ::PBF::StringTable* PrimitiveBlock::release_stringtable() {
  clear_has_stringtable();
  ::PBF::StringTable* temp = stringtable_;
  stringtable_ = NULL;
  return temp;
}

// repeated .PBF.PrimitiveGroup primitivegroup = 2;
inline int PrimitiveBlock::primitivegroup_size() const {
  return primitivegroup_.size();
}
inline void PrimitiveBlock::clear_primitivegroup() {
  primitivegroup_.Clear();
}
inline const ::PBF::PrimitiveGroup& PrimitiveBlock::primitivegroup(int index) const {
  return primitivegroup_.Get(index);
}
inline ::PBF::PrimitiveGroup* PrimitiveBlock::mutable_primitivegroup(int index) {
  return primitivegroup_.Mutable(index);
}
inline ::PBF::PrimitiveGroup* PrimitiveBlock::add_primitivegroup() {
  return primitivegroup_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::PBF::PrimitiveGroup >&
PrimitiveBlock::primitivegroup() const {
  return primitivegroup_;
}
inline ::google::protobuf::RepeatedPtrField< ::PBF::PrimitiveGroup >*
PrimitiveBlock::mutable_primitivegroup() {
  return &primitivegroup_;
}

// optional int32 granularity = 17 [default = 100];
inline bool PrimitiveBlock::has_granularity() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void PrimitiveBlock::set_has_granularity() {
  _has_bits_[0] |= 0x00000004u;
}
inline void PrimitiveBlock::clear_has_granularity() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void PrimitiveBlock::clear_granularity() {
  granularity_ = 100;
  clear_has_granularity();
}
inline ::google::protobuf::int32 PrimitiveBlock::granularity() const {
  return granularity_;
}
inline void PrimitiveBlock::set_granularity(::google::protobuf::int32 value) {
  set_has_granularity();
  granularity_ = value;
}

// optional int64 lat_offset = 19 [default = 0];
inline bool PrimitiveBlock::has_lat_offset() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void PrimitiveBlock::set_has_lat_offset() {
  _has_bits_[0] |= 0x00000008u;
}
inline void PrimitiveBlock::clear_has_lat_offset() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void PrimitiveBlock::clear_lat_offset() {
  lat_offset_ = GOOGLE_LONGLONG(0);
  clear_has_lat_offset();
}
inline ::google::protobuf::int64 PrimitiveBlock::lat_offset() const {
  return lat_offset_;
}
inline void PrimitiveBlock::set_lat_offset(::google::protobuf::int64 value) {
  set_has_lat_offset();
  lat_offset_ = value;
}

// optional int64 lon_offset = 20 [default = 0];
inline bool PrimitiveBlock::has_lon_offset() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void PrimitiveBlock::set_has_lon_offset() {
  _has_bits_[0] |= 0x00000010u;
}
inline void PrimitiveBlock::clear_has_lon_offset() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void PrimitiveBlock::clear_lon_offset() {
  lon_offset_ = GOOGLE_LONGLONG(0);
  clear_has_lon_offset();
}
inline ::google::protobuf::int64 PrimitiveBlock::lon_offset() const {
  return lon_offset_;
}
inline void PrimitiveBlock::set_lon_offset(::google::protobuf::int64 value) {
  set_has_lon_offset();
  lon_offset_ = value;
}

// optional int32 date_granularity = 18 [default = 1000];
inline bool PrimitiveBlock::has_date_granularity() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void PrimitiveBlock::set_has_date_granularity() {
  _has_bits_[0] |= 0x00000020u;
}
inline void PrimitiveBlock::clear_has_date_granularity() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void PrimitiveBlock::clear_date_granularity() {
  date_granularity_ = 1000;
  clear_has_date_granularity();
}
inline ::google::protobuf::int32 PrimitiveBlock::date_granularity() const {
  return date_granularity_;
}
inline void PrimitiveBlock::set_date_granularity(::google::protobuf::int32 value) {
  set_has_date_granularity();
  date_granularity_ = value;
}

// -------------------------------------------------------------------

// PrimitiveGroup

// repeated .PBF.Node nodes = 1;
inline int PrimitiveGroup::nodes_size() const {
  return nodes_.size();
}
inline void PrimitiveGroup::clear_nodes() {
  nodes_.Clear();
}
inline const ::PBF::Node& PrimitiveGroup::nodes(int index) const {
  return nodes_.Get(index);
}
inline ::PBF::Node* PrimitiveGroup::mutable_nodes(int index) {
  return nodes_.Mutable(index);
}
inline ::PBF::Node* PrimitiveGroup::add_nodes() {
  return nodes_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::PBF::Node >&
PrimitiveGroup::nodes() const {
  return nodes_;
}
inline ::google::protobuf::RepeatedPtrField< ::PBF::Node >*
PrimitiveGroup::mutable_nodes() {
  return &nodes_;
}

// optional .PBF.DenseNodes dense = 2;
inline bool PrimitiveGroup::has_dense() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void PrimitiveGroup::set_has_dense() {
  _has_bits_[0] |= 0x00000002u;
}
inline void PrimitiveGroup::clear_has_dense() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void PrimitiveGroup::clear_dense() {
  if (dense_ != NULL) dense_->::PBF::DenseNodes::Clear();
  clear_has_dense();
}
inline const ::PBF::DenseNodes& PrimitiveGroup::dense() const {
  return dense_ != NULL ? *dense_ : *default_instance_->dense_;
}
inline ::PBF::DenseNodes* PrimitiveGroup::mutable_dense() {
  set_has_dense();
  if (dense_ == NULL) dense_ = new ::PBF::DenseNodes;
  return dense_;
}
inline ::PBF::DenseNodes* PrimitiveGroup::release_dense() {
  clear_has_dense();
  ::PBF::DenseNodes* temp = dense_;
  dense_ = NULL;
  return temp;
}

// repeated .PBF.Way ways = 3;
inline int PrimitiveGroup::ways_size() const {
  return ways_.size();
}
inline void PrimitiveGroup::clear_ways() {
  ways_.Clear();
}
inline const ::PBF::Way& PrimitiveGroup::ways(int index) const {
  return ways_.Get(index);
}
inline ::PBF::Way* PrimitiveGroup::mutable_ways(int index) {
  return ways_.Mutable(index);
}
inline ::PBF::Way* PrimitiveGroup::add_ways() {
  return ways_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::PBF::Way >&
PrimitiveGroup::ways() const {
  return ways_;
}
inline ::google::protobuf::RepeatedPtrField< ::PBF::Way >*
PrimitiveGroup::mutable_ways() {
  return &ways_;
}

// repeated .PBF.Relation relations = 4;
inline int PrimitiveGroup::relations_size() const {
  return relations_.size();
}
inline void PrimitiveGroup::clear_relations() {
  relations_.Clear();
}
inline const ::PBF::Relation& PrimitiveGroup::relations(int index) const {
  return relations_.Get(index);
}
inline ::PBF::Relation* PrimitiveGroup::mutable_relations(int index) {
  return relations_.Mutable(index);
}
inline ::PBF::Relation* PrimitiveGroup::add_relations() {
  return relations_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::PBF::Relation >&
PrimitiveGroup::relations() const {
  return relations_;
}
inline ::google::protobuf::RepeatedPtrField< ::PBF::Relation >*
PrimitiveGroup::mutable_relations() {
  return &relations_;
}

// repeated .PBF.ChangeSet changesets = 5;
inline int PrimitiveGroup::changesets_size() const {
  return changesets_.size();
}
inline void PrimitiveGroup::clear_changesets() {
  changesets_.Clear();
}
inline const ::PBF::ChangeSet& PrimitiveGroup::changesets(int index) const {
  return changesets_.Get(index);
}
inline ::PBF::ChangeSet* PrimitiveGroup::mutable_changesets(int index) {
  return changesets_.Mutable(index);
}
inline ::PBF::ChangeSet* PrimitiveGroup::add_changesets() {
  return changesets_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::PBF::ChangeSet >&
PrimitiveGroup::changesets() const {
  return changesets_;
}
inline ::google::protobuf::RepeatedPtrField< ::PBF::ChangeSet >*
PrimitiveGroup::mutable_changesets() {
  return &changesets_;
}

// -------------------------------------------------------------------

// StringTable

// repeated bytes s = 1;
inline int StringTable::s_size() const {
  return s_.size();
}
inline void StringTable::clear_s() {
  s_.Clear();
}
inline const ::std::string& StringTable::s(int index) const {
  return s_.Get(index);
}
inline ::std::string* StringTable::mutable_s(int index) {
  return s_.Mutable(index);
}
inline void StringTable::set_s(int index, const ::std::string& value) {
  s_.Mutable(index)->assign(value);
}
inline void StringTable::set_s(int index, const char* value) {
  s_.Mutable(index)->assign(value);
}
inline void StringTable::set_s(int index, const void* value, size_t size) {
  s_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
}
inline ::std::string* StringTable::add_s() {
  return s_.Add();
}
inline void StringTable::add_s(const ::std::string& value) {
  s_.Add()->assign(value);
}
inline void StringTable::add_s(const char* value) {
  s_.Add()->assign(value);
}
inline void StringTable::add_s(const void* value, size_t size) {
  s_.Add()->assign(reinterpret_cast<const char*>(value), size);
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
StringTable::s() const {
  return s_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
StringTable::mutable_s() {
  return &s_;
}

// -------------------------------------------------------------------

// Info

// optional int32 version = 1 [default = -1];
inline bool Info::has_version() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Info::set_has_version() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Info::clear_has_version() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Info::clear_version() {
  version_ = -1;
  clear_has_version();
}
inline ::google::protobuf::int32 Info::version() const {
  return version_;
}
inline void Info::set_version(::google::protobuf::int32 value) {
  set_has_version();
  version_ = value;
}

// optional int64 timestamp = 2;
inline bool Info::has_timestamp() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Info::set_has_timestamp() {
  _has_bits_[0] |= 0x00000002u;
}
inline void Info::clear_has_timestamp() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void Info::clear_timestamp() {
  timestamp_ = GOOGLE_LONGLONG(0);
  clear_has_timestamp();
}
inline ::google::protobuf::int64 Info::timestamp() const {
  return timestamp_;
}
inline void Info::set_timestamp(::google::protobuf::int64 value) {
  set_has_timestamp();
  timestamp_ = value;
}

// optional int64 changeset = 3;
inline bool Info::has_changeset() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Info::set_has_changeset() {
  _has_bits_[0] |= 0x00000004u;
}
inline void Info::clear_has_changeset() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void Info::clear_changeset() {
  changeset_ = GOOGLE_LONGLONG(0);
  clear_has_changeset();
}
inline ::google::protobuf::int64 Info::changeset() const {
  return changeset_;
}
inline void Info::set_changeset(::google::protobuf::int64 value) {
  set_has_changeset();
  changeset_ = value;
}

// optional int32 uid = 4;
inline bool Info::has_uid() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Info::set_has_uid() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Info::clear_has_uid() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Info::clear_uid() {
  uid_ = 0;
  clear_has_uid();
}
inline ::google::protobuf::int32 Info::uid() const {
  return uid_;
}
inline void Info::set_uid(::google::protobuf::int32 value) {
  set_has_uid();
  uid_ = value;
}

// optional int32 user_sid = 5;
inline bool Info::has_user_sid() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void Info::set_has_user_sid() {
  _has_bits_[0] |= 0x00000010u;
}
inline void Info::clear_has_user_sid() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void Info::clear_user_sid() {
  user_sid_ = 0;
  clear_has_user_sid();
}
inline ::google::protobuf::int32 Info::user_sid() const {
  return user_sid_;
}
inline void Info::set_user_sid(::google::protobuf::int32 value) {
  set_has_user_sid();
  user_sid_ = value;
}

// -------------------------------------------------------------------

// DenseInfo

// repeated int32 version = 1 [packed = true];
inline int DenseInfo::version_size() const {
  return version_.size();
}
inline void DenseInfo::clear_version() {
  version_.Clear();
}
inline ::google::protobuf::int32 DenseInfo::version(int index) const {
  return version_.Get(index);
}
inline void DenseInfo::set_version(int index, ::google::protobuf::int32 value) {
  version_.Set(index, value);
}
inline void DenseInfo::add_version(::google::protobuf::int32 value) {
  version_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::version() const {
  return version_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_version() {
  return &version_;
}

// repeated sint64 timestamp = 2 [packed = true];
inline int DenseInfo::timestamp_size() const {
  return timestamp_.size();
}
inline void DenseInfo::clear_timestamp() {
  timestamp_.Clear();
}
inline ::google::protobuf::int64 DenseInfo::timestamp(int index) const {
  return timestamp_.Get(index);
}
inline void DenseInfo::set_timestamp(int index, ::google::protobuf::int64 value) {
  timestamp_.Set(index, value);
}
inline void DenseInfo::add_timestamp(::google::protobuf::int64 value) {
  timestamp_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseInfo::timestamp() const {
  return timestamp_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseInfo::mutable_timestamp() {
  return &timestamp_;
}

// repeated sint64 changeset = 3 [packed = true];
inline int DenseInfo::changeset_size() const {
  return changeset_.size();
}
inline void DenseInfo::clear_changeset() {
  changeset_.Clear();
}
inline ::google::protobuf::int64 DenseInfo::changeset(int index) const {
  return changeset_.Get(index);
}
inline void DenseInfo::set_changeset(int index, ::google::protobuf::int64 value) {
  changeset_.Set(index, value);
}
inline void DenseInfo::add_changeset(::google::protobuf::int64 value) {
  changeset_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseInfo::changeset() const {
  return changeset_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseInfo::mutable_changeset() {
  return &changeset_;
}

// repeated sint32 uid = 4 [packed = true];
inline int DenseInfo::uid_size() const {
  return uid_.size();
}
inline void DenseInfo::clear_uid() {
  uid_.Clear();
}
inline ::google::protobuf::int32 DenseInfo::uid(int index) const {
  return uid_.Get(index);
}
inline void DenseInfo::set_uid(int index, ::google::protobuf::int32 value) {
  uid_.Set(index, value);
}
inline void DenseInfo::add_uid(::google::protobuf::int32 value) {
  uid_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::uid() const {
  return uid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_uid() {
  return &uid_;
}

// repeated sint32 user_sid = 5 [packed = true];
inline int DenseInfo::user_sid_size() const {
  return user_sid_.size();
}
inline void DenseInfo::clear_user_sid() {
  user_sid_.Clear();
}
inline ::google::protobuf::int32 DenseInfo::user_sid(int index) const {
  return user_sid_.Get(index);
}
inline void DenseInfo::set_user_sid(int index, ::google::protobuf::int32 value) {
  user_sid_.Set(index, value);
}
inline void DenseInfo::add_user_sid(::google::protobuf::int32 value) {
  user_sid_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::user_sid() const {
  return user_sid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_user_sid() {
  return &user_sid_;
}

// -------------------------------------------------------------------

// ChangeSet

// required int64 id = 1;
inline bool ChangeSet::has_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ChangeSet::set_has_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void ChangeSet::clear_has_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void ChangeSet::clear_id() {
  id_ = GOOGLE_LONGLONG(0);
  clear_has_id();
}
inline ::google::protobuf::int64 ChangeSet::id() const {
  return id_;
}
inline void ChangeSet::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
}

// -------------------------------------------------------------------

// Node

// required sint64 id = 1;
inline bool Node::has_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Node::set_has_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Node::clear_has_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Node::clear_id() {
  id_ = GOOGLE_LONGLONG(0);
  clear_has_id();
}
inline ::google::protobuf::int64 Node::id() const {
  return id_;
}
inline void Node::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
}

// repeated uint32 keys = 2 [packed = true];
inline int Node::keys_size() const {
  return keys_.size();
}
inline void Node::clear_keys() {
  keys_.Clear();
}
inline ::google::protobuf::uint32 Node::keys(int index) const {
  return keys_.Get(index);
}
inline void Node::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
}
inline void Node::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Node::keys() const {
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Node::mutable_keys() {
  return &keys_;
}

// repeated uint32 vals = 3 [packed = true];
inline int Node::vals_size() const {
  return vals_.size();
}
inline void Node::clear_vals() {
  vals_.Clear();
}
inline ::google::protobuf::uint32 Node::vals(int index) const {
  return vals_.Get(index);
}
inline void Node::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
}
inline void Node::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Node::vals() const {
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Node::mutable_vals() {
  return &vals_;
}

// optional .PBF.Info info = 4;
inline bool Node::has_info() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Node::set_has_info() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Node::clear_has_info() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Node::clear_info() {
  if (info_ != NULL) info_->::PBF::Info::Clear();
  clear_has_info();
}
inline const ::PBF::Info& Node::info() const {
  return info_ != NULL ? *info_ : *default_instance_->info_;
}
inline ::PBF::Info* Node::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::PBF::Info;
  return info_;
}
inline ::PBF::Info* Node::release_info() {
  clear_has_info();
  ::PBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}

// required sint64 lat = 8;
inline bool Node::has_lat() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void Node::set_has_lat() {
  _has_bits_[0] |= 0x00000010u;
}
inline void Node::clear_has_lat() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void Node::clear_lat() {
  lat_ = GOOGLE_LONGLONG(0);
  clear_has_lat();
}
inline ::google::protobuf::int64 Node::lat() const {
  return lat_;
}
inline void Node::set_lat(::google::protobuf::int64 value) {
  set_has_lat();
  lat_ = value;
}

// required sint64 lon = 9;
inline bool Node::has_lon() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void Node::set_has_lon() {
  _has_bits_[0] |= 0x00000020u;
}
inline void Node::clear_has_lon() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void Node::clear_lon() {
  lon_ = GOOGLE_LONGLONG(0);
  clear_has_lon();
}
inline ::google::protobuf::int64 Node::lon() const {
  return lon_;
}
inline void Node::set_lon(::google::protobuf::int64 value) {
  set_has_lon();
  lon_ = value;
}

// -------------------------------------------------------------------

// DenseNodes

// repeated sint64 id = 1 [packed = true];
inline int DenseNodes::id_size() const {
  return id_.size();
}
inline void DenseNodes::clear_id() {
  id_.Clear();
}
inline ::google::protobuf::int64 DenseNodes::id(int index) const {
  return id_.Get(index);
}
inline void DenseNodes::set_id(int index, ::google::protobuf::int64 value) {
  id_.Set(index, value);
}
inline void DenseNodes::add_id(::google::protobuf::int64 value) {
  id_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::id() const {
  return id_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_id() {
  return &id_;
}

// optional .PBF.DenseInfo denseinfo = 5;
inline bool DenseNodes::has_denseinfo() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DenseNodes::set_has_denseinfo() {
  _has_bits_[0] |= 0x00000002u;
}
inline void DenseNodes::clear_has_denseinfo() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void DenseNodes::clear_denseinfo() {
  if (denseinfo_ != NULL) denseinfo_->::PBF::DenseInfo::Clear();
  clear_has_denseinfo();
}
inline const ::PBF::DenseInfo& DenseNodes::denseinfo() const {
  return denseinfo_ != NULL ? *denseinfo_ : *default_instance_->denseinfo_;
}
inline ::PBF::DenseInfo* DenseNodes::mutable_denseinfo() {
  set_has_denseinfo();
  if (denseinfo_ == NULL) denseinfo_ = new ::PBF::DenseInfo;
  return denseinfo_;
}
inline ::PBF::DenseInfo* DenseNodes::release_denseinfo() {
  clear_has_denseinfo();
  ::PBF::DenseInfo* temp = denseinfo_;
  denseinfo_ = NULL;
  return temp;
}

// repeated sint64 lat = 8 [packed = true];
inline int DenseNodes::lat_size() const {
  return lat_.size();
}
inline void DenseNodes::clear_lat() {
  lat_.Clear();
}
inline ::google::protobuf::int64 DenseNodes::lat(int index) const {
  return lat_.Get(index);
}
inline void DenseNodes::set_lat(int index, ::google::protobuf::int64 value) {
  lat_.Set(index, value);
}
inline void DenseNodes::add_lat(::google::protobuf::int64 value) {
  lat_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::lat() const {
  return lat_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_lat() {
  return &lat_;
}

// repeated sint64 lon = 9 [packed = true];
inline int DenseNodes::lon_size() const {
  return lon_.size();
}
inline void DenseNodes::clear_lon() {
  lon_.Clear();
}
inline ::google::protobuf::int64 DenseNodes::lon(int index) const {
  return lon_.Get(index);
}
inline void DenseNodes::set_lon(int index, ::google::protobuf::int64 value) {
  lon_.Set(index, value);
}
inline void DenseNodes::add_lon(::google::protobuf::int64 value) {
  lon_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::lon() const {
  return lon_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_lon() {
  return &lon_;
}

// repeated int32 keys_vals = 10 [packed = true];
inline int DenseNodes::keys_vals_size() const {
  return keys_vals_.size();
}
inline void DenseNodes::clear_keys_vals() {
  keys_vals_.Clear();
}
inline ::google::protobuf::int32 DenseNodes::keys_vals(int index) const {
  return keys_vals_.Get(index);
}
inline void DenseNodes::set_keys_vals(int index, ::google::protobuf::int32 value) {
  keys_vals_.Set(index, value);
}
inline void DenseNodes::add_keys_vals(::google::protobuf::int32 value) {
  keys_vals_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseNodes::keys_vals() const {
  return keys_vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseNodes::mutable_keys_vals() {
  return &keys_vals_;
}

// -------------------------------------------------------------------

// Way

// required int64 id = 1;
inline bool Way::has_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Way::set_has_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Way::clear_has_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Way::clear_id() {
  id_ = GOOGLE_LONGLONG(0);
  clear_has_id();
}
inline ::google::protobuf::int64 Way::id() const {
  return id_;
}
inline void Way::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
}

// repeated uint32 keys = 2 [packed = true];
inline int Way::keys_size() const {
  return keys_.size();
}
inline void Way::clear_keys() {
  keys_.Clear();
}
inline ::google::protobuf::uint32 Way::keys(int index) const {
  return keys_.Get(index);
}
inline void Way::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
}
inline void Way::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Way::keys() const {
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Way::mutable_keys() {
  return &keys_;
}

// repeated uint32 vals = 3 [packed = true];
inline int Way::vals_size() const {
  return vals_.size();
}
inline void Way::clear_vals() {
  vals_.Clear();
}
inline ::google::protobuf::uint32 Way::vals(int index) const {
  return vals_.Get(index);
}
inline void Way::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
}
inline void Way::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Way::vals() const {
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Way::mutable_vals() {
  return &vals_;
}

// optional .PBF.Info info = 4;
inline bool Way::has_info() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Way::set_has_info() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Way::clear_has_info() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Way::clear_info() {
  if (info_ != NULL) info_->::PBF::Info::Clear();
  clear_has_info();
}
inline const ::PBF::Info& Way::info() const {
  return info_ != NULL ? *info_ : *default_instance_->info_;
}
inline ::PBF::Info* Way::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::PBF::Info;
  return info_;
}
inline ::PBF::Info* Way::release_info() {
  clear_has_info();
  ::PBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}

// repeated sint64 refs = 8 [packed = true];
inline int Way::refs_size() const {
  return refs_.size();
}
inline void Way::clear_refs() {
  refs_.Clear();
}
inline ::google::protobuf::int64 Way::refs(int index) const {
  return refs_.Get(index);
}
inline void Way::set_refs(int index, ::google::protobuf::int64 value) {
  refs_.Set(index, value);
}
inline void Way::add_refs(::google::protobuf::int64 value) {
  refs_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
Way::refs() const {
  return refs_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
Way::mutable_refs() {
  return &refs_;
}

// -------------------------------------------------------------------

// Relation

// required int64 id = 1;
inline bool Relation::has_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Relation::set_has_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Relation::clear_has_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Relation::clear_id() {
  id_ = GOOGLE_LONGLONG(0);
  clear_has_id();
}
inline ::google::protobuf::int64 Relation::id() const {
  return id_;
}
inline void Relation::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
}

// repeated uint32 keys = 2 [packed = true];
inline int Relation::keys_size() const {
  return keys_.size();
}
inline void Relation::clear_keys() {
  keys_.Clear();
}
inline ::google::protobuf::uint32 Relation::keys(int index) const {
  return keys_.Get(index);
}
inline void Relation::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
}
inline void Relation::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Relation::keys() const {
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Relation::mutable_keys() {
  return &keys_;
}

// repeated uint32 vals = 3 [packed = true];
inline int Relation::vals_size() const {
  return vals_.size();
}
inline void Relation::clear_vals() {
  vals_.Clear();
}
inline ::google::protobuf::uint32 Relation::vals(int index) const {
  return vals_.Get(index);
}
inline void Relation::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
}
inline void Relation::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Relation::vals() const {
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Relation::mutable_vals() {
  return &vals_;
}

// optional .PBF.Info info = 4;
inline bool Relation::has_info() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Relation::set_has_info() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Relation::clear_has_info() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Relation::clear_info() {
  if (info_ != NULL) info_->::PBF::Info::Clear();
  clear_has_info();
}
inline const ::PBF::Info& Relation::info() const {
  return info_ != NULL ? *info_ : *default_instance_->info_;
}
inline ::PBF::Info* Relation::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::PBF::Info;
  return info_;
}
inline ::PBF::Info* Relation::release_info() {
  clear_has_info();
  ::PBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}

// repeated int32 roles_sid = 8 [packed = true];
inline int Relation::roles_sid_size() const {
  return roles_sid_.size();
}
inline void Relation::clear_roles_sid() {
  roles_sid_.Clear();
}
inline ::google::protobuf::int32 Relation::roles_sid(int index) const {
  return roles_sid_.Get(index);
}
inline void Relation::set_roles_sid(int index, ::google::protobuf::int32 value) {
  roles_sid_.Set(index, value);
}
inline void Relation::add_roles_sid(::google::protobuf::int32 value) {
  roles_sid_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
Relation::roles_sid() const {
  return roles_sid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
Relation::mutable_roles_sid() {
  return &roles_sid_;
}

// repeated sint64 memids = 9 [packed = true];
inline int Relation::memids_size() const {
  return memids_.size();
}
inline void Relation::clear_memids() {
  memids_.Clear();
}
inline ::google::protobuf::int64 Relation::memids(int index) const {
  return memids_.Get(index);
}
inline void Relation::set_memids(int index, ::google::protobuf::int64 value) {
  memids_.Set(index, value);
}
inline void Relation::add_memids(::google::protobuf::int64 value) {
  memids_.Add(value);
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
Relation::memids() const {
  return memids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
Relation::mutable_memids() {
  return &memids_;
}

// repeated .PBF.Relation.MemberType types = 10 [packed = true];
inline int Relation::types_size() const {
  return types_.size();
}
inline void Relation::clear_types() {
  types_.Clear();
}
inline ::PBF::Relation_MemberType Relation::types(int index) const {
  return static_cast< ::PBF::Relation_MemberType >(types_.Get(index));
}
inline void Relation::set_types(int index, ::PBF::Relation_MemberType value) {
  GOOGLE_DCHECK(::PBF::Relation_MemberType_IsValid(value));
  types_.Set(index, value);
}
inline void Relation::add_types(::PBF::Relation_MemberType value) {
  GOOGLE_DCHECK(::PBF::Relation_MemberType_IsValid(value));
  types_.Add(value);
}
inline const ::google::protobuf::RepeatedField<int>&
Relation::types() const {
  return types_;
}
inline ::google::protobuf::RepeatedField<int>*
Relation::mutable_types() {
  return &types_;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace PBF

#ifndef SWIG
namespace google {
namespace protobuf {

template <>
inline const EnumDescriptor* GetEnumDescriptor< ::PBF::Relation_MemberType>() {
  return ::PBF::Relation_MemberType_descriptor();
}

}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_osmformat_2eproto__INCLUDED
