GeneratedOneof
nscn.polaris2.protoc.runtime.GeneratedOneof
trait GeneratedOneof
Base trait of the nested enum generated for a proto oneof.
enum Contact extends GeneratedOneof derives CanEqual:
case Empty
case Email(value: String)
case Phone(value: String)
The accessors are named oneofNumber / oneofValue rather than the obvious number / value so they cannot collide with the value parameter each case already carries.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article