Class Osmformat.Info.Builder

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

public static final class Osmformat.Info.Builder extends proto4.GeneratedMessage.Builder<Osmformat.Info.Builder> implements Osmformat.InfoOrBuilder
 Optional metadata that may be included into each primitive.
 

Protobuf type Info

  • 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.Info.Builder>
    • clear

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

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

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

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

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

      public Osmformat.Info.Builder mergeFrom(Osmformat.Info other)
    • isInitialized

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

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

      public boolean hasVersion()
      optional int32 version = 1 [default = -1];
      Specified by:
      hasVersion in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public int getVersion()
      optional int32 version = 1 [default = -1];
      Specified by:
      getVersion in interface Osmformat.InfoOrBuilder
      Returns:
      The version.
    • setVersion

      public Osmformat.Info.Builder setVersion(int value)
      optional int32 version = 1 [default = -1];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Osmformat.Info.Builder clearVersion()
      optional int32 version = 1 [default = -1];
      Returns:
      This builder for chaining.
    • hasTimestamp

      public boolean hasTimestamp()
      optional int64 timestamp = 2;
      Specified by:
      hasTimestamp in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the timestamp field is set.
    • getTimestamp

      public long getTimestamp()
      optional int64 timestamp = 2;
      Specified by:
      getTimestamp in interface Osmformat.InfoOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public Osmformat.Info.Builder setTimestamp(long value)
      optional int64 timestamp = 2;
      Parameters:
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public Osmformat.Info.Builder clearTimestamp()
      optional int64 timestamp = 2;
      Returns:
      This builder for chaining.
    • hasChangeset

      public boolean hasChangeset()
      optional int64 changeset = 3;
      Specified by:
      hasChangeset in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the changeset field is set.
    • getChangeset

      public long getChangeset()
      optional int64 changeset = 3;
      Specified by:
      getChangeset in interface Osmformat.InfoOrBuilder
      Returns:
      The changeset.
    • setChangeset

      public Osmformat.Info.Builder setChangeset(long value)
      optional int64 changeset = 3;
      Parameters:
      value - The changeset to set.
      Returns:
      This builder for chaining.
    • clearChangeset

      public Osmformat.Info.Builder clearChangeset()
      optional int64 changeset = 3;
      Returns:
      This builder for chaining.
    • hasUid

      public boolean hasUid()
      optional int32 uid = 4;
      Specified by:
      hasUid in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the uid field is set.
    • getUid

      public int getUid()
      optional int32 uid = 4;
      Specified by:
      getUid in interface Osmformat.InfoOrBuilder
      Returns:
      The uid.
    • setUid

      public Osmformat.Info.Builder setUid(int value)
      optional int32 uid = 4;
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Osmformat.Info.Builder clearUid()
      optional int32 uid = 4;
      Returns:
      This builder for chaining.
    • hasUserSid

      public boolean hasUserSid()
       String IDs
       
      optional uint32 user_sid = 5;
      Specified by:
      hasUserSid in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the userSid field is set.
    • getUserSid

      public int getUserSid()
       String IDs
       
      optional uint32 user_sid = 5;
      Specified by:
      getUserSid in interface Osmformat.InfoOrBuilder
      Returns:
      The userSid.
    • setUserSid

      public Osmformat.Info.Builder setUserSid(int value)
       String IDs
       
      optional uint32 user_sid = 5;
      Parameters:
      value - The userSid to set.
      Returns:
      This builder for chaining.
    • clearUserSid

      public Osmformat.Info.Builder clearUserSid()
       String IDs
       
      optional uint32 user_sid = 5;
      Returns:
      This builder for chaining.
    • hasVisible

      public boolean hasVisible()
       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.
       
      optional bool visible = 6;
      Specified by:
      hasVisible in interface Osmformat.InfoOrBuilder
      Returns:
      Whether the visible field is set.
    • getVisible

      public boolean getVisible()
       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.
       
      optional bool visible = 6;
      Specified by:
      getVisible in interface Osmformat.InfoOrBuilder
      Returns:
      The visible.
    • setVisible

      public Osmformat.Info.Builder setVisible(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.
       
      optional bool visible = 6;
      Parameters:
      value - The visible to set.
      Returns:
      This builder for chaining.
    • clearVisible

      public Osmformat.Info.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.
       
      optional bool visible = 6;
      Returns:
      This builder for chaining.