# Service Usage V1 API - Module Google::Protobuf::Field::Cardinality (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.1 0.2.1 0.1.4 Reference documentation and code samples for the Service Usage V1 API module Google::Protobuf::Field::Cardinality.

Whether a field is optional, required, or repeated.

## Constants

### CARDINALITY_UNKNOWN

**value:** 0  
For fields with unknown cardinality.

### CARDINALITY_OPTIONAL

**value:** 1  
For optional fields.

### CARDINALITY_REQUIRED

**value:** 2  
For required fields. Proto2 syntax only.

### CARDINALITY_REPEATED

**value:** 3  
For repeated fields.