public static final class Osmformat.Info.Builder extends com.protobuf .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 |
build()
|
Osmformat |
buildPartial()
|
Osmformat |
clear()
|
Osmformat |
clearChangeset()
optional int64 changeset = 3;
|
Osmformat |
clearTimestamp()
optional int64 timestamp = 2;
|
Osmformat |
clearUid()
optional int32 uid = 4;
|
Osmformat |
clearUserSid()
optional uint32 user_sid = 5;
|
Osmformat |
clearVersion()
optional int32 version = 1 [default = -1];
|
Osmformat |
clearVisible()
optional bool visible = 6;
|
Osmformat |
clone()
|
long |
getChangeset()
optional int64 changeset = 3;
|
Osmformat |
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 |
mergeFrom(com
|
Osmformat |
mergeFrom(Osmformat
|
Osmformat |
setChangeset(long value)
optional int64 changeset = 3;
|
Osmformat |
setTimestamp(long value)
optional int64 timestamp = 2;
|
Osmformat |
setUid(int value)
optional int32 uid = 4;
|
Osmformat |
setUserSid(int value)
optional uint32 user_sid = 5;
|
Osmformat |
setVersion(int value)
optional int32 version = 1 [default = -1];
|
Osmformat |
setVisible(boolean value)
optional bool visible = 6;
|
public Osmformat.Info .Builder clear()
public Osmformat.Info .Builder clone()
public Osmformat.Info getDefaultInstanceForType()
public Osmformat.Info build()
public Osmformat.Info buildPartial()
public Osmformat.Info .Builder mergeFrom(Osmformat .Info other)
public final boolean isInitialized()
public Osmformat.Info .Builder mergeFrom(com .protobuf .CodedInputStream input, com .protobuf .ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface
com.google.protobuf.MessageLite.Builder
mergeFrom in class
com.google.protobuf.AbstractMessageLite.Builder<Osmformat.Info.Builder >
IOException
public boolean hasVersion()
optional int32 version = 1 [default = -1];
public int getVersion()
optional int32 version = 1 [default = -1];
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;
public long getTimestamp()
optional int64 timestamp = 2;
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;
public long getChangeset()
optional int64 changeset = 3;
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;
public int getUid()
optional int32 uid = 4;
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
public int getUserSid()
optional uint32 user_sid = 5;
String IDs
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.
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.
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.