TypeRegistry

scalapb_json.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.

You need to

Attributes

Companion:
object
Source:
TypeRegistry.scala
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

Attributes

Source:
TypeRegistry.scala
def addMessage[T <: GeneratedMessage](implicit cmp: GeneratedMessageCompanion[T]): TypeRegistry

Attributes

Source:
TypeRegistry.scala
def findType(typeName: String): Option[GenericCompanion]

Attributes

Source:
TypeRegistry.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product