Whether a field is optional, required, or repeated.

Protobuf type google.protobuf.Field.Cardinality

CloneableInstantiable
Constants
public Google\Protobuf\Field\Cardinality::CARDINALITY_OPTIONAL = 1
 
For optional fields.

Generated from protobuf enum CARDINALITY_OPTIONAL = 1;

public Google\Protobuf\Field\Cardinality::CARDINALITY_REPEATED = 3
 
For repeated fields.

Generated from protobuf enum CARDINALITY_REPEATED = 3;

public Google\Protobuf\Field\Cardinality::CARDINALITY_REQUIRED = 2
 
For required fields. Proto2 syntax only.

Generated from protobuf enum CARDINALITY_REQUIRED = 2;

public Google\Protobuf\Field\Cardinality::CARDINALITY_UNKNOWN = 0
 
For fields with unknown cardinality.

Generated from protobuf enum CARDINALITY_UNKNOWN = 0;

Methods
public static name( $value)
public static value( $name)
Properties
private static $valueToName
Properties
private static $valueToName
Methods
public static name( $value)
public static value( $name)
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only