ParseFromPrinter

nscn.polaris2.protoc.codegen.ParseFromPrinter
final class ParseFromPrinter(descriptor: Descriptor, ctx: GenContext, name: String, fields: Seq[FieldGen], oneofs: Seq[OneofGen])

Emits a message's parser.

The parser is expressed as mergeFrom(input, prev) with parseFrom delegating to it against the default instance. That is not a convenience: protobuf says a singular message field occurring twice is merged, and a parser that can continue from an existing value gets that for free, where a parseFrom-only design needs a separate hand-written merge for every message.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods