Package crosby.binary
Class Osmformat.Way.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
- crosby.binary.Osmformat.Way.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Osmformat.WayOrBuilder,Cloneable
- Enclosing class:
- Osmformat.Way
public static final class Osmformat.Way.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder> implements Osmformat.WayOrBuilder
Protobuf typeOSMPBF.Way
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Way.BuilderaddAllKeys(Iterable<? extends Integer> values)Parallel arrays.Osmformat.Way.BuilderaddAllLat(Iterable<? extends Long> values)The following two fields are optional.Osmformat.Way.BuilderaddAllLon(Iterable<? extends Long> values)DELTA coded, optionalOsmformat.Way.BuilderaddAllRefs(Iterable<? extends Long> values)DELTA codedOsmformat.Way.BuilderaddAllVals(Iterable<? extends Integer> values)repeated uint32 vals = 3 [packed = true];Osmformat.Way.BuilderaddKeys(int value)Parallel arrays.Osmformat.Way.BuilderaddLat(long value)The following two fields are optional.Osmformat.Way.BuilderaddLon(long value)DELTA coded, optionalOsmformat.Way.BuilderaddRefs(long value)DELTA codedOsmformat.Way.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Way.BuilderaddVals(int value)repeated uint32 vals = 3 [packed = true];Osmformat.Waybuild()Osmformat.WaybuildPartial()Osmformat.Way.Builderclear()Osmformat.Way.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Osmformat.Way.BuilderclearId()required int64 id = 1;Osmformat.Way.BuilderclearInfo()optional .OSMPBF.Info info = 4;Osmformat.Way.BuilderclearKeys()Parallel arrays.Osmformat.Way.BuilderclearLat()The following two fields are optional.Osmformat.Way.BuilderclearLon()DELTA coded, optionalOsmformat.Way.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Osmformat.Way.BuilderclearRefs()DELTA codedOsmformat.Way.BuilderclearVals()repeated uint32 vals = 3 [packed = true];Osmformat.Way.Builderclone()Osmformat.WaygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()required int64 id = 1;Osmformat.InfogetInfo()optional .OSMPBF.Info info = 4;Osmformat.Info.BuildergetInfoBuilder()optional .OSMPBF.Info info = 4;Osmformat.InfoOrBuildergetInfoOrBuilder()optional .OSMPBF.Info info = 4;intgetKeys(int index)Parallel arrays.intgetKeysCount()Parallel arrays.List<Integer>getKeysList()Parallel arrays.longgetLat(int index)The following two fields are optional.intgetLatCount()The following two fields are optional.List<Long>getLatList()The following two fields are optional.longgetLon(int index)DELTA coded, optionalintgetLonCount()DELTA coded, optionalList<Long>getLonList()DELTA coded, optionallonggetRefs(int index)DELTA codedintgetRefsCount()DELTA codedList<Long>getRefsList()DELTA codedintgetVals(int index)repeated uint32 vals = 3 [packed = true];intgetValsCount()repeated uint32 vals = 3 [packed = true];List<Integer>getValsList()repeated uint32 vals = 3 [packed = true];booleanhasId()required int64 id = 1;booleanhasInfo()optional .OSMPBF.Info info = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Osmformat.Way.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Osmformat.Way.BuildermergeFrom(com.google.protobuf.Message other)Osmformat.Way.BuildermergeFrom(Osmformat.Way other)Osmformat.Way.BuildermergeInfo(Osmformat.Info value)optional .OSMPBF.Info info = 4;Osmformat.Way.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Way.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Way.BuildersetId(long value)required int64 id = 1;Osmformat.Way.BuildersetInfo(Osmformat.Info value)optional .OSMPBF.Info info = 4;Osmformat.Way.BuildersetInfo(Osmformat.Info.Builder builderForValue)optional .OSMPBF.Info info = 4;Osmformat.Way.BuildersetKeys(int index, int value)Parallel arrays.Osmformat.Way.BuildersetLat(int index, long value)The following two fields are optional.Osmformat.Way.BuildersetLon(int index, long value)DELTA coded, optionalOsmformat.Way.BuildersetRefs(int index, long value)DELTA codedOsmformat.Way.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Osmformat.Way.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Way.BuildersetVals(int index, int value)repeated uint32 vals = 3 [packed = true];-
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.Way.Builder>
-
clear
public Osmformat.Way.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.Way.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.Way.Builder>
-
getDefaultInstanceForType
public Osmformat.Way getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Osmformat.Way build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Osmformat.Way buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Osmformat.Way.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.Way.Builder>
-
setField
public Osmformat.Way.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.Way.Builder>
-
clearField
public Osmformat.Way.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
clearOneof
public Osmformat.Way.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
setRepeatedField
public Osmformat.Way.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.Way.Builder>
-
addRepeatedField
public Osmformat.Way.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.Way.Builder>
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(Osmformat.Way other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.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.Way.Builder>- Throws:
IOException
-
hasId
public boolean hasId()
required int64 id = 1;- Specified by:
hasIdin interfaceOsmformat.WayOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
required int64 id = 1;- Specified by:
getIdin interfaceOsmformat.WayOrBuilder- Returns:
- The id.
-
setId
public Osmformat.Way.Builder setId(long value)
required int64 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Osmformat.Way.Builder clearId()
required int64 id = 1;- Returns:
- This builder for chaining.
-
getKeysList
public List<Integer> getKeysList()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysListin interfaceOsmformat.WayOrBuilder- Returns:
- A list containing the keys.
-
getKeysCount
public int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysCountin interfaceOsmformat.WayOrBuilder- Returns:
- The count of keys.
-
getKeys
public int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysin interfaceOsmformat.WayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The keys at the given index.
-
setKeys
public Osmformat.Way.Builder setKeys(int index, int value)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Parameters:
index- The index to set the value at.value- The keys to set.- Returns:
- This builder for chaining.
-
addKeys
public Osmformat.Way.Builder addKeys(int value)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Parameters:
value- The keys to add.- Returns:
- This builder for chaining.
-
addAllKeys
public Osmformat.Way.Builder addAllKeys(Iterable<? extends Integer> values)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Parameters:
values- The keys to add.- Returns:
- This builder for chaining.
-
clearKeys
public Osmformat.Way.Builder clearKeys()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Returns:
- This builder for chaining.
-
getValsList
public List<Integer> getValsList()
repeated uint32 vals = 3 [packed = true];- Specified by:
getValsListin interfaceOsmformat.WayOrBuilder- Returns:
- A list containing the vals.
-
getValsCount
public int getValsCount()
repeated uint32 vals = 3 [packed = true];- Specified by:
getValsCountin interfaceOsmformat.WayOrBuilder- Returns:
- The count of vals.
-
getVals
public int getVals(int index)
repeated uint32 vals = 3 [packed = true];- Specified by:
getValsin interfaceOsmformat.WayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vals at the given index.
-
setVals
public Osmformat.Way.Builder setVals(int index, int value)
repeated uint32 vals = 3 [packed = true];- Parameters:
index- The index to set the value at.value- The vals to set.- Returns:
- This builder for chaining.
-
addVals
public Osmformat.Way.Builder addVals(int value)
repeated uint32 vals = 3 [packed = true];- Parameters:
value- The vals to add.- Returns:
- This builder for chaining.
-
addAllVals
public Osmformat.Way.Builder addAllVals(Iterable<? extends Integer> values)
repeated uint32 vals = 3 [packed = true];- Parameters:
values- The vals to add.- Returns:
- This builder for chaining.
-
clearVals
public Osmformat.Way.Builder clearVals()
repeated uint32 vals = 3 [packed = true];- Returns:
- This builder for chaining.
-
hasInfo
public boolean hasInfo()
optional .OSMPBF.Info info = 4;- Specified by:
hasInfoin interfaceOsmformat.WayOrBuilder- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;- Specified by:
getInfoin interfaceOsmformat.WayOrBuilder- Returns:
- The info.
-
setInfo
public Osmformat.Way.Builder setInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
-
setInfo
public Osmformat.Way.Builder setInfo(Osmformat.Info.Builder builderForValue)
optional .OSMPBF.Info info = 4;
-
mergeInfo
public Osmformat.Way.Builder mergeInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
-
clearInfo
public Osmformat.Way.Builder clearInfo()
optional .OSMPBF.Info info = 4;
-
getInfoBuilder
public Osmformat.Info.Builder getInfoBuilder()
optional .OSMPBF.Info info = 4;
-
getInfoOrBuilder
public Osmformat.InfoOrBuilder getInfoOrBuilder()
optional .OSMPBF.Info info = 4;- Specified by:
getInfoOrBuilderin interfaceOsmformat.WayOrBuilder
-
getRefsList
public List<Long> getRefsList()
DELTA coded
repeated sint64 refs = 8 [packed = true];- Specified by:
getRefsListin interfaceOsmformat.WayOrBuilder- Returns:
- A list containing the refs.
-
getRefsCount
public int getRefsCount()
DELTA coded
repeated sint64 refs = 8 [packed = true];- Specified by:
getRefsCountin interfaceOsmformat.WayOrBuilder- Returns:
- The count of refs.
-
getRefs
public long getRefs(int index)
DELTA coded
repeated sint64 refs = 8 [packed = true];- Specified by:
getRefsin interfaceOsmformat.WayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The refs at the given index.
-
setRefs
public Osmformat.Way.Builder setRefs(int index, long value)
DELTA coded
repeated sint64 refs = 8 [packed = true];- Parameters:
index- The index to set the value at.value- The refs to set.- Returns:
- This builder for chaining.
-
addRefs
public Osmformat.Way.Builder addRefs(long value)
DELTA coded
repeated sint64 refs = 8 [packed = true];- Parameters:
value- The refs to add.- Returns:
- This builder for chaining.
-
addAllRefs
public Osmformat.Way.Builder addAllRefs(Iterable<? extends Long> values)
DELTA coded
repeated sint64 refs = 8 [packed = true];- Parameters:
values- The refs to add.- Returns:
- This builder for chaining.
-
clearRefs
public Osmformat.Way.Builder clearRefs()
DELTA coded
repeated sint64 refs = 8 [packed = true];- Returns:
- This builder for chaining.
-
getLatList
public List<Long> getLatList()
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Specified by:
getLatListin interfaceOsmformat.WayOrBuilder- Returns:
- A list containing the lat.
-
getLatCount
public int getLatCount()
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Specified by:
getLatCountin interfaceOsmformat.WayOrBuilder- Returns:
- The count of lat.
-
getLat
public long getLat(int index)
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Specified by:
getLatin interfaceOsmformat.WayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The lat at the given index.
-
setLat
public Osmformat.Way.Builder setLat(int index, long value)
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Parameters:
index- The index to set the value at.value- The lat to set.- Returns:
- This builder for chaining.
-
addLat
public Osmformat.Way.Builder addLat(long value)
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Parameters:
value- The lat to add.- Returns:
- This builder for chaining.
-
addAllLat
public Osmformat.Way.Builder addAllLat(Iterable<? extends Long> values)
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Parameters:
values- The lat to add.- Returns:
- This builder for chaining.
-
clearLat
public Osmformat.Way.Builder clearLat()
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];- Returns:
- This builder for chaining.
-
getLonList
public List<Long> getLonList()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Specified by:
getLonListin interfaceOsmformat.WayOrBuilder- Returns:
- A list containing the lon.
-
getLonCount
public int getLonCount()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Specified by:
getLonCountin interfaceOsmformat.WayOrBuilder- Returns:
- The count of lon.
-
getLon
public long getLon(int index)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Specified by:
getLonin interfaceOsmformat.WayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The lon at the given index.
-
setLon
public Osmformat.Way.Builder setLon(int index, long value)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Parameters:
index- The index to set the value at.value- The lon to set.- Returns:
- This builder for chaining.
-
addLon
public Osmformat.Way.Builder addLon(long value)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Parameters:
value- The lon to add.- Returns:
- This builder for chaining.
-
addAllLon
public Osmformat.Way.Builder addAllLon(Iterable<? extends Long> values)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Parameters:
values- The lon to add.- Returns:
- This builder for chaining.
-
clearLon
public Osmformat.Way.Builder clearLon()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Osmformat.Way.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
mergeUnknownFields
public final Osmformat.Way.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
-