p

scalapb

package scalapb

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scalapb
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AnyCompanionMethods extends AnyRef
  2. trait AnyMethods extends AnyRef
  3. abstract class CollectionAdapter[T, Coll] extends AnyRef
  4. trait DurationCompanionMethods extends AnyRef
  5. trait DurationConverters extends AnyRef
  6. trait DurationMethods extends AnyRef
  7. trait ExtendableMessage[A <: ExtendableMessage[A]] extends Updatable[A]
  8. trait GeneratedEnum extends Product with Serializable
  9. trait GeneratedEnumCompanion[A <: GeneratedEnum] extends Serializable
  10. case class GeneratedExtension[C <: ExtendableMessage[C], T](lens: Lens[C, T]) extends Lens[C, T] with Product with Serializable
  11. abstract class GeneratedFileObject extends AnyRef
  12. trait GeneratedMessage extends Product with Serializable
  13. trait GeneratedMessageCompanion[A <: GeneratedMessage] extends Serializable
  14. trait GeneratedOneof extends Product with Serializable
  15. trait GeneratedOneofCompanion extends AnyRef
  16. trait GeneratedSealedOneof extends Product with Serializable
  17. trait JavaProtoSupport[ScalaPB, JavaPB] extends Any
  18. trait LazyDecoder[T] extends AnyRef
  19. trait LazyEncoder[T] extends AnyRef
  20. final class LazyField[T] extends AnyRef

    A value backed by bytes, with decoding deferred until value is first used and then cached.

    A value backed by bytes, with decoding deferred until value is first used and then cached.

    Reading this wrapper or calling toByteString does not decode it. String conversions, toString, hashCode, and equality between wrappers can trigger decoding. Decoding does not discard the stored bytes: generated binary serializers continue to write them unchanged. A decoded field can therefore retain both its bytes and its decoded value.

    A LazyField is equal only to another LazyField with an equal decoded value. Compare field.value with a plain String explicitly. For example:

    val name = LazyField.from("Alice")
    name.value == "Alice"           // true
    name.equals("Alice")            // false
    Set[Any](name, "Alice").size     // 2, regardless of insertion order
    Set[String](name, "Alice").size  // 1, after implicit conversion to String

    Generated binary parsers apply the configured UTF-8 validation policy before constructing lazy string fields. LazyField.apply itself does not validate its bytes; the default String decoder replaces malformed UTF-8 with U+FFFD while preserving the stored bytes. LazyField.from encodes its argument immediately and retains the supplied value.

    T

    the decoded value type.

  21. trait LazyFieldCompat extends AnyRef
  22. class LimitedInputStream extends FilterInputStream

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

  23. abstract class MessageBuilder[A] extends AnyRef

    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.

  24. trait MessageBuilderCompanion[A, Builder] extends AnyRef
  25. case class TextFormatError(msg: String) extends Product with Serializable
  26. class TextFormatException extends RuntimeException
  27. trait TimestampCompanionMethods extends AnyRef
  28. trait TimestampConverters extends AnyRef
  29. trait TimestampMethods extends AnyRef
  30. abstract class TypeMapper[BaseType, CustomType] extends AnyRef
    Annotations
    @implicitNotFound( ... )
  31. final case class UnknownFieldSet(fields: Map[Int, Field] = Map.empty) extends Product with Serializable
  32. trait UnrecognizedEnum extends GeneratedEnum
  33. type Message[A] = Any
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10.0) This trait is no longer used and can be safely removed.

Value Members

  1. object AnyMethods
  2. object ClosedEnumMapEntry

    Wire inspection used by generated closed-enum map parsers before applying type mappers.

  3. object CollectionAdapter
  4. object DurationConverters extends DurationConverters
  5. 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...

  6. object ExtendableMessage
  7. object FieldMaskUtil
  8. object GeneratedExtension extends Serializable
  9. object JavaUnknownFields

    Used by generated Java conversions to preserve unknown fields and registered extensions.

  10. object LazyDecoder
  11. object LazyEncoder
  12. object LazyField extends LazyFieldCompat
  13. object LiteParser
  14. object StructUtils
  15. object TextFormat extends ProtoAsciiParsing
  16. object TimestampConverters extends TimestampConverters
  17. object TypeMapper
  18. object UnknownFieldSet extends Serializable
  19. object WireType

Inherited from AnyRef

Inherited from Any

Ungrouped