A oneof. The synthetic oneofs of proto3 optional fields are not
oneofs here: those fields have explicit presence.
Attributes#
| Attribute | Type | Description |
|---|---|---|
name | str | |
parent | MessageDescriptor | |
proto | OneofDescriptorProto | |
fields | list[FieldDescriptor] = field(default_factory=(lambda: [])) |
Functions#
__init__#
__init__(name, parent, proto, fields=(lambda: [])()) -> None| Parameter | Type | Description |
|---|---|---|
name | str | |
parent | MessageDescriptor | |
proto | OneofDescriptorProto | |
fields | list[FieldDescriptor] = (lambda: [])() |