ocaml-protoc-plugin

Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
IN THIS PACKAGE
val name' : unit -> string
type t = {
name : string option;
package : string option;
dependency : string list;
public_dependency : int list;
weak_dependency : int list;
message_type : DescriptorProto.t list;
enum_type : EnumDescriptorProto.t list;
service : ServiceDescriptorProto.t list;
extension : FieldDescriptorProto.t list;
options : FileOptions.t option;
source_code_info : SourceCodeInfo.t option;
syntax : string option;
}
val make : ?name:string -> ?package:string -> ?dependency:string list -> ?public_dependency:int list -> ?weak_dependency:int list -> ?message_type:DescriptorProto.t list -> ?enum_type:EnumDescriptorProto.t list -> ?service:ServiceDescriptorProto.t list -> ?extension:FieldDescriptorProto.t list -> ?options:FileOptions.t -> ?source_code_info:SourceCodeInfo.t -> ?syntax:string -> 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