package ocaml-protoc-plugin

  1. Overview
  2. Docs

Enum value definition.

type t = {
  1. name : string;
    (*

    Enum value name.

    *)
  2. number : int;
    (*

    Enum value number.

    *)
  3. options : Option.t list;
    (*

    Protocol buffer options.

    *)
}
val make : ?name:string -> ?number:int -> ?options:Option.t list -> 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