Registry / serialization / protobuf-lite

protobuf-lite

JSON →
library3.0.1javamavenunverified

A lightweight version of Google's Protocol Buffers library for efficient serialization.

<dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-lite</artifactId> <version>3.0.1</version> </dependency>
INSTALL
IMPORT
SIG · PROTOBUF-LITE
P
protobuf-lite
serializationjavav3.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MessageLite
com.google.protobuf.MessageLite

Serialize a protobuf message using MessageLite.

import com.google.protobuf.MessageLite; public class Example { public static void main(String[] args) { MessageLite msg = MyMessage.newBuilder().setField("value").build(); byte[] data = msg.toByteArray(); } }
Debug
Known issues
gotchaprotobuf-lite is a subset of the full protobuf library; some features like reflection are missing.
fix
Use com.google.protobuf:protobuf-java if you need full functionality.
affects: <=3.0.1
Upgrade
Version history
3.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
protobuf-lite — mvn dependency:get protobuf-lite · libregistry