Class Osmformat.Relation.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.Relation.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.Relation.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

        public Osmformat.Relation.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.Relation.Builder clearVals()
        repeated uint32 vals = 3 [packed = true];
        Returns:
        This builder for chaining.
      • getRolesSidCount

        public int getRolesSidCount()
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Specified by:
        getRolesSidCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of rolesSid.
      • getRolesSid

        public int getRolesSid​(int index)
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Specified by:
        getRolesSid in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The rolesSid at the given index.
      • setRolesSid

        public Osmformat.Relation.Builder setRolesSid​(int index,
                                                      int value)
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The rolesSid to set.
        Returns:
        This builder for chaining.
      • addRolesSid

        public Osmformat.Relation.Builder addRolesSid​(int value)
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Parameters:
        value - The rolesSid to add.
        Returns:
        This builder for chaining.
      • addAllRolesSid

        public Osmformat.Relation.Builder addAllRolesSid​(Iterable<? extends Integer> values)
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Parameters:
        values - The rolesSid to add.
        Returns:
        This builder for chaining.
      • clearRolesSid

        public Osmformat.Relation.Builder clearRolesSid()
         Parallel arrays
         
        repeated int32 roles_sid = 8 [packed = true];
        Returns:
        This builder for chaining.
      • getMemidsCount

        public int getMemidsCount()
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Specified by:
        getMemidsCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of memids.
      • getMemids

        public long getMemids​(int index)
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Specified by:
        getMemids in interface Osmformat.RelationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The memids at the given index.
      • setMemids

        public Osmformat.Relation.Builder setMemids​(int index,
                                                    long value)
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The memids to set.
        Returns:
        This builder for chaining.
      • addMemids

        public Osmformat.Relation.Builder addMemids​(long value)
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Parameters:
        value - The memids to add.
        Returns:
        This builder for chaining.
      • addAllMemids

        public Osmformat.Relation.Builder addAllMemids​(Iterable<? extends Long> values)
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Parameters:
        values - The memids to add.
        Returns:
        This builder for chaining.
      • clearMemids

        public Osmformat.Relation.Builder clearMemids()
         DELTA encoded
         
        repeated sint64 memids = 9 [packed = true];
        Returns:
        This builder for chaining.
      • getTypesCount

        public int getTypesCount()
        repeated .Relation.MemberType types = 10 [packed = true];
        Specified by:
        getTypesCount in interface Osmformat.RelationOrBuilder
        Returns:
        The count of types.
      • setTypes

        public Osmformat.Relation.Builder setTypes​(int index,
                                                   Osmformat.Relation.MemberType value)
        repeated .Relation.MemberType types = 10 [packed = true];
        Parameters:
        index - The index to set the value at.
        value - The types to set.
        Returns:
        This builder for chaining.
      • clearTypes

        public Osmformat.Relation.Builder clearTypes()
        repeated .Relation.MemberType types = 10 [packed = true];
        Returns:
        This builder for chaining.