Package crosby.binary
Class Osmformat.PrimitiveBlock
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- crosby.binary.Osmformat.PrimitiveBlock
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Osmformat.PrimitiveBlockOrBuilder,Serializable
- Enclosing class:
- Osmformat
public static final class Osmformat.PrimitiveBlock extends com.google.protobuf.GeneratedMessageV3 implements Osmformat.PrimitiveBlockOrBuilder
Protobuf typeOSMPBF.PrimitiveBlock- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOsmformat.PrimitiveBlock.BuilderProtobuf typeOSMPBF.PrimitiveBlock-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDATE_GRANULARITY_FIELD_NUMBERstatic intGRANULARITY_FIELD_NUMBERstatic intLAT_OFFSET_FIELD_NUMBERstatic intLON_OFFSET_FIELD_NUMBERstatic com.google.protobuf.Parser<Osmformat.PrimitiveBlock>PARSERDeprecated.static intPRIMITIVEGROUP_FIELD_NUMBERstatic intSTRINGTABLE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetDateGranularity()Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.static Osmformat.PrimitiveBlockgetDefaultInstance()Osmformat.PrimitiveBlockgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetGranularity()Granularity, units of nanodegrees, used to store coordinates in this block.longgetLatOffset()Offset value between the output coordinates and the granularity grid in units of nanodegrees.longgetLonOffset()optional int64 lon_offset = 20 [default = 0];com.google.protobuf.Parser<Osmformat.PrimitiveBlock>getParserForType()Osmformat.PrimitiveGroupgetPrimitivegroup(int index)repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;intgetPrimitivegroupCount()repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;List<Osmformat.PrimitiveGroup>getPrimitivegroupList()repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;Osmformat.PrimitiveGroupOrBuildergetPrimitivegroupOrBuilder(int index)repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;List<? extends Osmformat.PrimitiveGroupOrBuilder>getPrimitivegroupOrBuilderList()repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;intgetSerializedSize()Osmformat.StringTablegetStringtable()required .OSMPBF.StringTable stringtable = 1;Osmformat.StringTableOrBuildergetStringtableOrBuilder()required .OSMPBF.StringTable stringtable = 1;com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasDateGranularity()Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.booleanhasGranularity()Granularity, units of nanodegrees, used to store coordinates in this block.inthashCode()booleanhasLatOffset()Offset value between the output coordinates and the granularity grid in units of nanodegrees.booleanhasLonOffset()optional int64 lon_offset = 20 [default = 0];booleanhasStringtable()required .OSMPBF.StringTable stringtable = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Osmformat.PrimitiveBlock.BuildernewBuilder()static Osmformat.PrimitiveBlock.BuildernewBuilder(Osmformat.PrimitiveBlock prototype)Osmformat.PrimitiveBlock.BuildernewBuilderForType()protected Osmformat.PrimitiveBlock.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Osmformat.PrimitiveBlockparseDelimitedFrom(InputStream input)static Osmformat.PrimitiveBlockparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Osmformat.PrimitiveBlockparseFrom(byte[] data)static Osmformat.PrimitiveBlockparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Osmformat.PrimitiveBlockparseFrom(com.google.protobuf.ByteString data)static Osmformat.PrimitiveBlockparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Osmformat.PrimitiveBlockparseFrom(com.google.protobuf.CodedInputStream input)static Osmformat.PrimitiveBlockparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Osmformat.PrimitiveBlockparseFrom(InputStream input)static Osmformat.PrimitiveBlockparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Osmformat.PrimitiveBlockparseFrom(ByteBuffer data)static Osmformat.PrimitiveBlockparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Osmformat.PrimitiveBlock>parser()Osmformat.PrimitiveBlock.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, 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
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Osmformat.PrimitiveBlock> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasStringtable
public boolean hasStringtable()
required .OSMPBF.StringTable stringtable = 1;- Specified by:
hasStringtablein interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- Whether the stringtable field is set.
-
getStringtable
public Osmformat.StringTable getStringtable()
required .OSMPBF.StringTable stringtable = 1;- Specified by:
getStringtablein interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The stringtable.
-
getStringtableOrBuilder
public Osmformat.StringTableOrBuilder getStringtableOrBuilder()
required .OSMPBF.StringTable stringtable = 1;- Specified by:
getStringtableOrBuilderin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupList
public List<Osmformat.PrimitiveGroup> getPrimitivegroupList()
repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupListin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupOrBuilderList
public List<? extends Osmformat.PrimitiveGroupOrBuilder> getPrimitivegroupOrBuilderList()
repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupOrBuilderListin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupCount
public int getPrimitivegroupCount()
repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupCountin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroup
public Osmformat.PrimitiveGroup getPrimitivegroup(int index)
repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupin interfaceOsmformat.PrimitiveBlockOrBuilder
-
getPrimitivegroupOrBuilder
public Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder(int index)
repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;- Specified by:
getPrimitivegroupOrBuilderin 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:
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.
-
hasLatOffset
public boolean hasLatOffset()
Offset value between the output coordinates and the granularity grid in units 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 and the granularity grid in units of nanodegrees.
optional int64 lat_offset = 19 [default = 0];- Specified by:
getLatOffsetin interfaceOsmformat.PrimitiveBlockOrBuilder- Returns:
- The latOffset.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Osmformat.PrimitiveBlock.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Osmformat.PrimitiveBlock.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Osmformat.PrimitiveBlock getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Osmformat.PrimitiveBlock> parser()
-
getParserForType
public com.google.protobuf.Parser<Osmformat.PrimitiveBlock> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Osmformat.PrimitiveBlock getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-