Cardinality

com.google.protobuf.`type`.Field.Cardinality
See theCardinality companion class

Attributes

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

Members list

Type members

Classlikes

For optional fields.

For optional fields.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Cardinality
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

For repeated fields.

For repeated fields.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Cardinality
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

For required fields. Proto2 syntax only.

For required fields. Proto2 syntax only.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Cardinality
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

For fields with unknown cardinality.

For fields with unknown cardinality.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Recognized
class Cardinality
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
sealed trait Recognized extends Cardinality

Attributes

Supertypes
class Cardinality
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object CARDINALITY_OPTIONAL.type
object CARDINALITY_REPEATED.type
object CARDINALITY_REQUIRED.type
object CARDINALITY_UNKNOWN.type
final case class Unrecognized(unrecognizedValue: Int) extends Cardinality, UnrecognizedEnum

Attributes

Supertypes
class Cardinality
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 = A

Attributes

Inherited from:
GeneratedEnumCompanion

Value members

Concrete methods

def fromValue(`__value`: Int): Cardinality
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

Inherited methods

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

Attributes

Inherited from:
GeneratedEnumCompanion

Concrete fields

lazy val values: Seq[ValueType]

Implicits