Class Osmformat.PrimitiveBlock
- java.lang.Object
-
- proto4.AbstractMessageLite
-
- proto4.AbstractMessage
-
- proto4.GeneratedMessage
-
- org.apache.sedona.sql.datasources.osmpbf.build.Osmformat.PrimitiveBlock
-
- All Implemented Interfaces:
Serializable
,Osmformat.PrimitiveBlockOrBuilder
,proto4.Message
,proto4.MessageLite
,proto4.MessageLiteOrBuilder
,proto4.MessageOrBuilder
- Enclosing class:
- Osmformat
public static final class Osmformat.PrimitiveBlock extends proto4.GeneratedMessage implements Osmformat.PrimitiveBlockOrBuilder
Protobuf typePrimitiveBlock
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Osmformat.PrimitiveBlock.Builder
Protobuf typePrimitiveBlock
-
Nested classes/interfaces inherited from class proto4.GeneratedMessage
proto4.GeneratedMessage.ExtendableBuilder<MessageT extends proto4.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends proto4.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, proto4.GeneratedMessage.ExtendableMessage<MessageT extends proto4.GeneratedMessage.ExtendableMessage<MessageT>>, proto4.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends proto4.GeneratedMessage.ExtendableMessage<MessageT>>, proto4.GeneratedMessage.FieldAccessorTable, proto4.GeneratedMessage.GeneratedExtension<ContainingT extends proto4.Message,T extends Object>, proto4.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATE_GRANULARITY_FIELD_NUMBER
static int
GRANULARITY_FIELD_NUMBER
static int
LAT_OFFSET_FIELD_NUMBER
static int
LON_OFFSET_FIELD_NUMBER
static int
PRIMITIVEGROUP_FIELD_NUMBER
static int
STRINGTABLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getDateGranularity()
Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.static Osmformat.PrimitiveBlock
getDefaultInstance()
Osmformat.PrimitiveBlock
getDefaultInstanceForType()
static proto4.Descriptors.Descriptor
getDescriptor()
int
getGranularity()
Granularity, units of nanodegrees, used to store coordinates in this blocklong
getLatOffset()
Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.long
getLonOffset()
optional int64 lon_offset = 20 [default = 0];
proto4.Parser<Osmformat.PrimitiveBlock>
getParserForType()
Osmformat.PrimitiveGroup
getPrimitivegroup(int index)
repeated .PrimitiveGroup primitivegroup = 2;
int
getPrimitivegroupCount()
repeated .PrimitiveGroup primitivegroup = 2;
List<Osmformat.PrimitiveGroup>
getPrimitivegroupList()
repeated .PrimitiveGroup primitivegroup = 2;
Osmformat.PrimitiveGroupOrBuilder
getPrimitivegroupOrBuilder(int index)
repeated .PrimitiveGroup primitivegroup = 2;
List<? extends Osmformat.PrimitiveGroupOrBuilder>
getPrimitivegroupOrBuilderList()
repeated .PrimitiveGroup primitivegroup = 2;
int
getSerializedSize()
Osmformat.StringTable
getStringtable()
required .StringTable stringtable = 1;
Osmformat.StringTableOrBuilder
getStringtableOrBuilder()
required .StringTable stringtable = 1;
boolean
hasDateGranularity()
Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.boolean
hasGranularity()
Granularity, units of nanodegrees, used to store coordinates in this blockint
hashCode()
boolean
hasLatOffset()
Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.boolean
hasLonOffset()
optional int64 lon_offset = 20 [default = 0];
boolean
hasStringtable()
required .StringTable stringtable = 1;
protected proto4.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Osmformat.PrimitiveBlock.Builder
newBuilder()
static Osmformat.PrimitiveBlock.Builder
newBuilder(Osmformat.PrimitiveBlock prototype)
Osmformat.PrimitiveBlock.Builder
newBuilderForType()
protected Osmformat.PrimitiveBlock.Builder
newBuilderForType(proto4.AbstractMessage.BuilderParent parent)
static Osmformat.PrimitiveBlock
parseDelimitedFrom(InputStream input)
static Osmformat.PrimitiveBlock
parseDelimitedFrom(InputStream input, proto4.ExtensionRegistryLite extensionRegistry)
static Osmformat.PrimitiveBlock
parseFrom(byte[] data)
static Osmformat.PrimitiveBlock
parseFrom(byte[] data, proto4.ExtensionRegistryLite extensionRegistry)
static Osmformat.PrimitiveBlock
parseFrom(InputStream input)
static Osmformat.PrimitiveBlock
parseFrom(InputStream input, proto4.ExtensionRegistryLite extensionRegistry)
static Osmformat.PrimitiveBlock
parseFrom(ByteBuffer data)
static Osmformat.PrimitiveBlock
parseFrom(ByteBuffer data, proto4.ExtensionRegistryLite extensionRegistry)
static Osmformat.PrimitiveBlock
parseFrom(proto4.ByteString data)
static Osmformat.PrimitiveBlock
parseFrom(proto4.ByteString data, proto4.ExtensionRegistryLite extensionRegistry)
static Osmformat.PrimitiveBlock
parseFrom(proto4.CodedInputStream input)
static Osmformat.PrimitiveBlock
parseFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry)
static proto4.Parser<Osmformat.PrimitiveBlock>
parser()
Osmformat.PrimitiveBlock.Builder
toBuilder()
void
writeTo(proto4.CodedOutputStream output)
-
Methods inherited from class proto4.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class proto4.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class proto4.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STRINGTABLE_FIELD_NUMBER
public static final int STRINGTABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIMITIVEGROUP_FIELD_NUMBER
public static final int PRIMITIVEGROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRANULARITY_FIELD_NUMBER
public static final int GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAT_OFFSET_FIELD_NUMBER
public static final int LAT_OFFSET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LON_OFFSET_FIELD_NUMBER
public static final int LON_OFFSET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATE_GRANULARITY_FIELD_NUMBER
public static final int DATE_GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final proto4.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected proto4.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classproto4.GeneratedMessage
-
hasStringtable
public boolean hasStringtable()
required .StringTable stringtable = 1;
- Specified by:
hasStringtable
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- Whether the stringtable field is set.
-
getStringtable
public Osmformat.StringTable getStringtable()
required .StringTable stringtable = 1;
- Specified by:
getStringtable
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- The stringtable.
-
getStringtableOrBuilder
public Osmformat.StringTableOrBuilder getStringtableOrBuilder()
required .StringTable stringtable = 1;
- Specified by:
getStringtableOrBuilder
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupList
public List<Osmformat.PrimitiveGroup> getPrimitivegroupList()
repeated .PrimitiveGroup primitivegroup = 2;
- Specified by:
getPrimitivegroupList
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupOrBuilderList
public List<? extends Osmformat.PrimitiveGroupOrBuilder> getPrimitivegroupOrBuilderList()
repeated .PrimitiveGroup primitivegroup = 2;
- Specified by:
getPrimitivegroupOrBuilderList
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupCount
public int getPrimitivegroupCount()
repeated .PrimitiveGroup primitivegroup = 2;
- Specified by:
getPrimitivegroupCount
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroup
public Osmformat.PrimitiveGroup getPrimitivegroup(int index)
repeated .PrimitiveGroup primitivegroup = 2;
- Specified by:
getPrimitivegroup
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupOrBuilder
public Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder(int index)
repeated .PrimitiveGroup primitivegroup = 2;
- Specified by:
getPrimitivegroupOrBuilder
in interfaceOsmformat.PrimitiveBlockOrBuilder
-
hasGranularity
public boolean hasGranularity()
Granularity, units of nanodegrees, used to store coordinates in this block
optional int32 granularity = 17 [default = 100];
- Specified by:
hasGranularity
in 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:
getGranularity
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- The granularity.
-
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:
hasLatOffset
in 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:
getLatOffset
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- The latOffset.
-
hasLonOffset
public boolean hasLonOffset()
optional int64 lon_offset = 20 [default = 0];
- Specified by:
hasLonOffset
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- Whether the lonOffset field is set.
-
getLonOffset
public long getLonOffset()
optional int64 lon_offset = 20 [default = 0];
- Specified by:
getLonOffset
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- The lonOffset.
-
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:
hasDateGranularity
in 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:
getDateGranularity
in interfaceOsmformat.PrimitiveBlockOrBuilder
- Returns:
- The dateGranularity.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceproto4.MessageLiteOrBuilder
- Overrides:
isInitialized
in classproto4.GeneratedMessage
-
writeTo
public void writeTo(proto4.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceproto4.MessageLite
- Overrides:
writeTo
in classproto4.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceproto4.MessageLite
- Overrides:
getSerializedSize
in classproto4.GeneratedMessage
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceproto4.Message
- Overrides:
equals
in classproto4.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceproto4.Message
- Overrides:
hashCode
in classproto4.AbstractMessage
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(ByteBuffer data) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(ByteBuffer data, proto4.ExtensionRegistryLite extensionRegistry) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(proto4.ByteString data) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(proto4.ByteString data, proto4.ExtensionRegistryLite extensionRegistry) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(byte[] data) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(byte[] data, proto4.ExtensionRegistryLite extensionRegistry) throws proto4.InvalidProtocolBufferException
- Throws:
proto4.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(InputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Osmformat.PrimitiveBlock parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Osmformat.PrimitiveBlock parseDelimitedFrom(InputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(proto4.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(proto4.CodedInputStream input, proto4.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Osmformat.PrimitiveBlock.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceproto4.Message
- Specified by:
newBuilderForType
in interfaceproto4.MessageLite
-
newBuilder
public static Osmformat.PrimitiveBlock.Builder newBuilder()
-
newBuilder
public static Osmformat.PrimitiveBlock.Builder newBuilder(Osmformat.PrimitiveBlock prototype)
-
toBuilder
public Osmformat.PrimitiveBlock.Builder toBuilder()
- Specified by:
toBuilder
in interfaceproto4.Message
- Specified by:
toBuilder
in interfaceproto4.MessageLite
-
newBuilderForType
protected Osmformat.PrimitiveBlock.Builder newBuilderForType(proto4.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classproto4.AbstractMessage
-
getDefaultInstance
public static Osmformat.PrimitiveBlock getDefaultInstance()
-
parser
public static proto4.Parser<Osmformat.PrimitiveBlock> parser()
-
getParserForType
public proto4.Parser<Osmformat.PrimitiveBlock> getParserForType()
- Specified by:
getParserForType
in interfaceproto4.Message
- Specified by:
getParserForType
in interfaceproto4.MessageLite
- Overrides:
getParserForType
in classproto4.GeneratedMessage
-
getDefaultInstanceForType
public Osmformat.PrimitiveBlock getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceproto4.MessageOrBuilder
-
-