TypeRegistry

scalapb.json4s.TypeRegistry
See theTypeRegistry companion object
case class TypeRegistry(companions: Map[String, GenericCompanion], filesSeen: Set[String])

TypeRegistry is used to map the @type field in Any messages to a ScalaPB generated message.

TypeRegistries are added to Printers and Parsers to enable printing and parsing of Any messages.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def addFile(file: GeneratedFileObject): TypeRegistry
def addMessage[T <: GeneratedMessage](implicit cmp: GeneratedMessageCompanion[T]): TypeRegistry
def findType(typeName: String): Option[GenericCompanion]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product