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 int
bitField0_
private long
id_
private Osmformat.Info
info_
private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder>
infoBuilder_
private com.google.protobuf.Internal.IntList
keys_
private com.google.protobuf.Internal.LongList
lat_
private com.google.protobuf.Internal.LongList
lon_
private com.google.protobuf.Internal.LongList
refs_
private com.google.protobuf.Internal.IntList
vals_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Way.Builder
addAllKeys(java.lang.Iterable<? extends java.lang.Integer> values)
Parallel arrays.Osmformat.Way.Builder
addAllLat(java.lang.Iterable<? extends java.lang.Long> values)
The following two fields are optional.Osmformat.Way.Builder
addAllLon(java.lang.Iterable<? extends java.lang.Long> values)
DELTA coded, optionalOsmformat.Way.Builder
addAllRefs(java.lang.Iterable<? extends java.lang.Long> values)
DELTA codedOsmformat.Way.Builder
addAllVals(java.lang.Iterable<? extends java.lang.Integer> values)
repeated uint32 vals = 3 [packed = true];
Osmformat.Way.Builder
addKeys(int value)
Parallel arrays.Osmformat.Way.Builder
addLat(long value)
The following two fields are optional.Osmformat.Way.Builder
addLon(long value)
DELTA coded, optionalOsmformat.Way.Builder
addRefs(long value)
DELTA codedOsmformat.Way.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Osmformat.Way.Builder
addVals(int value)
repeated uint32 vals = 3 [packed = true];
Osmformat.Way
build()
Osmformat.Way
buildPartial()
Osmformat.Way.Builder
clear()
Osmformat.Way.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Osmformat.Way.Builder
clearId()
required int64 id = 1;
Osmformat.Way.Builder
clearInfo()
optional .OSMPBF.Info info = 4;
Osmformat.Way.Builder
clearKeys()
Parallel arrays.Osmformat.Way.Builder
clearLat()
The following two fields are optional.Osmformat.Way.Builder
clearLon()
DELTA coded, optionalOsmformat.Way.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Osmformat.Way.Builder
clearRefs()
DELTA codedOsmformat.Way.Builder
clearVals()
repeated uint32 vals = 3 [packed = true];
Osmformat.Way.Builder
clone()
private void
ensureKeysIsMutable()
private void
ensureLatIsMutable()
private void
ensureLonIsMutable()
private void
ensureRefsIsMutable()
private void
ensureValsIsMutable()
Osmformat.Way
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
required int64 id = 1;
Osmformat.Info
getInfo()
optional .OSMPBF.Info info = 4;
Osmformat.Info.Builder
getInfoBuilder()
optional .OSMPBF.Info info = 4;
private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder>
getInfoFieldBuilder()
optional .OSMPBF.Info info = 4;
Osmformat.InfoOrBuilder
getInfoOrBuilder()
optional .OSMPBF.Info info = 4;
int
getKeys(int index)
Parallel arrays.int
getKeysCount()
Parallel arrays.java.util.List<java.lang.Integer>
getKeysList()
Parallel arrays.long
getLat(int index)
The following two fields are optional.int
getLatCount()
The following two fields are optional.java.util.List<java.lang.Long>
getLatList()
The following two fields are optional.long
getLon(int index)
DELTA coded, optionalint
getLonCount()
DELTA coded, optionaljava.util.List<java.lang.Long>
getLonList()
DELTA coded, optionallong
getRefs(int index)
DELTA codedint
getRefsCount()
DELTA codedjava.util.List<java.lang.Long>
getRefsList()
DELTA codedint
getVals(int index)
repeated uint32 vals = 3 [packed = true];
int
getValsCount()
repeated uint32 vals = 3 [packed = true];
java.util.List<java.lang.Integer>
getValsList()
repeated uint32 vals = 3 [packed = true];
boolean
hasId()
required int64 id = 1;
boolean
hasInfo()
optional .OSMPBF.Info info = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
Osmformat.Way.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Osmformat.Way.Builder
mergeFrom(com.google.protobuf.Message other)
Osmformat.Way.Builder
mergeFrom(Osmformat.Way other)
Osmformat.Way.Builder
mergeInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
Osmformat.Way.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Osmformat.Way.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Osmformat.Way.Builder
setId(long value)
required int64 id = 1;
Osmformat.Way.Builder
setInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
Osmformat.Way.Builder
setInfo(Osmformat.Info.Builder builderForValue)
optional .OSMPBF.Info info = 4;
Osmformat.Way.Builder
setKeys(int index, int value)
Parallel arrays.Osmformat.Way.Builder
setLat(int index, long value)
The following two fields are optional.Osmformat.Way.Builder
setLon(int index, long value)
DELTA coded, optionalOsmformat.Way.Builder
setRefs(int index, long value)
DELTA codedOsmformat.Way.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Osmformat.Way.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Osmformat.Way.Builder
setVals(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public Osmformat.Way.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
getDefaultInstanceForType
public Osmformat.Way getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Osmformat.Way build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Osmformat.Way buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Osmformat.Way.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
clearField
public Osmformat.Way.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
clearOneof
public Osmformat.Way.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(Osmformat.Way other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Osmformat.Way.Builder>
- Throws:
java.io.IOException
-
hasId
public boolean hasId()
required int64 id = 1;
- Specified by:
hasId
in interfaceOsmformat.WayOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
required int64 id = 1;
- Specified by:
getId
in 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:
getKeysList
in interfaceOsmformat.WayOrBuilder
- Returns:
- A list containing the keys.
-
getKeysCount
public int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeysCount
in interfaceOsmformat.WayOrBuilder
- Returns:
- The count of keys.
-
getKeys
public int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeys
in 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:
getValsList
in interfaceOsmformat.WayOrBuilder
- Returns:
- A list containing the vals.
-
getValsCount
public int getValsCount()
repeated uint32 vals = 3 [packed = true];
- Specified by:
getValsCount
in interfaceOsmformat.WayOrBuilder
- Returns:
- The count of vals.
-
getVals
public int getVals(int index)
repeated uint32 vals = 3 [packed = true];
- Specified by:
getVals
in 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:
hasInfo
in interfaceOsmformat.WayOrBuilder
- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;
- Specified by:
getInfo
in 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:
getInfoOrBuilder
in 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:
getRefsList
in interfaceOsmformat.WayOrBuilder
- Returns:
- A list containing the refs.
-
getRefsCount
public int getRefsCount()
DELTA coded
repeated sint64 refs = 8 [packed = true];
- Specified by:
getRefsCount
in interfaceOsmformat.WayOrBuilder
- Returns:
- The count of refs.
-
getRefs
public long getRefs(int index)
DELTA coded
repeated sint64 refs = 8 [packed = true];
- Specified by:
getRefs
in 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:
getLatList
in 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:
getLatCount
in 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:
getLat
in 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:
getLonList
in interfaceOsmformat.WayOrBuilder
- Returns:
- A list containing the lon.
-
getLonCount
public int getLonCount()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];
- Specified by:
getLonCount
in interfaceOsmformat.WayOrBuilder
- Returns:
- The count of lon.
-
getLon
public long getLon(int index)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];
- Specified by:
getLon
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
mergeUnknownFields
public final Osmformat.Way.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Way.Builder>
-
-