GeneratedMessageCompanion

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

Attributes

Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object Collection.type
object EnumOptions.type
object EnumValueOptions.type
object FieldOptions.type
object FieldTransformation.type
object MessageOptions.type
object OneofOptions.type
object OptionsByFileEntry.type
object PreprocessorOutput.type
object AuxEnumOptions.type
object AuxEnumValueOptions.type
object AuxFieldOptions.type
object AuxMessageOptions.type
object ScalaPbOptions.type
object Any.type
object Api.type
object Method.type
object Mixin.type
object CodeGeneratorRequest.type
object File.type
object CodeGeneratorResponse.type
object Version.type
object ExtensionRange.type
object ReservedRange.type
object DescriptorProto.type
object EnumReservedRange.type
object EnumDescriptorProto.type
object EnumOptions.type
object EnumValueOptions.type
object ExtensionRangeOptions.type
object FieldDescriptorProto.type
object FieldOptions.type
object FileDescriptorProto.type
object FileDescriptorSet.type
object FileOptions.type
object Annotation.type
object GeneratedCodeInfo.type
object MessageOptions.type
object MethodDescriptorProto.type
object MethodOptions.type
object OneofDescriptorProto.type
object OneofOptions.type
object ServiceOptions.type
object Location.type
object SourceCodeInfo.type
object NamePart.type
object UninterpretedOption.type
object Duration.type
object Empty.type
object FieldMask.type
object SourceContext.type
object ListValue.type
object FieldsEntry.type
object Struct.type
object Value.type
object Timestamp.type
object Enum.type
object EnumValue.type
object Field.type
object OptionProto.type
object Type.type
object BoolValue.type
object BytesValue.type
object DoubleValue.type
object FloatValue.type
object Int32Value.type
object Int64Value.type
object StringValue.type
object UInt32Value.type
object UInt64Value.type
Show all
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]