scalapb_json

package scalapb_json

Type members

Classlikes

case class JsonFormatException(msg: String, cause: Exception) extends Exception
final class MemorizedFieldNameMap(val fieldNameMap: ConcurrentHashMap[Descriptor, Map[String, FieldDescriptor]])

Given a message descriptor, provides a map from field names to field descriptors.

Given a message descriptor, provides a map from field names to field descriptors.

Note:

use java ConcurrentHashMap because TrieMap is not available on scala-js

Source:
MemorizedFieldNameMap.scala

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

Source:
ScalapbJsonCommonBuildInfo.scala
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.

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

You need to

Companion:
object
Source:
TypeRegistry.scala
Companion:
class
Source:
TypeRegistry.scala