package ocaml-protoc-plugin

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Field.CardinalitySource

Whether a field is optional, required, or repeated.

Sourcetype 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.

    *)
Sourceval name : unit -> string

Fully qualified protobuf name of this enum