class Cardinality (View source)

Whether a field is optional, required, or repeated.

Protobuf type 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;

Methods

static 
name($value)

No description

static 
value($name)

No description

Details

static name($value)

No description

Parameters

$value

static value($name)

No description

Parameters

$name