@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/google/api/annotations_pb.ts +33 -0
  2. package/google/api/field_behavior.ts +95 -0
  3. package/google/api/field_behavior_pb.ts +139 -0
  4. package/google/api/http.ts +695 -0
  5. package/google/api/http_pb.ts +547 -0
  6. package/google/api/httpbody.ts +159 -0
  7. package/google/api/httpbody_pb.ts +122 -0
  8. package/google/protobuf/any.ts +322 -0
  9. package/google/protobuf/descriptor.ts +3475 -0
  10. package/google/protobuf/duration.ts +231 -0
  11. package/google/protobuf/struct.ts +484 -0
  12. package/google/protobuf/timestamp.ts +290 -0
  13. package/google/protobuf/wrappers.ts +752 -0
  14. package/package.json +47 -0
  15. package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
  16. package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
  17. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
  18. package/raystack/assets/index.ts +29 -0
  19. package/raystack/assets/v1beta1/bucket.ts +362 -0
  20. package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
  21. package/raystack/assets/v1beta1/dashboard.ts +426 -0
  22. package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
  23. package/raystack/assets/v1beta1/event.ts +105 -0
  24. package/raystack/assets/v1beta1/event_pb.ts +70 -0
  25. package/raystack/assets/v1beta1/group.ts +223 -0
  26. package/raystack/assets/v1beta1/group_pb.ts +149 -0
  27. package/raystack/assets/v1beta1/job.ts +147 -0
  28. package/raystack/assets/v1beta1/job_pb.ts +100 -0
  29. package/raystack/assets/v1beta1/lineage.ts +90 -0
  30. package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
  31. package/raystack/assets/v1beta1/ownership.ts +179 -0
  32. package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
  33. package/raystack/assets/v1beta1/preview.ts +87 -0
  34. package/raystack/assets/v1beta1/preview_pb.ts +58 -0
  35. package/raystack/assets/v1beta1/properties.ts +116 -0
  36. package/raystack/assets/v1beta1/properties_pb.ts +63 -0
  37. package/raystack/assets/v1beta1/resource.ts +149 -0
  38. package/raystack/assets/v1beta1/resource_pb.ts +96 -0
  39. package/raystack/assets/v1beta1/schema.ts +421 -0
  40. package/raystack/assets/v1beta1/schema_pb.ts +262 -0
  41. package/raystack/assets/v1beta1/table.ts +408 -0
  42. package/raystack/assets/v1beta1/table_pb.ts +266 -0
  43. package/raystack/assets/v1beta1/timestamp.ts +158 -0
  44. package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
  45. package/raystack/assets/v1beta1/topic.ts +253 -0
  46. package/raystack/assets/v1beta1/topic_pb.ts +171 -0
  47. package/raystack/assets/v1beta1/user.ts +451 -0
  48. package/raystack/assets/v1beta1/user_pb.ts +292 -0
  49. package/raystack/assets/v1beta2/application.ts +125 -0
  50. package/raystack/assets/v1beta2/application_pb.ts +79 -0
  51. package/raystack/assets/v1beta2/asset.ts +269 -0
  52. package/raystack/assets/v1beta2/asset_pb.ts +157 -0
  53. package/raystack/assets/v1beta2/bucket.ts +341 -0
  54. package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
  55. package/raystack/assets/v1beta2/common.ts +392 -0
  56. package/raystack/assets/v1beta2/common_pb.ts +258 -0
  57. package/raystack/assets/v1beta2/dashboard.ts +393 -0
  58. package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
  59. package/raystack/assets/v1beta2/experiment.ts +274 -0
  60. package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
  61. package/raystack/assets/v1beta2/feature_table.ts +387 -0
  62. package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
  63. package/raystack/assets/v1beta2/group.ts +178 -0
  64. package/raystack/assets/v1beta2/group_pb.ts +118 -0
  65. package/raystack/assets/v1beta2/job.ts +99 -0
  66. package/raystack/assets/v1beta2/job_pb.ts +65 -0
  67. package/raystack/assets/v1beta2/metric.ts +163 -0
  68. package/raystack/assets/v1beta2/metric_pb.ts +105 -0
  69. package/raystack/assets/v1beta2/model.ts +519 -0
  70. package/raystack/assets/v1beta2/model_pb.ts +322 -0
  71. package/raystack/assets/v1beta2/table.ts +663 -0
  72. package/raystack/assets/v1beta2/table_pb.ts +409 -0
  73. package/raystack/assets/v1beta2/topic.ts +275 -0
  74. package/raystack/assets/v1beta2/topic_pb.ts +181 -0
  75. package/raystack/assets/v1beta2/user.ts +433 -0
  76. package/raystack/assets/v1beta2/user_pb.ts +277 -0
  77. package/raystack/common/index.ts +3 -0
  78. package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
  79. package/raystack/common/v1/service.client.ts +37 -0
  80. package/raystack/common/v1/service.ts +245 -0
  81. package/raystack/common/v1/service_connect.ts +26 -0
  82. package/raystack/common/v1/service_pb.ts +149 -0
  83. package/raystack/compass/index.ts +3 -0
  84. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
  85. package/raystack/compass/v1beta1/service.client.ts +594 -0
  86. package/raystack/compass/v1beta1/service.ts +8169 -0
  87. package/raystack/compass/v1beta1/service_connect.ts +407 -0
  88. package/raystack/compass/v1beta1/service_pb.ts +4975 -0
  89. package/raystack/entropy/index.ts +6 -0
  90. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
  91. package/raystack/entropy/v1beta1/module.client.ts +89 -0
  92. package/raystack/entropy/v1beta1/module.ts +692 -0
  93. package/raystack/entropy/v1beta1/module_connect.ts +62 -0
  94. package/raystack/entropy/v1beta1/module_pb.ts +445 -0
  95. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
  96. package/raystack/entropy/v1beta1/resource.client.ts +129 -0
  97. package/raystack/entropy/v1beta1/resource.ts +1817 -0
  98. package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
  99. package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
  100. package/raystack/frontier/index.ts +7 -0
  101. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
  102. package/raystack/frontier/v1beta1/admin.client.ts +849 -0
  103. package/raystack/frontier/v1beta1/admin.ts +9007 -0
  104. package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
  105. package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
  106. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
  107. package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
  108. package/raystack/frontier/v1beta1/frontier.ts +23706 -0
  109. package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
  110. package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
  111. package/raystack/frontier/v1beta1/models.ts +7433 -0
  112. package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
  113. package/raystack/guardian/index.ts +3 -0
  114. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
  115. package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
  116. package/raystack/guardian/v1beta1/guardian.ts +9688 -0
  117. package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
  118. package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
  119. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
  120. package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
  121. package/raystack/optimus/core/v1beta1/backup.ts +708 -0
  122. package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
  123. package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
  124. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
  125. package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
  126. package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
  127. package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
  128. package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
  129. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
  130. package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
  131. package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
  132. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
  133. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
  134. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
  135. package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
  136. package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
  137. package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
  138. package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
  139. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
  140. package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
  141. package/raystack/optimus/core/v1beta1/project.ts +520 -0
  142. package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
  143. package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
  144. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
  145. package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
  146. package/raystack/optimus/core/v1beta1/replay.ts +881 -0
  147. package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
  148. package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
  149. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
  150. package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
  151. package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
  152. package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
  153. package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
  154. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
  155. package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
  156. package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
  157. package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
  158. package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
  159. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
  160. package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
  161. package/raystack/optimus/core/v1beta1/secret.ts +619 -0
  162. package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
  163. package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
  164. package/raystack/optimus/core/v1beta1/status.ts +113 -0
  165. package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
  166. package/raystack/optimus/integration/v1beta1/event.ts +531 -0
  167. package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
  168. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
  169. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
  170. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
  171. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
  172. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
  173. package/raystack/predator/index.ts +2 -0
  174. package/raystack/predator/v1beta1/metrics_log.ts +457 -0
  175. package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
  176. package/raystack/predator/v1beta1/result_log.ts +390 -0
  177. package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
  178. package/raystack/raccoon/index.ts +3 -0
  179. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
  180. package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
  181. package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
  182. package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
  183. package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
  184. package/raystack/siren/index.ts +3 -0
  185. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
  186. package/raystack/siren/v1beta1/siren.client.ts +479 -0
  187. package/raystack/siren/v1beta1/siren.ts +6507 -0
  188. package/raystack/siren/v1beta1/siren_connect.ts +332 -0
  189. package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
  190. package/raystack/stencil/index.ts +3 -0
  191. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
  192. package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
  193. package/raystack/stencil/v1beta1/stencil.ts +2716 -0
  194. package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
  195. package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
  196. package/validate/validate.ts +4130 -0
  197. package/validate/validate_pb.ts +2621 -0
@@ -0,0 +1,3110 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "protoc-gen-openapiv2/options/openapiv2.proto" (package "grpc.gateway.protoc_gen_openapiv2.options", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
9
+ import { WireType } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { Value } from "../../google/protobuf/struct";
14
+ /**
15
+ * `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
16
+ *
17
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
18
+ *
19
+ * Example:
20
+ *
21
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
22
+ * info: {
23
+ * title: "Echo API";
24
+ * version: "1.0";
25
+ * description: "";
26
+ * contact: {
27
+ * name: "gRPC-Gateway project";
28
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
29
+ * email: "none@example.com";
30
+ * };
31
+ * license: {
32
+ * name: "BSD 3-Clause License";
33
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
34
+ * };
35
+ * };
36
+ * schemes: HTTPS;
37
+ * consumes: "application/json";
38
+ * produces: "application/json";
39
+ * };
40
+ *
41
+ *
42
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Swagger
43
+ */
44
+ export interface Swagger {
45
+ /**
46
+ * Specifies the OpenAPI Specification version being used. It can be
47
+ * used by the OpenAPI UI and other clients to interpret the API listing. The
48
+ * value MUST be "2.0".
49
+ *
50
+ * @generated from protobuf field: string swagger = 1
51
+ */
52
+ swagger: string;
53
+ /**
54
+ * Provides metadata about the API. The metadata can be used by the
55
+ * clients if needed.
56
+ *
57
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Info info = 2
58
+ */
59
+ info?: Info;
60
+ /**
61
+ * The host (name or ip) serving the API. This MUST be the host only and does
62
+ * not include the scheme nor sub-paths. It MAY include a port. If the host is
63
+ * not included, the host serving the documentation is to be used (including
64
+ * the port). The host does not support path templating.
65
+ *
66
+ * @generated from protobuf field: string host = 3
67
+ */
68
+ host: string;
69
+ /**
70
+ * The base path on which the API is served, which is relative to the host. If
71
+ * it is not included, the API is served directly under the host. The value
72
+ * MUST start with a leading slash (/). The basePath does not support path
73
+ * templating.
74
+ * Note that using `base_path` does not change the endpoint paths that are
75
+ * generated in the resulting OpenAPI file. If you wish to use `base_path`
76
+ * with relatively generated OpenAPI paths, the `base_path` prefix must be
77
+ * manually removed from your `google.api.http` paths and your code changed to
78
+ * serve the API from the `base_path`.
79
+ *
80
+ * @generated from protobuf field: string base_path = 4
81
+ */
82
+ basePath: string;
83
+ /**
84
+ * The transfer protocol of the API. Values MUST be from the list: "http",
85
+ * "https", "ws", "wss". If the schemes is not included, the default scheme to
86
+ * be used is the one used to access the OpenAPI definition itself.
87
+ *
88
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5
89
+ */
90
+ schemes: Scheme[];
91
+ /**
92
+ * A list of MIME types the APIs can consume. This is global to all APIs but
93
+ * can be overridden on specific API calls. Value MUST be as described under
94
+ * Mime Types.
95
+ *
96
+ * @generated from protobuf field: repeated string consumes = 6
97
+ */
98
+ consumes: string[];
99
+ /**
100
+ * A list of MIME types the APIs can produce. This is global to all APIs but
101
+ * can be overridden on specific API calls. Value MUST be as described under
102
+ * Mime Types.
103
+ *
104
+ * @generated from protobuf field: repeated string produces = 7
105
+ */
106
+ produces: string[];
107
+ /**
108
+ * An object to hold responses that can be used across operations. This
109
+ * property does not define global responses for all operations.
110
+ *
111
+ * @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10
112
+ */
113
+ responses: {
114
+ [key: string]: Response;
115
+ };
116
+ /**
117
+ * Security scheme definitions that can be used across the specification.
118
+ *
119
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11
120
+ */
121
+ securityDefinitions?: SecurityDefinitions;
122
+ /**
123
+ * A declaration of which security schemes are applied for the API as a whole.
124
+ * The list of values describes alternative security schemes that can be used
125
+ * (that is, there is a logical OR between the security requirements).
126
+ * Individual operations can override this definition.
127
+ *
128
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12
129
+ */
130
+ security: SecurityRequirement[];
131
+ /**
132
+ * A list of tags for API documentation control. Tags can be used for logical
133
+ * grouping of operations by resources or any other qualifier.
134
+ *
135
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13
136
+ */
137
+ tags: Tag[];
138
+ /**
139
+ * Additional external documentation.
140
+ *
141
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14
142
+ */
143
+ externalDocs?: ExternalDocumentation;
144
+ /**
145
+ * Custom properties that start with "x-" such as "x-foo" used to describe
146
+ * extra functionality that is not covered by the standard OpenAPI Specification.
147
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
148
+ *
149
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 15
150
+ */
151
+ extensions: {
152
+ [key: string]: Value;
153
+ };
154
+ }
155
+ /**
156
+ * `Operation` is a representation of OpenAPI v2 specification's Operation object.
157
+ *
158
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
159
+ *
160
+ * Example:
161
+ *
162
+ * service EchoService {
163
+ * rpc Echo(SimpleMessage) returns (SimpleMessage) {
164
+ * option (google.api.http) = {
165
+ * get: "/v1/example/echo/{id}"
166
+ * };
167
+ *
168
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
169
+ * summary: "Get a message.";
170
+ * operation_id: "getMessage";
171
+ * tags: "echo";
172
+ * responses: {
173
+ * key: "200"
174
+ * value: {
175
+ * description: "OK";
176
+ * }
177
+ * }
178
+ * };
179
+ * }
180
+ * }
181
+ *
182
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Operation
183
+ */
184
+ export interface Operation {
185
+ /**
186
+ * A list of tags for API documentation control. Tags can be used for logical
187
+ * grouping of operations by resources or any other qualifier.
188
+ *
189
+ * @generated from protobuf field: repeated string tags = 1
190
+ */
191
+ tags: string[];
192
+ /**
193
+ * A short summary of what the operation does. For maximum readability in the
194
+ * swagger-ui, this field SHOULD be less than 120 characters.
195
+ *
196
+ * @generated from protobuf field: string summary = 2
197
+ */
198
+ summary: string;
199
+ /**
200
+ * A verbose explanation of the operation behavior. GFM syntax can be used for
201
+ * rich text representation.
202
+ *
203
+ * @generated from protobuf field: string description = 3
204
+ */
205
+ description: string;
206
+ /**
207
+ * Additional external documentation for this operation.
208
+ *
209
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4
210
+ */
211
+ externalDocs?: ExternalDocumentation;
212
+ /**
213
+ * Unique string used to identify the operation. The id MUST be unique among
214
+ * all operations described in the API. Tools and libraries MAY use the
215
+ * operationId to uniquely identify an operation, therefore, it is recommended
216
+ * to follow common programming naming conventions.
217
+ *
218
+ * @generated from protobuf field: string operation_id = 5
219
+ */
220
+ operationId: string;
221
+ /**
222
+ * A list of MIME types the operation can consume. This overrides the consumes
223
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
224
+ * global definition. Value MUST be as described under Mime Types.
225
+ *
226
+ * @generated from protobuf field: repeated string consumes = 6
227
+ */
228
+ consumes: string[];
229
+ /**
230
+ * A list of MIME types the operation can produce. This overrides the produces
231
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
232
+ * global definition. Value MUST be as described under Mime Types.
233
+ *
234
+ * @generated from protobuf field: repeated string produces = 7
235
+ */
236
+ produces: string[];
237
+ /**
238
+ * The list of possible responses as they are returned from executing this
239
+ * operation.
240
+ *
241
+ * @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9
242
+ */
243
+ responses: {
244
+ [key: string]: Response;
245
+ };
246
+ /**
247
+ * The transfer protocol for the operation. Values MUST be from the list:
248
+ * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
249
+ * schemes definition.
250
+ *
251
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10
252
+ */
253
+ schemes: Scheme[];
254
+ /**
255
+ * Declares this operation to be deprecated. Usage of the declared operation
256
+ * should be refrained. Default value is false.
257
+ *
258
+ * @generated from protobuf field: bool deprecated = 11
259
+ */
260
+ deprecated: boolean;
261
+ /**
262
+ * A declaration of which security schemes are applied for this operation. The
263
+ * list of values describes alternative security schemes that can be used
264
+ * (that is, there is a logical OR between the security requirements). This
265
+ * definition overrides any declared top-level security. To remove a top-level
266
+ * security declaration, an empty array can be used.
267
+ *
268
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12
269
+ */
270
+ security: SecurityRequirement[];
271
+ /**
272
+ * Custom properties that start with "x-" such as "x-foo" used to describe
273
+ * extra functionality that is not covered by the standard OpenAPI Specification.
274
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
275
+ *
276
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 13
277
+ */
278
+ extensions: {
279
+ [key: string]: Value;
280
+ };
281
+ /**
282
+ * Custom parameters such as HTTP request headers.
283
+ * See: https://swagger.io/docs/specification/2-0/describing-parameters/
284
+ * and https://swagger.io/specification/v2/#parameter-object.
285
+ *
286
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14
287
+ */
288
+ parameters?: Parameters;
289
+ }
290
+ /**
291
+ * `Parameters` is a representation of OpenAPI v2 specification's parameters object.
292
+ * Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
293
+ * allow header parameters to be set here since we do not want users specifying custom non-header
294
+ * parameters beyond those inferred from the Protobuf schema.
295
+ * See: https://swagger.io/specification/v2/#parameter-object
296
+ *
297
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Parameters
298
+ */
299
+ export interface Parameters {
300
+ /**
301
+ * `Headers` is one or more HTTP header parameter.
302
+ * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
303
+ *
304
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1
305
+ */
306
+ headers: HeaderParameter[];
307
+ }
308
+ /**
309
+ * `HeaderParameter` a HTTP header parameter.
310
+ * See: https://swagger.io/specification/v2/#parameter-object
311
+ *
312
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
313
+ */
314
+ export interface HeaderParameter {
315
+ /**
316
+ * `Name` is the header name.
317
+ *
318
+ * @generated from protobuf field: string name = 1
319
+ */
320
+ name: string;
321
+ /**
322
+ * `Description` is a short description of the header.
323
+ *
324
+ * @generated from protobuf field: string description = 2
325
+ */
326
+ description: string;
327
+ /**
328
+ * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
329
+ * See: https://swagger.io/specification/v2/#parameterType.
330
+ *
331
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3
332
+ */
333
+ type: HeaderParameter_Type;
334
+ /**
335
+ * `Format` The extending format for the previously mentioned type.
336
+ *
337
+ * @generated from protobuf field: string format = 4
338
+ */
339
+ format: string;
340
+ /**
341
+ * `Required` indicates if the header is optional
342
+ *
343
+ * @generated from protobuf field: bool required = 5
344
+ */
345
+ required: boolean;
346
+ }
347
+ /**
348
+ * `Type` is a a supported HTTP header type.
349
+ * See https://swagger.io/specification/v2/#parameterType.
350
+ *
351
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type
352
+ */
353
+ export enum HeaderParameter_Type {
354
+ /**
355
+ * @generated from protobuf enum value: UNKNOWN = 0;
356
+ */
357
+ UNKNOWN = 0,
358
+ /**
359
+ * @generated from protobuf enum value: STRING = 1;
360
+ */
361
+ STRING = 1,
362
+ /**
363
+ * @generated from protobuf enum value: NUMBER = 2;
364
+ */
365
+ NUMBER = 2,
366
+ /**
367
+ * @generated from protobuf enum value: INTEGER = 3;
368
+ */
369
+ INTEGER = 3,
370
+ /**
371
+ * @generated from protobuf enum value: BOOLEAN = 4;
372
+ */
373
+ BOOLEAN = 4
374
+ }
375
+ /**
376
+ * `Header` is a representation of OpenAPI v2 specification's Header object.
377
+ *
378
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
379
+ *
380
+ *
381
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Header
382
+ */
383
+ export interface Header {
384
+ /**
385
+ * `Description` is a short description of the header.
386
+ *
387
+ * @generated from protobuf field: string description = 1
388
+ */
389
+ description: string;
390
+ /**
391
+ * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
392
+ *
393
+ * @generated from protobuf field: string type = 2
394
+ */
395
+ type: string;
396
+ /**
397
+ * `Format` The extending format for the previously mentioned type.
398
+ *
399
+ * @generated from protobuf field: string format = 3
400
+ */
401
+ format: string;
402
+ /**
403
+ * `Default` Declares the value of the header that the server will use if none is provided.
404
+ * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
405
+ * Unlike JSON Schema this value MUST conform to the defined type for the header.
406
+ *
407
+ * @generated from protobuf field: string default = 6
408
+ */
409
+ default: string;
410
+ /**
411
+ * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
412
+ *
413
+ * @generated from protobuf field: string pattern = 13
414
+ */
415
+ pattern: string;
416
+ }
417
+ /**
418
+ * `Response` is a representation of OpenAPI v2 specification's Response object.
419
+ *
420
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
421
+ *
422
+ *
423
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Response
424
+ */
425
+ export interface Response {
426
+ /**
427
+ * `Description` is a short description of the response.
428
+ * GFM syntax can be used for rich text representation.
429
+ *
430
+ * @generated from protobuf field: string description = 1
431
+ */
432
+ description: string;
433
+ /**
434
+ * `Schema` optionally defines the structure of the response.
435
+ * If `Schema` is not provided, it means there is no content to the response.
436
+ *
437
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2
438
+ */
439
+ schema?: Schema;
440
+ /**
441
+ * `Headers` A list of headers that are sent with the response.
442
+ * `Header` name is expected to be a string in the canonical format of the MIME header key
443
+ * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
444
+ *
445
+ * @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3
446
+ */
447
+ headers: {
448
+ [key: string]: Header;
449
+ };
450
+ /**
451
+ * `Examples` gives per-mimetype response examples.
452
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
453
+ *
454
+ * @generated from protobuf field: map<string, string> examples = 4
455
+ */
456
+ examples: {
457
+ [key: string]: string;
458
+ };
459
+ /**
460
+ * Custom properties that start with "x-" such as "x-foo" used to describe
461
+ * extra functionality that is not covered by the standard OpenAPI Specification.
462
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
463
+ *
464
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 5
465
+ */
466
+ extensions: {
467
+ [key: string]: Value;
468
+ };
469
+ }
470
+ /**
471
+ * `Info` is a representation of OpenAPI v2 specification's Info object.
472
+ *
473
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
474
+ *
475
+ * Example:
476
+ *
477
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
478
+ * info: {
479
+ * title: "Echo API";
480
+ * version: "1.0";
481
+ * description: "";
482
+ * contact: {
483
+ * name: "gRPC-Gateway project";
484
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
485
+ * email: "none@example.com";
486
+ * };
487
+ * license: {
488
+ * name: "BSD 3-Clause License";
489
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
490
+ * };
491
+ * };
492
+ * ...
493
+ * };
494
+ *
495
+ *
496
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Info
497
+ */
498
+ export interface Info {
499
+ /**
500
+ * The title of the application.
501
+ *
502
+ * @generated from protobuf field: string title = 1
503
+ */
504
+ title: string;
505
+ /**
506
+ * A short description of the application. GFM syntax can be used for rich
507
+ * text representation.
508
+ *
509
+ * @generated from protobuf field: string description = 2
510
+ */
511
+ description: string;
512
+ /**
513
+ * The Terms of Service for the API.
514
+ *
515
+ * @generated from protobuf field: string terms_of_service = 3
516
+ */
517
+ termsOfService: string;
518
+ /**
519
+ * The contact information for the exposed API.
520
+ *
521
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4
522
+ */
523
+ contact?: Contact;
524
+ /**
525
+ * The license information for the exposed API.
526
+ *
527
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.License license = 5
528
+ */
529
+ license?: License;
530
+ /**
531
+ * Provides the version of the application API (not to be confused
532
+ * with the specification version).
533
+ *
534
+ * @generated from protobuf field: string version = 6
535
+ */
536
+ version: string;
537
+ /**
538
+ * Custom properties that start with "x-" such as "x-foo" used to describe
539
+ * extra functionality that is not covered by the standard OpenAPI Specification.
540
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
541
+ *
542
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 7
543
+ */
544
+ extensions: {
545
+ [key: string]: Value;
546
+ };
547
+ }
548
+ /**
549
+ * `Contact` is a representation of OpenAPI v2 specification's Contact object.
550
+ *
551
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
552
+ *
553
+ * Example:
554
+ *
555
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
556
+ * info: {
557
+ * ...
558
+ * contact: {
559
+ * name: "gRPC-Gateway project";
560
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
561
+ * email: "none@example.com";
562
+ * };
563
+ * ...
564
+ * };
565
+ * ...
566
+ * };
567
+ *
568
+ *
569
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Contact
570
+ */
571
+ export interface Contact {
572
+ /**
573
+ * The identifying name of the contact person/organization.
574
+ *
575
+ * @generated from protobuf field: string name = 1
576
+ */
577
+ name: string;
578
+ /**
579
+ * The URL pointing to the contact information. MUST be in the format of a
580
+ * URL.
581
+ *
582
+ * @generated from protobuf field: string url = 2
583
+ */
584
+ url: string;
585
+ /**
586
+ * The email address of the contact person/organization. MUST be in the format
587
+ * of an email address.
588
+ *
589
+ * @generated from protobuf field: string email = 3
590
+ */
591
+ email: string;
592
+ }
593
+ /**
594
+ * `License` is a representation of OpenAPI v2 specification's License object.
595
+ *
596
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
597
+ *
598
+ * Example:
599
+ *
600
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
601
+ * info: {
602
+ * ...
603
+ * license: {
604
+ * name: "BSD 3-Clause License";
605
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
606
+ * };
607
+ * ...
608
+ * };
609
+ * ...
610
+ * };
611
+ *
612
+ *
613
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.License
614
+ */
615
+ export interface License {
616
+ /**
617
+ * The license name used for the API.
618
+ *
619
+ * @generated from protobuf field: string name = 1
620
+ */
621
+ name: string;
622
+ /**
623
+ * A URL to the license used for the API. MUST be in the format of a URL.
624
+ *
625
+ * @generated from protobuf field: string url = 2
626
+ */
627
+ url: string;
628
+ }
629
+ /**
630
+ * `ExternalDocumentation` is a representation of OpenAPI v2 specification's
631
+ * ExternalDocumentation object.
632
+ *
633
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
634
+ *
635
+ * Example:
636
+ *
637
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
638
+ * ...
639
+ * external_docs: {
640
+ * description: "More about gRPC-Gateway";
641
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
642
+ * }
643
+ * ...
644
+ * };
645
+ *
646
+ *
647
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation
648
+ */
649
+ export interface ExternalDocumentation {
650
+ /**
651
+ * A short description of the target documentation. GFM syntax can be used for
652
+ * rich text representation.
653
+ *
654
+ * @generated from protobuf field: string description = 1
655
+ */
656
+ description: string;
657
+ /**
658
+ * The URL for the target documentation. Value MUST be in the format
659
+ * of a URL.
660
+ *
661
+ * @generated from protobuf field: string url = 2
662
+ */
663
+ url: string;
664
+ }
665
+ /**
666
+ * `Schema` is a representation of OpenAPI v2 specification's Schema object.
667
+ *
668
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
669
+ *
670
+ *
671
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Schema
672
+ */
673
+ export interface Schema {
674
+ /**
675
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1
676
+ */
677
+ jsonSchema?: JSONSchema;
678
+ /**
679
+ * Adds support for polymorphism. The discriminator is the schema property
680
+ * name that is used to differentiate between other schema that inherit this
681
+ * schema. The property name used MUST be defined at this schema and it MUST
682
+ * be in the required property list. When used, the value MUST be the name of
683
+ * this schema or any schema that inherits it.
684
+ *
685
+ * @generated from protobuf field: string discriminator = 2
686
+ */
687
+ discriminator: string;
688
+ /**
689
+ * Relevant only for Schema "properties" definitions. Declares the property as
690
+ * "read only". This means that it MAY be sent as part of a response but MUST
691
+ * NOT be sent as part of the request. Properties marked as readOnly being
692
+ * true SHOULD NOT be in the required list of the defined schema. Default
693
+ * value is false.
694
+ *
695
+ * @generated from protobuf field: bool read_only = 3
696
+ */
697
+ readOnly: boolean;
698
+ /**
699
+ * Additional external documentation for this schema.
700
+ *
701
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5
702
+ */
703
+ externalDocs?: ExternalDocumentation;
704
+ /**
705
+ * A free-form property to include an example of an instance for this schema in JSON.
706
+ * This is copied verbatim to the output.
707
+ *
708
+ * @generated from protobuf field: string example = 6
709
+ */
710
+ example: string;
711
+ }
712
+ /**
713
+ * `JSONSchema` represents properties from JSON Schema taken, and as used, in
714
+ * the OpenAPI v2 spec.
715
+ *
716
+ * This includes changes made by OpenAPI v2.
717
+ *
718
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
719
+ *
720
+ * See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
721
+ * https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
722
+ *
723
+ * Example:
724
+ *
725
+ * message SimpleMessage {
726
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
727
+ * json_schema: {
728
+ * title: "SimpleMessage"
729
+ * description: "A simple message."
730
+ * required: ["id"]
731
+ * }
732
+ * };
733
+ *
734
+ * // Id represents the message identifier.
735
+ * string id = 1; [
736
+ * (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
737
+ * description: "The unique identifier of the simple message."
738
+ * }];
739
+ * }
740
+ *
741
+ *
742
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema
743
+ */
744
+ export interface JSONSchema {
745
+ /**
746
+ * Ref is used to define an external reference to include in the message.
747
+ * This could be a fully qualified proto message reference, and that type must
748
+ * be imported into the protofile. If no message is identified, the Ref will
749
+ * be used verbatim in the output.
750
+ * For example:
751
+ * `ref: ".google.protobuf.Timestamp"`.
752
+ *
753
+ * @generated from protobuf field: string ref = 3
754
+ */
755
+ ref: string;
756
+ /**
757
+ * The title of the schema.
758
+ *
759
+ * @generated from protobuf field: string title = 5
760
+ */
761
+ title: string;
762
+ /**
763
+ * A short description of the schema.
764
+ *
765
+ * @generated from protobuf field: string description = 6
766
+ */
767
+ description: string;
768
+ /**
769
+ * @generated from protobuf field: string default = 7
770
+ */
771
+ default: string;
772
+ /**
773
+ * @generated from protobuf field: bool read_only = 8
774
+ */
775
+ readOnly: boolean;
776
+ /**
777
+ * A free-form property to include a JSON example of this field. This is copied
778
+ * verbatim to the output swagger.json. Quotes must be escaped.
779
+ * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
780
+ *
781
+ * @generated from protobuf field: string example = 9
782
+ */
783
+ example: string;
784
+ /**
785
+ * @generated from protobuf field: double multiple_of = 10
786
+ */
787
+ multipleOf: number;
788
+ /**
789
+ * Maximum represents an inclusive upper limit for a numeric instance. The
790
+ * value of MUST be a number,
791
+ *
792
+ * @generated from protobuf field: double maximum = 11
793
+ */
794
+ maximum: number;
795
+ /**
796
+ * @generated from protobuf field: bool exclusive_maximum = 12
797
+ */
798
+ exclusiveMaximum: boolean;
799
+ /**
800
+ * minimum represents an inclusive lower limit for a numeric instance. The
801
+ * value of MUST be a number,
802
+ *
803
+ * @generated from protobuf field: double minimum = 13
804
+ */
805
+ minimum: number;
806
+ /**
807
+ * @generated from protobuf field: bool exclusive_minimum = 14
808
+ */
809
+ exclusiveMinimum: boolean;
810
+ /**
811
+ * @generated from protobuf field: uint64 max_length = 15
812
+ */
813
+ maxLength: bigint;
814
+ /**
815
+ * @generated from protobuf field: uint64 min_length = 16
816
+ */
817
+ minLength: bigint;
818
+ /**
819
+ * @generated from protobuf field: string pattern = 17
820
+ */
821
+ pattern: string;
822
+ /**
823
+ * @generated from protobuf field: uint64 max_items = 20
824
+ */
825
+ maxItems: bigint;
826
+ /**
827
+ * @generated from protobuf field: uint64 min_items = 21
828
+ */
829
+ minItems: bigint;
830
+ /**
831
+ * @generated from protobuf field: bool unique_items = 22
832
+ */
833
+ uniqueItems: boolean;
834
+ /**
835
+ * @generated from protobuf field: uint64 max_properties = 24
836
+ */
837
+ maxProperties: bigint;
838
+ /**
839
+ * @generated from protobuf field: uint64 min_properties = 25
840
+ */
841
+ minProperties: bigint;
842
+ /**
843
+ * @generated from protobuf field: repeated string required = 26
844
+ */
845
+ required: string[];
846
+ /**
847
+ * Items in 'array' must be unique.
848
+ *
849
+ * @generated from protobuf field: repeated string array = 34
850
+ */
851
+ array: string[];
852
+ /**
853
+ * @generated from protobuf field: repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35
854
+ */
855
+ type: JSONSchema_JSONSchemaSimpleTypes[];
856
+ /**
857
+ * `Format`
858
+ *
859
+ * @generated from protobuf field: string format = 36
860
+ */
861
+ format: string;
862
+ /**
863
+ * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
864
+ *
865
+ * @generated from protobuf field: repeated string enum = 46
866
+ */
867
+ enum: string[];
868
+ /**
869
+ * Additional field level properties used when generating the OpenAPI v2 file.
870
+ *
871
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001
872
+ */
873
+ fieldConfiguration?: JSONSchema_FieldConfiguration;
874
+ /**
875
+ * Custom properties that start with "x-" such as "x-foo" used to describe
876
+ * extra functionality that is not covered by the standard OpenAPI Specification.
877
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
878
+ *
879
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 48
880
+ */
881
+ extensions: {
882
+ [key: string]: Value;
883
+ };
884
+ }
885
+ /**
886
+ * 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
887
+ * These properties are not defined by OpenAPIv2, but they are used to control the generation.
888
+ *
889
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
890
+ */
891
+ export interface JSONSchema_FieldConfiguration {
892
+ /**
893
+ * Alternative parameter name when used as path parameter. If set, this will
894
+ * be used as the complete parameter name when this field is used as a path
895
+ * parameter. Use this to avoid having auto generated path parameter names
896
+ * for overlapping paths.
897
+ *
898
+ * @generated from protobuf field: string path_param_name = 47
899
+ */
900
+ pathParamName: string;
901
+ }
902
+ /**
903
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
904
+ */
905
+ export enum JSONSchema_JSONSchemaSimpleTypes {
906
+ /**
907
+ * @generated from protobuf enum value: UNKNOWN = 0;
908
+ */
909
+ UNKNOWN = 0,
910
+ /**
911
+ * @generated from protobuf enum value: ARRAY = 1;
912
+ */
913
+ ARRAY = 1,
914
+ /**
915
+ * @generated from protobuf enum value: BOOLEAN = 2;
916
+ */
917
+ BOOLEAN = 2,
918
+ /**
919
+ * @generated from protobuf enum value: INTEGER = 3;
920
+ */
921
+ INTEGER = 3,
922
+ /**
923
+ * @generated from protobuf enum value: NULL = 4;
924
+ */
925
+ NULL = 4,
926
+ /**
927
+ * @generated from protobuf enum value: NUMBER = 5;
928
+ */
929
+ NUMBER = 5,
930
+ /**
931
+ * @generated from protobuf enum value: OBJECT = 6;
932
+ */
933
+ OBJECT = 6,
934
+ /**
935
+ * @generated from protobuf enum value: STRING = 7;
936
+ */
937
+ STRING = 7
938
+ }
939
+ /**
940
+ * `Tag` is a representation of OpenAPI v2 specification's Tag object.
941
+ *
942
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
943
+ *
944
+ *
945
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Tag
946
+ */
947
+ export interface Tag {
948
+ /**
949
+ * The name of the tag. Use it to allow override of the name of a
950
+ * global Tag object, then use that name to reference the tag throughout the
951
+ * OpenAPI file.
952
+ *
953
+ * @generated from protobuf field: string name = 1
954
+ */
955
+ name: string;
956
+ /**
957
+ * A short description for the tag. GFM syntax can be used for rich text
958
+ * representation.
959
+ *
960
+ * @generated from protobuf field: string description = 2
961
+ */
962
+ description: string;
963
+ /**
964
+ * Additional external documentation for this tag.
965
+ *
966
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3
967
+ */
968
+ externalDocs?: ExternalDocumentation;
969
+ /**
970
+ * Custom properties that start with "x-" such as "x-foo" used to describe
971
+ * extra functionality that is not covered by the standard OpenAPI Specification.
972
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
973
+ *
974
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 4
975
+ */
976
+ extensions: {
977
+ [key: string]: Value;
978
+ };
979
+ }
980
+ /**
981
+ * `SecurityDefinitions` is a representation of OpenAPI v2 specification's
982
+ * Security Definitions object.
983
+ *
984
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
985
+ *
986
+ * A declaration of the security schemes available to be used in the
987
+ * specification. This does not enforce the security schemes on the operations
988
+ * and only serves to provide the relevant details for each scheme.
989
+ *
990
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions
991
+ */
992
+ export interface SecurityDefinitions {
993
+ /**
994
+ * A single security scheme definition, mapping a "name" to the scheme it
995
+ * defines.
996
+ *
997
+ * @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1
998
+ */
999
+ security: {
1000
+ [key: string]: SecurityScheme;
1001
+ };
1002
+ }
1003
+ /**
1004
+ * `SecurityScheme` is a representation of OpenAPI v2 specification's
1005
+ * Security Scheme object.
1006
+ *
1007
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
1008
+ *
1009
+ * Allows the definition of a security scheme that can be used by the
1010
+ * operations. Supported schemes are basic authentication, an API key (either as
1011
+ * a header or as a query parameter) and OAuth2's common flows (implicit,
1012
+ * password, application and access code).
1013
+ *
1014
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme
1015
+ */
1016
+ export interface SecurityScheme {
1017
+ /**
1018
+ * The type of the security scheme. Valid values are "basic",
1019
+ * "apiKey" or "oauth2".
1020
+ *
1021
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1
1022
+ */
1023
+ type: SecurityScheme_Type;
1024
+ /**
1025
+ * A short description for security scheme.
1026
+ *
1027
+ * @generated from protobuf field: string description = 2
1028
+ */
1029
+ description: string;
1030
+ /**
1031
+ * The name of the header or query parameter to be used.
1032
+ * Valid for apiKey.
1033
+ *
1034
+ * @generated from protobuf field: string name = 3
1035
+ */
1036
+ name: string;
1037
+ /**
1038
+ * The location of the API key. Valid values are "query" or
1039
+ * "header".
1040
+ * Valid for apiKey.
1041
+ *
1042
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4
1043
+ */
1044
+ in: SecurityScheme_In;
1045
+ /**
1046
+ * The flow used by the OAuth2 security scheme. Valid values are
1047
+ * "implicit", "password", "application" or "accessCode".
1048
+ * Valid for oauth2.
1049
+ *
1050
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5
1051
+ */
1052
+ flow: SecurityScheme_Flow;
1053
+ /**
1054
+ * The authorization URL to be used for this flow. This SHOULD be in
1055
+ * the form of a URL.
1056
+ * Valid for oauth2/implicit and oauth2/accessCode.
1057
+ *
1058
+ * @generated from protobuf field: string authorization_url = 6
1059
+ */
1060
+ authorizationUrl: string;
1061
+ /**
1062
+ * The token URL to be used for this flow. This SHOULD be in the
1063
+ * form of a URL.
1064
+ * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
1065
+ *
1066
+ * @generated from protobuf field: string token_url = 7
1067
+ */
1068
+ tokenUrl: string;
1069
+ /**
1070
+ * The available scopes for the OAuth2 security scheme.
1071
+ * Valid for oauth2.
1072
+ *
1073
+ * @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8
1074
+ */
1075
+ scopes?: Scopes;
1076
+ /**
1077
+ * Custom properties that start with "x-" such as "x-foo" used to describe
1078
+ * extra functionality that is not covered by the standard OpenAPI Specification.
1079
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
1080
+ *
1081
+ * @generated from protobuf field: map<string, google.protobuf.Value> extensions = 9
1082
+ */
1083
+ extensions: {
1084
+ [key: string]: Value;
1085
+ };
1086
+ }
1087
+ /**
1088
+ * The type of the security scheme. Valid values are "basic",
1089
+ * "apiKey" or "oauth2".
1090
+ *
1091
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type
1092
+ */
1093
+ export enum SecurityScheme_Type {
1094
+ /**
1095
+ * @generated from protobuf enum value: TYPE_INVALID = 0;
1096
+ */
1097
+ INVALID = 0,
1098
+ /**
1099
+ * @generated from protobuf enum value: TYPE_BASIC = 1;
1100
+ */
1101
+ BASIC = 1,
1102
+ /**
1103
+ * @generated from protobuf enum value: TYPE_API_KEY = 2;
1104
+ */
1105
+ API_KEY = 2,
1106
+ /**
1107
+ * @generated from protobuf enum value: TYPE_OAUTH2 = 3;
1108
+ */
1109
+ OAUTH2 = 3
1110
+ }
1111
+ /**
1112
+ * The location of the API key. Valid values are "query" or "header".
1113
+ *
1114
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In
1115
+ */
1116
+ export enum SecurityScheme_In {
1117
+ /**
1118
+ * @generated from protobuf enum value: IN_INVALID = 0;
1119
+ */
1120
+ INVALID = 0,
1121
+ /**
1122
+ * @generated from protobuf enum value: IN_QUERY = 1;
1123
+ */
1124
+ QUERY = 1,
1125
+ /**
1126
+ * @generated from protobuf enum value: IN_HEADER = 2;
1127
+ */
1128
+ HEADER = 2
1129
+ }
1130
+ /**
1131
+ * The flow used by the OAuth2 security scheme. Valid values are
1132
+ * "implicit", "password", "application" or "accessCode".
1133
+ *
1134
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow
1135
+ */
1136
+ export enum SecurityScheme_Flow {
1137
+ /**
1138
+ * @generated from protobuf enum value: FLOW_INVALID = 0;
1139
+ */
1140
+ INVALID = 0,
1141
+ /**
1142
+ * @generated from protobuf enum value: FLOW_IMPLICIT = 1;
1143
+ */
1144
+ IMPLICIT = 1,
1145
+ /**
1146
+ * @generated from protobuf enum value: FLOW_PASSWORD = 2;
1147
+ */
1148
+ PASSWORD = 2,
1149
+ /**
1150
+ * @generated from protobuf enum value: FLOW_APPLICATION = 3;
1151
+ */
1152
+ APPLICATION = 3,
1153
+ /**
1154
+ * @generated from protobuf enum value: FLOW_ACCESS_CODE = 4;
1155
+ */
1156
+ ACCESS_CODE = 4
1157
+ }
1158
+ /**
1159
+ * `SecurityRequirement` is a representation of OpenAPI v2 specification's
1160
+ * Security Requirement object.
1161
+ *
1162
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
1163
+ *
1164
+ * Lists the required security schemes to execute this operation. The object can
1165
+ * have multiple security schemes declared in it which are all required (that
1166
+ * is, there is a logical AND between the schemes).
1167
+ *
1168
+ * The name used for each property MUST correspond to a security scheme
1169
+ * declared in the Security Definitions.
1170
+ *
1171
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement
1172
+ */
1173
+ export interface SecurityRequirement {
1174
+ /**
1175
+ * Each name must correspond to a security scheme which is declared in
1176
+ * the Security Definitions. If the security scheme is of type "oauth2",
1177
+ * then the value is a list of scope names required for the execution.
1178
+ * For other security scheme types, the array MUST be empty.
1179
+ *
1180
+ * @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1
1181
+ */
1182
+ securityRequirement: {
1183
+ [key: string]: SecurityRequirement_SecurityRequirementValue;
1184
+ };
1185
+ }
1186
+ /**
1187
+ * If the security scheme is of type "oauth2", then the value is a list of
1188
+ * scope names required for the execution. For other security scheme types,
1189
+ * the array MUST be empty.
1190
+ *
1191
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue
1192
+ */
1193
+ export interface SecurityRequirement_SecurityRequirementValue {
1194
+ /**
1195
+ * @generated from protobuf field: repeated string scope = 1
1196
+ */
1197
+ scope: string[];
1198
+ }
1199
+ /**
1200
+ * `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
1201
+ *
1202
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
1203
+ *
1204
+ * Lists the available scopes for an OAuth2 security scheme.
1205
+ *
1206
+ * @generated from protobuf message grpc.gateway.protoc_gen_openapiv2.options.Scopes
1207
+ */
1208
+ export interface Scopes {
1209
+ /**
1210
+ * Maps between a name of a scope to a short description of it (as the value
1211
+ * of the property).
1212
+ *
1213
+ * @generated from protobuf field: map<string, string> scope = 1
1214
+ */
1215
+ scope: {
1216
+ [key: string]: string;
1217
+ };
1218
+ }
1219
+ /**
1220
+ * Scheme describes the schemes supported by the OpenAPI Swagger
1221
+ * and Operation objects.
1222
+ *
1223
+ * @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.Scheme
1224
+ */
1225
+ export enum Scheme {
1226
+ /**
1227
+ * @generated from protobuf enum value: UNKNOWN = 0;
1228
+ */
1229
+ UNKNOWN = 0,
1230
+ /**
1231
+ * @generated from protobuf enum value: HTTP = 1;
1232
+ */
1233
+ HTTP = 1,
1234
+ /**
1235
+ * @generated from protobuf enum value: HTTPS = 2;
1236
+ */
1237
+ HTTPS = 2,
1238
+ /**
1239
+ * @generated from protobuf enum value: WS = 3;
1240
+ */
1241
+ WS = 3,
1242
+ /**
1243
+ * @generated from protobuf enum value: WSS = 4;
1244
+ */
1245
+ WSS = 4
1246
+ }
1247
+ // @generated message type with reflection information, may provide speed optimized methods
1248
+ class Swagger$Type extends MessageType<Swagger> {
1249
+ constructor() {
1250
+ super("grpc.gateway.protoc_gen_openapiv2.options.Swagger", [
1251
+ { no: 1, name: "swagger", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1252
+ { no: 2, name: "info", kind: "message", T: () => Info },
1253
+ { no: 3, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1254
+ { no: 4, name: "base_path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1255
+ { no: 5, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
1256
+ { no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1257
+ { no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1258
+ { no: 10, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
1259
+ { no: 11, name: "security_definitions", kind: "message", T: () => SecurityDefinitions },
1260
+ { no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
1261
+ { no: 13, name: "tags", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Tag },
1262
+ { no: 14, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
1263
+ { no: 15, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
1264
+ ]);
1265
+ }
1266
+ create(value?: PartialMessage<Swagger>): Swagger {
1267
+ const message = globalThis.Object.create((this.messagePrototype!));
1268
+ message.swagger = "";
1269
+ message.host = "";
1270
+ message.basePath = "";
1271
+ message.schemes = [];
1272
+ message.consumes = [];
1273
+ message.produces = [];
1274
+ message.responses = {};
1275
+ message.security = [];
1276
+ message.tags = [];
1277
+ message.extensions = {};
1278
+ if (value !== undefined)
1279
+ reflectionMergePartial<Swagger>(this, message, value);
1280
+ return message;
1281
+ }
1282
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Swagger): Swagger {
1283
+ let message = target ?? this.create(), end = reader.pos + length;
1284
+ while (reader.pos < end) {
1285
+ let [fieldNo, wireType] = reader.tag();
1286
+ switch (fieldNo) {
1287
+ case /* string swagger */ 1:
1288
+ message.swagger = reader.string();
1289
+ break;
1290
+ case /* grpc.gateway.protoc_gen_openapiv2.options.Info info */ 2:
1291
+ message.info = Info.internalBinaryRead(reader, reader.uint32(), options, message.info);
1292
+ break;
1293
+ case /* string host */ 3:
1294
+ message.host = reader.string();
1295
+ break;
1296
+ case /* string base_path */ 4:
1297
+ message.basePath = reader.string();
1298
+ break;
1299
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes */ 5:
1300
+ if (wireType === WireType.LengthDelimited)
1301
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1302
+ message.schemes.push(reader.int32());
1303
+ else
1304
+ message.schemes.push(reader.int32());
1305
+ break;
1306
+ case /* repeated string consumes */ 6:
1307
+ message.consumes.push(reader.string());
1308
+ break;
1309
+ case /* repeated string produces */ 7:
1310
+ message.produces.push(reader.string());
1311
+ break;
1312
+ case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses */ 10:
1313
+ this.binaryReadMap10(message.responses, reader, options);
1314
+ break;
1315
+ case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions */ 11:
1316
+ message.securityDefinitions = SecurityDefinitions.internalBinaryRead(reader, reader.uint32(), options, message.securityDefinitions);
1317
+ break;
1318
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
1319
+ message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
1320
+ break;
1321
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags */ 13:
1322
+ message.tags.push(Tag.internalBinaryRead(reader, reader.uint32(), options));
1323
+ break;
1324
+ case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 14:
1325
+ message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
1326
+ break;
1327
+ case /* map<string, google.protobuf.Value> extensions */ 15:
1328
+ this.binaryReadMap15(message.extensions, reader, options);
1329
+ break;
1330
+ default:
1331
+ let u = options.readUnknownField;
1332
+ if (u === "throw")
1333
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1334
+ let d = reader.skip(wireType);
1335
+ if (u !== false)
1336
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1337
+ }
1338
+ }
1339
+ return message;
1340
+ }
1341
+ private binaryReadMap10(map: Swagger["responses"], reader: IBinaryReader, options: BinaryReadOptions): void {
1342
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Swagger["responses"] | undefined, val: Swagger["responses"][any] | undefined;
1343
+ while (reader.pos < end) {
1344
+ let [fieldNo, wireType] = reader.tag();
1345
+ switch (fieldNo) {
1346
+ case 1:
1347
+ key = reader.string();
1348
+ break;
1349
+ case 2:
1350
+ val = Response.internalBinaryRead(reader, reader.uint32(), options);
1351
+ break;
1352
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses");
1353
+ }
1354
+ }
1355
+ map[key ?? ""] = val ?? Response.create();
1356
+ }
1357
+ private binaryReadMap15(map: Swagger["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
1358
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Swagger["extensions"] | undefined, val: Swagger["extensions"][any] | undefined;
1359
+ while (reader.pos < end) {
1360
+ let [fieldNo, wireType] = reader.tag();
1361
+ switch (fieldNo) {
1362
+ case 1:
1363
+ key = reader.string();
1364
+ break;
1365
+ case 2:
1366
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
1367
+ break;
1368
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions");
1369
+ }
1370
+ }
1371
+ map[key ?? ""] = val ?? Value.create();
1372
+ }
1373
+ internalBinaryWrite(message: Swagger, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1374
+ /* string swagger = 1; */
1375
+ if (message.swagger !== "")
1376
+ writer.tag(1, WireType.LengthDelimited).string(message.swagger);
1377
+ /* grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */
1378
+ if (message.info)
1379
+ Info.internalBinaryWrite(message.info, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1380
+ /* string host = 3; */
1381
+ if (message.host !== "")
1382
+ writer.tag(3, WireType.LengthDelimited).string(message.host);
1383
+ /* string base_path = 4; */
1384
+ if (message.basePath !== "")
1385
+ writer.tag(4, WireType.LengthDelimited).string(message.basePath);
1386
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; */
1387
+ if (message.schemes.length) {
1388
+ writer.tag(5, WireType.LengthDelimited).fork();
1389
+ for (let i = 0; i < message.schemes.length; i++)
1390
+ writer.int32(message.schemes[i]);
1391
+ writer.join();
1392
+ }
1393
+ /* repeated string consumes = 6; */
1394
+ for (let i = 0; i < message.consumes.length; i++)
1395
+ writer.tag(6, WireType.LengthDelimited).string(message.consumes[i]);
1396
+ /* repeated string produces = 7; */
1397
+ for (let i = 0; i < message.produces.length; i++)
1398
+ writer.tag(7, WireType.LengthDelimited).string(message.produces[i]);
1399
+ /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */
1400
+ for (let k of globalThis.Object.keys(message.responses)) {
1401
+ writer.tag(10, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1402
+ writer.tag(2, WireType.LengthDelimited).fork();
1403
+ Response.internalBinaryWrite(message.responses[k], writer, options);
1404
+ writer.join().join();
1405
+ }
1406
+ /* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */
1407
+ if (message.securityDefinitions)
1408
+ SecurityDefinitions.internalBinaryWrite(message.securityDefinitions, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
1409
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
1410
+ for (let i = 0; i < message.security.length; i++)
1411
+ SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
1412
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */
1413
+ for (let i = 0; i < message.tags.length; i++)
1414
+ Tag.internalBinaryWrite(message.tags[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
1415
+ /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */
1416
+ if (message.externalDocs)
1417
+ ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
1418
+ /* map<string, google.protobuf.Value> extensions = 15; */
1419
+ for (let k of globalThis.Object.keys(message.extensions)) {
1420
+ writer.tag(15, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1421
+ writer.tag(2, WireType.LengthDelimited).fork();
1422
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
1423
+ writer.join().join();
1424
+ }
1425
+ let u = options.writeUnknownFields;
1426
+ if (u !== false)
1427
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1428
+ return writer;
1429
+ }
1430
+ }
1431
+ /**
1432
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Swagger
1433
+ */
1434
+ export const Swagger = new Swagger$Type();
1435
+ // @generated message type with reflection information, may provide speed optimized methods
1436
+ class Operation$Type extends MessageType<Operation> {
1437
+ constructor() {
1438
+ super("grpc.gateway.protoc_gen_openapiv2.options.Operation", [
1439
+ { no: 1, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1440
+ { no: 2, name: "summary", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1441
+ { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1442
+ { no: 4, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
1443
+ { no: 5, name: "operation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1444
+ { no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1445
+ { no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1446
+ { no: 9, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
1447
+ { no: 10, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
1448
+ { no: 11, name: "deprecated", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1449
+ { no: 12, name: "security", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SecurityRequirement },
1450
+ { no: 13, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } },
1451
+ { no: 14, name: "parameters", kind: "message", T: () => Parameters }
1452
+ ]);
1453
+ }
1454
+ create(value?: PartialMessage<Operation>): Operation {
1455
+ const message = globalThis.Object.create((this.messagePrototype!));
1456
+ message.tags = [];
1457
+ message.summary = "";
1458
+ message.description = "";
1459
+ message.operationId = "";
1460
+ message.consumes = [];
1461
+ message.produces = [];
1462
+ message.responses = {};
1463
+ message.schemes = [];
1464
+ message.deprecated = false;
1465
+ message.security = [];
1466
+ message.extensions = {};
1467
+ if (value !== undefined)
1468
+ reflectionMergePartial<Operation>(this, message, value);
1469
+ return message;
1470
+ }
1471
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Operation): Operation {
1472
+ let message = target ?? this.create(), end = reader.pos + length;
1473
+ while (reader.pos < end) {
1474
+ let [fieldNo, wireType] = reader.tag();
1475
+ switch (fieldNo) {
1476
+ case /* repeated string tags */ 1:
1477
+ message.tags.push(reader.string());
1478
+ break;
1479
+ case /* string summary */ 2:
1480
+ message.summary = reader.string();
1481
+ break;
1482
+ case /* string description */ 3:
1483
+ message.description = reader.string();
1484
+ break;
1485
+ case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 4:
1486
+ message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
1487
+ break;
1488
+ case /* string operation_id */ 5:
1489
+ message.operationId = reader.string();
1490
+ break;
1491
+ case /* repeated string consumes */ 6:
1492
+ message.consumes.push(reader.string());
1493
+ break;
1494
+ case /* repeated string produces */ 7:
1495
+ message.produces.push(reader.string());
1496
+ break;
1497
+ case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses */ 9:
1498
+ this.binaryReadMap9(message.responses, reader, options);
1499
+ break;
1500
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes */ 10:
1501
+ if (wireType === WireType.LengthDelimited)
1502
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
1503
+ message.schemes.push(reader.int32());
1504
+ else
1505
+ message.schemes.push(reader.int32());
1506
+ break;
1507
+ case /* bool deprecated */ 11:
1508
+ message.deprecated = reader.bool();
1509
+ break;
1510
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
1511
+ message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
1512
+ break;
1513
+ case /* map<string, google.protobuf.Value> extensions */ 13:
1514
+ this.binaryReadMap13(message.extensions, reader, options);
1515
+ break;
1516
+ case /* grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters */ 14:
1517
+ message.parameters = Parameters.internalBinaryRead(reader, reader.uint32(), options, message.parameters);
1518
+ break;
1519
+ default:
1520
+ let u = options.readUnknownField;
1521
+ if (u === "throw")
1522
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1523
+ let d = reader.skip(wireType);
1524
+ if (u !== false)
1525
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1526
+ }
1527
+ }
1528
+ return message;
1529
+ }
1530
+ private binaryReadMap9(map: Operation["responses"], reader: IBinaryReader, options: BinaryReadOptions): void {
1531
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Operation["responses"] | undefined, val: Operation["responses"][any] | undefined;
1532
+ while (reader.pos < end) {
1533
+ let [fieldNo, wireType] = reader.tag();
1534
+ switch (fieldNo) {
1535
+ case 1:
1536
+ key = reader.string();
1537
+ break;
1538
+ case 2:
1539
+ val = Response.internalBinaryRead(reader, reader.uint32(), options);
1540
+ break;
1541
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Operation.responses");
1542
+ }
1543
+ }
1544
+ map[key ?? ""] = val ?? Response.create();
1545
+ }
1546
+ private binaryReadMap13(map: Operation["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
1547
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Operation["extensions"] | undefined, val: Operation["extensions"][any] | undefined;
1548
+ while (reader.pos < end) {
1549
+ let [fieldNo, wireType] = reader.tag();
1550
+ switch (fieldNo) {
1551
+ case 1:
1552
+ key = reader.string();
1553
+ break;
1554
+ case 2:
1555
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
1556
+ break;
1557
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions");
1558
+ }
1559
+ }
1560
+ map[key ?? ""] = val ?? Value.create();
1561
+ }
1562
+ internalBinaryWrite(message: Operation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1563
+ /* repeated string tags = 1; */
1564
+ for (let i = 0; i < message.tags.length; i++)
1565
+ writer.tag(1, WireType.LengthDelimited).string(message.tags[i]);
1566
+ /* string summary = 2; */
1567
+ if (message.summary !== "")
1568
+ writer.tag(2, WireType.LengthDelimited).string(message.summary);
1569
+ /* string description = 3; */
1570
+ if (message.description !== "")
1571
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
1572
+ /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */
1573
+ if (message.externalDocs)
1574
+ ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1575
+ /* string operation_id = 5; */
1576
+ if (message.operationId !== "")
1577
+ writer.tag(5, WireType.LengthDelimited).string(message.operationId);
1578
+ /* repeated string consumes = 6; */
1579
+ for (let i = 0; i < message.consumes.length; i++)
1580
+ writer.tag(6, WireType.LengthDelimited).string(message.consumes[i]);
1581
+ /* repeated string produces = 7; */
1582
+ for (let i = 0; i < message.produces.length; i++)
1583
+ writer.tag(7, WireType.LengthDelimited).string(message.produces[i]);
1584
+ /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */
1585
+ for (let k of globalThis.Object.keys(message.responses)) {
1586
+ writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1587
+ writer.tag(2, WireType.LengthDelimited).fork();
1588
+ Response.internalBinaryWrite(message.responses[k], writer, options);
1589
+ writer.join().join();
1590
+ }
1591
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; */
1592
+ if (message.schemes.length) {
1593
+ writer.tag(10, WireType.LengthDelimited).fork();
1594
+ for (let i = 0; i < message.schemes.length; i++)
1595
+ writer.int32(message.schemes[i]);
1596
+ writer.join();
1597
+ }
1598
+ /* bool deprecated = 11; */
1599
+ if (message.deprecated !== false)
1600
+ writer.tag(11, WireType.Varint).bool(message.deprecated);
1601
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
1602
+ for (let i = 0; i < message.security.length; i++)
1603
+ SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
1604
+ /* map<string, google.protobuf.Value> extensions = 13; */
1605
+ for (let k of globalThis.Object.keys(message.extensions)) {
1606
+ writer.tag(13, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1607
+ writer.tag(2, WireType.LengthDelimited).fork();
1608
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
1609
+ writer.join().join();
1610
+ }
1611
+ /* grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */
1612
+ if (message.parameters)
1613
+ Parameters.internalBinaryWrite(message.parameters, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
1614
+ let u = options.writeUnknownFields;
1615
+ if (u !== false)
1616
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1617
+ return writer;
1618
+ }
1619
+ }
1620
+ /**
1621
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Operation
1622
+ */
1623
+ export const Operation = new Operation$Type();
1624
+ // @generated message type with reflection information, may provide speed optimized methods
1625
+ class Parameters$Type extends MessageType<Parameters> {
1626
+ constructor() {
1627
+ super("grpc.gateway.protoc_gen_openapiv2.options.Parameters", [
1628
+ { no: 1, name: "headers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HeaderParameter }
1629
+ ]);
1630
+ }
1631
+ create(value?: PartialMessage<Parameters>): Parameters {
1632
+ const message = globalThis.Object.create((this.messagePrototype!));
1633
+ message.headers = [];
1634
+ if (value !== undefined)
1635
+ reflectionMergePartial<Parameters>(this, message, value);
1636
+ return message;
1637
+ }
1638
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Parameters): Parameters {
1639
+ let message = target ?? this.create(), end = reader.pos + length;
1640
+ while (reader.pos < end) {
1641
+ let [fieldNo, wireType] = reader.tag();
1642
+ switch (fieldNo) {
1643
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers */ 1:
1644
+ message.headers.push(HeaderParameter.internalBinaryRead(reader, reader.uint32(), options));
1645
+ break;
1646
+ default:
1647
+ let u = options.readUnknownField;
1648
+ if (u === "throw")
1649
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1650
+ let d = reader.skip(wireType);
1651
+ if (u !== false)
1652
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1653
+ }
1654
+ }
1655
+ return message;
1656
+ }
1657
+ internalBinaryWrite(message: Parameters, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1658
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */
1659
+ for (let i = 0; i < message.headers.length; i++)
1660
+ HeaderParameter.internalBinaryWrite(message.headers[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1661
+ let u = options.writeUnknownFields;
1662
+ if (u !== false)
1663
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1664
+ return writer;
1665
+ }
1666
+ }
1667
+ /**
1668
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Parameters
1669
+ */
1670
+ export const Parameters = new Parameters$Type();
1671
+ // @generated message type with reflection information, may provide speed optimized methods
1672
+ class HeaderParameter$Type extends MessageType<HeaderParameter> {
1673
+ constructor() {
1674
+ super("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter", [
1675
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1676
+ { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1677
+ { no: 3, name: "type", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", HeaderParameter_Type] },
1678
+ { no: 4, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1679
+ { no: 5, name: "required", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1680
+ ]);
1681
+ }
1682
+ create(value?: PartialMessage<HeaderParameter>): HeaderParameter {
1683
+ const message = globalThis.Object.create((this.messagePrototype!));
1684
+ message.name = "";
1685
+ message.description = "";
1686
+ message.type = 0;
1687
+ message.format = "";
1688
+ message.required = false;
1689
+ if (value !== undefined)
1690
+ reflectionMergePartial<HeaderParameter>(this, message, value);
1691
+ return message;
1692
+ }
1693
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HeaderParameter): HeaderParameter {
1694
+ let message = target ?? this.create(), end = reader.pos + length;
1695
+ while (reader.pos < end) {
1696
+ let [fieldNo, wireType] = reader.tag();
1697
+ switch (fieldNo) {
1698
+ case /* string name */ 1:
1699
+ message.name = reader.string();
1700
+ break;
1701
+ case /* string description */ 2:
1702
+ message.description = reader.string();
1703
+ break;
1704
+ case /* grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type */ 3:
1705
+ message.type = reader.int32();
1706
+ break;
1707
+ case /* string format */ 4:
1708
+ message.format = reader.string();
1709
+ break;
1710
+ case /* bool required */ 5:
1711
+ message.required = reader.bool();
1712
+ break;
1713
+ default:
1714
+ let u = options.readUnknownField;
1715
+ if (u === "throw")
1716
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1717
+ let d = reader.skip(wireType);
1718
+ if (u !== false)
1719
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1720
+ }
1721
+ }
1722
+ return message;
1723
+ }
1724
+ internalBinaryWrite(message: HeaderParameter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1725
+ /* string name = 1; */
1726
+ if (message.name !== "")
1727
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
1728
+ /* string description = 2; */
1729
+ if (message.description !== "")
1730
+ writer.tag(2, WireType.LengthDelimited).string(message.description);
1731
+ /* grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; */
1732
+ if (message.type !== 0)
1733
+ writer.tag(3, WireType.Varint).int32(message.type);
1734
+ /* string format = 4; */
1735
+ if (message.format !== "")
1736
+ writer.tag(4, WireType.LengthDelimited).string(message.format);
1737
+ /* bool required = 5; */
1738
+ if (message.required !== false)
1739
+ writer.tag(5, WireType.Varint).bool(message.required);
1740
+ let u = options.writeUnknownFields;
1741
+ if (u !== false)
1742
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1743
+ return writer;
1744
+ }
1745
+ }
1746
+ /**
1747
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
1748
+ */
1749
+ export const HeaderParameter = new HeaderParameter$Type();
1750
+ // @generated message type with reflection information, may provide speed optimized methods
1751
+ class Header$Type extends MessageType<Header> {
1752
+ constructor() {
1753
+ super("grpc.gateway.protoc_gen_openapiv2.options.Header", [
1754
+ { no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1755
+ { no: 2, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1756
+ { no: 3, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1757
+ { no: 6, name: "default", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1758
+ { no: 13, name: "pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1759
+ ]);
1760
+ }
1761
+ create(value?: PartialMessage<Header>): Header {
1762
+ const message = globalThis.Object.create((this.messagePrototype!));
1763
+ message.description = "";
1764
+ message.type = "";
1765
+ message.format = "";
1766
+ message.default = "";
1767
+ message.pattern = "";
1768
+ if (value !== undefined)
1769
+ reflectionMergePartial<Header>(this, message, value);
1770
+ return message;
1771
+ }
1772
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Header): Header {
1773
+ let message = target ?? this.create(), end = reader.pos + length;
1774
+ while (reader.pos < end) {
1775
+ let [fieldNo, wireType] = reader.tag();
1776
+ switch (fieldNo) {
1777
+ case /* string description */ 1:
1778
+ message.description = reader.string();
1779
+ break;
1780
+ case /* string type */ 2:
1781
+ message.type = reader.string();
1782
+ break;
1783
+ case /* string format */ 3:
1784
+ message.format = reader.string();
1785
+ break;
1786
+ case /* string default */ 6:
1787
+ message.default = reader.string();
1788
+ break;
1789
+ case /* string pattern */ 13:
1790
+ message.pattern = reader.string();
1791
+ break;
1792
+ default:
1793
+ let u = options.readUnknownField;
1794
+ if (u === "throw")
1795
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1796
+ let d = reader.skip(wireType);
1797
+ if (u !== false)
1798
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1799
+ }
1800
+ }
1801
+ return message;
1802
+ }
1803
+ internalBinaryWrite(message: Header, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1804
+ /* string description = 1; */
1805
+ if (message.description !== "")
1806
+ writer.tag(1, WireType.LengthDelimited).string(message.description);
1807
+ /* string type = 2; */
1808
+ if (message.type !== "")
1809
+ writer.tag(2, WireType.LengthDelimited).string(message.type);
1810
+ /* string format = 3; */
1811
+ if (message.format !== "")
1812
+ writer.tag(3, WireType.LengthDelimited).string(message.format);
1813
+ /* string default = 6; */
1814
+ if (message.default !== "")
1815
+ writer.tag(6, WireType.LengthDelimited).string(message.default);
1816
+ /* string pattern = 13; */
1817
+ if (message.pattern !== "")
1818
+ writer.tag(13, WireType.LengthDelimited).string(message.pattern);
1819
+ let u = options.writeUnknownFields;
1820
+ if (u !== false)
1821
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1822
+ return writer;
1823
+ }
1824
+ }
1825
+ /**
1826
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Header
1827
+ */
1828
+ export const Header = new Header$Type();
1829
+ // @generated message type with reflection information, may provide speed optimized methods
1830
+ class Response$Type extends MessageType<Response> {
1831
+ constructor() {
1832
+ super("grpc.gateway.protoc_gen_openapiv2.options.Response", [
1833
+ { no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1834
+ { no: 2, name: "schema", kind: "message", T: () => Schema },
1835
+ { no: 3, name: "headers", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Header } },
1836
+ { no: 4, name: "examples", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
1837
+ { no: 5, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
1838
+ ]);
1839
+ }
1840
+ create(value?: PartialMessage<Response>): Response {
1841
+ const message = globalThis.Object.create((this.messagePrototype!));
1842
+ message.description = "";
1843
+ message.headers = {};
1844
+ message.examples = {};
1845
+ message.extensions = {};
1846
+ if (value !== undefined)
1847
+ reflectionMergePartial<Response>(this, message, value);
1848
+ return message;
1849
+ }
1850
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Response): Response {
1851
+ let message = target ?? this.create(), end = reader.pos + length;
1852
+ while (reader.pos < end) {
1853
+ let [fieldNo, wireType] = reader.tag();
1854
+ switch (fieldNo) {
1855
+ case /* string description */ 1:
1856
+ message.description = reader.string();
1857
+ break;
1858
+ case /* grpc.gateway.protoc_gen_openapiv2.options.Schema schema */ 2:
1859
+ message.schema = Schema.internalBinaryRead(reader, reader.uint32(), options, message.schema);
1860
+ break;
1861
+ case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Header> headers */ 3:
1862
+ this.binaryReadMap3(message.headers, reader, options);
1863
+ break;
1864
+ case /* map<string, string> examples */ 4:
1865
+ this.binaryReadMap4(message.examples, reader, options);
1866
+ break;
1867
+ case /* map<string, google.protobuf.Value> extensions */ 5:
1868
+ this.binaryReadMap5(message.extensions, reader, options);
1869
+ break;
1870
+ default:
1871
+ let u = options.readUnknownField;
1872
+ if (u === "throw")
1873
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1874
+ let d = reader.skip(wireType);
1875
+ if (u !== false)
1876
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1877
+ }
1878
+ }
1879
+ return message;
1880
+ }
1881
+ private binaryReadMap3(map: Response["headers"], reader: IBinaryReader, options: BinaryReadOptions): void {
1882
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Response["headers"] | undefined, val: Response["headers"][any] | undefined;
1883
+ while (reader.pos < end) {
1884
+ let [fieldNo, wireType] = reader.tag();
1885
+ switch (fieldNo) {
1886
+ case 1:
1887
+ key = reader.string();
1888
+ break;
1889
+ case 2:
1890
+ val = Header.internalBinaryRead(reader, reader.uint32(), options);
1891
+ break;
1892
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.headers");
1893
+ }
1894
+ }
1895
+ map[key ?? ""] = val ?? Header.create();
1896
+ }
1897
+ private binaryReadMap4(map: Response["examples"], reader: IBinaryReader, options: BinaryReadOptions): void {
1898
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Response["examples"] | undefined, val: Response["examples"][any] | undefined;
1899
+ while (reader.pos < end) {
1900
+ let [fieldNo, wireType] = reader.tag();
1901
+ switch (fieldNo) {
1902
+ case 1:
1903
+ key = reader.string();
1904
+ break;
1905
+ case 2:
1906
+ val = reader.string();
1907
+ break;
1908
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.examples");
1909
+ }
1910
+ }
1911
+ map[key ?? ""] = val ?? "";
1912
+ }
1913
+ private binaryReadMap5(map: Response["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
1914
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Response["extensions"] | undefined, val: Response["extensions"][any] | undefined;
1915
+ while (reader.pos < end) {
1916
+ let [fieldNo, wireType] = reader.tag();
1917
+ switch (fieldNo) {
1918
+ case 1:
1919
+ key = reader.string();
1920
+ break;
1921
+ case 2:
1922
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
1923
+ break;
1924
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Response.extensions");
1925
+ }
1926
+ }
1927
+ map[key ?? ""] = val ?? Value.create();
1928
+ }
1929
+ internalBinaryWrite(message: Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1930
+ /* string description = 1; */
1931
+ if (message.description !== "")
1932
+ writer.tag(1, WireType.LengthDelimited).string(message.description);
1933
+ /* grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */
1934
+ if (message.schema)
1935
+ Schema.internalBinaryWrite(message.schema, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1936
+ /* map<string, grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */
1937
+ for (let k of globalThis.Object.keys(message.headers)) {
1938
+ writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1939
+ writer.tag(2, WireType.LengthDelimited).fork();
1940
+ Header.internalBinaryWrite(message.headers[k], writer, options);
1941
+ writer.join().join();
1942
+ }
1943
+ /* map<string, string> examples = 4; */
1944
+ for (let k of globalThis.Object.keys(message.examples))
1945
+ writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.examples[k]).join();
1946
+ /* map<string, google.protobuf.Value> extensions = 5; */
1947
+ for (let k of globalThis.Object.keys(message.extensions)) {
1948
+ writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
1949
+ writer.tag(2, WireType.LengthDelimited).fork();
1950
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
1951
+ writer.join().join();
1952
+ }
1953
+ let u = options.writeUnknownFields;
1954
+ if (u !== false)
1955
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1956
+ return writer;
1957
+ }
1958
+ }
1959
+ /**
1960
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Response
1961
+ */
1962
+ export const Response = new Response$Type();
1963
+ // @generated message type with reflection information, may provide speed optimized methods
1964
+ class Info$Type extends MessageType<Info> {
1965
+ constructor() {
1966
+ super("grpc.gateway.protoc_gen_openapiv2.options.Info", [
1967
+ { no: 1, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1968
+ { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1969
+ { no: 3, name: "terms_of_service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1970
+ { no: 4, name: "contact", kind: "message", T: () => Contact },
1971
+ { no: 5, name: "license", kind: "message", T: () => License },
1972
+ { no: 6, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1973
+ { no: 7, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
1974
+ ]);
1975
+ }
1976
+ create(value?: PartialMessage<Info>): Info {
1977
+ const message = globalThis.Object.create((this.messagePrototype!));
1978
+ message.title = "";
1979
+ message.description = "";
1980
+ message.termsOfService = "";
1981
+ message.version = "";
1982
+ message.extensions = {};
1983
+ if (value !== undefined)
1984
+ reflectionMergePartial<Info>(this, message, value);
1985
+ return message;
1986
+ }
1987
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Info): Info {
1988
+ let message = target ?? this.create(), end = reader.pos + length;
1989
+ while (reader.pos < end) {
1990
+ let [fieldNo, wireType] = reader.tag();
1991
+ switch (fieldNo) {
1992
+ case /* string title */ 1:
1993
+ message.title = reader.string();
1994
+ break;
1995
+ case /* string description */ 2:
1996
+ message.description = reader.string();
1997
+ break;
1998
+ case /* string terms_of_service */ 3:
1999
+ message.termsOfService = reader.string();
2000
+ break;
2001
+ case /* grpc.gateway.protoc_gen_openapiv2.options.Contact contact */ 4:
2002
+ message.contact = Contact.internalBinaryRead(reader, reader.uint32(), options, message.contact);
2003
+ break;
2004
+ case /* grpc.gateway.protoc_gen_openapiv2.options.License license */ 5:
2005
+ message.license = License.internalBinaryRead(reader, reader.uint32(), options, message.license);
2006
+ break;
2007
+ case /* string version */ 6:
2008
+ message.version = reader.string();
2009
+ break;
2010
+ case /* map<string, google.protobuf.Value> extensions */ 7:
2011
+ this.binaryReadMap7(message.extensions, reader, options);
2012
+ break;
2013
+ default:
2014
+ let u = options.readUnknownField;
2015
+ if (u === "throw")
2016
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2017
+ let d = reader.skip(wireType);
2018
+ if (u !== false)
2019
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2020
+ }
2021
+ }
2022
+ return message;
2023
+ }
2024
+ private binaryReadMap7(map: Info["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
2025
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Info["extensions"] | undefined, val: Info["extensions"][any] | undefined;
2026
+ while (reader.pos < end) {
2027
+ let [fieldNo, wireType] = reader.tag();
2028
+ switch (fieldNo) {
2029
+ case 1:
2030
+ key = reader.string();
2031
+ break;
2032
+ case 2:
2033
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
2034
+ break;
2035
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Info.extensions");
2036
+ }
2037
+ }
2038
+ map[key ?? ""] = val ?? Value.create();
2039
+ }
2040
+ internalBinaryWrite(message: Info, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2041
+ /* string title = 1; */
2042
+ if (message.title !== "")
2043
+ writer.tag(1, WireType.LengthDelimited).string(message.title);
2044
+ /* string description = 2; */
2045
+ if (message.description !== "")
2046
+ writer.tag(2, WireType.LengthDelimited).string(message.description);
2047
+ /* string terms_of_service = 3; */
2048
+ if (message.termsOfService !== "")
2049
+ writer.tag(3, WireType.LengthDelimited).string(message.termsOfService);
2050
+ /* grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */
2051
+ if (message.contact)
2052
+ Contact.internalBinaryWrite(message.contact, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2053
+ /* grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */
2054
+ if (message.license)
2055
+ License.internalBinaryWrite(message.license, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2056
+ /* string version = 6; */
2057
+ if (message.version !== "")
2058
+ writer.tag(6, WireType.LengthDelimited).string(message.version);
2059
+ /* map<string, google.protobuf.Value> extensions = 7; */
2060
+ for (let k of globalThis.Object.keys(message.extensions)) {
2061
+ writer.tag(7, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2062
+ writer.tag(2, WireType.LengthDelimited).fork();
2063
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
2064
+ writer.join().join();
2065
+ }
2066
+ let u = options.writeUnknownFields;
2067
+ if (u !== false)
2068
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2069
+ return writer;
2070
+ }
2071
+ }
2072
+ /**
2073
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Info
2074
+ */
2075
+ export const Info = new Info$Type();
2076
+ // @generated message type with reflection information, may provide speed optimized methods
2077
+ class Contact$Type extends MessageType<Contact> {
2078
+ constructor() {
2079
+ super("grpc.gateway.protoc_gen_openapiv2.options.Contact", [
2080
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2081
+ { no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2082
+ { no: 3, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2083
+ ]);
2084
+ }
2085
+ create(value?: PartialMessage<Contact>): Contact {
2086
+ const message = globalThis.Object.create((this.messagePrototype!));
2087
+ message.name = "";
2088
+ message.url = "";
2089
+ message.email = "";
2090
+ if (value !== undefined)
2091
+ reflectionMergePartial<Contact>(this, message, value);
2092
+ return message;
2093
+ }
2094
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Contact): Contact {
2095
+ let message = target ?? this.create(), end = reader.pos + length;
2096
+ while (reader.pos < end) {
2097
+ let [fieldNo, wireType] = reader.tag();
2098
+ switch (fieldNo) {
2099
+ case /* string name */ 1:
2100
+ message.name = reader.string();
2101
+ break;
2102
+ case /* string url */ 2:
2103
+ message.url = reader.string();
2104
+ break;
2105
+ case /* string email */ 3:
2106
+ message.email = reader.string();
2107
+ break;
2108
+ default:
2109
+ let u = options.readUnknownField;
2110
+ if (u === "throw")
2111
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2112
+ let d = reader.skip(wireType);
2113
+ if (u !== false)
2114
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2115
+ }
2116
+ }
2117
+ return message;
2118
+ }
2119
+ internalBinaryWrite(message: Contact, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2120
+ /* string name = 1; */
2121
+ if (message.name !== "")
2122
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2123
+ /* string url = 2; */
2124
+ if (message.url !== "")
2125
+ writer.tag(2, WireType.LengthDelimited).string(message.url);
2126
+ /* string email = 3; */
2127
+ if (message.email !== "")
2128
+ writer.tag(3, WireType.LengthDelimited).string(message.email);
2129
+ let u = options.writeUnknownFields;
2130
+ if (u !== false)
2131
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2132
+ return writer;
2133
+ }
2134
+ }
2135
+ /**
2136
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Contact
2137
+ */
2138
+ export const Contact = new Contact$Type();
2139
+ // @generated message type with reflection information, may provide speed optimized methods
2140
+ class License$Type extends MessageType<License> {
2141
+ constructor() {
2142
+ super("grpc.gateway.protoc_gen_openapiv2.options.License", [
2143
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2144
+ { no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2145
+ ]);
2146
+ }
2147
+ create(value?: PartialMessage<License>): License {
2148
+ const message = globalThis.Object.create((this.messagePrototype!));
2149
+ message.name = "";
2150
+ message.url = "";
2151
+ if (value !== undefined)
2152
+ reflectionMergePartial<License>(this, message, value);
2153
+ return message;
2154
+ }
2155
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: License): License {
2156
+ let message = target ?? this.create(), end = reader.pos + length;
2157
+ while (reader.pos < end) {
2158
+ let [fieldNo, wireType] = reader.tag();
2159
+ switch (fieldNo) {
2160
+ case /* string name */ 1:
2161
+ message.name = reader.string();
2162
+ break;
2163
+ case /* string url */ 2:
2164
+ message.url = reader.string();
2165
+ break;
2166
+ default:
2167
+ let u = options.readUnknownField;
2168
+ if (u === "throw")
2169
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2170
+ let d = reader.skip(wireType);
2171
+ if (u !== false)
2172
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2173
+ }
2174
+ }
2175
+ return message;
2176
+ }
2177
+ internalBinaryWrite(message: License, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2178
+ /* string name = 1; */
2179
+ if (message.name !== "")
2180
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2181
+ /* string url = 2; */
2182
+ if (message.url !== "")
2183
+ writer.tag(2, WireType.LengthDelimited).string(message.url);
2184
+ let u = options.writeUnknownFields;
2185
+ if (u !== false)
2186
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2187
+ return writer;
2188
+ }
2189
+ }
2190
+ /**
2191
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.License
2192
+ */
2193
+ export const License = new License$Type();
2194
+ // @generated message type with reflection information, may provide speed optimized methods
2195
+ class ExternalDocumentation$Type extends MessageType<ExternalDocumentation> {
2196
+ constructor() {
2197
+ super("grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", [
2198
+ { no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2199
+ { no: 2, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2200
+ ]);
2201
+ }
2202
+ create(value?: PartialMessage<ExternalDocumentation>): ExternalDocumentation {
2203
+ const message = globalThis.Object.create((this.messagePrototype!));
2204
+ message.description = "";
2205
+ message.url = "";
2206
+ if (value !== undefined)
2207
+ reflectionMergePartial<ExternalDocumentation>(this, message, value);
2208
+ return message;
2209
+ }
2210
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExternalDocumentation): ExternalDocumentation {
2211
+ let message = target ?? this.create(), end = reader.pos + length;
2212
+ while (reader.pos < end) {
2213
+ let [fieldNo, wireType] = reader.tag();
2214
+ switch (fieldNo) {
2215
+ case /* string description */ 1:
2216
+ message.description = reader.string();
2217
+ break;
2218
+ case /* string url */ 2:
2219
+ message.url = reader.string();
2220
+ break;
2221
+ default:
2222
+ let u = options.readUnknownField;
2223
+ if (u === "throw")
2224
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2225
+ let d = reader.skip(wireType);
2226
+ if (u !== false)
2227
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2228
+ }
2229
+ }
2230
+ return message;
2231
+ }
2232
+ internalBinaryWrite(message: ExternalDocumentation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2233
+ /* string description = 1; */
2234
+ if (message.description !== "")
2235
+ writer.tag(1, WireType.LengthDelimited).string(message.description);
2236
+ /* string url = 2; */
2237
+ if (message.url !== "")
2238
+ writer.tag(2, WireType.LengthDelimited).string(message.url);
2239
+ let u = options.writeUnknownFields;
2240
+ if (u !== false)
2241
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2242
+ return writer;
2243
+ }
2244
+ }
2245
+ /**
2246
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation
2247
+ */
2248
+ export const ExternalDocumentation = new ExternalDocumentation$Type();
2249
+ // @generated message type with reflection information, may provide speed optimized methods
2250
+ class Schema$Type extends MessageType<Schema> {
2251
+ constructor() {
2252
+ super("grpc.gateway.protoc_gen_openapiv2.options.Schema", [
2253
+ { no: 1, name: "json_schema", kind: "message", T: () => JSONSchema },
2254
+ { no: 2, name: "discriminator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2255
+ { no: 3, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2256
+ { no: 5, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
2257
+ { no: 6, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2258
+ ]);
2259
+ }
2260
+ create(value?: PartialMessage<Schema>): Schema {
2261
+ const message = globalThis.Object.create((this.messagePrototype!));
2262
+ message.discriminator = "";
2263
+ message.readOnly = false;
2264
+ message.example = "";
2265
+ if (value !== undefined)
2266
+ reflectionMergePartial<Schema>(this, message, value);
2267
+ return message;
2268
+ }
2269
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Schema): Schema {
2270
+ let message = target ?? this.create(), end = reader.pos + length;
2271
+ while (reader.pos < end) {
2272
+ let [fieldNo, wireType] = reader.tag();
2273
+ switch (fieldNo) {
2274
+ case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema */ 1:
2275
+ message.jsonSchema = JSONSchema.internalBinaryRead(reader, reader.uint32(), options, message.jsonSchema);
2276
+ break;
2277
+ case /* string discriminator */ 2:
2278
+ message.discriminator = reader.string();
2279
+ break;
2280
+ case /* bool read_only */ 3:
2281
+ message.readOnly = reader.bool();
2282
+ break;
2283
+ case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 5:
2284
+ message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
2285
+ break;
2286
+ case /* string example */ 6:
2287
+ message.example = reader.string();
2288
+ break;
2289
+ default:
2290
+ let u = options.readUnknownField;
2291
+ if (u === "throw")
2292
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2293
+ let d = reader.skip(wireType);
2294
+ if (u !== false)
2295
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2296
+ }
2297
+ }
2298
+ return message;
2299
+ }
2300
+ internalBinaryWrite(message: Schema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2301
+ /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */
2302
+ if (message.jsonSchema)
2303
+ JSONSchema.internalBinaryWrite(message.jsonSchema, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2304
+ /* string discriminator = 2; */
2305
+ if (message.discriminator !== "")
2306
+ writer.tag(2, WireType.LengthDelimited).string(message.discriminator);
2307
+ /* bool read_only = 3; */
2308
+ if (message.readOnly !== false)
2309
+ writer.tag(3, WireType.Varint).bool(message.readOnly);
2310
+ /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */
2311
+ if (message.externalDocs)
2312
+ ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2313
+ /* string example = 6; */
2314
+ if (message.example !== "")
2315
+ writer.tag(6, WireType.LengthDelimited).string(message.example);
2316
+ let u = options.writeUnknownFields;
2317
+ if (u !== false)
2318
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2319
+ return writer;
2320
+ }
2321
+ }
2322
+ /**
2323
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Schema
2324
+ */
2325
+ export const Schema = new Schema$Type();
2326
+ // @generated message type with reflection information, may provide speed optimized methods
2327
+ class JSONSchema$Type extends MessageType<JSONSchema> {
2328
+ constructor() {
2329
+ super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema", [
2330
+ { no: 3, name: "ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2331
+ { no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2332
+ { no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2333
+ { no: 7, name: "default", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2334
+ { no: 8, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2335
+ { no: 9, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2336
+ { no: 10, name: "multiple_of", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
2337
+ { no: 11, name: "maximum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
2338
+ { no: 12, name: "exclusive_maximum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2339
+ { no: 13, name: "minimum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
2340
+ { no: 14, name: "exclusive_minimum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2341
+ { no: 15, name: "max_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2342
+ { no: 16, name: "min_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2343
+ { no: 17, name: "pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2344
+ { no: 20, name: "max_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2345
+ { no: 21, name: "min_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2346
+ { no: 22, name: "unique_items", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2347
+ { no: 24, name: "max_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2348
+ { no: 25, name: "min_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
2349
+ { no: 26, name: "required", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2350
+ { no: 34, name: "array", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2351
+ { no: 35, name: "type", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", JSONSchema_JSONSchemaSimpleTypes] },
2352
+ { no: 36, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2353
+ { no: 46, name: "enum", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2354
+ { no: 1001, name: "field_configuration", kind: "message", T: () => JSONSchema_FieldConfiguration },
2355
+ { no: 48, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
2356
+ ]);
2357
+ }
2358
+ create(value?: PartialMessage<JSONSchema>): JSONSchema {
2359
+ const message = globalThis.Object.create((this.messagePrototype!));
2360
+ message.ref = "";
2361
+ message.title = "";
2362
+ message.description = "";
2363
+ message.default = "";
2364
+ message.readOnly = false;
2365
+ message.example = "";
2366
+ message.multipleOf = 0;
2367
+ message.maximum = 0;
2368
+ message.exclusiveMaximum = false;
2369
+ message.minimum = 0;
2370
+ message.exclusiveMinimum = false;
2371
+ message.maxLength = 0n;
2372
+ message.minLength = 0n;
2373
+ message.pattern = "";
2374
+ message.maxItems = 0n;
2375
+ message.minItems = 0n;
2376
+ message.uniqueItems = false;
2377
+ message.maxProperties = 0n;
2378
+ message.minProperties = 0n;
2379
+ message.required = [];
2380
+ message.array = [];
2381
+ message.type = [];
2382
+ message.format = "";
2383
+ message.enum = [];
2384
+ message.extensions = {};
2385
+ if (value !== undefined)
2386
+ reflectionMergePartial<JSONSchema>(this, message, value);
2387
+ return message;
2388
+ }
2389
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JSONSchema): JSONSchema {
2390
+ let message = target ?? this.create(), end = reader.pos + length;
2391
+ while (reader.pos < end) {
2392
+ let [fieldNo, wireType] = reader.tag();
2393
+ switch (fieldNo) {
2394
+ case /* string ref */ 3:
2395
+ message.ref = reader.string();
2396
+ break;
2397
+ case /* string title */ 5:
2398
+ message.title = reader.string();
2399
+ break;
2400
+ case /* string description */ 6:
2401
+ message.description = reader.string();
2402
+ break;
2403
+ case /* string default */ 7:
2404
+ message.default = reader.string();
2405
+ break;
2406
+ case /* bool read_only */ 8:
2407
+ message.readOnly = reader.bool();
2408
+ break;
2409
+ case /* string example */ 9:
2410
+ message.example = reader.string();
2411
+ break;
2412
+ case /* double multiple_of */ 10:
2413
+ message.multipleOf = reader.double();
2414
+ break;
2415
+ case /* double maximum */ 11:
2416
+ message.maximum = reader.double();
2417
+ break;
2418
+ case /* bool exclusive_maximum */ 12:
2419
+ message.exclusiveMaximum = reader.bool();
2420
+ break;
2421
+ case /* double minimum */ 13:
2422
+ message.minimum = reader.double();
2423
+ break;
2424
+ case /* bool exclusive_minimum */ 14:
2425
+ message.exclusiveMinimum = reader.bool();
2426
+ break;
2427
+ case /* uint64 max_length */ 15:
2428
+ message.maxLength = reader.uint64().toBigInt();
2429
+ break;
2430
+ case /* uint64 min_length */ 16:
2431
+ message.minLength = reader.uint64().toBigInt();
2432
+ break;
2433
+ case /* string pattern */ 17:
2434
+ message.pattern = reader.string();
2435
+ break;
2436
+ case /* uint64 max_items */ 20:
2437
+ message.maxItems = reader.uint64().toBigInt();
2438
+ break;
2439
+ case /* uint64 min_items */ 21:
2440
+ message.minItems = reader.uint64().toBigInt();
2441
+ break;
2442
+ case /* bool unique_items */ 22:
2443
+ message.uniqueItems = reader.bool();
2444
+ break;
2445
+ case /* uint64 max_properties */ 24:
2446
+ message.maxProperties = reader.uint64().toBigInt();
2447
+ break;
2448
+ case /* uint64 min_properties */ 25:
2449
+ message.minProperties = reader.uint64().toBigInt();
2450
+ break;
2451
+ case /* repeated string required */ 26:
2452
+ message.required.push(reader.string());
2453
+ break;
2454
+ case /* repeated string array */ 34:
2455
+ message.array.push(reader.string());
2456
+ break;
2457
+ case /* repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type */ 35:
2458
+ if (wireType === WireType.LengthDelimited)
2459
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
2460
+ message.type.push(reader.int32());
2461
+ else
2462
+ message.type.push(reader.int32());
2463
+ break;
2464
+ case /* string format */ 36:
2465
+ message.format = reader.string();
2466
+ break;
2467
+ case /* repeated string enum */ 46:
2468
+ message.enum.push(reader.string());
2469
+ break;
2470
+ case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration */ 1001:
2471
+ message.fieldConfiguration = JSONSchema_FieldConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.fieldConfiguration);
2472
+ break;
2473
+ case /* map<string, google.protobuf.Value> extensions */ 48:
2474
+ this.binaryReadMap48(message.extensions, reader, options);
2475
+ break;
2476
+ default:
2477
+ let u = options.readUnknownField;
2478
+ if (u === "throw")
2479
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2480
+ let d = reader.skip(wireType);
2481
+ if (u !== false)
2482
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2483
+ }
2484
+ }
2485
+ return message;
2486
+ }
2487
+ private binaryReadMap48(map: JSONSchema["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
2488
+ let len = reader.uint32(), end = reader.pos + len, key: keyof JSONSchema["extensions"] | undefined, val: JSONSchema["extensions"][any] | undefined;
2489
+ while (reader.pos < end) {
2490
+ let [fieldNo, wireType] = reader.tag();
2491
+ switch (fieldNo) {
2492
+ case 1:
2493
+ key = reader.string();
2494
+ break;
2495
+ case 2:
2496
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
2497
+ break;
2498
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions");
2499
+ }
2500
+ }
2501
+ map[key ?? ""] = val ?? Value.create();
2502
+ }
2503
+ internalBinaryWrite(message: JSONSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2504
+ /* string ref = 3; */
2505
+ if (message.ref !== "")
2506
+ writer.tag(3, WireType.LengthDelimited).string(message.ref);
2507
+ /* string title = 5; */
2508
+ if (message.title !== "")
2509
+ writer.tag(5, WireType.LengthDelimited).string(message.title);
2510
+ /* string description = 6; */
2511
+ if (message.description !== "")
2512
+ writer.tag(6, WireType.LengthDelimited).string(message.description);
2513
+ /* string default = 7; */
2514
+ if (message.default !== "")
2515
+ writer.tag(7, WireType.LengthDelimited).string(message.default);
2516
+ /* bool read_only = 8; */
2517
+ if (message.readOnly !== false)
2518
+ writer.tag(8, WireType.Varint).bool(message.readOnly);
2519
+ /* string example = 9; */
2520
+ if (message.example !== "")
2521
+ writer.tag(9, WireType.LengthDelimited).string(message.example);
2522
+ /* double multiple_of = 10; */
2523
+ if (message.multipleOf !== 0)
2524
+ writer.tag(10, WireType.Bit64).double(message.multipleOf);
2525
+ /* double maximum = 11; */
2526
+ if (message.maximum !== 0)
2527
+ writer.tag(11, WireType.Bit64).double(message.maximum);
2528
+ /* bool exclusive_maximum = 12; */
2529
+ if (message.exclusiveMaximum !== false)
2530
+ writer.tag(12, WireType.Varint).bool(message.exclusiveMaximum);
2531
+ /* double minimum = 13; */
2532
+ if (message.minimum !== 0)
2533
+ writer.tag(13, WireType.Bit64).double(message.minimum);
2534
+ /* bool exclusive_minimum = 14; */
2535
+ if (message.exclusiveMinimum !== false)
2536
+ writer.tag(14, WireType.Varint).bool(message.exclusiveMinimum);
2537
+ /* uint64 max_length = 15; */
2538
+ if (message.maxLength !== 0n)
2539
+ writer.tag(15, WireType.Varint).uint64(message.maxLength);
2540
+ /* uint64 min_length = 16; */
2541
+ if (message.minLength !== 0n)
2542
+ writer.tag(16, WireType.Varint).uint64(message.minLength);
2543
+ /* string pattern = 17; */
2544
+ if (message.pattern !== "")
2545
+ writer.tag(17, WireType.LengthDelimited).string(message.pattern);
2546
+ /* uint64 max_items = 20; */
2547
+ if (message.maxItems !== 0n)
2548
+ writer.tag(20, WireType.Varint).uint64(message.maxItems);
2549
+ /* uint64 min_items = 21; */
2550
+ if (message.minItems !== 0n)
2551
+ writer.tag(21, WireType.Varint).uint64(message.minItems);
2552
+ /* bool unique_items = 22; */
2553
+ if (message.uniqueItems !== false)
2554
+ writer.tag(22, WireType.Varint).bool(message.uniqueItems);
2555
+ /* uint64 max_properties = 24; */
2556
+ if (message.maxProperties !== 0n)
2557
+ writer.tag(24, WireType.Varint).uint64(message.maxProperties);
2558
+ /* uint64 min_properties = 25; */
2559
+ if (message.minProperties !== 0n)
2560
+ writer.tag(25, WireType.Varint).uint64(message.minProperties);
2561
+ /* repeated string required = 26; */
2562
+ for (let i = 0; i < message.required.length; i++)
2563
+ writer.tag(26, WireType.LengthDelimited).string(message.required[i]);
2564
+ /* repeated string array = 34; */
2565
+ for (let i = 0; i < message.array.length; i++)
2566
+ writer.tag(34, WireType.LengthDelimited).string(message.array[i]);
2567
+ /* repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */
2568
+ if (message.type.length) {
2569
+ writer.tag(35, WireType.LengthDelimited).fork();
2570
+ for (let i = 0; i < message.type.length; i++)
2571
+ writer.int32(message.type[i]);
2572
+ writer.join();
2573
+ }
2574
+ /* string format = 36; */
2575
+ if (message.format !== "")
2576
+ writer.tag(36, WireType.LengthDelimited).string(message.format);
2577
+ /* repeated string enum = 46; */
2578
+ for (let i = 0; i < message.enum.length; i++)
2579
+ writer.tag(46, WireType.LengthDelimited).string(message.enum[i]);
2580
+ /* map<string, google.protobuf.Value> extensions = 48; */
2581
+ for (let k of globalThis.Object.keys(message.extensions)) {
2582
+ writer.tag(48, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2583
+ writer.tag(2, WireType.LengthDelimited).fork();
2584
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
2585
+ writer.join().join();
2586
+ }
2587
+ /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */
2588
+ if (message.fieldConfiguration)
2589
+ JSONSchema_FieldConfiguration.internalBinaryWrite(message.fieldConfiguration, writer.tag(1001, WireType.LengthDelimited).fork(), options).join();
2590
+ let u = options.writeUnknownFields;
2591
+ if (u !== false)
2592
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2593
+ return writer;
2594
+ }
2595
+ }
2596
+ /**
2597
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema
2598
+ */
2599
+ export const JSONSchema = new JSONSchema$Type();
2600
+ // @generated message type with reflection information, may provide speed optimized methods
2601
+ class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldConfiguration> {
2602
+ constructor() {
2603
+ super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", [
2604
+ { no: 47, name: "path_param_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2605
+ ]);
2606
+ }
2607
+ create(value?: PartialMessage<JSONSchema_FieldConfiguration>): JSONSchema_FieldConfiguration {
2608
+ const message = globalThis.Object.create((this.messagePrototype!));
2609
+ message.pathParamName = "";
2610
+ if (value !== undefined)
2611
+ reflectionMergePartial<JSONSchema_FieldConfiguration>(this, message, value);
2612
+ return message;
2613
+ }
2614
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JSONSchema_FieldConfiguration): JSONSchema_FieldConfiguration {
2615
+ let message = target ?? this.create(), end = reader.pos + length;
2616
+ while (reader.pos < end) {
2617
+ let [fieldNo, wireType] = reader.tag();
2618
+ switch (fieldNo) {
2619
+ case /* string path_param_name */ 47:
2620
+ message.pathParamName = reader.string();
2621
+ break;
2622
+ default:
2623
+ let u = options.readUnknownField;
2624
+ if (u === "throw")
2625
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2626
+ let d = reader.skip(wireType);
2627
+ if (u !== false)
2628
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2629
+ }
2630
+ }
2631
+ return message;
2632
+ }
2633
+ internalBinaryWrite(message: JSONSchema_FieldConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2634
+ /* string path_param_name = 47; */
2635
+ if (message.pathParamName !== "")
2636
+ writer.tag(47, WireType.LengthDelimited).string(message.pathParamName);
2637
+ let u = options.writeUnknownFields;
2638
+ if (u !== false)
2639
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2640
+ return writer;
2641
+ }
2642
+ }
2643
+ /**
2644
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
2645
+ */
2646
+ export const JSONSchema_FieldConfiguration = new JSONSchema_FieldConfiguration$Type();
2647
+ // @generated message type with reflection information, may provide speed optimized methods
2648
+ class Tag$Type extends MessageType<Tag> {
2649
+ constructor() {
2650
+ super("grpc.gateway.protoc_gen_openapiv2.options.Tag", [
2651
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2652
+ { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2653
+ { no: 3, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
2654
+ { no: 4, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
2655
+ ]);
2656
+ }
2657
+ create(value?: PartialMessage<Tag>): Tag {
2658
+ const message = globalThis.Object.create((this.messagePrototype!));
2659
+ message.name = "";
2660
+ message.description = "";
2661
+ message.extensions = {};
2662
+ if (value !== undefined)
2663
+ reflectionMergePartial<Tag>(this, message, value);
2664
+ return message;
2665
+ }
2666
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tag): Tag {
2667
+ let message = target ?? this.create(), end = reader.pos + length;
2668
+ while (reader.pos < end) {
2669
+ let [fieldNo, wireType] = reader.tag();
2670
+ switch (fieldNo) {
2671
+ case /* string name */ 1:
2672
+ message.name = reader.string();
2673
+ break;
2674
+ case /* string description */ 2:
2675
+ message.description = reader.string();
2676
+ break;
2677
+ case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 3:
2678
+ message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
2679
+ break;
2680
+ case /* map<string, google.protobuf.Value> extensions */ 4:
2681
+ this.binaryReadMap4(message.extensions, reader, options);
2682
+ break;
2683
+ default:
2684
+ let u = options.readUnknownField;
2685
+ if (u === "throw")
2686
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2687
+ let d = reader.skip(wireType);
2688
+ if (u !== false)
2689
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2690
+ }
2691
+ }
2692
+ return message;
2693
+ }
2694
+ private binaryReadMap4(map: Tag["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
2695
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Tag["extensions"] | undefined, val: Tag["extensions"][any] | undefined;
2696
+ while (reader.pos < end) {
2697
+ let [fieldNo, wireType] = reader.tag();
2698
+ switch (fieldNo) {
2699
+ case 1:
2700
+ key = reader.string();
2701
+ break;
2702
+ case 2:
2703
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
2704
+ break;
2705
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Tag.extensions");
2706
+ }
2707
+ }
2708
+ map[key ?? ""] = val ?? Value.create();
2709
+ }
2710
+ internalBinaryWrite(message: Tag, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2711
+ /* string name = 1; */
2712
+ if (message.name !== "")
2713
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2714
+ /* string description = 2; */
2715
+ if (message.description !== "")
2716
+ writer.tag(2, WireType.LengthDelimited).string(message.description);
2717
+ /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */
2718
+ if (message.externalDocs)
2719
+ ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2720
+ /* map<string, google.protobuf.Value> extensions = 4; */
2721
+ for (let k of globalThis.Object.keys(message.extensions)) {
2722
+ writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2723
+ writer.tag(2, WireType.LengthDelimited).fork();
2724
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
2725
+ writer.join().join();
2726
+ }
2727
+ let u = options.writeUnknownFields;
2728
+ if (u !== false)
2729
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2730
+ return writer;
2731
+ }
2732
+ }
2733
+ /**
2734
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Tag
2735
+ */
2736
+ export const Tag = new Tag$Type();
2737
+ // @generated message type with reflection information, may provide speed optimized methods
2738
+ class SecurityDefinitions$Type extends MessageType<SecurityDefinitions> {
2739
+ constructor() {
2740
+ super("grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions", [
2741
+ { no: 1, name: "security", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityScheme } }
2742
+ ]);
2743
+ }
2744
+ create(value?: PartialMessage<SecurityDefinitions>): SecurityDefinitions {
2745
+ const message = globalThis.Object.create((this.messagePrototype!));
2746
+ message.security = {};
2747
+ if (value !== undefined)
2748
+ reflectionMergePartial<SecurityDefinitions>(this, message, value);
2749
+ return message;
2750
+ }
2751
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SecurityDefinitions): SecurityDefinitions {
2752
+ let message = target ?? this.create(), end = reader.pos + length;
2753
+ while (reader.pos < end) {
2754
+ let [fieldNo, wireType] = reader.tag();
2755
+ switch (fieldNo) {
2756
+ case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security */ 1:
2757
+ this.binaryReadMap1(message.security, reader, options);
2758
+ break;
2759
+ default:
2760
+ let u = options.readUnknownField;
2761
+ if (u === "throw")
2762
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2763
+ let d = reader.skip(wireType);
2764
+ if (u !== false)
2765
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2766
+ }
2767
+ }
2768
+ return message;
2769
+ }
2770
+ private binaryReadMap1(map: SecurityDefinitions["security"], reader: IBinaryReader, options: BinaryReadOptions): void {
2771
+ let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityDefinitions["security"] | undefined, val: SecurityDefinitions["security"][any] | undefined;
2772
+ while (reader.pos < end) {
2773
+ let [fieldNo, wireType] = reader.tag();
2774
+ switch (fieldNo) {
2775
+ case 1:
2776
+ key = reader.string();
2777
+ break;
2778
+ case 2:
2779
+ val = SecurityScheme.internalBinaryRead(reader, reader.uint32(), options);
2780
+ break;
2781
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security");
2782
+ }
2783
+ }
2784
+ map[key ?? ""] = val ?? SecurityScheme.create();
2785
+ }
2786
+ internalBinaryWrite(message: SecurityDefinitions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2787
+ /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1; */
2788
+ for (let k of globalThis.Object.keys(message.security)) {
2789
+ writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2790
+ writer.tag(2, WireType.LengthDelimited).fork();
2791
+ SecurityScheme.internalBinaryWrite(message.security[k], writer, options);
2792
+ writer.join().join();
2793
+ }
2794
+ let u = options.writeUnknownFields;
2795
+ if (u !== false)
2796
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2797
+ return writer;
2798
+ }
2799
+ }
2800
+ /**
2801
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions
2802
+ */
2803
+ export const SecurityDefinitions = new SecurityDefinitions$Type();
2804
+ // @generated message type with reflection information, may provide speed optimized methods
2805
+ class SecurityScheme$Type extends MessageType<SecurityScheme> {
2806
+ constructor() {
2807
+ super("grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme", [
2808
+ { no: 1, name: "type", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type", SecurityScheme_Type, "TYPE_"] },
2809
+ { no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2810
+ { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2811
+ { no: 4, name: "in", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", SecurityScheme_In, "IN_"] },
2812
+ { no: 5, name: "flow", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", SecurityScheme_Flow, "FLOW_"] },
2813
+ { no: 6, name: "authorization_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2814
+ { no: 7, name: "token_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2815
+ { no: 8, name: "scopes", kind: "message", T: () => Scopes },
2816
+ { no: 9, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
2817
+ ]);
2818
+ }
2819
+ create(value?: PartialMessage<SecurityScheme>): SecurityScheme {
2820
+ const message = globalThis.Object.create((this.messagePrototype!));
2821
+ message.type = 0;
2822
+ message.description = "";
2823
+ message.name = "";
2824
+ message.in = 0;
2825
+ message.flow = 0;
2826
+ message.authorizationUrl = "";
2827
+ message.tokenUrl = "";
2828
+ message.extensions = {};
2829
+ if (value !== undefined)
2830
+ reflectionMergePartial<SecurityScheme>(this, message, value);
2831
+ return message;
2832
+ }
2833
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SecurityScheme): SecurityScheme {
2834
+ let message = target ?? this.create(), end = reader.pos + length;
2835
+ while (reader.pos < end) {
2836
+ let [fieldNo, wireType] = reader.tag();
2837
+ switch (fieldNo) {
2838
+ case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type */ 1:
2839
+ message.type = reader.int32();
2840
+ break;
2841
+ case /* string description */ 2:
2842
+ message.description = reader.string();
2843
+ break;
2844
+ case /* string name */ 3:
2845
+ message.name = reader.string();
2846
+ break;
2847
+ case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in */ 4:
2848
+ message.in = reader.int32();
2849
+ break;
2850
+ case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow */ 5:
2851
+ message.flow = reader.int32();
2852
+ break;
2853
+ case /* string authorization_url */ 6:
2854
+ message.authorizationUrl = reader.string();
2855
+ break;
2856
+ case /* string token_url */ 7:
2857
+ message.tokenUrl = reader.string();
2858
+ break;
2859
+ case /* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes */ 8:
2860
+ message.scopes = Scopes.internalBinaryRead(reader, reader.uint32(), options, message.scopes);
2861
+ break;
2862
+ case /* map<string, google.protobuf.Value> extensions */ 9:
2863
+ this.binaryReadMap9(message.extensions, reader, options);
2864
+ break;
2865
+ default:
2866
+ let u = options.readUnknownField;
2867
+ if (u === "throw")
2868
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2869
+ let d = reader.skip(wireType);
2870
+ if (u !== false)
2871
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2872
+ }
2873
+ }
2874
+ return message;
2875
+ }
2876
+ private binaryReadMap9(map: SecurityScheme["extensions"], reader: IBinaryReader, options: BinaryReadOptions): void {
2877
+ let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityScheme["extensions"] | undefined, val: SecurityScheme["extensions"][any] | undefined;
2878
+ while (reader.pos < end) {
2879
+ let [fieldNo, wireType] = reader.tag();
2880
+ switch (fieldNo) {
2881
+ case 1:
2882
+ key = reader.string();
2883
+ break;
2884
+ case 2:
2885
+ val = Value.internalBinaryRead(reader, reader.uint32(), options);
2886
+ break;
2887
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions");
2888
+ }
2889
+ }
2890
+ map[key ?? ""] = val ?? Value.create();
2891
+ }
2892
+ internalBinaryWrite(message: SecurityScheme, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2893
+ /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; */
2894
+ if (message.type !== 0)
2895
+ writer.tag(1, WireType.Varint).int32(message.type);
2896
+ /* string description = 2; */
2897
+ if (message.description !== "")
2898
+ writer.tag(2, WireType.LengthDelimited).string(message.description);
2899
+ /* string name = 3; */
2900
+ if (message.name !== "")
2901
+ writer.tag(3, WireType.LengthDelimited).string(message.name);
2902
+ /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; */
2903
+ if (message.in !== 0)
2904
+ writer.tag(4, WireType.Varint).int32(message.in);
2905
+ /* grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; */
2906
+ if (message.flow !== 0)
2907
+ writer.tag(5, WireType.Varint).int32(message.flow);
2908
+ /* string authorization_url = 6; */
2909
+ if (message.authorizationUrl !== "")
2910
+ writer.tag(6, WireType.LengthDelimited).string(message.authorizationUrl);
2911
+ /* string token_url = 7; */
2912
+ if (message.tokenUrl !== "")
2913
+ writer.tag(7, WireType.LengthDelimited).string(message.tokenUrl);
2914
+ /* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */
2915
+ if (message.scopes)
2916
+ Scopes.internalBinaryWrite(message.scopes, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2917
+ /* map<string, google.protobuf.Value> extensions = 9; */
2918
+ for (let k of globalThis.Object.keys(message.extensions)) {
2919
+ writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2920
+ writer.tag(2, WireType.LengthDelimited).fork();
2921
+ Value.internalBinaryWrite(message.extensions[k], writer, options);
2922
+ writer.join().join();
2923
+ }
2924
+ let u = options.writeUnknownFields;
2925
+ if (u !== false)
2926
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2927
+ return writer;
2928
+ }
2929
+ }
2930
+ /**
2931
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme
2932
+ */
2933
+ export const SecurityScheme = new SecurityScheme$Type();
2934
+ // @generated message type with reflection information, may provide speed optimized methods
2935
+ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
2936
+ constructor() {
2937
+ super("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", [
2938
+ { no: 1, name: "security_requirement", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityRequirement_SecurityRequirementValue } }
2939
+ ]);
2940
+ }
2941
+ create(value?: PartialMessage<SecurityRequirement>): SecurityRequirement {
2942
+ const message = globalThis.Object.create((this.messagePrototype!));
2943
+ message.securityRequirement = {};
2944
+ if (value !== undefined)
2945
+ reflectionMergePartial<SecurityRequirement>(this, message, value);
2946
+ return message;
2947
+ }
2948
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SecurityRequirement): SecurityRequirement {
2949
+ let message = target ?? this.create(), end = reader.pos + length;
2950
+ while (reader.pos < end) {
2951
+ let [fieldNo, wireType] = reader.tag();
2952
+ switch (fieldNo) {
2953
+ case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement */ 1:
2954
+ this.binaryReadMap1(message.securityRequirement, reader, options);
2955
+ break;
2956
+ default:
2957
+ let u = options.readUnknownField;
2958
+ if (u === "throw")
2959
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2960
+ let d = reader.skip(wireType);
2961
+ if (u !== false)
2962
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2963
+ }
2964
+ }
2965
+ return message;
2966
+ }
2967
+ private binaryReadMap1(map: SecurityRequirement["securityRequirement"], reader: IBinaryReader, options: BinaryReadOptions): void {
2968
+ let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityRequirement["securityRequirement"] | undefined, val: SecurityRequirement["securityRequirement"][any] | undefined;
2969
+ while (reader.pos < end) {
2970
+ let [fieldNo, wireType] = reader.tag();
2971
+ switch (fieldNo) {
2972
+ case 1:
2973
+ key = reader.string();
2974
+ break;
2975
+ case 2:
2976
+ val = SecurityRequirement_SecurityRequirementValue.internalBinaryRead(reader, reader.uint32(), options);
2977
+ break;
2978
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement");
2979
+ }
2980
+ }
2981
+ map[key ?? ""] = val ?? SecurityRequirement_SecurityRequirementValue.create();
2982
+ }
2983
+ internalBinaryWrite(message: SecurityRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2984
+ /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */
2985
+ for (let k of globalThis.Object.keys(message.securityRequirement)) {
2986
+ writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
2987
+ writer.tag(2, WireType.LengthDelimited).fork();
2988
+ SecurityRequirement_SecurityRequirementValue.internalBinaryWrite(message.securityRequirement[k], writer, options);
2989
+ writer.join().join();
2990
+ }
2991
+ let u = options.writeUnknownFields;
2992
+ if (u !== false)
2993
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2994
+ return writer;
2995
+ }
2996
+ }
2997
+ /**
2998
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement
2999
+ */
3000
+ export const SecurityRequirement = new SecurityRequirement$Type();
3001
+ // @generated message type with reflection information, may provide speed optimized methods
3002
+ class SecurityRequirement_SecurityRequirementValue$Type extends MessageType<SecurityRequirement_SecurityRequirementValue> {
3003
+ constructor() {
3004
+ super("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue", [
3005
+ { no: 1, name: "scope", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
3006
+ ]);
3007
+ }
3008
+ create(value?: PartialMessage<SecurityRequirement_SecurityRequirementValue>): SecurityRequirement_SecurityRequirementValue {
3009
+ const message = globalThis.Object.create((this.messagePrototype!));
3010
+ message.scope = [];
3011
+ if (value !== undefined)
3012
+ reflectionMergePartial<SecurityRequirement_SecurityRequirementValue>(this, message, value);
3013
+ return message;
3014
+ }
3015
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SecurityRequirement_SecurityRequirementValue): SecurityRequirement_SecurityRequirementValue {
3016
+ let message = target ?? this.create(), end = reader.pos + length;
3017
+ while (reader.pos < end) {
3018
+ let [fieldNo, wireType] = reader.tag();
3019
+ switch (fieldNo) {
3020
+ case /* repeated string scope */ 1:
3021
+ message.scope.push(reader.string());
3022
+ break;
3023
+ default:
3024
+ let u = options.readUnknownField;
3025
+ if (u === "throw")
3026
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3027
+ let d = reader.skip(wireType);
3028
+ if (u !== false)
3029
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3030
+ }
3031
+ }
3032
+ return message;
3033
+ }
3034
+ internalBinaryWrite(message: SecurityRequirement_SecurityRequirementValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3035
+ /* repeated string scope = 1; */
3036
+ for (let i = 0; i < message.scope.length; i++)
3037
+ writer.tag(1, WireType.LengthDelimited).string(message.scope[i]);
3038
+ let u = options.writeUnknownFields;
3039
+ if (u !== false)
3040
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3041
+ return writer;
3042
+ }
3043
+ }
3044
+ /**
3045
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue
3046
+ */
3047
+ export const SecurityRequirement_SecurityRequirementValue = new SecurityRequirement_SecurityRequirementValue$Type();
3048
+ // @generated message type with reflection information, may provide speed optimized methods
3049
+ class Scopes$Type extends MessageType<Scopes> {
3050
+ constructor() {
3051
+ super("grpc.gateway.protoc_gen_openapiv2.options.Scopes", [
3052
+ { no: 1, name: "scope", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
3053
+ ]);
3054
+ }
3055
+ create(value?: PartialMessage<Scopes>): Scopes {
3056
+ const message = globalThis.Object.create((this.messagePrototype!));
3057
+ message.scope = {};
3058
+ if (value !== undefined)
3059
+ reflectionMergePartial<Scopes>(this, message, value);
3060
+ return message;
3061
+ }
3062
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Scopes): Scopes {
3063
+ let message = target ?? this.create(), end = reader.pos + length;
3064
+ while (reader.pos < end) {
3065
+ let [fieldNo, wireType] = reader.tag();
3066
+ switch (fieldNo) {
3067
+ case /* map<string, string> scope */ 1:
3068
+ this.binaryReadMap1(message.scope, reader, options);
3069
+ break;
3070
+ default:
3071
+ let u = options.readUnknownField;
3072
+ if (u === "throw")
3073
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3074
+ let d = reader.skip(wireType);
3075
+ if (u !== false)
3076
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3077
+ }
3078
+ }
3079
+ return message;
3080
+ }
3081
+ private binaryReadMap1(map: Scopes["scope"], reader: IBinaryReader, options: BinaryReadOptions): void {
3082
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Scopes["scope"] | undefined, val: Scopes["scope"][any] | undefined;
3083
+ while (reader.pos < end) {
3084
+ let [fieldNo, wireType] = reader.tag();
3085
+ switch (fieldNo) {
3086
+ case 1:
3087
+ key = reader.string();
3088
+ break;
3089
+ case 2:
3090
+ val = reader.string();
3091
+ break;
3092
+ default: throw new globalThis.Error("unknown map entry field for grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope");
3093
+ }
3094
+ }
3095
+ map[key ?? ""] = val ?? "";
3096
+ }
3097
+ internalBinaryWrite(message: Scopes, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3098
+ /* map<string, string> scope = 1; */
3099
+ for (let k of globalThis.Object.keys(message.scope))
3100
+ writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.scope[k]).join();
3101
+ let u = options.writeUnknownFields;
3102
+ if (u !== false)
3103
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3104
+ return writer;
3105
+ }
3106
+ }
3107
+ /**
3108
+ * @generated MessageType for protobuf message grpc.gateway.protoc_gen_openapiv2.options.Scopes
3109
+ */
3110
+ export const Scopes = new Scopes$Type();