class documentation

Whether a field is optional, required, or repeated.

Constant CARDINALITY_OPTIONAL For optional fields.
Constant CARDINALITY_REPEATED For repeated fields.
Constant CARDINALITY_REQUIRED For required fields. Proto2 syntax only.
Constant CARDINALITY_UNKNOWN For fields with unknown cardinality.

Inherited from Enum:

Class Method get_descriptor Return the protobuf EnumDescriptor for this enum.
Constant __PB2_DESCRIPTOR__ Alias for code that expects a protobuf descriptor.
Constant __PROTO_DESCRIPTOR__ Enum descriptor from the registry.
Constant __REGISTRY__ Registry for the enum and its descriptor.
Class Variable __PROTO_FULL_NAME__ Fully qualified protobuf enum name.
Class Method _missing_ Represent unknown open-enum numbers without losing their value.
CARDINALITY_OPTIONAL: ellipsis = (source)

For optional fields.

Value
...
CARDINALITY_REPEATED: ellipsis = (source)

For repeated fields.

Value
...
CARDINALITY_REQUIRED: ellipsis = (source)

For required fields. Proto2 syntax only.

Value
...
CARDINALITY_UNKNOWN: ellipsis = (source)

For fields with unknown cardinality.

Value
...