@superblocksteam/sabs-types 0.127.0

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.
@@ -0,0 +1,1691 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.3.0 with parameter "target=ts"
3
+ // @generated from file protoc-gen-openapiv2/options/openapiv2.proto (package grpc.gateway.protoc_gen_openapiv2.options, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Scopes = exports.SecurityRequirement_SecurityRequirementValue = exports.SecurityRequirement = exports.SecurityScheme_Flow = exports.SecurityScheme_In = exports.SecurityScheme_Type = exports.SecurityScheme = exports.SecurityDefinitions = exports.Tag = exports.JSONSchema_FieldConfiguration = exports.JSONSchema_JSONSchemaSimpleTypes = exports.JSONSchema = exports.Schema = exports.ExternalDocumentation = exports.License = exports.Contact = exports.Info = exports.Response = exports.Header = exports.HeaderParameter_Type = exports.HeaderParameter = exports.Parameters = exports.Operation = exports.Swagger = exports.Scheme = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ /**
10
+ * Scheme describes the schemes supported by the OpenAPI Swagger
11
+ * and Operation objects.
12
+ *
13
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.Scheme
14
+ */
15
+ var Scheme;
16
+ (function (Scheme) {
17
+ /**
18
+ * @generated from enum value: UNKNOWN = 0;
19
+ */
20
+ Scheme[Scheme["UNKNOWN"] = 0] = "UNKNOWN";
21
+ /**
22
+ * @generated from enum value: HTTP = 1;
23
+ */
24
+ Scheme[Scheme["HTTP"] = 1] = "HTTP";
25
+ /**
26
+ * @generated from enum value: HTTPS = 2;
27
+ */
28
+ Scheme[Scheme["HTTPS"] = 2] = "HTTPS";
29
+ /**
30
+ * @generated from enum value: WS = 3;
31
+ */
32
+ Scheme[Scheme["WS"] = 3] = "WS";
33
+ /**
34
+ * @generated from enum value: WSS = 4;
35
+ */
36
+ Scheme[Scheme["WSS"] = 4] = "WSS";
37
+ })(Scheme || (exports.Scheme = Scheme = {}));
38
+ // Retrieve enum metadata with: proto3.getEnumType(Scheme)
39
+ protobuf_1.proto3.util.setEnumType(Scheme, "grpc.gateway.protoc_gen_openapiv2.options.Scheme", [
40
+ { no: 0, name: "UNKNOWN" },
41
+ { no: 1, name: "HTTP" },
42
+ { no: 2, name: "HTTPS" },
43
+ { no: 3, name: "WS" },
44
+ { no: 4, name: "WSS" },
45
+ ]);
46
+ /**
47
+ * `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
48
+ *
49
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
50
+ *
51
+ * Example:
52
+ *
53
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
54
+ * info: {
55
+ * title: "Echo API";
56
+ * version: "1.0";
57
+ * description: "";
58
+ * contact: {
59
+ * name: "gRPC-Gateway project";
60
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
61
+ * email: "none@example.com";
62
+ * };
63
+ * license: {
64
+ * name: "BSD 3-Clause License";
65
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
66
+ * };
67
+ * };
68
+ * schemes: HTTPS;
69
+ * consumes: "application/json";
70
+ * produces: "application/json";
71
+ * };
72
+ *
73
+ *
74
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Swagger
75
+ */
76
+ class Swagger extends protobuf_1.Message {
77
+ constructor(data) {
78
+ super();
79
+ /**
80
+ * Specifies the OpenAPI Specification version being used. It can be
81
+ * used by the OpenAPI UI and other clients to interpret the API listing. The
82
+ * value MUST be "2.0".
83
+ *
84
+ * @generated from field: string swagger = 1;
85
+ */
86
+ this.swagger = "";
87
+ /**
88
+ * The host (name or ip) serving the API. This MUST be the host only and does
89
+ * not include the scheme nor sub-paths. It MAY include a port. If the host is
90
+ * not included, the host serving the documentation is to be used (including
91
+ * the port). The host does not support path templating.
92
+ *
93
+ * @generated from field: string host = 3;
94
+ */
95
+ this.host = "";
96
+ /**
97
+ * The base path on which the API is served, which is relative to the host. If
98
+ * it is not included, the API is served directly under the host. The value
99
+ * MUST start with a leading slash (/). The basePath does not support path
100
+ * templating.
101
+ * Note that using `base_path` does not change the endpoint paths that are
102
+ * generated in the resulting OpenAPI file. If you wish to use `base_path`
103
+ * with relatively generated OpenAPI paths, the `base_path` prefix must be
104
+ * manually removed from your `google.api.http` paths and your code changed to
105
+ * serve the API from the `base_path`.
106
+ *
107
+ * @generated from field: string base_path = 4;
108
+ */
109
+ this.basePath = "";
110
+ /**
111
+ * The transfer protocol of the API. Values MUST be from the list: "http",
112
+ * "https", "ws", "wss". If the schemes is not included, the default scheme to
113
+ * be used is the one used to access the OpenAPI definition itself.
114
+ *
115
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5;
116
+ */
117
+ this.schemes = [];
118
+ /**
119
+ * A list of MIME types the APIs can consume. This is global to all APIs but
120
+ * can be overridden on specific API calls. Value MUST be as described under
121
+ * Mime Types.
122
+ *
123
+ * @generated from field: repeated string consumes = 6;
124
+ */
125
+ this.consumes = [];
126
+ /**
127
+ * A list of MIME types the APIs can produce. This is global to all APIs but
128
+ * can be overridden on specific API calls. Value MUST be as described under
129
+ * Mime Types.
130
+ *
131
+ * @generated from field: repeated string produces = 7;
132
+ */
133
+ this.produces = [];
134
+ /**
135
+ * An object to hold responses that can be used across operations. This
136
+ * property does not define global responses for all operations.
137
+ *
138
+ * @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10;
139
+ */
140
+ this.responses = {};
141
+ /**
142
+ * A declaration of which security schemes are applied for the API as a whole.
143
+ * The list of values describes alternative security schemes that can be used
144
+ * (that is, there is a logical OR between the security requirements).
145
+ * Individual operations can override this definition.
146
+ *
147
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12;
148
+ */
149
+ this.security = [];
150
+ /**
151
+ * A list of tags for API documentation control. Tags can be used for logical
152
+ * grouping of operations by resources or any other qualifier.
153
+ *
154
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13;
155
+ */
156
+ this.tags = [];
157
+ /**
158
+ * Custom properties that start with "x-" such as "x-foo" used to describe
159
+ * extra functionality that is not covered by the standard OpenAPI Specification.
160
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
161
+ *
162
+ * @generated from field: map<string, google.protobuf.Value> extensions = 15;
163
+ */
164
+ this.extensions = {};
165
+ protobuf_1.proto3.util.initPartial(data, this);
166
+ }
167
+ static fromBinary(bytes, options) {
168
+ return new Swagger().fromBinary(bytes, options);
169
+ }
170
+ static fromJson(jsonValue, options) {
171
+ return new Swagger().fromJson(jsonValue, options);
172
+ }
173
+ static fromJsonString(jsonString, options) {
174
+ return new Swagger().fromJsonString(jsonString, options);
175
+ }
176
+ static equals(a, b) {
177
+ return protobuf_1.proto3.util.equals(Swagger, a, b);
178
+ }
179
+ }
180
+ exports.Swagger = Swagger;
181
+ Swagger.runtime = protobuf_1.proto3;
182
+ Swagger.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Swagger";
183
+ Swagger.fields = protobuf_1.proto3.util.newFieldList(() => [
184
+ { no: 1, name: "swagger", kind: "scalar", T: 9 /* ScalarType.STRING */ },
185
+ { no: 2, name: "info", kind: "message", T: Info },
186
+ { no: 3, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
+ { no: 4, name: "base_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 5, name: "schemes", kind: "enum", T: protobuf_1.proto3.getEnumType(Scheme), repeated: true },
189
+ { no: 6, name: "consumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
190
+ { no: 7, name: "produces", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
191
+ { no: 10, name: "responses", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Response } },
192
+ { no: 11, name: "security_definitions", kind: "message", T: SecurityDefinitions },
193
+ { no: 12, name: "security", kind: "message", T: SecurityRequirement, repeated: true },
194
+ { no: 13, name: "tags", kind: "message", T: Tag, repeated: true },
195
+ { no: 14, name: "external_docs", kind: "message", T: ExternalDocumentation },
196
+ { no: 15, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
197
+ ]);
198
+ /**
199
+ * `Operation` is a representation of OpenAPI v2 specification's Operation object.
200
+ *
201
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
202
+ *
203
+ * Example:
204
+ *
205
+ * service EchoService {
206
+ * rpc Echo(SimpleMessage) returns (SimpleMessage) {
207
+ * option (google.api.http) = {
208
+ * get: "/v1/example/echo/{id}"
209
+ * };
210
+ *
211
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
212
+ * summary: "Get a message.";
213
+ * operation_id: "getMessage";
214
+ * tags: "echo";
215
+ * responses: {
216
+ * key: "200"
217
+ * value: {
218
+ * description: "OK";
219
+ * }
220
+ * }
221
+ * };
222
+ * }
223
+ * }
224
+ *
225
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Operation
226
+ */
227
+ class Operation extends protobuf_1.Message {
228
+ constructor(data) {
229
+ super();
230
+ /**
231
+ * A list of tags for API documentation control. Tags can be used for logical
232
+ * grouping of operations by resources or any other qualifier.
233
+ *
234
+ * @generated from field: repeated string tags = 1;
235
+ */
236
+ this.tags = [];
237
+ /**
238
+ * A short summary of what the operation does. For maximum readability in the
239
+ * swagger-ui, this field SHOULD be less than 120 characters.
240
+ *
241
+ * @generated from field: string summary = 2;
242
+ */
243
+ this.summary = "";
244
+ /**
245
+ * A verbose explanation of the operation behavior. GFM syntax can be used for
246
+ * rich text representation.
247
+ *
248
+ * @generated from field: string description = 3;
249
+ */
250
+ this.description = "";
251
+ /**
252
+ * Unique string used to identify the operation. The id MUST be unique among
253
+ * all operations described in the API. Tools and libraries MAY use the
254
+ * operationId to uniquely identify an operation, therefore, it is recommended
255
+ * to follow common programming naming conventions.
256
+ *
257
+ * @generated from field: string operation_id = 5;
258
+ */
259
+ this.operationId = "";
260
+ /**
261
+ * A list of MIME types the operation can consume. This overrides the consumes
262
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
263
+ * global definition. Value MUST be as described under Mime Types.
264
+ *
265
+ * @generated from field: repeated string consumes = 6;
266
+ */
267
+ this.consumes = [];
268
+ /**
269
+ * A list of MIME types the operation can produce. This overrides the produces
270
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
271
+ * global definition. Value MUST be as described under Mime Types.
272
+ *
273
+ * @generated from field: repeated string produces = 7;
274
+ */
275
+ this.produces = [];
276
+ /**
277
+ * The list of possible responses as they are returned from executing this
278
+ * operation.
279
+ *
280
+ * @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;
281
+ */
282
+ this.responses = {};
283
+ /**
284
+ * The transfer protocol for the operation. Values MUST be from the list:
285
+ * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
286
+ * schemes definition.
287
+ *
288
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;
289
+ */
290
+ this.schemes = [];
291
+ /**
292
+ * Declares this operation to be deprecated. Usage of the declared operation
293
+ * should be refrained. Default value is false.
294
+ *
295
+ * @generated from field: bool deprecated = 11;
296
+ */
297
+ this.deprecated = false;
298
+ /**
299
+ * A declaration of which security schemes are applied for this operation. The
300
+ * list of values describes alternative security schemes that can be used
301
+ * (that is, there is a logical OR between the security requirements). This
302
+ * definition overrides any declared top-level security. To remove a top-level
303
+ * security declaration, an empty array can be used.
304
+ *
305
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12;
306
+ */
307
+ this.security = [];
308
+ /**
309
+ * Custom properties that start with "x-" such as "x-foo" used to describe
310
+ * extra functionality that is not covered by the standard OpenAPI Specification.
311
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
312
+ *
313
+ * @generated from field: map<string, google.protobuf.Value> extensions = 13;
314
+ */
315
+ this.extensions = {};
316
+ protobuf_1.proto3.util.initPartial(data, this);
317
+ }
318
+ static fromBinary(bytes, options) {
319
+ return new Operation().fromBinary(bytes, options);
320
+ }
321
+ static fromJson(jsonValue, options) {
322
+ return new Operation().fromJson(jsonValue, options);
323
+ }
324
+ static fromJsonString(jsonString, options) {
325
+ return new Operation().fromJsonString(jsonString, options);
326
+ }
327
+ static equals(a, b) {
328
+ return protobuf_1.proto3.util.equals(Operation, a, b);
329
+ }
330
+ }
331
+ exports.Operation = Operation;
332
+ Operation.runtime = protobuf_1.proto3;
333
+ Operation.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Operation";
334
+ Operation.fields = protobuf_1.proto3.util.newFieldList(() => [
335
+ { no: 1, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
336
+ { no: 2, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ },
337
+ { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
338
+ { no: 4, name: "external_docs", kind: "message", T: ExternalDocumentation },
339
+ { no: 5, name: "operation_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
340
+ { no: 6, name: "consumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
341
+ { no: 7, name: "produces", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
342
+ { no: 9, name: "responses", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Response } },
343
+ { no: 10, name: "schemes", kind: "enum", T: protobuf_1.proto3.getEnumType(Scheme), repeated: true },
344
+ { no: 11, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
345
+ { no: 12, name: "security", kind: "message", T: SecurityRequirement, repeated: true },
346
+ { no: 13, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
347
+ { no: 14, name: "parameters", kind: "message", T: Parameters },
348
+ ]);
349
+ /**
350
+ * `Parameters` is a representation of OpenAPI v2 specification's parameters object.
351
+ * Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
352
+ * allow header parameters to be set here since we do not want users specifying custom non-header
353
+ * parameters beyond those inferred from the Protobuf schema.
354
+ * See: https://swagger.io/specification/v2/#parameter-object
355
+ *
356
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Parameters
357
+ */
358
+ class Parameters extends protobuf_1.Message {
359
+ constructor(data) {
360
+ super();
361
+ /**
362
+ * `Headers` is one or more HTTP header parameter.
363
+ * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
364
+ *
365
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
366
+ */
367
+ this.headers = [];
368
+ protobuf_1.proto3.util.initPartial(data, this);
369
+ }
370
+ static fromBinary(bytes, options) {
371
+ return new Parameters().fromBinary(bytes, options);
372
+ }
373
+ static fromJson(jsonValue, options) {
374
+ return new Parameters().fromJson(jsonValue, options);
375
+ }
376
+ static fromJsonString(jsonString, options) {
377
+ return new Parameters().fromJsonString(jsonString, options);
378
+ }
379
+ static equals(a, b) {
380
+ return protobuf_1.proto3.util.equals(Parameters, a, b);
381
+ }
382
+ }
383
+ exports.Parameters = Parameters;
384
+ Parameters.runtime = protobuf_1.proto3;
385
+ Parameters.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Parameters";
386
+ Parameters.fields = protobuf_1.proto3.util.newFieldList(() => [
387
+ { no: 1, name: "headers", kind: "message", T: HeaderParameter, repeated: true },
388
+ ]);
389
+ /**
390
+ * `HeaderParameter` a HTTP header parameter.
391
+ * See: https://swagger.io/specification/v2/#parameter-object
392
+ *
393
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
394
+ */
395
+ class HeaderParameter extends protobuf_1.Message {
396
+ constructor(data) {
397
+ super();
398
+ /**
399
+ * `Name` is the header name.
400
+ *
401
+ * @generated from field: string name = 1;
402
+ */
403
+ this.name = "";
404
+ /**
405
+ * `Description` is a short description of the header.
406
+ *
407
+ * @generated from field: string description = 2;
408
+ */
409
+ this.description = "";
410
+ /**
411
+ * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
412
+ * See: https://swagger.io/specification/v2/#parameterType.
413
+ *
414
+ * @generated from field: grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
415
+ */
416
+ this.type = HeaderParameter_Type.UNKNOWN;
417
+ /**
418
+ * `Format` The extending format for the previously mentioned type.
419
+ *
420
+ * @generated from field: string format = 4;
421
+ */
422
+ this.format = "";
423
+ /**
424
+ * `Required` indicates if the header is optional
425
+ *
426
+ * @generated from field: bool required = 5;
427
+ */
428
+ this.required = false;
429
+ protobuf_1.proto3.util.initPartial(data, this);
430
+ }
431
+ static fromBinary(bytes, options) {
432
+ return new HeaderParameter().fromBinary(bytes, options);
433
+ }
434
+ static fromJson(jsonValue, options) {
435
+ return new HeaderParameter().fromJson(jsonValue, options);
436
+ }
437
+ static fromJsonString(jsonString, options) {
438
+ return new HeaderParameter().fromJsonString(jsonString, options);
439
+ }
440
+ static equals(a, b) {
441
+ return protobuf_1.proto3.util.equals(HeaderParameter, a, b);
442
+ }
443
+ }
444
+ exports.HeaderParameter = HeaderParameter;
445
+ HeaderParameter.runtime = protobuf_1.proto3;
446
+ HeaderParameter.typeName = "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter";
447
+ HeaderParameter.fields = protobuf_1.proto3.util.newFieldList(() => [
448
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
449
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
450
+ { no: 3, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(HeaderParameter_Type) },
451
+ { no: 4, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
452
+ { no: 5, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
453
+ ]);
454
+ /**
455
+ * `Type` is a a supported HTTP header type.
456
+ * See https://swagger.io/specification/v2/#parameterType.
457
+ *
458
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type
459
+ */
460
+ var HeaderParameter_Type;
461
+ (function (HeaderParameter_Type) {
462
+ /**
463
+ * @generated from enum value: UNKNOWN = 0;
464
+ */
465
+ HeaderParameter_Type[HeaderParameter_Type["UNKNOWN"] = 0] = "UNKNOWN";
466
+ /**
467
+ * @generated from enum value: STRING = 1;
468
+ */
469
+ HeaderParameter_Type[HeaderParameter_Type["STRING"] = 1] = "STRING";
470
+ /**
471
+ * @generated from enum value: NUMBER = 2;
472
+ */
473
+ HeaderParameter_Type[HeaderParameter_Type["NUMBER"] = 2] = "NUMBER";
474
+ /**
475
+ * @generated from enum value: INTEGER = 3;
476
+ */
477
+ HeaderParameter_Type[HeaderParameter_Type["INTEGER"] = 3] = "INTEGER";
478
+ /**
479
+ * @generated from enum value: BOOLEAN = 4;
480
+ */
481
+ HeaderParameter_Type[HeaderParameter_Type["BOOLEAN"] = 4] = "BOOLEAN";
482
+ })(HeaderParameter_Type || (exports.HeaderParameter_Type = HeaderParameter_Type = {}));
483
+ // Retrieve enum metadata with: proto3.getEnumType(HeaderParameter_Type)
484
+ protobuf_1.proto3.util.setEnumType(HeaderParameter_Type, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", [
485
+ { no: 0, name: "UNKNOWN" },
486
+ { no: 1, name: "STRING" },
487
+ { no: 2, name: "NUMBER" },
488
+ { no: 3, name: "INTEGER" },
489
+ { no: 4, name: "BOOLEAN" },
490
+ ]);
491
+ /**
492
+ * `Header` is a representation of OpenAPI v2 specification's Header object.
493
+ *
494
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
495
+ *
496
+ *
497
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Header
498
+ */
499
+ class Header extends protobuf_1.Message {
500
+ constructor(data) {
501
+ super();
502
+ /**
503
+ * `Description` is a short description of the header.
504
+ *
505
+ * @generated from field: string description = 1;
506
+ */
507
+ this.description = "";
508
+ /**
509
+ * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
510
+ *
511
+ * @generated from field: string type = 2;
512
+ */
513
+ this.type = "";
514
+ /**
515
+ * `Format` The extending format for the previously mentioned type.
516
+ *
517
+ * @generated from field: string format = 3;
518
+ */
519
+ this.format = "";
520
+ /**
521
+ * `Default` Declares the value of the header that the server will use if none is provided.
522
+ * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
523
+ * Unlike JSON Schema this value MUST conform to the defined type for the header.
524
+ *
525
+ * @generated from field: string default = 6;
526
+ */
527
+ this.default = "";
528
+ /**
529
+ * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
530
+ *
531
+ * @generated from field: string pattern = 13;
532
+ */
533
+ this.pattern = "";
534
+ protobuf_1.proto3.util.initPartial(data, this);
535
+ }
536
+ static fromBinary(bytes, options) {
537
+ return new Header().fromBinary(bytes, options);
538
+ }
539
+ static fromJson(jsonValue, options) {
540
+ return new Header().fromJson(jsonValue, options);
541
+ }
542
+ static fromJsonString(jsonString, options) {
543
+ return new Header().fromJsonString(jsonString, options);
544
+ }
545
+ static equals(a, b) {
546
+ return protobuf_1.proto3.util.equals(Header, a, b);
547
+ }
548
+ }
549
+ exports.Header = Header;
550
+ Header.runtime = protobuf_1.proto3;
551
+ Header.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Header";
552
+ Header.fields = protobuf_1.proto3.util.newFieldList(() => [
553
+ { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
554
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
+ { no: 3, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
556
+ { no: 6, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
557
+ { no: 13, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */ },
558
+ ]);
559
+ /**
560
+ * `Response` is a representation of OpenAPI v2 specification's Response object.
561
+ *
562
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
563
+ *
564
+ *
565
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Response
566
+ */
567
+ class Response extends protobuf_1.Message {
568
+ constructor(data) {
569
+ super();
570
+ /**
571
+ * `Description` is a short description of the response.
572
+ * GFM syntax can be used for rich text representation.
573
+ *
574
+ * @generated from field: string description = 1;
575
+ */
576
+ this.description = "";
577
+ /**
578
+ * `Headers` A list of headers that are sent with the response.
579
+ * `Header` name is expected to be a string in the canonical format of the MIME header key
580
+ * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
581
+ *
582
+ * @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3;
583
+ */
584
+ this.headers = {};
585
+ /**
586
+ * `Examples` gives per-mimetype response examples.
587
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
588
+ *
589
+ * @generated from field: map<string, string> examples = 4;
590
+ */
591
+ this.examples = {};
592
+ /**
593
+ * Custom properties that start with "x-" such as "x-foo" used to describe
594
+ * extra functionality that is not covered by the standard OpenAPI Specification.
595
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
596
+ *
597
+ * @generated from field: map<string, google.protobuf.Value> extensions = 5;
598
+ */
599
+ this.extensions = {};
600
+ protobuf_1.proto3.util.initPartial(data, this);
601
+ }
602
+ static fromBinary(bytes, options) {
603
+ return new Response().fromBinary(bytes, options);
604
+ }
605
+ static fromJson(jsonValue, options) {
606
+ return new Response().fromJson(jsonValue, options);
607
+ }
608
+ static fromJsonString(jsonString, options) {
609
+ return new Response().fromJsonString(jsonString, options);
610
+ }
611
+ static equals(a, b) {
612
+ return protobuf_1.proto3.util.equals(Response, a, b);
613
+ }
614
+ }
615
+ exports.Response = Response;
616
+ Response.runtime = protobuf_1.proto3;
617
+ Response.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Response";
618
+ Response.fields = protobuf_1.proto3.util.newFieldList(() => [
619
+ { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
620
+ { no: 2, name: "schema", kind: "message", T: Schema },
621
+ { no: 3, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Header } },
622
+ { no: 4, name: "examples", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
623
+ { no: 5, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
624
+ ]);
625
+ /**
626
+ * `Info` is a representation of OpenAPI v2 specification's Info object.
627
+ *
628
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
629
+ *
630
+ * Example:
631
+ *
632
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
633
+ * info: {
634
+ * title: "Echo API";
635
+ * version: "1.0";
636
+ * description: "";
637
+ * contact: {
638
+ * name: "gRPC-Gateway project";
639
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
640
+ * email: "none@example.com";
641
+ * };
642
+ * license: {
643
+ * name: "BSD 3-Clause License";
644
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
645
+ * };
646
+ * };
647
+ * ...
648
+ * };
649
+ *
650
+ *
651
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Info
652
+ */
653
+ class Info extends protobuf_1.Message {
654
+ constructor(data) {
655
+ super();
656
+ /**
657
+ * The title of the application.
658
+ *
659
+ * @generated from field: string title = 1;
660
+ */
661
+ this.title = "";
662
+ /**
663
+ * A short description of the application. GFM syntax can be used for rich
664
+ * text representation.
665
+ *
666
+ * @generated from field: string description = 2;
667
+ */
668
+ this.description = "";
669
+ /**
670
+ * The Terms of Service for the API.
671
+ *
672
+ * @generated from field: string terms_of_service = 3;
673
+ */
674
+ this.termsOfService = "";
675
+ /**
676
+ * Provides the version of the application API (not to be confused
677
+ * with the specification version).
678
+ *
679
+ * @generated from field: string version = 6;
680
+ */
681
+ this.version = "";
682
+ /**
683
+ * Custom properties that start with "x-" such as "x-foo" used to describe
684
+ * extra functionality that is not covered by the standard OpenAPI Specification.
685
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
686
+ *
687
+ * @generated from field: map<string, google.protobuf.Value> extensions = 7;
688
+ */
689
+ this.extensions = {};
690
+ protobuf_1.proto3.util.initPartial(data, this);
691
+ }
692
+ static fromBinary(bytes, options) {
693
+ return new Info().fromBinary(bytes, options);
694
+ }
695
+ static fromJson(jsonValue, options) {
696
+ return new Info().fromJson(jsonValue, options);
697
+ }
698
+ static fromJsonString(jsonString, options) {
699
+ return new Info().fromJsonString(jsonString, options);
700
+ }
701
+ static equals(a, b) {
702
+ return protobuf_1.proto3.util.equals(Info, a, b);
703
+ }
704
+ }
705
+ exports.Info = Info;
706
+ Info.runtime = protobuf_1.proto3;
707
+ Info.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Info";
708
+ Info.fields = protobuf_1.proto3.util.newFieldList(() => [
709
+ { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
710
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
711
+ { no: 3, name: "terms_of_service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
712
+ { no: 4, name: "contact", kind: "message", T: Contact },
713
+ { no: 5, name: "license", kind: "message", T: License },
714
+ { no: 6, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
715
+ { no: 7, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
716
+ ]);
717
+ /**
718
+ * `Contact` is a representation of OpenAPI v2 specification's Contact object.
719
+ *
720
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
721
+ *
722
+ * Example:
723
+ *
724
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
725
+ * info: {
726
+ * ...
727
+ * contact: {
728
+ * name: "gRPC-Gateway project";
729
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
730
+ * email: "none@example.com";
731
+ * };
732
+ * ...
733
+ * };
734
+ * ...
735
+ * };
736
+ *
737
+ *
738
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Contact
739
+ */
740
+ class Contact extends protobuf_1.Message {
741
+ constructor(data) {
742
+ super();
743
+ /**
744
+ * The identifying name of the contact person/organization.
745
+ *
746
+ * @generated from field: string name = 1;
747
+ */
748
+ this.name = "";
749
+ /**
750
+ * The URL pointing to the contact information. MUST be in the format of a
751
+ * URL.
752
+ *
753
+ * @generated from field: string url = 2;
754
+ */
755
+ this.url = "";
756
+ /**
757
+ * The email address of the contact person/organization. MUST be in the format
758
+ * of an email address.
759
+ *
760
+ * @generated from field: string email = 3;
761
+ */
762
+ this.email = "";
763
+ protobuf_1.proto3.util.initPartial(data, this);
764
+ }
765
+ static fromBinary(bytes, options) {
766
+ return new Contact().fromBinary(bytes, options);
767
+ }
768
+ static fromJson(jsonValue, options) {
769
+ return new Contact().fromJson(jsonValue, options);
770
+ }
771
+ static fromJsonString(jsonString, options) {
772
+ return new Contact().fromJsonString(jsonString, options);
773
+ }
774
+ static equals(a, b) {
775
+ return protobuf_1.proto3.util.equals(Contact, a, b);
776
+ }
777
+ }
778
+ exports.Contact = Contact;
779
+ Contact.runtime = protobuf_1.proto3;
780
+ Contact.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Contact";
781
+ Contact.fields = protobuf_1.proto3.util.newFieldList(() => [
782
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
783
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
784
+ { no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
785
+ ]);
786
+ /**
787
+ * `License` is a representation of OpenAPI v2 specification's License object.
788
+ *
789
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
790
+ *
791
+ * Example:
792
+ *
793
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
794
+ * info: {
795
+ * ...
796
+ * license: {
797
+ * name: "BSD 3-Clause License";
798
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
799
+ * };
800
+ * ...
801
+ * };
802
+ * ...
803
+ * };
804
+ *
805
+ *
806
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.License
807
+ */
808
+ class License extends protobuf_1.Message {
809
+ constructor(data) {
810
+ super();
811
+ /**
812
+ * The license name used for the API.
813
+ *
814
+ * @generated from field: string name = 1;
815
+ */
816
+ this.name = "";
817
+ /**
818
+ * A URL to the license used for the API. MUST be in the format of a URL.
819
+ *
820
+ * @generated from field: string url = 2;
821
+ */
822
+ this.url = "";
823
+ protobuf_1.proto3.util.initPartial(data, this);
824
+ }
825
+ static fromBinary(bytes, options) {
826
+ return new License().fromBinary(bytes, options);
827
+ }
828
+ static fromJson(jsonValue, options) {
829
+ return new License().fromJson(jsonValue, options);
830
+ }
831
+ static fromJsonString(jsonString, options) {
832
+ return new License().fromJsonString(jsonString, options);
833
+ }
834
+ static equals(a, b) {
835
+ return protobuf_1.proto3.util.equals(License, a, b);
836
+ }
837
+ }
838
+ exports.License = License;
839
+ License.runtime = protobuf_1.proto3;
840
+ License.typeName = "grpc.gateway.protoc_gen_openapiv2.options.License";
841
+ License.fields = protobuf_1.proto3.util.newFieldList(() => [
842
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
843
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
844
+ ]);
845
+ /**
846
+ * `ExternalDocumentation` is a representation of OpenAPI v2 specification's
847
+ * ExternalDocumentation object.
848
+ *
849
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
850
+ *
851
+ * Example:
852
+ *
853
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
854
+ * ...
855
+ * external_docs: {
856
+ * description: "More about gRPC-Gateway";
857
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
858
+ * }
859
+ * ...
860
+ * };
861
+ *
862
+ *
863
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation
864
+ */
865
+ class ExternalDocumentation extends protobuf_1.Message {
866
+ constructor(data) {
867
+ super();
868
+ /**
869
+ * A short description of the target documentation. GFM syntax can be used for
870
+ * rich text representation.
871
+ *
872
+ * @generated from field: string description = 1;
873
+ */
874
+ this.description = "";
875
+ /**
876
+ * The URL for the target documentation. Value MUST be in the format
877
+ * of a URL.
878
+ *
879
+ * @generated from field: string url = 2;
880
+ */
881
+ this.url = "";
882
+ protobuf_1.proto3.util.initPartial(data, this);
883
+ }
884
+ static fromBinary(bytes, options) {
885
+ return new ExternalDocumentation().fromBinary(bytes, options);
886
+ }
887
+ static fromJson(jsonValue, options) {
888
+ return new ExternalDocumentation().fromJson(jsonValue, options);
889
+ }
890
+ static fromJsonString(jsonString, options) {
891
+ return new ExternalDocumentation().fromJsonString(jsonString, options);
892
+ }
893
+ static equals(a, b) {
894
+ return protobuf_1.proto3.util.equals(ExternalDocumentation, a, b);
895
+ }
896
+ }
897
+ exports.ExternalDocumentation = ExternalDocumentation;
898
+ ExternalDocumentation.runtime = protobuf_1.proto3;
899
+ ExternalDocumentation.typeName = "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation";
900
+ ExternalDocumentation.fields = protobuf_1.proto3.util.newFieldList(() => [
901
+ { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
902
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
903
+ ]);
904
+ /**
905
+ * `Schema` is a representation of OpenAPI v2 specification's Schema object.
906
+ *
907
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
908
+ *
909
+ *
910
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Schema
911
+ */
912
+ class Schema extends protobuf_1.Message {
913
+ constructor(data) {
914
+ super();
915
+ /**
916
+ * Adds support for polymorphism. The discriminator is the schema property
917
+ * name that is used to differentiate between other schema that inherit this
918
+ * schema. The property name used MUST be defined at this schema and it MUST
919
+ * be in the required property list. When used, the value MUST be the name of
920
+ * this schema or any schema that inherits it.
921
+ *
922
+ * @generated from field: string discriminator = 2;
923
+ */
924
+ this.discriminator = "";
925
+ /**
926
+ * Relevant only for Schema "properties" definitions. Declares the property as
927
+ * "read only". This means that it MAY be sent as part of a response but MUST
928
+ * NOT be sent as part of the request. Properties marked as readOnly being
929
+ * true SHOULD NOT be in the required list of the defined schema. Default
930
+ * value is false.
931
+ *
932
+ * @generated from field: bool read_only = 3;
933
+ */
934
+ this.readOnly = false;
935
+ /**
936
+ * A free-form property to include an example of an instance for this schema in JSON.
937
+ * This is copied verbatim to the output.
938
+ *
939
+ * @generated from field: string example = 6;
940
+ */
941
+ this.example = "";
942
+ protobuf_1.proto3.util.initPartial(data, this);
943
+ }
944
+ static fromBinary(bytes, options) {
945
+ return new Schema().fromBinary(bytes, options);
946
+ }
947
+ static fromJson(jsonValue, options) {
948
+ return new Schema().fromJson(jsonValue, options);
949
+ }
950
+ static fromJsonString(jsonString, options) {
951
+ return new Schema().fromJsonString(jsonString, options);
952
+ }
953
+ static equals(a, b) {
954
+ return protobuf_1.proto3.util.equals(Schema, a, b);
955
+ }
956
+ }
957
+ exports.Schema = Schema;
958
+ Schema.runtime = protobuf_1.proto3;
959
+ Schema.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Schema";
960
+ Schema.fields = protobuf_1.proto3.util.newFieldList(() => [
961
+ { no: 1, name: "json_schema", kind: "message", T: JSONSchema },
962
+ { no: 2, name: "discriminator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
963
+ { no: 3, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
964
+ { no: 5, name: "external_docs", kind: "message", T: ExternalDocumentation },
965
+ { no: 6, name: "example", kind: "scalar", T: 9 /* ScalarType.STRING */ },
966
+ ]);
967
+ /**
968
+ * `JSONSchema` represents properties from JSON Schema taken, and as used, in
969
+ * the OpenAPI v2 spec.
970
+ *
971
+ * This includes changes made by OpenAPI v2.
972
+ *
973
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
974
+ *
975
+ * See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
976
+ * https://github.com/json-schema-org/json-schema-spec/blob/master/schemaon
977
+ *
978
+ * Example:
979
+ *
980
+ * message SimpleMessage {
981
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
982
+ * json_schema: {
983
+ * title: "SimpleMessage"
984
+ * description: "A simple message."
985
+ * required: ["id"]
986
+ * }
987
+ * };
988
+ *
989
+ * // Id represents the message identifier.
990
+ * string id = 1; [
991
+ * (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
992
+ * description: "The unique identifier of the simple message."
993
+ * }];
994
+ * }
995
+ *
996
+ *
997
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema
998
+ */
999
+ class JSONSchema extends protobuf_1.Message {
1000
+ constructor(data) {
1001
+ super();
1002
+ /**
1003
+ * Ref is used to define an external reference to include in the message.
1004
+ * This could be a fully qualified proto message reference, and that type must
1005
+ * be imported into the protofile. If no message is identified, the Ref will
1006
+ * be used verbatim in the output.
1007
+ * For example:
1008
+ * `ref: ".google.protobuf.Timestamp"`.
1009
+ *
1010
+ * @generated from field: string ref = 3;
1011
+ */
1012
+ this.ref = "";
1013
+ /**
1014
+ * The title of the schema.
1015
+ *
1016
+ * @generated from field: string title = 5;
1017
+ */
1018
+ this.title = "";
1019
+ /**
1020
+ * A short description of the schema.
1021
+ *
1022
+ * @generated from field: string description = 6;
1023
+ */
1024
+ this.description = "";
1025
+ /**
1026
+ * @generated from field: string default = 7;
1027
+ */
1028
+ this.default = "";
1029
+ /**
1030
+ * @generated from field: bool read_only = 8;
1031
+ */
1032
+ this.readOnly = false;
1033
+ /**
1034
+ * A free-form property to include a JSON example of this field. This is copied
1035
+ * verbatim to the output swaggeron. Quotes must be escaped.
1036
+ * 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
1037
+ *
1038
+ * @generated from field: string example = 9;
1039
+ */
1040
+ this.example = "";
1041
+ /**
1042
+ * @generated from field: double multiple_of = 10;
1043
+ */
1044
+ this.multipleOf = 0;
1045
+ /**
1046
+ * Maximum represents an inclusive upper limit for a numeric instance. The
1047
+ * value of MUST be a number,
1048
+ *
1049
+ * @generated from field: double maximum = 11;
1050
+ */
1051
+ this.maximum = 0;
1052
+ /**
1053
+ * @generated from field: bool exclusive_maximum = 12;
1054
+ */
1055
+ this.exclusiveMaximum = false;
1056
+ /**
1057
+ * minimum represents an inclusive lower limit for a numeric instance. The
1058
+ * value of MUST be a number,
1059
+ *
1060
+ * @generated from field: double minimum = 13;
1061
+ */
1062
+ this.minimum = 0;
1063
+ /**
1064
+ * @generated from field: bool exclusive_minimum = 14;
1065
+ */
1066
+ this.exclusiveMinimum = false;
1067
+ /**
1068
+ * @generated from field: uint64 max_length = 15;
1069
+ */
1070
+ this.maxLength = protobuf_1.protoInt64.zero;
1071
+ /**
1072
+ * @generated from field: uint64 min_length = 16;
1073
+ */
1074
+ this.minLength = protobuf_1.protoInt64.zero;
1075
+ /**
1076
+ * @generated from field: string pattern = 17;
1077
+ */
1078
+ this.pattern = "";
1079
+ /**
1080
+ * @generated from field: uint64 max_items = 20;
1081
+ */
1082
+ this.maxItems = protobuf_1.protoInt64.zero;
1083
+ /**
1084
+ * @generated from field: uint64 min_items = 21;
1085
+ */
1086
+ this.minItems = protobuf_1.protoInt64.zero;
1087
+ /**
1088
+ * @generated from field: bool unique_items = 22;
1089
+ */
1090
+ this.uniqueItems = false;
1091
+ /**
1092
+ * @generated from field: uint64 max_properties = 24;
1093
+ */
1094
+ this.maxProperties = protobuf_1.protoInt64.zero;
1095
+ /**
1096
+ * @generated from field: uint64 min_properties = 25;
1097
+ */
1098
+ this.minProperties = protobuf_1.protoInt64.zero;
1099
+ /**
1100
+ * @generated from field: repeated string required = 26;
1101
+ */
1102
+ this.required = [];
1103
+ /**
1104
+ * Items in 'array' must be unique.
1105
+ *
1106
+ * @generated from field: repeated string array = 34;
1107
+ */
1108
+ this.array = [];
1109
+ /**
1110
+ * @generated from field: repeated grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
1111
+ */
1112
+ this.type = [];
1113
+ /**
1114
+ * `Format`
1115
+ *
1116
+ * @generated from field: string format = 36;
1117
+ */
1118
+ this.format = "";
1119
+ /**
1120
+ * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
1121
+ *
1122
+ * @generated from field: repeated string enum = 46;
1123
+ */
1124
+ this.enum = [];
1125
+ /**
1126
+ * Custom properties that start with "x-" such as "x-foo" used to describe
1127
+ * extra functionality that is not covered by the standard OpenAPI Specification.
1128
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
1129
+ *
1130
+ * @generated from field: map<string, google.protobuf.Value> extensions = 48;
1131
+ */
1132
+ this.extensions = {};
1133
+ protobuf_1.proto3.util.initPartial(data, this);
1134
+ }
1135
+ static fromBinary(bytes, options) {
1136
+ return new JSONSchema().fromBinary(bytes, options);
1137
+ }
1138
+ static fromJson(jsonValue, options) {
1139
+ return new JSONSchema().fromJson(jsonValue, options);
1140
+ }
1141
+ static fromJsonString(jsonString, options) {
1142
+ return new JSONSchema().fromJsonString(jsonString, options);
1143
+ }
1144
+ static equals(a, b) {
1145
+ return protobuf_1.proto3.util.equals(JSONSchema, a, b);
1146
+ }
1147
+ }
1148
+ exports.JSONSchema = JSONSchema;
1149
+ JSONSchema.runtime = protobuf_1.proto3;
1150
+ JSONSchema.typeName = "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema";
1151
+ JSONSchema.fields = protobuf_1.proto3.util.newFieldList(() => [
1152
+ { no: 3, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1153
+ { no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1154
+ { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1155
+ { no: 7, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1156
+ { no: 8, name: "read_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1157
+ { no: 9, name: "example", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1158
+ { no: 10, name: "multiple_of", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1159
+ { no: 11, name: "maximum", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1160
+ { no: 12, name: "exclusive_maximum", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1161
+ { no: 13, name: "minimum", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1162
+ { no: 14, name: "exclusive_minimum", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1163
+ { no: 15, name: "max_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1164
+ { no: 16, name: "min_length", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1165
+ { no: 17, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1166
+ { no: 20, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1167
+ { no: 21, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1168
+ { no: 22, name: "unique_items", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1169
+ { no: 24, name: "max_properties", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1170
+ { no: 25, name: "min_properties", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1171
+ { no: 26, name: "required", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1172
+ { no: 34, name: "array", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1173
+ { no: 35, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(JSONSchema_JSONSchemaSimpleTypes), repeated: true },
1174
+ { no: 36, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1175
+ { no: 46, name: "enum", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1176
+ { no: 1001, name: "field_configuration", kind: "message", T: JSONSchema_FieldConfiguration },
1177
+ { no: 48, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
1178
+ ]);
1179
+ /**
1180
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
1181
+ */
1182
+ var JSONSchema_JSONSchemaSimpleTypes;
1183
+ (function (JSONSchema_JSONSchemaSimpleTypes) {
1184
+ /**
1185
+ * @generated from enum value: UNKNOWN = 0;
1186
+ */
1187
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["UNKNOWN"] = 0] = "UNKNOWN";
1188
+ /**
1189
+ * @generated from enum value: ARRAY = 1;
1190
+ */
1191
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["ARRAY"] = 1] = "ARRAY";
1192
+ /**
1193
+ * @generated from enum value: BOOLEAN = 2;
1194
+ */
1195
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["BOOLEAN"] = 2] = "BOOLEAN";
1196
+ /**
1197
+ * @generated from enum value: INTEGER = 3;
1198
+ */
1199
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["INTEGER"] = 3] = "INTEGER";
1200
+ /**
1201
+ * @generated from enum value: NULL = 4;
1202
+ */
1203
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["NULL"] = 4] = "NULL";
1204
+ /**
1205
+ * @generated from enum value: NUMBER = 5;
1206
+ */
1207
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["NUMBER"] = 5] = "NUMBER";
1208
+ /**
1209
+ * @generated from enum value: OBJECT = 6;
1210
+ */
1211
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["OBJECT"] = 6] = "OBJECT";
1212
+ /**
1213
+ * @generated from enum value: STRING = 7;
1214
+ */
1215
+ JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["STRING"] = 7] = "STRING";
1216
+ })(JSONSchema_JSONSchemaSimpleTypes || (exports.JSONSchema_JSONSchemaSimpleTypes = JSONSchema_JSONSchemaSimpleTypes = {}));
1217
+ // Retrieve enum metadata with: proto3.getEnumType(JSONSchema_JSONSchemaSimpleTypes)
1218
+ protobuf_1.proto3.util.setEnumType(JSONSchema_JSONSchemaSimpleTypes, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", [
1219
+ { no: 0, name: "UNKNOWN" },
1220
+ { no: 1, name: "ARRAY" },
1221
+ { no: 2, name: "BOOLEAN" },
1222
+ { no: 3, name: "INTEGER" },
1223
+ { no: 4, name: "NULL" },
1224
+ { no: 5, name: "NUMBER" },
1225
+ { no: 6, name: "OBJECT" },
1226
+ { no: 7, name: "STRING" },
1227
+ ]);
1228
+ /**
1229
+ * 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
1230
+ * These properties are not defined by OpenAPIv2, but they are used to control the generation.
1231
+ *
1232
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration
1233
+ */
1234
+ class JSONSchema_FieldConfiguration extends protobuf_1.Message {
1235
+ constructor(data) {
1236
+ super();
1237
+ /**
1238
+ * Alternative parameter name when used as path parameter. If set, this will
1239
+ * be used as the complete parameter name when this field is used as a path
1240
+ * parameter. Use this to avoid having auto generated path parameter names
1241
+ * for overlapping paths.
1242
+ *
1243
+ * @generated from field: string path_param_name = 47;
1244
+ */
1245
+ this.pathParamName = "";
1246
+ protobuf_1.proto3.util.initPartial(data, this);
1247
+ }
1248
+ static fromBinary(bytes, options) {
1249
+ return new JSONSchema_FieldConfiguration().fromBinary(bytes, options);
1250
+ }
1251
+ static fromJson(jsonValue, options) {
1252
+ return new JSONSchema_FieldConfiguration().fromJson(jsonValue, options);
1253
+ }
1254
+ static fromJsonString(jsonString, options) {
1255
+ return new JSONSchema_FieldConfiguration().fromJsonString(jsonString, options);
1256
+ }
1257
+ static equals(a, b) {
1258
+ return protobuf_1.proto3.util.equals(JSONSchema_FieldConfiguration, a, b);
1259
+ }
1260
+ }
1261
+ exports.JSONSchema_FieldConfiguration = JSONSchema_FieldConfiguration;
1262
+ JSONSchema_FieldConfiguration.runtime = protobuf_1.proto3;
1263
+ JSONSchema_FieldConfiguration.typeName = "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration";
1264
+ JSONSchema_FieldConfiguration.fields = protobuf_1.proto3.util.newFieldList(() => [
1265
+ { no: 47, name: "path_param_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1266
+ ]);
1267
+ /**
1268
+ * `Tag` is a representation of OpenAPI v2 specification's Tag object.
1269
+ *
1270
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
1271
+ *
1272
+ *
1273
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Tag
1274
+ */
1275
+ class Tag extends protobuf_1.Message {
1276
+ constructor(data) {
1277
+ super();
1278
+ /**
1279
+ * The name of the tag. Use it to allow override of the name of a
1280
+ * global Tag object, then use that name to reference the tag throughout the
1281
+ * OpenAPI file.
1282
+ *
1283
+ * @generated from field: string name = 1;
1284
+ */
1285
+ this.name = "";
1286
+ /**
1287
+ * A short description for the tag. GFM syntax can be used for rich text
1288
+ * representation.
1289
+ *
1290
+ * @generated from field: string description = 2;
1291
+ */
1292
+ this.description = "";
1293
+ /**
1294
+ * Custom properties that start with "x-" such as "x-foo" used to describe
1295
+ * extra functionality that is not covered by the standard OpenAPI Specification.
1296
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
1297
+ *
1298
+ * @generated from field: map<string, google.protobuf.Value> extensions = 4;
1299
+ */
1300
+ this.extensions = {};
1301
+ protobuf_1.proto3.util.initPartial(data, this);
1302
+ }
1303
+ static fromBinary(bytes, options) {
1304
+ return new Tag().fromBinary(bytes, options);
1305
+ }
1306
+ static fromJson(jsonValue, options) {
1307
+ return new Tag().fromJson(jsonValue, options);
1308
+ }
1309
+ static fromJsonString(jsonString, options) {
1310
+ return new Tag().fromJsonString(jsonString, options);
1311
+ }
1312
+ static equals(a, b) {
1313
+ return protobuf_1.proto3.util.equals(Tag, a, b);
1314
+ }
1315
+ }
1316
+ exports.Tag = Tag;
1317
+ Tag.runtime = protobuf_1.proto3;
1318
+ Tag.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Tag";
1319
+ Tag.fields = protobuf_1.proto3.util.newFieldList(() => [
1320
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1321
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1322
+ { no: 3, name: "external_docs", kind: "message", T: ExternalDocumentation },
1323
+ { no: 4, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
1324
+ ]);
1325
+ /**
1326
+ * `SecurityDefinitions` is a representation of OpenAPI v2 specification's
1327
+ * Security Definitions object.
1328
+ *
1329
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
1330
+ *
1331
+ * A declaration of the security schemes available to be used in the
1332
+ * specification. This does not enforce the security schemes on the operations
1333
+ * and only serves to provide the relevant details for each scheme.
1334
+ *
1335
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions
1336
+ */
1337
+ class SecurityDefinitions extends protobuf_1.Message {
1338
+ constructor(data) {
1339
+ super();
1340
+ /**
1341
+ * A single security scheme definition, mapping a "name" to the scheme it
1342
+ * defines.
1343
+ *
1344
+ * @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1;
1345
+ */
1346
+ this.security = {};
1347
+ protobuf_1.proto3.util.initPartial(data, this);
1348
+ }
1349
+ static fromBinary(bytes, options) {
1350
+ return new SecurityDefinitions().fromBinary(bytes, options);
1351
+ }
1352
+ static fromJson(jsonValue, options) {
1353
+ return new SecurityDefinitions().fromJson(jsonValue, options);
1354
+ }
1355
+ static fromJsonString(jsonString, options) {
1356
+ return new SecurityDefinitions().fromJsonString(jsonString, options);
1357
+ }
1358
+ static equals(a, b) {
1359
+ return protobuf_1.proto3.util.equals(SecurityDefinitions, a, b);
1360
+ }
1361
+ }
1362
+ exports.SecurityDefinitions = SecurityDefinitions;
1363
+ SecurityDefinitions.runtime = protobuf_1.proto3;
1364
+ SecurityDefinitions.typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions";
1365
+ SecurityDefinitions.fields = protobuf_1.proto3.util.newFieldList(() => [
1366
+ { no: 1, name: "security", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: SecurityScheme } },
1367
+ ]);
1368
+ /**
1369
+ * `SecurityScheme` is a representation of OpenAPI v2 specification's
1370
+ * Security Scheme object.
1371
+ *
1372
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
1373
+ *
1374
+ * Allows the definition of a security scheme that can be used by the
1375
+ * operations. Supported schemes are basic authentication, an API key (either as
1376
+ * a header or as a query parameter) and OAuth2's common flows (implicit,
1377
+ * password, application and access code).
1378
+ *
1379
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme
1380
+ */
1381
+ class SecurityScheme extends protobuf_1.Message {
1382
+ constructor(data) {
1383
+ super();
1384
+ /**
1385
+ * The type of the security scheme. Valid values are "basic",
1386
+ * "apiKey" or "oauth2".
1387
+ *
1388
+ * @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;
1389
+ */
1390
+ this.type = SecurityScheme_Type.INVALID;
1391
+ /**
1392
+ * A short description for security scheme.
1393
+ *
1394
+ * @generated from field: string description = 2;
1395
+ */
1396
+ this.description = "";
1397
+ /**
1398
+ * The name of the header or query parameter to be used.
1399
+ * Valid for apiKey.
1400
+ *
1401
+ * @generated from field: string name = 3;
1402
+ */
1403
+ this.name = "";
1404
+ /**
1405
+ * The location of the API key. Valid values are "query" or
1406
+ * "header".
1407
+ * Valid for apiKey.
1408
+ *
1409
+ * @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4;
1410
+ */
1411
+ this.in = SecurityScheme_In.INVALID;
1412
+ /**
1413
+ * The flow used by the OAuth2 security scheme. Valid values are
1414
+ * "implicit", "password", "application" or "accessCode".
1415
+ * Valid for oauth2.
1416
+ *
1417
+ * @generated from field: grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5;
1418
+ */
1419
+ this.flow = SecurityScheme_Flow.INVALID;
1420
+ /**
1421
+ * The authorization URL to be used for this flow. This SHOULD be in
1422
+ * the form of a URL.
1423
+ * Valid for oauth2/implicit and oauth2/accessCode.
1424
+ *
1425
+ * @generated from field: string authorization_url = 6;
1426
+ */
1427
+ this.authorizationUrl = "";
1428
+ /**
1429
+ * The token URL to be used for this flow. This SHOULD be in the
1430
+ * form of a URL.
1431
+ * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
1432
+ *
1433
+ * @generated from field: string token_url = 7;
1434
+ */
1435
+ this.tokenUrl = "";
1436
+ /**
1437
+ * Custom properties that start with "x-" such as "x-foo" used to describe
1438
+ * extra functionality that is not covered by the standard OpenAPI Specification.
1439
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
1440
+ *
1441
+ * @generated from field: map<string, google.protobuf.Value> extensions = 9;
1442
+ */
1443
+ this.extensions = {};
1444
+ protobuf_1.proto3.util.initPartial(data, this);
1445
+ }
1446
+ static fromBinary(bytes, options) {
1447
+ return new SecurityScheme().fromBinary(bytes, options);
1448
+ }
1449
+ static fromJson(jsonValue, options) {
1450
+ return new SecurityScheme().fromJson(jsonValue, options);
1451
+ }
1452
+ static fromJsonString(jsonString, options) {
1453
+ return new SecurityScheme().fromJsonString(jsonString, options);
1454
+ }
1455
+ static equals(a, b) {
1456
+ return protobuf_1.proto3.util.equals(SecurityScheme, a, b);
1457
+ }
1458
+ }
1459
+ exports.SecurityScheme = SecurityScheme;
1460
+ SecurityScheme.runtime = protobuf_1.proto3;
1461
+ SecurityScheme.typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme";
1462
+ SecurityScheme.fields = protobuf_1.proto3.util.newFieldList(() => [
1463
+ { no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(SecurityScheme_Type) },
1464
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1465
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1466
+ { no: 4, name: "in", kind: "enum", T: protobuf_1.proto3.getEnumType(SecurityScheme_In) },
1467
+ { no: 5, name: "flow", kind: "enum", T: protobuf_1.proto3.getEnumType(SecurityScheme_Flow) },
1468
+ { no: 6, name: "authorization_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1469
+ { no: 7, name: "token_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1470
+ { no: 8, name: "scopes", kind: "message", T: Scopes },
1471
+ { no: 9, name: "extensions", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: protobuf_1.Value } },
1472
+ ]);
1473
+ /**
1474
+ * The type of the security scheme. Valid values are "basic",
1475
+ * "apiKey" or "oauth2".
1476
+ *
1477
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type
1478
+ */
1479
+ var SecurityScheme_Type;
1480
+ (function (SecurityScheme_Type) {
1481
+ /**
1482
+ * @generated from enum value: TYPE_INVALID = 0;
1483
+ */
1484
+ SecurityScheme_Type[SecurityScheme_Type["INVALID"] = 0] = "INVALID";
1485
+ /**
1486
+ * @generated from enum value: TYPE_BASIC = 1;
1487
+ */
1488
+ SecurityScheme_Type[SecurityScheme_Type["BASIC"] = 1] = "BASIC";
1489
+ /**
1490
+ * @generated from enum value: TYPE_API_KEY = 2;
1491
+ */
1492
+ SecurityScheme_Type[SecurityScheme_Type["API_KEY"] = 2] = "API_KEY";
1493
+ /**
1494
+ * @generated from enum value: TYPE_OAUTH2 = 3;
1495
+ */
1496
+ SecurityScheme_Type[SecurityScheme_Type["OAUTH2"] = 3] = "OAUTH2";
1497
+ })(SecurityScheme_Type || (exports.SecurityScheme_Type = SecurityScheme_Type = {}));
1498
+ // Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_Type)
1499
+ protobuf_1.proto3.util.setEnumType(SecurityScheme_Type, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type", [
1500
+ { no: 0, name: "TYPE_INVALID" },
1501
+ { no: 1, name: "TYPE_BASIC" },
1502
+ { no: 2, name: "TYPE_API_KEY" },
1503
+ { no: 3, name: "TYPE_OAUTH2" },
1504
+ ]);
1505
+ /**
1506
+ * The location of the API key. Valid values are "query" or "header".
1507
+ *
1508
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In
1509
+ */
1510
+ var SecurityScheme_In;
1511
+ (function (SecurityScheme_In) {
1512
+ /**
1513
+ * @generated from enum value: IN_INVALID = 0;
1514
+ */
1515
+ SecurityScheme_In[SecurityScheme_In["INVALID"] = 0] = "INVALID";
1516
+ /**
1517
+ * @generated from enum value: IN_QUERY = 1;
1518
+ */
1519
+ SecurityScheme_In[SecurityScheme_In["QUERY"] = 1] = "QUERY";
1520
+ /**
1521
+ * @generated from enum value: IN_HEADER = 2;
1522
+ */
1523
+ SecurityScheme_In[SecurityScheme_In["HEADER"] = 2] = "HEADER";
1524
+ })(SecurityScheme_In || (exports.SecurityScheme_In = SecurityScheme_In = {}));
1525
+ // Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_In)
1526
+ protobuf_1.proto3.util.setEnumType(SecurityScheme_In, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", [
1527
+ { no: 0, name: "IN_INVALID" },
1528
+ { no: 1, name: "IN_QUERY" },
1529
+ { no: 2, name: "IN_HEADER" },
1530
+ ]);
1531
+ /**
1532
+ * The flow used by the OAuth2 security scheme. Valid values are
1533
+ * "implicit", "password", "application" or "accessCode".
1534
+ *
1535
+ * @generated from enum grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow
1536
+ */
1537
+ var SecurityScheme_Flow;
1538
+ (function (SecurityScheme_Flow) {
1539
+ /**
1540
+ * @generated from enum value: FLOW_INVALID = 0;
1541
+ */
1542
+ SecurityScheme_Flow[SecurityScheme_Flow["INVALID"] = 0] = "INVALID";
1543
+ /**
1544
+ * @generated from enum value: FLOW_IMPLICIT = 1;
1545
+ */
1546
+ SecurityScheme_Flow[SecurityScheme_Flow["IMPLICIT"] = 1] = "IMPLICIT";
1547
+ /**
1548
+ * @generated from enum value: FLOW_PASSWORD = 2;
1549
+ */
1550
+ SecurityScheme_Flow[SecurityScheme_Flow["PASSWORD"] = 2] = "PASSWORD";
1551
+ /**
1552
+ * @generated from enum value: FLOW_APPLICATION = 3;
1553
+ */
1554
+ SecurityScheme_Flow[SecurityScheme_Flow["APPLICATION"] = 3] = "APPLICATION";
1555
+ /**
1556
+ * @generated from enum value: FLOW_ACCESS_CODE = 4;
1557
+ */
1558
+ SecurityScheme_Flow[SecurityScheme_Flow["ACCESS_CODE"] = 4] = "ACCESS_CODE";
1559
+ })(SecurityScheme_Flow || (exports.SecurityScheme_Flow = SecurityScheme_Flow = {}));
1560
+ // Retrieve enum metadata with: proto3.getEnumType(SecurityScheme_Flow)
1561
+ protobuf_1.proto3.util.setEnumType(SecurityScheme_Flow, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", [
1562
+ { no: 0, name: "FLOW_INVALID" },
1563
+ { no: 1, name: "FLOW_IMPLICIT" },
1564
+ { no: 2, name: "FLOW_PASSWORD" },
1565
+ { no: 3, name: "FLOW_APPLICATION" },
1566
+ { no: 4, name: "FLOW_ACCESS_CODE" },
1567
+ ]);
1568
+ /**
1569
+ * `SecurityRequirement` is a representation of OpenAPI v2 specification's
1570
+ * Security Requirement object.
1571
+ *
1572
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
1573
+ *
1574
+ * Lists the required security schemes to execute this operation. The object can
1575
+ * have multiple security schemes declared in it which are all required (that
1576
+ * is, there is a logical AND between the schemes).
1577
+ *
1578
+ * The name used for each property MUST correspond to a security scheme
1579
+ * declared in the Security Definitions.
1580
+ *
1581
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement
1582
+ */
1583
+ class SecurityRequirement extends protobuf_1.Message {
1584
+ constructor(data) {
1585
+ super();
1586
+ /**
1587
+ * Each name must correspond to a security scheme which is declared in
1588
+ * the Security Definitions. If the security scheme is of type "oauth2",
1589
+ * then the value is a list of scope names required for the execution.
1590
+ * For other security scheme types, the array MUST be empty.
1591
+ *
1592
+ * @generated from field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1;
1593
+ */
1594
+ this.securityRequirement = {};
1595
+ protobuf_1.proto3.util.initPartial(data, this);
1596
+ }
1597
+ static fromBinary(bytes, options) {
1598
+ return new SecurityRequirement().fromBinary(bytes, options);
1599
+ }
1600
+ static fromJson(jsonValue, options) {
1601
+ return new SecurityRequirement().fromJson(jsonValue, options);
1602
+ }
1603
+ static fromJsonString(jsonString, options) {
1604
+ return new SecurityRequirement().fromJsonString(jsonString, options);
1605
+ }
1606
+ static equals(a, b) {
1607
+ return protobuf_1.proto3.util.equals(SecurityRequirement, a, b);
1608
+ }
1609
+ }
1610
+ exports.SecurityRequirement = SecurityRequirement;
1611
+ SecurityRequirement.runtime = protobuf_1.proto3;
1612
+ SecurityRequirement.typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement";
1613
+ SecurityRequirement.fields = protobuf_1.proto3.util.newFieldList(() => [
1614
+ { no: 1, name: "security_requirement", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: SecurityRequirement_SecurityRequirementValue } },
1615
+ ]);
1616
+ /**
1617
+ * If the security scheme is of type "oauth2", then the value is a list of
1618
+ * scope names required for the execution. For other security scheme types,
1619
+ * the array MUST be empty.
1620
+ *
1621
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue
1622
+ */
1623
+ class SecurityRequirement_SecurityRequirementValue extends protobuf_1.Message {
1624
+ constructor(data) {
1625
+ super();
1626
+ /**
1627
+ * @generated from field: repeated string scope = 1;
1628
+ */
1629
+ this.scope = [];
1630
+ protobuf_1.proto3.util.initPartial(data, this);
1631
+ }
1632
+ static fromBinary(bytes, options) {
1633
+ return new SecurityRequirement_SecurityRequirementValue().fromBinary(bytes, options);
1634
+ }
1635
+ static fromJson(jsonValue, options) {
1636
+ return new SecurityRequirement_SecurityRequirementValue().fromJson(jsonValue, options);
1637
+ }
1638
+ static fromJsonString(jsonString, options) {
1639
+ return new SecurityRequirement_SecurityRequirementValue().fromJsonString(jsonString, options);
1640
+ }
1641
+ static equals(a, b) {
1642
+ return protobuf_1.proto3.util.equals(SecurityRequirement_SecurityRequirementValue, a, b);
1643
+ }
1644
+ }
1645
+ exports.SecurityRequirement_SecurityRequirementValue = SecurityRequirement_SecurityRequirementValue;
1646
+ SecurityRequirement_SecurityRequirementValue.runtime = protobuf_1.proto3;
1647
+ SecurityRequirement_SecurityRequirementValue.typeName = "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue";
1648
+ SecurityRequirement_SecurityRequirementValue.fields = protobuf_1.proto3.util.newFieldList(() => [
1649
+ { no: 1, name: "scope", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1650
+ ]);
1651
+ /**
1652
+ * `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
1653
+ *
1654
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
1655
+ *
1656
+ * Lists the available scopes for an OAuth2 security scheme.
1657
+ *
1658
+ * @generated from message grpc.gateway.protoc_gen_openapiv2.options.Scopes
1659
+ */
1660
+ class Scopes extends protobuf_1.Message {
1661
+ constructor(data) {
1662
+ super();
1663
+ /**
1664
+ * Maps between a name of a scope to a short description of it (as the value
1665
+ * of the property).
1666
+ *
1667
+ * @generated from field: map<string, string> scope = 1;
1668
+ */
1669
+ this.scope = {};
1670
+ protobuf_1.proto3.util.initPartial(data, this);
1671
+ }
1672
+ static fromBinary(bytes, options) {
1673
+ return new Scopes().fromBinary(bytes, options);
1674
+ }
1675
+ static fromJson(jsonValue, options) {
1676
+ return new Scopes().fromJson(jsonValue, options);
1677
+ }
1678
+ static fromJsonString(jsonString, options) {
1679
+ return new Scopes().fromJsonString(jsonString, options);
1680
+ }
1681
+ static equals(a, b) {
1682
+ return protobuf_1.proto3.util.equals(Scopes, a, b);
1683
+ }
1684
+ }
1685
+ exports.Scopes = Scopes;
1686
+ Scopes.runtime = protobuf_1.proto3;
1687
+ Scopes.typeName = "grpc.gateway.protoc_gen_openapiv2.options.Scopes";
1688
+ Scopes.fields = protobuf_1.proto3.util.newFieldList(() => [
1689
+ { no: 1, name: "scope", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1690
+ ]);
1691
+ //# sourceMappingURL=openapiv2_pb.js.map