Package crosby.binary

Class Osmformat.Node.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Osmformat.NodeOrBuilder, java.lang.Cloneable
    Enclosing class:
    Osmformat.Node

    public static final class Osmformat.Node.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Node.Builder>
    implements Osmformat.NodeOrBuilder
    Protobuf type OSMPBF.Node
    • Field Detail

      • bitField0_

        private int bitField0_
      • id_

        private long id_
      • keys_

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

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

        private long lat_
      • lon_

        private long lon_
    • 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.Node.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public Osmformat.Node.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.Node.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.Node.Builder>
      • getDefaultInstanceForType

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

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

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

        public Osmformat.Node.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.Node.Builder>
      • setField

        public Osmformat.Node.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.Node.Builder>
      • clearField

        public Osmformat.Node.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.Node.Builder>
      • clearOneof

        public Osmformat.Node.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.Node.Builder>
      • setRepeatedField

        public Osmformat.Node.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.Node.Builder>
      • addRepeatedField

        public Osmformat.Node.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.Node.Builder>
      • mergeFrom

        public Osmformat.Node.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Osmformat.Node.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.Node.Builder>
      • mergeFrom

        public Osmformat.Node.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.Node.Builder>
        Throws:
        java.io.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.
      • ensureKeysIsMutable

        private void ensureKeysIsMutable()
      • getKeysList

        public java.util.List<java.lang.Integer> getKeysList()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Specified by:
        getKeysList in interface Osmformat.NodeOrBuilder
        Returns:
        A list containing the keys.
      • 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​(java.lang.Iterable<? extends java.lang.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.
      • ensureValsIsMutable

        private void ensureValsIsMutable()
      • getValsList

        public java.util.List<java.lang.Integer> getValsList()
         String IDs.
         
        repeated uint32 vals = 3 [packed = true];
        Specified by:
        getValsList in interface Osmformat.NodeOrBuilder
        Returns:
        A list containing the vals.
      • 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​(java.lang.Iterable<? extends java.lang.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 .OSMPBF.Info info = 4;
        Specified by:
        hasInfo in interface Osmformat.NodeOrBuilder
        Returns:
        Whether the info field is set.
      • clearInfo

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

        public Osmformat.Info.Builder getInfoBuilder()
         May be omitted in omitmeta
         
        optional .OSMPBF.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.
      • setUnknownFields

        public final Osmformat.Node.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.Node.Builder>
      • mergeUnknownFields

        public final Osmformat.Node.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.Node.Builder>