Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file source_context.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182(********************************************************)(* AUTOGENERATED FILE - DO NOT EDIT! *)(********************************************************)(* Generated by: ocaml-protoc-plugin *)(* https://github.com/andersfugmann/ocaml-protoc-plugin *)(********************************************************)(*
Source: google/protobuf/source_context.proto
Syntax: proto3
Parameters:
debug=false
annot=''
opens=[]
int64_as_int=true
int32_as_int=true
fixed_as_int=false
singleton_record=false
prefix_output_with_package=false
*)[@@@ocaml.alert"-protobuf"](* Disable deprecation warnings for protobuf*)(**/**)moduleRuntime'=Ocaml_protoc_plugin[@@warning"-33"]moduleImported'modules=structend(**/**)modulerecGoogle:sigmodulerecProtobuf:sig(**
{%html:
<p><code>SourceContext</code> represents information about the source of a
protobuf element, like the file in which it is defined.</p>
%}
*)modulerecSourceContext:sigtypet=(string)(**
{%html:
<p>The path-qualified name of the .proto file that contained the associated
protobuf element. For example: <code>"google/protobuf/source_context.proto"</code>.</p>
%}
*)valmake:?file_name:string->unit->t(** Helper function to generate a message using default values *)valto_proto:t->Runtime'.Writer.t(** Serialize the message to binary format *)valfrom_proto:Runtime'.Reader.t->(t,[>Runtime'.Result.error])result(** Deserialize from binary format *)valto_json:Runtime'.Json_options.t->t->Runtime'.Json.t(** Serialize to Json (compatible with Yojson.Basic.t) *)valfrom_json:Runtime'.Json.t->(t,[>Runtime'.Result.error])result(** Deserialize from Json (compatible with Yojson.Basic.t) *)valname:unit->string(** Fully qualified protobuf name of this message *)(**/**)typemake_t=?file_name:string->unit->tvalmerge:t->t->tvalto_proto':Runtime'.Writer.t->t->unitvalfrom_proto_exn:Runtime'.Reader.t->tvalfrom_json_exn:Runtime'.Json.t->t(**/**)endendend=structmodulerecProtobuf:sig(**
{%html:
<p><code>SourceContext</code> represents information about the source of a
protobuf element, like the file in which it is defined.</p>
%}
*)modulerecSourceContext:sigtypet=(string)(**
{%html:
<p>The path-qualified name of the .proto file that contained the associated
protobuf element. For example: <code>"google/protobuf/source_context.proto"</code>.</p>
%}
*)valmake:?file_name:string->unit->t(** Helper function to generate a message using default values *)valto_proto:t->Runtime'.Writer.t(** Serialize the message to binary format *)valfrom_proto:Runtime'.Reader.t->(t,[>Runtime'.Result.error])result(** Deserialize from binary format *)valto_json:Runtime'.Json_options.t->t->Runtime'.Json.t(** Serialize to Json (compatible with Yojson.Basic.t) *)valfrom_json:Runtime'.Json.t->(t,[>Runtime'.Result.error])result(** Deserialize from Json (compatible with Yojson.Basic.t) *)valname:unit->string(** Fully qualified protobuf name of this message *)(**/**)typemake_t=?file_name:string->unit->tvalmerge:t->t->tvalto_proto':Runtime'.Writer.t->t->unitvalfrom_proto_exn:Runtime'.Reader.t->tvalfrom_json_exn:Runtime'.Json.t->t(**/**)endend=structmodulerecSourceContext:sigtypet=(string)(**
{%html:
<p>The path-qualified name of the .proto file that contained the associated
protobuf element. For example: <code>"google/protobuf/source_context.proto"</code>.</p>
%}
*)valmake:?file_name:string->unit->t(** Helper function to generate a message using default values *)valto_proto:t->Runtime'.Writer.t(** Serialize the message to binary format *)valfrom_proto:Runtime'.Reader.t->(t,[>Runtime'.Result.error])result(** Deserialize from binary format *)valto_json:Runtime'.Json_options.t->t->Runtime'.Json.t(** Serialize to Json (compatible with Yojson.Basic.t) *)valfrom_json:Runtime'.Json.t->(t,[>Runtime'.Result.error])result(** Deserialize from Json (compatible with Yojson.Basic.t) *)valname:unit->string(** Fully qualified protobuf name of this message *)(**/**)typemake_t=?file_name:string->unit->tvalmerge:t->t->tvalto_proto':Runtime'.Writer.t->t->unitvalfrom_proto_exn:Runtime'.Reader.t->tvalfrom_json_exn:Runtime'.Json.t->t(**/**)end=structmoduleThis'_=SourceContextletname()=".google.protobuf.SourceContext"typet=(string)typemake_t=?file_name:string->unit->tletmake?(file_name={||})()=(file_name)letmerge=letmerge_file_name=Runtime'.Merge.mergeRuntime'.Spec.(basic((1,"file_name","fileName"),string,({||})))infun(t1_file_name)(t2_file_name)->merge_file_namet1_file_namet2_file_nameletspec()=Runtime'.Spec.(basic((1,"file_name","fileName"),string,({||}))^::nil)letto_proto'=letserialize=Runtime'.apply_lazy(fun()->Runtime'.Serialize.serialize(spec()))infunwriter(file_name)->serializewriterfile_nameletto_protot=letwriter=Runtime'.Writer.init()into_proto'writert;writerletfrom_proto_exn=letconstructorfile_name=(file_name)inRuntime'.apply_lazy(fun()->Runtime'.Deserialize.deserialize(spec())constructor)letfrom_protowriter=Runtime'.Result.catch(fun()->from_proto_exnwriter)letto_jsonoptions=letserialize=Runtime'.Serialize_json.serialize~message_name:(name())(spec())optionsinfun(file_name)->serializefile_nameletfrom_json_exn=letconstructorfile_name=(file_name)inRuntime'.apply_lazy(fun()->Runtime'.Deserialize_json.deserialize~message_name:(name())(spec())constructor)letfrom_jsonjson=Runtime'.Result.catch(fun()->from_json_exnjson)endendend