Package crosby.binary
Class Osmformat.Relation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
- crosby.binary.Osmformat.Relation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Osmformat.RelationOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Osmformat.Relation
public static final class Osmformat.Relation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder> implements Osmformat.RelationOrBuilder
Protobuf typeOSMPBF.Relation
-
-
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
memids_
private com.google.protobuf.Internal.IntList
rolesSid_
private java.util.List<java.lang.Integer>
types_
private com.google.protobuf.Internal.IntList
vals_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Relation.Builder
addAllKeys(java.lang.Iterable<? extends java.lang.Integer> values)
Parallel arrays.Osmformat.Relation.Builder
addAllMemids(java.lang.Iterable<? extends java.lang.Long> values)
DELTA encodedOsmformat.Relation.Builder
addAllRolesSid(java.lang.Iterable<? extends java.lang.Integer> values)
Parallel arraysOsmformat.Relation.Builder
addAllTypes(java.lang.Iterable<? extends Osmformat.Relation.MemberType> values)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
addAllVals(java.lang.Iterable<? extends java.lang.Integer> values)
repeated uint32 vals = 3 [packed = true];
Osmformat.Relation.Builder
addKeys(int value)
Parallel arrays.Osmformat.Relation.Builder
addMemids(long value)
DELTA encodedOsmformat.Relation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Osmformat.Relation.Builder
addRolesSid(int value)
Parallel arraysOsmformat.Relation.Builder
addTypes(Osmformat.Relation.MemberType value)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
addVals(int value)
repeated uint32 vals = 3 [packed = true];
Osmformat.Relation
build()
Osmformat.Relation
buildPartial()
Osmformat.Relation.Builder
clear()
Osmformat.Relation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Osmformat.Relation.Builder
clearId()
required int64 id = 1;
Osmformat.Relation.Builder
clearInfo()
optional .OSMPBF.Info info = 4;
Osmformat.Relation.Builder
clearKeys()
Parallel arrays.Osmformat.Relation.Builder
clearMemids()
DELTA encodedOsmformat.Relation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Osmformat.Relation.Builder
clearRolesSid()
Parallel arraysOsmformat.Relation.Builder
clearTypes()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
clearVals()
repeated uint32 vals = 3 [packed = true];
Osmformat.Relation.Builder
clone()
private void
ensureKeysIsMutable()
private void
ensureMemidsIsMutable()
private void
ensureRolesSidIsMutable()
private void
ensureTypesIsMutable()
private void
ensureValsIsMutable()
Osmformat.Relation
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
getMemids(int index)
DELTA encodedint
getMemidsCount()
DELTA encodedjava.util.List<java.lang.Long>
getMemidsList()
DELTA encodedint
getRolesSid(int index)
Parallel arraysint
getRolesSidCount()
Parallel arraysjava.util.List<java.lang.Integer>
getRolesSidList()
Parallel arraysOsmformat.Relation.MemberType
getTypes(int index)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
int
getTypesCount()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
java.util.List<Osmformat.Relation.MemberType>
getTypesList()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
int
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.Relation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Osmformat.Relation.Builder
mergeFrom(com.google.protobuf.Message other)
Osmformat.Relation.Builder
mergeFrom(Osmformat.Relation other)
Osmformat.Relation.Builder
mergeInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
Osmformat.Relation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Osmformat.Relation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Osmformat.Relation.Builder
setId(long value)
required int64 id = 1;
Osmformat.Relation.Builder
setInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
Osmformat.Relation.Builder
setInfo(Osmformat.Info.Builder builderForValue)
optional .OSMPBF.Info info = 4;
Osmformat.Relation.Builder
setKeys(int index, int value)
Parallel arrays.Osmformat.Relation.Builder
setMemids(int index, long value)
DELTA encodedOsmformat.Relation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Osmformat.Relation.Builder
setRolesSid(int index, int value)
Parallel arraysOsmformat.Relation.Builder
setTypes(int index, Osmformat.Relation.MemberType value)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Osmformat.Relation.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_
-
rolesSid_
private com.google.protobuf.Internal.IntList rolesSid_
-
memids_
private com.google.protobuf.Internal.LongList memids_
-
types_
private java.util.List<java.lang.Integer> types_
-
-
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.Relation.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public Osmformat.Relation.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.Relation.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.Relation.Builder>
-
getDefaultInstanceForType
public Osmformat.Relation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Osmformat.Relation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Osmformat.Relation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Osmformat.Relation.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.Relation.Builder>
-
setField
public Osmformat.Relation.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.Relation.Builder>
-
clearField
public Osmformat.Relation.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.Relation.Builder>
-
clearOneof
public Osmformat.Relation.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.Relation.Builder>
-
setRepeatedField
public Osmformat.Relation.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.Relation.Builder>
-
addRepeatedField
public Osmformat.Relation.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.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.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.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(Osmformat.Relation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.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.Relation.Builder>
- Throws:
java.io.IOException
-
hasId
public boolean hasId()
required int64 id = 1;
- Specified by:
hasId
in interfaceOsmformat.RelationOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
required int64 id = 1;
- Specified by:
getId
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The id.
-
setId
public Osmformat.Relation.Builder setId(long value)
required int64 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Osmformat.Relation.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.RelationOrBuilder
- Returns:
- A list containing the keys.
-
getKeysCount
public int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeysCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of keys.
-
getKeys
public int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeys
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The keys at the given index.
-
setKeys
public Osmformat.Relation.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.Relation.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.Relation.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.Relation.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.RelationOrBuilder
- Returns:
- A list containing the vals.
-
getValsCount
public int getValsCount()
repeated uint32 vals = 3 [packed = true];
- Specified by:
getValsCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of vals.
-
getVals
public int getVals(int index)
repeated uint32 vals = 3 [packed = true];
- Specified by:
getVals
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The vals at the given index.
-
setVals
public Osmformat.Relation.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.Relation.Builder addVals(int value)
repeated uint32 vals = 3 [packed = true];
- Parameters:
value
- The vals to add.- Returns:
- This builder for chaining.
-
addAllVals
public Osmformat.Relation.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.Relation.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.RelationOrBuilder
- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;
- Specified by:
getInfo
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The info.
-
setInfo
public Osmformat.Relation.Builder setInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
-
setInfo
public Osmformat.Relation.Builder setInfo(Osmformat.Info.Builder builderForValue)
optional .OSMPBF.Info info = 4;
-
mergeInfo
public Osmformat.Relation.Builder mergeInfo(Osmformat.Info value)
optional .OSMPBF.Info info = 4;
-
clearInfo
public Osmformat.Relation.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.RelationOrBuilder
-
getInfoFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Osmformat.Info,Osmformat.Info.Builder,Osmformat.InfoOrBuilder> getInfoFieldBuilder()
optional .OSMPBF.Info info = 4;
-
ensureRolesSidIsMutable
private void ensureRolesSidIsMutable()
-
getRolesSidList
public java.util.List<java.lang.Integer> getRolesSidList()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSidList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the rolesSid.
-
getRolesSidCount
public int getRolesSidCount()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSidCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of rolesSid.
-
getRolesSid
public int getRolesSid(int index)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSid
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The rolesSid at the given index.
-
setRolesSid
public Osmformat.Relation.Builder setRolesSid(int index, int value)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The rolesSid to set.- Returns:
- This builder for chaining.
-
addRolesSid
public Osmformat.Relation.Builder addRolesSid(int value)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Parameters:
value
- The rolesSid to add.- Returns:
- This builder for chaining.
-
addAllRolesSid
public Osmformat.Relation.Builder addAllRolesSid(java.lang.Iterable<? extends java.lang.Integer> values)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Parameters:
values
- The rolesSid to add.- Returns:
- This builder for chaining.
-
clearRolesSid
public Osmformat.Relation.Builder clearRolesSid()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Returns:
- This builder for chaining.
-
ensureMemidsIsMutable
private void ensureMemidsIsMutable()
-
getMemidsList
public java.util.List<java.lang.Long> getMemidsList()
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemidsList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the memids.
-
getMemidsCount
public int getMemidsCount()
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemidsCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of memids.
-
getMemids
public long getMemids(int index)
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemids
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The memids at the given index.
-
setMemids
public Osmformat.Relation.Builder setMemids(int index, long value)
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The memids to set.- Returns:
- This builder for chaining.
-
addMemids
public Osmformat.Relation.Builder addMemids(long value)
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Parameters:
value
- The memids to add.- Returns:
- This builder for chaining.
-
addAllMemids
public Osmformat.Relation.Builder addAllMemids(java.lang.Iterable<? extends java.lang.Long> values)
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Parameters:
values
- The memids to add.- Returns:
- This builder for chaining.
-
clearMemids
public Osmformat.Relation.Builder clearMemids()
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Returns:
- This builder for chaining.
-
ensureTypesIsMutable
private void ensureTypesIsMutable()
-
getTypesList
public java.util.List<Osmformat.Relation.MemberType> getTypesList()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypesList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypesCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of types.
-
getTypes
public Osmformat.Relation.MemberType getTypes(int index)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypes
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The types at the given index.
-
setTypes
public Osmformat.Relation.Builder setTypes(int index, Osmformat.Relation.MemberType value)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The types to set.- Returns:
- This builder for chaining.
-
addTypes
public Osmformat.Relation.Builder addTypes(Osmformat.Relation.MemberType value)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Parameters:
value
- The types to add.- Returns:
- This builder for chaining.
-
addAllTypes
public Osmformat.Relation.Builder addAllTypes(java.lang.Iterable<? extends Osmformat.Relation.MemberType> values)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Parameters:
values
- The types to add.- Returns:
- This builder for chaining.
-
clearTypes
public Osmformat.Relation.Builder clearTypes()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Osmformat.Relation.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.Relation.Builder>
-
mergeUnknownFields
public final Osmformat.Relation.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.Relation.Builder>
-
-