Class Osmformat.Way.Builder
- java.lang.Object
-
- proto4.AbstractMessageLite.Builder
-
- proto4.AbstractMessage.Builder<BuilderT>
-
- proto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
-
- org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.Way.Builder
-
- All Implemented Interfaces:
Cloneable
,Osmformat.WayOrBuilder
,proto4.Message.Builder
,proto4.MessageLite.Builder
,proto4.MessageLiteOrBuilder
,proto4.MessageOrBuilder
- Enclosing class:
- Osmformat.Way
public static final class Osmformat.Way.Builder extends proto4.GeneratedMessage.Builder<Osmformat.Way.Builder> implements Osmformat.WayOrBuilder
Protobuf typeWay
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Osmformat.Way.Builder
addAllKeys(Iterable<? extends Integer> values)
Parallel arrays.Osmformat.Way.Builder
addAllRefs(Iterable<? extends Long> values)
DELTA codedOsmformat.Way.Builder
addAllVals(Iterable<? extends Integer> values)
repeated uint32 vals = 3 [packed = true];
Osmformat.Way.Builder
addKeys(int value)
Parallel arrays.Osmformat.Way.Builder
addRefs(long value)
DELTA codedOsmformat.Way.Builder
addVals(int value)
repeated uint32 vals = 3 [packed = true];
Osmformat.Way
build()
Osmformat.Way
buildPartial()
Osmformat.Way.Builder
clear()
Osmformat.Way.Builder
clearId()
required int64 id = 1;
Osmformat.Way.Builder
clearInfo()
optional .Info info = 4;
Osmformat.Way.Builder
clearKeys()
Parallel arrays.Osmformat.Way.Builder
clearRefs()
DELTA codedOsmformat.Way.Builder
clearVals()
repeated uint32 vals = 3 [packed = true];
Osmformat.Way
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
getRefs(int index)
DELTA codedint
getRefsCount()
DELTA codedList<Long>
getRefsList()
DELTA codedint
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.Way.Builder
mergeFrom(Osmformat.Way other)
Osmformat.Way.Builder
mergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry)
Osmformat.Way.Builder
mergeFrom(proto4.Message other)
Osmformat.Way.Builder
mergeInfo(Osmformat.Info value)
optional .Info info = 4;
Osmformat.Way.Builder
setId(long value)
required int64 id = 1;
Osmformat.Way.Builder
setInfo(Osmformat.Info value)
optional .Info info = 4;
Osmformat.Way.Builder
setInfo(Osmformat.Info.Builder builderForValue)
optional .Info info = 4;
Osmformat.Way.Builder
setKeys(int index, int value)
Parallel arrays.Osmformat.Way.Builder
setRefs(int index, long value)
DELTA codedOsmformat.Way.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.Way.Builder>
-
clear
public Osmformat.Way.Builder clear()
- Specified by:
clear
in interfaceproto4.Message.Builder
- Specified by:
clear
in interfaceproto4.MessageLite.Builder
- Overrides:
clear
in classproto4.GeneratedMessage.Builder<Osmformat.Way.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.Way.Builder>
-
getDefaultInstanceForType
public Osmformat.Way getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageOrBuilder
-
build
public Osmformat.Way build()
- Specified by:
build
in interfaceproto4.Message.Builder
- Specified by:
build
in interfaceproto4.MessageLite.Builder
-
buildPartial
public Osmformat.Way buildPartial()
- Specified by:
buildPartial
in interfaceproto4.Message.Builder
- Specified by:
buildPartial
in interfaceproto4.MessageLite.Builder
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(proto4.Message other)
- Specified by:
mergeFrom
in interfaceproto4.Message.Builder
- Overrides:
mergeFrom
in classproto4.AbstractMessage.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.Builder mergeFrom(Osmformat.Way other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceproto4.MessageLiteOrBuilder
- Overrides:
isInitialized
in classproto4.GeneratedMessage.Builder<Osmformat.Way.Builder>
-
mergeFrom
public Osmformat.Way.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.Way.Builder>
- Throws:
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.
-
getKeysList
public List<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(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.Way.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.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(Iterable<? extends 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 .Info info = 4;
- Specified by:
hasInfo
in interfaceOsmformat.WayOrBuilder
- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .Info info = 4;
- Specified by:
getInfo
in interfaceOsmformat.WayOrBuilder
- Returns:
- The info.
-
setInfo
public Osmformat.Way.Builder setInfo(Osmformat.Info value)
optional .Info info = 4;
-
setInfo
public Osmformat.Way.Builder setInfo(Osmformat.Info.Builder builderForValue)
optional .Info info = 4;
-
mergeInfo
public Osmformat.Way.Builder mergeInfo(Osmformat.Info value)
optional .Info info = 4;
-
clearInfo
public Osmformat.Way.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.WayOrBuilder
-
getRefsList
public List<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(Iterable<? extends 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.
-
-