package ocaml-protoc-plugin
Module Protobuf.Enum
Enum type definition.
Source
type t = {name : string;(*Enum type name.
*)enumvalue : EnumValue.t list;(*Enum value definitions.
*)options : Option.t list;(*Protocol buffer options.
*)source_context : Source_context.Google.Protobuf.SourceContext.t option;(*The source context.
*)syntax : Syntax.t;(*The source syntax.
*)
}Source
val make :
?name:string ->
?enumvalue:EnumValue.t list ->
?options:Option.t list ->
?source_context:Source_context.Google.Protobuf.SourceContext.t ->
?syntax:Syntax.t ->
unit ->
tHelper function to generate a message using default values
Serialize the message to binary format
Source
val from_proto :
Ocaml_protoc_plugin.Reader.t ->
(t, [> Ocaml_protoc_plugin.Result.error ]) resultDeserialize from binary format
Serialize to Json (compatible with Yojson.Basic.t)
Source
val from_json :
Ocaml_protoc_plugin.Json.t ->
(t, [> Ocaml_protoc_plugin.Result.error ]) resultDeserialize from Json (compatible with Yojson.Basic.t)
Fully qualified protobuf name of this message