ocaml-protoc-plugin
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library ocaml-protoc-plugin.google_types
module ExtensionRange : sig ... end
module ReservedRange : sig ... end
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