scalapb
package scalapb
- Alphabetic
- By Inheritance
- scalapb
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AnyCompanionMethods extends AnyRef
- trait AnyMethods extends AnyRef
- abstract class CollectionAdapter[T, Coll] extends AnyRef
- trait DurationCompanionMethods extends AnyRef
- trait DurationConverters extends AnyRef
- trait DurationMethods extends AnyRef
- trait ExtendableMessage[A <: ExtendableMessage[A]] extends Updatable[A]
- 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] with Product with Serializable
- abstract class GeneratedFileObject extends AnyRef
- trait GeneratedMessage extends Product with Serializable
- trait GeneratedMessageCompanion[A <: GeneratedMessage] extends Serializable
- trait GeneratedOneof extends Product with Serializable
- trait GeneratedOneofCompanion extends AnyRef
- trait GeneratedSealedOneof extends Product with Serializable
- trait JavaProtoSupport[ScalaPB, JavaPB] extends Any
- trait LazyDecoder[T] extends AnyRef
- trait LazyEncoder[T] extends AnyRef
-
final
class
LazyField[T] extends AnyRef
A value backed by bytes, with decoding deferred until
valueis first used and then cached.A value backed by bytes, with decoding deferred until
valueis first used and then cached.Reading this wrapper or calling
toByteStringdoes 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
LazyFieldis equal only to anotherLazyFieldwith an equal decoded value. Comparefield.valuewith 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.applyitself does not validate its bytes; the default String decoder replaces malformed UTF-8 with U+FFFD while preserving the stored bytes.LazyField.fromencodes its argument immediately and retains the supplied value.- T
the decoded value type.
- trait LazyFieldCompat extends AnyRef
-
class
LimitedInputStream extends FilterInputStream
Based on com.google.protobuf.AbstractMessageLite.Builder#LimitedInputStream.
-
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
varfor each optional and required field, and a [scala.collection.mutable.Builder] for each repeated field. - trait MessageBuilderCompanion[A, Builder] extends AnyRef
- case class TextFormatError(msg: String) extends Product with Serializable
- class TextFormatException extends RuntimeException
- trait TimestampCompanionMethods extends AnyRef
- trait TimestampConverters extends AnyRef
- trait TimestampMethods extends AnyRef
-
abstract
class
TypeMapper[BaseType, CustomType] extends AnyRef
- Annotations
- @implicitNotFound( ... )
- final case class UnknownFieldSet(fields: Map[Int, Field] = Map.empty) extends Product with Serializable
- trait UnrecognizedEnum extends GeneratedEnum
-
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
- object AnyMethods
-
object
ClosedEnumMapEntry
Wire inspection used by generated closed-enum map parsers before applying type mappers.
- object CollectionAdapter
- object DurationConverters extends DurationConverters
-
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...
- object ExtendableMessage
- object FieldMaskUtil
- object GeneratedExtension extends Serializable
-
object
JavaUnknownFields
Used by generated Java conversions to preserve unknown fields and registered extensions.
- object LazyDecoder
- object LazyEncoder
- object LazyField extends LazyFieldCompat
- object LiteParser
- object StructUtils
- object TextFormat extends ProtoAsciiParsing
- object TimestampConverters extends TimestampConverters
- object TypeMapper
- object UnknownFieldSet extends Serializable
- object WireType