Class Osmformat.Node.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.Node.Builder>
      • clear

        public Osmformat.Node.Builder clear()
        Specified by:
        clear in interface proto4.Message.Builder
        Specified by:
        clear in interface proto4.MessageLite.Builder
        Overrides:
        clear in class proto4.GeneratedMessage.Builder<Osmformat.Node.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.Node.Builder>
      • getDefaultInstanceForType

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

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

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

        public Osmformat.Node.Builder mergeFrom​(proto4.Message other)
        Specified by:
        mergeFrom in interface proto4.Message.Builder
        Overrides:
        mergeFrom in class proto4.AbstractMessage.Builder<Osmformat.Node.Builder>
      • isInitialized

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

        public Osmformat.Node.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.Node.Builder>
        Throws:
        IOException
      • hasId

        public boolean hasId()
        required sint64 id = 1;
        Specified by:
        hasId in interface Osmformat.NodeOrBuilder
        Returns:
        Whether the id field is set.
      • setId

        public Osmformat.Node.Builder setId​(long value)
        required sint64 id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Osmformat.Node.Builder clearId()
        required sint64 id = 1;
        Returns:
        This builder for chaining.
      • getKeysCount

        public int getKeysCount()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Specified by:
        getKeysCount in interface Osmformat.NodeOrBuilder
        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.NodeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keys at the given index.
      • setKeys

        public Osmformat.Node.Builder setKeys​(int index,
                                              int value)
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The keys to set.
        Returns:
        This builder for chaining.
      • addKeys

        public Osmformat.Node.Builder addKeys​(int value)
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Parameters:
        value - The keys to add.
        Returns:
        This builder for chaining.
      • addAllKeys

        public Osmformat.Node.Builder addAllKeys​(Iterable<? extends Integer> values)
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Parameters:
        values - The keys to add.
        Returns:
        This builder for chaining.
      • clearKeys

        public Osmformat.Node.Builder clearKeys()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Returns:
        This builder for chaining.
      • getValsCount

        public int getValsCount()
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Specified by:
        getValsCount in interface Osmformat.NodeOrBuilder
        Returns:
        The count of vals.
      • getVals

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

        public Osmformat.Node.Builder setVals​(int index,
                                              int value)
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The vals to set.
        Returns:
        This builder for chaining.
      • addVals

        public Osmformat.Node.Builder addVals​(int value)
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Parameters:
        value - The vals to add.
        Returns:
        This builder for chaining.
      • addAllVals

        public Osmformat.Node.Builder addAllVals​(Iterable<? extends Integer> values)
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Parameters:
        values - The vals to add.
        Returns:
        This builder for chaining.
      • clearVals

        public Osmformat.Node.Builder clearVals()
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Returns:
        This builder for chaining.
      • hasInfo

        public boolean hasInfo()
         May be omitted in omitmeta
         
        optional .Info info = 4;
        Specified by:
        hasInfo in interface Osmformat.NodeOrBuilder
        Returns:
        Whether the info field is set.
      • getInfoBuilder

        public Osmformat.Info.Builder getInfoBuilder()
         May be omitted in omitmeta
         
        optional .Info info = 4;
      • hasLat

        public boolean hasLat()
        required sint64 lat = 8;
        Specified by:
        hasLat in interface Osmformat.NodeOrBuilder
        Returns:
        Whether the lat field is set.
      • setLat

        public Osmformat.Node.Builder setLat​(long value)
        required sint64 lat = 8;
        Parameters:
        value - The lat to set.
        Returns:
        This builder for chaining.
      • clearLat

        public Osmformat.Node.Builder clearLat()
        required sint64 lat = 8;
        Returns:
        This builder for chaining.
      • hasLon

        public boolean hasLon()
        required sint64 lon = 9;
        Specified by:
        hasLon in interface Osmformat.NodeOrBuilder
        Returns:
        Whether the lon field is set.
      • setLon

        public Osmformat.Node.Builder setLon​(long value)
        required sint64 lon = 9;
        Parameters:
        value - The lon to set.
        Returns:
        This builder for chaining.
      • clearLon

        public Osmformat.Node.Builder clearLon()
        required sint64 lon = 9;
        Returns:
        This builder for chaining.