GitHub

OneofDescriptor

API reference for OneofDescriptor.

A oneof. The synthetic oneofs of proto3 optional fields are not oneofs here: those fields have explicit presence.

Attributes

AttributeTypeDescription
namestr
parentMessageDescriptor
protoOneofDescriptorProto
fieldslist[FieldDescriptor] = field(default_factory=(lambda: []))

Functions

__init__

__init__(name, parent, proto, fields=(lambda: [])()) -> None
ParameterTypeDescription
namestr
parentMessageDescriptor
protoOneofDescriptorProto
fieldslist[FieldDescriptor] = (lambda: [])()