package ocaml-protoc-plugin

  1. Overview
  2. Docs
type t = {
  1. allow_alias : bool option;
    (*

    Set this option to true to allow mapping different tag names to the same value.

    *)
  2. deprecated : bool;
    (*

    Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.

    *)
  3. uninterpreted_option : UninterpretedOption.t list;
    (*

    The parser stores options it doesn't recognize here. See above.

    *)
  4. extensions' : Ocaml_protoc_plugin.Extensions.t;
}
val make : ?allow_alias:bool -> ?deprecated:bool -> ?uninterpreted_option:UninterpretedOption.t list -> ?extensions':Ocaml_protoc_plugin.Extensions.t -> unit -> t

Helper function to generate a message using default values

Serialize the message to binary format

Deserialize from binary format

Serialize to Json (compatible with Yojson.Basic.t)

Deserialize from Json (compatible with Yojson.Basic.t)

val name : unit -> string

Fully qualified protobuf name of this message