TypeRegistry

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

Companion:
object
Source:
TypeRegistry.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

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]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product