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 Type : sig ... end
module Label : sig ... end
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