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,java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private longid_private Osmformat.Infoinfo_private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder>infoBuilder_private com.google.protobuf.Internal.IntListkeys_private com.google.protobuf.Internal.LongListlat_private com.google.protobuf.Internal.LongListlon_private com.google.protobuf.Internal.LongListrefs_private com.google.protobuf.Internal.IntListvals_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Way.BuilderaddAllKeys(java.lang.Iterable<? extends java.lang.Integer> values)Parallel arrays.Osmformat.Way.BuilderaddAllLat(java.lang.Iterable<? extends java.lang.Long> values)The following two fields are optional.Osmformat.Way.BuilderaddAllLon(java.lang.Iterable<? extends java.lang.Long> values)DELTA coded, optionalOsmformat.Way.BuilderaddAllRefs(java.lang.Iterable<? extends java.lang.Long> values)DELTA codedOsmformat.Way.BuilderaddAllVals(java.lang.Iterable<? extends java.lang.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, java.lang.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()private voidensureKeysIsMutable()private voidensureLatIsMutable()private voidensureLonIsMutable()private voidensureRefsIsMutable()private voidensureValsIsMutable()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;private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder>getInfoFieldBuilder()optional .OSMPBF.Info info = 4;Osmformat.InfoOrBuildergetInfoOrBuilder()optional .OSMPBF.Info info = 4;intgetKeys(int index)Parallel arrays.intgetKeysCount()Parallel arrays.java.util.List<java.lang.Integer>getKeysList()Parallel arrays.longgetLat(int index)The following two fields are optional.intgetLatCount()The following two fields are optional.java.util.List<java.lang.Long>getLatList()The following two fields are optional.longgetLon(int index)DELTA coded, optionalintgetLonCount()DELTA coded, optionaljava.util.List<java.lang.Long>getLonList()DELTA coded, optionallonggetRefs(int index)DELTA codedintgetRefsCount()DELTA codedjava.util.List<java.lang.Long>getRefsList()DELTA codedintgetVals(int index)repeated uint32 vals = 3 [packed = true];intgetValsCount()repeated uint32 vals = 3 [packed = true];java.util.List<java.lang.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()private voidmaybeForceBuilderInitialization()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, java.lang.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, java.lang.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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
id_
private long id_
-
keys_
private com.google.protobuf.Internal.IntList keys_
-
vals_
private com.google.protobuf.Internal.IntList vals_
-
info_
private Osmformat.Info info_
-
infoBuilder_
private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder> infoBuilder_
-
refs_
private com.google.protobuf.Internal.LongList refs_
-
lat_
private com.google.protobuf.Internal.LongList lat_
-
lon_
private com.google.protobuf.Internal.LongList lon_
-
-
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>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
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, java.lang.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, java.lang.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, java.lang.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 java.io.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:
java.io.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.
-
ensureKeysIsMutable
private void ensureKeysIsMutable()
-
getKeysList
public java.util.List<java.lang.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(java.lang.Iterable<? extends java.lang.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.
-
ensureValsIsMutable
private void ensureValsIsMutable()
-
getValsList
public java.util.List<java.lang.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(java.lang.Iterable<? extends java.lang.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
-
getInfoFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder> getInfoFieldBuilder()
optional .OSMPBF.Info info = 4;
-
ensureRefsIsMutable
private void ensureRefsIsMutable()
-
getRefsList
public java.util.List<java.lang.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(java.lang.Iterable<? extends java.lang.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.
-
ensureLatIsMutable
private void ensureLatIsMutable()
-
getLatList
public java.util.List<java.lang.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(java.lang.Iterable<? extends java.lang.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.
-
ensureLonIsMutable
private void ensureLonIsMutable()
-
getLonList
public java.util.List<java.lang.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(java.lang.Iterable<? extends java.lang.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>
-
-