public static final class Osmformat.Info.Builder extends GeneratedMessageLite.Builder<Osmformat.Info,Osmformat.Info.Builder> implements Osmformat.InfoOrBuilder
OSMPBF.Info
Optional metadata that may be included into each primitive.
Modifier and Type | Method and Description |
---|---|
Osmformat.Info |
build() |
Osmformat.Info |
buildPartial() |
Osmformat.Info.Builder |
clear() |
Osmformat.Info.Builder |
clearChangeset()
optional int64 changeset = 3; |
Osmformat.Info.Builder |
clearTimestamp()
optional int64 timestamp = 2; |
Osmformat.Info.Builder |
clearUid()
optional int32 uid = 4; |
Osmformat.Info.Builder |
clearUserSid()
optional uint32 user_sid = 5; |
Osmformat.Info.Builder |
clearVersion()
optional int32 version = 1 [default = -1]; |
Osmformat.Info.Builder |
clearVisible()
optional bool visible = 6; |
Osmformat.Info.Builder |
clone() |
long |
getChangeset()
optional int64 changeset = 3; |
Osmformat.Info |
getDefaultInstanceForType() |
long |
getTimestamp()
optional int64 timestamp = 2; |
int |
getUid()
optional int32 uid = 4; |
int |
getUserSid()
optional uint32 user_sid = 5; |
int |
getVersion()
optional int32 version = 1 [default = -1]; |
boolean |
getVisible()
optional bool visible = 6; |
boolean |
hasChangeset()
optional int64 changeset = 3; |
boolean |
hasTimestamp()
optional int64 timestamp = 2; |
boolean |
hasUid()
optional int32 uid = 4; |
boolean |
hasUserSid()
optional uint32 user_sid = 5; |
boolean |
hasVersion()
optional int32 version = 1 [default = -1]; |
boolean |
hasVisible()
optional bool visible = 6; |
boolean |
isInitialized() |
Osmformat.Info.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Osmformat.Info.Builder |
mergeFrom(Osmformat.Info other) |
Osmformat.Info.Builder |
setChangeset(long value)
optional int64 changeset = 3; |
Osmformat.Info.Builder |
setTimestamp(long value)
optional int64 timestamp = 2; |
Osmformat.Info.Builder |
setUid(int value)
optional int32 uid = 4; |
Osmformat.Info.Builder |
setUserSid(int value)
optional uint32 user_sid = 5; |
Osmformat.Info.Builder |
setVersion(int value)
optional int32 version = 1 [default = -1]; |
Osmformat.Info.Builder |
setVisible(boolean value)
optional bool visible = 6; |
getUnknownFields, parseUnknownField, setUnknownFields
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
public Osmformat.Info.Builder clear()
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageLite.Builder<Osmformat.Info,Osmformat.Info.Builder>
public Osmformat.Info.Builder clone()
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageLite.Builder<Osmformat.Info,Osmformat.Info.Builder>
public Osmformat.Info getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in class GeneratedMessageLite.Builder<Osmformat.Info,Osmformat.Info.Builder>
public Osmformat.Info build()
build
in interface MessageLite.Builder
public Osmformat.Info buildPartial()
buildPartial
in interface MessageLite.Builder
public Osmformat.Info.Builder mergeFrom(Osmformat.Info other)
mergeFrom
in class GeneratedMessageLite.Builder<Osmformat.Info,Osmformat.Info.Builder>
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
public Osmformat.Info.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessageLite.Builder<Osmformat.Info.Builder>
IOException
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 Osmformat.Info.Builder setVersion(int value)
optional int32 version = 1 [default = -1];
public Osmformat.Info.Builder clearVersion()
optional int32 version = 1 [default = -1];
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 Osmformat.Info.Builder setTimestamp(long value)
optional int64 timestamp = 2;
public Osmformat.Info.Builder clearTimestamp()
optional int64 timestamp = 2;
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 Osmformat.Info.Builder setChangeset(long value)
optional int64 changeset = 3;
public Osmformat.Info.Builder clearChangeset()
optional int64 changeset = 3;
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 Osmformat.Info.Builder setUid(int value)
optional int32 uid = 4;
public Osmformat.Info.Builder clearUid()
optional int32 uid = 4;
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 Osmformat.Info.Builder setUserSid(int value)
optional uint32 user_sid = 5;
String IDs
public Osmformat.Info.Builder clearUserSid()
optional uint32 user_sid = 5;
String IDs
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 Osmformat.Info.Builder setVisible(boolean value)
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.
public Osmformat.Info.Builder clearVisible()
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.