Package com.baremaps.osm.binary
Class Osmformat.HeaderBlock
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.baremaps.osm.binary.Osmformat.HeaderBlock
-
- All Implemented Interfaces:
Osmformat.HeaderBlockOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- Osmformat
public static final class Osmformat.HeaderBlock extends com.google.protobuf.GeneratedMessageV3 implements Osmformat.HeaderBlockOrBuilder
Protobuf typeosmpbf.HeaderBlock
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Osmformat.HeaderBlock.Builder
Protobuf typeosmpbf.HeaderBlock
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BBOX_FIELD_NUMBER
static int
OPTIONAL_FEATURES_FIELD_NUMBER
static int
OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER
static int
OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER
static int
OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER
static com.google.protobuf.Parser<Osmformat.HeaderBlock>
PARSER
Deprecated.static int
REQUIRED_FEATURES_FIELD_NUMBER
static int
SOURCE_FIELD_NUMBER
static int
WRITINGPROGRAM_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Osmformat.HeaderBBox
getBbox()
optional .osmpbf.HeaderBBox bbox = 1;
Osmformat.HeaderBBoxOrBuilder
getBboxOrBuilder()
optional .osmpbf.HeaderBBox bbox = 1;
static Osmformat.HeaderBlock
getDefaultInstance()
Osmformat.HeaderBlock
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getOptionalFeatures(int index)
repeated string optional_features = 5;
com.google.protobuf.ByteString
getOptionalFeaturesBytes(int index)
repeated string optional_features = 5;
int
getOptionalFeaturesCount()
repeated string optional_features = 5;
com.google.protobuf.ProtocolStringList
getOptionalFeaturesList()
repeated string optional_features = 5;
String
getOsmosisReplicationBaseUrl()
replication base URL (from Osmosis' configuration.txt file)com.google.protobuf.ByteString
getOsmosisReplicationBaseUrlBytes()
replication base URL (from Osmosis' configuration.txt file)long
getOsmosisReplicationSequenceNumber()
replication sequence number (sequenceNumber in state.txt)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 Osmosiscom.google.protobuf.Parser<Osmformat.HeaderBlock>
getParserForType()
String
getRequiredFeatures(int index)
Additional tags to aid in parsing this datasetcom.google.protobuf.ByteString
getRequiredFeaturesBytes(int index)
Additional tags to aid in parsing this datasetint
getRequiredFeaturesCount()
Additional tags to aid in parsing this datasetcom.google.protobuf.ProtocolStringList
getRequiredFeaturesList()
Additional tags to aid in parsing this datasetint
getSerializedSize()
String
getSource()
From the bbox field.com.google.protobuf.ByteString
getSourceBytes()
From the bbox field.com.google.protobuf.UnknownFieldSet
getUnknownFields()
String
getWritingprogram()
optional string writingprogram = 16;
com.google.protobuf.ByteString
getWritingprogramBytes()
optional string writingprogram = 16;
boolean
hasBbox()
optional .osmpbf.HeaderBBox bbox = 1;
int
hashCode()
boolean
hasOsmosisReplicationBaseUrl()
replication base URL (from Osmosis' configuration.txt file)boolean
hasOsmosisReplicationSequenceNumber()
replication sequence number (sequenceNumber in state.txt)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 Osmosisboolean
hasSource()
From the bbox field.boolean
hasWritingprogram()
optional string writingprogram = 16;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Osmformat.HeaderBlock.Builder
newBuilder()
static Osmformat.HeaderBlock.Builder
newBuilder(Osmformat.HeaderBlock prototype)
Osmformat.HeaderBlock.Builder
newBuilderForType()
protected Osmformat.HeaderBlock.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
static Osmformat.HeaderBlock
parseDelimitedFrom(InputStream input)
static Osmformat.HeaderBlock
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.HeaderBlock
parseFrom(byte[] data)
static Osmformat.HeaderBlock
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.HeaderBlock
parseFrom(com.google.protobuf.ByteString data)
static Osmformat.HeaderBlock
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.HeaderBlock
parseFrom(com.google.protobuf.CodedInputStream input)
static Osmformat.HeaderBlock
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.HeaderBlock
parseFrom(InputStream input)
static Osmformat.HeaderBlock
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.HeaderBlock
parseFrom(ByteBuffer data)
static Osmformat.HeaderBlock
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Osmformat.HeaderBlock>
parser()
Osmformat.HeaderBlock.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BBOX_FIELD_NUMBER
public static final int BBOX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_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
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Osmformat.HeaderBlock> PARSER
Deprecated.
-
-
Method Detail
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
hasBbox
public boolean hasBbox()
optional .osmpbf.HeaderBBox bbox = 1;
- Specified by:
hasBbox
in interfaceOsmformat.HeaderBlockOrBuilder
-
getBbox
public Osmformat.HeaderBBox getBbox()
optional .osmpbf.HeaderBBox bbox = 1;
- Specified by:
getBbox
in interfaceOsmformat.HeaderBlockOrBuilder
-
getBboxOrBuilder
public Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder()
optional .osmpbf.HeaderBBox bbox = 1;
- Specified by:
getBboxOrBuilder
in interfaceOsmformat.HeaderBlockOrBuilder
-
getRequiredFeaturesList
public com.google.protobuf.ProtocolStringList getRequiredFeaturesList()
Additional tags to aid in parsing this dataset
repeated string required_features = 4;
- Specified by:
getRequiredFeaturesList
in interfaceOsmformat.HeaderBlockOrBuilder
-
getRequiredFeaturesCount
public int getRequiredFeaturesCount()
Additional tags to aid in parsing this dataset
repeated string required_features = 4;
- Specified by:
getRequiredFeaturesCount
in interfaceOsmformat.HeaderBlockOrBuilder
-
getRequiredFeatures
public String getRequiredFeatures(int index)
Additional tags to aid in parsing this dataset
repeated string required_features = 4;
- Specified by:
getRequiredFeatures
in interfaceOsmformat.HeaderBlockOrBuilder
-
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 interfaceOsmformat.HeaderBlockOrBuilder
-
getOptionalFeaturesList
public com.google.protobuf.ProtocolStringList getOptionalFeaturesList()
repeated string optional_features = 5;
- Specified by:
getOptionalFeaturesList
in interfaceOsmformat.HeaderBlockOrBuilder
-
getOptionalFeaturesCount
public int getOptionalFeaturesCount()
repeated string optional_features = 5;
- Specified by:
getOptionalFeaturesCount
in interfaceOsmformat.HeaderBlockOrBuilder
-
getOptionalFeatures
public String getOptionalFeatures(int index)
repeated string optional_features = 5;
- Specified by:
getOptionalFeatures
in interfaceOsmformat.HeaderBlockOrBuilder
-
getOptionalFeaturesBytes
public com.google.protobuf.ByteString getOptionalFeaturesBytes(int index)
repeated string optional_features = 5;
- Specified by:
getOptionalFeaturesBytes
in interfaceOsmformat.HeaderBlockOrBuilder
-
hasWritingprogram
public boolean hasWritingprogram()
optional string writingprogram = 16;
- Specified by:
hasWritingprogram
in interfaceOsmformat.HeaderBlockOrBuilder
-
getWritingprogram
public String getWritingprogram()
optional string writingprogram = 16;
- Specified by:
getWritingprogram
in interfaceOsmformat.HeaderBlockOrBuilder
-
getWritingprogramBytes
public com.google.protobuf.ByteString getWritingprogramBytes()
optional string writingprogram = 16;
- Specified by:
getWritingprogramBytes
in interfaceOsmformat.HeaderBlockOrBuilder
-
hasSource
public boolean hasSource()
From the bbox field.
optional string source = 17;
- Specified by:
hasSource
in interfaceOsmformat.HeaderBlockOrBuilder
-
getSource
public String getSource()
From the bbox field.
optional string source = 17;
- Specified by:
getSource
in interfaceOsmformat.HeaderBlockOrBuilder
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
From the bbox field.
optional string source = 17;
- Specified by:
getSourceBytes
in interfaceOsmformat.HeaderBlockOrBuilder
-
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 interfaceOsmformat.HeaderBlockOrBuilder
-
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 interfaceOsmformat.HeaderBlockOrBuilder
-
hasOsmosisReplicationSequenceNumber
public boolean hasOsmosisReplicationSequenceNumber()
replication sequence number (sequenceNumber in state.txt)
optional int64 osmosis_replication_sequence_number = 33;
- Specified by:
hasOsmosisReplicationSequenceNumber
in interfaceOsmformat.HeaderBlockOrBuilder
-
getOsmosisReplicationSequenceNumber
public long getOsmosisReplicationSequenceNumber()
replication sequence number (sequenceNumber in state.txt)
optional int64 osmosis_replication_sequence_number = 33;
- Specified by:
getOsmosisReplicationSequenceNumber
in interfaceOsmformat.HeaderBlockOrBuilder
-
hasOsmosisReplicationBaseUrl
public boolean hasOsmosisReplicationBaseUrl()
replication base URL (from Osmosis' configuration.txt file)
optional string osmosis_replication_base_url = 34;
- Specified by:
hasOsmosisReplicationBaseUrl
in interfaceOsmformat.HeaderBlockOrBuilder
-
getOsmosisReplicationBaseUrl
public String getOsmosisReplicationBaseUrl()
replication base URL (from Osmosis' configuration.txt file)
optional string osmosis_replication_base_url = 34;
- Specified by:
getOsmosisReplicationBaseUrl
in interfaceOsmformat.HeaderBlockOrBuilder
-
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 interfaceOsmformat.HeaderBlockOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Osmformat.HeaderBlock parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.HeaderBlock parseFrom(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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.HeaderBlock parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Osmformat.HeaderBlock parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Osmformat.HeaderBlock parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.HeaderBlock parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.HeaderBlock parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Osmformat.HeaderBlock.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Osmformat.HeaderBlock.Builder newBuilder()
-
newBuilder
public static Osmformat.HeaderBlock.Builder newBuilder(Osmformat.HeaderBlock prototype)
-
toBuilder
public Osmformat.HeaderBlock.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Osmformat.HeaderBlock.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Osmformat.HeaderBlock getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Osmformat.HeaderBlock> parser()
-
getParserForType
public com.google.protobuf.Parser<Osmformat.HeaderBlock> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Osmformat.HeaderBlock getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-