public static final class Fileformat.Blob extends GeneratedMessageLite implements Fileformat.BlobOrBuilder
OSMPBF.Blob
Modifier and Type | Class and Description |
---|---|
static class |
Fileformat.Blob.Builder
Protobuf type
OSMPBF.Blob |
GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Modifier and Type | Field and Description |
---|---|
static int |
LZ4_DATA_FIELD_NUMBER |
static int |
LZMA_DATA_FIELD_NUMBER |
static int |
OBSOLETE_BZIP2_DATA_FIELD_NUMBER |
static Parser<Fileformat.Blob> |
PARSER |
static int |
RAW_FIELD_NUMBER |
static int |
RAW_SIZE_FIELD_NUMBER |
static int |
ZLIB_DATA_FIELD_NUMBER |
memoizedHashCode
makeExtensionsImmutable, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseUnknownField
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
public static Parser<Fileformat.Blob> PARSER
public static final int RAW_FIELD_NUMBER
public static final int RAW_SIZE_FIELD_NUMBER
public static final int ZLIB_DATA_FIELD_NUMBER
public static final int LZMA_DATA_FIELD_NUMBER
public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER
public static final int LZ4_DATA_FIELD_NUMBER
public static Fileformat.Blob getDefaultInstance()
public Fileformat.Blob getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
public Parser<Fileformat.Blob> getParserForType()
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageLite
public boolean hasRaw()
optional bytes raw = 1;
No compression
hasRaw
in interface Fileformat.BlobOrBuilder
public ByteString getRaw()
optional bytes raw = 1;
No compression
getRaw
in interface Fileformat.BlobOrBuilder
public boolean hasRawSize()
optional int32 raw_size = 2;
When compressed, the uncompressed size
hasRawSize
in interface Fileformat.BlobOrBuilder
public int getRawSize()
optional int32 raw_size = 2;
When compressed, the uncompressed size
getRawSize
in interface Fileformat.BlobOrBuilder
public boolean hasZlibData()
optional bytes zlib_data = 3;
Possible compressed versions of the data.
hasZlibData
in interface Fileformat.BlobOrBuilder
public ByteString getZlibData()
optional bytes zlib_data = 3;
Possible compressed versions of the data.
getZlibData
in interface Fileformat.BlobOrBuilder
public boolean hasLzmaData()
optional bytes lzma_data = 4;
PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
hasLzmaData
in interface Fileformat.BlobOrBuilder
public ByteString getLzmaData()
optional bytes lzma_data = 4;
PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
getLzmaData
in interface Fileformat.BlobOrBuilder
@Deprecated public boolean hasOBSOLETEBzip2Data()
optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
Formerly used for bzip2 compressed data. Depreciated in 2010.
hasOBSOLETEBzip2Data
in interface Fileformat.BlobOrBuilder
@Deprecated public ByteString getOBSOLETEBzip2Data()
optional bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
Formerly used for bzip2 compressed data. Depreciated in 2010.
getOBSOLETEBzip2Data
in interface Fileformat.BlobOrBuilder
public boolean hasLz4Data()
optional bytes lz4_data = 6;
lz4 compressed data. It optimized for performance, pretty fast while still offering useful compression ratios.
hasLz4Data
in interface Fileformat.BlobOrBuilder
public ByteString getLz4Data()
optional bytes lz4_data = 6;
lz4 compressed data. It optimized for performance, pretty fast while still offering useful compression ratios.
getLz4Data
in interface Fileformat.BlobOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class GeneratedMessageLite
ObjectStreamException
public static Fileformat.Blob parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fileformat.Blob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fileformat.Blob parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fileformat.Blob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fileformat.Blob parseFrom(InputStream input) throws IOException
IOException
public static Fileformat.Blob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fileformat.Blob parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Fileformat.Blob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fileformat.Blob parseFrom(CodedInputStream input) throws IOException
IOException
public static Fileformat.Blob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fileformat.Blob.Builder newBuilder()
public Fileformat.Blob.Builder newBuilderForType()
newBuilderForType
in interface MessageLite
public static Fileformat.Blob.Builder newBuilder(Fileformat.Blob prototype)
public Fileformat.Blob.Builder toBuilder()
toBuilder
in interface MessageLite