package ocaml-protoc-plugin

  1. Overview
  2. Docs
val name' : unit -> string
type t = {
  1. name : string option;
  2. package : string option;
  3. dependency : string list;
  4. message_type : DescriptorProto.t list;
  5. enum_type : EnumDescriptorProto.t list;
  6. service : ServiceDescriptorProto.t list;
  7. extension : FieldDescriptorProto.t list;
  8. options : FileOptions.t option;
  9. source_code_info : SourceCodeInfo.t option;
  10. public_dependency : int list;
  11. weak_dependency : int list;
  12. syntax : string option;
}
val make : ?name:string -> ?package:string -> ?dependency:string 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 -> ?public_dependency:int list -> ?weak_dependency:int list -> ?syntax:string -> unit -> t
val merge : t -> t -> t
val to_proto' : Ocaml_protoc_plugin.Runtime.Runtime'.Writer.t -> t -> Ocaml_protoc_plugin.Runtime.Runtime'.Writer.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 ]) Stdlib.result
val from_proto_exn : Ocaml_protoc_plugin.Runtime.Runtime'.Reader.t -> t
OCaml

Innovation. Community. Security.