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

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

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

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

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

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

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

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

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

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

        public Osmformat.Way.Builder clearId()
        required int64 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.WayOrBuilder
        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.WayOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keys at the given index.
      • setKeys

        public Osmformat.Way.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.Way.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.Way.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.Way.Builder clearKeys()
         Parallel arrays.
         
        repeated uint32 keys = 2 [packed = true];
        Returns:
        This builder for chaining.
      • getValsCount

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

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

        public Osmformat.Way.Builder setVals​(int index,
                                             int value)
        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.Way.Builder addVals​(int value)
        repeated uint32 vals = 3 [packed = true];
        Parameters:
        value - The vals to add.
        Returns:
        This builder for chaining.
      • addAllVals

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

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

        public boolean hasInfo()
        optional .Info info = 4;
        Specified by:
        hasInfo in interface Osmformat.WayOrBuilder
        Returns:
        Whether the info field is set.
      • getRefsCount

        public int getRefsCount()
         DELTA coded
         
        repeated sint64 refs = 8 [packed = true];
        Specified by:
        getRefsCount in interface Osmformat.WayOrBuilder
        Returns:
        The count of refs.
      • getRefs

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

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

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

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

        public Osmformat.Way.Builder clearRefs()
         DELTA coded
         
        repeated sint64 refs = 8 [packed = true];
        Returns:
        This builder for chaining.