Package crosby.binary
Class Osmformat.Info.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
- crosby.binary.Osmformat.Info.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Osmformat.InfoOrBuilder,Cloneable
- Enclosing class:
- Osmformat.Info
public static final class Osmformat.Info.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder> implements Osmformat.InfoOrBuilder
Optional metadata that may be included into each primitive.
Protobuf typeOSMPBF.Info
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Info.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Infobuild()Osmformat.InfobuildPartial()Osmformat.Info.Builderclear()Osmformat.Info.BuilderclearChangeset()optional int64 changeset = 3;Osmformat.Info.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Osmformat.Info.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Osmformat.Info.BuilderclearTimestamp()optional int64 timestamp = 2;Osmformat.Info.BuilderclearUid()optional int32 uid = 4;Osmformat.Info.BuilderclearUserSid()String IDsOsmformat.Info.BuilderclearVersion()optional int32 version = 1 [default = -1];Osmformat.Info.BuilderclearVisible()The visible flag is used to store history information.Osmformat.Info.Builderclone()longgetChangeset()optional int64 changeset = 3;Osmformat.InfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetTimestamp()optional int64 timestamp = 2;intgetUid()optional int32 uid = 4;intgetUserSid()String IDsintgetVersion()optional int32 version = 1 [default = -1];booleangetVisible()The visible flag is used to store history information.booleanhasChangeset()optional int64 changeset = 3;booleanhasTimestamp()optional int64 timestamp = 2;booleanhasUid()optional int32 uid = 4;booleanhasUserSid()String IDsbooleanhasVersion()optional int32 version = 1 [default = -1];booleanhasVisible()The visible flag is used to store history information.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Osmformat.Info.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Osmformat.Info.BuildermergeFrom(com.google.protobuf.Message other)Osmformat.Info.BuildermergeFrom(Osmformat.Info other)Osmformat.Info.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Info.BuildersetChangeset(long value)optional int64 changeset = 3;Osmformat.Info.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Info.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Osmformat.Info.BuildersetTimestamp(long value)optional int64 timestamp = 2;Osmformat.Info.BuildersetUid(int value)optional int32 uid = 4;Osmformat.Info.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Info.BuildersetUserSid(int value)String IDsOsmformat.Info.BuildersetVersion(int value)optional int32 version = 1 [default = -1];Osmformat.Info.BuildersetVisible(boolean value)The visible flag is used to store history information.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
clear
public Osmformat.Info.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.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.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
getDefaultInstanceForType
public Osmformat.Info getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Osmformat.Info build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Osmformat.Info buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Osmformat.Info.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
setField
public Osmformat.Info.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
clearField
public Osmformat.Info.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
clearOneof
public Osmformat.Info.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
setRepeatedField
public Osmformat.Info.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
addRepeatedField
public Osmformat.Info.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
mergeFrom
public Osmformat.Info.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Osmformat.Info.Builder>
-
mergeFrom
public Osmformat.Info.Builder mergeFrom(Osmformat.Info other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
mergeFrom
public Osmformat.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<Osmformat.Info.Builder>- Throws:
IOException
-
hasVersion
public boolean hasVersion()
optional int32 version = 1 [default = -1];- Specified by:
hasVersionin interfaceOsmformat.InfoOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public int getVersion()
optional int32 version = 1 [default = -1];- Specified by:
getVersionin interfaceOsmformat.InfoOrBuilder- Returns:
- The version.
-
setVersion
public Osmformat.Info.Builder setVersion(int value)
optional int32 version = 1 [default = -1];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Osmformat.Info.Builder clearVersion()
optional int32 version = 1 [default = -1];- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()
optional int64 timestamp = 2;- Specified by:
hasTimestampin interfaceOsmformat.InfoOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()
optional int64 timestamp = 2;- Specified by:
getTimestampin interfaceOsmformat.InfoOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public Osmformat.Info.Builder setTimestamp(long value)
optional int64 timestamp = 2;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
public Osmformat.Info.Builder clearTimestamp()
optional int64 timestamp = 2;- Returns:
- This builder for chaining.
-
hasChangeset
public boolean hasChangeset()
optional int64 changeset = 3;- Specified by:
hasChangesetin interfaceOsmformat.InfoOrBuilder- Returns:
- Whether the changeset field is set.
-
getChangeset
public long getChangeset()
optional int64 changeset = 3;- Specified by:
getChangesetin interfaceOsmformat.InfoOrBuilder- Returns:
- The changeset.
-
setChangeset
public Osmformat.Info.Builder setChangeset(long value)
optional int64 changeset = 3;- Parameters:
value- The changeset to set.- Returns:
- This builder for chaining.
-
clearChangeset
public Osmformat.Info.Builder clearChangeset()
optional int64 changeset = 3;- Returns:
- This builder for chaining.
-
hasUid
public boolean hasUid()
optional int32 uid = 4;- Specified by:
hasUidin interfaceOsmformat.InfoOrBuilder- Returns:
- Whether the uid field is set.
-
getUid
public int getUid()
optional int32 uid = 4;- Specified by:
getUidin interfaceOsmformat.InfoOrBuilder- Returns:
- The uid.
-
setUid
public Osmformat.Info.Builder setUid(int value)
optional int32 uid = 4;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public Osmformat.Info.Builder clearUid()
optional int32 uid = 4;- Returns:
- This builder for chaining.
-
hasUserSid
public boolean hasUserSid()
String IDs
optional uint32 user_sid = 5;- Specified by:
hasUserSidin interfaceOsmformat.InfoOrBuilder- Returns:
- Whether the userSid field is set.
-
getUserSid
public int getUserSid()
String IDs
optional uint32 user_sid = 5;- Specified by:
getUserSidin interfaceOsmformat.InfoOrBuilder- Returns:
- The userSid.
-
setUserSid
public Osmformat.Info.Builder setUserSid(int value)
String IDs
optional uint32 user_sid = 5;- Parameters:
value- The userSid to set.- Returns:
- This builder for chaining.
-
clearUserSid
public Osmformat.Info.Builder 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 interfaceOsmformat.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 interfaceOsmformat.InfoOrBuilder- Returns:
- The visible.
-
setVisible
public Osmformat.Info.Builder setVisible(boolean value)
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
public Osmformat.Info.Builder 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.
-
setUnknownFields
public final Osmformat.Info.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
mergeUnknownFields
public final Osmformat.Info.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Info.Builder>
-
-