Type

Companion:
class
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Type.type

Type members

Classlikes

sealed trait Recognized extends Type
case object TYPE_BOOL extends Type with Recognized
case object TYPE_BYTES extends Type with Recognized

New in version 2.

New in version 2.

case object TYPE_DOUBLE extends Type with Recognized

0 is reserved for errors. Order is weird for historical reasons.

0 is reserved for errors. Order is weird for historical reasons.

case object TYPE_ENUM extends Type with Recognized
case object TYPE_FIXED32 extends Type with Recognized
case object TYPE_FIXED64 extends Type with Recognized
case object TYPE_FLOAT extends Type with Recognized
case object TYPE_GROUP extends Type with Recognized

Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields.

Tag-delimited aggregate. Group type is deprecated and not supported in proto3. However, Proto3 implementations should still be able to parse the group wire format and treat group fields as unknown fields.

case object TYPE_INT32 extends Type with Recognized

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if negative values are likely.

case object TYPE_INT64 extends Type with Recognized

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.

Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if negative values are likely.

case object TYPE_MESSAGE extends Type with Recognized

Length-delimited aggregate.

Length-delimited aggregate.

case object TYPE_SFIXED32 extends Type with Recognized
case object TYPE_SFIXED64 extends Type with Recognized
case object TYPE_SINT32 extends Type with Recognized

Uses ZigZag encoding.

Uses ZigZag encoding.

case object TYPE_SINT64 extends Type with Recognized

Uses ZigZag encoding.

Uses ZigZag encoding.

case object TYPE_STRING extends Type with Recognized
case object TYPE_UINT32 extends Type with Recognized
case object TYPE_UINT64 extends Type with Recognized
final case class Unrecognized(unrecognizedValue: Int) extends Type with UnrecognizedEnum

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror
type ValueType = A
Inherited from:
GeneratedEnumCompanion

Value members

Concrete methods

def fromValue(`__value`: Int): Type
def javaDescriptor: EnumDescriptor

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

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

Inherited methods

def fromName(name: String): Option[A]
Inherited from:
GeneratedEnumCompanion

Concrete fields

lazy val values: Seq[Type]

Implicits

Implicits