deaktator / pops Goto Github PK
View Code? Open in Web Editor NEWMakes working generically with protocol buffers a simpler (and faster) experience.
License: MIT License
Makes working generically with protocol buffers a simpler (and faster) experience.
License: MIT License
ProtoOps type parameter can extend com.google.protobuf.GeneratedMessageLite
instead of com.google.protobuf.GeneratedMessage
.
When compiling a protocol buffer specification with
option optimize_for = LITE_RUNTIME;
I noticed the same static methods are generated:
def getDefaultInstance(): A
@throws(classOf[IOException]) def parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): A
@throws(classOf[IOException]) def parseDelimitedFrom(input: InputStream): A
@throws(classOf[InvalidProtocolBufferException]) def parseFrom(data: Array[Byte], extensionRegistry: ExtensionRegistryLite): A
@throws(classOf[InvalidProtocolBufferException]) def parseFrom(data: Array[Byte]): A
@throws(classOf[InvalidProtocolBufferException]) def parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): A
@throws(classOf[InvalidProtocolBufferException]) def parseFrom(data: ByteString): A
@throws(classOf[IOException]) def parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): A
@throws(classOf[IOException]) def parseFrom(input: CodedInputStream): A
@throws(classOf[IOException]) def parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): A
@throws(classOf[IOException]) def parseFrom(input: InputStream): A
def newBuilder(): A.Builder
def newBuilder(prototype: A): A.Builder
This needs to be checked thoroughly because ProtoOps
is not covariant. If this change requires making ProtoOps
covariant, this might ''and probably will'' affect ProtoAccessor
.
We need to test something like:
def getGeneratedMessage[A <: GeneratedMessage : ProtoOps](data: Array[Byte]): A =
Proto[A].parseFrom(data)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.