Module: Google::Protobuf::Field::Cardinality

Defined in:
proto_docs/google/protobuf/type.rb

Overview

Whether a field is optional, required, or repeated.

Constant Summary collapse

CARDINALITY_UNKNOWN =

For fields with unknown cardinality.

0
CARDINALITY_OPTIONAL =

For optional fields.

1
CARDINALITY_REQUIRED =

For required fields. Proto2 syntax only.

2
CARDINALITY_REPEATED =

For repeated fields.

3