ocaml-protoc-plugin

Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
IN THIS PACKAGE
module ExtensionRange : sig ... end
module ReservedRange : sig ... end
val name' : unit -> string
type t = {
name : string option;
field : FieldDescriptorProto.t list;
extension : FieldDescriptorProto.t list;
nested_type : t list;
enum_type : EnumDescriptorProto.t list;
extension_range : ExtensionRange.t list;
oneof_decl : OneofDescriptorProto.t list;
options : MessageOptions.t option;
reserved_range : ReservedRange.t list;
reserved_name : string list;
}
val make : ?name:string -> ?field:FieldDescriptorProto.t list -> ?extension:FieldDescriptorProto.t list -> ?nested_type:t list -> ?enum_type:EnumDescriptorProto.t list -> ?extension_range:ExtensionRange.t list -> ?oneof_decl:OneofDescriptorProto.t list -> ?options:MessageOptions.t -> ?reserved_range:ReservedRange.t list -> ?reserved_name:string list -> 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