GitHub

SingularFieldDescriptor

API reference for SingularFieldDescriptor.

A field of one value, present as its presence says.

Attributes

AttributeTypeDescription
typeValueType
presencePresence
kindLiteral['singular'] = 'singular'

Functions

__init__

__init__(name, number, parent, oneof, proto, type, presence, kind='singular') -> None
ParameterTypeDescription
namestr
numberint
parentMessageDescriptor
oneofOneofDescriptor | None
protoFieldDescriptorProto
typeValueType
presencePresence
kindLiteral['singular'] = 'singular'