You've already forked npm-core-sdk
Latest generation
This commit is contained in:
304
openapiv2.ts
304
openapiv2.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "openapiv2.proto" (package "grpc.gateway.protoc_gen_openapiv2.options", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -79,7 +79,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: string base_path = 4;
|
||||
*/
|
||||
basePath: string;
|
||||
base_path: string;
|
||||
/**
|
||||
* The transfer protocol of the API. Values MUST be from the list: "http",
|
||||
* "https", "ws", "wss". If the schemes is not included, the default scheme to
|
||||
@@ -118,7 +118,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11;
|
||||
*/
|
||||
securityDefinitions?: SecurityDefinitions;
|
||||
security_definitions?: SecurityDefinitions;
|
||||
/**
|
||||
* A declaration of which security schemes are applied for the API as a whole.
|
||||
* The list of values describes alternative security schemes that can be used
|
||||
@@ -140,7 +140,7 @@ export interface Swagger {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||
@@ -208,7 +208,7 @@ export interface Operation {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* Unique string used to identify the operation. The id MUST be unique among
|
||||
* all operations described in the API. Tools and libraries MAY use the
|
||||
@@ -217,7 +217,7 @@ export interface Operation {
|
||||
*
|
||||
* @generated from protobuf field: string operation_id = 5;
|
||||
*/
|
||||
operationId: string;
|
||||
operation_id: string;
|
||||
/**
|
||||
* A list of MIME types the operation can consume. This overrides the consumes
|
||||
* definition at the OpenAPI Object. An empty value MAY be used to clear the
|
||||
@@ -421,7 +421,7 @@ export interface Info {
|
||||
*
|
||||
* @generated from protobuf field: string terms_of_service = 3;
|
||||
*/
|
||||
termsOfService: string;
|
||||
terms_of_service: string;
|
||||
/**
|
||||
* The contact information for the exposed API.
|
||||
*
|
||||
@@ -581,7 +581,7 @@ export interface Schema {
|
||||
/**
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;
|
||||
*/
|
||||
jsonSchema?: JSONSchema;
|
||||
json_schema?: JSONSchema;
|
||||
/**
|
||||
* Adds support for polymorphism. The discriminator is the schema property
|
||||
* name that is used to differentiate between other schema that inherit this
|
||||
@@ -601,13 +601,13 @@ export interface Schema {
|
||||
*
|
||||
* @generated from protobuf field: bool read_only = 3;
|
||||
*/
|
||||
readOnly: boolean;
|
||||
read_only: boolean;
|
||||
/**
|
||||
* Additional external documentation for this schema.
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* A free-form property to include an example of an instance for this schema in JSON.
|
||||
* This is copied verbatim to the output.
|
||||
@@ -679,7 +679,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool read_only = 8;
|
||||
*/
|
||||
readOnly: boolean;
|
||||
read_only: boolean;
|
||||
/**
|
||||
* A free-form property to include a JSON example of this field. This is copied
|
||||
* verbatim to the output swagger.json. Quotes must be escaped.
|
||||
@@ -691,7 +691,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: double multiple_of = 10;
|
||||
*/
|
||||
multipleOf: number;
|
||||
multiple_of: number;
|
||||
/**
|
||||
* Maximum represents an inclusive upper limit for a numeric instance. The
|
||||
* value of MUST be a number,
|
||||
@@ -702,7 +702,7 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool exclusive_maximum = 12;
|
||||
*/
|
||||
exclusiveMaximum: boolean;
|
||||
exclusive_maximum: boolean;
|
||||
/**
|
||||
* minimum represents an inclusive lower limit for a numeric instance. The
|
||||
* value of MUST be a number,
|
||||
@@ -713,15 +713,15 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: bool exclusive_minimum = 14;
|
||||
*/
|
||||
exclusiveMinimum: boolean;
|
||||
exclusive_minimum: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_length = 15;
|
||||
*/
|
||||
maxLength: bigint;
|
||||
max_length: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_length = 16;
|
||||
*/
|
||||
minLength: bigint;
|
||||
min_length: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: string pattern = 17;
|
||||
*/
|
||||
@@ -729,23 +729,23 @@ export interface JSONSchema {
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_items = 20;
|
||||
*/
|
||||
maxItems: bigint;
|
||||
max_items: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_items = 21;
|
||||
*/
|
||||
minItems: bigint;
|
||||
min_items: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: bool unique_items = 22;
|
||||
*/
|
||||
uniqueItems: boolean;
|
||||
unique_items: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 max_properties = 24;
|
||||
*/
|
||||
maxProperties: bigint;
|
||||
max_properties: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: uint64 min_properties = 25;
|
||||
*/
|
||||
minProperties: bigint;
|
||||
min_properties: bigint;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string required = 26;
|
||||
*/
|
||||
@@ -777,7 +777,7 @@ export interface JSONSchema {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
|
||||
*/
|
||||
fieldConfiguration?: JSONSchema_FieldConfiguration;
|
||||
field_configuration?: JSONSchema_FieldConfiguration;
|
||||
/**
|
||||
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||
@@ -804,7 +804,7 @@ export interface JSONSchema_FieldConfiguration {
|
||||
*
|
||||
* @generated from protobuf field: string path_param_name = 47;
|
||||
*/
|
||||
pathParamName: string;
|
||||
path_param_name: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
|
||||
@@ -872,7 +872,7 @@ export interface Tag {
|
||||
*
|
||||
* @generated from protobuf field: grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3;
|
||||
*/
|
||||
externalDocs?: ExternalDocumentation;
|
||||
external_docs?: ExternalDocumentation;
|
||||
/**
|
||||
* Custom properties that start with "x-" such as "x-foo" used to describe
|
||||
* extra functionality that is not covered by the standard OpenAPI Specification.
|
||||
@@ -964,7 +964,7 @@ export interface SecurityScheme {
|
||||
*
|
||||
* @generated from protobuf field: string authorization_url = 6;
|
||||
*/
|
||||
authorizationUrl: string;
|
||||
authorization_url: string;
|
||||
/**
|
||||
* The token URL to be used for this flow. This SHOULD be in the
|
||||
* form of a URL.
|
||||
@@ -972,7 +972,7 @@ export interface SecurityScheme {
|
||||
*
|
||||
* @generated from protobuf field: string token_url = 7;
|
||||
*/
|
||||
tokenUrl: string;
|
||||
token_url: string;
|
||||
/**
|
||||
* The available scopes for the OAuth2 security scheme.
|
||||
* Valid for oauth2.
|
||||
@@ -1086,7 +1086,7 @@ export interface SecurityRequirement {
|
||||
*
|
||||
* @generated from protobuf field: map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1;
|
||||
*/
|
||||
securityRequirement: {
|
||||
security_requirement: {
|
||||
[key: string]: SecurityRequirement_SecurityRequirementValue;
|
||||
};
|
||||
}
|
||||
@@ -1158,15 +1158,15 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
{ no: 1, name: "swagger", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "info", kind: "message", T: () => Info },
|
||||
{ no: 3, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "base_path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "base_path", kind: "scalar", localName: "base_path", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "schemes", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.Scheme", Scheme] },
|
||||
{ no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
||||
{ no: 11, name: "security_definitions", kind: "message", T: () => SecurityDefinitions },
|
||||
{ no: 11, name: "security_definitions", kind: "message", localName: "security_definitions", T: () => SecurityDefinitions },
|
||||
{ no: 12, name: "security", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => SecurityRequirement },
|
||||
{ no: 13, name: "tags", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Tag },
|
||||
{ no: 14, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 14, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 15, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
}
|
||||
@@ -1174,7 +1174,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.swagger = "";
|
||||
message.host = "";
|
||||
message.basePath = "";
|
||||
message.base_path = "";
|
||||
message.schemes = [];
|
||||
message.consumes = [];
|
||||
message.produces = [];
|
||||
@@ -1201,7 +1201,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
message.host = reader.string();
|
||||
break;
|
||||
case /* string base_path */ 4:
|
||||
message.basePath = reader.string();
|
||||
message.base_path = reader.string();
|
||||
break;
|
||||
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes */ 5:
|
||||
if (wireType === WireType.LengthDelimited)
|
||||
@@ -1220,7 +1220,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
this.binaryReadMap10(message.responses, reader, options);
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions */ 11:
|
||||
message.securityDefinitions = SecurityDefinitions.internalBinaryRead(reader, reader.uint32(), options, message.securityDefinitions);
|
||||
message.security_definitions = SecurityDefinitions.internalBinaryRead(reader, reader.uint32(), options, message.security_definitions);
|
||||
break;
|
||||
case /* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security */ 12:
|
||||
message.security.push(SecurityRequirement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
@@ -1229,7 +1229,7 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
message.tags.push(Tag.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 14:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* map<string, google.protobuf.Value> extensions */ 15:
|
||||
this.binaryReadMap15(message.extensions, reader, options);
|
||||
@@ -1288,8 +1288,8 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
if (message.host !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.host);
|
||||
/* string base_path = 4; */
|
||||
if (message.basePath !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.basePath);
|
||||
if (message.base_path !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.base_path);
|
||||
/* repeated grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; */
|
||||
if (message.schemes.length) {
|
||||
writer.tag(5, WireType.LengthDelimited).fork();
|
||||
@@ -1311,8 +1311,8 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
writer.join().join();
|
||||
}
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */
|
||||
if (message.securityDefinitions)
|
||||
SecurityDefinitions.internalBinaryWrite(message.securityDefinitions, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.security_definitions)
|
||||
SecurityDefinitions.internalBinaryWrite(message.security_definitions, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */
|
||||
for (let i = 0; i < message.security.length; i++)
|
||||
SecurityRequirement.internalBinaryWrite(message.security[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1320,8 +1320,8 @@ class Swagger$Type extends MessageType<Swagger> {
|
||||
for (let i = 0; i < message.tags.length; i++)
|
||||
Tag.internalBinaryWrite(message.tags[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
/* map<string, google.protobuf.Value> extensions = 15; */
|
||||
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||
writer.tag(15, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
@@ -1346,8 +1346,8 @@ class Operation$Type extends MessageType<Operation> {
|
||||
{ no: 1, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "summary", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 5, name: "operation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 5, name: "operation_id", kind: "scalar", localName: "operation_id", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "consumes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "produces", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "responses", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Response } },
|
||||
@@ -1362,7 +1362,7 @@ class Operation$Type extends MessageType<Operation> {
|
||||
message.tags = [];
|
||||
message.summary = "";
|
||||
message.description = "";
|
||||
message.operationId = "";
|
||||
message.operation_id = "";
|
||||
message.consumes = [];
|
||||
message.produces = [];
|
||||
message.responses = {};
|
||||
@@ -1389,10 +1389,10 @@ class Operation$Type extends MessageType<Operation> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 4:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* string operation_id */ 5:
|
||||
message.operationId = reader.string();
|
||||
message.operation_id = reader.string();
|
||||
break;
|
||||
case /* repeated string consumes */ 6:
|
||||
message.consumes.push(reader.string());
|
||||
@@ -1473,11 +1473,11 @@ class Operation$Type extends MessageType<Operation> {
|
||||
if (message.description !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string operation_id = 5; */
|
||||
if (message.operationId !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.operationId);
|
||||
if (message.operation_id !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.operation_id);
|
||||
/* repeated string consumes = 6; */
|
||||
for (let i = 0; i < message.consumes.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.consumes[i]);
|
||||
@@ -1740,7 +1740,7 @@ class Info$Type extends MessageType<Info> {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Info", [
|
||||
{ no: 1, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "terms_of_service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "terms_of_service", kind: "scalar", localName: "terms_of_service", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "contact", kind: "message", T: () => Contact },
|
||||
{ no: 5, name: "license", kind: "message", T: () => License },
|
||||
{ no: 6, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
@@ -1751,7 +1751,7 @@ class Info$Type extends MessageType<Info> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.title = "";
|
||||
message.description = "";
|
||||
message.termsOfService = "";
|
||||
message.terms_of_service = "";
|
||||
message.version = "";
|
||||
message.extensions = {};
|
||||
if (value !== undefined)
|
||||
@@ -1770,7 +1770,7 @@ class Info$Type extends MessageType<Info> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* string terms_of_service */ 3:
|
||||
message.termsOfService = reader.string();
|
||||
message.terms_of_service = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.Contact contact */ 4:
|
||||
message.contact = Contact.internalBinaryRead(reader, reader.uint32(), options, message.contact);
|
||||
@@ -1819,8 +1819,8 @@ class Info$Type extends MessageType<Info> {
|
||||
if (message.description !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||
/* string terms_of_service = 3; */
|
||||
if (message.termsOfService !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.termsOfService);
|
||||
if (message.terms_of_service !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.terms_of_service);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */
|
||||
if (message.contact)
|
||||
Contact.internalBinaryWrite(message.contact, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -2024,17 +2024,17 @@ export const ExternalDocumentation = new ExternalDocumentation$Type();
|
||||
class Schema$Type extends MessageType<Schema> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Schema", [
|
||||
{ no: 1, name: "json_schema", kind: "message", T: () => JSONSchema },
|
||||
{ no: 1, name: "json_schema", kind: "message", localName: "json_schema", T: () => JSONSchema },
|
||||
{ no: 2, name: "discriminator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 3, name: "read_only", kind: "scalar", localName: "read_only", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 6, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Schema>): Schema {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.discriminator = "";
|
||||
message.readOnly = false;
|
||||
message.read_only = false;
|
||||
message.example = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<Schema>(this, message, value);
|
||||
@@ -2046,16 +2046,16 @@ class Schema$Type extends MessageType<Schema> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema */ 1:
|
||||
message.jsonSchema = JSONSchema.internalBinaryRead(reader, reader.uint32(), options, message.jsonSchema);
|
||||
message.json_schema = JSONSchema.internalBinaryRead(reader, reader.uint32(), options, message.json_schema);
|
||||
break;
|
||||
case /* string discriminator */ 2:
|
||||
message.discriminator = reader.string();
|
||||
break;
|
||||
case /* bool read_only */ 3:
|
||||
message.readOnly = reader.bool();
|
||||
message.read_only = reader.bool();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 5:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* string example */ 6:
|
||||
message.example = reader.string();
|
||||
@@ -2073,17 +2073,17 @@ class Schema$Type extends MessageType<Schema> {
|
||||
}
|
||||
internalBinaryWrite(message: Schema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */
|
||||
if (message.jsonSchema)
|
||||
JSONSchema.internalBinaryWrite(message.jsonSchema, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.json_schema)
|
||||
JSONSchema.internalBinaryWrite(message.json_schema, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string discriminator = 2; */
|
||||
if (message.discriminator !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.discriminator);
|
||||
/* bool read_only = 3; */
|
||||
if (message.readOnly !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.readOnly);
|
||||
if (message.read_only !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.read_only);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string example = 6; */
|
||||
if (message.example !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.example);
|
||||
@@ -2105,27 +2105,27 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
{ no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "default", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "read_only", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 8, name: "read_only", kind: "scalar", localName: "read_only", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 9, name: "example", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "multiple_of", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 10, name: "multiple_of", kind: "scalar", localName: "multiple_of", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 11, name: "maximum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 12, name: "exclusive_maximum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 12, name: "exclusive_maximum", kind: "scalar", localName: "exclusive_maximum", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 13, name: "minimum", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
||||
{ no: 14, name: "exclusive_minimum", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 15, name: "max_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 16, name: "min_length", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 14, name: "exclusive_minimum", kind: "scalar", localName: "exclusive_minimum", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 15, name: "max_length", kind: "scalar", localName: "max_length", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 16, name: "min_length", kind: "scalar", localName: "min_length", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 17, name: "pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 20, name: "max_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 21, name: "min_items", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 22, name: "unique_items", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 24, name: "max_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 25, name: "min_properties", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 20, name: "max_items", kind: "scalar", localName: "max_items", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 21, name: "min_items", kind: "scalar", localName: "min_items", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 22, name: "unique_items", kind: "scalar", localName: "unique_items", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 24, name: "max_properties", kind: "scalar", localName: "max_properties", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 25, name: "min_properties", kind: "scalar", localName: "min_properties", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 26, name: "required", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 34, name: "array", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 35, name: "type", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", JSONSchema_JSONSchemaSimpleTypes] },
|
||||
{ no: 36, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 46, name: "enum", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 1001, name: "field_configuration", kind: "message", T: () => JSONSchema_FieldConfiguration },
|
||||
{ no: 1001, name: "field_configuration", kind: "message", localName: "field_configuration", T: () => JSONSchema_FieldConfiguration },
|
||||
{ no: 48, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
}
|
||||
@@ -2135,21 +2135,21 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
message.title = "";
|
||||
message.description = "";
|
||||
message.default = "";
|
||||
message.readOnly = false;
|
||||
message.read_only = false;
|
||||
message.example = "";
|
||||
message.multipleOf = 0;
|
||||
message.multiple_of = 0;
|
||||
message.maximum = 0;
|
||||
message.exclusiveMaximum = false;
|
||||
message.exclusive_maximum = false;
|
||||
message.minimum = 0;
|
||||
message.exclusiveMinimum = false;
|
||||
message.maxLength = 0n;
|
||||
message.minLength = 0n;
|
||||
message.exclusive_minimum = false;
|
||||
message.max_length = 0n;
|
||||
message.min_length = 0n;
|
||||
message.pattern = "";
|
||||
message.maxItems = 0n;
|
||||
message.minItems = 0n;
|
||||
message.uniqueItems = false;
|
||||
message.maxProperties = 0n;
|
||||
message.minProperties = 0n;
|
||||
message.max_items = 0n;
|
||||
message.min_items = 0n;
|
||||
message.unique_items = false;
|
||||
message.max_properties = 0n;
|
||||
message.min_properties = 0n;
|
||||
message.required = [];
|
||||
message.array = [];
|
||||
message.type = [];
|
||||
@@ -2178,49 +2178,49 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
message.default = reader.string();
|
||||
break;
|
||||
case /* bool read_only */ 8:
|
||||
message.readOnly = reader.bool();
|
||||
message.read_only = reader.bool();
|
||||
break;
|
||||
case /* string example */ 9:
|
||||
message.example = reader.string();
|
||||
break;
|
||||
case /* double multiple_of */ 10:
|
||||
message.multipleOf = reader.double();
|
||||
message.multiple_of = reader.double();
|
||||
break;
|
||||
case /* double maximum */ 11:
|
||||
message.maximum = reader.double();
|
||||
break;
|
||||
case /* bool exclusive_maximum */ 12:
|
||||
message.exclusiveMaximum = reader.bool();
|
||||
message.exclusive_maximum = reader.bool();
|
||||
break;
|
||||
case /* double minimum */ 13:
|
||||
message.minimum = reader.double();
|
||||
break;
|
||||
case /* bool exclusive_minimum */ 14:
|
||||
message.exclusiveMinimum = reader.bool();
|
||||
message.exclusive_minimum = reader.bool();
|
||||
break;
|
||||
case /* uint64 max_length */ 15:
|
||||
message.maxLength = reader.uint64().toBigInt();
|
||||
message.max_length = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_length */ 16:
|
||||
message.minLength = reader.uint64().toBigInt();
|
||||
message.min_length = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* string pattern */ 17:
|
||||
message.pattern = reader.string();
|
||||
break;
|
||||
case /* uint64 max_items */ 20:
|
||||
message.maxItems = reader.uint64().toBigInt();
|
||||
message.max_items = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_items */ 21:
|
||||
message.minItems = reader.uint64().toBigInt();
|
||||
message.min_items = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* bool unique_items */ 22:
|
||||
message.uniqueItems = reader.bool();
|
||||
message.unique_items = reader.bool();
|
||||
break;
|
||||
case /* uint64 max_properties */ 24:
|
||||
message.maxProperties = reader.uint64().toBigInt();
|
||||
message.max_properties = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* uint64 min_properties */ 25:
|
||||
message.minProperties = reader.uint64().toBigInt();
|
||||
message.min_properties = reader.uint64().toBigInt();
|
||||
break;
|
||||
case /* repeated string required */ 26:
|
||||
message.required.push(reader.string());
|
||||
@@ -2242,7 +2242,7 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
message.enum.push(reader.string());
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration */ 1001:
|
||||
message.fieldConfiguration = JSONSchema_FieldConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.fieldConfiguration);
|
||||
message.field_configuration = JSONSchema_FieldConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.field_configuration);
|
||||
break;
|
||||
case /* map<string, google.protobuf.Value> extensions */ 48:
|
||||
this.binaryReadMap48(message.extensions, reader, options);
|
||||
@@ -2288,50 +2288,50 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
if (message.default !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.default);
|
||||
/* bool read_only = 8; */
|
||||
if (message.readOnly !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.readOnly);
|
||||
if (message.read_only !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.read_only);
|
||||
/* string example = 9; */
|
||||
if (message.example !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.example);
|
||||
/* double multiple_of = 10; */
|
||||
if (message.multipleOf !== 0)
|
||||
writer.tag(10, WireType.Bit64).double(message.multipleOf);
|
||||
if (message.multiple_of !== 0)
|
||||
writer.tag(10, WireType.Bit64).double(message.multiple_of);
|
||||
/* double maximum = 11; */
|
||||
if (message.maximum !== 0)
|
||||
writer.tag(11, WireType.Bit64).double(message.maximum);
|
||||
/* bool exclusive_maximum = 12; */
|
||||
if (message.exclusiveMaximum !== false)
|
||||
writer.tag(12, WireType.Varint).bool(message.exclusiveMaximum);
|
||||
if (message.exclusive_maximum !== false)
|
||||
writer.tag(12, WireType.Varint).bool(message.exclusive_maximum);
|
||||
/* double minimum = 13; */
|
||||
if (message.minimum !== 0)
|
||||
writer.tag(13, WireType.Bit64).double(message.minimum);
|
||||
/* bool exclusive_minimum = 14; */
|
||||
if (message.exclusiveMinimum !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.exclusiveMinimum);
|
||||
if (message.exclusive_minimum !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.exclusive_minimum);
|
||||
/* uint64 max_length = 15; */
|
||||
if (message.maxLength !== 0n)
|
||||
writer.tag(15, WireType.Varint).uint64(message.maxLength);
|
||||
if (message.max_length !== 0n)
|
||||
writer.tag(15, WireType.Varint).uint64(message.max_length);
|
||||
/* uint64 min_length = 16; */
|
||||
if (message.minLength !== 0n)
|
||||
writer.tag(16, WireType.Varint).uint64(message.minLength);
|
||||
if (message.min_length !== 0n)
|
||||
writer.tag(16, WireType.Varint).uint64(message.min_length);
|
||||
/* string pattern = 17; */
|
||||
if (message.pattern !== "")
|
||||
writer.tag(17, WireType.LengthDelimited).string(message.pattern);
|
||||
/* uint64 max_items = 20; */
|
||||
if (message.maxItems !== 0n)
|
||||
writer.tag(20, WireType.Varint).uint64(message.maxItems);
|
||||
if (message.max_items !== 0n)
|
||||
writer.tag(20, WireType.Varint).uint64(message.max_items);
|
||||
/* uint64 min_items = 21; */
|
||||
if (message.minItems !== 0n)
|
||||
writer.tag(21, WireType.Varint).uint64(message.minItems);
|
||||
if (message.min_items !== 0n)
|
||||
writer.tag(21, WireType.Varint).uint64(message.min_items);
|
||||
/* bool unique_items = 22; */
|
||||
if (message.uniqueItems !== false)
|
||||
writer.tag(22, WireType.Varint).bool(message.uniqueItems);
|
||||
if (message.unique_items !== false)
|
||||
writer.tag(22, WireType.Varint).bool(message.unique_items);
|
||||
/* uint64 max_properties = 24; */
|
||||
if (message.maxProperties !== 0n)
|
||||
writer.tag(24, WireType.Varint).uint64(message.maxProperties);
|
||||
if (message.max_properties !== 0n)
|
||||
writer.tag(24, WireType.Varint).uint64(message.max_properties);
|
||||
/* uint64 min_properties = 25; */
|
||||
if (message.minProperties !== 0n)
|
||||
writer.tag(25, WireType.Varint).uint64(message.minProperties);
|
||||
if (message.min_properties !== 0n)
|
||||
writer.tag(25, WireType.Varint).uint64(message.min_properties);
|
||||
/* repeated string required = 26; */
|
||||
for (let i = 0; i < message.required.length; i++)
|
||||
writer.tag(26, WireType.LengthDelimited).string(message.required[i]);
|
||||
@@ -2352,8 +2352,8 @@ class JSONSchema$Type extends MessageType<JSONSchema> {
|
||||
for (let i = 0; i < message.enum.length; i++)
|
||||
writer.tag(46, WireType.LengthDelimited).string(message.enum[i]);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */
|
||||
if (message.fieldConfiguration)
|
||||
JSONSchema_FieldConfiguration.internalBinaryWrite(message.fieldConfiguration, writer.tag(1001, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.field_configuration)
|
||||
JSONSchema_FieldConfiguration.internalBinaryWrite(message.field_configuration, writer.tag(1001, WireType.LengthDelimited).fork(), options).join();
|
||||
/* map<string, google.protobuf.Value> extensions = 48; */
|
||||
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||
writer.tag(48, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
@@ -2375,12 +2375,12 @@ export const JSONSchema = new JSONSchema$Type();
|
||||
class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldConfiguration> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", [
|
||||
{ no: 47, name: "path_param_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 47, name: "path_param_name", kind: "scalar", localName: "path_param_name", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<JSONSchema_FieldConfiguration>): JSONSchema_FieldConfiguration {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.pathParamName = "";
|
||||
message.path_param_name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<JSONSchema_FieldConfiguration>(this, message, value);
|
||||
return message;
|
||||
@@ -2391,7 +2391,7 @@ class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldCon
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string path_param_name */ 47:
|
||||
message.pathParamName = reader.string();
|
||||
message.path_param_name = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2406,8 +2406,8 @@ class JSONSchema_FieldConfiguration$Type extends MessageType<JSONSchema_FieldCon
|
||||
}
|
||||
internalBinaryWrite(message: JSONSchema_FieldConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string path_param_name = 47; */
|
||||
if (message.pathParamName !== "")
|
||||
writer.tag(47, WireType.LengthDelimited).string(message.pathParamName);
|
||||
if (message.path_param_name !== "")
|
||||
writer.tag(47, WireType.LengthDelimited).string(message.path_param_name);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2424,7 +2424,7 @@ class Tag$Type extends MessageType<Tag> {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.Tag", [
|
||||
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "external_docs", kind: "message", T: () => ExternalDocumentation },
|
||||
{ no: 3, name: "external_docs", kind: "message", localName: "external_docs", T: () => ExternalDocumentation },
|
||||
{ no: 4, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
}
|
||||
@@ -2449,7 +2449,7 @@ class Tag$Type extends MessageType<Tag> {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs */ 3:
|
||||
message.externalDocs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.externalDocs);
|
||||
message.external_docs = ExternalDocumentation.internalBinaryRead(reader, reader.uint32(), options, message.external_docs);
|
||||
break;
|
||||
case /* map<string, google.protobuf.Value> extensions */ 4:
|
||||
this.binaryReadMap4(message.extensions, reader, options);
|
||||
@@ -2489,8 +2489,8 @@ class Tag$Type extends MessageType<Tag> {
|
||||
if (message.description !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */
|
||||
if (message.externalDocs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.externalDocs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.external_docs)
|
||||
ExternalDocumentation.internalBinaryWrite(message.external_docs, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* map<string, google.protobuf.Value> extensions = 4; */
|
||||
for (let k of globalThis.Object.keys(message.extensions)) {
|
||||
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
@@ -2584,8 +2584,8 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "in", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In", SecurityScheme_In, "IN_"] },
|
||||
{ no: 5, name: "flow", kind: "enum", T: () => ["grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow", SecurityScheme_Flow, "FLOW_"] },
|
||||
{ no: 6, name: "authorization_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "token_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "authorization_url", kind: "scalar", localName: "authorization_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "token_url", kind: "scalar", localName: "token_url", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "scopes", kind: "message", T: () => Scopes },
|
||||
{ no: 9, name: "extensions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Value } }
|
||||
]);
|
||||
@@ -2597,8 +2597,8 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
message.name = "";
|
||||
message.in = 0;
|
||||
message.flow = 0;
|
||||
message.authorizationUrl = "";
|
||||
message.tokenUrl = "";
|
||||
message.authorization_url = "";
|
||||
message.token_url = "";
|
||||
message.extensions = {};
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SecurityScheme>(this, message, value);
|
||||
@@ -2625,10 +2625,10 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
message.flow = reader.int32();
|
||||
break;
|
||||
case /* string authorization_url */ 6:
|
||||
message.authorizationUrl = reader.string();
|
||||
message.authorization_url = reader.string();
|
||||
break;
|
||||
case /* string token_url */ 7:
|
||||
message.tokenUrl = reader.string();
|
||||
message.token_url = reader.string();
|
||||
break;
|
||||
case /* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes */ 8:
|
||||
message.scopes = Scopes.internalBinaryRead(reader, reader.uint32(), options, message.scopes);
|
||||
@@ -2680,11 +2680,11 @@ class SecurityScheme$Type extends MessageType<SecurityScheme> {
|
||||
if (message.flow !== 0)
|
||||
writer.tag(5, WireType.Varint).int32(message.flow);
|
||||
/* string authorization_url = 6; */
|
||||
if (message.authorizationUrl !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.authorizationUrl);
|
||||
if (message.authorization_url !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.authorization_url);
|
||||
/* string token_url = 7; */
|
||||
if (message.tokenUrl !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.tokenUrl);
|
||||
if (message.token_url !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.token_url);
|
||||
/* grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */
|
||||
if (message.scopes)
|
||||
Scopes.internalBinaryWrite(message.scopes, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -2709,12 +2709,12 @@ export const SecurityScheme = new SecurityScheme$Type();
|
||||
class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
constructor() {
|
||||
super("grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", [
|
||||
{ no: 1, name: "security_requirement", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityRequirement_SecurityRequirementValue } }
|
||||
{ no: 1, name: "security_requirement", kind: "map", localName: "security_requirement", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SecurityRequirement_SecurityRequirementValue } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SecurityRequirement>): SecurityRequirement {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.securityRequirement = {};
|
||||
message.security_requirement = {};
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SecurityRequirement>(this, message, value);
|
||||
return message;
|
||||
@@ -2725,7 +2725,7 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement */ 1:
|
||||
this.binaryReadMap1(message.securityRequirement, reader, options);
|
||||
this.binaryReadMap1(message.security_requirement, reader, options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2738,8 +2738,8 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
}
|
||||
return message;
|
||||
}
|
||||
private binaryReadMap1(map: SecurityRequirement["securityRequirement"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||
let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityRequirement["securityRequirement"] | undefined, val: SecurityRequirement["securityRequirement"][any] | undefined;
|
||||
private binaryReadMap1(map: SecurityRequirement["security_requirement"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
||||
let len = reader.uint32(), end = reader.pos + len, key: keyof SecurityRequirement["security_requirement"] | undefined, val: SecurityRequirement["security_requirement"][any] | undefined;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
@@ -2756,10 +2756,10 @@ class SecurityRequirement$Type extends MessageType<SecurityRequirement> {
|
||||
}
|
||||
internalBinaryWrite(message: SecurityRequirement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* map<string, grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */
|
||||
for (let k of globalThis.Object.keys(message.securityRequirement)) {
|
||||
for (let k of globalThis.Object.keys(message.security_requirement)) {
|
||||
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
||||
writer.tag(2, WireType.LengthDelimited).fork();
|
||||
SecurityRequirement_SecurityRequirementValue.internalBinaryWrite(message.securityRequirement[k], writer, options);
|
||||
SecurityRequirement_SecurityRequirementValue.internalBinaryWrite(message.security_requirement[k], writer, options);
|
||||
writer.join().join();
|
||||
}
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user