12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112(********************************************************)(* AUTOGENERATED FILE - DO NOT EDIT! *)(********************************************************)(* Generated by: ocaml-protoc-plugin *)(* https://github.com/andersfugmann/ocaml-protoc-plugin *)(********************************************************)(*
Source: google/protobuf/api.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=structmoduleSource_context=Source_contextmoduleType=Typeend(**/**)modulerecGoogle:sigmodulerecProtobuf:sig(**
{%html:
<p>Api is a light-weight descriptor for an API Interface.</p>
<p>Interfaces are also described as "protocol buffer services" in some contexts,
such as by the "service" keyword in a .proto file, but they are different
from API Services, which represent a concrete implementation of an interface
as opposed to simply a description of methods and bindings. They are also
sometimes simply referred to as "APIs" in other contexts, such as the name of
this message itself. See https://cloud.google.com/apis/design/glossary for
detailed terminology.</p>
<p>New usages of this message as an alternative to ServiceDescriptorProto are
strongly discouraged. This message does not reliability preserve all
information necessary to model the schema and preserve semantics. Instead
make use of FileDescriptorSet which preserves the necessary information.</p>
%}
*)modulerecApi:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of this interface, including package name
followed by the interface's simple name.</p>
%}
*)methods:Method.tlist;(**
{%html:
<p>The methods of this interface, in unspecified order.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the interface.</p>
%}
*)version:string;(**
{%html:
<p>A version string for this interface. If specified, must have the form
<code>major-version.minor-version</code>, as in <code>1.10</code>. If the minor version is
omitted, it defaults to zero. If the entire version field is empty, the
major version is derived from the package name, as outlined below. If the
field is not empty, the version in the package name will be verified to be
consistent with what is provided here.</p>
<p>The versioning schema uses <a href="http://semver.org">semantic
versioning</a> where the major version number
indicates a breaking change and the minor version an additive,
non-breaking change. Both version numbers are signals to users
what to expect from different versions, and should be carefully
chosen based on the product plan.</p>
<p>The major version is also reflected in the package name of the
interface, which must end in <code>v<major-version></code>, as in
<code>google.feature.v1</code>. For major versions 0 and 1, the suffix can
be omitted. Zero major versions must only be used for
experimental, non-GA interfaces.</p>
%}
*)source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.toption;(**
{%html:
<p>Source context for the protocol buffer service represented by this
message.</p>
%}
*)mixins:Mixin.tlist;(**
{%html:
<p>Included interfaces. See <em>Mixin</em>.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t;(**
{%html:
<p>The source syntax of the service.</p>
%}
*)edition:string;(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
%}
*)}valmake:?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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(**
{%html:
<p>Method represents a method of an API interface.</p>
<p>New usages of this message as an alternative to MethodDescriptorProto are
strongly discouraged. This message does not reliability preserve all
information necessary to model the schema and preserve semantics. Instead
make use of FileDescriptorSet which preserves the necessary information.</p>
%}
*)andMethod:sigtypet={name:string;(**
{%html:
<p>The simple name of this method.</p>
%}
*)request_type_url:string;(**
{%html:
<p>A URL of the input message type.</p>
%}
*)request_streaming:bool;(**
{%html:
<p>If true, the request is streamed.</p>
%}
*)response_type_url:string;(**
{%html:
<p>The URL of the output message type.</p>
%}
*)response_streaming:bool;(**
{%html:
<p>If true, the response is streamed.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the method.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source syntax of this method.</p>
<p>This field should be ignored, instead the syntax should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)edition:string[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
<p>This field should be ignored, instead the edition should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)}valmake:?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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(**
{%html:
<p>Declares an API Interface to be included in this interface. The including
interface must redeclare all the methods from the included interface, but
documentation and options are inherited as follows:</p>
<ul>
<li>
<p>If after comment and whitespace stripping, the documentation
string of the redeclared method is empty, it will be inherited
from the original method.</p>
</li>
<li>
<p>Each annotation belonging to the service config (http,
visibility) which is not set in the redeclared method will be
inherited.</p>
</li>
<li>
<p>If an http annotation is inherited, the path pattern will be
modified as follows. Any version prefix will be replaced by the
version of the including interface plus the <em>root</em> path if
specified.</p>
</li>
</ul>
<p>Example of a simple mixin:</p>
<pre><code> package google.acl.v1;
service AccessControl {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v1/{resource=**}:getAcl";
}
}
package google.storage.v2;
service Storage {
rpc GetAcl(GetAclRequest) returns (Acl);
</code></pre>
<p>Get a data record.</p>
<pre><code> rpc GetData(GetDataRequest) returns (Data) {
option (google.api.http).get = "/v2/{resource=**}";
}
}
</code></pre>
<p>Example of a mixin configuration:</p>
<pre><code> apis:
- name: google.storage.v2.Storage
mixins:
- name: google.acl.v1.AccessControl
</code></pre>
<p>The mixin construct implies that all methods in <code>AccessControl</code> are
also declared with same name and request/response types in
<code>Storage</code>. A documentation generator or annotation processor will
see the effective <code>Storage.GetAcl</code> method after inheriting
documentation and annotations as follows:</p>
<pre><code> service Storage {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v2/{resource=**}:getAcl";
}
...
}
</code></pre>
<p>Note how the version in the path pattern changed from <code>v1</code> to <code>v2</code>.</p>
<p>If the <code>root</code> field in the mixin is specified, it should be a
relative path under which inherited HTTP paths are placed. Example:</p>
<pre><code> apis:
- name: google.storage.v2.Storage
mixins:
- name: google.acl.v1.AccessControl
root: acls
</code></pre>
<p>This implies the following inherited HTTP annotation:</p>
<pre><code> service Storage {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
}
...
}
</code></pre>
%}
*)andMixin:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of the interface which is included.</p>
%}
*)root:string;(**
{%html:
<p>If non-empty specifies a path under which inherited HTTP paths
are rooted.</p>
%}
*)}valmake:?name:string->?root: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=?name:string->?root: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>Api is a light-weight descriptor for an API Interface.</p>
<p>Interfaces are also described as "protocol buffer services" in some contexts,
such as by the "service" keyword in a .proto file, but they are different
from API Services, which represent a concrete implementation of an interface
as opposed to simply a description of methods and bindings. They are also
sometimes simply referred to as "APIs" in other contexts, such as the name of
this message itself. See https://cloud.google.com/apis/design/glossary for
detailed terminology.</p>
<p>New usages of this message as an alternative to ServiceDescriptorProto are
strongly discouraged. This message does not reliability preserve all
information necessary to model the schema and preserve semantics. Instead
make use of FileDescriptorSet which preserves the necessary information.</p>
%}
*)modulerecApi:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of this interface, including package name
followed by the interface's simple name.</p>
%}
*)methods:Method.tlist;(**
{%html:
<p>The methods of this interface, in unspecified order.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the interface.</p>
%}
*)version:string;(**
{%html:
<p>A version string for this interface. If specified, must have the form
<code>major-version.minor-version</code>, as in <code>1.10</code>. If the minor version is
omitted, it defaults to zero. If the entire version field is empty, the
major version is derived from the package name, as outlined below. If the
field is not empty, the version in the package name will be verified to be
consistent with what is provided here.</p>
<p>The versioning schema uses <a href="http://semver.org">semantic
versioning</a> where the major version number
indicates a breaking change and the minor version an additive,
non-breaking change. Both version numbers are signals to users
what to expect from different versions, and should be carefully
chosen based on the product plan.</p>
<p>The major version is also reflected in the package name of the
interface, which must end in <code>v<major-version></code>, as in
<code>google.feature.v1</code>. For major versions 0 and 1, the suffix can
be omitted. Zero major versions must only be used for
experimental, non-GA interfaces.</p>
%}
*)source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.toption;(**
{%html:
<p>Source context for the protocol buffer service represented by this
message.</p>
%}
*)mixins:Mixin.tlist;(**
{%html:
<p>Included interfaces. See <em>Mixin</em>.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t;(**
{%html:
<p>The source syntax of the service.</p>
%}
*)edition:string;(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
%}
*)}valmake:?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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(**
{%html:
<p>Method represents a method of an API interface.</p>
<p>New usages of this message as an alternative to MethodDescriptorProto are
strongly discouraged. This message does not reliability preserve all
information necessary to model the schema and preserve semantics. Instead
make use of FileDescriptorSet which preserves the necessary information.</p>
%}
*)andMethod:sigtypet={name:string;(**
{%html:
<p>The simple name of this method.</p>
%}
*)request_type_url:string;(**
{%html:
<p>A URL of the input message type.</p>
%}
*)request_streaming:bool;(**
{%html:
<p>If true, the request is streamed.</p>
%}
*)response_type_url:string;(**
{%html:
<p>The URL of the output message type.</p>
%}
*)response_streaming:bool;(**
{%html:
<p>If true, the response is streamed.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the method.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source syntax of this method.</p>
<p>This field should be ignored, instead the syntax should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)edition:string[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
<p>This field should be ignored, instead the edition should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)}valmake:?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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(**
{%html:
<p>Declares an API Interface to be included in this interface. The including
interface must redeclare all the methods from the included interface, but
documentation and options are inherited as follows:</p>
<ul>
<li>
<p>If after comment and whitespace stripping, the documentation
string of the redeclared method is empty, it will be inherited
from the original method.</p>
</li>
<li>
<p>Each annotation belonging to the service config (http,
visibility) which is not set in the redeclared method will be
inherited.</p>
</li>
<li>
<p>If an http annotation is inherited, the path pattern will be
modified as follows. Any version prefix will be replaced by the
version of the including interface plus the <em>root</em> path if
specified.</p>
</li>
</ul>
<p>Example of a simple mixin:</p>
<pre><code> package google.acl.v1;
service AccessControl {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v1/{resource=**}:getAcl";
}
}
package google.storage.v2;
service Storage {
rpc GetAcl(GetAclRequest) returns (Acl);
</code></pre>
<p>Get a data record.</p>
<pre><code> rpc GetData(GetDataRequest) returns (Data) {
option (google.api.http).get = "/v2/{resource=**}";
}
}
</code></pre>
<p>Example of a mixin configuration:</p>
<pre><code> apis:
- name: google.storage.v2.Storage
mixins:
- name: google.acl.v1.AccessControl
</code></pre>
<p>The mixin construct implies that all methods in <code>AccessControl</code> are
also declared with same name and request/response types in
<code>Storage</code>. A documentation generator or annotation processor will
see the effective <code>Storage.GetAcl</code> method after inheriting
documentation and annotations as follows:</p>
<pre><code> service Storage {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v2/{resource=**}:getAcl";
}
...
}
</code></pre>
<p>Note how the version in the path pattern changed from <code>v1</code> to <code>v2</code>.</p>
<p>If the <code>root</code> field in the mixin is specified, it should be a
relative path under which inherited HTTP paths are placed. Example:</p>
<pre><code> apis:
- name: google.storage.v2.Storage
mixins:
- name: google.acl.v1.AccessControl
root: acls
</code></pre>
<p>This implies the following inherited HTTP annotation:</p>
<pre><code> service Storage {
</code></pre>
<p>Get the underlying ACL object.</p>
<pre><code> rpc GetAcl(GetAclRequest) returns (Acl) {
option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
}
...
}
</code></pre>
%}
*)andMixin:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of the interface which is included.</p>
%}
*)root:string;(**
{%html:
<p>If non-empty specifies a path under which inherited HTTP paths
are rooted.</p>
%}
*)}valmake:?name:string->?root: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=?name:string->?root: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=structmodulerecApi:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of this interface, including package name
followed by the interface's simple name.</p>
%}
*)methods:Method.tlist;(**
{%html:
<p>The methods of this interface, in unspecified order.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the interface.</p>
%}
*)version:string;(**
{%html:
<p>A version string for this interface. If specified, must have the form
<code>major-version.minor-version</code>, as in <code>1.10</code>. If the minor version is
omitted, it defaults to zero. If the entire version field is empty, the
major version is derived from the package name, as outlined below. If the
field is not empty, the version in the package name will be verified to be
consistent with what is provided here.</p>
<p>The versioning schema uses <a href="http://semver.org">semantic
versioning</a> where the major version number
indicates a breaking change and the minor version an additive,
non-breaking change. Both version numbers are signals to users
what to expect from different versions, and should be carefully
chosen based on the product plan.</p>
<p>The major version is also reflected in the package name of the
interface, which must end in <code>v<major-version></code>, as in
<code>google.feature.v1</code>. For major versions 0 and 1, the suffix can
be omitted. Zero major versions must only be used for
experimental, non-GA interfaces.</p>
%}
*)source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.toption;(**
{%html:
<p>Source context for the protocol buffer service represented by this
message.</p>
%}
*)mixins:Mixin.tlist;(**
{%html:
<p>Included interfaces. See <em>Mixin</em>.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t;(**
{%html:
<p>The source syntax of the service.</p>
%}
*)edition:string;(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
%}
*)}valmake:?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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'_=Apiletname()=".google.protobuf.Api"typet={name:string;methods:Method.tlist;options:Imported'modules.Type.Google.Protobuf.Option.tlist;version:string;source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.toption;mixins:Mixin.tlist;syntax:Imported'modules.Type.Google.Protobuf.Syntax.t;edition:string;}typemake_t=?name:string->?methods:Method.tlist->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?version:string->?source_context:Imported'modules.Source_context.Google.Protobuf.SourceContext.t->?mixins:Mixin.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition:string->unit->tletmake?(name={||})?(methods=[])?(options=[])?(version={||})?source_context?(mixins=[])?(syntax=Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0)?(edition={||})()={name;methods;options;version;source_context;mixins;syntax;edition}letmerge=letmerge_name=Runtime'.Merge.mergeRuntime'.Spec.(basic((1,"name","name"),string,({||})))inletmerge_methods=Runtime'.Merge.mergeRuntime'.Spec.(repeated((2,"methods","methods"),(message(moduleMethod)),not_packed))inletmerge_options=Runtime'.Merge.mergeRuntime'.Spec.(repeated((3,"options","options"),(message(moduleImported'modules.Type.Google.Protobuf.Option)),not_packed))inletmerge_version=Runtime'.Merge.mergeRuntime'.Spec.(basic((4,"version","version"),string,({||})))inletmerge_source_context=Runtime'.Merge.mergeRuntime'.Spec.(basic_opt((5,"source_context","sourceContext"),(message(moduleImported'modules.Source_context.Google.Protobuf.SourceContext))))inletmerge_mixins=Runtime'.Merge.mergeRuntime'.Spec.(repeated((6,"mixins","mixins"),(message(moduleMixin)),not_packed))inletmerge_syntax=Runtime'.Merge.mergeRuntime'.Spec.(basic((7,"syntax","syntax"),(enum(moduleImported'modules.Type.Google.Protobuf.Syntax)),(Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0)))inletmerge_edition=Runtime'.Merge.mergeRuntime'.Spec.(basic((8,"edition","edition"),string,({||})))infunt1t2->{name=(merge_namet1.namet2.name);methods=(merge_methodst1.methodst2.methods);options=(merge_optionst1.optionst2.options);version=(merge_versiont1.versiont2.version);source_context=(merge_source_contextt1.source_contextt2.source_context);mixins=(merge_mixinst1.mixinst2.mixins);syntax=(merge_syntaxt1.syntaxt2.syntax);edition=(merge_editiont1.editiont2.edition);}letspec()=Runtime'.Spec.(basic((1,"name","name"),string,({||}))^::repeated((2,"methods","methods"),(message(moduleMethod)),not_packed)^::repeated((3,"options","options"),(message(moduleImported'modules.Type.Google.Protobuf.Option)),not_packed)^::basic((4,"version","version"),string,({||}))^::basic_opt((5,"source_context","sourceContext"),(message(moduleImported'modules.Source_context.Google.Protobuf.SourceContext)))^::repeated((6,"mixins","mixins"),(message(moduleMixin)),not_packed)^::basic((7,"syntax","syntax"),(enum(moduleImported'modules.Type.Google.Protobuf.Syntax)),(Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0))^::basic((8,"edition","edition"),string,({||}))^::nil)letto_proto'=letserialize=Runtime'.apply_lazy(fun()->Runtime'.Serialize.serialize(spec()))infunwriter{name;methods;options;version;source_context;mixins;syntax;edition}->serializewriternamemethodsoptionsversionsource_contextmixinssyntaxeditionletto_protot=letwriter=Runtime'.Writer.init()into_proto'writert;writerletfrom_proto_exn=letconstructornamemethodsoptionsversionsource_contextmixinssyntaxedition={name;methods;options;version;source_context;mixins;syntax;edition}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{name;methods;options;version;source_context;mixins;syntax;edition}->serializenamemethodsoptionsversionsource_contextmixinssyntaxeditionletfrom_json_exn=letconstructornamemethodsoptionsversionsource_contextmixinssyntaxedition={name;methods;options;version;source_context;mixins;syntax;edition}inRuntime'.apply_lazy(fun()->Runtime'.Deserialize_json.deserialize~message_name:(name())(spec())constructor)letfrom_jsonjson=Runtime'.Result.catch(fun()->from_json_exnjson)endandMethod:sigtypet={name:string;(**
{%html:
<p>The simple name of this method.</p>
%}
*)request_type_url:string;(**
{%html:
<p>A URL of the input message type.</p>
%}
*)request_streaming:bool;(**
{%html:
<p>If true, the request is streamed.</p>
%}
*)response_type_url:string;(**
{%html:
<p>The URL of the output message type.</p>
%}
*)response_streaming:bool;(**
{%html:
<p>If true, the response is streamed.</p>
%}
*)options:Imported'modules.Type.Google.Protobuf.Option.tlist;(**
{%html:
<p>Any metadata attached to the method.</p>
%}
*)syntax:Imported'modules.Type.Google.Protobuf.Syntax.t[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source syntax of this method.</p>
<p>This field should be ignored, instead the syntax should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)edition:string[@ocaml.alertprotobuf"Marked as deprecated in the .proto file"];(**
{%html:
<p>The source edition string, only valid when syntax is SYNTAX_EDITIONS.</p>
<p>This field should be ignored, instead the edition should be inherited from
Api. This is similar to Field and EnumValue.</p>
%}
*)}valmake:?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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=?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition: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'_=Methodletname()=".google.protobuf.Method"typet={name:string;request_type_url:string;request_streaming:bool;response_type_url:string;response_streaming:bool;options:Imported'modules.Type.Google.Protobuf.Option.tlist;syntax:Imported'modules.Type.Google.Protobuf.Syntax.t;edition:string;}typemake_t=?name:string->?request_type_url:string->?request_streaming:bool->?response_type_url:string->?response_streaming:bool->?options:Imported'modules.Type.Google.Protobuf.Option.tlist->?syntax:Imported'modules.Type.Google.Protobuf.Syntax.t->?edition:string->unit->tletmake?(name={||})?(request_type_url={||})?(request_streaming=false)?(response_type_url={||})?(response_streaming=false)?(options=[])?(syntax=Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0)?(edition={||})()={name;request_type_url;request_streaming;response_type_url;response_streaming;options;syntax;edition}letmerge=letmerge_name=Runtime'.Merge.mergeRuntime'.Spec.(basic((1,"name","name"),string,({||})))inletmerge_request_type_url=Runtime'.Merge.mergeRuntime'.Spec.(basic((2,"request_type_url","requestTypeUrl"),string,({||})))inletmerge_request_streaming=Runtime'.Merge.mergeRuntime'.Spec.(basic((3,"request_streaming","requestStreaming"),bool,(false)))inletmerge_response_type_url=Runtime'.Merge.mergeRuntime'.Spec.(basic((4,"response_type_url","responseTypeUrl"),string,({||})))inletmerge_response_streaming=Runtime'.Merge.mergeRuntime'.Spec.(basic((5,"response_streaming","responseStreaming"),bool,(false)))inletmerge_options=Runtime'.Merge.mergeRuntime'.Spec.(repeated((6,"options","options"),(message(moduleImported'modules.Type.Google.Protobuf.Option)),not_packed))inletmerge_syntax=Runtime'.Merge.mergeRuntime'.Spec.(basic((7,"syntax","syntax"),(enum(moduleImported'modules.Type.Google.Protobuf.Syntax)),(Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0)))inletmerge_edition=Runtime'.Merge.mergeRuntime'.Spec.(basic((8,"edition","edition"),string,({||})))infunt1t2->{name=(merge_namet1.namet2.name);request_type_url=(merge_request_type_urlt1.request_type_urlt2.request_type_url);request_streaming=(merge_request_streamingt1.request_streamingt2.request_streaming);response_type_url=(merge_response_type_urlt1.response_type_urlt2.response_type_url);response_streaming=(merge_response_streamingt1.response_streamingt2.response_streaming);options=(merge_optionst1.optionst2.options);syntax=(merge_syntaxt1.syntaxt2.syntax);edition=(merge_editiont1.editiont2.edition);}letspec()=Runtime'.Spec.(basic((1,"name","name"),string,({||}))^::basic((2,"request_type_url","requestTypeUrl"),string,({||}))^::basic((3,"request_streaming","requestStreaming"),bool,(false))^::basic((4,"response_type_url","responseTypeUrl"),string,({||}))^::basic((5,"response_streaming","responseStreaming"),bool,(false))^::repeated((6,"options","options"),(message(moduleImported'modules.Type.Google.Protobuf.Option)),not_packed)^::basic((7,"syntax","syntax"),(enum(moduleImported'modules.Type.Google.Protobuf.Syntax)),(Imported'modules.Type.Google.Protobuf.Syntax.from_int_exn0))^::basic((8,"edition","edition"),string,({||}))^::nil)letto_proto'=letserialize=Runtime'.apply_lazy(fun()->Runtime'.Serialize.serialize(spec()))infunwriter{name;request_type_url;request_streaming;response_type_url;response_streaming;options;syntax;edition}->serializewriternamerequest_type_urlrequest_streamingresponse_type_urlresponse_streamingoptionssyntaxeditionletto_protot=letwriter=Runtime'.Writer.init()into_proto'writert;writerletfrom_proto_exn=letconstructornamerequest_type_urlrequest_streamingresponse_type_urlresponse_streamingoptionssyntaxedition={name;request_type_url;request_streaming;response_type_url;response_streaming;options;syntax;edition}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{name;request_type_url;request_streaming;response_type_url;response_streaming;options;syntax;edition}->serializenamerequest_type_urlrequest_streamingresponse_type_urlresponse_streamingoptionssyntaxeditionletfrom_json_exn=letconstructornamerequest_type_urlrequest_streamingresponse_type_urlresponse_streamingoptionssyntaxedition={name;request_type_url;request_streaming;response_type_url;response_streaming;options;syntax;edition}inRuntime'.apply_lazy(fun()->Runtime'.Deserialize_json.deserialize~message_name:(name())(spec())constructor)letfrom_jsonjson=Runtime'.Result.catch(fun()->from_json_exnjson)endandMixin:sigtypet={name:string;(**
{%html:
<p>The fully qualified name of the interface which is included.</p>
%}
*)root:string;(**
{%html:
<p>If non-empty specifies a path under which inherited HTTP paths
are rooted.</p>
%}
*)}valmake:?name:string->?root: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=?name:string->?root: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'_=Mixinletname()=".google.protobuf.Mixin"typet={name:string;root:string;}typemake_t=?name:string->?root:string->unit->tletmake?(name={||})?(root={||})()={name;root}letmerge=letmerge_name=Runtime'.Merge.mergeRuntime'.Spec.(basic((1,"name","name"),string,({||})))inletmerge_root=Runtime'.Merge.mergeRuntime'.Spec.(basic((2,"root","root"),string,({||})))infunt1t2->{name=(merge_namet1.namet2.name);root=(merge_roott1.roott2.root);}letspec()=Runtime'.Spec.(basic((1,"name","name"),string,({||}))^::basic((2,"root","root"),string,({||}))^::nil)letto_proto'=letserialize=Runtime'.apply_lazy(fun()->Runtime'.Serialize.serialize(spec()))infunwriter{name;root}->serializewriternamerootletto_protot=letwriter=Runtime'.Writer.init()into_proto'writert;writerletfrom_proto_exn=letconstructornameroot={name;root}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{name;root}->serializenamerootletfrom_json_exn=letconstructornameroot={name;root}inRuntime'.apply_lazy(fun()->Runtime'.Deserialize_json.deserialize~message_name:(name())(spec())constructor)letfrom_jsonjson=Runtime'.Result.catch(fun()->from_json_exnjson)endendend