GeneratedMessageCompanion

scalapb.GeneratedMessageCompanion
trait GeneratedMessageCompanion[A <: GeneratedMessage] extends Serializable

Attributes

Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Type members

Types

type ValueType = A

Value members

Abstract methods

def javaDescriptor: Descriptor

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Attributes

def parseFrom(input: CodedInputStream): A

Parses a message from a CodedInputStream.

Parses a message from a CodedInputStream.

Attributes

Concrete methods

def enumCompanionForField(field: FieldDescriptor): GeneratedEnumCompanion[_]
def fromAscii(s: String): A
def merge(a: A, input: CodedInputStream): A

Merges the given message with the additional fields in the steam.

Merges the given message with the additional fields in the steam.

Attributes

def messageCompanionForField(field: FieldDescriptor): GeneratedMessageCompanion[_]
def parseDelimitedFrom(input: CodedInputStream): Option[A]
def parseDelimitedFrom(input: InputStream): Option[A]
def parseFrom(input: InputStream): A
def parseFrom(s: Array[Byte]): A
def streamFromDelimitedInput(input: InputStream): Stream[A]
def toByteArray(a: A): Array[Byte]
def validate(s: Array[Byte]): Try[A]
def validateAscii(s: String): Either[TextFormatError, A]