scalapb

package scalapb

Type members

Classlikes

Companion:
object
object AnyMethods
Companion:
class
abstract class CollectionAdapter[T, Coll]
Companion:
object
object Encoding

Utility functions to encode/decode byte arrays as Base64 strings.

Utility functions to encode/decode byte arrays as Base64 strings.

Used internally between the protocol buffer compiler and the runtime to encode messages.

We could have used Apache Commons, but we would like to avoid an additional dependency. java.xml.bind.DataTypeConverter.parseBase64Binary is not available on Android. And the Java native java.util.Base64 is only available for Java 8...

trait ExtendableMessage[A <: ExtendableMessage[A]] extends Updatable[A]
Companion:
object
Companion:
class
trait GeneratedEnum extends Product with Serializable
trait GeneratedEnumCompanion[A <: GeneratedEnum] extends Serializable
case class GeneratedExtension[C <: ExtendableMessage[C], T](lens: Lens[C, T]) extends Lens[C, T]
Companion:
object
Companion:
class
abstract class GeneratedFileObject
trait GeneratedMessage extends Product with Serializable
trait GeneratedMessageCompanion[A <: GeneratedMessage] extends Serializable
trait GeneratedOneof extends Product with Serializable
trait GeneratedSealedOneof extends Product with Serializable
trait JavaProtoSupport[ScalaPB, JavaPB]
class LimitedInputStream(val is: InputStream, var limit: Int) extends FilterInputStream

Based on com.google.protobuf.AbstractMessageLite.Builder#LimitedInputStream.

Based on com.google.protobuf.AbstractMessageLite.Builder#LimitedInputStream.

object LiteParser
abstract class MessageBuilder[A]

Allows building an instance of a message A

Allows building an instance of a message A

The code generator will create a class that extends MessageBuilder for each message. It generally contains a var for each optional and required field, and a [scala.collection.mutable.Builder] for each repeated field.

trait MessageBuilderCompanion[A, Builder]
object Scalapb
case class TextFormatError(msg: String)
class TextFormatException(msg: String) extends RuntimeException
abstract class TypeMapper[BaseType, CustomType]
Companion:
object
object TypeMapper
Companion:
class
final case class UnknownFieldSet(fields: Map[Int, Field])
Companion:
object
Companion:
class
object WireType

Deprecated types

type Message[A] = Any
Deprecated
[Since version 0.10.0]