Package crosby.binary

Class Osmformat.DenseNodes.Builder

    • Field Detail

      • bitField0_

        private int bitField0_
      • id_

        private com.google.protobuf.Internal.LongList id_
      • lat_

        private com.google.protobuf.Internal.LongList lat_
      • lon_

        private com.google.protobuf.Internal.LongList lon_
      • keysVals_

        private com.google.protobuf.Internal.IntList keysVals_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • Method Detail

      • 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.Builder<Osmformat.DenseNodes.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public Osmformat.DenseNodes.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • getDefaultInstanceForType

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

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

        public Osmformat.DenseNodes buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Osmformat.DenseNodes.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • setField

        public Osmformat.DenseNodes.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • clearField

        public Osmformat.DenseNodes.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • clearOneof

        public Osmformat.DenseNodes.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • setRepeatedField

        public Osmformat.DenseNodes.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • addRepeatedField

        public Osmformat.DenseNodes.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • mergeFrom

        public Osmformat.DenseNodes.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Osmformat.DenseNodes.Builder>
        Throws:
        java.io.IOException
      • ensureIdIsMutable

        private void ensureIdIsMutable()
      • getIdList

        public java.util.List<java.lang.Long> getIdList()
         DELTA coded
         
        repeated sint64 id = 1 [packed = true];
        Specified by:
        getIdList in interface Osmformat.DenseNodesOrBuilder
        Returns:
        A list containing the id.
      • 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​(java.lang.Iterable<? extends java.lang.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()
        optional .OSMPBF.DenseInfo denseinfo = 5;
        Specified by:
        hasDenseinfo in interface Osmformat.DenseNodesOrBuilder
        Returns:
        Whether the denseinfo field is set.
      • ensureLatIsMutable

        private void ensureLatIsMutable()
      • getLatList

        public java.util.List<java.lang.Long> getLatList()
         DELTA coded
         
        repeated sint64 lat = 8 [packed = true];
        Specified by:
        getLatList in interface Osmformat.DenseNodesOrBuilder
        Returns:
        A list containing the lat.
      • 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​(java.lang.Iterable<? extends java.lang.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.
      • ensureLonIsMutable

        private void ensureLonIsMutable()
      • getLonList

        public java.util.List<java.lang.Long> getLonList()
         DELTA coded
         
        repeated sint64 lon = 9 [packed = true];
        Specified by:
        getLonList in interface Osmformat.DenseNodesOrBuilder
        Returns:
        A list containing the lon.
      • 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​(java.lang.Iterable<? extends java.lang.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.
      • ensureKeysValsIsMutable

        private void ensureKeysValsIsMutable()
      • getKeysValsList

        public java.util.List<java.lang.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​(java.lang.Iterable<? extends java.lang.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.
      • setUnknownFields

        public final Osmformat.DenseNodes.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>
      • mergeUnknownFields

        public final Osmformat.DenseNodes.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.DenseNodes.Builder>