Package crosby.binary
Class Fileformat.Blob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- crosby.binary.Fileformat.Blob
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Fileformat.BlobOrBuilder
,java.io.Serializable
- Enclosing class:
- Fileformat
public static final class Fileformat.Blob extends com.google.protobuf.GeneratedMessageV3 implements Fileformat.BlobOrBuilder
Protobuf typeOSMPBF.Blob
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Fileformat.Blob.Builder
Protobuf typeOSMPBF.Blob
static class
Fileformat.Blob.DataCase
-
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 private int
bitField0_
private java.lang.Object
data_
private int
dataCase_
private static Fileformat.Blob
DEFAULT_INSTANCE
static int
LZ4_DATA_FIELD_NUMBER
static int
LZMA_DATA_FIELD_NUMBER
private byte
memoizedIsInitialized
static int
OBSOLETE_BZIP2_DATA_FIELD_NUMBER
static com.google.protobuf.Parser<Fileformat.Blob>
PARSER
Deprecated.static int
RAW_FIELD_NUMBER
static int
RAW_SIZE_FIELD_NUMBER
private int
rawSize_
private static long
serialVersionUID
static int
ZLIB_DATA_FIELD_NUMBER
static int
ZSTD_DATA_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Fileformat.Blob.DataCase
getDataCase()
static Fileformat.Blob
getDefaultInstance()
Fileformat.Blob
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.ByteString
getLz4Data()
For LZ4 compressed data (optional)com.google.protobuf.ByteString
getLzmaData()
For LZMA compressed data (optional)com.google.protobuf.ByteString
getOBSOLETEBzip2Data()
Deprecated.com.google.protobuf.Parser<Fileformat.Blob>
getParserForType()
com.google.protobuf.ByteString
getRaw()
No compressionint
getRawSize()
When compressed, the uncompressed sizeint
getSerializedSize()
com.google.protobuf.UnknownFieldSet
getUnknownFields()
com.google.protobuf.ByteString
getZlibData()
Possible compressed versions of the data.com.google.protobuf.ByteString
getZstdData()
For ZSTD compressed data (optional)int
hashCode()
boolean
hasLz4Data()
For LZ4 compressed data (optional)boolean
hasLzmaData()
For LZMA compressed data (optional)boolean
hasOBSOLETEBzip2Data()
Deprecated.boolean
hasRaw()
No compressionboolean
hasRawSize()
When compressed, the uncompressed sizeboolean
hasZlibData()
Possible compressed versions of the data.boolean
hasZstdData()
For ZSTD compressed data (optional)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Fileformat.Blob.Builder
newBuilder()
static Fileformat.Blob.Builder
newBuilder(Fileformat.Blob prototype)
Fileformat.Blob.Builder
newBuilderForType()
protected Fileformat.Blob.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Fileformat.Blob
parseDelimitedFrom(java.io.InputStream input)
static Fileformat.Blob
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Fileformat.Blob
parseFrom(byte[] data)
static Fileformat.Blob
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Fileformat.Blob
parseFrom(com.google.protobuf.ByteString data)
static Fileformat.Blob
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Fileformat.Blob
parseFrom(com.google.protobuf.CodedInputStream input)
static Fileformat.Blob
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Fileformat.Blob
parseFrom(java.io.InputStream input)
static Fileformat.Blob
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Fileformat.Blob
parseFrom(java.nio.ByteBuffer data)
static Fileformat.Blob
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Fileformat.Blob>
parser()
Fileformat.Blob.Builder
toBuilder()
void
writeTo(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
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
dataCase_
private int dataCase_
-
data_
private java.lang.Object data_
-
RAW_SIZE_FIELD_NUMBER
public static final int RAW_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
rawSize_
private int rawSize_
-
RAW_FIELD_NUMBER
public static final int RAW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ZLIB_DATA_FIELD_NUMBER
public static final int ZLIB_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LZMA_DATA_FIELD_NUMBER
public static final int LZMA_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OBSOLETE_BZIP2_DATA_FIELD_NUMBER
public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LZ4_DATA_FIELD_NUMBER
public static final int LZ4_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ZSTD_DATA_FIELD_NUMBER
public static final int ZSTD_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Fileformat.Blob DEFAULT_INSTANCE
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Fileformat.Blob> PARSER
Deprecated.
-
-
Constructor Detail
-
Blob
private Blob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Blob
private Blob()
-
Blob
private Blob(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getDataCase
public Fileformat.Blob.DataCase getDataCase()
- Specified by:
getDataCase
in interfaceFileformat.BlobOrBuilder
-
hasRawSize
public boolean hasRawSize()
When compressed, the uncompressed size
optional int32 raw_size = 2;
- Specified by:
hasRawSize
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the rawSize field is set.
-
getRawSize
public int getRawSize()
When compressed, the uncompressed size
optional int32 raw_size = 2;
- Specified by:
getRawSize
in interfaceFileformat.BlobOrBuilder
- Returns:
- The rawSize.
-
hasRaw
public boolean hasRaw()
No compression
bytes raw = 1;
- Specified by:
hasRaw
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the raw field is set.
-
getRaw
public com.google.protobuf.ByteString getRaw()
No compression
bytes raw = 1;
- Specified by:
getRaw
in interfaceFileformat.BlobOrBuilder
- Returns:
- The raw.
-
hasZlibData
public boolean hasZlibData()
Possible compressed versions of the data.
bytes zlib_data = 3;
- Specified by:
hasZlibData
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the zlibData field is set.
-
getZlibData
public com.google.protobuf.ByteString getZlibData()
Possible compressed versions of the data.
bytes zlib_data = 3;
- Specified by:
getZlibData
in interfaceFileformat.BlobOrBuilder
- Returns:
- The zlibData.
-
hasLzmaData
public boolean hasLzmaData()
For LZMA compressed data (optional)
bytes lzma_data = 4;
- Specified by:
hasLzmaData
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the lzmaData field is set.
-
getLzmaData
public com.google.protobuf.ByteString getLzmaData()
For LZMA compressed data (optional)
bytes lzma_data = 4;
- Specified by:
getLzmaData
in interfaceFileformat.BlobOrBuilder
- Returns:
- The lzmaData.
-
hasOBSOLETEBzip2Data
@Deprecated public boolean hasOBSOLETEBzip2Data()
Deprecated.Formerly used for bzip2 compressed data. Deprecated in 2010.
bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- Specified by:
hasOBSOLETEBzip2Data
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the oBSOLETEBzip2Data field is set.
-
getOBSOLETEBzip2Data
@Deprecated public com.google.protobuf.ByteString getOBSOLETEBzip2Data()
Deprecated.Formerly used for bzip2 compressed data. Deprecated in 2010.
bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- Specified by:
getOBSOLETEBzip2Data
in interfaceFileformat.BlobOrBuilder
- Returns:
- The oBSOLETEBzip2Data.
-
hasLz4Data
public boolean hasLz4Data()
For LZ4 compressed data (optional)
bytes lz4_data = 6;
- Specified by:
hasLz4Data
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the lz4Data field is set.
-
getLz4Data
public com.google.protobuf.ByteString getLz4Data()
For LZ4 compressed data (optional)
bytes lz4_data = 6;
- Specified by:
getLz4Data
in interfaceFileformat.BlobOrBuilder
- Returns:
- The lz4Data.
-
hasZstdData
public boolean hasZstdData()
For ZSTD compressed data (optional)
bytes zstd_data = 7;
- Specified by:
hasZstdData
in interfaceFileformat.BlobOrBuilder
- Returns:
- Whether the zstdData field is set.
-
getZstdData
public com.google.protobuf.ByteString getZstdData()
For ZSTD compressed data (optional)
bytes zstd_data = 7;
- Specified by:
getZstdData
in interfaceFileformat.BlobOrBuilder
- Returns:
- The zstdData.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Fileformat.Blob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fileformat.Blob parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Fileformat.Blob parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Fileformat.Blob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Fileformat.Blob parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Fileformat.Blob parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Fileformat.Blob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Fileformat.Blob.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Fileformat.Blob.Builder newBuilder()
-
newBuilder
public static Fileformat.Blob.Builder newBuilder(Fileformat.Blob prototype)
-
toBuilder
public Fileformat.Blob.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Fileformat.Blob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Fileformat.Blob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Fileformat.Blob> parser()
-
getParserForType
public com.google.protobuf.Parser<Fileformat.Blob> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Fileformat.Blob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-