scalapb

package scalapb

Type members

Classlikes

trait AnyMethods
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 StructUtils
case class TextFormatError(msg: String)
class TextFormatException(msg: String) extends RuntimeException
@implicitNotFound("No TypeMapper found for conversion between ${BaseType} and ${CustomType}.\n Try to implement an implicit TypeMapper[${BaseType}, ${CustomType}]. You can implement it\n in ${CustomType} companion class.\n Alternatively you can import this implicit using file-level Scala imports (see documentation)\n ")
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

@deprecated("This trait is no longer used and can be safely removed.", since = "0.10.0")
type Message[A] = Any
Deprecated
[Since version 0.10.0]