Type

com.google.protobuf.descriptor.FieldDescriptorProto.Type
See theType companion class
object Type extends GeneratedEnumCompanion[Type]

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Type.type

Members list

Type members

Classlikes

sealed trait Recognized extends Type

Attributes

Supertypes
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object TYPE_BOOL
object TYPE_BYTES
object TYPE_DOUBLE
object TYPE_ENUM
object TYPE_FIXED32
object TYPE_FIXED64
object TYPE_FLOAT
object TYPE_GROUP
object TYPE_INT32
object TYPE_INT64
object TYPE_MESSAGE
object TYPE_SFIXED32
object TYPE_SFIXED64
object TYPE_SINT32
object TYPE_SINT64
object TYPE_STRING
object TYPE_UINT32
object TYPE_UINT64
Show all
case object TYPE_BOOL extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_BOOL.type
case object TYPE_BYTES extends Type, Recognized

New in version 2.

New in version 2.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_BYTES.type
case object TYPE_DOUBLE extends Type, Recognized

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

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

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_ENUM extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_ENUM.type
case object TYPE_FIXED32 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_FIXED64 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_FLOAT extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_FLOAT.type
case object TYPE_GROUP extends Type, 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.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_GROUP.type
case object TYPE_INT32 extends Type, 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.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_INT32.type
case object TYPE_INT64 extends Type, 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.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TYPE_INT64.type
case object TYPE_MESSAGE extends Type, Recognized

Length-delimited aggregate.

Length-delimited aggregate.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_SFIXED32 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_SFIXED64 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_SINT32 extends Type, Recognized

Uses ZigZag encoding.

Uses ZigZag encoding.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_SINT64 extends Type, Recognized

Uses ZigZag encoding.

Uses ZigZag encoding.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_STRING extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_UINT32 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case object TYPE_UINT64 extends Type, Recognized

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
final case class Unrecognized(unrecognizedValue: Int) extends Type, UnrecognizedEnum

Attributes

Supertypes
class Type
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type ValueType = Type

Attributes

Inherited from:
GeneratedEnumCompanion

Value members

Concrete methods

def fromJavaValue(pbJavaSource: Type): Type
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 available 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 available in Scala.js or scala-native.

Attributes

def toJavaValue(pbScalaSource: Type): Type

Inherited methods

def fromName(name: String): Option[Type]

Attributes

Inherited from:
GeneratedEnumCompanion

Concrete fields

lazy val values: Seq[ValueType]

Implicits

Implicits