package ocaml-protoc

  1. Overview
  2. Docs

Protobuf File/Message/Field options

type constant =
  1. | Constant_string of string
  2. | Constant_bool of bool
  3. | Constant_int of int
  4. | Constant_float of float
  5. | Constant_litteral of string

Protobuf constance

As defined in: Protobuf Language Spec.

type option_name = string

Option identifier

type set

Collection of options

Can be used for field/message or file options

val empty : set
val add : set -> string -> constant -> set
val merge : set -> set -> set

merge s1 s2 adds all the options from s2 to s1. This means than in case of duplicates s2 options will override s1 options.

val get : set -> string -> constant option
OCaml

Innovation. Community. Security.