class Field_Cardinality

Whether a field is optional, required, or repeated.

Protobuf enum Google\Protobuf\Field\Cardinality

Constants

CARDINALITY_UNKNOWN

For fields with unknown cardinality.

Generated from protobuf enum CARDINALITY_UNKNOWN = 0;

CARDINALITY_OPTIONAL

For optional fields.

Generated from protobuf enum CARDINALITY_OPTIONAL = 1;

CARDINALITY_REQUIRED

For required fields. Proto2 syntax only.

Generated from protobuf enum CARDINALITY_REQUIRED = 2;

CARDINALITY_REPEATED

For repeated fields.

Generated from protobuf enum CARDINALITY_REPEATED = 3;