Class Osmformat.PrimitiveBlock.Builder
java.lang.Object
proto4.AbstractMessageLite.Builder
proto4.AbstractMessage.Builder<BuilderT>
proto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.PrimitiveBlock.Builder
- All Implemented Interfaces:
Cloneable,Osmformat.PrimitiveBlockOrBuilder,proto4.Message.Builder,proto4.MessageLite.Builder,proto4.MessageLiteOrBuilder,proto4.MessageOrBuilder
- Enclosing class:
- Osmformat.PrimitiveBlock
public static final class Osmformat.PrimitiveBlock.Builder
extends proto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
implements Osmformat.PrimitiveBlockOrBuilder
Protobuf type
PrimitiveBlock-
Method Summary
Modifier and TypeMethodDescriptionaddAllPrimitivegroup(Iterable<? extends Osmformat.PrimitiveGroup> values) repeated .PrimitiveGroup primitivegroup = 2;addPrimitivegroup(int index, Osmformat.PrimitiveGroup value) repeated .PrimitiveGroup primitivegroup = 2;addPrimitivegroup(int index, Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2;repeated .PrimitiveGroup primitivegroup = 2;addPrimitivegroup(Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2;repeated .PrimitiveGroup primitivegroup = 2;addPrimitivegroupBuilder(int index) repeated .PrimitiveGroup primitivegroup = 2;build()clear()Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.Granularity, units of nanodegrees, used to store coordinates in this blockOffset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.optional int64 lon_offset = 20 [default = 0];repeated .PrimitiveGroup primitivegroup = 2;required .StringTable stringtable = 1;intGranularity of dates, normally represented in units of milliseconds since the 1970 epoch.static final proto4.Descriptors.Descriptorproto4.Descriptors.DescriptorintGranularity, units of nanodegrees, used to store coordinates in this blocklongOffset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.longoptional int64 lon_offset = 20 [default = 0];getPrimitivegroup(int index) repeated .PrimitiveGroup primitivegroup = 2;getPrimitivegroupBuilder(int index) repeated .PrimitiveGroup primitivegroup = 2;repeated .PrimitiveGroup primitivegroup = 2;intrepeated .PrimitiveGroup primitivegroup = 2;repeated .PrimitiveGroup primitivegroup = 2;getPrimitivegroupOrBuilder(int index) repeated .PrimitiveGroup primitivegroup = 2;List<? extends Osmformat.PrimitiveGroupOrBuilder>repeated .PrimitiveGroup primitivegroup = 2;required .StringTable stringtable = 1;required .StringTable stringtable = 1;required .StringTable stringtable = 1;booleanGranularity of dates, normally represented in units of milliseconds since the 1970 epoch.booleanGranularity, units of nanodegrees, used to store coordinates in this blockbooleanOffset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.booleanoptional int64 lon_offset = 20 [default = 0];booleanrequired .StringTable stringtable = 1;protected proto4.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry) mergeFrom(proto4.Message other) required .StringTable stringtable = 1;removePrimitivegroup(int index) repeated .PrimitiveGroup primitivegroup = 2;setDateGranularity(int value) Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.setGranularity(int value) Granularity, units of nanodegrees, used to store coordinates in this blocksetLatOffset(long value) Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.setLonOffset(long value) optional int64 lon_offset = 20 [default = 0];setPrimitivegroup(int index, Osmformat.PrimitiveGroup value) repeated .PrimitiveGroup primitivegroup = 2;setPrimitivegroup(int index, Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2;required .StringTable stringtable = 1;setStringtable(Osmformat.StringTable.Builder builderForValue) required .StringTable stringtable = 1;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, setUnknownFieldsProto3Methods inherited from class proto4.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class proto4.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface proto4.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface proto4.MessageLite.Builder
mergeFromMethods inherited from interface proto4.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final proto4.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classproto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
-
clear
- Specified by:
clearin interfaceproto4.Message.Builder- Specified by:
clearin interfaceproto4.MessageLite.Builder- Overrides:
clearin classproto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
-
getDescriptorForType
public proto4.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfaceproto4.Message.Builder- Specified by:
getDescriptorForTypein interfaceproto4.MessageOrBuilder- Overrides:
getDescriptorForTypein classproto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceproto4.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceproto4.MessageOrBuilder
-
build
- Specified by:
buildin interfaceproto4.Message.Builder- Specified by:
buildin interfaceproto4.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceproto4.Message.Builder- Specified by:
buildPartialin interfaceproto4.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfaceproto4.Message.Builder- Overrides:
mergeFromin classproto4.AbstractMessage.Builder<Osmformat.PrimitiveBlock.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceproto4.MessageLiteOrBuilder- Overrides:
isInitializedin classproto4.GeneratedMessage.Builder<Osmformat.PrimitiveBlock.Builder>
-
mergeFrom
public Osmformat.PrimitiveBlock.Builder mergeFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceproto4.Message.Builder- Specified by:
mergeFromin interfaceproto4.MessageLite.Builder- Overrides:
mergeFromin classproto4.AbstractMessage.Builder<Osmformat.PrimitiveBlock.Builder>- Throws:
IOException
-
hasStringtable
public boolean hasStringtable()required .StringTable stringtable = 1;- Specified by:
hasStringtablein interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the stringtable field is set.
-
getStringtable
required .StringTable stringtable = 1;- Specified by:
getStringtablein interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The stringtable.
-
setStringtable
required .StringTable stringtable = 1; -
setStringtable
public Osmformat.PrimitiveBlock.Builder setStringtable(Osmformat.StringTable.Builder builderForValue) required .StringTable stringtable = 1; -
mergeStringtable
required .StringTable stringtable = 1; -
clearStringtable
required .StringTable stringtable = 1; -
getStringtableBuilder
required .StringTable stringtable = 1; -
getStringtableOrBuilder
required .StringTable stringtable = 1;- Specified by:
getStringtableOrBuilderin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupList
repeated .PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupListin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupCount
public int getPrimitivegroupCount()repeated .PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupCountin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroup
repeated .PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupin interfaceOsmformat.PrimitiveBlockOrBuilder
-
setPrimitivegroup
public Osmformat.PrimitiveBlock.Builder setPrimitivegroup(int index, Osmformat.PrimitiveGroup value) repeated .PrimitiveGroup primitivegroup = 2; -
setPrimitivegroup
public Osmformat.PrimitiveBlock.Builder setPrimitivegroup(int index, Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2; -
addPrimitivegroup
repeated .PrimitiveGroup primitivegroup = 2; -
addPrimitivegroup
public Osmformat.PrimitiveBlock.Builder addPrimitivegroup(int index, Osmformat.PrimitiveGroup value) repeated .PrimitiveGroup primitivegroup = 2; -
addPrimitivegroup
public Osmformat.PrimitiveBlock.Builder addPrimitivegroup(Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2; -
addPrimitivegroup
public Osmformat.PrimitiveBlock.Builder addPrimitivegroup(int index, Osmformat.PrimitiveGroup.Builder builderForValue) repeated .PrimitiveGroup primitivegroup = 2; -
addAllPrimitivegroup
public Osmformat.PrimitiveBlock.Builder addAllPrimitivegroup(Iterable<? extends Osmformat.PrimitiveGroup> values) repeated .PrimitiveGroup primitivegroup = 2; -
clearPrimitivegroup
repeated .PrimitiveGroup primitivegroup = 2; -
removePrimitivegroup
repeated .PrimitiveGroup primitivegroup = 2; -
getPrimitivegroupBuilder
repeated .PrimitiveGroup primitivegroup = 2; -
getPrimitivegroupOrBuilder
repeated .PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupOrBuilderin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupOrBuilderList
repeated .PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupOrBuilderListin interfaceOsmformat.PrimitiveBlockOrBuilder
-
addPrimitivegroupBuilder
repeated .PrimitiveGroup primitivegroup = 2; -
addPrimitivegroupBuilder
repeated .PrimitiveGroup primitivegroup = 2; -
getPrimitivegroupBuilderList
repeated .PrimitiveGroup primitivegroup = 2; -
hasGranularity
public boolean hasGranularity()Granularity, units of nanodegrees, used to store coordinates in this block
optional int32 granularity = 17 [default = 100];- Specified by:
hasGranularityin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the granularity field is set.
-
getGranularity
public int getGranularity()Granularity, units of nanodegrees, used to store coordinates in this block
optional int32 granularity = 17 [default = 100];- Specified by:
getGranularityin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The granularity.
-
setGranularity
Granularity, units of nanodegrees, used to store coordinates in this block
optional int32 granularity = 17 [default = 100];- Parameters:
value- The granularity to set.- Returns:
- This builder for chaining.
-
clearGranularity
Granularity, units of nanodegrees, used to store coordinates in this block
optional int32 granularity = 17 [default = 100];- Returns:
- This builder for chaining.
-
hasLatOffset
public boolean hasLatOffset()Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
optional int64 lat_offset = 19 [default = 0];- Specified by:
hasLatOffsetin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the latOffset field is set.
-
getLatOffset
public long getLatOffset()Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
optional int64 lat_offset = 19 [default = 0];- Specified by:
getLatOffsetin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The latOffset.
-
setLatOffset
Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
optional int64 lat_offset = 19 [default = 0];- Parameters:
value- The latOffset to set.- Returns:
- This builder for chaining.
-
clearLatOffset
Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
optional int64 lat_offset = 19 [default = 0];- Returns:
- This builder for chaining.
-
hasLonOffset
public boolean hasLonOffset()optional int64 lon_offset = 20 [default = 0];- Specified by:
hasLonOffsetin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the lonOffset field is set.
-
getLonOffset
public long getLonOffset()optional int64 lon_offset = 20 [default = 0];- Specified by:
getLonOffsetin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The lonOffset.
-
setLonOffset
optional int64 lon_offset = 20 [default = 0];- Parameters:
value- The lonOffset to set.- Returns:
- This builder for chaining.
-
clearLonOffset
optional int64 lon_offset = 20 [default = 0];- Returns:
- This builder for chaining.
-
hasDateGranularity
public boolean hasDateGranularity()Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
optional int32 date_granularity = 18 [default = 1000];- Specified by:
hasDateGranularityin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the dateGranularity field is set.
-
getDateGranularity
public int getDateGranularity()Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
optional int32 date_granularity = 18 [default = 1000];- Specified by:
getDateGranularityin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The dateGranularity.
-
setDateGranularity
Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
optional int32 date_granularity = 18 [default = 1000];- Parameters:
value- The dateGranularity to set.- Returns:
- This builder for chaining.
-
clearDateGranularity
Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
optional int32 date_granularity = 18 [default = 1000];- Returns:
- This builder for chaining.
-