Class Osmformat.Relation.Builder
- java.lang.Object
-
- proto4.AbstractMessageLite.Builder
-
- proto4.AbstractMessage.Builder<BuilderT>
-
- proto4.GeneratedMessage.Builder<Osmformat.Relation.Builder>
-
- org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.Relation.Builder
-
- All Implemented Interfaces:
Cloneable
,Osmformat.RelationOrBuilder
,proto4.Message.Builder
,proto4.MessageLite.Builder
,proto4.MessageLiteOrBuilder
,proto4.MessageOrBuilder
- Enclosing class:
- Osmformat.Relation
public static final class Osmformat.Relation.Builder extends proto4.GeneratedMessage.Builder<Osmformat.Relation.Builder> implements Osmformat.RelationOrBuilder
Protobuf typeRelation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Relation.Builder
addAllKeys(Iterable<? extends Integer> values)
Parallel arrays.Osmformat.Relation.Builder
addAllMemids(Iterable<? extends Long> values)
DELTA encodedOsmformat.Relation.Builder
addAllRolesSid(Iterable<? extends Integer> values)
Parallel arraysOsmformat.Relation.Builder
addAllTypes(Iterable<? extends Osmformat.Relation.MemberType> values)
repeated .Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
addAllVals(Iterable<? extends 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
addRolesSid(int value)
Parallel arraysOsmformat.Relation.Builder
addTypes(Osmformat.Relation.MemberType value)
repeated .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
clearId()
required int64 id = 1;
Osmformat.Relation.Builder
clearInfo()
optional .Info info = 4;
Osmformat.Relation.Builder
clearKeys()
Parallel arrays.Osmformat.Relation.Builder
clearMemids()
DELTA encodedOsmformat.Relation.Builder
clearRolesSid()
Parallel arraysOsmformat.Relation.Builder
clearTypes()
repeated .Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
clearVals()
repeated uint32 vals = 3 [packed = true];
Osmformat.Relation
getDefaultInstanceForType()
static proto4.Descriptors.Descriptor
getDescriptor()
proto4.Descriptors.Descriptor
getDescriptorForType()
long
getId()
required int64 id = 1;
Osmformat.Info
getInfo()
optional .Info info = 4;
Osmformat.Info.Builder
getInfoBuilder()
optional .Info info = 4;
Osmformat.InfoOrBuilder
getInfoOrBuilder()
optional .Info info = 4;
int
getKeys(int index)
Parallel arrays.int
getKeysCount()
Parallel arrays.List<Integer>
getKeysList()
Parallel arrays.long
getMemids(int index)
DELTA encodedint
getMemidsCount()
DELTA encodedList<Long>
getMemidsList()
DELTA encodedint
getRolesSid(int index)
Parallel arraysint
getRolesSidCount()
Parallel arraysList<Integer>
getRolesSidList()
Parallel arraysOsmformat.Relation.MemberType
getTypes(int index)
repeated .Relation.MemberType types = 10 [packed = true];
int
getTypesCount()
repeated .Relation.MemberType types = 10 [packed = true];
List<Osmformat.Relation.MemberType>
getTypesList()
repeated .Relation.MemberType types = 10 [packed = true];
int
getVals(int index)
repeated uint32 vals = 3 [packed = true];
int
getValsCount()
repeated uint32 vals = 3 [packed = true];
List<Integer>
getValsList()
repeated uint32 vals = 3 [packed = true];
boolean
hasId()
required int64 id = 1;
boolean
hasInfo()
optional .Info info = 4;
protected proto4.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Osmformat.Relation.Builder
mergeFrom(Osmformat.Relation other)
Osmformat.Relation.Builder
mergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry)
Osmformat.Relation.Builder
mergeFrom(proto4.Message other)
Osmformat.Relation.Builder
mergeInfo(Osmformat.Info value)
optional .Info info = 4;
Osmformat.Relation.Builder
setId(long value)
required int64 id = 1;
Osmformat.Relation.Builder
setInfo(Osmformat.Info value)
optional .Info info = 4;
Osmformat.Relation.Builder
setInfo(Osmformat.Info.Builder builderForValue)
optional .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
setRolesSid(int index, int value)
Parallel arraysOsmformat.Relation.Builder
setTypes(int index, Osmformat.Relation.MemberType value)
repeated .Relation.MemberType types = 10 [packed = true];
Osmformat.Relation.Builder
setVals(int index, int value)
repeated uint32 vals = 3 [packed = true];
-
Methods inherited from class proto4.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class proto4.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class proto4.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final proto4.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classproto4.GeneratedMessage.Builder<Osmformat.Relation.Builder>
-
clear
public Osmformat.Relation.Builder clear()
- Specified by:
clear
in interfaceproto4.Message.Builder
- Specified by:
clear
in interfaceproto4.MessageLite.Builder
- Overrides:
clear
in classproto4.GeneratedMessage.Builder<Osmformat.Relation.Builder>
-
getDescriptorForType
public proto4.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceproto4.Message.Builder
- Specified by:
getDescriptorForType
in interfaceproto4.MessageOrBuilder
- Overrides:
getDescriptorForType
in classproto4.GeneratedMessage.Builder<Osmformat.Relation.Builder>
-
getDefaultInstanceForType
public Osmformat.Relation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageOrBuilder
-
build
public Osmformat.Relation build()
- Specified by:
build
in interfaceproto4.Message.Builder
- Specified by:
build
in interfaceproto4.MessageLite.Builder
-
buildPartial
public Osmformat.Relation buildPartial()
- Specified by:
buildPartial
in interfaceproto4.Message.Builder
- Specified by:
buildPartial
in interfaceproto4.MessageLite.Builder
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(proto4.Message other)
- Specified by:
mergeFrom
in interfaceproto4.Message.Builder
- Overrides:
mergeFrom
in classproto4.AbstractMessage.Builder<Osmformat.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(Osmformat.Relation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceproto4.MessageLiteOrBuilder
- Overrides:
isInitialized
in classproto4.GeneratedMessage.Builder<Osmformat.Relation.Builder>
-
mergeFrom
public Osmformat.Relation.Builder mergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceproto4.Message.Builder
- Specified by:
mergeFrom
in interfaceproto4.MessageLite.Builder
- Overrides:
mergeFrom
in classproto4.AbstractMessage.Builder<Osmformat.Relation.Builder>
- Throws:
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.
-
getKeysList
public List<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(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:
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(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 .Info info = 4;
- Specified by:
hasInfo
in interfaceOsmformat.RelationOrBuilder
- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .Info info = 4;
- Specified by:
getInfo
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The info.
-
setInfo
public Osmformat.Relation.Builder setInfo(Osmformat.Info value)
optional .Info info = 4;
-
setInfo
public Osmformat.Relation.Builder setInfo(Osmformat.Info.Builder builderForValue)
optional .Info info = 4;
-
mergeInfo
public Osmformat.Relation.Builder mergeInfo(Osmformat.Info value)
optional .Info info = 4;
-
clearInfo
public Osmformat.Relation.Builder clearInfo()
optional .Info info = 4;
-
getInfoBuilder
public Osmformat.Info.Builder getInfoBuilder()
optional .Info info = 4;
-
getInfoOrBuilder
public Osmformat.InfoOrBuilder getInfoOrBuilder()
optional .Info info = 4;
- Specified by:
getInfoOrBuilder
in interfaceOsmformat.RelationOrBuilder
-
getRolesSidList
public List<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(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:
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(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 .Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypesList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()
repeated .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 .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 .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 .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 .Relation.MemberType types = 10 [packed = true];
- Parameters:
values
- The types to add.- Returns:
- This builder for chaining.
-
clearTypes
public Osmformat.Relation.Builder clearTypes()
repeated .Relation.MemberType types = 10 [packed = true];
- Returns:
- This builder for chaining.
-
-