package ocaml-protoc-plugin
Module Protobuf.MethodDescriptorProto
Describes a method of a service.
Source
type t = {name : string option;input_type : string option;(*Input and output type names. These are resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type.
*)output_type : string option;options : MethodOptions.t option;client_streaming : bool;(*Identifies if client streams multiple client messages
*)server_streaming : bool;(*Identifies if server streams multiple server messages
*)
}Source
val make :
?name:string ->
?input_type:string ->
?output_type:string ->
?options:MethodOptions.t ->
?client_streaming:bool ->
?server_streaming:bool ->
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