Show / Hide Table of Contents

Enum Field.Types.Cardinality

Whether a field is optional, required, or repeated.

Namespace: Google.Protobuf.WellKnownTypes
Assembly: Google.Protobuf.dll
Syntax
public enum Cardinality

Fields

Name Description
Optional

For optional fields.

Repeated

For repeated fields.

Required

For required fields. Proto2 syntax only.

Unknown

For fields with unknown cardinality.

Back to top