// 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 < 2006000
#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 2006001 < 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/message_lite.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
// @@protoc_insertion_point(includes)

namespace OSMPBF {

// 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;

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

class HeaderBlock : public ::google::protobuf::MessageLite {
 public:
  HeaderBlock();
  virtual ~HeaderBlock();

  HeaderBlock(const HeaderBlock& from);

  inline HeaderBlock& operator=(const HeaderBlock& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const HeaderBlock& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const HeaderBlock* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(HeaderBlock* other);

  // implements Message ----------------------------------------------

  HeaderBlock* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional .OSMPBF.HeaderBBox bbox = 1;
  inline bool has_bbox() const;
  inline void clear_bbox();
  static const int kBboxFieldNumber = 1;
  inline const ::OSMPBF::HeaderBBox& bbox() const;
  inline ::OSMPBF::HeaderBBox* mutable_bbox();
  inline ::OSMPBF::HeaderBBox* release_bbox();
  inline void set_allocated_bbox(::OSMPBF::HeaderBBox* 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();
  inline void set_allocated_writingprogram(::std::string* 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();
  inline void set_allocated_source(::std::string* source);

  // optional int64 osmosis_replication_timestamp = 32;
  inline bool has_osmosis_replication_timestamp() const;
  inline void clear_osmosis_replication_timestamp();
  static const int kOsmosisReplicationTimestampFieldNumber = 32;
  inline ::google::protobuf::int64 osmosis_replication_timestamp() const;
  inline void set_osmosis_replication_timestamp(::google::protobuf::int64 value);

  // optional int64 osmosis_replication_sequence_number = 33;
  inline bool has_osmosis_replication_sequence_number() const;
  inline void clear_osmosis_replication_sequence_number();
  static const int kOsmosisReplicationSequenceNumberFieldNumber = 33;
  inline ::google::protobuf::int64 osmosis_replication_sequence_number() const;
  inline void set_osmosis_replication_sequence_number(::google::protobuf::int64 value);

  // optional string osmosis_replication_base_url = 34;
  inline bool has_osmosis_replication_base_url() const;
  inline void clear_osmosis_replication_base_url();
  static const int kOsmosisReplicationBaseUrlFieldNumber = 34;
  inline const ::std::string& osmosis_replication_base_url() const;
  inline void set_osmosis_replication_base_url(const ::std::string& value);
  inline void set_osmosis_replication_base_url(const char* value);
  inline void set_osmosis_replication_base_url(const char* value, size_t size);
  inline ::std::string* mutable_osmosis_replication_base_url();
  inline ::std::string* release_osmosis_replication_base_url();
  inline void set_allocated_osmosis_replication_base_url(::std::string* osmosis_replication_base_url);

  // @@protoc_insertion_point(class_scope:OSMPBF.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();
  inline void set_has_osmosis_replication_timestamp();
  inline void clear_has_osmosis_replication_timestamp();
  inline void set_has_osmosis_replication_sequence_number();
  inline void clear_has_osmosis_replication_sequence_number();
  inline void set_has_osmosis_replication_base_url();
  inline void clear_has_osmosis_replication_base_url();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::OSMPBF::HeaderBBox* bbox_;
  ::google::protobuf::RepeatedPtrField< ::std::string> required_features_;
  ::google::protobuf::RepeatedPtrField< ::std::string> optional_features_;
  ::std::string* writingprogram_;
  ::std::string* source_;
  ::google::protobuf::int64 osmosis_replication_timestamp_;
  ::google::protobuf::int64 osmosis_replication_sequence_number_;
  ::std::string* osmosis_replication_base_url_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static HeaderBlock* default_instance_;
};
// -------------------------------------------------------------------

class HeaderBBox : public ::google::protobuf::MessageLite {
 public:
  HeaderBBox();
  virtual ~HeaderBBox();

  HeaderBBox(const HeaderBBox& from);

  inline HeaderBBox& operator=(const HeaderBBox& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const HeaderBBox& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const HeaderBBox* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(HeaderBBox* other);

  // implements Message ----------------------------------------------

  HeaderBBox* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required 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:OSMPBF.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();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::int64 left_;
  ::google::protobuf::int64 right_;
  ::google::protobuf::int64 top_;
  ::google::protobuf::int64 bottom_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static HeaderBBox* default_instance_;
};
// -------------------------------------------------------------------

class PrimitiveBlock : public ::google::protobuf::MessageLite {
 public:
  PrimitiveBlock();
  virtual ~PrimitiveBlock();

  PrimitiveBlock(const PrimitiveBlock& from);

  inline PrimitiveBlock& operator=(const PrimitiveBlock& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const PrimitiveBlock& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const PrimitiveBlock* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(PrimitiveBlock* other);

  // implements Message ----------------------------------------------

  PrimitiveBlock* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required .OSMPBF.StringTable stringtable = 1;
  inline bool has_stringtable() const;
  inline void clear_stringtable();
  static const int kStringtableFieldNumber = 1;
  inline const ::OSMPBF::StringTable& stringtable() const;
  inline ::OSMPBF::StringTable* mutable_stringtable();
  inline ::OSMPBF::StringTable* release_stringtable();
  inline void set_allocated_stringtable(::OSMPBF::StringTable* stringtable);

  // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
  inline int primitivegroup_size() const;
  inline void clear_primitivegroup();
  static const int kPrimitivegroupFieldNumber = 2;
  inline const ::OSMPBF::PrimitiveGroup& primitivegroup(int index) const;
  inline ::OSMPBF::PrimitiveGroup* mutable_primitivegroup(int index);
  inline ::OSMPBF::PrimitiveGroup* add_primitivegroup();
  inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >&
      primitivegroup() const;
  inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::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:OSMPBF.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();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::OSMPBF::StringTable* stringtable_;
  ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup > primitivegroup_;
  ::google::protobuf::int64 lat_offset_;
  ::google::protobuf::int32 granularity_;
  ::google::protobuf::int32 date_granularity_;
  ::google::protobuf::int64 lon_offset_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static PrimitiveBlock* default_instance_;
};
// -------------------------------------------------------------------

class PrimitiveGroup : public ::google::protobuf::MessageLite {
 public:
  PrimitiveGroup();
  virtual ~PrimitiveGroup();

  PrimitiveGroup(const PrimitiveGroup& from);

  inline PrimitiveGroup& operator=(const PrimitiveGroup& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const PrimitiveGroup& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const PrimitiveGroup* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(PrimitiveGroup* other);

  // implements Message ----------------------------------------------

  PrimitiveGroup* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .OSMPBF.Node nodes = 1;
  inline int nodes_size() const;
  inline void clear_nodes();
  static const int kNodesFieldNumber = 1;
  inline const ::OSMPBF::Node& nodes(int index) const;
  inline ::OSMPBF::Node* mutable_nodes(int index);
  inline ::OSMPBF::Node* add_nodes();
  inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >&
      nodes() const;
  inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >*
      mutable_nodes();

  // optional .OSMPBF.DenseNodes dense = 2;
  inline bool has_dense() const;
  inline void clear_dense();
  static const int kDenseFieldNumber = 2;
  inline const ::OSMPBF::DenseNodes& dense() const;
  inline ::OSMPBF::DenseNodes* mutable_dense();
  inline ::OSMPBF::DenseNodes* release_dense();
  inline void set_allocated_dense(::OSMPBF::DenseNodes* dense);

  // repeated .OSMPBF.Way ways = 3;
  inline int ways_size() const;
  inline void clear_ways();
  static const int kWaysFieldNumber = 3;
  inline const ::OSMPBF::Way& ways(int index) const;
  inline ::OSMPBF::Way* mutable_ways(int index);
  inline ::OSMPBF::Way* add_ways();
  inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >&
      ways() const;
  inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >*
      mutable_ways();

  // repeated .OSMPBF.Relation relations = 4;
  inline int relations_size() const;
  inline void clear_relations();
  static const int kRelationsFieldNumber = 4;
  inline const ::OSMPBF::Relation& relations(int index) const;
  inline ::OSMPBF::Relation* mutable_relations(int index);
  inline ::OSMPBF::Relation* add_relations();
  inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >&
      relations() const;
  inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >*
      mutable_relations();

  // repeated .OSMPBF.ChangeSet changesets = 5;
  inline int changesets_size() const;
  inline void clear_changesets();
  static const int kChangesetsFieldNumber = 5;
  inline const ::OSMPBF::ChangeSet& changesets(int index) const;
  inline ::OSMPBF::ChangeSet* mutable_changesets(int index);
  inline ::OSMPBF::ChangeSet* add_changesets();
  inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >&
      changesets() const;
  inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >*
      mutable_changesets();

  // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup)
 private:
  inline void set_has_dense();
  inline void clear_has_dense();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node > nodes_;
  ::OSMPBF::DenseNodes* dense_;
  ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way > ways_;
  ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation > relations_;
  ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet > changesets_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static PrimitiveGroup* default_instance_;
};
// -------------------------------------------------------------------

class StringTable : public ::google::protobuf::MessageLite {
 public:
  StringTable();
  virtual ~StringTable();

  StringTable(const StringTable& from);

  inline StringTable& operator=(const StringTable& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const StringTable& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const StringTable* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(StringTable* other);

  // implements Message ----------------------------------------------

  StringTable* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() 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:OSMPBF.StringTable)
 private:

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::RepeatedPtrField< ::std::string> s_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static StringTable* default_instance_;
};
// -------------------------------------------------------------------

class Info : public ::google::protobuf::MessageLite {
 public:
  Info();
  virtual ~Info();

  Info(const Info& from);

  inline Info& operator=(const Info& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Info& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Info* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Info* other);

  // implements Message ----------------------------------------------

  Info* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional 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 uint32 user_sid = 5;
  inline bool has_user_sid() const;
  inline void clear_user_sid();
  static const int kUserSidFieldNumber = 5;
  inline ::google::protobuf::uint32 user_sid() const;
  inline void set_user_sid(::google::protobuf::uint32 value);

  // optional bool visible = 6;
  inline bool has_visible() const;
  inline void clear_visible();
  static const int kVisibleFieldNumber = 6;
  inline bool visible() const;
  inline void set_visible(bool value);

  // @@protoc_insertion_point(class_scope:OSMPBF.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();
  inline void set_has_visible();
  inline void clear_has_visible();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::int64 timestamp_;
  ::google::protobuf::int32 version_;
  ::google::protobuf::int32 uid_;
  ::google::protobuf::int64 changeset_;
  ::google::protobuf::uint32 user_sid_;
  bool visible_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static Info* default_instance_;
};
// -------------------------------------------------------------------

class DenseInfo : public ::google::protobuf::MessageLite {
 public:
  DenseInfo();
  virtual ~DenseInfo();

  DenseInfo(const DenseInfo& from);

  inline DenseInfo& operator=(const DenseInfo& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const DenseInfo& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const DenseInfo* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(DenseInfo* other);

  // implements Message ----------------------------------------------

  DenseInfo* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() 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();

  // repeated bool visible = 6 [packed = true];
  inline int visible_size() const;
  inline void clear_visible();
  static const int kVisibleFieldNumber = 6;
  inline bool visible(int index) const;
  inline void set_visible(int index, bool value);
  inline void add_visible(bool value);
  inline const ::google::protobuf::RepeatedField< bool >&
      visible() const;
  inline ::google::protobuf::RepeatedField< bool >*
      mutable_visible();

  // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo)
 private:

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::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_;
  ::google::protobuf::RepeatedField< bool > visible_;
  mutable int _visible_cached_byte_size_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static DenseInfo* default_instance_;
};
// -------------------------------------------------------------------

class ChangeSet : public ::google::protobuf::MessageLite {
 public:
  ChangeSet();
  virtual ~ChangeSet();

  ChangeSet(const ChangeSet& from);

  inline ChangeSet& operator=(const ChangeSet& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ChangeSet& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const ChangeSet* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(ChangeSet* other);

  // implements Message ----------------------------------------------

  ChangeSet* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required 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:OSMPBF.ChangeSet)
 private:
  inline void set_has_id();
  inline void clear_has_id();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::int64 id_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static ChangeSet* default_instance_;
};
// -------------------------------------------------------------------

class Node : public ::google::protobuf::MessageLite {
 public:
  Node();
  virtual ~Node();

  Node(const Node& from);

  inline Node& operator=(const Node& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Node& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Node* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Node* other);

  // implements Message ----------------------------------------------

  Node* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required 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 .OSMPBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::OSMPBF::Info& info() const;
  inline ::OSMPBF::Info* mutable_info();
  inline ::OSMPBF::Info* release_info();
  inline void set_allocated_info(::OSMPBF::Info* 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:OSMPBF.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();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::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_;
  ::OSMPBF::Info* info_;
  ::google::protobuf::int64 lat_;
  ::google::protobuf::int64 lon_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static Node* default_instance_;
};
// -------------------------------------------------------------------

class DenseNodes : public ::google::protobuf::MessageLite {
 public:
  DenseNodes();
  virtual ~DenseNodes();

  DenseNodes(const DenseNodes& from);

  inline DenseNodes& operator=(const DenseNodes& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const DenseNodes& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const DenseNodes* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(DenseNodes* other);

  // implements Message ----------------------------------------------

  DenseNodes* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() 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 .OSMPBF.DenseInfo denseinfo = 5;
  inline bool has_denseinfo() const;
  inline void clear_denseinfo();
  static const int kDenseinfoFieldNumber = 5;
  inline const ::OSMPBF::DenseInfo& denseinfo() const;
  inline ::OSMPBF::DenseInfo* mutable_denseinfo();
  inline ::OSMPBF::DenseInfo* release_denseinfo();
  inline void set_allocated_denseinfo(::OSMPBF::DenseInfo* 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:OSMPBF.DenseNodes)
 private:
  inline void set_has_denseinfo();
  inline void clear_has_denseinfo();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_;
  mutable int _id_cached_byte_size_;
  ::OSMPBF::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_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static DenseNodes* default_instance_;
};
// -------------------------------------------------------------------

class Way : public ::google::protobuf::MessageLite {
 public:
  Way();
  virtual ~Way();

  Way(const Way& from);

  inline Way& operator=(const Way& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Way& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Way* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Way* other);

  // implements Message ----------------------------------------------

  Way* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // required 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 .OSMPBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::OSMPBF::Info& info() const;
  inline ::OSMPBF::Info* mutable_info();
  inline ::OSMPBF::Info* release_info();
  inline void set_allocated_info(::OSMPBF::Info* 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:OSMPBF.Way)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  inline void set_has_info();
  inline void clear_has_info();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::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_;
  ::OSMPBF::Info* info_;
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > refs_;
  mutable int _refs_cached_byte_size_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static Way* default_instance_;
};
// -------------------------------------------------------------------

class Relation : public ::google::protobuf::MessageLite {
 public:
  Relation();
  virtual ~Relation();

  Relation(const Relation& from);

  inline Relation& operator=(const Relation& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::std::string& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::std::string* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const Relation& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Relation* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Relation* other);

  // implements Message ----------------------------------------------

  Relation* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& 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;
  void DiscardUnknownFields();
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::std::string GetTypeName() 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;

  // 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 .OSMPBF.Info info = 4;
  inline bool has_info() const;
  inline void clear_info();
  static const int kInfoFieldNumber = 4;
  inline const ::OSMPBF::Info& info() const;
  inline ::OSMPBF::Info* mutable_info();
  inline ::OSMPBF::Info* release_info();
  inline void set_allocated_info(::OSMPBF::Info* 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 .OSMPBF.Relation.MemberType types = 10 [packed = true];
  inline int types_size() const;
  inline void clear_types();
  static const int kTypesFieldNumber = 10;
  inline ::OSMPBF::Relation_MemberType types(int index) const;
  inline void set_types(int index, ::OSMPBF::Relation_MemberType value);
  inline void add_types(::OSMPBF::Relation_MemberType value);
  inline const ::google::protobuf::RepeatedField<int>& types() const;
  inline ::google::protobuf::RepeatedField<int>* mutable_types();

  // @@protoc_insertion_point(class_scope:OSMPBF.Relation)
 private:
  inline void set_has_id();
  inline void clear_has_id();
  inline void set_has_info();
  inline void clear_has_info();

  ::std::string _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::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_;
  ::OSMPBF::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_;
  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_osmformat_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_osmformat_2eproto();
  #endif
  friend void protobuf_AssignDesc_osmformat_2eproto();
  friend void protobuf_ShutdownFile_osmformat_2eproto();

  void InitAsDefaultInstance();
  static Relation* default_instance_;
};
// ===================================================================


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

// HeaderBlock

// optional .OSMPBF.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_->::OSMPBF::HeaderBBox::Clear();
  clear_has_bbox();
}
inline const ::OSMPBF::HeaderBBox& HeaderBlock::bbox() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.bbox)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return bbox_ != NULL ? *bbox_ : *default_instance().bbox_;
#else
  return bbox_ != NULL ? *bbox_ : *default_instance_->bbox_;
#endif
}
inline ::OSMPBF::HeaderBBox* HeaderBlock::mutable_bbox() {
  set_has_bbox();
  if (bbox_ == NULL) bbox_ = new ::OSMPBF::HeaderBBox;
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.bbox)
  return bbox_;
}
inline ::OSMPBF::HeaderBBox* HeaderBlock::release_bbox() {
  clear_has_bbox();
  ::OSMPBF::HeaderBBox* temp = bbox_;
  bbox_ = NULL;
  return temp;
}
inline void HeaderBlock::set_allocated_bbox(::OSMPBF::HeaderBBox* bbox) {
  delete bbox_;
  bbox_ = bbox;
  if (bbox) {
    set_has_bbox();
  } else {
    clear_has_bbox();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.HeaderBlock.bbox)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.required_features)
  return required_features_.Get(index);
}
inline ::std::string* HeaderBlock::mutable_required_features(int index) {
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.required_features)
  return required_features_.Mutable(index);
}
inline void HeaderBlock::set_required_features(int index, const ::std::string& value) {
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.required_features)
  required_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_required_features(int index, const char* value) {
  required_features_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.HeaderBlock.required_features)
}
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);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.HeaderBlock.required_features)
}
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);
  // @@protoc_insertion_point(field_add:OSMPBF.HeaderBlock.required_features)
}
inline void HeaderBlock::add_required_features(const char* value) {
  required_features_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:OSMPBF.HeaderBlock.required_features)
}
inline void HeaderBlock::add_required_features(const char* value, size_t size) {
  required_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:OSMPBF.HeaderBlock.required_features)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
HeaderBlock::required_features() const {
  // @@protoc_insertion_point(field_list:OSMPBF.HeaderBlock.required_features)
  return required_features_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
HeaderBlock::mutable_required_features() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.HeaderBlock.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.optional_features)
  return optional_features_.Get(index);
}
inline ::std::string* HeaderBlock::mutable_optional_features(int index) {
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.optional_features)
  return optional_features_.Mutable(index);
}
inline void HeaderBlock::set_optional_features(int index, const ::std::string& value) {
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.optional_features)
  optional_features_.Mutable(index)->assign(value);
}
inline void HeaderBlock::set_optional_features(int index, const char* value) {
  optional_features_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.HeaderBlock.optional_features)
}
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);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.HeaderBlock.optional_features)
}
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);
  // @@protoc_insertion_point(field_add:OSMPBF.HeaderBlock.optional_features)
}
inline void HeaderBlock::add_optional_features(const char* value) {
  optional_features_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:OSMPBF.HeaderBlock.optional_features)
}
inline void HeaderBlock::add_optional_features(const char* value, size_t size) {
  optional_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:OSMPBF.HeaderBlock.optional_features)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
HeaderBlock::optional_features() const {
  // @@protoc_insertion_point(field_list:OSMPBF.HeaderBlock.optional_features)
  return optional_features_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
HeaderBlock::mutable_optional_features() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.HeaderBlock.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::GetEmptyStringAlreadyInited()) {
    writingprogram_->clear();
  }
  clear_has_writingprogram();
}
inline const ::std::string& HeaderBlock::writingprogram() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.writingprogram)
  return *writingprogram_;
}
inline void HeaderBlock::set_writingprogram(const ::std::string& value) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(value);
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.writingprogram)
}
inline void HeaderBlock::set_writingprogram(const char* value) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.HeaderBlock.writingprogram)
}
inline void HeaderBlock::set_writingprogram(const char* value, size_t size) {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    writingprogram_ = new ::std::string;
  }
  writingprogram_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.HeaderBlock.writingprogram)
}
inline ::std::string* HeaderBlock::mutable_writingprogram() {
  set_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    writingprogram_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.writingprogram)
  return writingprogram_;
}
inline ::std::string* HeaderBlock::release_writingprogram() {
  clear_has_writingprogram();
  if (writingprogram_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = writingprogram_;
    writingprogram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void HeaderBlock::set_allocated_writingprogram(::std::string* writingprogram) {
  if (writingprogram_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete writingprogram_;
  }
  if (writingprogram) {
    set_has_writingprogram();
    writingprogram_ = writingprogram;
  } else {
    clear_has_writingprogram();
    writingprogram_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.HeaderBlock.writingprogram)
}

// 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::GetEmptyStringAlreadyInited()) {
    source_->clear();
  }
  clear_has_source();
}
inline const ::std::string& HeaderBlock::source() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.source)
  return *source_;
}
inline void HeaderBlock::set_source(const ::std::string& value) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    source_ = new ::std::string;
  }
  source_->assign(value);
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.source)
}
inline void HeaderBlock::set_source(const char* value) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    source_ = new ::std::string;
  }
  source_->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.HeaderBlock.source)
}
inline void HeaderBlock::set_source(const char* value, size_t size) {
  set_has_source();
  if (source_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    source_ = new ::std::string;
  }
  source_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.HeaderBlock.source)
}
inline ::std::string* HeaderBlock::mutable_source() {
  set_has_source();
  if (source_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    source_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.source)
  return source_;
}
inline ::std::string* HeaderBlock::release_source() {
  clear_has_source();
  if (source_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = source_;
    source_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void HeaderBlock::set_allocated_source(::std::string* source) {
  if (source_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete source_;
  }
  if (source) {
    set_has_source();
    source_ = source;
  } else {
    clear_has_source();
    source_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.HeaderBlock.source)
}

// optional int64 osmosis_replication_timestamp = 32;
inline bool HeaderBlock::has_osmosis_replication_timestamp() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void HeaderBlock::set_has_osmosis_replication_timestamp() {
  _has_bits_[0] |= 0x00000020u;
}
inline void HeaderBlock::clear_has_osmosis_replication_timestamp() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void HeaderBlock::clear_osmosis_replication_timestamp() {
  osmosis_replication_timestamp_ = GOOGLE_LONGLONG(0);
  clear_has_osmosis_replication_timestamp();
}
inline ::google::protobuf::int64 HeaderBlock::osmosis_replication_timestamp() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.osmosis_replication_timestamp)
  return osmosis_replication_timestamp_;
}
inline void HeaderBlock::set_osmosis_replication_timestamp(::google::protobuf::int64 value) {
  set_has_osmosis_replication_timestamp();
  osmosis_replication_timestamp_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.osmosis_replication_timestamp)
}

// optional int64 osmosis_replication_sequence_number = 33;
inline bool HeaderBlock::has_osmosis_replication_sequence_number() const {
  return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void HeaderBlock::set_has_osmosis_replication_sequence_number() {
  _has_bits_[0] |= 0x00000040u;
}
inline void HeaderBlock::clear_has_osmosis_replication_sequence_number() {
  _has_bits_[0] &= ~0x00000040u;
}
inline void HeaderBlock::clear_osmosis_replication_sequence_number() {
  osmosis_replication_sequence_number_ = GOOGLE_LONGLONG(0);
  clear_has_osmosis_replication_sequence_number();
}
inline ::google::protobuf::int64 HeaderBlock::osmosis_replication_sequence_number() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.osmosis_replication_sequence_number)
  return osmosis_replication_sequence_number_;
}
inline void HeaderBlock::set_osmosis_replication_sequence_number(::google::protobuf::int64 value) {
  set_has_osmosis_replication_sequence_number();
  osmosis_replication_sequence_number_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.osmosis_replication_sequence_number)
}

// optional string osmosis_replication_base_url = 34;
inline bool HeaderBlock::has_osmosis_replication_base_url() const {
  return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void HeaderBlock::set_has_osmosis_replication_base_url() {
  _has_bits_[0] |= 0x00000080u;
}
inline void HeaderBlock::clear_has_osmosis_replication_base_url() {
  _has_bits_[0] &= ~0x00000080u;
}
inline void HeaderBlock::clear_osmosis_replication_base_url() {
  if (osmosis_replication_base_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    osmosis_replication_base_url_->clear();
  }
  clear_has_osmosis_replication_base_url();
}
inline const ::std::string& HeaderBlock::osmosis_replication_base_url() const {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBlock.osmosis_replication_base_url)
  return *osmosis_replication_base_url_;
}
inline void HeaderBlock::set_osmosis_replication_base_url(const ::std::string& value) {
  set_has_osmosis_replication_base_url();
  if (osmosis_replication_base_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    osmosis_replication_base_url_ = new ::std::string;
  }
  osmosis_replication_base_url_->assign(value);
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBlock.osmosis_replication_base_url)
}
inline void HeaderBlock::set_osmosis_replication_base_url(const char* value) {
  set_has_osmosis_replication_base_url();
  if (osmosis_replication_base_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    osmosis_replication_base_url_ = new ::std::string;
  }
  osmosis_replication_base_url_->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.HeaderBlock.osmosis_replication_base_url)
}
inline void HeaderBlock::set_osmosis_replication_base_url(const char* value, size_t size) {
  set_has_osmosis_replication_base_url();
  if (osmosis_replication_base_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    osmosis_replication_base_url_ = new ::std::string;
  }
  osmosis_replication_base_url_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.HeaderBlock.osmosis_replication_base_url)
}
inline ::std::string* HeaderBlock::mutable_osmosis_replication_base_url() {
  set_has_osmosis_replication_base_url();
  if (osmosis_replication_base_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    osmosis_replication_base_url_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:OSMPBF.HeaderBlock.osmosis_replication_base_url)
  return osmosis_replication_base_url_;
}
inline ::std::string* HeaderBlock::release_osmosis_replication_base_url() {
  clear_has_osmosis_replication_base_url();
  if (osmosis_replication_base_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = osmosis_replication_base_url_;
    osmosis_replication_base_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void HeaderBlock::set_allocated_osmosis_replication_base_url(::std::string* osmosis_replication_base_url) {
  if (osmosis_replication_base_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete osmosis_replication_base_url_;
  }
  if (osmosis_replication_base_url) {
    set_has_osmosis_replication_base_url();
    osmosis_replication_base_url_ = osmosis_replication_base_url;
  } else {
    clear_has_osmosis_replication_base_url();
    osmosis_replication_base_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.HeaderBlock.osmosis_replication_base_url)
}

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

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBBox.left)
  return left_;
}
inline void HeaderBBox::set_left(::google::protobuf::int64 value) {
  set_has_left();
  left_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBBox.left)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBBox.right)
  return right_;
}
inline void HeaderBBox::set_right(::google::protobuf::int64 value) {
  set_has_right();
  right_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBBox.right)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBBox.top)
  return top_;
}
inline void HeaderBBox::set_top(::google::protobuf::int64 value) {
  set_has_top();
  top_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBBox.top)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.HeaderBBox.bottom)
  return bottom_;
}
inline void HeaderBBox::set_bottom(::google::protobuf::int64 value) {
  set_has_bottom();
  bottom_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.HeaderBBox.bottom)
}

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

// PrimitiveBlock

// required .OSMPBF.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_->::OSMPBF::StringTable::Clear();
  clear_has_stringtable();
}
inline const ::OSMPBF::StringTable& PrimitiveBlock::stringtable() const {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.stringtable)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return stringtable_ != NULL ? *stringtable_ : *default_instance().stringtable_;
#else
  return stringtable_ != NULL ? *stringtable_ : *default_instance_->stringtable_;
#endif
}
inline ::OSMPBF::StringTable* PrimitiveBlock::mutable_stringtable() {
  set_has_stringtable();
  if (stringtable_ == NULL) stringtable_ = new ::OSMPBF::StringTable;
  // @@protoc_insertion_point(field_mutable:OSMPBF.PrimitiveBlock.stringtable)
  return stringtable_;
}
inline ::OSMPBF::StringTable* PrimitiveBlock::release_stringtable() {
  clear_has_stringtable();
  ::OSMPBF::StringTable* temp = stringtable_;
  stringtable_ = NULL;
  return temp;
}
inline void PrimitiveBlock::set_allocated_stringtable(::OSMPBF::StringTable* stringtable) {
  delete stringtable_;
  stringtable_ = stringtable;
  if (stringtable) {
    set_has_stringtable();
  } else {
    clear_has_stringtable();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.PrimitiveBlock.stringtable)
}

// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
inline int PrimitiveBlock::primitivegroup_size() const {
  return primitivegroup_.size();
}
inline void PrimitiveBlock::clear_primitivegroup() {
  primitivegroup_.Clear();
}
inline const ::OSMPBF::PrimitiveGroup& PrimitiveBlock::primitivegroup(int index) const {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.primitivegroup)
  return primitivegroup_.Get(index);
}
inline ::OSMPBF::PrimitiveGroup* PrimitiveBlock::mutable_primitivegroup(int index) {
  // @@protoc_insertion_point(field_mutable:OSMPBF.PrimitiveBlock.primitivegroup)
  return primitivegroup_.Mutable(index);
}
inline ::OSMPBF::PrimitiveGroup* PrimitiveBlock::add_primitivegroup() {
  // @@protoc_insertion_point(field_add:OSMPBF.PrimitiveBlock.primitivegroup)
  return primitivegroup_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >&
PrimitiveBlock::primitivegroup() const {
  // @@protoc_insertion_point(field_list:OSMPBF.PrimitiveBlock.primitivegroup)
  return primitivegroup_;
}
inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >*
PrimitiveBlock::mutable_primitivegroup() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.PrimitiveBlock.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.granularity)
  return granularity_;
}
inline void PrimitiveBlock::set_granularity(::google::protobuf::int32 value) {
  set_has_granularity();
  granularity_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.PrimitiveBlock.granularity)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.lat_offset)
  return lat_offset_;
}
inline void PrimitiveBlock::set_lat_offset(::google::protobuf::int64 value) {
  set_has_lat_offset();
  lat_offset_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.PrimitiveBlock.lat_offset)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.lon_offset)
  return lon_offset_;
}
inline void PrimitiveBlock::set_lon_offset(::google::protobuf::int64 value) {
  set_has_lon_offset();
  lon_offset_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.PrimitiveBlock.lon_offset)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveBlock.date_granularity)
  return date_granularity_;
}
inline void PrimitiveBlock::set_date_granularity(::google::protobuf::int32 value) {
  set_has_date_granularity();
  date_granularity_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.PrimitiveBlock.date_granularity)
}

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

// PrimitiveGroup

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

// optional .OSMPBF.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_->::OSMPBF::DenseNodes::Clear();
  clear_has_dense();
}
inline const ::OSMPBF::DenseNodes& PrimitiveGroup::dense() const {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveGroup.dense)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return dense_ != NULL ? *dense_ : *default_instance().dense_;
#else
  return dense_ != NULL ? *dense_ : *default_instance_->dense_;
#endif
}
inline ::OSMPBF::DenseNodes* PrimitiveGroup::mutable_dense() {
  set_has_dense();
  if (dense_ == NULL) dense_ = new ::OSMPBF::DenseNodes;
  // @@protoc_insertion_point(field_mutable:OSMPBF.PrimitiveGroup.dense)
  return dense_;
}
inline ::OSMPBF::DenseNodes* PrimitiveGroup::release_dense() {
  clear_has_dense();
  ::OSMPBF::DenseNodes* temp = dense_;
  dense_ = NULL;
  return temp;
}
inline void PrimitiveGroup::set_allocated_dense(::OSMPBF::DenseNodes* dense) {
  delete dense_;
  dense_ = dense;
  if (dense) {
    set_has_dense();
  } else {
    clear_has_dense();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.PrimitiveGroup.dense)
}

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

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

// repeated .OSMPBF.ChangeSet changesets = 5;
inline int PrimitiveGroup::changesets_size() const {
  return changesets_.size();
}
inline void PrimitiveGroup::clear_changesets() {
  changesets_.Clear();
}
inline const ::OSMPBF::ChangeSet& PrimitiveGroup::changesets(int index) const {
  // @@protoc_insertion_point(field_get:OSMPBF.PrimitiveGroup.changesets)
  return changesets_.Get(index);
}
inline ::OSMPBF::ChangeSet* PrimitiveGroup::mutable_changesets(int index) {
  // @@protoc_insertion_point(field_mutable:OSMPBF.PrimitiveGroup.changesets)
  return changesets_.Mutable(index);
}
inline ::OSMPBF::ChangeSet* PrimitiveGroup::add_changesets() {
  // @@protoc_insertion_point(field_add:OSMPBF.PrimitiveGroup.changesets)
  return changesets_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >&
PrimitiveGroup::changesets() const {
  // @@protoc_insertion_point(field_list:OSMPBF.PrimitiveGroup.changesets)
  return changesets_;
}
inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >*
PrimitiveGroup::mutable_changesets() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.PrimitiveGroup.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.StringTable.s)
  return s_.Get(index);
}
inline ::std::string* StringTable::mutable_s(int index) {
  // @@protoc_insertion_point(field_mutable:OSMPBF.StringTable.s)
  return s_.Mutable(index);
}
inline void StringTable::set_s(int index, const ::std::string& value) {
  // @@protoc_insertion_point(field_set:OSMPBF.StringTable.s)
  s_.Mutable(index)->assign(value);
}
inline void StringTable::set_s(int index, const char* value) {
  s_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:OSMPBF.StringTable.s)
}
inline void StringTable::set_s(int index, const void* value, size_t size) {
  s_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:OSMPBF.StringTable.s)
}
inline ::std::string* StringTable::add_s() {
  return s_.Add();
}
inline void StringTable::add_s(const ::std::string& value) {
  s_.Add()->assign(value);
  // @@protoc_insertion_point(field_add:OSMPBF.StringTable.s)
}
inline void StringTable::add_s(const char* value) {
  s_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:OSMPBF.StringTable.s)
}
inline void StringTable::add_s(const void* value, size_t size) {
  s_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:OSMPBF.StringTable.s)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
StringTable::s() const {
  // @@protoc_insertion_point(field_list:OSMPBF.StringTable.s)
  return s_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
StringTable::mutable_s() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.StringTable.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.version)
  return version_;
}
inline void Info::set_version(::google::protobuf::int32 value) {
  set_has_version();
  version_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.version)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.timestamp)
  return timestamp_;
}
inline void Info::set_timestamp(::google::protobuf::int64 value) {
  set_has_timestamp();
  timestamp_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.timestamp)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.changeset)
  return changeset_;
}
inline void Info::set_changeset(::google::protobuf::int64 value) {
  set_has_changeset();
  changeset_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.changeset)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.uid)
  return uid_;
}
inline void Info::set_uid(::google::protobuf::int32 value) {
  set_has_uid();
  uid_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.uid)
}

// optional uint32 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_ = 0u;
  clear_has_user_sid();
}
inline ::google::protobuf::uint32 Info::user_sid() const {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.user_sid)
  return user_sid_;
}
inline void Info::set_user_sid(::google::protobuf::uint32 value) {
  set_has_user_sid();
  user_sid_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.user_sid)
}

// optional bool visible = 6;
inline bool Info::has_visible() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void Info::set_has_visible() {
  _has_bits_[0] |= 0x00000020u;
}
inline void Info::clear_has_visible() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void Info::clear_visible() {
  visible_ = false;
  clear_has_visible();
}
inline bool Info::visible() const {
  // @@protoc_insertion_point(field_get:OSMPBF.Info.visible)
  return visible_;
}
inline void Info::set_visible(bool value) {
  set_has_visible();
  visible_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Info.visible)
}

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

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.version)
  return version_.Get(index);
}
inline void DenseInfo::set_version(int index, ::google::protobuf::int32 value) {
  version_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.version)
}
inline void DenseInfo::add_version(::google::protobuf::int32 value) {
  version_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.version)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::version() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.version)
  return version_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_version() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.timestamp)
  return timestamp_.Get(index);
}
inline void DenseInfo::set_timestamp(int index, ::google::protobuf::int64 value) {
  timestamp_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.timestamp)
}
inline void DenseInfo::add_timestamp(::google::protobuf::int64 value) {
  timestamp_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.timestamp)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseInfo::timestamp() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.timestamp)
  return timestamp_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseInfo::mutable_timestamp() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.changeset)
  return changeset_.Get(index);
}
inline void DenseInfo::set_changeset(int index, ::google::protobuf::int64 value) {
  changeset_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.changeset)
}
inline void DenseInfo::add_changeset(::google::protobuf::int64 value) {
  changeset_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.changeset)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseInfo::changeset() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.changeset)
  return changeset_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseInfo::mutable_changeset() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.uid)
  return uid_.Get(index);
}
inline void DenseInfo::set_uid(int index, ::google::protobuf::int32 value) {
  uid_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.uid)
}
inline void DenseInfo::add_uid(::google::protobuf::int32 value) {
  uid_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.uid)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::uid() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.uid)
  return uid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_uid() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.user_sid)
  return user_sid_.Get(index);
}
inline void DenseInfo::set_user_sid(int index, ::google::protobuf::int32 value) {
  user_sid_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.user_sid)
}
inline void DenseInfo::add_user_sid(::google::protobuf::int32 value) {
  user_sid_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.user_sid)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseInfo::user_sid() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.user_sid)
  return user_sid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseInfo::mutable_user_sid() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.user_sid)
  return &user_sid_;
}

// repeated bool visible = 6 [packed = true];
inline int DenseInfo::visible_size() const {
  return visible_.size();
}
inline void DenseInfo::clear_visible() {
  visible_.Clear();
}
inline bool DenseInfo::visible(int index) const {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseInfo.visible)
  return visible_.Get(index);
}
inline void DenseInfo::set_visible(int index, bool value) {
  visible_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseInfo.visible)
}
inline void DenseInfo::add_visible(bool value) {
  visible_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseInfo.visible)
}
inline const ::google::protobuf::RepeatedField< bool >&
DenseInfo::visible() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseInfo.visible)
  return visible_;
}
inline ::google::protobuf::RepeatedField< bool >*
DenseInfo::mutable_visible() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseInfo.visible)
  return &visible_;
}

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

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.ChangeSet.id)
  return id_;
}
inline void ChangeSet::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.ChangeSet.id)
}

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

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.id)
  return id_;
}
inline void Node::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Node.id)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.keys)
  return keys_.Get(index);
}
inline void Node::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Node.keys)
}
inline void Node::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Node.keys)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Node::keys() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Node.keys)
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Node::mutable_keys() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Node.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.vals)
  return vals_.Get(index);
}
inline void Node::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Node.vals)
}
inline void Node::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Node.vals)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Node::vals() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Node.vals)
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Node::mutable_vals() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Node.vals)
  return &vals_;
}

// optional .OSMPBF.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_->::OSMPBF::Info::Clear();
  clear_has_info();
}
inline const ::OSMPBF::Info& Node::info() const {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.info)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return info_ != NULL ? *info_ : *default_instance().info_;
#else
  return info_ != NULL ? *info_ : *default_instance_->info_;
#endif
}
inline ::OSMPBF::Info* Node::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::OSMPBF::Info;
  // @@protoc_insertion_point(field_mutable:OSMPBF.Node.info)
  return info_;
}
inline ::OSMPBF::Info* Node::release_info() {
  clear_has_info();
  ::OSMPBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}
inline void Node::set_allocated_info(::OSMPBF::Info* info) {
  delete info_;
  info_ = info;
  if (info) {
    set_has_info();
  } else {
    clear_has_info();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.Node.info)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.lat)
  return lat_;
}
inline void Node::set_lat(::google::protobuf::int64 value) {
  set_has_lat();
  lat_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Node.lat)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Node.lon)
  return lon_;
}
inline void Node::set_lon(::google::protobuf::int64 value) {
  set_has_lon();
  lon_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Node.lon)
}

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

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseNodes.id)
  return id_.Get(index);
}
inline void DenseNodes::set_id(int index, ::google::protobuf::int64 value) {
  id_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseNodes.id)
}
inline void DenseNodes::add_id(::google::protobuf::int64 value) {
  id_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseNodes.id)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::id() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseNodes.id)
  return id_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_id() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseNodes.id)
  return &id_;
}

// optional .OSMPBF.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_->::OSMPBF::DenseInfo::Clear();
  clear_has_denseinfo();
}
inline const ::OSMPBF::DenseInfo& DenseNodes::denseinfo() const {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseNodes.denseinfo)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return denseinfo_ != NULL ? *denseinfo_ : *default_instance().denseinfo_;
#else
  return denseinfo_ != NULL ? *denseinfo_ : *default_instance_->denseinfo_;
#endif
}
inline ::OSMPBF::DenseInfo* DenseNodes::mutable_denseinfo() {
  set_has_denseinfo();
  if (denseinfo_ == NULL) denseinfo_ = new ::OSMPBF::DenseInfo;
  // @@protoc_insertion_point(field_mutable:OSMPBF.DenseNodes.denseinfo)
  return denseinfo_;
}
inline ::OSMPBF::DenseInfo* DenseNodes::release_denseinfo() {
  clear_has_denseinfo();
  ::OSMPBF::DenseInfo* temp = denseinfo_;
  denseinfo_ = NULL;
  return temp;
}
inline void DenseNodes::set_allocated_denseinfo(::OSMPBF::DenseInfo* denseinfo) {
  delete denseinfo_;
  denseinfo_ = denseinfo;
  if (denseinfo) {
    set_has_denseinfo();
  } else {
    clear_has_denseinfo();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.DenseNodes.denseinfo)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseNodes.lat)
  return lat_.Get(index);
}
inline void DenseNodes::set_lat(int index, ::google::protobuf::int64 value) {
  lat_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseNodes.lat)
}
inline void DenseNodes::add_lat(::google::protobuf::int64 value) {
  lat_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseNodes.lat)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::lat() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseNodes.lat)
  return lat_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_lat() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseNodes.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseNodes.lon)
  return lon_.Get(index);
}
inline void DenseNodes::set_lon(int index, ::google::protobuf::int64 value) {
  lon_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseNodes.lon)
}
inline void DenseNodes::add_lon(::google::protobuf::int64 value) {
  lon_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseNodes.lon)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
DenseNodes::lon() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseNodes.lon)
  return lon_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
DenseNodes::mutable_lon() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseNodes.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.DenseNodes.keys_vals)
  return keys_vals_.Get(index);
}
inline void DenseNodes::set_keys_vals(int index, ::google::protobuf::int32 value) {
  keys_vals_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.DenseNodes.keys_vals)
}
inline void DenseNodes::add_keys_vals(::google::protobuf::int32 value) {
  keys_vals_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.DenseNodes.keys_vals)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
DenseNodes::keys_vals() const {
  // @@protoc_insertion_point(field_list:OSMPBF.DenseNodes.keys_vals)
  return keys_vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
DenseNodes::mutable_keys_vals() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.DenseNodes.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Way.id)
  return id_;
}
inline void Way::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Way.id)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Way.keys)
  return keys_.Get(index);
}
inline void Way::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Way.keys)
}
inline void Way::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Way.keys)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Way::keys() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Way.keys)
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Way::mutable_keys() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Way.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Way.vals)
  return vals_.Get(index);
}
inline void Way::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Way.vals)
}
inline void Way::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Way.vals)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Way::vals() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Way.vals)
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Way::mutable_vals() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Way.vals)
  return &vals_;
}

// optional .OSMPBF.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_->::OSMPBF::Info::Clear();
  clear_has_info();
}
inline const ::OSMPBF::Info& Way::info() const {
  // @@protoc_insertion_point(field_get:OSMPBF.Way.info)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return info_ != NULL ? *info_ : *default_instance().info_;
#else
  return info_ != NULL ? *info_ : *default_instance_->info_;
#endif
}
inline ::OSMPBF::Info* Way::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::OSMPBF::Info;
  // @@protoc_insertion_point(field_mutable:OSMPBF.Way.info)
  return info_;
}
inline ::OSMPBF::Info* Way::release_info() {
  clear_has_info();
  ::OSMPBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}
inline void Way::set_allocated_info(::OSMPBF::Info* info) {
  delete info_;
  info_ = info;
  if (info) {
    set_has_info();
  } else {
    clear_has_info();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.Way.info)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Way.refs)
  return refs_.Get(index);
}
inline void Way::set_refs(int index, ::google::protobuf::int64 value) {
  refs_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Way.refs)
}
inline void Way::add_refs(::google::protobuf::int64 value) {
  refs_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Way.refs)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
Way::refs() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Way.refs)
  return refs_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
Way::mutable_refs() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Way.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.id)
  return id_;
}
inline void Relation::set_id(::google::protobuf::int64 value) {
  set_has_id();
  id_ = value;
  // @@protoc_insertion_point(field_set:OSMPBF.Relation.id)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.keys)
  return keys_.Get(index);
}
inline void Relation::set_keys(int index, ::google::protobuf::uint32 value) {
  keys_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Relation.keys)
}
inline void Relation::add_keys(::google::protobuf::uint32 value) {
  keys_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Relation.keys)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Relation::keys() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Relation.keys)
  return keys_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Relation::mutable_keys() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Relation.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.vals)
  return vals_.Get(index);
}
inline void Relation::set_vals(int index, ::google::protobuf::uint32 value) {
  vals_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Relation.vals)
}
inline void Relation::add_vals(::google::protobuf::uint32 value) {
  vals_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Relation.vals)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
Relation::vals() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Relation.vals)
  return vals_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
Relation::mutable_vals() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Relation.vals)
  return &vals_;
}

// optional .OSMPBF.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_->::OSMPBF::Info::Clear();
  clear_has_info();
}
inline const ::OSMPBF::Info& Relation::info() const {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.info)
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  return info_ != NULL ? *info_ : *default_instance().info_;
#else
  return info_ != NULL ? *info_ : *default_instance_->info_;
#endif
}
inline ::OSMPBF::Info* Relation::mutable_info() {
  set_has_info();
  if (info_ == NULL) info_ = new ::OSMPBF::Info;
  // @@protoc_insertion_point(field_mutable:OSMPBF.Relation.info)
  return info_;
}
inline ::OSMPBF::Info* Relation::release_info() {
  clear_has_info();
  ::OSMPBF::Info* temp = info_;
  info_ = NULL;
  return temp;
}
inline void Relation::set_allocated_info(::OSMPBF::Info* info) {
  delete info_;
  info_ = info;
  if (info) {
    set_has_info();
  } else {
    clear_has_info();
  }
  // @@protoc_insertion_point(field_set_allocated:OSMPBF.Relation.info)
}

// 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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.roles_sid)
  return roles_sid_.Get(index);
}
inline void Relation::set_roles_sid(int index, ::google::protobuf::int32 value) {
  roles_sid_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Relation.roles_sid)
}
inline void Relation::add_roles_sid(::google::protobuf::int32 value) {
  roles_sid_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Relation.roles_sid)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
Relation::roles_sid() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Relation.roles_sid)
  return roles_sid_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
Relation::mutable_roles_sid() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Relation.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 {
  // @@protoc_insertion_point(field_get:OSMPBF.Relation.memids)
  return memids_.Get(index);
}
inline void Relation::set_memids(int index, ::google::protobuf::int64 value) {
  memids_.Set(index, value);
  // @@protoc_insertion_point(field_set:OSMPBF.Relation.memids)
}
inline void Relation::add_memids(::google::protobuf::int64 value) {
  memids_.Add(value);
  // @@protoc_insertion_point(field_add:OSMPBF.Relation.memids)
}
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
Relation::memids() const {
  // @@protoc_insertion_point(field_list:OSMPBF.Relation.memids)
  return memids_;
}
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
Relation::mutable_memids() {
  // @@protoc_insertion_point(field_mutable_list:OSMPBF.Relation.memids)
  return &memids_;
}

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


// @@protoc_insertion_point(namespace_scope)

}  // namespace OSMPBF

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_osmformat_2eproto__INCLUDED
