Package crosby.binary

Class Osmformat.Relation

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Osmformat.RelationOrBuilder, java.io.Serializable
    Enclosing class:
    Osmformat

    public static final class Osmformat.Relation
    extends com.google.protobuf.GeneratedMessageV3
    implements Osmformat.RelationOrBuilder
    Protobuf type OSMPBF.Relation
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • id_

        private long id_
      • keys_

        private com.google.protobuf.Internal.IntList keys_
      • keysMemoizedSerializedSize

        private int keysMemoizedSerializedSize
      • vals_

        private com.google.protobuf.Internal.IntList vals_
      • valsMemoizedSerializedSize

        private int valsMemoizedSerializedSize
      • rolesSid_

        private com.google.protobuf.Internal.IntList rolesSid_
      • rolesSidMemoizedSerializedSize

        private int rolesSidMemoizedSerializedSize
      • memids_

        private com.google.protobuf.Internal.LongList memids_
      • memidsMemoizedSerializedSize

        private int memidsMemoizedSerializedSize
      • types_

        private java.util.List<java.lang.Integer> types_
      • types_converter_

        private static final com.google.protobuf.Internal.ListAdapter.Converter<java.lang.Integer,​Osmformat.Relation.MemberType> types_converter_
      • typesMemoizedSerializedSize

        private int typesMemoizedSerializedSize
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • PARSER

        @Deprecated
        public static final com.google.protobuf.Parser<Osmformat.Relation> PARSER
        Deprecated.
    • Constructor Detail

      • Relation

        private Relation​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • Relation

        private Relation()
      • Relation

        private Relation​(com.google.protobuf.CodedInputStream input,
                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getKeysList

        public java.util.List<java.lang.Integer> getKeysList()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Specified by:
        getKeysList in interface Osmformat.RelationOrBuilder
        Returns:
        A list containing the keys.
      • getKeysCount

        public int getKeysCount()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Specified by:
        getKeysCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of keys.
      • getKeys

        public int getKeys​(int index)
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Specified by:
        getKeys in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keys at the given index.
      • getValsList

        public java.util.List<java.lang.Integer> getValsList()
        repeated uint32 vals = 3 [packed = true];
        Specified by:
        getValsList in interface Osmformat.RelationOrBuilder
        Returns:
        A list containing the vals.
      • getVals

        public int getVals​(int index)
        repeated uint32 vals = 3 [packed = true];
        Specified by:
        getVals in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The vals at the given index.
      • hasInfo

        public boolean hasInfo()
        optional .OSMPBF.Info info = 4;
        Specified by:
        hasInfo in interface Osmformat.RelationOrBuilder
        Returns:
        Whether the info field is set.
      • getRolesSidList

        public java.util.List<java.lang.Integer> getRolesSidList()
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Specified by:
        getRolesSidList in interface Osmformat.RelationOrBuilder
        Returns:
        A list containing the rolesSid.
      • getRolesSidCount

        public int getRolesSidCount()
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Specified by:
        getRolesSidCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of rolesSid.
      • getRolesSid

        public int getRolesSid​(int index)
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Specified by:
        getRolesSid in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The rolesSid at the given index.
      • getMemidsList

        public java.util.List<java.lang.Long> getMemidsList()
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Specified by:
        getMemidsList in interface Osmformat.RelationOrBuilder
        Returns:
        A list containing the memids.
      • getMemidsCount

        public int getMemidsCount()
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Specified by:
        getMemidsCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of memids.
      • getMemids

        public long getMemids​(int index)
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Specified by:
        getMemids in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The memids at the given index.
      • getTypesCount

        public int getTypesCount()
        repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
        Specified by:
        getTypesCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of types.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Osmformat.Relation parseFrom​(java.nio.ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(java.nio.ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(java.io.InputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.Relation parseFrom​(java.io.InputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Osmformat.Relation parseDelimitedFrom​(java.io.InputStream input)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Osmformat.Relation parseDelimitedFrom​(java.io.InputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.Relation parseFrom​(com.google.protobuf.CodedInputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.Relation parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Osmformat.Relation.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Osmformat.Relation.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Osmformat.Relation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Osmformat.Relation> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Osmformat.Relation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder