ocaml-protoc-plugin

Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
IN THIS PACKAGE
module Type : sig ... end
module Label : sig ... end
val name' : unit -> string
type t = {
name : string option;
number : int option;
label : Label.t option;
type' : Type.t option;
type_name : string option;
extendee : string option;
default_value : string option;
oneof_index : int option;
json_name : string option;
options : FieldOptions.t option;
proto3_optional : bool option;
}
val make : ?name:string -> ?number:int -> ?label:Label.t -> ?type':Type.t -> ?type_name:string -> ?extendee:string -> ?default_value:string -> ?oneof_index:int -> ?json_name:string -> ?options:FieldOptions.t -> ?proto3_optional:bool -> unit -> t
val to_proto : t -> Ocaml_protoc_plugin.Runtime.Runtime'.Writer.t
val from_proto : Ocaml_protoc_plugin.Runtime.Runtime'.Reader.t -> ( t, [> Ocaml_protoc_plugin.Runtime.Runtime'.Result.error ] ) result