osmpbf

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package osmpbf is a generated protocol buffer package.

It is generated from these files:

parser/pbf/internal/osmpbf/fileformat.proto

It has these top-level messages:

Blob
BlobHeader

Package osmpbf is a generated protocol buffer package.

It is generated from these files:

parser/pbf/internal/osmpbf/osmformat.proto

It has these top-level messages:

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

Index

Constants

View Source
const Default_Info_Version int32 = -1
View Source
const Default_PrimitiveBlock_DateGranularity int32 = 1000
View Source
const Default_PrimitiveBlock_Granularity int32 = 100
View Source
const Default_PrimitiveBlock_LatOffset int64 = 0
View Source
const Default_PrimitiveBlock_LonOffset int64 = 0

Variables

View Source
var (
	ErrInvalidLengthFileformat = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFileformat   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthOsmformat = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOsmformat   = fmt.Errorf("proto: integer overflow")
)
View Source
var Relation_MemberType_name = map[int32]string{
	0: "NODE",
	1: "WAY",
	2: "RELATION",
}
View Source
var Relation_MemberType_value = map[string]int32{
	"NODE":     0,
	"WAY":      1,
	"RELATION": 2,
}

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Raw     []byte `protobuf:"bytes,1,opt,name=raw" json:"raw"`
	RawSize int32  `protobuf:"varint,2,opt,name=raw_size,json=rawSize" json:"raw_size"`
	// Possible compressed versions of the data.
	ZlibData []byte `protobuf:"bytes,3,opt,name=zlib_data,json=zlibData" json:"zlib_data"`
	// PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
	LzmaData []byte `protobuf:"bytes,4,opt,name=lzma_data,json=lzmaData" json:"lzma_data"`
	// Formerly used for bzip2 compressed data. Depreciated in 2010.
	OBSOLETEBzip2Data []byte `protobuf:"bytes,5,opt,name=OBSOLETE_bzip2_data,json=OBSOLETEBzip2Data" json:"OBSOLETE_bzip2_data"`
}

func (*Blob) Descriptor

func (*Blob) Descriptor() ([]byte, []int)

func (*Blob) GetLzmaData

func (m *Blob) GetLzmaData() []byte

func (*Blob) GetOBSOLETEBzip2Data

func (m *Blob) GetOBSOLETEBzip2Data() []byte

func (*Blob) GetRaw

func (m *Blob) GetRaw() []byte

func (*Blob) GetRawSize

func (m *Blob) GetRawSize() int32

func (*Blob) GetZlibData

func (m *Blob) GetZlibData() []byte

func (*Blob) Marshal

func (m *Blob) Marshal() (dAtA []byte, err error)

func (*Blob) MarshalTo

func (m *Blob) MarshalTo(dAtA []byte) (int, error)

func (*Blob) ProtoMessage

func (*Blob) ProtoMessage()

func (*Blob) Reset

func (m *Blob) Reset()

func (*Blob) Size

func (m *Blob) Size() (n int)

func (*Blob) String

func (m *Blob) String() string

func (*Blob) Unmarshal

func (m *Blob) Unmarshal(dAtA []byte) error

type BlobHeader

type BlobHeader struct {
	Type      string `protobuf:"bytes,1,req,name=type" json:"type"`
	Indexdata []byte `protobuf:"bytes,2,opt,name=indexdata" json:"indexdata"`
	Datasize  int32  `protobuf:"varint,3,req,name=datasize" json:"datasize"`
}

func (*BlobHeader) Descriptor

func (*BlobHeader) Descriptor() ([]byte, []int)

func (*BlobHeader) GetDatasize

func (m *BlobHeader) GetDatasize() int32

func (*BlobHeader) GetIndexdata

func (m *BlobHeader) GetIndexdata() []byte

func (*BlobHeader) GetType

func (m *BlobHeader) GetType() string

func (*BlobHeader) Marshal

func (m *BlobHeader) Marshal() (dAtA []byte, err error)

func (*BlobHeader) MarshalTo

func (m *BlobHeader) MarshalTo(dAtA []byte) (int, error)

func (*BlobHeader) ProtoMessage

func (*BlobHeader) ProtoMessage()

func (*BlobHeader) Reset

func (m *BlobHeader) Reset()

func (*BlobHeader) Size

func (m *BlobHeader) Size() (n int)

func (*BlobHeader) String

func (m *BlobHeader) String() string

func (*BlobHeader) Unmarshal

func (m *BlobHeader) Unmarshal(dAtA []byte) error

type ChangeSet

type ChangeSet struct {
	Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
}

THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. TODO: REMOVE THIS?

func (*ChangeSet) Descriptor

func (*ChangeSet) Descriptor() ([]byte, []int)

func (*ChangeSet) GetId

func (m *ChangeSet) GetId() int64

func (*ChangeSet) Marshal

func (m *ChangeSet) Marshal() (dAtA []byte, err error)

func (*ChangeSet) MarshalTo

func (m *ChangeSet) MarshalTo(dAtA []byte) (int, error)

func (*ChangeSet) ProtoMessage

func (*ChangeSet) ProtoMessage()

func (*ChangeSet) Reset

func (m *ChangeSet) Reset()

func (*ChangeSet) Size

func (m *ChangeSet) Size() (n int)

func (*ChangeSet) String

func (m *ChangeSet) String() string

func (*ChangeSet) Unmarshal

func (m *ChangeSet) Unmarshal(dAtA []byte) error

type DenseInfo

type DenseInfo struct {
	Version   []int32 `protobuf:"varint,1,rep,packed,name=version" json:"version,omitempty"`
	Timestamp []int64 `protobuf:"zigzag64,2,rep,packed,name=timestamp" json:"timestamp,omitempty"`
	Changeset []int64 `protobuf:"zigzag64,3,rep,packed,name=changeset" json:"changeset,omitempty"`
	Uid       []int32 `protobuf:"zigzag32,4,rep,packed,name=uid" json:"uid,omitempty"`
	UserSid   []int32 `protobuf:"zigzag32,5,rep,packed,name=user_sid,json=userSid" json:"user_sid,omitempty"`
	// The visible flag is used to store history information. It indicates that
	// the current object version has been created by a delete operation on the
	// OSM API.
	// When a writer sets this flag, it MUST add a required_features tag with
	// value "HistoricalInformation" to the HeaderBlock.
	// If this flag is not available for some object it MUST be assumed to be
	// true if the file has the required_features tag "HistoricalInformation"
	// set.
	Visible []bool `protobuf:"varint,6,rep,packed,name=visible" json:"visible,omitempty"`
}

* Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.

func (*DenseInfo) Descriptor

func (*DenseInfo) Descriptor() ([]byte, []int)

func (*DenseInfo) GetChangeset

func (m *DenseInfo) GetChangeset() []int64

func (*DenseInfo) GetTimestamp

func (m *DenseInfo) GetTimestamp() []int64

func (*DenseInfo) GetUid

func (m *DenseInfo) GetUid() []int32

func (*DenseInfo) GetUserSid

func (m *DenseInfo) GetUserSid() []int32

func (*DenseInfo) GetVersion

func (m *DenseInfo) GetVersion() []int32

func (*DenseInfo) GetVisible

func (m *DenseInfo) GetVisible() []bool

func (*DenseInfo) Marshal

func (m *DenseInfo) Marshal() (dAtA []byte, err error)

func (*DenseInfo) MarshalTo

func (m *DenseInfo) MarshalTo(dAtA []byte) (int, error)

func (*DenseInfo) ProtoMessage

func (*DenseInfo) ProtoMessage()

func (*DenseInfo) Reset

func (m *DenseInfo) Reset()

func (*DenseInfo) Size

func (m *DenseInfo) Size() (n int)

func (*DenseInfo) String

func (m *DenseInfo) String() string

func (*DenseInfo) Unmarshal

func (m *DenseInfo) Unmarshal(dAtA []byte) error

type DenseNodes

type DenseNodes struct {
	Id []int64 `protobuf:"zigzag64,1,rep,packed,name=id" json:"id,omitempty"`
	// repeated Info info = 4;
	Denseinfo *DenseInfo `protobuf:"bytes,5,opt,name=denseinfo" json:"denseinfo,omitempty"`
	Lat       []int64    `protobuf:"zigzag64,8,rep,packed,name=lat" json:"lat,omitempty"`
	Lon       []int64    `protobuf:"zigzag64,9,rep,packed,name=lon" json:"lon,omitempty"`
	// Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
	KeysVals []int32 `protobuf:"varint,10,rep,packed,name=keys_vals,json=keysVals" json:"keys_vals,omitempty"`
}

func (*DenseNodes) Descriptor

func (*DenseNodes) Descriptor() ([]byte, []int)

func (*DenseNodes) GetDenseinfo

func (m *DenseNodes) GetDenseinfo() *DenseInfo

func (*DenseNodes) GetId

func (m *DenseNodes) GetId() []int64

func (*DenseNodes) GetKeysVals

func (m *DenseNodes) GetKeysVals() []int32

func (*DenseNodes) GetLat

func (m *DenseNodes) GetLat() []int64

func (*DenseNodes) GetLon

func (m *DenseNodes) GetLon() []int64

func (*DenseNodes) Marshal

func (m *DenseNodes) Marshal() (dAtA []byte, err error)

func (*DenseNodes) MarshalTo

func (m *DenseNodes) MarshalTo(dAtA []byte) (int, error)

func (*DenseNodes) ProtoMessage

func (*DenseNodes) ProtoMessage()

func (*DenseNodes) Reset

func (m *DenseNodes) Reset()

func (*DenseNodes) Size

func (m *DenseNodes) Size() (n int)

func (*DenseNodes) String

func (m *DenseNodes) String() string

func (*DenseNodes) Unmarshal

func (m *DenseNodes) Unmarshal(dAtA []byte) error

type HeaderBBox

type HeaderBBox struct {
	Left   int64 `protobuf:"zigzag64,1,req,name=left" json:"left"`
	Right  int64 `protobuf:"zigzag64,2,req,name=right" json:"right"`
	Top    int64 `protobuf:"zigzag64,3,req,name=top" json:"top"`
	Bottom int64 `protobuf:"zigzag64,4,req,name=bottom" json:"bottom"`
}

func (*HeaderBBox) Descriptor

func (*HeaderBBox) Descriptor() ([]byte, []int)

func (*HeaderBBox) GetBottom

func (m *HeaderBBox) GetBottom() int64

func (*HeaderBBox) GetLeft

func (m *HeaderBBox) GetLeft() int64

func (*HeaderBBox) GetRight

func (m *HeaderBBox) GetRight() int64

func (*HeaderBBox) GetTop

func (m *HeaderBBox) GetTop() int64

func (*HeaderBBox) Marshal

func (m *HeaderBBox) Marshal() (dAtA []byte, err error)

func (*HeaderBBox) MarshalTo

func (m *HeaderBBox) MarshalTo(dAtA []byte) (int, error)

func (*HeaderBBox) ProtoMessage

func (*HeaderBBox) ProtoMessage()

func (*HeaderBBox) Reset

func (m *HeaderBBox) Reset()

func (*HeaderBBox) Size

func (m *HeaderBBox) Size() (n int)

func (*HeaderBBox) String

func (m *HeaderBBox) String() string

func (*HeaderBBox) Unmarshal

func (m *HeaderBBox) Unmarshal(dAtA []byte) error

type HeaderBlock

type HeaderBlock struct {
	Bbox *HeaderBBox `protobuf:"bytes,1,opt,name=bbox" json:"bbox,omitempty"`
	// Additional tags to aid in parsing this dataset
	RequiredFeatures []string `protobuf:"bytes,4,rep,name=required_features,json=requiredFeatures" json:"required_features,omitempty"`
	OptionalFeatures []string `protobuf:"bytes,5,rep,name=optional_features,json=optionalFeatures" json:"optional_features,omitempty"`
	Writingprogram   string   `protobuf:"bytes,16,opt,name=writingprogram" json:"writingprogram"`
	Source           string   `protobuf:"bytes,17,opt,name=source" json:"source"`
	// replication timestamp, expressed in seconds since the epoch,
	// otherwise the same value as in the "timestamp=..." field
	// in the state.txt file used by Osmosis
	OsmosisReplicationTimestamp int64 `` /* 129-byte string literal not displayed */
	// replication sequence number (sequenceNumber in state.txt)
	OsmosisReplicationSequenceNumber int64 `` /* 146-byte string literal not displayed */
	// replication base URL (from Osmosis' configuration.txt file)
	OsmosisReplicationBaseUrl string `protobuf:"bytes,34,opt,name=osmosis_replication_base_url,json=osmosisReplicationBaseUrl" json:"osmosis_replication_base_url"`
}

func (*HeaderBlock) Descriptor

func (*HeaderBlock) Descriptor() ([]byte, []int)

func (*HeaderBlock) GetBbox

func (m *HeaderBlock) GetBbox() *HeaderBBox

func (*HeaderBlock) GetOptionalFeatures

func (m *HeaderBlock) GetOptionalFeatures() []string

func (*HeaderBlock) GetOsmosisReplicationBaseUrl

func (m *HeaderBlock) GetOsmosisReplicationBaseUrl() string

func (*HeaderBlock) GetOsmosisReplicationSequenceNumber

func (m *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64

func (*HeaderBlock) GetOsmosisReplicationTimestamp

func (m *HeaderBlock) GetOsmosisReplicationTimestamp() int64

func (*HeaderBlock) GetRequiredFeatures

func (m *HeaderBlock) GetRequiredFeatures() []string

func (*HeaderBlock) GetSource

func (m *HeaderBlock) GetSource() string

func (*HeaderBlock) GetWritingprogram

func (m *HeaderBlock) GetWritingprogram() string

func (*HeaderBlock) Marshal

func (m *HeaderBlock) Marshal() (dAtA []byte, err error)

func (*HeaderBlock) MarshalTo

func (m *HeaderBlock) MarshalTo(dAtA []byte) (int, error)

func (*HeaderBlock) ProtoMessage

func (*HeaderBlock) ProtoMessage()

func (*HeaderBlock) Reset

func (m *HeaderBlock) Reset()

func (*HeaderBlock) Size

func (m *HeaderBlock) Size() (n int)

func (*HeaderBlock) String

func (m *HeaderBlock) String() string

func (*HeaderBlock) Unmarshal

func (m *HeaderBlock) Unmarshal(dAtA []byte) error

type Info

type Info struct {
	Version   *int32 `protobuf:"varint,1,opt,name=version,def=-1" json:"version,omitempty"`
	Timestamp int64  `protobuf:"varint,2,opt,name=timestamp" json:"timestamp"`
	Changeset int64  `protobuf:"varint,3,opt,name=changeset" json:"changeset"`
	Uid       int32  `protobuf:"varint,4,opt,name=uid" json:"uid"`
	UserSid   uint32 `protobuf:"varint,5,opt,name=user_sid,json=userSid" json:"user_sid"`
	// The visible flag is used to store history information. It indicates that
	// the current object version has been created by a delete operation on the
	// OSM API.
	// When a writer sets this flag, it MUST add a required_features tag with
	// value "HistoricalInformation" to the HeaderBlock.
	// If this flag is not available for some object it MUST be assumed to be
	// true if the file has the required_features tag "HistoricalInformation"
	// set.
	Visible bool `protobuf:"varint,6,opt,name=visible" json:"visible"`
}

Optional metadata that may be included into each primitive.

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetChangeset

func (m *Info) GetChangeset() int64

func (*Info) GetTimestamp

func (m *Info) GetTimestamp() int64

func (*Info) GetUid

func (m *Info) GetUid() int32

func (*Info) GetUserSid

func (m *Info) GetUserSid() uint32

func (*Info) GetVersion

func (m *Info) GetVersion() int32

func (*Info) GetVisible

func (m *Info) GetVisible() bool

func (*Info) Marshal

func (m *Info) Marshal() (dAtA []byte, err error)

func (*Info) MarshalTo

func (m *Info) MarshalTo(dAtA []byte) (int, error)

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

func (m *Info) Size() (n int)

func (*Info) String

func (m *Info) String() string

func (*Info) Unmarshal

func (m *Info) Unmarshal(dAtA []byte) error

type Node

type Node struct {
	Id int64 `protobuf:"zigzag64,1,req,name=id" json:"id"`
	// Parallel arrays.
	Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
	Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
	Info Info     `protobuf:"bytes,4,opt,name=info" json:"info"`
	Lat  int64    `protobuf:"zigzag64,8,req,name=lat" json:"lat"`
	Lon  int64    `protobuf:"zigzag64,9,req,name=lon" json:"lon"`
}

func (*Node) Descriptor

func (*Node) Descriptor() ([]byte, []int)

func (*Node) GetId

func (m *Node) GetId() int64

func (*Node) GetInfo

func (m *Node) GetInfo() Info

func (*Node) GetKeys

func (m *Node) GetKeys() []uint32

func (*Node) GetLat

func (m *Node) GetLat() int64

func (*Node) GetLon

func (m *Node) GetLon() int64

func (*Node) GetVals

func (m *Node) GetVals() []uint32

func (*Node) Marshal

func (m *Node) Marshal() (dAtA []byte, err error)

func (*Node) MarshalTo

func (m *Node) MarshalTo(dAtA []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal

func (m *Node) Unmarshal(dAtA []byte) error

type PrimitiveBlock

type PrimitiveBlock struct {
	Stringtable    *StringTable      `protobuf:"bytes,1,req,name=stringtable" json:"stringtable,omitempty"`
	Primitivegroup []*PrimitiveGroup `protobuf:"bytes,2,rep,name=primitivegroup" json:"primitivegroup,omitempty"`
	// Granularity, units of nanodegrees, used to store coordinates in this block
	Granularity *int32 `protobuf:"varint,17,opt,name=granularity,def=100" json:"granularity,omitempty"`
	// Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
	LatOffset *int64 `protobuf:"varint,19,opt,name=lat_offset,json=latOffset,def=0" json:"lat_offset,omitempty"`
	LonOffset *int64 `protobuf:"varint,20,opt,name=lon_offset,json=lonOffset,def=0" json:"lon_offset,omitempty"`
	// Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
	DateGranularity *int32 `protobuf:"varint,18,opt,name=date_granularity,json=dateGranularity,def=1000" json:"date_granularity,omitempty"`
}

func (*PrimitiveBlock) Descriptor

func (*PrimitiveBlock) Descriptor() ([]byte, []int)

func (*PrimitiveBlock) GetDateGranularity

func (m *PrimitiveBlock) GetDateGranularity() int32

func (*PrimitiveBlock) GetGranularity

func (m *PrimitiveBlock) GetGranularity() int32

func (*PrimitiveBlock) GetLatOffset

func (m *PrimitiveBlock) GetLatOffset() int64

func (*PrimitiveBlock) GetLonOffset

func (m *PrimitiveBlock) GetLonOffset() int64

func (*PrimitiveBlock) GetPrimitivegroup

func (m *PrimitiveBlock) GetPrimitivegroup() []*PrimitiveGroup

func (*PrimitiveBlock) GetStringtable

func (m *PrimitiveBlock) GetStringtable() *StringTable

func (*PrimitiveBlock) Marshal

func (m *PrimitiveBlock) Marshal() (dAtA []byte, err error)

func (*PrimitiveBlock) MarshalTo

func (m *PrimitiveBlock) MarshalTo(dAtA []byte) (int, error)

func (*PrimitiveBlock) ProtoMessage

func (*PrimitiveBlock) ProtoMessage()

func (*PrimitiveBlock) Reset

func (m *PrimitiveBlock) Reset()

func (*PrimitiveBlock) Size

func (m *PrimitiveBlock) Size() (n int)

func (*PrimitiveBlock) String

func (m *PrimitiveBlock) String() string

func (*PrimitiveBlock) Unmarshal

func (m *PrimitiveBlock) Unmarshal(dAtA []byte) error

type PrimitiveGroup

type PrimitiveGroup struct {
	Nodes      []Node      `protobuf:"bytes,1,rep,name=nodes" json:"nodes"`
	Dense      *DenseNodes `protobuf:"bytes,2,opt,name=dense" json:"dense,omitempty"`
	Ways       []Way       `protobuf:"bytes,3,rep,name=ways" json:"ways"`
	Relations  []Relation  `protobuf:"bytes,4,rep,name=relations" json:"relations"`
	Changesets []ChangeSet `protobuf:"bytes,5,rep,name=changesets" json:"changesets"`
}

Group of OSMPrimitives. All primitives in a group must be the same type.

func (*PrimitiveGroup) Descriptor

func (*PrimitiveGroup) Descriptor() ([]byte, []int)

func (*PrimitiveGroup) GetChangesets

func (m *PrimitiveGroup) GetChangesets() []ChangeSet

func (*PrimitiveGroup) GetDense

func (m *PrimitiveGroup) GetDense() *DenseNodes

func (*PrimitiveGroup) GetNodes

func (m *PrimitiveGroup) GetNodes() []Node

func (*PrimitiveGroup) GetRelations

func (m *PrimitiveGroup) GetRelations() []Relation

func (*PrimitiveGroup) GetWays

func (m *PrimitiveGroup) GetWays() []Way

func (*PrimitiveGroup) Marshal

func (m *PrimitiveGroup) Marshal() (dAtA []byte, err error)

func (*PrimitiveGroup) MarshalTo

func (m *PrimitiveGroup) MarshalTo(dAtA []byte) (int, error)

func (*PrimitiveGroup) ProtoMessage

func (*PrimitiveGroup) ProtoMessage()

func (*PrimitiveGroup) Reset

func (m *PrimitiveGroup) Reset()

func (*PrimitiveGroup) Size

func (m *PrimitiveGroup) Size() (n int)

func (*PrimitiveGroup) String

func (m *PrimitiveGroup) String() string

func (*PrimitiveGroup) Unmarshal

func (m *PrimitiveGroup) Unmarshal(dAtA []byte) error

type Relation

type Relation struct {
	Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
	// Parallel arrays.
	Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
	Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
	Info Info     `protobuf:"bytes,4,opt,name=info" json:"info"`
	// Parallel arrays
	RolesSid []int32               `protobuf:"varint,8,rep,packed,name=roles_sid,json=rolesSid" json:"roles_sid,omitempty"`
	Memids   []int64               `protobuf:"zigzag64,9,rep,packed,name=memids" json:"memids,omitempty"`
	Types    []Relation_MemberType `protobuf:"varint,10,rep,packed,name=types,enum=osmpbf.Relation_MemberType" json:"types,omitempty"`
}

func (*Relation) Descriptor

func (*Relation) Descriptor() ([]byte, []int)

func (*Relation) GetId

func (m *Relation) GetId() int64

func (*Relation) GetInfo

func (m *Relation) GetInfo() Info

func (*Relation) GetKeys

func (m *Relation) GetKeys() []uint32

func (*Relation) GetMemids

func (m *Relation) GetMemids() []int64

func (*Relation) GetRolesSid

func (m *Relation) GetRolesSid() []int32

func (*Relation) GetTypes

func (m *Relation) GetTypes() []Relation_MemberType

func (*Relation) GetVals

func (m *Relation) GetVals() []uint32

func (*Relation) Marshal

func (m *Relation) Marshal() (dAtA []byte, err error)

func (*Relation) MarshalTo

func (m *Relation) MarshalTo(dAtA []byte) (int, error)

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) Reset

func (m *Relation) Reset()

func (*Relation) Size

func (m *Relation) Size() (n int)

func (*Relation) String

func (m *Relation) String() string

func (*Relation) Unmarshal

func (m *Relation) Unmarshal(dAtA []byte) error

type Relation_MemberType

type Relation_MemberType int32
const (
	Relation_NODE     Relation_MemberType = 0
	Relation_WAY      Relation_MemberType = 1
	Relation_RELATION Relation_MemberType = 2
)

func (Relation_MemberType) Enum

func (Relation_MemberType) EnumDescriptor

func (Relation_MemberType) EnumDescriptor() ([]byte, []int)

func (Relation_MemberType) String

func (x Relation_MemberType) String() string

func (*Relation_MemberType) UnmarshalJSON

func (x *Relation_MemberType) UnmarshalJSON(data []byte) error

type StringTable

type StringTable struct {
	S [][]byte `protobuf:"bytes,1,rep,name=s" json:"s,omitempty"`
}

* String table, contains the common strings in each block.

Note that we reserve index '0' as a delimiter, so the entry at that index in the table is ALWAYS blank and unused.

func (*StringTable) Descriptor

func (*StringTable) Descriptor() ([]byte, []int)

func (*StringTable) GetS

func (m *StringTable) GetS() [][]byte

func (*StringTable) Marshal

func (m *StringTable) Marshal() (dAtA []byte, err error)

func (*StringTable) MarshalTo

func (m *StringTable) MarshalTo(dAtA []byte) (int, error)

func (*StringTable) ProtoMessage

func (*StringTable) ProtoMessage()

func (*StringTable) Reset

func (m *StringTable) Reset()

func (*StringTable) Size

func (m *StringTable) Size() (n int)

func (*StringTable) String

func (m *StringTable) String() string

func (*StringTable) Unmarshal

func (m *StringTable) Unmarshal(dAtA []byte) error

type Way

type Way struct {
	Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
	// Parallel arrays.
	Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
	Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
	Info Info     `protobuf:"bytes,4,opt,name=info" json:"info"`
	Refs []int64  `protobuf:"zigzag64,8,rep,packed,name=refs" json:"refs,omitempty"`
}

func (*Way) Descriptor

func (*Way) Descriptor() ([]byte, []int)

func (*Way) GetId

func (m *Way) GetId() int64

func (*Way) GetInfo

func (m *Way) GetInfo() Info

func (*Way) GetKeys

func (m *Way) GetKeys() []uint32

func (*Way) GetRefs

func (m *Way) GetRefs() []int64

func (*Way) GetVals

func (m *Way) GetVals() []uint32

func (*Way) Marshal

func (m *Way) Marshal() (dAtA []byte, err error)

func (*Way) MarshalTo

func (m *Way) MarshalTo(dAtA []byte) (int, error)

func (*Way) ProtoMessage

func (*Way) ProtoMessage()

func (*Way) Reset

func (m *Way) Reset()

func (*Way) Size

func (m *Way) Size() (n int)

func (*Way) String

func (m *Way) String() string

func (*Way) Unmarshal

func (m *Way) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL