public static final class Osmformat.Info extends GeneratedMessageLite implements Osmformat.InfoOrBuilder
OSMPBF.Info
Optional metadata that may be included into each primitive.
Modifier and Type | Class and Description |
---|---|
static class |
Osmformat.Info.Builder
Protobuf type
OSMPBF.Info |
GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Modifier and Type | Field and Description |
---|---|
static int |
CHANGESET_FIELD_NUMBER |
static Parser<Osmformat.Info> |
PARSER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UID_FIELD_NUMBER |
static int |
USER_SID_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
static int |
VISIBLE_FIELD_NUMBER |
memoizedHashCode
makeExtensionsImmutable, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseUnknownField
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
public static Parser<Osmformat.Info> PARSER
public static final int VERSION_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int CHANGESET_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
public static final int USER_SID_FIELD_NUMBER
public static final int VISIBLE_FIELD_NUMBER
public static Osmformat.Info getDefaultInstance()
public Osmformat.Info getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
public Parser<Osmformat.Info> getParserForType()
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageLite
public boolean hasVersion()
optional int32 version = 1 [default = -1];
hasVersion
in interface Osmformat.InfoOrBuilder
public int getVersion()
optional int32 version = 1 [default = -1];
getVersion
in interface Osmformat.InfoOrBuilder
public boolean hasTimestamp()
optional int64 timestamp = 2;
hasTimestamp
in interface Osmformat.InfoOrBuilder
public long getTimestamp()
optional int64 timestamp = 2;
getTimestamp
in interface Osmformat.InfoOrBuilder
public boolean hasChangeset()
optional int64 changeset = 3;
hasChangeset
in interface Osmformat.InfoOrBuilder
public long getChangeset()
optional int64 changeset = 3;
getChangeset
in interface Osmformat.InfoOrBuilder
public boolean hasUid()
optional int32 uid = 4;
hasUid
in interface Osmformat.InfoOrBuilder
public int getUid()
optional int32 uid = 4;
getUid
in interface Osmformat.InfoOrBuilder
public boolean hasUserSid()
optional uint32 user_sid = 5;
String IDs
hasUserSid
in interface Osmformat.InfoOrBuilder
public int getUserSid()
optional uint32 user_sid = 5;
String IDs
getUserSid
in interface Osmformat.InfoOrBuilder
public boolean hasVisible()
optional bool visible = 6;
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.
hasVisible
in interface Osmformat.InfoOrBuilder
public boolean getVisible()
optional bool visible = 6;
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.
getVisible
in interface Osmformat.InfoOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class GeneratedMessageLite
ObjectStreamException
public static Osmformat.Info parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Osmformat.Info parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Osmformat.Info parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Osmformat.Info parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Osmformat.Info parseFrom(InputStream input) throws IOException
IOException
public static Osmformat.Info parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Osmformat.Info parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Osmformat.Info parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Osmformat.Info parseFrom(CodedInputStream input) throws IOException
IOException
public static Osmformat.Info parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Osmformat.Info.Builder newBuilder()
public Osmformat.Info.Builder newBuilderForType()
newBuilderForType
in interface MessageLite
public static Osmformat.Info.Builder newBuilder(Osmformat.Info prototype)
public Osmformat.Info.Builder toBuilder()
toBuilder
in interface MessageLite