GeneratedEnumCompanion

nscn.polaris2.protoc.runtime.GeneratedEnumCompanion
See theGeneratedEnumCompanion companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fromValue(value: Int): A

The value with this number.

The value with this number.

Returns Unrecognized for an unknown number rather than failing, because a sender built against a newer .proto is normal rather than exceptional.

Attributes

def javaDescriptor: EnumDescriptor
def values: Vector[A]

The declared values, in declaration order. Excludes Unrecognized.

The declared values, in declaration order. Excludes Unrecognized.

Attributes

Concrete methods

final def fromName(name: String): Option[A]
final def fromValueDescriptor(descriptor: EnumValueDescriptor): A
final def isOpen: Boolean

Whether this enum accepts unknown values, i.e. its resolved enum_type is OPEN.

Whether this enum accepts unknown values, i.e. its resolved enum_type is OPEN.

Attributes

Givens