Class Osmformat.HeaderBlock

    • Field Detail

      • REQUIRED_FEATURES_FIELD_NUMBER

        public static final int REQUIRED_FEATURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OPTIONAL_FEATURES_FIELD_NUMBER

        public static final int OPTIONAL_FEATURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WRITINGPROGRAM_FIELD_NUMBER

        public static final int WRITINGPROGRAM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER

        public static final int OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER

        public static final int OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER

        public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getDescriptor

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

        protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class proto4.GeneratedMessage
      • getRequiredFeaturesList

        public proto4.ProtocolStringList getRequiredFeaturesList()
         Additional tags to aid in parsing this dataset
         
        repeated string required_features = 4;
        Specified by:
        getRequiredFeaturesList in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        A list containing the requiredFeatures.
      • getRequiredFeaturesCount

        public int getRequiredFeaturesCount()
         Additional tags to aid in parsing this dataset
         
        repeated string required_features = 4;
        Specified by:
        getRequiredFeaturesCount in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The count of requiredFeatures.
      • getRequiredFeatures

        public String getRequiredFeatures​(int index)
         Additional tags to aid in parsing this dataset
         
        repeated string required_features = 4;
        Specified by:
        getRequiredFeatures in interface Osmformat.HeaderBlockOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The requiredFeatures at the given index.
      • getRequiredFeaturesBytes

        public proto4.ByteString getRequiredFeaturesBytes​(int index)
         Additional tags to aid in parsing this dataset
         
        repeated string required_features = 4;
        Specified by:
        getRequiredFeaturesBytes in interface Osmformat.HeaderBlockOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the requiredFeatures at the given index.
      • getOptionalFeatures

        public String getOptionalFeatures​(int index)
        repeated string optional_features = 5;
        Specified by:
        getOptionalFeatures in interface Osmformat.HeaderBlockOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The optionalFeatures at the given index.
      • getOptionalFeaturesBytes

        public proto4.ByteString getOptionalFeaturesBytes​(int index)
        repeated string optional_features = 5;
        Specified by:
        getOptionalFeaturesBytes in interface Osmformat.HeaderBlockOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the optionalFeatures at the given index.
      • hasSource

        public boolean hasSource()
         From the bbox field.
         
        optional string source = 17;
        Specified by:
        hasSource in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        Whether the source field is set.
      • hasOsmosisReplicationTimestamp

        public boolean hasOsmosisReplicationTimestamp()
         replication timestamp, expressed in seconds since the epoch,
         otherwise the same value as in the "timestamp=..." field
         in the state.txt file used by Osmosis
         
        optional int64 osmosis_replication_timestamp = 32;
        Specified by:
        hasOsmosisReplicationTimestamp in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        Whether the osmosisReplicationTimestamp field is set.
      • getOsmosisReplicationTimestamp

        public long getOsmosisReplicationTimestamp()
         replication timestamp, expressed in seconds since the epoch,
         otherwise the same value as in the "timestamp=..." field
         in the state.txt file used by Osmosis
         
        optional int64 osmosis_replication_timestamp = 32;
        Specified by:
        getOsmosisReplicationTimestamp in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The osmosisReplicationTimestamp.
      • hasOsmosisReplicationSequenceNumber

        public boolean hasOsmosisReplicationSequenceNumber()
         replication sequence number (sequenceNumber in state.txt)
         
        optional int64 osmosis_replication_sequence_number = 33;
        Specified by:
        hasOsmosisReplicationSequenceNumber in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        Whether the osmosisReplicationSequenceNumber field is set.
      • getOsmosisReplicationSequenceNumber

        public long getOsmosisReplicationSequenceNumber()
         replication sequence number (sequenceNumber in state.txt)
         
        optional int64 osmosis_replication_sequence_number = 33;
        Specified by:
        getOsmosisReplicationSequenceNumber in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The osmosisReplicationSequenceNumber.
      • hasOsmosisReplicationBaseUrl

        public boolean hasOsmosisReplicationBaseUrl()
         replication base URL (from Osmosis' configuration.txt file)
         
        optional string osmosis_replication_base_url = 34;
        Specified by:
        hasOsmosisReplicationBaseUrl in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        Whether the osmosisReplicationBaseUrl field is set.
      • getOsmosisReplicationBaseUrlBytes

        public proto4.ByteString getOsmosisReplicationBaseUrlBytes()
         replication base URL (from Osmosis' configuration.txt file)
         
        optional string osmosis_replication_base_url = 34;
        Specified by:
        getOsmosisReplicationBaseUrlBytes in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The bytes for osmosisReplicationBaseUrl.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface proto4.MessageLiteOrBuilder
        Overrides:
        isInitialized in class proto4.GeneratedMessage
      • writeTo

        public void writeTo​(proto4.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface proto4.MessageLite
        Overrides:
        writeTo in class proto4.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface proto4.MessageLite
        Overrides:
        getSerializedSize in class proto4.GeneratedMessage
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface proto4.Message
        Overrides:
        equals in class proto4.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface proto4.Message
        Overrides:
        hashCode in class proto4.AbstractMessage
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(ByteBuffer data)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(ByteBuffer data,
                                                      proto4.ExtensionRegistryLite extensionRegistry)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(proto4.ByteString data)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(proto4.ByteString data,
                                                      proto4.ExtensionRegistryLite extensionRegistry)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(byte[] data)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(byte[] data,
                                                      proto4.ExtensionRegistryLite extensionRegistry)
                                               throws proto4.InvalidProtocolBufferException
        Throws:
        proto4.InvalidProtocolBufferException
      • newBuilderForType

        public Osmformat.HeaderBlock.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface proto4.Message
        Specified by:
        newBuilderForType in interface proto4.MessageLite
      • toBuilder

        public Osmformat.HeaderBlock.Builder toBuilder()
        Specified by:
        toBuilder in interface proto4.Message
        Specified by:
        toBuilder in interface proto4.MessageLite
      • newBuilderForType

        protected Osmformat.HeaderBlock.Builder newBuilderForType​(proto4.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class proto4.AbstractMessage
      • getParserForType

        public proto4.Parser<Osmformat.HeaderBlock> getParserForType()
        Specified by:
        getParserForType in interface proto4.Message
        Specified by:
        getParserForType in interface proto4.MessageLite
        Overrides:
        getParserForType in class proto4.GeneratedMessage
      • getDefaultInstanceForType

        public Osmformat.HeaderBlock getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface proto4.MessageOrBuilder