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,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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Relation.BuilderaddAllKeys(Iterable<? extends Integer> values)Parallel arrays.Osmformat.Relation.BuilderaddAllMemids(Iterable<? extends Long> values)DELTA encodedOsmformat.Relation.BuilderaddAllRolesSid(Iterable<? extends Integer> values)Parallel arraysOsmformat.Relation.BuilderaddAllTypes(Iterable<? extends Osmformat.Relation.MemberType> values)repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];Osmformat.Relation.BuilderaddAllVals(Iterable<? extends Integer> values)repeated uint32 vals = 3 [packed = true];Osmformat.Relation.BuilderaddKeys(int value)Parallel arrays.Osmformat.Relation.BuilderaddMemids(long value)DELTA encodedOsmformat.Relation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Relation.BuilderaddRolesSid(int value)Parallel arraysOsmformat.Relation.BuilderaddTypes(Osmformat.Relation.MemberType value)repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];Osmformat.Relation.BuilderaddVals(int value)repeated uint32 vals = 3 [packed = true];Osmformat.Relationbuild()Osmformat.RelationbuildPartial()Osmformat.Relation.Builderclear()Osmformat.Relation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Osmformat.Relation.BuilderclearId()required int64 id = 1;Osmformat.Relation.BuilderclearInfo()optional .OSMPBF.Info info = 4;Osmformat.Relation.BuilderclearKeys()Parallel arrays.Osmformat.Relation.BuilderclearMemids()DELTA encodedOsmformat.Relation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Osmformat.Relation.BuilderclearRolesSid()Parallel arraysOsmformat.Relation.BuilderclearTypes()repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];Osmformat.Relation.BuilderclearVals()repeated uint32 vals = 3 [packed = true];Osmformat.Relation.Builderclone()Osmformat.RelationgetDefaultInstanceForType()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.longgetMemids(int index)DELTA encodedintgetMemidsCount()DELTA encodedList<Long>getMemidsList()DELTA encodedintgetRolesSid(int index)Parallel arraysintgetRolesSidCount()Parallel arraysList<Integer>getRolesSidList()Parallel arraysOsmformat.Relation.MemberTypegetTypes(int index)repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];intgetTypesCount()repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];List<Osmformat.Relation.MemberType>getTypesList()repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];intgetVals(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.Relation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Osmformat.Relation.BuildermergeFrom(com.google.protobuf.Message other)Osmformat.Relation.BuildermergeFrom(Osmformat.Relation other)Osmformat.Relation.BuildermergeInfo(Osmformat.Info value)optional .OSMPBF.Info info = 4;Osmformat.Relation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Relation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Osmformat.Relation.BuildersetId(long value)required int64 id = 1;Osmformat.Relation.BuildersetInfo(Osmformat.Info value)optional .OSMPBF.Info info = 4;Osmformat.Relation.BuildersetInfo(Osmformat.Info.Builder builderForValue)optional .OSMPBF.Info info = 4;Osmformat.Relation.BuildersetKeys(int index, int value)Parallel arrays.Osmformat.Relation.BuildersetMemids(int index, long value)DELTA encodedOsmformat.Relation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Osmformat.Relation.BuildersetRolesSid(int index, int value)Parallel arraysOsmformat.Relation.BuildersetTypes(int index, Osmformat.Relation.MemberType value)repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];Osmformat.Relation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Osmformat.Relation.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.Relation.Builder>
-
clear
public Osmformat.Relation.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.Relation.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.Relation.Builder>
-
getDefaultInstanceForType
public Osmformat.Relation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Osmformat.Relation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Osmformat.Relation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Osmformat.Relation.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.Relation.Builder>
-
setField
public Osmformat.Relation.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.Relation.Builder>
-
clearField
public Osmformat.Relation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
clearOneof
public Osmformat.Relation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
setRepeatedField
public Osmformat.Relation.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.Relation.Builder>
-
addRepeatedField
public Osmformat.Relation.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.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Osmformat.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(Osmformat.Relation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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 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.Relation.Builder>- Throws:
IOException
-
hasId
public boolean hasId()
required int64 id = 1;- Specified by:
hasIdin interfaceOsmformat.RelationOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
required int64 id = 1;- Specified by:
getIdin 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.
-
getKeysList
public List<Integer> getKeysList()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysListin interfaceOsmformat.RelationOrBuilder- Returns:
- A list containing the keys.
-
getKeysCount
public int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysCountin interfaceOsmformat.RelationOrBuilder- Returns:
- The count of keys.
-
getKeys
public int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];- Specified by:
getKeysin 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(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.Relation.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.RelationOrBuilder- Returns:
- A list containing the vals.
-
getValsCount
public int getValsCount()
repeated uint32 vals = 3 [packed = true];- Specified by:
getValsCountin interfaceOsmformat.RelationOrBuilder- Returns:
- The count of vals.
-
getVals
public int getVals(int index)
repeated uint32 vals = 3 [packed = true];- Specified by:
getValsin 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(Iterable<? extends 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:
hasInfoin interfaceOsmformat.RelationOrBuilder- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;- Specified by:
getInfoin 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:
getInfoOrBuilderin interfaceOsmformat.RelationOrBuilder
-
getRolesSidList
public List<Integer> getRolesSidList()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];- Specified by:
getRolesSidListin interfaceOsmformat.RelationOrBuilder- Returns:
- A list containing the rolesSid.
-
getRolesSidCount
public int getRolesSidCount()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];- Specified by:
getRolesSidCountin interfaceOsmformat.RelationOrBuilder- Returns:
- The count of rolesSid.
-
getRolesSid
public int getRolesSid(int index)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];- Specified by:
getRolesSidin 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(Iterable<? extends 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.
-
getMemidsList
public List<Long> getMemidsList()
DELTA encoded
repeated sint64 memids = 9 [packed = true];- Specified by:
getMemidsListin interfaceOsmformat.RelationOrBuilder- Returns:
- A list containing the memids.
-
getMemidsCount
public int getMemidsCount()
DELTA encoded
repeated sint64 memids = 9 [packed = true];- Specified by:
getMemidsCountin interfaceOsmformat.RelationOrBuilder- Returns:
- The count of memids.
-
getMemids
public long getMemids(int index)
DELTA encoded
repeated sint64 memids = 9 [packed = true];- Specified by:
getMemidsin 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(Iterable<? extends 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.
-
getTypesList
public List<Osmformat.Relation.MemberType> getTypesList()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];- Specified by:
getTypesListin interfaceOsmformat.RelationOrBuilder- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];- Specified by:
getTypesCountin 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:
getTypesin 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(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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
mergeUnknownFields
public final Osmformat.Relation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Osmformat.Relation.Builder>
-
-