Class Osmformat.DenseInfo.Builder

java.lang.Object
proto4.AbstractMessageLite.Builder
proto4.AbstractMessage.Builder<BuilderT>
proto4.GeneratedMessage.Builder<Osmformat.DenseInfo.Builder>
org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.DenseInfo.Builder
All Implemented Interfaces:
Cloneable, Osmformat.DenseInfoOrBuilder, proto4.Message.Builder, proto4.MessageLite.Builder, proto4.MessageLiteOrBuilder, proto4.MessageOrBuilder
Enclosing class:
Osmformat.DenseInfo

public static final class Osmformat.DenseInfo.Builder extends proto4.GeneratedMessage.Builder<Osmformat.DenseInfo.Builder> implements Osmformat.DenseInfoOrBuilder
 * Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.
 

Protobuf type DenseInfo

  • Method Details

    • getDescriptor

      public static final proto4.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class proto4.GeneratedMessage.Builder<Osmformat.DenseInfo.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.DenseInfo.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.DenseInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public List<Integer> getVersionList()
      repeated int32 version = 1 [packed = true];
      Specified by:
      getVersionList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the version.
    • getVersionCount

      public int getVersionCount()
      repeated int32 version = 1 [packed = true];
      Specified by:
      getVersionCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of version.
    • getVersion

      public int getVersion(int index)
      repeated int32 version = 1 [packed = true];
      Specified by:
      getVersion in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The version at the given index.
    • setVersion

      public Osmformat.DenseInfo.Builder setVersion(int index, int value)
      repeated int32 version = 1 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The version to set.
      Returns:
      This builder for chaining.
    • addVersion

      public Osmformat.DenseInfo.Builder addVersion(int value)
      repeated int32 version = 1 [packed = true];
      Parameters:
      value - The version to add.
      Returns:
      This builder for chaining.
    • addAllVersion

      public Osmformat.DenseInfo.Builder addAllVersion(Iterable<? extends Integer> values)
      repeated int32 version = 1 [packed = true];
      Parameters:
      values - The version to add.
      Returns:
      This builder for chaining.
    • clearVersion

      public Osmformat.DenseInfo.Builder clearVersion()
      repeated int32 version = 1 [packed = true];
      Returns:
      This builder for chaining.
    • getTimestampList

      public List<Long> getTimestampList()
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Specified by:
      getTimestampList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the timestamp.
    • getTimestampCount

      public int getTimestampCount()
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Specified by:
      getTimestampCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of timestamp.
    • getTimestamp

      public long getTimestamp(int index)
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Specified by:
      getTimestamp in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The timestamp at the given index.
    • setTimestamp

      public Osmformat.DenseInfo.Builder setTimestamp(int index, long value)
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • addTimestamp

      public Osmformat.DenseInfo.Builder addTimestamp(long value)
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Parameters:
      value - The timestamp to add.
      Returns:
      This builder for chaining.
    • addAllTimestamp

      public Osmformat.DenseInfo.Builder addAllTimestamp(Iterable<? extends Long> values)
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Parameters:
      values - The timestamp to add.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public Osmformat.DenseInfo.Builder clearTimestamp()
       DELTA coded
       
      repeated sint64 timestamp = 2 [packed = true];
      Returns:
      This builder for chaining.
    • getChangesetList

      public List<Long> getChangesetList()
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Specified by:
      getChangesetList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the changeset.
    • getChangesetCount

      public int getChangesetCount()
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Specified by:
      getChangesetCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of changeset.
    • getChangeset

      public long getChangeset(int index)
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Specified by:
      getChangeset in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The changeset at the given index.
    • setChangeset

      public Osmformat.DenseInfo.Builder setChangeset(int index, long value)
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The changeset to set.
      Returns:
      This builder for chaining.
    • addChangeset

      public Osmformat.DenseInfo.Builder addChangeset(long value)
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Parameters:
      value - The changeset to add.
      Returns:
      This builder for chaining.
    • addAllChangeset

      public Osmformat.DenseInfo.Builder addAllChangeset(Iterable<? extends Long> values)
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Parameters:
      values - The changeset to add.
      Returns:
      This builder for chaining.
    • clearChangeset

      public Osmformat.DenseInfo.Builder clearChangeset()
       DELTA coded
       
      repeated sint64 changeset = 3 [packed = true];
      Returns:
      This builder for chaining.
    • getUidList

      public List<Integer> getUidList()
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Specified by:
      getUidList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the uid.
    • getUidCount

      public int getUidCount()
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Specified by:
      getUidCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of uid.
    • getUid

      public int getUid(int index)
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Specified by:
      getUid in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The uid at the given index.
    • setUid

      public Osmformat.DenseInfo.Builder setUid(int index, int value)
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The uid to set.
      Returns:
      This builder for chaining.
    • addUid

      public Osmformat.DenseInfo.Builder addUid(int value)
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Parameters:
      value - The uid to add.
      Returns:
      This builder for chaining.
    • addAllUid

      public Osmformat.DenseInfo.Builder addAllUid(Iterable<? extends Integer> values)
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Parameters:
      values - The uid to add.
      Returns:
      This builder for chaining.
    • clearUid

      public Osmformat.DenseInfo.Builder clearUid()
       DELTA coded
       
      repeated sint32 uid = 4 [packed = true];
      Returns:
      This builder for chaining.
    • getUserSidList

      public List<Integer> getUserSidList()
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Specified by:
      getUserSidList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the userSid.
    • getUserSidCount

      public int getUserSidCount()
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Specified by:
      getUserSidCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of userSid.
    • getUserSid

      public int getUserSid(int index)
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Specified by:
      getUserSid in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The userSid at the given index.
    • setUserSid

      public Osmformat.DenseInfo.Builder setUserSid(int index, int value)
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The userSid to set.
      Returns:
      This builder for chaining.
    • addUserSid

      public Osmformat.DenseInfo.Builder addUserSid(int value)
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Parameters:
      value - The userSid to add.
      Returns:
      This builder for chaining.
    • addAllUserSid

      public Osmformat.DenseInfo.Builder addAllUserSid(Iterable<? extends Integer> values)
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Parameters:
      values - The userSid to add.
      Returns:
      This builder for chaining.
    • clearUserSid

      public Osmformat.DenseInfo.Builder clearUserSid()
       String IDs for usernames. DELTA coded
       
      repeated sint32 user_sid = 5 [packed = true];
      Returns:
      This builder for chaining.
    • getVisibleList

      public List<Boolean> getVisibleList()
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Specified by:
      getVisibleList in interface Osmformat.DenseInfoOrBuilder
      Returns:
      A list containing the visible.
    • getVisibleCount

      public int getVisibleCount()
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Specified by:
      getVisibleCount in interface Osmformat.DenseInfoOrBuilder
      Returns:
      The count of visible.
    • getVisible

      public boolean getVisible(int index)
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Specified by:
      getVisible in interface Osmformat.DenseInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The visible at the given index.
    • setVisible

      public Osmformat.DenseInfo.Builder setVisible(int index, boolean value)
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Parameters:
      index - The index to set the value at.
      value - The visible to set.
      Returns:
      This builder for chaining.
    • addVisible

      public Osmformat.DenseInfo.Builder addVisible(boolean value)
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Parameters:
      value - The visible to add.
      Returns:
      This builder for chaining.
    • addAllVisible

      public Osmformat.DenseInfo.Builder addAllVisible(Iterable<? extends Boolean> values)
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Parameters:
      values - The visible to add.
      Returns:
      This builder for chaining.
    • clearVisible

      public Osmformat.DenseInfo.Builder clearVisible()
       The visible flag is used to store history information. It indicates that
       the current object version has been created by a delete operation on the
       OSM API.
       When a writer sets this flag, it MUST add a required_features tag with
       value "HistoricalInformation" to the HeaderBlock.
       If this flag is not available for some object it MUST be assumed to be
       true if the file has the required_features tag "HistoricalInformation"
       set.
       
      repeated bool visible = 6 [packed = true];
      Returns:
      This builder for chaining.