package ocaml-protoc-plugin
Module Protobuf.ServiceOptions
Source
type t = {deprecated : bool;(*Is this service deprecated? Depending on the target platform, this can emit Deprecated annotations for the service, or it will be completely ignored; in the very least, this is a formalization for deprecating services.
Note: Field numbers 1 through 32 are reserved for Google's internal RPC
*)framework. We apologize for hoarding these numbers to ourselves, but we were already using them long before we decided to release Protocol Buffers.uninterpreted_option : UninterpretedOption.t list;(*The parser stores options it doesn't recognize here. See above.
*)extensions' : Ocaml_protoc_plugin.Extensions.t;
}Source
val make :
?deprecated:bool ->
?uninterpreted_option:UninterpretedOption.t list ->
?extensions':Ocaml_protoc_plugin.Extensions.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