Class Osmformat.Relation

    • Method Detail

      • getDescriptor

        public static final proto4.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class proto4.GeneratedMessage
      • 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.
      • 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.
      • 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.
      • 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 .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 proto4.MessageLiteOrBuilder
        Overrides:
        isInitialized in class proto4.GeneratedMessage
      • writeTo

        public void writeTo​(proto4.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface proto4.MessageLite
        Overrides:
        writeTo in class proto4.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface proto4.MessageLite
        Overrides:
        getSerializedSize in class proto4.GeneratedMessage
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface proto4.Message
        Overrides:
        equals in class proto4.AbstractMessage
      • hashCode

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

        public static Osmformat.Relation parseFrom​(ByteBuffer data)
                                            throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.Relation parseFrom​(ByteBuffer data,
                                                   proto4.ExtensionRegistryLite extensionRegistry)
                                            throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        protected Osmformat.Relation.Builder newBuilderForType​(proto4.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class proto4.AbstractMessage
      • getParserForType

        public proto4.Parser<Osmformat.Relation> getParserForType()
        Specified by:
        getParserForType in interface proto4.Message
        Specified by:
        getParserForType in interface proto4.MessageLite
        Overrides:
        getParserForType in class proto4.GeneratedMessage
      • getDefaultInstanceForType

        public Osmformat.Relation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageOrBuilder