Package crosby.binary

Class Osmformat.HeaderBlock

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Osmformat.HeaderBlockOrBuilder, java.io.Serializable
    Enclosing class:
    Osmformat

    public static final class Osmformat.HeaderBlock
    extends com.google.protobuf.GeneratedMessageV3
    implements Osmformat.HeaderBlockOrBuilder
    Protobuf type OSMPBF.HeaderBlock
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • REQUIRED_FEATURES_FIELD_NUMBER

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

        private com.google.protobuf.LazyStringList requiredFeatures_
      • OPTIONAL_FEATURES_FIELD_NUMBER

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

        private com.google.protobuf.LazyStringList optionalFeatures_
      • WRITINGPROGRAM_FIELD_NUMBER

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

        private volatile java.lang.Object writingprogram_
      • source_

        private volatile java.lang.Object source_
      • OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER

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

        private long osmosisReplicationTimestamp_
      • OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER

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

        private long osmosisReplicationSequenceNumber_
      • OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER

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

        private volatile java.lang.Object osmosisReplicationBaseUrl_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • PARSER

        @Deprecated
        public static final com.google.protobuf.Parser<Osmformat.HeaderBlock> PARSER
        Deprecated.
    • Constructor Detail

      • HeaderBlock

        private HeaderBlock​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • HeaderBlock

        private HeaderBlock()
      • HeaderBlock

        private HeaderBlock​(com.google.protobuf.CodedInputStream input,
                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getRequiredFeaturesList

        public com.google.protobuf.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 java.lang.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 com.google.protobuf.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.
      • getOptionalFeaturesList

        public com.google.protobuf.ProtocolStringList getOptionalFeaturesList()
        repeated string optional_features = 5;
        Specified by:
        getOptionalFeaturesList in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        A list containing the optionalFeatures.
      • getOptionalFeatures

        public java.lang.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 com.google.protobuf.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.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
         From the bbox field.
         
        optional string source = 17;
        Specified by:
        getSourceBytes in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The bytes for source.
      • 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.
      • getOsmosisReplicationBaseUrl

        public java.lang.String getOsmosisReplicationBaseUrl()
         Replication base URL (from Osmosis' configuration.txt file).
         
        optional string osmosis_replication_base_url = 34;
        Specified by:
        getOsmosisReplicationBaseUrl in interface Osmformat.HeaderBlockOrBuilder
        Returns:
        The osmosisReplicationBaseUrl.
      • getOsmosisReplicationBaseUrlBytes

        public com.google.protobuf.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 com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

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

        public static Osmformat.HeaderBlock parseFrom​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(java.nio.ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

        public static Osmformat.HeaderBlock parseFrom​(java.io.InputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(java.io.InputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Osmformat.HeaderBlock parseDelimitedFrom​(java.io.InputStream input)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Osmformat.HeaderBlock parseDelimitedFrom​(java.io.InputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(com.google.protobuf.CodedInputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Osmformat.HeaderBlock parseFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected Osmformat.HeaderBlock.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Osmformat.HeaderBlock> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Osmformat.HeaderBlock getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder