GeneratedMessageCompanion

nscn.polaris2.protoc.runtime.GeneratedMessageCompanion
See theGeneratedMessageCompanion companion object

Base trait of every generated message's companion object: how to parse one, and the descriptors describing it.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def javaDescriptor: Descriptor
def parseFrom(input: CodedInputStream): A

Concrete methods

The companion for an enum-typed field.

The companion for an enum-typed field.

Attributes

The companion for a message-typed field, used when parsing nested values.

The companion for a message-typed field, used when parsing nested values.

Attributes

Companions of the messages nested inside this one, for reflective traversal.

Companions of the messages nested inside this one, for reflective traversal.

Attributes

final def parseDelimitedFrom(input: CodedInputStream): Option[A]

Reads one length-delimited message, or None at end of stream.

Reads one length-delimited message, or None at end of stream.

Reading the length here rather than in the generated parser is what makes a truncated stream distinguishable from a finished one.

Attributes

final def parseDelimitedFrom(input: InputStream): Option[A]
final def parseFrom(bytes: Array[Byte]): A
final def parseFrom(bytes: ByteString): A
final def parseFrom(input: InputStream): A
final def parseFromProtoString(text: String): A
final def streamFromDelimitedInput(input: InputStream): Iterator[A]

Lazily reads every length-delimited message in the stream.

Lazily reads every length-delimited message in the stream.

Attributes

Givens

Givens

Makes the companion available to summon, which is how generated code finds it.

Makes the companion available to summon, which is how generated code finds it.

Attributes