package ocaml-protoc-plugin

  1. Overview
  2. Docs

Whether a field is optional, required, or repeated.

type t =
  1. | CARDINALITY_UNKNOWN
    (*

    For fields with unknown cardinality.

    *)
  2. | CARDINALITY_OPTIONAL
    (*

    For optional fields.

    *)
  3. | CARDINALITY_REQUIRED
    (*

    For required fields. Proto2 syntax only.

    *)
  4. | CARDINALITY_REPEATED
    (*

    For repeated fields.

    *)
val name : unit -> string

Fully qualified protobuf name of this enum

OCaml

Innovation. Community. Security.