Class Osmformat.DenseNodes.Builder

    • Method Detail

      • getDescriptor

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

        protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class proto4.GeneratedMessage.Builder<Osmformat.DenseNodes.Builder>
      • getDescriptorForType

        public proto4.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface proto4.Message.Builder
        Specified by:
        getDescriptorForType in interface proto4.MessageOrBuilder
        Overrides:
        getDescriptorForType in class proto4.GeneratedMessage.Builder<Osmformat.DenseNodes.Builder>
      • getDefaultInstanceForType

        public Osmformat.DenseNodes getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageOrBuilder
      • build

        public Osmformat.DenseNodes build()
        Specified by:
        build in interface proto4.Message.Builder
        Specified by:
        build in interface proto4.MessageLite.Builder
      • buildPartial

        public Osmformat.DenseNodes buildPartial()
        Specified by:
        buildPartial in interface proto4.Message.Builder
        Specified by:
        buildPartial in interface proto4.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface proto4.MessageLiteOrBuilder
        Overrides:
        isInitialized in class proto4.GeneratedMessage.Builder<Osmformat.DenseNodes.Builder>
      • mergeFrom

        public Osmformat.DenseNodes.Builder mergeFrom​(proto4.CodedInputStream input,
                                                      proto4.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface proto4.Message.Builder
        Specified by:
        mergeFrom in interface proto4.MessageLite.Builder
        Overrides:
        mergeFrom in class proto4.AbstractMessage.Builder<Osmformat.DenseNodes.Builder>
        Throws:
        IOException
      • getId

        public long getId​(int index)
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Specified by:
        getId in interface Osmformat.DenseNodesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The id at the given index.
      • setId

        public Osmformat.DenseNodes.Builder setId​(int index,
                                                  long value)
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The id to set.
        Returns:
        This builder for chaining.
      • addId

        public Osmformat.DenseNodes.Builder addId​(long value)
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Parameters:
        value - The id to add.
        Returns:
        This builder for chaining.
      • addAllId

        public Osmformat.DenseNodes.Builder addAllId​(Iterable<? extends Long> values)
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Parameters:
        values - The id to add.
        Returns:
        This builder for chaining.
      • clearId

        public Osmformat.DenseNodes.Builder clearId()
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Returns:
        This builder for chaining.
      • hasDenseinfo

        public boolean hasDenseinfo()
         repeated Info info = 4;
         
        optional .DenseInfo denseinfo = 5;
        Specified by:
        hasDenseinfo in interface Osmformat.DenseNodesOrBuilder
        Returns:
        Whether the denseinfo field is set.
      • getDenseinfoBuilder

        public Osmformat.DenseInfo.Builder getDenseinfoBuilder()
         repeated Info info = 4;
         
        optional .DenseInfo denseinfo = 5;
      • getLat

        public long getLat​(int index)
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Specified by:
        getLat in interface Osmformat.DenseNodesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The lat at the given index.
      • setLat

        public Osmformat.DenseNodes.Builder setLat​(int index,
                                                   long value)
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The lat to set.
        Returns:
        This builder for chaining.
      • addLat

        public Osmformat.DenseNodes.Builder addLat​(long value)
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Parameters:
        value - The lat to add.
        Returns:
        This builder for chaining.
      • addAllLat

        public Osmformat.DenseNodes.Builder addAllLat​(Iterable<? extends Long> values)
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Parameters:
        values - The lat to add.
        Returns:
        This builder for chaining.
      • clearLat

        public Osmformat.DenseNodes.Builder clearLat()
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Returns:
        This builder for chaining.
      • getLon

        public long getLon​(int index)
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Specified by:
        getLon in interface Osmformat.DenseNodesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The lon at the given index.
      • setLon

        public Osmformat.DenseNodes.Builder setLon​(int index,
                                                   long value)
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The lon to set.
        Returns:
        This builder for chaining.
      • addLon

        public Osmformat.DenseNodes.Builder addLon​(long value)
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Parameters:
        value - The lon to add.
        Returns:
        This builder for chaining.
      • addAllLon

        public Osmformat.DenseNodes.Builder addAllLon​(Iterable<? extends Long> values)
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Parameters:
        values - The lon to add.
        Returns:
        This builder for chaining.
      • clearLon

        public Osmformat.DenseNodes.Builder clearLon()
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Returns:
        This builder for chaining.
      • getKeysValsList

        public List<Integer> getKeysValsList()
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Specified by:
        getKeysValsList in interface Osmformat.DenseNodesOrBuilder
        Returns:
        A list containing the keysVals.
      • getKeysValsCount

        public int getKeysValsCount()
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Specified by:
        getKeysValsCount in interface Osmformat.DenseNodesOrBuilder
        Returns:
        The count of keysVals.
      • getKeysVals

        public int getKeysVals​(int index)
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Specified by:
        getKeysVals in interface Osmformat.DenseNodesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keysVals at the given index.
      • setKeysVals

        public Osmformat.DenseNodes.Builder setKeysVals​(int index,
                                                        int value)
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The keysVals to set.
        Returns:
        This builder for chaining.
      • addKeysVals

        public Osmformat.DenseNodes.Builder addKeysVals​(int value)
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Parameters:
        value - The keysVals to add.
        Returns:
        This builder for chaining.
      • addAllKeysVals

        public Osmformat.DenseNodes.Builder addAllKeysVals​(Iterable<? extends Integer> values)
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Parameters:
        values - The keysVals to add.
        Returns:
        This builder for chaining.
      • clearKeysVals

        public Osmformat.DenseNodes.Builder clearKeysVals()
         Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
         
        repeated int32 keys_vals = 10 [packed = true];
        Returns:
        This builder for chaining.