Class OSMPBF.Info.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
nl.tudelft.simulation.dsol.animation.gis.osm.pbf.OSMPBF.Info.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,OSMPBF.InfoOrBuilder
- Enclosing class:
- OSMPBF.Info
public static final class OSMPBF.Info.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
implements OSMPBF.InfoOrBuilder
Optional metadata that may be included into each primitive.Protobuf type
OSMPBF.Info-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional int64 changeset = 3;optional int64 timestamp = 2;clearUid()optional int32 uid = 4;String IDsoptional int32 version = 1 [default = -1];The visible flag is used to store history information.longoptional int64 changeset = 3;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlongoptional int64 timestamp = 2;intgetUid()optional int32 uid = 4;intString IDsintoptional int32 version = 1 [default = -1];booleanThe visible flag is used to store history information.booleanoptional int64 changeset = 3;booleanoptional int64 timestamp = 2;booleanhasUid()optional int32 uid = 4;booleanString IDsbooleanoptional int32 version = 1 [default = -1];booleanThe visible flag is used to store history information.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(OSMPBF.Info other) setChangeset(long value) optional int64 changeset = 3;setTimestamp(long value) optional int64 timestamp = 2;setUid(int value) optional int32 uid = 4;setUserSid(int value) String IDssetVersion(int value) optional int32 version = 1 [default = -1];setVisible(boolean value) The visible flag is used to store history information.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSMPBF.Info.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OSMPBF.Info.Builder>
-
mergeFrom
public OSMPBF.Info.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSMPBF.Info.Builder>- Throws:
IOException
-
hasVersion
public boolean hasVersion()optional int32 version = 1 [default = -1];- Specified by:
hasVersionin interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public int getVersion()optional int32 version = 1 [default = -1];- Specified by:
getVersionin interfaceOSMPBF.InfoOrBuilder- Returns:
- The version.
-
setVersion
optional int32 version = 1 [default = -1];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
optional int32 version = 1 [default = -1];- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()optional int64 timestamp = 2;- Specified by:
hasTimestampin interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()optional int64 timestamp = 2;- Specified by:
getTimestampin interfaceOSMPBF.InfoOrBuilder- Returns:
- The timestamp.
-
setTimestamp
optional int64 timestamp = 2;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
optional int64 timestamp = 2;- Returns:
- This builder for chaining.
-
hasChangeset
public boolean hasChangeset()optional int64 changeset = 3;- Specified by:
hasChangesetin interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the changeset field is set.
-
getChangeset
public long getChangeset()optional int64 changeset = 3;- Specified by:
getChangesetin interfaceOSMPBF.InfoOrBuilder- Returns:
- The changeset.
-
setChangeset
optional int64 changeset = 3;- Parameters:
value- The changeset to set.- Returns:
- This builder for chaining.
-
clearChangeset
optional int64 changeset = 3;- Returns:
- This builder for chaining.
-
hasUid
public boolean hasUid()optional int32 uid = 4;- Specified by:
hasUidin interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the uid field is set.
-
getUid
public int getUid()optional int32 uid = 4;- Specified by:
getUidin interfaceOSMPBF.InfoOrBuilder- Returns:
- The uid.
-
setUid
optional int32 uid = 4;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
optional int32 uid = 4;- Returns:
- This builder for chaining.
-
hasUserSid
public boolean hasUserSid()String IDs
optional uint32 user_sid = 5;- Specified by:
hasUserSidin interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the userSid field is set.
-
getUserSid
public int getUserSid()String IDs
optional uint32 user_sid = 5;- Specified by:
getUserSidin interfaceOSMPBF.InfoOrBuilder- Returns:
- The userSid.
-
setUserSid
String IDs
optional uint32 user_sid = 5;- Parameters:
value- The userSid to set.- Returns:
- This builder for chaining.
-
clearUserSid
String IDs
optional uint32 user_sid = 5;- Returns:
- This builder for chaining.
-
hasVisible
public boolean hasVisible()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.
optional bool visible = 6;- Specified by:
hasVisiblein interfaceOSMPBF.InfoOrBuilder- Returns:
- Whether the visible field is set.
-
getVisible
public boolean getVisible()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.
optional bool visible = 6;- Specified by:
getVisiblein interfaceOSMPBF.InfoOrBuilder- Returns:
- The visible.
-
setVisible
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.
optional bool visible = 6;- Parameters:
value- The visible to set.- Returns:
- This builder for chaining.
-
clearVisible
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.
optional bool visible = 6;- Returns:
- This builder for chaining.
-