Debian Codegraph @

plugins/gnostic-swift-generator/Sources/Gnostic/OpenAPIv2.pb.swift

raw
1 // DO NOT EDIT.
2 //
3 // Generated by the Swift generator plugin for the protocol buffer compiler.
4 // Source: github.com/googleapis/gnostic/OpenAPIv2/OpenAPIv2.proto
5 //
6 // For information on using the generated types, please see the documenation:
7 // https://github.com/apple/swift-protobuf/
8
9 // Copyright 2017 Google Inc. All Rights Reserved.
10 //
11 // Licensed under the Apache License, Version 2.0 (the "License");
12 // you may not use this file except in compliance with the License.
13 // You may obtain a copy of the License at
14 //
15 // http://www.apache.org/licenses/LICENSE-2.0
16 //
17 // Unless required by applicable law or agreed to in writing, software
18 // distributed under the License is distributed on an "AS IS" BASIS,
19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 // See the License for the specific language governing permissions and
21 // limitations under the License.
22
23 // THIS FILE IS AUTOMATICALLY GENERATED.
24
25 import Foundation
26 import SwiftProtobuf
27
28 // If the compiler emits an error on this type, it is because this file
29 // was generated by a version of the `protoc` Swift plug-in that is
30 // incompatible with the version of SwiftProtobuf to which you are linking.
31 // Please ensure that your are building against the same version of the API
32 // that was used to generate this file.
33 fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
34 struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
35 typealias Version = _2
36 }
37
38 public struct Openapi_V2_AdditionalPropertiesItem: SwiftProtobuf.Message {
39 public static let protoMessageName: String = _protobuf_package + ".AdditionalPropertiesItem"
40
41 public var oneof: OneOf_Oneof? {
42 get {return _storage._oneof}
43 set {_uniqueStorage()._oneof = newValue}
44 }
45
46 public var schema: Openapi_V2_Schema {
47 get {
48 if case .schema(let v)? = _storage._oneof {return v}
49 return Openapi_V2_Schema()
50 }
51 set {_uniqueStorage()._oneof = .schema(newValue)}
52 }
53
54 public var boolean: Bool {
55 get {
56 if case .boolean(let v)? = _storage._oneof {return v}
57 return false
58 }
59 set {_uniqueStorage()._oneof = .boolean(newValue)}
60 }
61
62 public var unknownFields = SwiftProtobuf.UnknownStorage()
63
64 public enum OneOf_Oneof: Equatable {
65 case schema(Openapi_V2_Schema)
66 case boolean(Bool)
67
68 public static func ==(lhs: Openapi_V2_AdditionalPropertiesItem.OneOf_Oneof, rhs: Openapi_V2_AdditionalPropertiesItem.OneOf_Oneof) -> Bool {
69 switch (lhs, rhs) {
70 case (.schema(let l), .schema(let r)): return l == r
71 case (.boolean(let l), .boolean(let r)): return l == r
72 default: return false
73 }
74 }
75 }
76
77 public init() {}
78
79 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
80 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
81 /// initializers are defined in the SwiftProtobuf library. See the Message and
82 /// Message+*Additions` files.
83 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
84 _ = _uniqueStorage()
85 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
86 while let fieldNumber = try decoder.nextFieldNumber() {
87 switch fieldNumber {
88 case 1:
89 var v: Openapi_V2_Schema?
90 if let current = _storage._oneof {
91 try decoder.handleConflictingOneOf()
92 if case .schema(let m) = current {v = m}
93 }
94 try decoder.decodeSingularMessageField(value: &v)
95 if let v = v {_storage._oneof = .schema(v)}
96 case 2:
97 if _storage._oneof != nil {try decoder.handleConflictingOneOf()}
98 var v: Bool?
99 try decoder.decodeSingularBoolField(value: &v)
100 if let v = v {_storage._oneof = .boolean(v)}
101 default: break
102 }
103 }
104 }
105 }
106
107 /// Used by the encoding methods of the SwiftProtobuf library, not generally
108 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
109 /// other serializer methods are defined in the SwiftProtobuf library. See the
110 /// `Message` and `Message+*Additions` files.
111 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
112 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
113 switch _storage._oneof {
114 case .schema(let v)?:
115 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
116 case .boolean(let v)?:
117 try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
118 case nil: break
119 }
120 }
121 try unknownFields.traverse(visitor: &visitor)
122 }
123
124 fileprivate var _storage = _StorageClass.defaultInstance
125 }
126
127 public struct Openapi_V2_Any: SwiftProtobuf.Message {
128 public static let protoMessageName: String = _protobuf_package + ".Any"
129
130 public var value: SwiftProtobuf.Google_Protobuf_Any {
131 get {return _storage._value ?? SwiftProtobuf.Google_Protobuf_Any()}
132 set {_uniqueStorage()._value = newValue}
133 }
134 /// Returns true if `value` has been explicitly set.
135 public var hasValue: Bool {return _storage._value != nil}
136 /// Clears the value of `value`. Subsequent reads from it will return its default value.
137 public mutating func clearValue() {_storage._value = nil}
138
139 public var yaml: String {
140 get {return _storage._yaml}
141 set {_uniqueStorage()._yaml = newValue}
142 }
143
144 public var unknownFields = SwiftProtobuf.UnknownStorage()
145
146 public init() {}
147
148 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
149 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
150 /// initializers are defined in the SwiftProtobuf library. See the Message and
151 /// Message+*Additions` files.
152 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
153 _ = _uniqueStorage()
154 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
155 while let fieldNumber = try decoder.nextFieldNumber() {
156 switch fieldNumber {
157 case 1: try decoder.decodeSingularMessageField(value: &_storage._value)
158 case 2: try decoder.decodeSingularStringField(value: &_storage._yaml)
159 default: break
160 }
161 }
162 }
163 }
164
165 /// Used by the encoding methods of the SwiftProtobuf library, not generally
166 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
167 /// other serializer methods are defined in the SwiftProtobuf library. See the
168 /// `Message` and `Message+*Additions` files.
169 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
170 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
171 if let v = _storage._value {
172 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
173 }
174 if !_storage._yaml.isEmpty {
175 try visitor.visitSingularStringField(value: _storage._yaml, fieldNumber: 2)
176 }
177 }
178 try unknownFields.traverse(visitor: &visitor)
179 }
180
181 fileprivate var _storage = _StorageClass.defaultInstance
182 }
183
184 public struct Openapi_V2_ApiKeySecurity: SwiftProtobuf.Message {
185 public static let protoMessageName: String = _protobuf_package + ".ApiKeySecurity"
186
187 public var type: String = String()
188
189 public var name: String = String()
190
191 public var `in`: String = String()
192
193 public var description_p: String = String()
194
195 public var vendorExtension: [Openapi_V2_NamedAny] = []
196
197 public var unknownFields = SwiftProtobuf.UnknownStorage()
198
199 public init() {}
200
201 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
202 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
203 /// initializers are defined in the SwiftProtobuf library. See the Message and
204 /// Message+*Additions` files.
205 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
206 while let fieldNumber = try decoder.nextFieldNumber() {
207 switch fieldNumber {
208 case 1: try decoder.decodeSingularStringField(value: &self.type)
209 case 2: try decoder.decodeSingularStringField(value: &self.name)
210 case 3: try decoder.decodeSingularStringField(value: &self.`in`)
211 case 4: try decoder.decodeSingularStringField(value: &self.description_p)
212 case 5: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
213 default: break
214 }
215 }
216 }
217
218 /// Used by the encoding methods of the SwiftProtobuf library, not generally
219 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
220 /// other serializer methods are defined in the SwiftProtobuf library. See the
221 /// `Message` and `Message+*Additions` files.
222 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
223 if !self.type.isEmpty {
224 try visitor.visitSingularStringField(value: self.type, fieldNumber: 1)
225 }
226 if !self.name.isEmpty {
227 try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
228 }
229 if !self.`in`.isEmpty {
230 try visitor.visitSingularStringField(value: self.`in`, fieldNumber: 3)
231 }
232 if !self.description_p.isEmpty {
233 try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4)
234 }
235 if !self.vendorExtension.isEmpty {
236 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 5)
237 }
238 try unknownFields.traverse(visitor: &visitor)
239 }
240 }
241
242 public struct Openapi_V2_BasicAuthenticationSecurity: SwiftProtobuf.Message {
243 public static let protoMessageName: String = _protobuf_package + ".BasicAuthenticationSecurity"
244
245 public var type: String = String()
246
247 public var description_p: String = String()
248
249 public var vendorExtension: [Openapi_V2_NamedAny] = []
250
251 public var unknownFields = SwiftProtobuf.UnknownStorage()
252
253 public init() {}
254
255 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
256 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
257 /// initializers are defined in the SwiftProtobuf library. See the Message and
258 /// Message+*Additions` files.
259 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
260 while let fieldNumber = try decoder.nextFieldNumber() {
261 switch fieldNumber {
262 case 1: try decoder.decodeSingularStringField(value: &self.type)
263 case 2: try decoder.decodeSingularStringField(value: &self.description_p)
264 case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
265 default: break
266 }
267 }
268 }
269
270 /// Used by the encoding methods of the SwiftProtobuf library, not generally
271 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
272 /// other serializer methods are defined in the SwiftProtobuf library. See the
273 /// `Message` and `Message+*Additions` files.
274 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
275 if !self.type.isEmpty {
276 try visitor.visitSingularStringField(value: self.type, fieldNumber: 1)
277 }
278 if !self.description_p.isEmpty {
279 try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2)
280 }
281 if !self.vendorExtension.isEmpty {
282 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3)
283 }
284 try unknownFields.traverse(visitor: &visitor)
285 }
286 }
287
288 public struct Openapi_V2_BodyParameter: SwiftProtobuf.Message {
289 public static let protoMessageName: String = _protobuf_package + ".BodyParameter"
290
291 /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
292 public var description_p: String {
293 get {return _storage._description_p}
294 set {_uniqueStorage()._description_p = newValue}
295 }
296
297 /// The name of the parameter.
298 public var name: String {
299 get {return _storage._name}
300 set {_uniqueStorage()._name = newValue}
301 }
302
303 /// Determines the location of the parameter.
304 public var `in`: String {
305 get {return _storage._in}
306 set {_uniqueStorage()._in = newValue}
307 }
308
309 /// Determines whether or not this parameter is required or optional.
310 public var required: Bool {
311 get {return _storage._required}
312 set {_uniqueStorage()._required = newValue}
313 }
314
315 public var schema: Openapi_V2_Schema {
316 get {return _storage._schema ?? Openapi_V2_Schema()}
317 set {_uniqueStorage()._schema = newValue}
318 }
319 /// Returns true if `schema` has been explicitly set.
320 public var hasSchema: Bool {return _storage._schema != nil}
321 /// Clears the value of `schema`. Subsequent reads from it will return its default value.
322 public mutating func clearSchema() {_storage._schema = nil}
323
324 public var vendorExtension: [Openapi_V2_NamedAny] {
325 get {return _storage._vendorExtension}
326 set {_uniqueStorage()._vendorExtension = newValue}
327 }
328
329 public var unknownFields = SwiftProtobuf.UnknownStorage()
330
331 public init() {}
332
333 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
334 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
335 /// initializers are defined in the SwiftProtobuf library. See the Message and
336 /// Message+*Additions` files.
337 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
338 _ = _uniqueStorage()
339 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
340 while let fieldNumber = try decoder.nextFieldNumber() {
341 switch fieldNumber {
342 case 1: try decoder.decodeSingularStringField(value: &_storage._description_p)
343 case 2: try decoder.decodeSingularStringField(value: &_storage._name)
344 case 3: try decoder.decodeSingularStringField(value: &_storage._in)
345 case 4: try decoder.decodeSingularBoolField(value: &_storage._required)
346 case 5: try decoder.decodeSingularMessageField(value: &_storage._schema)
347 case 6: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
348 default: break
349 }
350 }
351 }
352 }
353
354 /// Used by the encoding methods of the SwiftProtobuf library, not generally
355 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
356 /// other serializer methods are defined in the SwiftProtobuf library. See the
357 /// `Message` and `Message+*Additions` files.
358 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
359 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
360 if !_storage._description_p.isEmpty {
361 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 1)
362 }
363 if !_storage._name.isEmpty {
364 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2)
365 }
366 if !_storage._in.isEmpty {
367 try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 3)
368 }
369 if _storage._required != false {
370 try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 4)
371 }
372 if let v = _storage._schema {
373 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
374 }
375 if !_storage._vendorExtension.isEmpty {
376 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 6)
377 }
378 }
379 try unknownFields.traverse(visitor: &visitor)
380 }
381
382 fileprivate var _storage = _StorageClass.defaultInstance
383 }
384
385 /// Contact information for the owners of the API.
386 public struct Openapi_V2_Contact: SwiftProtobuf.Message {
387 public static let protoMessageName: String = _protobuf_package + ".Contact"
388
389 /// The identifying name of the contact person/organization.
390 public var name: String = String()
391
392 /// The URL pointing to the contact information.
393 public var url: String = String()
394
395 /// The email address of the contact person/organization.
396 public var email: String = String()
397
398 public var vendorExtension: [Openapi_V2_NamedAny] = []
399
400 public var unknownFields = SwiftProtobuf.UnknownStorage()
401
402 public init() {}
403
404 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
405 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
406 /// initializers are defined in the SwiftProtobuf library. See the Message and
407 /// Message+*Additions` files.
408 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
409 while let fieldNumber = try decoder.nextFieldNumber() {
410 switch fieldNumber {
411 case 1: try decoder.decodeSingularStringField(value: &self.name)
412 case 2: try decoder.decodeSingularStringField(value: &self.url)
413 case 3: try decoder.decodeSingularStringField(value: &self.email)
414 case 4: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
415 default: break
416 }
417 }
418 }
419
420 /// Used by the encoding methods of the SwiftProtobuf library, not generally
421 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
422 /// other serializer methods are defined in the SwiftProtobuf library. See the
423 /// `Message` and `Message+*Additions` files.
424 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
425 if !self.name.isEmpty {
426 try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
427 }
428 if !self.url.isEmpty {
429 try visitor.visitSingularStringField(value: self.url, fieldNumber: 2)
430 }
431 if !self.email.isEmpty {
432 try visitor.visitSingularStringField(value: self.email, fieldNumber: 3)
433 }
434 if !self.vendorExtension.isEmpty {
435 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 4)
436 }
437 try unknownFields.traverse(visitor: &visitor)
438 }
439 }
440
441 public struct Openapi_V2_Default: SwiftProtobuf.Message {
442 public static let protoMessageName: String = _protobuf_package + ".Default"
443
444 public var additionalProperties: [Openapi_V2_NamedAny] = []
445
446 public var unknownFields = SwiftProtobuf.UnknownStorage()
447
448 public init() {}
449
450 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
451 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
452 /// initializers are defined in the SwiftProtobuf library. See the Message and
453 /// Message+*Additions` files.
454 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
455 while let fieldNumber = try decoder.nextFieldNumber() {
456 switch fieldNumber {
457 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
458 default: break
459 }
460 }
461 }
462
463 /// Used by the encoding methods of the SwiftProtobuf library, not generally
464 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
465 /// other serializer methods are defined in the SwiftProtobuf library. See the
466 /// `Message` and `Message+*Additions` files.
467 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
468 if !self.additionalProperties.isEmpty {
469 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
470 }
471 try unknownFields.traverse(visitor: &visitor)
472 }
473 }
474
475 /// One or more JSON objects describing the schemas being consumed and produced by the API.
476 public struct Openapi_V2_Definitions: SwiftProtobuf.Message {
477 public static let protoMessageName: String = _protobuf_package + ".Definitions"
478
479 public var additionalProperties: [Openapi_V2_NamedSchema] = []
480
481 public var unknownFields = SwiftProtobuf.UnknownStorage()
482
483 public init() {}
484
485 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
486 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
487 /// initializers are defined in the SwiftProtobuf library. See the Message and
488 /// Message+*Additions` files.
489 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
490 while let fieldNumber = try decoder.nextFieldNumber() {
491 switch fieldNumber {
492 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
493 default: break
494 }
495 }
496 }
497
498 /// Used by the encoding methods of the SwiftProtobuf library, not generally
499 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
500 /// other serializer methods are defined in the SwiftProtobuf library. See the
501 /// `Message` and `Message+*Additions` files.
502 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
503 if !self.additionalProperties.isEmpty {
504 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
505 }
506 try unknownFields.traverse(visitor: &visitor)
507 }
508 }
509
510 public struct Openapi_V2_Document: SwiftProtobuf.Message {
511 public static let protoMessageName: String = _protobuf_package + ".Document"
512
513 /// The Swagger version of this document.
514 public var swagger: String {
515 get {return _storage._swagger}
516 set {_uniqueStorage()._swagger = newValue}
517 }
518
519 public var info: Openapi_V2_Info {
520 get {return _storage._info ?? Openapi_V2_Info()}
521 set {_uniqueStorage()._info = newValue}
522 }
523 /// Returns true if `info` has been explicitly set.
524 public var hasInfo: Bool {return _storage._info != nil}
525 /// Clears the value of `info`. Subsequent reads from it will return its default value.
526 public mutating func clearInfo() {_storage._info = nil}
527
528 /// The host (name or ip) of the API. Example: 'swagger.io'
529 public var host: String {
530 get {return _storage._host}
531 set {_uniqueStorage()._host = newValue}
532 }
533
534 /// The base path to the API. Example: '/api'.
535 public var basePath: String {
536 get {return _storage._basePath}
537 set {_uniqueStorage()._basePath = newValue}
538 }
539
540 /// The transfer protocol of the API.
541 public var schemes: [String] {
542 get {return _storage._schemes}
543 set {_uniqueStorage()._schemes = newValue}
544 }
545
546 /// A list of MIME types accepted by the API.
547 public var consumes: [String] {
548 get {return _storage._consumes}
549 set {_uniqueStorage()._consumes = newValue}
550 }
551
552 /// A list of MIME types the API can produce.
553 public var produces: [String] {
554 get {return _storage._produces}
555 set {_uniqueStorage()._produces = newValue}
556 }
557
558 public var paths: Openapi_V2_Paths {
559 get {return _storage._paths ?? Openapi_V2_Paths()}
560 set {_uniqueStorage()._paths = newValue}
561 }
562 /// Returns true if `paths` has been explicitly set.
563 public var hasPaths: Bool {return _storage._paths != nil}
564 /// Clears the value of `paths`. Subsequent reads from it will return its default value.
565 public mutating func clearPaths() {_storage._paths = nil}
566
567 public var definitions: Openapi_V2_Definitions {
568 get {return _storage._definitions ?? Openapi_V2_Definitions()}
569 set {_uniqueStorage()._definitions = newValue}
570 }
571 /// Returns true if `definitions` has been explicitly set.
572 public var hasDefinitions: Bool {return _storage._definitions != nil}
573 /// Clears the value of `definitions`. Subsequent reads from it will return its default value.
574 public mutating func clearDefinitions() {_storage._definitions = nil}
575
576 public var parameters: Openapi_V2_ParameterDefinitions {
577 get {return _storage._parameters ?? Openapi_V2_ParameterDefinitions()}
578 set {_uniqueStorage()._parameters = newValue}
579 }
580 /// Returns true if `parameters` has been explicitly set.
581 public var hasParameters: Bool {return _storage._parameters != nil}
582 /// Clears the value of `parameters`. Subsequent reads from it will return its default value.
583 public mutating func clearParameters() {_storage._parameters = nil}
584
585 public var responses: Openapi_V2_ResponseDefinitions {
586 get {return _storage._responses ?? Openapi_V2_ResponseDefinitions()}
587 set {_uniqueStorage()._responses = newValue}
588 }
589 /// Returns true if `responses` has been explicitly set.
590 public var hasResponses: Bool {return _storage._responses != nil}
591 /// Clears the value of `responses`. Subsequent reads from it will return its default value.
592 public mutating func clearResponses() {_storage._responses = nil}
593
594 public var security: [Openapi_V2_SecurityRequirement] {
595 get {return _storage._security}
596 set {_uniqueStorage()._security = newValue}
597 }
598
599 public var securityDefinitions: Openapi_V2_SecurityDefinitions {
600 get {return _storage._securityDefinitions ?? Openapi_V2_SecurityDefinitions()}
601 set {_uniqueStorage()._securityDefinitions = newValue}
602 }
603 /// Returns true if `securityDefinitions` has been explicitly set.
604 public var hasSecurityDefinitions: Bool {return _storage._securityDefinitions != nil}
605 /// Clears the value of `securityDefinitions`. Subsequent reads from it will return its default value.
606 public mutating func clearSecurityDefinitions() {_storage._securityDefinitions = nil}
607
608 public var tags: [Openapi_V2_Tag] {
609 get {return _storage._tags}
610 set {_uniqueStorage()._tags = newValue}
611 }
612
613 public var externalDocs: Openapi_V2_ExternalDocs {
614 get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()}
615 set {_uniqueStorage()._externalDocs = newValue}
616 }
617 /// Returns true if `externalDocs` has been explicitly set.
618 public var hasExternalDocs: Bool {return _storage._externalDocs != nil}
619 /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value.
620 public mutating func clearExternalDocs() {_storage._externalDocs = nil}
621
622 public var vendorExtension: [Openapi_V2_NamedAny] {
623 get {return _storage._vendorExtension}
624 set {_uniqueStorage()._vendorExtension = newValue}
625 }
626
627 public var unknownFields = SwiftProtobuf.UnknownStorage()
628
629 public init() {}
630
631 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
632 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
633 /// initializers are defined in the SwiftProtobuf library. See the Message and
634 /// Message+*Additions` files.
635 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
636 _ = _uniqueStorage()
637 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
638 while let fieldNumber = try decoder.nextFieldNumber() {
639 switch fieldNumber {
640 case 1: try decoder.decodeSingularStringField(value: &_storage._swagger)
641 case 2: try decoder.decodeSingularMessageField(value: &_storage._info)
642 case 3: try decoder.decodeSingularStringField(value: &_storage._host)
643 case 4: try decoder.decodeSingularStringField(value: &_storage._basePath)
644 case 5: try decoder.decodeRepeatedStringField(value: &_storage._schemes)
645 case 6: try decoder.decodeRepeatedStringField(value: &_storage._consumes)
646 case 7: try decoder.decodeRepeatedStringField(value: &_storage._produces)
647 case 8: try decoder.decodeSingularMessageField(value: &_storage._paths)
648 case 9: try decoder.decodeSingularMessageField(value: &_storage._definitions)
649 case 10: try decoder.decodeSingularMessageField(value: &_storage._parameters)
650 case 11: try decoder.decodeSingularMessageField(value: &_storage._responses)
651 case 12: try decoder.decodeRepeatedMessageField(value: &_storage._security)
652 case 13: try decoder.decodeSingularMessageField(value: &_storage._securityDefinitions)
653 case 14: try decoder.decodeRepeatedMessageField(value: &_storage._tags)
654 case 15: try decoder.decodeSingularMessageField(value: &_storage._externalDocs)
655 case 16: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
656 default: break
657 }
658 }
659 }
660 }
661
662 /// Used by the encoding methods of the SwiftProtobuf library, not generally
663 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
664 /// other serializer methods are defined in the SwiftProtobuf library. See the
665 /// `Message` and `Message+*Additions` files.
666 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
667 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
668 if !_storage._swagger.isEmpty {
669 try visitor.visitSingularStringField(value: _storage._swagger, fieldNumber: 1)
670 }
671 if let v = _storage._info {
672 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
673 }
674 if !_storage._host.isEmpty {
675 try visitor.visitSingularStringField(value: _storage._host, fieldNumber: 3)
676 }
677 if !_storage._basePath.isEmpty {
678 try visitor.visitSingularStringField(value: _storage._basePath, fieldNumber: 4)
679 }
680 if !_storage._schemes.isEmpty {
681 try visitor.visitRepeatedStringField(value: _storage._schemes, fieldNumber: 5)
682 }
683 if !_storage._consumes.isEmpty {
684 try visitor.visitRepeatedStringField(value: _storage._consumes, fieldNumber: 6)
685 }
686 if !_storage._produces.isEmpty {
687 try visitor.visitRepeatedStringField(value: _storage._produces, fieldNumber: 7)
688 }
689 if let v = _storage._paths {
690 try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
691 }
692 if let v = _storage._definitions {
693 try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
694 }
695 if let v = _storage._parameters {
696 try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
697 }
698 if let v = _storage._responses {
699 try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
700 }
701 if !_storage._security.isEmpty {
702 try visitor.visitRepeatedMessageField(value: _storage._security, fieldNumber: 12)
703 }
704 if let v = _storage._securityDefinitions {
705 try visitor.visitSingularMessageField(value: v, fieldNumber: 13)
706 }
707 if !_storage._tags.isEmpty {
708 try visitor.visitRepeatedMessageField(value: _storage._tags, fieldNumber: 14)
709 }
710 if let v = _storage._externalDocs {
711 try visitor.visitSingularMessageField(value: v, fieldNumber: 15)
712 }
713 if !_storage._vendorExtension.isEmpty {
714 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 16)
715 }
716 }
717 try unknownFields.traverse(visitor: &visitor)
718 }
719
720 fileprivate var _storage = _StorageClass.defaultInstance
721 }
722
723 public struct Openapi_V2_Examples: SwiftProtobuf.Message {
724 public static let protoMessageName: String = _protobuf_package + ".Examples"
725
726 public var additionalProperties: [Openapi_V2_NamedAny] = []
727
728 public var unknownFields = SwiftProtobuf.UnknownStorage()
729
730 public init() {}
731
732 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
733 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
734 /// initializers are defined in the SwiftProtobuf library. See the Message and
735 /// Message+*Additions` files.
736 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
737 while let fieldNumber = try decoder.nextFieldNumber() {
738 switch fieldNumber {
739 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
740 default: break
741 }
742 }
743 }
744
745 /// Used by the encoding methods of the SwiftProtobuf library, not generally
746 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
747 /// other serializer methods are defined in the SwiftProtobuf library. See the
748 /// `Message` and `Message+*Additions` files.
749 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
750 if !self.additionalProperties.isEmpty {
751 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
752 }
753 try unknownFields.traverse(visitor: &visitor)
754 }
755 }
756
757 /// information about external documentation
758 public struct Openapi_V2_ExternalDocs: SwiftProtobuf.Message {
759 public static let protoMessageName: String = _protobuf_package + ".ExternalDocs"
760
761 public var description_p: String = String()
762
763 public var url: String = String()
764
765 public var vendorExtension: [Openapi_V2_NamedAny] = []
766
767 public var unknownFields = SwiftProtobuf.UnknownStorage()
768
769 public init() {}
770
771 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
772 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
773 /// initializers are defined in the SwiftProtobuf library. See the Message and
774 /// Message+*Additions` files.
775 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
776 while let fieldNumber = try decoder.nextFieldNumber() {
777 switch fieldNumber {
778 case 1: try decoder.decodeSingularStringField(value: &self.description_p)
779 case 2: try decoder.decodeSingularStringField(value: &self.url)
780 case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
781 default: break
782 }
783 }
784 }
785
786 /// Used by the encoding methods of the SwiftProtobuf library, not generally
787 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
788 /// other serializer methods are defined in the SwiftProtobuf library. See the
789 /// `Message` and `Message+*Additions` files.
790 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
791 if !self.description_p.isEmpty {
792 try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 1)
793 }
794 if !self.url.isEmpty {
795 try visitor.visitSingularStringField(value: self.url, fieldNumber: 2)
796 }
797 if !self.vendorExtension.isEmpty {
798 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3)
799 }
800 try unknownFields.traverse(visitor: &visitor)
801 }
802 }
803
804 /// A deterministic version of a JSON Schema object.
805 public struct Openapi_V2_FileSchema: SwiftProtobuf.Message {
806 public static let protoMessageName: String = _protobuf_package + ".FileSchema"
807
808 public var format: String {
809 get {return _storage._format}
810 set {_uniqueStorage()._format = newValue}
811 }
812
813 public var title: String {
814 get {return _storage._title}
815 set {_uniqueStorage()._title = newValue}
816 }
817
818 public var description_p: String {
819 get {return _storage._description_p}
820 set {_uniqueStorage()._description_p = newValue}
821 }
822
823 public var `default`: Openapi_V2_Any {
824 get {return _storage._default ?? Openapi_V2_Any()}
825 set {_uniqueStorage()._default = newValue}
826 }
827 /// Returns true if ``default`` has been explicitly set.
828 public var hasDefault: Bool {return _storage._default != nil}
829 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
830 public mutating func clearDefault() {_storage._default = nil}
831
832 public var required: [String] {
833 get {return _storage._required}
834 set {_uniqueStorage()._required = newValue}
835 }
836
837 public var type: String {
838 get {return _storage._type}
839 set {_uniqueStorage()._type = newValue}
840 }
841
842 public var readOnly: Bool {
843 get {return _storage._readOnly}
844 set {_uniqueStorage()._readOnly = newValue}
845 }
846
847 public var externalDocs: Openapi_V2_ExternalDocs {
848 get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()}
849 set {_uniqueStorage()._externalDocs = newValue}
850 }
851 /// Returns true if `externalDocs` has been explicitly set.
852 public var hasExternalDocs: Bool {return _storage._externalDocs != nil}
853 /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value.
854 public mutating func clearExternalDocs() {_storage._externalDocs = nil}
855
856 public var example: Openapi_V2_Any {
857 get {return _storage._example ?? Openapi_V2_Any()}
858 set {_uniqueStorage()._example = newValue}
859 }
860 /// Returns true if `example` has been explicitly set.
861 public var hasExample: Bool {return _storage._example != nil}
862 /// Clears the value of `example`. Subsequent reads from it will return its default value.
863 public mutating func clearExample() {_storage._example = nil}
864
865 public var vendorExtension: [Openapi_V2_NamedAny] {
866 get {return _storage._vendorExtension}
867 set {_uniqueStorage()._vendorExtension = newValue}
868 }
869
870 public var unknownFields = SwiftProtobuf.UnknownStorage()
871
872 public init() {}
873
874 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
875 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
876 /// initializers are defined in the SwiftProtobuf library. See the Message and
877 /// Message+*Additions` files.
878 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
879 _ = _uniqueStorage()
880 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
881 while let fieldNumber = try decoder.nextFieldNumber() {
882 switch fieldNumber {
883 case 1: try decoder.decodeSingularStringField(value: &_storage._format)
884 case 2: try decoder.decodeSingularStringField(value: &_storage._title)
885 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
886 case 4: try decoder.decodeSingularMessageField(value: &_storage._default)
887 case 5: try decoder.decodeRepeatedStringField(value: &_storage._required)
888 case 6: try decoder.decodeSingularStringField(value: &_storage._type)
889 case 7: try decoder.decodeSingularBoolField(value: &_storage._readOnly)
890 case 8: try decoder.decodeSingularMessageField(value: &_storage._externalDocs)
891 case 9: try decoder.decodeSingularMessageField(value: &_storage._example)
892 case 10: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
893 default: break
894 }
895 }
896 }
897 }
898
899 /// Used by the encoding methods of the SwiftProtobuf library, not generally
900 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
901 /// other serializer methods are defined in the SwiftProtobuf library. See the
902 /// `Message` and `Message+*Additions` files.
903 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
904 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
905 if !_storage._format.isEmpty {
906 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 1)
907 }
908 if !_storage._title.isEmpty {
909 try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 2)
910 }
911 if !_storage._description_p.isEmpty {
912 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
913 }
914 if let v = _storage._default {
915 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
916 }
917 if !_storage._required.isEmpty {
918 try visitor.visitRepeatedStringField(value: _storage._required, fieldNumber: 5)
919 }
920 if !_storage._type.isEmpty {
921 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 6)
922 }
923 if _storage._readOnly != false {
924 try visitor.visitSingularBoolField(value: _storage._readOnly, fieldNumber: 7)
925 }
926 if let v = _storage._externalDocs {
927 try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
928 }
929 if let v = _storage._example {
930 try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
931 }
932 if !_storage._vendorExtension.isEmpty {
933 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 10)
934 }
935 }
936 try unknownFields.traverse(visitor: &visitor)
937 }
938
939 fileprivate var _storage = _StorageClass.defaultInstance
940 }
941
942 public struct Openapi_V2_FormDataParameterSubSchema: SwiftProtobuf.Message {
943 public static let protoMessageName: String = _protobuf_package + ".FormDataParameterSubSchema"
944
945 /// Determines whether or not this parameter is required or optional.
946 public var required: Bool {
947 get {return _storage._required}
948 set {_uniqueStorage()._required = newValue}
949 }
950
951 /// Determines the location of the parameter.
952 public var `in`: String {
953 get {return _storage._in}
954 set {_uniqueStorage()._in = newValue}
955 }
956
957 /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
958 public var description_p: String {
959 get {return _storage._description_p}
960 set {_uniqueStorage()._description_p = newValue}
961 }
962
963 /// The name of the parameter.
964 public var name: String {
965 get {return _storage._name}
966 set {_uniqueStorage()._name = newValue}
967 }
968
969 /// allows sending a parameter by name only or with an empty value.
970 public var allowEmptyValue: Bool {
971 get {return _storage._allowEmptyValue}
972 set {_uniqueStorage()._allowEmptyValue = newValue}
973 }
974
975 public var type: String {
976 get {return _storage._type}
977 set {_uniqueStorage()._type = newValue}
978 }
979
980 public var format: String {
981 get {return _storage._format}
982 set {_uniqueStorage()._format = newValue}
983 }
984
985 public var items: Openapi_V2_PrimitivesItems {
986 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
987 set {_uniqueStorage()._items = newValue}
988 }
989 /// Returns true if `items` has been explicitly set.
990 public var hasItems: Bool {return _storage._items != nil}
991 /// Clears the value of `items`. Subsequent reads from it will return its default value.
992 public mutating func clearItems() {_storage._items = nil}
993
994 public var collectionFormat: String {
995 get {return _storage._collectionFormat}
996 set {_uniqueStorage()._collectionFormat = newValue}
997 }
998
999 public var `default`: Openapi_V2_Any {
1000 get {return _storage._default ?? Openapi_V2_Any()}
1001 set {_uniqueStorage()._default = newValue}
1002 }
1003 /// Returns true if ``default`` has been explicitly set.
1004 public var hasDefault: Bool {return _storage._default != nil}
1005 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
1006 public mutating func clearDefault() {_storage._default = nil}
1007
1008 public var maximum: Double {
1009 get {return _storage._maximum}
1010 set {_uniqueStorage()._maximum = newValue}
1011 }
1012
1013 public var exclusiveMaximum: Bool {
1014 get {return _storage._exclusiveMaximum}
1015 set {_uniqueStorage()._exclusiveMaximum = newValue}
1016 }
1017
1018 public var minimum: Double {
1019 get {return _storage._minimum}
1020 set {_uniqueStorage()._minimum = newValue}
1021 }
1022
1023 public var exclusiveMinimum: Bool {
1024 get {return _storage._exclusiveMinimum}
1025 set {_uniqueStorage()._exclusiveMinimum = newValue}
1026 }
1027
1028 public var maxLength: Int64 {
1029 get {return _storage._maxLength}
1030 set {_uniqueStorage()._maxLength = newValue}
1031 }
1032
1033 public var minLength: Int64 {
1034 get {return _storage._minLength}
1035 set {_uniqueStorage()._minLength = newValue}
1036 }
1037
1038 public var pattern: String {
1039 get {return _storage._pattern}
1040 set {_uniqueStorage()._pattern = newValue}
1041 }
1042
1043 public var maxItems: Int64 {
1044 get {return _storage._maxItems}
1045 set {_uniqueStorage()._maxItems = newValue}
1046 }
1047
1048 public var minItems: Int64 {
1049 get {return _storage._minItems}
1050 set {_uniqueStorage()._minItems = newValue}
1051 }
1052
1053 public var uniqueItems: Bool {
1054 get {return _storage._uniqueItems}
1055 set {_uniqueStorage()._uniqueItems = newValue}
1056 }
1057
1058 public var `enum`: [Openapi_V2_Any] {
1059 get {return _storage._enum}
1060 set {_uniqueStorage()._enum = newValue}
1061 }
1062
1063 public var multipleOf: Double {
1064 get {return _storage._multipleOf}
1065 set {_uniqueStorage()._multipleOf = newValue}
1066 }
1067
1068 public var vendorExtension: [Openapi_V2_NamedAny] {
1069 get {return _storage._vendorExtension}
1070 set {_uniqueStorage()._vendorExtension = newValue}
1071 }
1072
1073 public var unknownFields = SwiftProtobuf.UnknownStorage()
1074
1075 public init() {}
1076
1077 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1078 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1079 /// initializers are defined in the SwiftProtobuf library. See the Message and
1080 /// Message+*Additions` files.
1081 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1082 _ = _uniqueStorage()
1083 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1084 while let fieldNumber = try decoder.nextFieldNumber() {
1085 switch fieldNumber {
1086 case 1: try decoder.decodeSingularBoolField(value: &_storage._required)
1087 case 2: try decoder.decodeSingularStringField(value: &_storage._in)
1088 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
1089 case 4: try decoder.decodeSingularStringField(value: &_storage._name)
1090 case 5: try decoder.decodeSingularBoolField(value: &_storage._allowEmptyValue)
1091 case 6: try decoder.decodeSingularStringField(value: &_storage._type)
1092 case 7: try decoder.decodeSingularStringField(value: &_storage._format)
1093 case 8: try decoder.decodeSingularMessageField(value: &_storage._items)
1094 case 9: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
1095 case 10: try decoder.decodeSingularMessageField(value: &_storage._default)
1096 case 11: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
1097 case 12: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
1098 case 13: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
1099 case 14: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
1100 case 15: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
1101 case 16: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
1102 case 17: try decoder.decodeSingularStringField(value: &_storage._pattern)
1103 case 18: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
1104 case 19: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
1105 case 20: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
1106 case 21: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
1107 case 22: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
1108 case 23: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
1109 default: break
1110 }
1111 }
1112 }
1113 }
1114
1115 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1116 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1117 /// other serializer methods are defined in the SwiftProtobuf library. See the
1118 /// `Message` and `Message+*Additions` files.
1119 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1120 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1121 if _storage._required != false {
1122 try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1)
1123 }
1124 if !_storage._in.isEmpty {
1125 try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2)
1126 }
1127 if !_storage._description_p.isEmpty {
1128 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
1129 }
1130 if !_storage._name.isEmpty {
1131 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4)
1132 }
1133 if _storage._allowEmptyValue != false {
1134 try visitor.visitSingularBoolField(value: _storage._allowEmptyValue, fieldNumber: 5)
1135 }
1136 if !_storage._type.isEmpty {
1137 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 6)
1138 }
1139 if !_storage._format.isEmpty {
1140 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 7)
1141 }
1142 if let v = _storage._items {
1143 try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
1144 }
1145 if !_storage._collectionFormat.isEmpty {
1146 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 9)
1147 }
1148 if let v = _storage._default {
1149 try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
1150 }
1151 if _storage._maximum != 0 {
1152 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 11)
1153 }
1154 if _storage._exclusiveMaximum != false {
1155 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 12)
1156 }
1157 if _storage._minimum != 0 {
1158 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 13)
1159 }
1160 if _storage._exclusiveMinimum != false {
1161 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 14)
1162 }
1163 if _storage._maxLength != 0 {
1164 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 15)
1165 }
1166 if _storage._minLength != 0 {
1167 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 16)
1168 }
1169 if !_storage._pattern.isEmpty {
1170 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 17)
1171 }
1172 if _storage._maxItems != 0 {
1173 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 18)
1174 }
1175 if _storage._minItems != 0 {
1176 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 19)
1177 }
1178 if _storage._uniqueItems != false {
1179 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 20)
1180 }
1181 if !_storage._enum.isEmpty {
1182 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 21)
1183 }
1184 if _storage._multipleOf != 0 {
1185 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 22)
1186 }
1187 if !_storage._vendorExtension.isEmpty {
1188 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 23)
1189 }
1190 }
1191 try unknownFields.traverse(visitor: &visitor)
1192 }
1193
1194 fileprivate var _storage = _StorageClass.defaultInstance
1195 }
1196
1197 public struct Openapi_V2_Header: SwiftProtobuf.Message {
1198 public static let protoMessageName: String = _protobuf_package + ".Header"
1199
1200 public var type: String {
1201 get {return _storage._type}
1202 set {_uniqueStorage()._type = newValue}
1203 }
1204
1205 public var format: String {
1206 get {return _storage._format}
1207 set {_uniqueStorage()._format = newValue}
1208 }
1209
1210 public var items: Openapi_V2_PrimitivesItems {
1211 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
1212 set {_uniqueStorage()._items = newValue}
1213 }
1214 /// Returns true if `items` has been explicitly set.
1215 public var hasItems: Bool {return _storage._items != nil}
1216 /// Clears the value of `items`. Subsequent reads from it will return its default value.
1217 public mutating func clearItems() {_storage._items = nil}
1218
1219 public var collectionFormat: String {
1220 get {return _storage._collectionFormat}
1221 set {_uniqueStorage()._collectionFormat = newValue}
1222 }
1223
1224 public var `default`: Openapi_V2_Any {
1225 get {return _storage._default ?? Openapi_V2_Any()}
1226 set {_uniqueStorage()._default = newValue}
1227 }
1228 /// Returns true if ``default`` has been explicitly set.
1229 public var hasDefault: Bool {return _storage._default != nil}
1230 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
1231 public mutating func clearDefault() {_storage._default = nil}
1232
1233 public var maximum: Double {
1234 get {return _storage._maximum}
1235 set {_uniqueStorage()._maximum = newValue}
1236 }
1237
1238 public var exclusiveMaximum: Bool {
1239 get {return _storage._exclusiveMaximum}
1240 set {_uniqueStorage()._exclusiveMaximum = newValue}
1241 }
1242
1243 public var minimum: Double {
1244 get {return _storage._minimum}
1245 set {_uniqueStorage()._minimum = newValue}
1246 }
1247
1248 public var exclusiveMinimum: Bool {
1249 get {return _storage._exclusiveMinimum}
1250 set {_uniqueStorage()._exclusiveMinimum = newValue}
1251 }
1252
1253 public var maxLength: Int64 {
1254 get {return _storage._maxLength}
1255 set {_uniqueStorage()._maxLength = newValue}
1256 }
1257
1258 public var minLength: Int64 {
1259 get {return _storage._minLength}
1260 set {_uniqueStorage()._minLength = newValue}
1261 }
1262
1263 public var pattern: String {
1264 get {return _storage._pattern}
1265 set {_uniqueStorage()._pattern = newValue}
1266 }
1267
1268 public var maxItems: Int64 {
1269 get {return _storage._maxItems}
1270 set {_uniqueStorage()._maxItems = newValue}
1271 }
1272
1273 public var minItems: Int64 {
1274 get {return _storage._minItems}
1275 set {_uniqueStorage()._minItems = newValue}
1276 }
1277
1278 public var uniqueItems: Bool {
1279 get {return _storage._uniqueItems}
1280 set {_uniqueStorage()._uniqueItems = newValue}
1281 }
1282
1283 public var `enum`: [Openapi_V2_Any] {
1284 get {return _storage._enum}
1285 set {_uniqueStorage()._enum = newValue}
1286 }
1287
1288 public var multipleOf: Double {
1289 get {return _storage._multipleOf}
1290 set {_uniqueStorage()._multipleOf = newValue}
1291 }
1292
1293 public var description_p: String {
1294 get {return _storage._description_p}
1295 set {_uniqueStorage()._description_p = newValue}
1296 }
1297
1298 public var vendorExtension: [Openapi_V2_NamedAny] {
1299 get {return _storage._vendorExtension}
1300 set {_uniqueStorage()._vendorExtension = newValue}
1301 }
1302
1303 public var unknownFields = SwiftProtobuf.UnknownStorage()
1304
1305 public init() {}
1306
1307 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1308 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1309 /// initializers are defined in the SwiftProtobuf library. See the Message and
1310 /// Message+*Additions` files.
1311 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1312 _ = _uniqueStorage()
1313 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1314 while let fieldNumber = try decoder.nextFieldNumber() {
1315 switch fieldNumber {
1316 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
1317 case 2: try decoder.decodeSingularStringField(value: &_storage._format)
1318 case 3: try decoder.decodeSingularMessageField(value: &_storage._items)
1319 case 4: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
1320 case 5: try decoder.decodeSingularMessageField(value: &_storage._default)
1321 case 6: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
1322 case 7: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
1323 case 8: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
1324 case 9: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
1325 case 10: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
1326 case 11: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
1327 case 12: try decoder.decodeSingularStringField(value: &_storage._pattern)
1328 case 13: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
1329 case 14: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
1330 case 15: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
1331 case 16: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
1332 case 17: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
1333 case 18: try decoder.decodeSingularStringField(value: &_storage._description_p)
1334 case 19: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
1335 default: break
1336 }
1337 }
1338 }
1339 }
1340
1341 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1342 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1343 /// other serializer methods are defined in the SwiftProtobuf library. See the
1344 /// `Message` and `Message+*Additions` files.
1345 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1346 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1347 if !_storage._type.isEmpty {
1348 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
1349 }
1350 if !_storage._format.isEmpty {
1351 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 2)
1352 }
1353 if let v = _storage._items {
1354 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
1355 }
1356 if !_storage._collectionFormat.isEmpty {
1357 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 4)
1358 }
1359 if let v = _storage._default {
1360 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
1361 }
1362 if _storage._maximum != 0 {
1363 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 6)
1364 }
1365 if _storage._exclusiveMaximum != false {
1366 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 7)
1367 }
1368 if _storage._minimum != 0 {
1369 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 8)
1370 }
1371 if _storage._exclusiveMinimum != false {
1372 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 9)
1373 }
1374 if _storage._maxLength != 0 {
1375 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 10)
1376 }
1377 if _storage._minLength != 0 {
1378 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 11)
1379 }
1380 if !_storage._pattern.isEmpty {
1381 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 12)
1382 }
1383 if _storage._maxItems != 0 {
1384 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 13)
1385 }
1386 if _storage._minItems != 0 {
1387 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 14)
1388 }
1389 if _storage._uniqueItems != false {
1390 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 15)
1391 }
1392 if !_storage._enum.isEmpty {
1393 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 16)
1394 }
1395 if _storage._multipleOf != 0 {
1396 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 17)
1397 }
1398 if !_storage._description_p.isEmpty {
1399 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 18)
1400 }
1401 if !_storage._vendorExtension.isEmpty {
1402 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 19)
1403 }
1404 }
1405 try unknownFields.traverse(visitor: &visitor)
1406 }
1407
1408 fileprivate var _storage = _StorageClass.defaultInstance
1409 }
1410
1411 public struct Openapi_V2_HeaderParameterSubSchema: SwiftProtobuf.Message {
1412 public static let protoMessageName: String = _protobuf_package + ".HeaderParameterSubSchema"
1413
1414 /// Determines whether or not this parameter is required or optional.
1415 public var required: Bool {
1416 get {return _storage._required}
1417 set {_uniqueStorage()._required = newValue}
1418 }
1419
1420 /// Determines the location of the parameter.
1421 public var `in`: String {
1422 get {return _storage._in}
1423 set {_uniqueStorage()._in = newValue}
1424 }
1425
1426 /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
1427 public var description_p: String {
1428 get {return _storage._description_p}
1429 set {_uniqueStorage()._description_p = newValue}
1430 }
1431
1432 /// The name of the parameter.
1433 public var name: String {
1434 get {return _storage._name}
1435 set {_uniqueStorage()._name = newValue}
1436 }
1437
1438 public var type: String {
1439 get {return _storage._type}
1440 set {_uniqueStorage()._type = newValue}
1441 }
1442
1443 public var format: String {
1444 get {return _storage._format}
1445 set {_uniqueStorage()._format = newValue}
1446 }
1447
1448 public var items: Openapi_V2_PrimitivesItems {
1449 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
1450 set {_uniqueStorage()._items = newValue}
1451 }
1452 /// Returns true if `items` has been explicitly set.
1453 public var hasItems: Bool {return _storage._items != nil}
1454 /// Clears the value of `items`. Subsequent reads from it will return its default value.
1455 public mutating func clearItems() {_storage._items = nil}
1456
1457 public var collectionFormat: String {
1458 get {return _storage._collectionFormat}
1459 set {_uniqueStorage()._collectionFormat = newValue}
1460 }
1461
1462 public var `default`: Openapi_V2_Any {
1463 get {return _storage._default ?? Openapi_V2_Any()}
1464 set {_uniqueStorage()._default = newValue}
1465 }
1466 /// Returns true if ``default`` has been explicitly set.
1467 public var hasDefault: Bool {return _storage._default != nil}
1468 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
1469 public mutating func clearDefault() {_storage._default = nil}
1470
1471 public var maximum: Double {
1472 get {return _storage._maximum}
1473 set {_uniqueStorage()._maximum = newValue}
1474 }
1475
1476 public var exclusiveMaximum: Bool {
1477 get {return _storage._exclusiveMaximum}
1478 set {_uniqueStorage()._exclusiveMaximum = newValue}
1479 }
1480
1481 public var minimum: Double {
1482 get {return _storage._minimum}
1483 set {_uniqueStorage()._minimum = newValue}
1484 }
1485
1486 public var exclusiveMinimum: Bool {
1487 get {return _storage._exclusiveMinimum}
1488 set {_uniqueStorage()._exclusiveMinimum = newValue}
1489 }
1490
1491 public var maxLength: Int64 {
1492 get {return _storage._maxLength}
1493 set {_uniqueStorage()._maxLength = newValue}
1494 }
1495
1496 public var minLength: Int64 {
1497 get {return _storage._minLength}
1498 set {_uniqueStorage()._minLength = newValue}
1499 }
1500
1501 public var pattern: String {
1502 get {return _storage._pattern}
1503 set {_uniqueStorage()._pattern = newValue}
1504 }
1505
1506 public var maxItems: Int64 {
1507 get {return _storage._maxItems}
1508 set {_uniqueStorage()._maxItems = newValue}
1509 }
1510
1511 public var minItems: Int64 {
1512 get {return _storage._minItems}
1513 set {_uniqueStorage()._minItems = newValue}
1514 }
1515
1516 public var uniqueItems: Bool {
1517 get {return _storage._uniqueItems}
1518 set {_uniqueStorage()._uniqueItems = newValue}
1519 }
1520
1521 public var `enum`: [Openapi_V2_Any] {
1522 get {return _storage._enum}
1523 set {_uniqueStorage()._enum = newValue}
1524 }
1525
1526 public var multipleOf: Double {
1527 get {return _storage._multipleOf}
1528 set {_uniqueStorage()._multipleOf = newValue}
1529 }
1530
1531 public var vendorExtension: [Openapi_V2_NamedAny] {
1532 get {return _storage._vendorExtension}
1533 set {_uniqueStorage()._vendorExtension = newValue}
1534 }
1535
1536 public var unknownFields = SwiftProtobuf.UnknownStorage()
1537
1538 public init() {}
1539
1540 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1541 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1542 /// initializers are defined in the SwiftProtobuf library. See the Message and
1543 /// Message+*Additions` files.
1544 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1545 _ = _uniqueStorage()
1546 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1547 while let fieldNumber = try decoder.nextFieldNumber() {
1548 switch fieldNumber {
1549 case 1: try decoder.decodeSingularBoolField(value: &_storage._required)
1550 case 2: try decoder.decodeSingularStringField(value: &_storage._in)
1551 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
1552 case 4: try decoder.decodeSingularStringField(value: &_storage._name)
1553 case 5: try decoder.decodeSingularStringField(value: &_storage._type)
1554 case 6: try decoder.decodeSingularStringField(value: &_storage._format)
1555 case 7: try decoder.decodeSingularMessageField(value: &_storage._items)
1556 case 8: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
1557 case 9: try decoder.decodeSingularMessageField(value: &_storage._default)
1558 case 10: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
1559 case 11: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
1560 case 12: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
1561 case 13: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
1562 case 14: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
1563 case 15: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
1564 case 16: try decoder.decodeSingularStringField(value: &_storage._pattern)
1565 case 17: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
1566 case 18: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
1567 case 19: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
1568 case 20: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
1569 case 21: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
1570 case 22: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
1571 default: break
1572 }
1573 }
1574 }
1575 }
1576
1577 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1578 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1579 /// other serializer methods are defined in the SwiftProtobuf library. See the
1580 /// `Message` and `Message+*Additions` files.
1581 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1582 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1583 if _storage._required != false {
1584 try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1)
1585 }
1586 if !_storage._in.isEmpty {
1587 try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2)
1588 }
1589 if !_storage._description_p.isEmpty {
1590 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
1591 }
1592 if !_storage._name.isEmpty {
1593 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4)
1594 }
1595 if !_storage._type.isEmpty {
1596 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 5)
1597 }
1598 if !_storage._format.isEmpty {
1599 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 6)
1600 }
1601 if let v = _storage._items {
1602 try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
1603 }
1604 if !_storage._collectionFormat.isEmpty {
1605 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 8)
1606 }
1607 if let v = _storage._default {
1608 try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
1609 }
1610 if _storage._maximum != 0 {
1611 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 10)
1612 }
1613 if _storage._exclusiveMaximum != false {
1614 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 11)
1615 }
1616 if _storage._minimum != 0 {
1617 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 12)
1618 }
1619 if _storage._exclusiveMinimum != false {
1620 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 13)
1621 }
1622 if _storage._maxLength != 0 {
1623 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 14)
1624 }
1625 if _storage._minLength != 0 {
1626 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 15)
1627 }
1628 if !_storage._pattern.isEmpty {
1629 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 16)
1630 }
1631 if _storage._maxItems != 0 {
1632 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 17)
1633 }
1634 if _storage._minItems != 0 {
1635 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 18)
1636 }
1637 if _storage._uniqueItems != false {
1638 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 19)
1639 }
1640 if !_storage._enum.isEmpty {
1641 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 20)
1642 }
1643 if _storage._multipleOf != 0 {
1644 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 21)
1645 }
1646 if !_storage._vendorExtension.isEmpty {
1647 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 22)
1648 }
1649 }
1650 try unknownFields.traverse(visitor: &visitor)
1651 }
1652
1653 fileprivate var _storage = _StorageClass.defaultInstance
1654 }
1655
1656 public struct Openapi_V2_Headers: SwiftProtobuf.Message {
1657 public static let protoMessageName: String = _protobuf_package + ".Headers"
1658
1659 public var additionalProperties: [Openapi_V2_NamedHeader] = []
1660
1661 public var unknownFields = SwiftProtobuf.UnknownStorage()
1662
1663 public init() {}
1664
1665 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1666 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1667 /// initializers are defined in the SwiftProtobuf library. See the Message and
1668 /// Message+*Additions` files.
1669 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1670 while let fieldNumber = try decoder.nextFieldNumber() {
1671 switch fieldNumber {
1672 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
1673 default: break
1674 }
1675 }
1676 }
1677
1678 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1679 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1680 /// other serializer methods are defined in the SwiftProtobuf library. See the
1681 /// `Message` and `Message+*Additions` files.
1682 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1683 if !self.additionalProperties.isEmpty {
1684 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
1685 }
1686 try unknownFields.traverse(visitor: &visitor)
1687 }
1688 }
1689
1690 /// General information about the API.
1691 public struct Openapi_V2_Info: SwiftProtobuf.Message {
1692 public static let protoMessageName: String = _protobuf_package + ".Info"
1693
1694 /// A unique and precise title of the API.
1695 public var title: String {
1696 get {return _storage._title}
1697 set {_uniqueStorage()._title = newValue}
1698 }
1699
1700 /// A semantic version number of the API.
1701 public var version: String {
1702 get {return _storage._version}
1703 set {_uniqueStorage()._version = newValue}
1704 }
1705
1706 /// A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed.
1707 public var description_p: String {
1708 get {return _storage._description_p}
1709 set {_uniqueStorage()._description_p = newValue}
1710 }
1711
1712 /// The terms of service for the API.
1713 public var termsOfService: String {
1714 get {return _storage._termsOfService}
1715 set {_uniqueStorage()._termsOfService = newValue}
1716 }
1717
1718 public var contact: Openapi_V2_Contact {
1719 get {return _storage._contact ?? Openapi_V2_Contact()}
1720 set {_uniqueStorage()._contact = newValue}
1721 }
1722 /// Returns true if `contact` has been explicitly set.
1723 public var hasContact: Bool {return _storage._contact != nil}
1724 /// Clears the value of `contact`. Subsequent reads from it will return its default value.
1725 public mutating func clearContact() {_storage._contact = nil}
1726
1727 public var license: Openapi_V2_License {
1728 get {return _storage._license ?? Openapi_V2_License()}
1729 set {_uniqueStorage()._license = newValue}
1730 }
1731 /// Returns true if `license` has been explicitly set.
1732 public var hasLicense: Bool {return _storage._license != nil}
1733 /// Clears the value of `license`. Subsequent reads from it will return its default value.
1734 public mutating func clearLicense() {_storage._license = nil}
1735
1736 public var vendorExtension: [Openapi_V2_NamedAny] {
1737 get {return _storage._vendorExtension}
1738 set {_uniqueStorage()._vendorExtension = newValue}
1739 }
1740
1741 public var unknownFields = SwiftProtobuf.UnknownStorage()
1742
1743 public init() {}
1744
1745 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1746 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1747 /// initializers are defined in the SwiftProtobuf library. See the Message and
1748 /// Message+*Additions` files.
1749 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1750 _ = _uniqueStorage()
1751 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1752 while let fieldNumber = try decoder.nextFieldNumber() {
1753 switch fieldNumber {
1754 case 1: try decoder.decodeSingularStringField(value: &_storage._title)
1755 case 2: try decoder.decodeSingularStringField(value: &_storage._version)
1756 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
1757 case 4: try decoder.decodeSingularStringField(value: &_storage._termsOfService)
1758 case 5: try decoder.decodeSingularMessageField(value: &_storage._contact)
1759 case 6: try decoder.decodeSingularMessageField(value: &_storage._license)
1760 case 7: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
1761 default: break
1762 }
1763 }
1764 }
1765 }
1766
1767 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1768 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1769 /// other serializer methods are defined in the SwiftProtobuf library. See the
1770 /// `Message` and `Message+*Additions` files.
1771 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1772 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1773 if !_storage._title.isEmpty {
1774 try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 1)
1775 }
1776 if !_storage._version.isEmpty {
1777 try visitor.visitSingularStringField(value: _storage._version, fieldNumber: 2)
1778 }
1779 if !_storage._description_p.isEmpty {
1780 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
1781 }
1782 if !_storage._termsOfService.isEmpty {
1783 try visitor.visitSingularStringField(value: _storage._termsOfService, fieldNumber: 4)
1784 }
1785 if let v = _storage._contact {
1786 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
1787 }
1788 if let v = _storage._license {
1789 try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
1790 }
1791 if !_storage._vendorExtension.isEmpty {
1792 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 7)
1793 }
1794 }
1795 try unknownFields.traverse(visitor: &visitor)
1796 }
1797
1798 fileprivate var _storage = _StorageClass.defaultInstance
1799 }
1800
1801 public struct Openapi_V2_ItemsItem: SwiftProtobuf.Message {
1802 public static let protoMessageName: String = _protobuf_package + ".ItemsItem"
1803
1804 public var schema: [Openapi_V2_Schema] = []
1805
1806 public var unknownFields = SwiftProtobuf.UnknownStorage()
1807
1808 public init() {}
1809
1810 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1811 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1812 /// initializers are defined in the SwiftProtobuf library. See the Message and
1813 /// Message+*Additions` files.
1814 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1815 while let fieldNumber = try decoder.nextFieldNumber() {
1816 switch fieldNumber {
1817 case 1: try decoder.decodeRepeatedMessageField(value: &self.schema)
1818 default: break
1819 }
1820 }
1821 }
1822
1823 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1824 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1825 /// other serializer methods are defined in the SwiftProtobuf library. See the
1826 /// `Message` and `Message+*Additions` files.
1827 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1828 if !self.schema.isEmpty {
1829 try visitor.visitRepeatedMessageField(value: self.schema, fieldNumber: 1)
1830 }
1831 try unknownFields.traverse(visitor: &visitor)
1832 }
1833 }
1834
1835 public struct Openapi_V2_JsonReference: SwiftProtobuf.Message {
1836 public static let protoMessageName: String = _protobuf_package + ".JsonReference"
1837
1838 public var ref: String = String()
1839
1840 public var description_p: String = String()
1841
1842 public var unknownFields = SwiftProtobuf.UnknownStorage()
1843
1844 public init() {}
1845
1846 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1847 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1848 /// initializers are defined in the SwiftProtobuf library. See the Message and
1849 /// Message+*Additions` files.
1850 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1851 while let fieldNumber = try decoder.nextFieldNumber() {
1852 switch fieldNumber {
1853 case 1: try decoder.decodeSingularStringField(value: &self.ref)
1854 case 2: try decoder.decodeSingularStringField(value: &self.description_p)
1855 default: break
1856 }
1857 }
1858 }
1859
1860 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1861 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1862 /// other serializer methods are defined in the SwiftProtobuf library. See the
1863 /// `Message` and `Message+*Additions` files.
1864 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1865 if !self.ref.isEmpty {
1866 try visitor.visitSingularStringField(value: self.ref, fieldNumber: 1)
1867 }
1868 if !self.description_p.isEmpty {
1869 try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2)
1870 }
1871 try unknownFields.traverse(visitor: &visitor)
1872 }
1873 }
1874
1875 public struct Openapi_V2_License: SwiftProtobuf.Message {
1876 public static let protoMessageName: String = _protobuf_package + ".License"
1877
1878 /// The name of the license type. It's encouraged to use an OSI compatible license.
1879 public var name: String = String()
1880
1881 /// The URL pointing to the license.
1882 public var url: String = String()
1883
1884 public var vendorExtension: [Openapi_V2_NamedAny] = []
1885
1886 public var unknownFields = SwiftProtobuf.UnknownStorage()
1887
1888 public init() {}
1889
1890 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1891 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1892 /// initializers are defined in the SwiftProtobuf library. See the Message and
1893 /// Message+*Additions` files.
1894 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1895 while let fieldNumber = try decoder.nextFieldNumber() {
1896 switch fieldNumber {
1897 case 1: try decoder.decodeSingularStringField(value: &self.name)
1898 case 2: try decoder.decodeSingularStringField(value: &self.url)
1899 case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
1900 default: break
1901 }
1902 }
1903 }
1904
1905 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1906 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1907 /// other serializer methods are defined in the SwiftProtobuf library. See the
1908 /// `Message` and `Message+*Additions` files.
1909 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1910 if !self.name.isEmpty {
1911 try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
1912 }
1913 if !self.url.isEmpty {
1914 try visitor.visitSingularStringField(value: self.url, fieldNumber: 2)
1915 }
1916 if !self.vendorExtension.isEmpty {
1917 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3)
1918 }
1919 try unknownFields.traverse(visitor: &visitor)
1920 }
1921 }
1922
1923 /// Automatically-generated message used to represent maps of Any as ordered (name,value) pairs.
1924 public struct Openapi_V2_NamedAny: SwiftProtobuf.Message {
1925 public static let protoMessageName: String = _protobuf_package + ".NamedAny"
1926
1927 /// Map key
1928 public var name: String {
1929 get {return _storage._name}
1930 set {_uniqueStorage()._name = newValue}
1931 }
1932
1933 /// Mapped value
1934 public var value: Openapi_V2_Any {
1935 get {return _storage._value ?? Openapi_V2_Any()}
1936 set {_uniqueStorage()._value = newValue}
1937 }
1938 /// Returns true if `value` has been explicitly set.
1939 public var hasValue: Bool {return _storage._value != nil}
1940 /// Clears the value of `value`. Subsequent reads from it will return its default value.
1941 public mutating func clearValue() {_storage._value = nil}
1942
1943 public var unknownFields = SwiftProtobuf.UnknownStorage()
1944
1945 public init() {}
1946
1947 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1948 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1949 /// initializers are defined in the SwiftProtobuf library. See the Message and
1950 /// Message+*Additions` files.
1951 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1952 _ = _uniqueStorage()
1953 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1954 while let fieldNumber = try decoder.nextFieldNumber() {
1955 switch fieldNumber {
1956 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
1957 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
1958 default: break
1959 }
1960 }
1961 }
1962 }
1963
1964 /// Used by the encoding methods of the SwiftProtobuf library, not generally
1965 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1966 /// other serializer methods are defined in the SwiftProtobuf library. See the
1967 /// `Message` and `Message+*Additions` files.
1968 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1969 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1970 if !_storage._name.isEmpty {
1971 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
1972 }
1973 if let v = _storage._value {
1974 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1975 }
1976 }
1977 try unknownFields.traverse(visitor: &visitor)
1978 }
1979
1980 fileprivate var _storage = _StorageClass.defaultInstance
1981 }
1982
1983 /// Automatically-generated message used to represent maps of Header as ordered (name,value) pairs.
1984 public struct Openapi_V2_NamedHeader: SwiftProtobuf.Message {
1985 public static let protoMessageName: String = _protobuf_package + ".NamedHeader"
1986
1987 /// Map key
1988 public var name: String {
1989 get {return _storage._name}
1990 set {_uniqueStorage()._name = newValue}
1991 }
1992
1993 /// Mapped value
1994 public var value: Openapi_V2_Header {
1995 get {return _storage._value ?? Openapi_V2_Header()}
1996 set {_uniqueStorage()._value = newValue}
1997 }
1998 /// Returns true if `value` has been explicitly set.
1999 public var hasValue: Bool {return _storage._value != nil}
2000 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2001 public mutating func clearValue() {_storage._value = nil}
2002
2003 public var unknownFields = SwiftProtobuf.UnknownStorage()
2004
2005 public init() {}
2006
2007 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2008 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2009 /// initializers are defined in the SwiftProtobuf library. See the Message and
2010 /// Message+*Additions` files.
2011 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2012 _ = _uniqueStorage()
2013 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2014 while let fieldNumber = try decoder.nextFieldNumber() {
2015 switch fieldNumber {
2016 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2017 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2018 default: break
2019 }
2020 }
2021 }
2022 }
2023
2024 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2025 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2026 /// other serializer methods are defined in the SwiftProtobuf library. See the
2027 /// `Message` and `Message+*Additions` files.
2028 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2029 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2030 if !_storage._name.isEmpty {
2031 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2032 }
2033 if let v = _storage._value {
2034 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2035 }
2036 }
2037 try unknownFields.traverse(visitor: &visitor)
2038 }
2039
2040 fileprivate var _storage = _StorageClass.defaultInstance
2041 }
2042
2043 /// Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs.
2044 public struct Openapi_V2_NamedParameter: SwiftProtobuf.Message {
2045 public static let protoMessageName: String = _protobuf_package + ".NamedParameter"
2046
2047 /// Map key
2048 public var name: String {
2049 get {return _storage._name}
2050 set {_uniqueStorage()._name = newValue}
2051 }
2052
2053 /// Mapped value
2054 public var value: Openapi_V2_Parameter {
2055 get {return _storage._value ?? Openapi_V2_Parameter()}
2056 set {_uniqueStorage()._value = newValue}
2057 }
2058 /// Returns true if `value` has been explicitly set.
2059 public var hasValue: Bool {return _storage._value != nil}
2060 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2061 public mutating func clearValue() {_storage._value = nil}
2062
2063 public var unknownFields = SwiftProtobuf.UnknownStorage()
2064
2065 public init() {}
2066
2067 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2068 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2069 /// initializers are defined in the SwiftProtobuf library. See the Message and
2070 /// Message+*Additions` files.
2071 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2072 _ = _uniqueStorage()
2073 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2074 while let fieldNumber = try decoder.nextFieldNumber() {
2075 switch fieldNumber {
2076 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2077 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2078 default: break
2079 }
2080 }
2081 }
2082 }
2083
2084 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2085 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2086 /// other serializer methods are defined in the SwiftProtobuf library. See the
2087 /// `Message` and `Message+*Additions` files.
2088 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2089 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2090 if !_storage._name.isEmpty {
2091 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2092 }
2093 if let v = _storage._value {
2094 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2095 }
2096 }
2097 try unknownFields.traverse(visitor: &visitor)
2098 }
2099
2100 fileprivate var _storage = _StorageClass.defaultInstance
2101 }
2102
2103 /// Automatically-generated message used to represent maps of PathItem as ordered (name,value) pairs.
2104 public struct Openapi_V2_NamedPathItem: SwiftProtobuf.Message {
2105 public static let protoMessageName: String = _protobuf_package + ".NamedPathItem"
2106
2107 /// Map key
2108 public var name: String {
2109 get {return _storage._name}
2110 set {_uniqueStorage()._name = newValue}
2111 }
2112
2113 /// Mapped value
2114 public var value: Openapi_V2_PathItem {
2115 get {return _storage._value ?? Openapi_V2_PathItem()}
2116 set {_uniqueStorage()._value = newValue}
2117 }
2118 /// Returns true if `value` has been explicitly set.
2119 public var hasValue: Bool {return _storage._value != nil}
2120 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2121 public mutating func clearValue() {_storage._value = nil}
2122
2123 public var unknownFields = SwiftProtobuf.UnknownStorage()
2124
2125 public init() {}
2126
2127 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2128 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2129 /// initializers are defined in the SwiftProtobuf library. See the Message and
2130 /// Message+*Additions` files.
2131 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2132 _ = _uniqueStorage()
2133 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2134 while let fieldNumber = try decoder.nextFieldNumber() {
2135 switch fieldNumber {
2136 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2137 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2138 default: break
2139 }
2140 }
2141 }
2142 }
2143
2144 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2145 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2146 /// other serializer methods are defined in the SwiftProtobuf library. See the
2147 /// `Message` and `Message+*Additions` files.
2148 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2149 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2150 if !_storage._name.isEmpty {
2151 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2152 }
2153 if let v = _storage._value {
2154 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2155 }
2156 }
2157 try unknownFields.traverse(visitor: &visitor)
2158 }
2159
2160 fileprivate var _storage = _StorageClass.defaultInstance
2161 }
2162
2163 /// Automatically-generated message used to represent maps of Response as ordered (name,value) pairs.
2164 public struct Openapi_V2_NamedResponse: SwiftProtobuf.Message {
2165 public static let protoMessageName: String = _protobuf_package + ".NamedResponse"
2166
2167 /// Map key
2168 public var name: String {
2169 get {return _storage._name}
2170 set {_uniqueStorage()._name = newValue}
2171 }
2172
2173 /// Mapped value
2174 public var value: Openapi_V2_Response {
2175 get {return _storage._value ?? Openapi_V2_Response()}
2176 set {_uniqueStorage()._value = newValue}
2177 }
2178 /// Returns true if `value` has been explicitly set.
2179 public var hasValue: Bool {return _storage._value != nil}
2180 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2181 public mutating func clearValue() {_storage._value = nil}
2182
2183 public var unknownFields = SwiftProtobuf.UnknownStorage()
2184
2185 public init() {}
2186
2187 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2188 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2189 /// initializers are defined in the SwiftProtobuf library. See the Message and
2190 /// Message+*Additions` files.
2191 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2192 _ = _uniqueStorage()
2193 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2194 while let fieldNumber = try decoder.nextFieldNumber() {
2195 switch fieldNumber {
2196 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2197 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2198 default: break
2199 }
2200 }
2201 }
2202 }
2203
2204 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2205 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2206 /// other serializer methods are defined in the SwiftProtobuf library. See the
2207 /// `Message` and `Message+*Additions` files.
2208 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2209 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2210 if !_storage._name.isEmpty {
2211 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2212 }
2213 if let v = _storage._value {
2214 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2215 }
2216 }
2217 try unknownFields.traverse(visitor: &visitor)
2218 }
2219
2220 fileprivate var _storage = _StorageClass.defaultInstance
2221 }
2222
2223 /// Automatically-generated message used to represent maps of ResponseValue as ordered (name,value) pairs.
2224 public struct Openapi_V2_NamedResponseValue: SwiftProtobuf.Message {
2225 public static let protoMessageName: String = _protobuf_package + ".NamedResponseValue"
2226
2227 /// Map key
2228 public var name: String {
2229 get {return _storage._name}
2230 set {_uniqueStorage()._name = newValue}
2231 }
2232
2233 /// Mapped value
2234 public var value: Openapi_V2_ResponseValue {
2235 get {return _storage._value ?? Openapi_V2_ResponseValue()}
2236 set {_uniqueStorage()._value = newValue}
2237 }
2238 /// Returns true if `value` has been explicitly set.
2239 public var hasValue: Bool {return _storage._value != nil}
2240 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2241 public mutating func clearValue() {_storage._value = nil}
2242
2243 public var unknownFields = SwiftProtobuf.UnknownStorage()
2244
2245 public init() {}
2246
2247 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2248 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2249 /// initializers are defined in the SwiftProtobuf library. See the Message and
2250 /// Message+*Additions` files.
2251 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2252 _ = _uniqueStorage()
2253 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2254 while let fieldNumber = try decoder.nextFieldNumber() {
2255 switch fieldNumber {
2256 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2257 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2258 default: break
2259 }
2260 }
2261 }
2262 }
2263
2264 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2265 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2266 /// other serializer methods are defined in the SwiftProtobuf library. See the
2267 /// `Message` and `Message+*Additions` files.
2268 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2269 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2270 if !_storage._name.isEmpty {
2271 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2272 }
2273 if let v = _storage._value {
2274 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2275 }
2276 }
2277 try unknownFields.traverse(visitor: &visitor)
2278 }
2279
2280 fileprivate var _storage = _StorageClass.defaultInstance
2281 }
2282
2283 /// Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs.
2284 public struct Openapi_V2_NamedSchema: SwiftProtobuf.Message {
2285 public static let protoMessageName: String = _protobuf_package + ".NamedSchema"
2286
2287 /// Map key
2288 public var name: String {
2289 get {return _storage._name}
2290 set {_uniqueStorage()._name = newValue}
2291 }
2292
2293 /// Mapped value
2294 public var value: Openapi_V2_Schema {
2295 get {return _storage._value ?? Openapi_V2_Schema()}
2296 set {_uniqueStorage()._value = newValue}
2297 }
2298 /// Returns true if `value` has been explicitly set.
2299 public var hasValue: Bool {return _storage._value != nil}
2300 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2301 public mutating func clearValue() {_storage._value = nil}
2302
2303 public var unknownFields = SwiftProtobuf.UnknownStorage()
2304
2305 public init() {}
2306
2307 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2308 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2309 /// initializers are defined in the SwiftProtobuf library. See the Message and
2310 /// Message+*Additions` files.
2311 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2312 _ = _uniqueStorage()
2313 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2314 while let fieldNumber = try decoder.nextFieldNumber() {
2315 switch fieldNumber {
2316 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2317 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2318 default: break
2319 }
2320 }
2321 }
2322 }
2323
2324 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2325 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2326 /// other serializer methods are defined in the SwiftProtobuf library. See the
2327 /// `Message` and `Message+*Additions` files.
2328 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2329 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2330 if !_storage._name.isEmpty {
2331 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2332 }
2333 if let v = _storage._value {
2334 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2335 }
2336 }
2337 try unknownFields.traverse(visitor: &visitor)
2338 }
2339
2340 fileprivate var _storage = _StorageClass.defaultInstance
2341 }
2342
2343 /// Automatically-generated message used to represent maps of SecurityDefinitionsItem as ordered (name,value) pairs.
2344 public struct Openapi_V2_NamedSecurityDefinitionsItem: SwiftProtobuf.Message {
2345 public static let protoMessageName: String = _protobuf_package + ".NamedSecurityDefinitionsItem"
2346
2347 /// Map key
2348 public var name: String {
2349 get {return _storage._name}
2350 set {_uniqueStorage()._name = newValue}
2351 }
2352
2353 /// Mapped value
2354 public var value: Openapi_V2_SecurityDefinitionsItem {
2355 get {return _storage._value ?? Openapi_V2_SecurityDefinitionsItem()}
2356 set {_uniqueStorage()._value = newValue}
2357 }
2358 /// Returns true if `value` has been explicitly set.
2359 public var hasValue: Bool {return _storage._value != nil}
2360 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2361 public mutating func clearValue() {_storage._value = nil}
2362
2363 public var unknownFields = SwiftProtobuf.UnknownStorage()
2364
2365 public init() {}
2366
2367 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2368 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2369 /// initializers are defined in the SwiftProtobuf library. See the Message and
2370 /// Message+*Additions` files.
2371 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2372 _ = _uniqueStorage()
2373 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2374 while let fieldNumber = try decoder.nextFieldNumber() {
2375 switch fieldNumber {
2376 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2377 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2378 default: break
2379 }
2380 }
2381 }
2382 }
2383
2384 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2385 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2386 /// other serializer methods are defined in the SwiftProtobuf library. See the
2387 /// `Message` and `Message+*Additions` files.
2388 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2389 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2390 if !_storage._name.isEmpty {
2391 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2392 }
2393 if let v = _storage._value {
2394 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2395 }
2396 }
2397 try unknownFields.traverse(visitor: &visitor)
2398 }
2399
2400 fileprivate var _storage = _StorageClass.defaultInstance
2401 }
2402
2403 /// Automatically-generated message used to represent maps of string as ordered (name,value) pairs.
2404 public struct Openapi_V2_NamedString: SwiftProtobuf.Message {
2405 public static let protoMessageName: String = _protobuf_package + ".NamedString"
2406
2407 /// Map key
2408 public var name: String = String()
2409
2410 /// Mapped value
2411 public var value: String = String()
2412
2413 public var unknownFields = SwiftProtobuf.UnknownStorage()
2414
2415 public init() {}
2416
2417 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2418 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2419 /// initializers are defined in the SwiftProtobuf library. See the Message and
2420 /// Message+*Additions` files.
2421 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2422 while let fieldNumber = try decoder.nextFieldNumber() {
2423 switch fieldNumber {
2424 case 1: try decoder.decodeSingularStringField(value: &self.name)
2425 case 2: try decoder.decodeSingularStringField(value: &self.value)
2426 default: break
2427 }
2428 }
2429 }
2430
2431 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2432 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2433 /// other serializer methods are defined in the SwiftProtobuf library. See the
2434 /// `Message` and `Message+*Additions` files.
2435 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2436 if !self.name.isEmpty {
2437 try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
2438 }
2439 if !self.value.isEmpty {
2440 try visitor.visitSingularStringField(value: self.value, fieldNumber: 2)
2441 }
2442 try unknownFields.traverse(visitor: &visitor)
2443 }
2444 }
2445
2446 /// Automatically-generated message used to represent maps of StringArray as ordered (name,value) pairs.
2447 public struct Openapi_V2_NamedStringArray: SwiftProtobuf.Message {
2448 public static let protoMessageName: String = _protobuf_package + ".NamedStringArray"
2449
2450 /// Map key
2451 public var name: String {
2452 get {return _storage._name}
2453 set {_uniqueStorage()._name = newValue}
2454 }
2455
2456 /// Mapped value
2457 public var value: Openapi_V2_StringArray {
2458 get {return _storage._value ?? Openapi_V2_StringArray()}
2459 set {_uniqueStorage()._value = newValue}
2460 }
2461 /// Returns true if `value` has been explicitly set.
2462 public var hasValue: Bool {return _storage._value != nil}
2463 /// Clears the value of `value`. Subsequent reads from it will return its default value.
2464 public mutating func clearValue() {_storage._value = nil}
2465
2466 public var unknownFields = SwiftProtobuf.UnknownStorage()
2467
2468 public init() {}
2469
2470 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2471 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2472 /// initializers are defined in the SwiftProtobuf library. See the Message and
2473 /// Message+*Additions` files.
2474 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2475 _ = _uniqueStorage()
2476 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2477 while let fieldNumber = try decoder.nextFieldNumber() {
2478 switch fieldNumber {
2479 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
2480 case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
2481 default: break
2482 }
2483 }
2484 }
2485 }
2486
2487 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2488 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2489 /// other serializer methods are defined in the SwiftProtobuf library. See the
2490 /// `Message` and `Message+*Additions` files.
2491 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2492 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2493 if !_storage._name.isEmpty {
2494 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
2495 }
2496 if let v = _storage._value {
2497 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2498 }
2499 }
2500 try unknownFields.traverse(visitor: &visitor)
2501 }
2502
2503 fileprivate var _storage = _StorageClass.defaultInstance
2504 }
2505
2506 public struct Openapi_V2_NonBodyParameter: SwiftProtobuf.Message {
2507 public static let protoMessageName: String = _protobuf_package + ".NonBodyParameter"
2508
2509 public var oneof: OneOf_Oneof? {
2510 get {return _storage._oneof}
2511 set {_uniqueStorage()._oneof = newValue}
2512 }
2513
2514 public var headerParameterSubSchema: Openapi_V2_HeaderParameterSubSchema {
2515 get {
2516 if case .headerParameterSubSchema(let v)? = _storage._oneof {return v}
2517 return Openapi_V2_HeaderParameterSubSchema()
2518 }
2519 set {_uniqueStorage()._oneof = .headerParameterSubSchema(newValue)}
2520 }
2521
2522 public var formDataParameterSubSchema: Openapi_V2_FormDataParameterSubSchema {
2523 get {
2524 if case .formDataParameterSubSchema(let v)? = _storage._oneof {return v}
2525 return Openapi_V2_FormDataParameterSubSchema()
2526 }
2527 set {_uniqueStorage()._oneof = .formDataParameterSubSchema(newValue)}
2528 }
2529
2530 public var queryParameterSubSchema: Openapi_V2_QueryParameterSubSchema {
2531 get {
2532 if case .queryParameterSubSchema(let v)? = _storage._oneof {return v}
2533 return Openapi_V2_QueryParameterSubSchema()
2534 }
2535 set {_uniqueStorage()._oneof = .queryParameterSubSchema(newValue)}
2536 }
2537
2538 public var pathParameterSubSchema: Openapi_V2_PathParameterSubSchema {
2539 get {
2540 if case .pathParameterSubSchema(let v)? = _storage._oneof {return v}
2541 return Openapi_V2_PathParameterSubSchema()
2542 }
2543 set {_uniqueStorage()._oneof = .pathParameterSubSchema(newValue)}
2544 }
2545
2546 public var unknownFields = SwiftProtobuf.UnknownStorage()
2547
2548 public enum OneOf_Oneof: Equatable {
2549 case headerParameterSubSchema(Openapi_V2_HeaderParameterSubSchema)
2550 case formDataParameterSubSchema(Openapi_V2_FormDataParameterSubSchema)
2551 case queryParameterSubSchema(Openapi_V2_QueryParameterSubSchema)
2552 case pathParameterSubSchema(Openapi_V2_PathParameterSubSchema)
2553
2554 public static func ==(lhs: Openapi_V2_NonBodyParameter.OneOf_Oneof, rhs: Openapi_V2_NonBodyParameter.OneOf_Oneof) -> Bool {
2555 switch (lhs, rhs) {
2556 case (.headerParameterSubSchema(let l), .headerParameterSubSchema(let r)): return l == r
2557 case (.formDataParameterSubSchema(let l), .formDataParameterSubSchema(let r)): return l == r
2558 case (.queryParameterSubSchema(let l), .queryParameterSubSchema(let r)): return l == r
2559 case (.pathParameterSubSchema(let l), .pathParameterSubSchema(let r)): return l == r
2560 default: return false
2561 }
2562 }
2563 }
2564
2565 public init() {}
2566
2567 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2568 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2569 /// initializers are defined in the SwiftProtobuf library. See the Message and
2570 /// Message+*Additions` files.
2571 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2572 _ = _uniqueStorage()
2573 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2574 while let fieldNumber = try decoder.nextFieldNumber() {
2575 switch fieldNumber {
2576 case 1:
2577 var v: Openapi_V2_HeaderParameterSubSchema?
2578 if let current = _storage._oneof {
2579 try decoder.handleConflictingOneOf()
2580 if case .headerParameterSubSchema(let m) = current {v = m}
2581 }
2582 try decoder.decodeSingularMessageField(value: &v)
2583 if let v = v {_storage._oneof = .headerParameterSubSchema(v)}
2584 case 2:
2585 var v: Openapi_V2_FormDataParameterSubSchema?
2586 if let current = _storage._oneof {
2587 try decoder.handleConflictingOneOf()
2588 if case .formDataParameterSubSchema(let m) = current {v = m}
2589 }
2590 try decoder.decodeSingularMessageField(value: &v)
2591 if let v = v {_storage._oneof = .formDataParameterSubSchema(v)}
2592 case 3:
2593 var v: Openapi_V2_QueryParameterSubSchema?
2594 if let current = _storage._oneof {
2595 try decoder.handleConflictingOneOf()
2596 if case .queryParameterSubSchema(let m) = current {v = m}
2597 }
2598 try decoder.decodeSingularMessageField(value: &v)
2599 if let v = v {_storage._oneof = .queryParameterSubSchema(v)}
2600 case 4:
2601 var v: Openapi_V2_PathParameterSubSchema?
2602 if let current = _storage._oneof {
2603 try decoder.handleConflictingOneOf()
2604 if case .pathParameterSubSchema(let m) = current {v = m}
2605 }
2606 try decoder.decodeSingularMessageField(value: &v)
2607 if let v = v {_storage._oneof = .pathParameterSubSchema(v)}
2608 default: break
2609 }
2610 }
2611 }
2612 }
2613
2614 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2615 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2616 /// other serializer methods are defined in the SwiftProtobuf library. See the
2617 /// `Message` and `Message+*Additions` files.
2618 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2619 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2620 switch _storage._oneof {
2621 case .headerParameterSubSchema(let v)?:
2622 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
2623 case .formDataParameterSubSchema(let v)?:
2624 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2625 case .queryParameterSubSchema(let v)?:
2626 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
2627 case .pathParameterSubSchema(let v)?:
2628 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
2629 case nil: break
2630 }
2631 }
2632 try unknownFields.traverse(visitor: &visitor)
2633 }
2634
2635 fileprivate var _storage = _StorageClass.defaultInstance
2636 }
2637
2638 public struct Openapi_V2_Oauth2AccessCodeSecurity: SwiftProtobuf.Message {
2639 public static let protoMessageName: String = _protobuf_package + ".Oauth2AccessCodeSecurity"
2640
2641 public var type: String {
2642 get {return _storage._type}
2643 set {_uniqueStorage()._type = newValue}
2644 }
2645
2646 public var flow: String {
2647 get {return _storage._flow}
2648 set {_uniqueStorage()._flow = newValue}
2649 }
2650
2651 public var scopes: Openapi_V2_Oauth2Scopes {
2652 get {return _storage._scopes ?? Openapi_V2_Oauth2Scopes()}
2653 set {_uniqueStorage()._scopes = newValue}
2654 }
2655 /// Returns true if `scopes` has been explicitly set.
2656 public var hasScopes: Bool {return _storage._scopes != nil}
2657 /// Clears the value of `scopes`. Subsequent reads from it will return its default value.
2658 public mutating func clearScopes() {_storage._scopes = nil}
2659
2660 public var authorizationURL: String {
2661 get {return _storage._authorizationURL}
2662 set {_uniqueStorage()._authorizationURL = newValue}
2663 }
2664
2665 public var tokenURL: String {
2666 get {return _storage._tokenURL}
2667 set {_uniqueStorage()._tokenURL = newValue}
2668 }
2669
2670 public var description_p: String {
2671 get {return _storage._description_p}
2672 set {_uniqueStorage()._description_p = newValue}
2673 }
2674
2675 public var vendorExtension: [Openapi_V2_NamedAny] {
2676 get {return _storage._vendorExtension}
2677 set {_uniqueStorage()._vendorExtension = newValue}
2678 }
2679
2680 public var unknownFields = SwiftProtobuf.UnknownStorage()
2681
2682 public init() {}
2683
2684 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2685 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2686 /// initializers are defined in the SwiftProtobuf library. See the Message and
2687 /// Message+*Additions` files.
2688 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2689 _ = _uniqueStorage()
2690 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2691 while let fieldNumber = try decoder.nextFieldNumber() {
2692 switch fieldNumber {
2693 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
2694 case 2: try decoder.decodeSingularStringField(value: &_storage._flow)
2695 case 3: try decoder.decodeSingularMessageField(value: &_storage._scopes)
2696 case 4: try decoder.decodeSingularStringField(value: &_storage._authorizationURL)
2697 case 5: try decoder.decodeSingularStringField(value: &_storage._tokenURL)
2698 case 6: try decoder.decodeSingularStringField(value: &_storage._description_p)
2699 case 7: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
2700 default: break
2701 }
2702 }
2703 }
2704 }
2705
2706 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2707 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2708 /// other serializer methods are defined in the SwiftProtobuf library. See the
2709 /// `Message` and `Message+*Additions` files.
2710 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2711 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2712 if !_storage._type.isEmpty {
2713 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
2714 }
2715 if !_storage._flow.isEmpty {
2716 try visitor.visitSingularStringField(value: _storage._flow, fieldNumber: 2)
2717 }
2718 if let v = _storage._scopes {
2719 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
2720 }
2721 if !_storage._authorizationURL.isEmpty {
2722 try visitor.visitSingularStringField(value: _storage._authorizationURL, fieldNumber: 4)
2723 }
2724 if !_storage._tokenURL.isEmpty {
2725 try visitor.visitSingularStringField(value: _storage._tokenURL, fieldNumber: 5)
2726 }
2727 if !_storage._description_p.isEmpty {
2728 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 6)
2729 }
2730 if !_storage._vendorExtension.isEmpty {
2731 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 7)
2732 }
2733 }
2734 try unknownFields.traverse(visitor: &visitor)
2735 }
2736
2737 fileprivate var _storage = _StorageClass.defaultInstance
2738 }
2739
2740 public struct Openapi_V2_Oauth2ApplicationSecurity: SwiftProtobuf.Message {
2741 public static let protoMessageName: String = _protobuf_package + ".Oauth2ApplicationSecurity"
2742
2743 public var type: String {
2744 get {return _storage._type}
2745 set {_uniqueStorage()._type = newValue}
2746 }
2747
2748 public var flow: String {
2749 get {return _storage._flow}
2750 set {_uniqueStorage()._flow = newValue}
2751 }
2752
2753 public var scopes: Openapi_V2_Oauth2Scopes {
2754 get {return _storage._scopes ?? Openapi_V2_Oauth2Scopes()}
2755 set {_uniqueStorage()._scopes = newValue}
2756 }
2757 /// Returns true if `scopes` has been explicitly set.
2758 public var hasScopes: Bool {return _storage._scopes != nil}
2759 /// Clears the value of `scopes`. Subsequent reads from it will return its default value.
2760 public mutating func clearScopes() {_storage._scopes = nil}
2761
2762 public var tokenURL: String {
2763 get {return _storage._tokenURL}
2764 set {_uniqueStorage()._tokenURL = newValue}
2765 }
2766
2767 public var description_p: String {
2768 get {return _storage._description_p}
2769 set {_uniqueStorage()._description_p = newValue}
2770 }
2771
2772 public var vendorExtension: [Openapi_V2_NamedAny] {
2773 get {return _storage._vendorExtension}
2774 set {_uniqueStorage()._vendorExtension = newValue}
2775 }
2776
2777 public var unknownFields = SwiftProtobuf.UnknownStorage()
2778
2779 public init() {}
2780
2781 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2782 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2783 /// initializers are defined in the SwiftProtobuf library. See the Message and
2784 /// Message+*Additions` files.
2785 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2786 _ = _uniqueStorage()
2787 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2788 while let fieldNumber = try decoder.nextFieldNumber() {
2789 switch fieldNumber {
2790 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
2791 case 2: try decoder.decodeSingularStringField(value: &_storage._flow)
2792 case 3: try decoder.decodeSingularMessageField(value: &_storage._scopes)
2793 case 4: try decoder.decodeSingularStringField(value: &_storage._tokenURL)
2794 case 5: try decoder.decodeSingularStringField(value: &_storage._description_p)
2795 case 6: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
2796 default: break
2797 }
2798 }
2799 }
2800 }
2801
2802 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2803 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2804 /// other serializer methods are defined in the SwiftProtobuf library. See the
2805 /// `Message` and `Message+*Additions` files.
2806 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2807 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2808 if !_storage._type.isEmpty {
2809 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
2810 }
2811 if !_storage._flow.isEmpty {
2812 try visitor.visitSingularStringField(value: _storage._flow, fieldNumber: 2)
2813 }
2814 if let v = _storage._scopes {
2815 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
2816 }
2817 if !_storage._tokenURL.isEmpty {
2818 try visitor.visitSingularStringField(value: _storage._tokenURL, fieldNumber: 4)
2819 }
2820 if !_storage._description_p.isEmpty {
2821 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5)
2822 }
2823 if !_storage._vendorExtension.isEmpty {
2824 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 6)
2825 }
2826 }
2827 try unknownFields.traverse(visitor: &visitor)
2828 }
2829
2830 fileprivate var _storage = _StorageClass.defaultInstance
2831 }
2832
2833 public struct Openapi_V2_Oauth2ImplicitSecurity: SwiftProtobuf.Message {
2834 public static let protoMessageName: String = _protobuf_package + ".Oauth2ImplicitSecurity"
2835
2836 public var type: String {
2837 get {return _storage._type}
2838 set {_uniqueStorage()._type = newValue}
2839 }
2840
2841 public var flow: String {
2842 get {return _storage._flow}
2843 set {_uniqueStorage()._flow = newValue}
2844 }
2845
2846 public var scopes: Openapi_V2_Oauth2Scopes {
2847 get {return _storage._scopes ?? Openapi_V2_Oauth2Scopes()}
2848 set {_uniqueStorage()._scopes = newValue}
2849 }
2850 /// Returns true if `scopes` has been explicitly set.
2851 public var hasScopes: Bool {return _storage._scopes != nil}
2852 /// Clears the value of `scopes`. Subsequent reads from it will return its default value.
2853 public mutating func clearScopes() {_storage._scopes = nil}
2854
2855 public var authorizationURL: String {
2856 get {return _storage._authorizationURL}
2857 set {_uniqueStorage()._authorizationURL = newValue}
2858 }
2859
2860 public var description_p: String {
2861 get {return _storage._description_p}
2862 set {_uniqueStorage()._description_p = newValue}
2863 }
2864
2865 public var vendorExtension: [Openapi_V2_NamedAny] {
2866 get {return _storage._vendorExtension}
2867 set {_uniqueStorage()._vendorExtension = newValue}
2868 }
2869
2870 public var unknownFields = SwiftProtobuf.UnknownStorage()
2871
2872 public init() {}
2873
2874 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2875 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2876 /// initializers are defined in the SwiftProtobuf library. See the Message and
2877 /// Message+*Additions` files.
2878 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2879 _ = _uniqueStorage()
2880 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2881 while let fieldNumber = try decoder.nextFieldNumber() {
2882 switch fieldNumber {
2883 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
2884 case 2: try decoder.decodeSingularStringField(value: &_storage._flow)
2885 case 3: try decoder.decodeSingularMessageField(value: &_storage._scopes)
2886 case 4: try decoder.decodeSingularStringField(value: &_storage._authorizationURL)
2887 case 5: try decoder.decodeSingularStringField(value: &_storage._description_p)
2888 case 6: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
2889 default: break
2890 }
2891 }
2892 }
2893 }
2894
2895 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2896 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2897 /// other serializer methods are defined in the SwiftProtobuf library. See the
2898 /// `Message` and `Message+*Additions` files.
2899 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2900 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2901 if !_storage._type.isEmpty {
2902 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
2903 }
2904 if !_storage._flow.isEmpty {
2905 try visitor.visitSingularStringField(value: _storage._flow, fieldNumber: 2)
2906 }
2907 if let v = _storage._scopes {
2908 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
2909 }
2910 if !_storage._authorizationURL.isEmpty {
2911 try visitor.visitSingularStringField(value: _storage._authorizationURL, fieldNumber: 4)
2912 }
2913 if !_storage._description_p.isEmpty {
2914 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5)
2915 }
2916 if !_storage._vendorExtension.isEmpty {
2917 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 6)
2918 }
2919 }
2920 try unknownFields.traverse(visitor: &visitor)
2921 }
2922
2923 fileprivate var _storage = _StorageClass.defaultInstance
2924 }
2925
2926 public struct Openapi_V2_Oauth2PasswordSecurity: SwiftProtobuf.Message {
2927 public static let protoMessageName: String = _protobuf_package + ".Oauth2PasswordSecurity"
2928
2929 public var type: String {
2930 get {return _storage._type}
2931 set {_uniqueStorage()._type = newValue}
2932 }
2933
2934 public var flow: String {
2935 get {return _storage._flow}
2936 set {_uniqueStorage()._flow = newValue}
2937 }
2938
2939 public var scopes: Openapi_V2_Oauth2Scopes {
2940 get {return _storage._scopes ?? Openapi_V2_Oauth2Scopes()}
2941 set {_uniqueStorage()._scopes = newValue}
2942 }
2943 /// Returns true if `scopes` has been explicitly set.
2944 public var hasScopes: Bool {return _storage._scopes != nil}
2945 /// Clears the value of `scopes`. Subsequent reads from it will return its default value.
2946 public mutating func clearScopes() {_storage._scopes = nil}
2947
2948 public var tokenURL: String {
2949 get {return _storage._tokenURL}
2950 set {_uniqueStorage()._tokenURL = newValue}
2951 }
2952
2953 public var description_p: String {
2954 get {return _storage._description_p}
2955 set {_uniqueStorage()._description_p = newValue}
2956 }
2957
2958 public var vendorExtension: [Openapi_V2_NamedAny] {
2959 get {return _storage._vendorExtension}
2960 set {_uniqueStorage()._vendorExtension = newValue}
2961 }
2962
2963 public var unknownFields = SwiftProtobuf.UnknownStorage()
2964
2965 public init() {}
2966
2967 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2968 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2969 /// initializers are defined in the SwiftProtobuf library. See the Message and
2970 /// Message+*Additions` files.
2971 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2972 _ = _uniqueStorage()
2973 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2974 while let fieldNumber = try decoder.nextFieldNumber() {
2975 switch fieldNumber {
2976 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
2977 case 2: try decoder.decodeSingularStringField(value: &_storage._flow)
2978 case 3: try decoder.decodeSingularMessageField(value: &_storage._scopes)
2979 case 4: try decoder.decodeSingularStringField(value: &_storage._tokenURL)
2980 case 5: try decoder.decodeSingularStringField(value: &_storage._description_p)
2981 case 6: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
2982 default: break
2983 }
2984 }
2985 }
2986 }
2987
2988 /// Used by the encoding methods of the SwiftProtobuf library, not generally
2989 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2990 /// other serializer methods are defined in the SwiftProtobuf library. See the
2991 /// `Message` and `Message+*Additions` files.
2992 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2993 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2994 if !_storage._type.isEmpty {
2995 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
2996 }
2997 if !_storage._flow.isEmpty {
2998 try visitor.visitSingularStringField(value: _storage._flow, fieldNumber: 2)
2999 }
3000 if let v = _storage._scopes {
3001 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
3002 }
3003 if !_storage._tokenURL.isEmpty {
3004 try visitor.visitSingularStringField(value: _storage._tokenURL, fieldNumber: 4)
3005 }
3006 if !_storage._description_p.isEmpty {
3007 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 5)
3008 }
3009 if !_storage._vendorExtension.isEmpty {
3010 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 6)
3011 }
3012 }
3013 try unknownFields.traverse(visitor: &visitor)
3014 }
3015
3016 fileprivate var _storage = _StorageClass.defaultInstance
3017 }
3018
3019 public struct Openapi_V2_Oauth2Scopes: SwiftProtobuf.Message {
3020 public static let protoMessageName: String = _protobuf_package + ".Oauth2Scopes"
3021
3022 public var additionalProperties: [Openapi_V2_NamedString] = []
3023
3024 public var unknownFields = SwiftProtobuf.UnknownStorage()
3025
3026 public init() {}
3027
3028 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3029 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3030 /// initializers are defined in the SwiftProtobuf library. See the Message and
3031 /// Message+*Additions` files.
3032 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3033 while let fieldNumber = try decoder.nextFieldNumber() {
3034 switch fieldNumber {
3035 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
3036 default: break
3037 }
3038 }
3039 }
3040
3041 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3042 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3043 /// other serializer methods are defined in the SwiftProtobuf library. See the
3044 /// `Message` and `Message+*Additions` files.
3045 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3046 if !self.additionalProperties.isEmpty {
3047 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
3048 }
3049 try unknownFields.traverse(visitor: &visitor)
3050 }
3051 }
3052
3053 public struct Openapi_V2_Operation: SwiftProtobuf.Message {
3054 public static let protoMessageName: String = _protobuf_package + ".Operation"
3055
3056 public var tags: [String] {
3057 get {return _storage._tags}
3058 set {_uniqueStorage()._tags = newValue}
3059 }
3060
3061 /// A brief summary of the operation.
3062 public var summary: String {
3063 get {return _storage._summary}
3064 set {_uniqueStorage()._summary = newValue}
3065 }
3066
3067 /// A longer description of the operation, GitHub Flavored Markdown is allowed.
3068 public var description_p: String {
3069 get {return _storage._description_p}
3070 set {_uniqueStorage()._description_p = newValue}
3071 }
3072
3073 public var externalDocs: Openapi_V2_ExternalDocs {
3074 get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()}
3075 set {_uniqueStorage()._externalDocs = newValue}
3076 }
3077 /// Returns true if `externalDocs` has been explicitly set.
3078 public var hasExternalDocs: Bool {return _storage._externalDocs != nil}
3079 /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value.
3080 public mutating func clearExternalDocs() {_storage._externalDocs = nil}
3081
3082 /// A unique identifier of the operation.
3083 public var operationID: String {
3084 get {return _storage._operationID}
3085 set {_uniqueStorage()._operationID = newValue}
3086 }
3087
3088 /// A list of MIME types the API can produce.
3089 public var produces: [String] {
3090 get {return _storage._produces}
3091 set {_uniqueStorage()._produces = newValue}
3092 }
3093
3094 /// A list of MIME types the API can consume.
3095 public var consumes: [String] {
3096 get {return _storage._consumes}
3097 set {_uniqueStorage()._consumes = newValue}
3098 }
3099
3100 /// The parameters needed to send a valid API call.
3101 public var parameters: [Openapi_V2_ParametersItem] {
3102 get {return _storage._parameters}
3103 set {_uniqueStorage()._parameters = newValue}
3104 }
3105
3106 public var responses: Openapi_V2_Responses {
3107 get {return _storage._responses ?? Openapi_V2_Responses()}
3108 set {_uniqueStorage()._responses = newValue}
3109 }
3110 /// Returns true if `responses` has been explicitly set.
3111 public var hasResponses: Bool {return _storage._responses != nil}
3112 /// Clears the value of `responses`. Subsequent reads from it will return its default value.
3113 public mutating func clearResponses() {_storage._responses = nil}
3114
3115 /// The transfer protocol of the API.
3116 public var schemes: [String] {
3117 get {return _storage._schemes}
3118 set {_uniqueStorage()._schemes = newValue}
3119 }
3120
3121 public var deprecated: Bool {
3122 get {return _storage._deprecated}
3123 set {_uniqueStorage()._deprecated = newValue}
3124 }
3125
3126 public var security: [Openapi_V2_SecurityRequirement] {
3127 get {return _storage._security}
3128 set {_uniqueStorage()._security = newValue}
3129 }
3130
3131 public var vendorExtension: [Openapi_V2_NamedAny] {
3132 get {return _storage._vendorExtension}
3133 set {_uniqueStorage()._vendorExtension = newValue}
3134 }
3135
3136 public var unknownFields = SwiftProtobuf.UnknownStorage()
3137
3138 public init() {}
3139
3140 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3141 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3142 /// initializers are defined in the SwiftProtobuf library. See the Message and
3143 /// Message+*Additions` files.
3144 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3145 _ = _uniqueStorage()
3146 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3147 while let fieldNumber = try decoder.nextFieldNumber() {
3148 switch fieldNumber {
3149 case 1: try decoder.decodeRepeatedStringField(value: &_storage._tags)
3150 case 2: try decoder.decodeSingularStringField(value: &_storage._summary)
3151 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
3152 case 4: try decoder.decodeSingularMessageField(value: &_storage._externalDocs)
3153 case 5: try decoder.decodeSingularStringField(value: &_storage._operationID)
3154 case 6: try decoder.decodeRepeatedStringField(value: &_storage._produces)
3155 case 7: try decoder.decodeRepeatedStringField(value: &_storage._consumes)
3156 case 8: try decoder.decodeRepeatedMessageField(value: &_storage._parameters)
3157 case 9: try decoder.decodeSingularMessageField(value: &_storage._responses)
3158 case 10: try decoder.decodeRepeatedStringField(value: &_storage._schemes)
3159 case 11: try decoder.decodeSingularBoolField(value: &_storage._deprecated)
3160 case 12: try decoder.decodeRepeatedMessageField(value: &_storage._security)
3161 case 13: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
3162 default: break
3163 }
3164 }
3165 }
3166 }
3167
3168 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3169 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3170 /// other serializer methods are defined in the SwiftProtobuf library. See the
3171 /// `Message` and `Message+*Additions` files.
3172 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3173 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3174 if !_storage._tags.isEmpty {
3175 try visitor.visitRepeatedStringField(value: _storage._tags, fieldNumber: 1)
3176 }
3177 if !_storage._summary.isEmpty {
3178 try visitor.visitSingularStringField(value: _storage._summary, fieldNumber: 2)
3179 }
3180 if !_storage._description_p.isEmpty {
3181 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
3182 }
3183 if let v = _storage._externalDocs {
3184 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
3185 }
3186 if !_storage._operationID.isEmpty {
3187 try visitor.visitSingularStringField(value: _storage._operationID, fieldNumber: 5)
3188 }
3189 if !_storage._produces.isEmpty {
3190 try visitor.visitRepeatedStringField(value: _storage._produces, fieldNumber: 6)
3191 }
3192 if !_storage._consumes.isEmpty {
3193 try visitor.visitRepeatedStringField(value: _storage._consumes, fieldNumber: 7)
3194 }
3195 if !_storage._parameters.isEmpty {
3196 try visitor.visitRepeatedMessageField(value: _storage._parameters, fieldNumber: 8)
3197 }
3198 if let v = _storage._responses {
3199 try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
3200 }
3201 if !_storage._schemes.isEmpty {
3202 try visitor.visitRepeatedStringField(value: _storage._schemes, fieldNumber: 10)
3203 }
3204 if _storage._deprecated != false {
3205 try visitor.visitSingularBoolField(value: _storage._deprecated, fieldNumber: 11)
3206 }
3207 if !_storage._security.isEmpty {
3208 try visitor.visitRepeatedMessageField(value: _storage._security, fieldNumber: 12)
3209 }
3210 if !_storage._vendorExtension.isEmpty {
3211 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 13)
3212 }
3213 }
3214 try unknownFields.traverse(visitor: &visitor)
3215 }
3216
3217 fileprivate var _storage = _StorageClass.defaultInstance
3218 }
3219
3220 public struct Openapi_V2_Parameter: SwiftProtobuf.Message {
3221 public static let protoMessageName: String = _protobuf_package + ".Parameter"
3222
3223 public var oneof: OneOf_Oneof? {
3224 get {return _storage._oneof}
3225 set {_uniqueStorage()._oneof = newValue}
3226 }
3227
3228 public var bodyParameter: Openapi_V2_BodyParameter {
3229 get {
3230 if case .bodyParameter(let v)? = _storage._oneof {return v}
3231 return Openapi_V2_BodyParameter()
3232 }
3233 set {_uniqueStorage()._oneof = .bodyParameter(newValue)}
3234 }
3235
3236 public var nonBodyParameter: Openapi_V2_NonBodyParameter {
3237 get {
3238 if case .nonBodyParameter(let v)? = _storage._oneof {return v}
3239 return Openapi_V2_NonBodyParameter()
3240 }
3241 set {_uniqueStorage()._oneof = .nonBodyParameter(newValue)}
3242 }
3243
3244 public var unknownFields = SwiftProtobuf.UnknownStorage()
3245
3246 public enum OneOf_Oneof: Equatable {
3247 case bodyParameter(Openapi_V2_BodyParameter)
3248 case nonBodyParameter(Openapi_V2_NonBodyParameter)
3249
3250 public static func ==(lhs: Openapi_V2_Parameter.OneOf_Oneof, rhs: Openapi_V2_Parameter.OneOf_Oneof) -> Bool {
3251 switch (lhs, rhs) {
3252 case (.bodyParameter(let l), .bodyParameter(let r)): return l == r
3253 case (.nonBodyParameter(let l), .nonBodyParameter(let r)): return l == r
3254 default: return false
3255 }
3256 }
3257 }
3258
3259 public init() {}
3260
3261 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3262 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3263 /// initializers are defined in the SwiftProtobuf library. See the Message and
3264 /// Message+*Additions` files.
3265 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3266 _ = _uniqueStorage()
3267 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3268 while let fieldNumber = try decoder.nextFieldNumber() {
3269 switch fieldNumber {
3270 case 1:
3271 var v: Openapi_V2_BodyParameter?
3272 if let current = _storage._oneof {
3273 try decoder.handleConflictingOneOf()
3274 if case .bodyParameter(let m) = current {v = m}
3275 }
3276 try decoder.decodeSingularMessageField(value: &v)
3277 if let v = v {_storage._oneof = .bodyParameter(v)}
3278 case 2:
3279 var v: Openapi_V2_NonBodyParameter?
3280 if let current = _storage._oneof {
3281 try decoder.handleConflictingOneOf()
3282 if case .nonBodyParameter(let m) = current {v = m}
3283 }
3284 try decoder.decodeSingularMessageField(value: &v)
3285 if let v = v {_storage._oneof = .nonBodyParameter(v)}
3286 default: break
3287 }
3288 }
3289 }
3290 }
3291
3292 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3293 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3294 /// other serializer methods are defined in the SwiftProtobuf library. See the
3295 /// `Message` and `Message+*Additions` files.
3296 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3297 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3298 switch _storage._oneof {
3299 case .bodyParameter(let v)?:
3300 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
3301 case .nonBodyParameter(let v)?:
3302 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
3303 case nil: break
3304 }
3305 }
3306 try unknownFields.traverse(visitor: &visitor)
3307 }
3308
3309 fileprivate var _storage = _StorageClass.defaultInstance
3310 }
3311
3312 /// One or more JSON representations for parameters
3313 public struct Openapi_V2_ParameterDefinitions: SwiftProtobuf.Message {
3314 public static let protoMessageName: String = _protobuf_package + ".ParameterDefinitions"
3315
3316 public var additionalProperties: [Openapi_V2_NamedParameter] = []
3317
3318 public var unknownFields = SwiftProtobuf.UnknownStorage()
3319
3320 public init() {}
3321
3322 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3323 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3324 /// initializers are defined in the SwiftProtobuf library. See the Message and
3325 /// Message+*Additions` files.
3326 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3327 while let fieldNumber = try decoder.nextFieldNumber() {
3328 switch fieldNumber {
3329 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
3330 default: break
3331 }
3332 }
3333 }
3334
3335 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3336 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3337 /// other serializer methods are defined in the SwiftProtobuf library. See the
3338 /// `Message` and `Message+*Additions` files.
3339 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3340 if !self.additionalProperties.isEmpty {
3341 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
3342 }
3343 try unknownFields.traverse(visitor: &visitor)
3344 }
3345 }
3346
3347 public struct Openapi_V2_ParametersItem: SwiftProtobuf.Message {
3348 public static let protoMessageName: String = _protobuf_package + ".ParametersItem"
3349
3350 public var oneof: OneOf_Oneof? {
3351 get {return _storage._oneof}
3352 set {_uniqueStorage()._oneof = newValue}
3353 }
3354
3355 public var parameter: Openapi_V2_Parameter {
3356 get {
3357 if case .parameter(let v)? = _storage._oneof {return v}
3358 return Openapi_V2_Parameter()
3359 }
3360 set {_uniqueStorage()._oneof = .parameter(newValue)}
3361 }
3362
3363 public var jsonReference: Openapi_V2_JsonReference {
3364 get {
3365 if case .jsonReference(let v)? = _storage._oneof {return v}
3366 return Openapi_V2_JsonReference()
3367 }
3368 set {_uniqueStorage()._oneof = .jsonReference(newValue)}
3369 }
3370
3371 public var unknownFields = SwiftProtobuf.UnknownStorage()
3372
3373 public enum OneOf_Oneof: Equatable {
3374 case parameter(Openapi_V2_Parameter)
3375 case jsonReference(Openapi_V2_JsonReference)
3376
3377 public static func ==(lhs: Openapi_V2_ParametersItem.OneOf_Oneof, rhs: Openapi_V2_ParametersItem.OneOf_Oneof) -> Bool {
3378 switch (lhs, rhs) {
3379 case (.parameter(let l), .parameter(let r)): return l == r
3380 case (.jsonReference(let l), .jsonReference(let r)): return l == r
3381 default: return false
3382 }
3383 }
3384 }
3385
3386 public init() {}
3387
3388 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3389 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3390 /// initializers are defined in the SwiftProtobuf library. See the Message and
3391 /// Message+*Additions` files.
3392 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3393 _ = _uniqueStorage()
3394 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3395 while let fieldNumber = try decoder.nextFieldNumber() {
3396 switch fieldNumber {
3397 case 1:
3398 var v: Openapi_V2_Parameter?
3399 if let current = _storage._oneof {
3400 try decoder.handleConflictingOneOf()
3401 if case .parameter(let m) = current {v = m}
3402 }
3403 try decoder.decodeSingularMessageField(value: &v)
3404 if let v = v {_storage._oneof = .parameter(v)}
3405 case 2:
3406 var v: Openapi_V2_JsonReference?
3407 if let current = _storage._oneof {
3408 try decoder.handleConflictingOneOf()
3409 if case .jsonReference(let m) = current {v = m}
3410 }
3411 try decoder.decodeSingularMessageField(value: &v)
3412 if let v = v {_storage._oneof = .jsonReference(v)}
3413 default: break
3414 }
3415 }
3416 }
3417 }
3418
3419 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3420 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3421 /// other serializer methods are defined in the SwiftProtobuf library. See the
3422 /// `Message` and `Message+*Additions` files.
3423 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3424 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3425 switch _storage._oneof {
3426 case .parameter(let v)?:
3427 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
3428 case .jsonReference(let v)?:
3429 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
3430 case nil: break
3431 }
3432 }
3433 try unknownFields.traverse(visitor: &visitor)
3434 }
3435
3436 fileprivate var _storage = _StorageClass.defaultInstance
3437 }
3438
3439 public struct Openapi_V2_PathItem: SwiftProtobuf.Message {
3440 public static let protoMessageName: String = _protobuf_package + ".PathItem"
3441
3442 public var ref: String {
3443 get {return _storage._ref}
3444 set {_uniqueStorage()._ref = newValue}
3445 }
3446
3447 public var get: Openapi_V2_Operation {
3448 get {return _storage._get ?? Openapi_V2_Operation()}
3449 set {_uniqueStorage()._get = newValue}
3450 }
3451 /// Returns true if `get` has been explicitly set.
3452 public var hasGet: Bool {return _storage._get != nil}
3453 /// Clears the value of `get`. Subsequent reads from it will return its default value.
3454 public mutating func clearGet() {_storage._get = nil}
3455
3456 public var put: Openapi_V2_Operation {
3457 get {return _storage._put ?? Openapi_V2_Operation()}
3458 set {_uniqueStorage()._put = newValue}
3459 }
3460 /// Returns true if `put` has been explicitly set.
3461 public var hasPut: Bool {return _storage._put != nil}
3462 /// Clears the value of `put`. Subsequent reads from it will return its default value.
3463 public mutating func clearPut() {_storage._put = nil}
3464
3465 public var post: Openapi_V2_Operation {
3466 get {return _storage._post ?? Openapi_V2_Operation()}
3467 set {_uniqueStorage()._post = newValue}
3468 }
3469 /// Returns true if `post` has been explicitly set.
3470 public var hasPost: Bool {return _storage._post != nil}
3471 /// Clears the value of `post`. Subsequent reads from it will return its default value.
3472 public mutating func clearPost() {_storage._post = nil}
3473
3474 public var delete: Openapi_V2_Operation {
3475 get {return _storage._delete ?? Openapi_V2_Operation()}
3476 set {_uniqueStorage()._delete = newValue}
3477 }
3478 /// Returns true if `delete` has been explicitly set.
3479 public var hasDelete: Bool {return _storage._delete != nil}
3480 /// Clears the value of `delete`. Subsequent reads from it will return its default value.
3481 public mutating func clearDelete() {_storage._delete = nil}
3482
3483 public var options: Openapi_V2_Operation {
3484 get {return _storage._options ?? Openapi_V2_Operation()}
3485 set {_uniqueStorage()._options = newValue}
3486 }
3487 /// Returns true if `options` has been explicitly set.
3488 public var hasOptions: Bool {return _storage._options != nil}
3489 /// Clears the value of `options`. Subsequent reads from it will return its default value.
3490 public mutating func clearOptions() {_storage._options = nil}
3491
3492 public var head: Openapi_V2_Operation {
3493 get {return _storage._head ?? Openapi_V2_Operation()}
3494 set {_uniqueStorage()._head = newValue}
3495 }
3496 /// Returns true if `head` has been explicitly set.
3497 public var hasHead: Bool {return _storage._head != nil}
3498 /// Clears the value of `head`. Subsequent reads from it will return its default value.
3499 public mutating func clearHead() {_storage._head = nil}
3500
3501 public var patch: Openapi_V2_Operation {
3502 get {return _storage._patch ?? Openapi_V2_Operation()}
3503 set {_uniqueStorage()._patch = newValue}
3504 }
3505 /// Returns true if `patch` has been explicitly set.
3506 public var hasPatch: Bool {return _storage._patch != nil}
3507 /// Clears the value of `patch`. Subsequent reads from it will return its default value.
3508 public mutating func clearPatch() {_storage._patch = nil}
3509
3510 /// The parameters needed to send a valid API call.
3511 public var parameters: [Openapi_V2_ParametersItem] {
3512 get {return _storage._parameters}
3513 set {_uniqueStorage()._parameters = newValue}
3514 }
3515
3516 public var vendorExtension: [Openapi_V2_NamedAny] {
3517 get {return _storage._vendorExtension}
3518 set {_uniqueStorage()._vendorExtension = newValue}
3519 }
3520
3521 public var unknownFields = SwiftProtobuf.UnknownStorage()
3522
3523 public init() {}
3524
3525 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3526 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3527 /// initializers are defined in the SwiftProtobuf library. See the Message and
3528 /// Message+*Additions` files.
3529 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3530 _ = _uniqueStorage()
3531 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3532 while let fieldNumber = try decoder.nextFieldNumber() {
3533 switch fieldNumber {
3534 case 1: try decoder.decodeSingularStringField(value: &_storage._ref)
3535 case 2: try decoder.decodeSingularMessageField(value: &_storage._get)
3536 case 3: try decoder.decodeSingularMessageField(value: &_storage._put)
3537 case 4: try decoder.decodeSingularMessageField(value: &_storage._post)
3538 case 5: try decoder.decodeSingularMessageField(value: &_storage._delete)
3539 case 6: try decoder.decodeSingularMessageField(value: &_storage._options)
3540 case 7: try decoder.decodeSingularMessageField(value: &_storage._head)
3541 case 8: try decoder.decodeSingularMessageField(value: &_storage._patch)
3542 case 9: try decoder.decodeRepeatedMessageField(value: &_storage._parameters)
3543 case 10: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
3544 default: break
3545 }
3546 }
3547 }
3548 }
3549
3550 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3551 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3552 /// other serializer methods are defined in the SwiftProtobuf library. See the
3553 /// `Message` and `Message+*Additions` files.
3554 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3555 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3556 if !_storage._ref.isEmpty {
3557 try visitor.visitSingularStringField(value: _storage._ref, fieldNumber: 1)
3558 }
3559 if let v = _storage._get {
3560 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
3561 }
3562 if let v = _storage._put {
3563 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
3564 }
3565 if let v = _storage._post {
3566 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
3567 }
3568 if let v = _storage._delete {
3569 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
3570 }
3571 if let v = _storage._options {
3572 try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
3573 }
3574 if let v = _storage._head {
3575 try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
3576 }
3577 if let v = _storage._patch {
3578 try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
3579 }
3580 if !_storage._parameters.isEmpty {
3581 try visitor.visitRepeatedMessageField(value: _storage._parameters, fieldNumber: 9)
3582 }
3583 if !_storage._vendorExtension.isEmpty {
3584 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 10)
3585 }
3586 }
3587 try unknownFields.traverse(visitor: &visitor)
3588 }
3589
3590 fileprivate var _storage = _StorageClass.defaultInstance
3591 }
3592
3593 public struct Openapi_V2_PathParameterSubSchema: SwiftProtobuf.Message {
3594 public static let protoMessageName: String = _protobuf_package + ".PathParameterSubSchema"
3595
3596 /// Determines whether or not this parameter is required or optional.
3597 public var required: Bool {
3598 get {return _storage._required}
3599 set {_uniqueStorage()._required = newValue}
3600 }
3601
3602 /// Determines the location of the parameter.
3603 public var `in`: String {
3604 get {return _storage._in}
3605 set {_uniqueStorage()._in = newValue}
3606 }
3607
3608 /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
3609 public var description_p: String {
3610 get {return _storage._description_p}
3611 set {_uniqueStorage()._description_p = newValue}
3612 }
3613
3614 /// The name of the parameter.
3615 public var name: String {
3616 get {return _storage._name}
3617 set {_uniqueStorage()._name = newValue}
3618 }
3619
3620 public var type: String {
3621 get {return _storage._type}
3622 set {_uniqueStorage()._type = newValue}
3623 }
3624
3625 public var format: String {
3626 get {return _storage._format}
3627 set {_uniqueStorage()._format = newValue}
3628 }
3629
3630 public var items: Openapi_V2_PrimitivesItems {
3631 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
3632 set {_uniqueStorage()._items = newValue}
3633 }
3634 /// Returns true if `items` has been explicitly set.
3635 public var hasItems: Bool {return _storage._items != nil}
3636 /// Clears the value of `items`. Subsequent reads from it will return its default value.
3637 public mutating func clearItems() {_storage._items = nil}
3638
3639 public var collectionFormat: String {
3640 get {return _storage._collectionFormat}
3641 set {_uniqueStorage()._collectionFormat = newValue}
3642 }
3643
3644 public var `default`: Openapi_V2_Any {
3645 get {return _storage._default ?? Openapi_V2_Any()}
3646 set {_uniqueStorage()._default = newValue}
3647 }
3648 /// Returns true if ``default`` has been explicitly set.
3649 public var hasDefault: Bool {return _storage._default != nil}
3650 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
3651 public mutating func clearDefault() {_storage._default = nil}
3652
3653 public var maximum: Double {
3654 get {return _storage._maximum}
3655 set {_uniqueStorage()._maximum = newValue}
3656 }
3657
3658 public var exclusiveMaximum: Bool {
3659 get {return _storage._exclusiveMaximum}
3660 set {_uniqueStorage()._exclusiveMaximum = newValue}
3661 }
3662
3663 public var minimum: Double {
3664 get {return _storage._minimum}
3665 set {_uniqueStorage()._minimum = newValue}
3666 }
3667
3668 public var exclusiveMinimum: Bool {
3669 get {return _storage._exclusiveMinimum}
3670 set {_uniqueStorage()._exclusiveMinimum = newValue}
3671 }
3672
3673 public var maxLength: Int64 {
3674 get {return _storage._maxLength}
3675 set {_uniqueStorage()._maxLength = newValue}
3676 }
3677
3678 public var minLength: Int64 {
3679 get {return _storage._minLength}
3680 set {_uniqueStorage()._minLength = newValue}
3681 }
3682
3683 public var pattern: String {
3684 get {return _storage._pattern}
3685 set {_uniqueStorage()._pattern = newValue}
3686 }
3687
3688 public var maxItems: Int64 {
3689 get {return _storage._maxItems}
3690 set {_uniqueStorage()._maxItems = newValue}
3691 }
3692
3693 public var minItems: Int64 {
3694 get {return _storage._minItems}
3695 set {_uniqueStorage()._minItems = newValue}
3696 }
3697
3698 public var uniqueItems: Bool {
3699 get {return _storage._uniqueItems}
3700 set {_uniqueStorage()._uniqueItems = newValue}
3701 }
3702
3703 public var `enum`: [Openapi_V2_Any] {
3704 get {return _storage._enum}
3705 set {_uniqueStorage()._enum = newValue}
3706 }
3707
3708 public var multipleOf: Double {
3709 get {return _storage._multipleOf}
3710 set {_uniqueStorage()._multipleOf = newValue}
3711 }
3712
3713 public var vendorExtension: [Openapi_V2_NamedAny] {
3714 get {return _storage._vendorExtension}
3715 set {_uniqueStorage()._vendorExtension = newValue}
3716 }
3717
3718 public var unknownFields = SwiftProtobuf.UnknownStorage()
3719
3720 public init() {}
3721
3722 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3723 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3724 /// initializers are defined in the SwiftProtobuf library. See the Message and
3725 /// Message+*Additions` files.
3726 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3727 _ = _uniqueStorage()
3728 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3729 while let fieldNumber = try decoder.nextFieldNumber() {
3730 switch fieldNumber {
3731 case 1: try decoder.decodeSingularBoolField(value: &_storage._required)
3732 case 2: try decoder.decodeSingularStringField(value: &_storage._in)
3733 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
3734 case 4: try decoder.decodeSingularStringField(value: &_storage._name)
3735 case 5: try decoder.decodeSingularStringField(value: &_storage._type)
3736 case 6: try decoder.decodeSingularStringField(value: &_storage._format)
3737 case 7: try decoder.decodeSingularMessageField(value: &_storage._items)
3738 case 8: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
3739 case 9: try decoder.decodeSingularMessageField(value: &_storage._default)
3740 case 10: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
3741 case 11: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
3742 case 12: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
3743 case 13: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
3744 case 14: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
3745 case 15: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
3746 case 16: try decoder.decodeSingularStringField(value: &_storage._pattern)
3747 case 17: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
3748 case 18: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
3749 case 19: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
3750 case 20: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
3751 case 21: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
3752 case 22: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
3753 default: break
3754 }
3755 }
3756 }
3757 }
3758
3759 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3760 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3761 /// other serializer methods are defined in the SwiftProtobuf library. See the
3762 /// `Message` and `Message+*Additions` files.
3763 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3764 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3765 if _storage._required != false {
3766 try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1)
3767 }
3768 if !_storage._in.isEmpty {
3769 try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2)
3770 }
3771 if !_storage._description_p.isEmpty {
3772 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
3773 }
3774 if !_storage._name.isEmpty {
3775 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4)
3776 }
3777 if !_storage._type.isEmpty {
3778 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 5)
3779 }
3780 if !_storage._format.isEmpty {
3781 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 6)
3782 }
3783 if let v = _storage._items {
3784 try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
3785 }
3786 if !_storage._collectionFormat.isEmpty {
3787 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 8)
3788 }
3789 if let v = _storage._default {
3790 try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
3791 }
3792 if _storage._maximum != 0 {
3793 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 10)
3794 }
3795 if _storage._exclusiveMaximum != false {
3796 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 11)
3797 }
3798 if _storage._minimum != 0 {
3799 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 12)
3800 }
3801 if _storage._exclusiveMinimum != false {
3802 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 13)
3803 }
3804 if _storage._maxLength != 0 {
3805 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 14)
3806 }
3807 if _storage._minLength != 0 {
3808 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 15)
3809 }
3810 if !_storage._pattern.isEmpty {
3811 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 16)
3812 }
3813 if _storage._maxItems != 0 {
3814 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 17)
3815 }
3816 if _storage._minItems != 0 {
3817 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 18)
3818 }
3819 if _storage._uniqueItems != false {
3820 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 19)
3821 }
3822 if !_storage._enum.isEmpty {
3823 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 20)
3824 }
3825 if _storage._multipleOf != 0 {
3826 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 21)
3827 }
3828 if !_storage._vendorExtension.isEmpty {
3829 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 22)
3830 }
3831 }
3832 try unknownFields.traverse(visitor: &visitor)
3833 }
3834
3835 fileprivate var _storage = _StorageClass.defaultInstance
3836 }
3837
3838 /// Relative paths to the individual endpoints. They must be relative to the 'basePath'.
3839 public struct Openapi_V2_Paths: SwiftProtobuf.Message {
3840 public static let protoMessageName: String = _protobuf_package + ".Paths"
3841
3842 public var vendorExtension: [Openapi_V2_NamedAny] = []
3843
3844 public var path: [Openapi_V2_NamedPathItem] = []
3845
3846 public var unknownFields = SwiftProtobuf.UnknownStorage()
3847
3848 public init() {}
3849
3850 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3851 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3852 /// initializers are defined in the SwiftProtobuf library. See the Message and
3853 /// Message+*Additions` files.
3854 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3855 while let fieldNumber = try decoder.nextFieldNumber() {
3856 switch fieldNumber {
3857 case 1: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
3858 case 2: try decoder.decodeRepeatedMessageField(value: &self.path)
3859 default: break
3860 }
3861 }
3862 }
3863
3864 /// Used by the encoding methods of the SwiftProtobuf library, not generally
3865 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
3866 /// other serializer methods are defined in the SwiftProtobuf library. See the
3867 /// `Message` and `Message+*Additions` files.
3868 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
3869 if !self.vendorExtension.isEmpty {
3870 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 1)
3871 }
3872 if !self.path.isEmpty {
3873 try visitor.visitRepeatedMessageField(value: self.path, fieldNumber: 2)
3874 }
3875 try unknownFields.traverse(visitor: &visitor)
3876 }
3877 }
3878
3879 public struct Openapi_V2_PrimitivesItems: SwiftProtobuf.Message {
3880 public static let protoMessageName: String = _protobuf_package + ".PrimitivesItems"
3881
3882 public var type: String {
3883 get {return _storage._type}
3884 set {_uniqueStorage()._type = newValue}
3885 }
3886
3887 public var format: String {
3888 get {return _storage._format}
3889 set {_uniqueStorage()._format = newValue}
3890 }
3891
3892 public var items: Openapi_V2_PrimitivesItems {
3893 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
3894 set {_uniqueStorage()._items = newValue}
3895 }
3896 /// Returns true if `items` has been explicitly set.
3897 public var hasItems: Bool {return _storage._items != nil}
3898 /// Clears the value of `items`. Subsequent reads from it will return its default value.
3899 public mutating func clearItems() {_storage._items = nil}
3900
3901 public var collectionFormat: String {
3902 get {return _storage._collectionFormat}
3903 set {_uniqueStorage()._collectionFormat = newValue}
3904 }
3905
3906 public var `default`: Openapi_V2_Any {
3907 get {return _storage._default ?? Openapi_V2_Any()}
3908 set {_uniqueStorage()._default = newValue}
3909 }
3910 /// Returns true if ``default`` has been explicitly set.
3911 public var hasDefault: Bool {return _storage._default != nil}
3912 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
3913 public mutating func clearDefault() {_storage._default = nil}
3914
3915 public var maximum: Double {
3916 get {return _storage._maximum}
3917 set {_uniqueStorage()._maximum = newValue}
3918 }
3919
3920 public var exclusiveMaximum: Bool {
3921 get {return _storage._exclusiveMaximum}
3922 set {_uniqueStorage()._exclusiveMaximum = newValue}
3923 }
3924
3925 public var minimum: Double {
3926 get {return _storage._minimum}
3927 set {_uniqueStorage()._minimum = newValue}
3928 }
3929
3930 public var exclusiveMinimum: Bool {
3931 get {return _storage._exclusiveMinimum}
3932 set {_uniqueStorage()._exclusiveMinimum = newValue}
3933 }
3934
3935 public var maxLength: Int64 {
3936 get {return _storage._maxLength}
3937 set {_uniqueStorage()._maxLength = newValue}
3938 }
3939
3940 public var minLength: Int64 {
3941 get {return _storage._minLength}
3942 set {_uniqueStorage()._minLength = newValue}
3943 }
3944
3945 public var pattern: String {
3946 get {return _storage._pattern}
3947 set {_uniqueStorage()._pattern = newValue}
3948 }
3949
3950 public var maxItems: Int64 {
3951 get {return _storage._maxItems}
3952 set {_uniqueStorage()._maxItems = newValue}
3953 }
3954
3955 public var minItems: Int64 {
3956 get {return _storage._minItems}
3957 set {_uniqueStorage()._minItems = newValue}
3958 }
3959
3960 public var uniqueItems: Bool {
3961 get {return _storage._uniqueItems}
3962 set {_uniqueStorage()._uniqueItems = newValue}
3963 }
3964
3965 public var `enum`: [Openapi_V2_Any] {
3966 get {return _storage._enum}
3967 set {_uniqueStorage()._enum = newValue}
3968 }
3969
3970 public var multipleOf: Double {
3971 get {return _storage._multipleOf}
3972 set {_uniqueStorage()._multipleOf = newValue}
3973 }
3974
3975 public var vendorExtension: [Openapi_V2_NamedAny] {
3976 get {return _storage._vendorExtension}
3977 set {_uniqueStorage()._vendorExtension = newValue}
3978 }
3979
3980 public var unknownFields = SwiftProtobuf.UnknownStorage()
3981
3982 public init() {}
3983
3984 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
3985 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
3986 /// initializers are defined in the SwiftProtobuf library. See the Message and
3987 /// Message+*Additions` files.
3988 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
3989 _ = _uniqueStorage()
3990 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
3991 while let fieldNumber = try decoder.nextFieldNumber() {
3992 switch fieldNumber {
3993 case 1: try decoder.decodeSingularStringField(value: &_storage._type)
3994 case 2: try decoder.decodeSingularStringField(value: &_storage._format)
3995 case 3: try decoder.decodeSingularMessageField(value: &_storage._items)
3996 case 4: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
3997 case 5: try decoder.decodeSingularMessageField(value: &_storage._default)
3998 case 6: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
3999 case 7: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
4000 case 8: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
4001 case 9: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
4002 case 10: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
4003 case 11: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
4004 case 12: try decoder.decodeSingularStringField(value: &_storage._pattern)
4005 case 13: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
4006 case 14: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
4007 case 15: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
4008 case 16: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
4009 case 17: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
4010 case 18: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
4011 default: break
4012 }
4013 }
4014 }
4015 }
4016
4017 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4018 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4019 /// other serializer methods are defined in the SwiftProtobuf library. See the
4020 /// `Message` and `Message+*Additions` files.
4021 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4022 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4023 if !_storage._type.isEmpty {
4024 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
4025 }
4026 if !_storage._format.isEmpty {
4027 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 2)
4028 }
4029 if let v = _storage._items {
4030 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
4031 }
4032 if !_storage._collectionFormat.isEmpty {
4033 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 4)
4034 }
4035 if let v = _storage._default {
4036 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
4037 }
4038 if _storage._maximum != 0 {
4039 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 6)
4040 }
4041 if _storage._exclusiveMaximum != false {
4042 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 7)
4043 }
4044 if _storage._minimum != 0 {
4045 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 8)
4046 }
4047 if _storage._exclusiveMinimum != false {
4048 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 9)
4049 }
4050 if _storage._maxLength != 0 {
4051 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 10)
4052 }
4053 if _storage._minLength != 0 {
4054 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 11)
4055 }
4056 if !_storage._pattern.isEmpty {
4057 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 12)
4058 }
4059 if _storage._maxItems != 0 {
4060 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 13)
4061 }
4062 if _storage._minItems != 0 {
4063 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 14)
4064 }
4065 if _storage._uniqueItems != false {
4066 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 15)
4067 }
4068 if !_storage._enum.isEmpty {
4069 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 16)
4070 }
4071 if _storage._multipleOf != 0 {
4072 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 17)
4073 }
4074 if !_storage._vendorExtension.isEmpty {
4075 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 18)
4076 }
4077 }
4078 try unknownFields.traverse(visitor: &visitor)
4079 }
4080
4081 fileprivate var _storage = _StorageClass.defaultInstance
4082 }
4083
4084 public struct Openapi_V2_Properties: SwiftProtobuf.Message {
4085 public static let protoMessageName: String = _protobuf_package + ".Properties"
4086
4087 public var additionalProperties: [Openapi_V2_NamedSchema] = []
4088
4089 public var unknownFields = SwiftProtobuf.UnknownStorage()
4090
4091 public init() {}
4092
4093 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4094 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4095 /// initializers are defined in the SwiftProtobuf library. See the Message and
4096 /// Message+*Additions` files.
4097 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4098 while let fieldNumber = try decoder.nextFieldNumber() {
4099 switch fieldNumber {
4100 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
4101 default: break
4102 }
4103 }
4104 }
4105
4106 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4107 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4108 /// other serializer methods are defined in the SwiftProtobuf library. See the
4109 /// `Message` and `Message+*Additions` files.
4110 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4111 if !self.additionalProperties.isEmpty {
4112 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
4113 }
4114 try unknownFields.traverse(visitor: &visitor)
4115 }
4116 }
4117
4118 public struct Openapi_V2_QueryParameterSubSchema: SwiftProtobuf.Message {
4119 public static let protoMessageName: String = _protobuf_package + ".QueryParameterSubSchema"
4120
4121 /// Determines whether or not this parameter is required or optional.
4122 public var required: Bool {
4123 get {return _storage._required}
4124 set {_uniqueStorage()._required = newValue}
4125 }
4126
4127 /// Determines the location of the parameter.
4128 public var `in`: String {
4129 get {return _storage._in}
4130 set {_uniqueStorage()._in = newValue}
4131 }
4132
4133 /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.
4134 public var description_p: String {
4135 get {return _storage._description_p}
4136 set {_uniqueStorage()._description_p = newValue}
4137 }
4138
4139 /// The name of the parameter.
4140 public var name: String {
4141 get {return _storage._name}
4142 set {_uniqueStorage()._name = newValue}
4143 }
4144
4145 /// allows sending a parameter by name only or with an empty value.
4146 public var allowEmptyValue: Bool {
4147 get {return _storage._allowEmptyValue}
4148 set {_uniqueStorage()._allowEmptyValue = newValue}
4149 }
4150
4151 public var type: String {
4152 get {return _storage._type}
4153 set {_uniqueStorage()._type = newValue}
4154 }
4155
4156 public var format: String {
4157 get {return _storage._format}
4158 set {_uniqueStorage()._format = newValue}
4159 }
4160
4161 public var items: Openapi_V2_PrimitivesItems {
4162 get {return _storage._items ?? Openapi_V2_PrimitivesItems()}
4163 set {_uniqueStorage()._items = newValue}
4164 }
4165 /// Returns true if `items` has been explicitly set.
4166 public var hasItems: Bool {return _storage._items != nil}
4167 /// Clears the value of `items`. Subsequent reads from it will return its default value.
4168 public mutating func clearItems() {_storage._items = nil}
4169
4170 public var collectionFormat: String {
4171 get {return _storage._collectionFormat}
4172 set {_uniqueStorage()._collectionFormat = newValue}
4173 }
4174
4175 public var `default`: Openapi_V2_Any {
4176 get {return _storage._default ?? Openapi_V2_Any()}
4177 set {_uniqueStorage()._default = newValue}
4178 }
4179 /// Returns true if ``default`` has been explicitly set.
4180 public var hasDefault: Bool {return _storage._default != nil}
4181 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
4182 public mutating func clearDefault() {_storage._default = nil}
4183
4184 public var maximum: Double {
4185 get {return _storage._maximum}
4186 set {_uniqueStorage()._maximum = newValue}
4187 }
4188
4189 public var exclusiveMaximum: Bool {
4190 get {return _storage._exclusiveMaximum}
4191 set {_uniqueStorage()._exclusiveMaximum = newValue}
4192 }
4193
4194 public var minimum: Double {
4195 get {return _storage._minimum}
4196 set {_uniqueStorage()._minimum = newValue}
4197 }
4198
4199 public var exclusiveMinimum: Bool {
4200 get {return _storage._exclusiveMinimum}
4201 set {_uniqueStorage()._exclusiveMinimum = newValue}
4202 }
4203
4204 public var maxLength: Int64 {
4205 get {return _storage._maxLength}
4206 set {_uniqueStorage()._maxLength = newValue}
4207 }
4208
4209 public var minLength: Int64 {
4210 get {return _storage._minLength}
4211 set {_uniqueStorage()._minLength = newValue}
4212 }
4213
4214 public var pattern: String {
4215 get {return _storage._pattern}
4216 set {_uniqueStorage()._pattern = newValue}
4217 }
4218
4219 public var maxItems: Int64 {
4220 get {return _storage._maxItems}
4221 set {_uniqueStorage()._maxItems = newValue}
4222 }
4223
4224 public var minItems: Int64 {
4225 get {return _storage._minItems}
4226 set {_uniqueStorage()._minItems = newValue}
4227 }
4228
4229 public var uniqueItems: Bool {
4230 get {return _storage._uniqueItems}
4231 set {_uniqueStorage()._uniqueItems = newValue}
4232 }
4233
4234 public var `enum`: [Openapi_V2_Any] {
4235 get {return _storage._enum}
4236 set {_uniqueStorage()._enum = newValue}
4237 }
4238
4239 public var multipleOf: Double {
4240 get {return _storage._multipleOf}
4241 set {_uniqueStorage()._multipleOf = newValue}
4242 }
4243
4244 public var vendorExtension: [Openapi_V2_NamedAny] {
4245 get {return _storage._vendorExtension}
4246 set {_uniqueStorage()._vendorExtension = newValue}
4247 }
4248
4249 public var unknownFields = SwiftProtobuf.UnknownStorage()
4250
4251 public init() {}
4252
4253 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4254 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4255 /// initializers are defined in the SwiftProtobuf library. See the Message and
4256 /// Message+*Additions` files.
4257 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4258 _ = _uniqueStorage()
4259 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4260 while let fieldNumber = try decoder.nextFieldNumber() {
4261 switch fieldNumber {
4262 case 1: try decoder.decodeSingularBoolField(value: &_storage._required)
4263 case 2: try decoder.decodeSingularStringField(value: &_storage._in)
4264 case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
4265 case 4: try decoder.decodeSingularStringField(value: &_storage._name)
4266 case 5: try decoder.decodeSingularBoolField(value: &_storage._allowEmptyValue)
4267 case 6: try decoder.decodeSingularStringField(value: &_storage._type)
4268 case 7: try decoder.decodeSingularStringField(value: &_storage._format)
4269 case 8: try decoder.decodeSingularMessageField(value: &_storage._items)
4270 case 9: try decoder.decodeSingularStringField(value: &_storage._collectionFormat)
4271 case 10: try decoder.decodeSingularMessageField(value: &_storage._default)
4272 case 11: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
4273 case 12: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
4274 case 13: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
4275 case 14: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
4276 case 15: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
4277 case 16: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
4278 case 17: try decoder.decodeSingularStringField(value: &_storage._pattern)
4279 case 18: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
4280 case 19: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
4281 case 20: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
4282 case 21: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
4283 case 22: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
4284 case 23: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
4285 default: break
4286 }
4287 }
4288 }
4289 }
4290
4291 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4292 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4293 /// other serializer methods are defined in the SwiftProtobuf library. See the
4294 /// `Message` and `Message+*Additions` files.
4295 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4296 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4297 if _storage._required != false {
4298 try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1)
4299 }
4300 if !_storage._in.isEmpty {
4301 try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2)
4302 }
4303 if !_storage._description_p.isEmpty {
4304 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
4305 }
4306 if !_storage._name.isEmpty {
4307 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4)
4308 }
4309 if _storage._allowEmptyValue != false {
4310 try visitor.visitSingularBoolField(value: _storage._allowEmptyValue, fieldNumber: 5)
4311 }
4312 if !_storage._type.isEmpty {
4313 try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 6)
4314 }
4315 if !_storage._format.isEmpty {
4316 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 7)
4317 }
4318 if let v = _storage._items {
4319 try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
4320 }
4321 if !_storage._collectionFormat.isEmpty {
4322 try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 9)
4323 }
4324 if let v = _storage._default {
4325 try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
4326 }
4327 if _storage._maximum != 0 {
4328 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 11)
4329 }
4330 if _storage._exclusiveMaximum != false {
4331 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 12)
4332 }
4333 if _storage._minimum != 0 {
4334 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 13)
4335 }
4336 if _storage._exclusiveMinimum != false {
4337 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 14)
4338 }
4339 if _storage._maxLength != 0 {
4340 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 15)
4341 }
4342 if _storage._minLength != 0 {
4343 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 16)
4344 }
4345 if !_storage._pattern.isEmpty {
4346 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 17)
4347 }
4348 if _storage._maxItems != 0 {
4349 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 18)
4350 }
4351 if _storage._minItems != 0 {
4352 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 19)
4353 }
4354 if _storage._uniqueItems != false {
4355 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 20)
4356 }
4357 if !_storage._enum.isEmpty {
4358 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 21)
4359 }
4360 if _storage._multipleOf != 0 {
4361 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 22)
4362 }
4363 if !_storage._vendorExtension.isEmpty {
4364 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 23)
4365 }
4366 }
4367 try unknownFields.traverse(visitor: &visitor)
4368 }
4369
4370 fileprivate var _storage = _StorageClass.defaultInstance
4371 }
4372
4373 public struct Openapi_V2_Response: SwiftProtobuf.Message {
4374 public static let protoMessageName: String = _protobuf_package + ".Response"
4375
4376 public var description_p: String {
4377 get {return _storage._description_p}
4378 set {_uniqueStorage()._description_p = newValue}
4379 }
4380
4381 public var schema: Openapi_V2_SchemaItem {
4382 get {return _storage._schema ?? Openapi_V2_SchemaItem()}
4383 set {_uniqueStorage()._schema = newValue}
4384 }
4385 /// Returns true if `schema` has been explicitly set.
4386 public var hasSchema: Bool {return _storage._schema != nil}
4387 /// Clears the value of `schema`. Subsequent reads from it will return its default value.
4388 public mutating func clearSchema() {_storage._schema = nil}
4389
4390 public var headers: Openapi_V2_Headers {
4391 get {return _storage._headers ?? Openapi_V2_Headers()}
4392 set {_uniqueStorage()._headers = newValue}
4393 }
4394 /// Returns true if `headers` has been explicitly set.
4395 public var hasHeaders: Bool {return _storage._headers != nil}
4396 /// Clears the value of `headers`. Subsequent reads from it will return its default value.
4397 public mutating func clearHeaders() {_storage._headers = nil}
4398
4399 public var examples: Openapi_V2_Examples {
4400 get {return _storage._examples ?? Openapi_V2_Examples()}
4401 set {_uniqueStorage()._examples = newValue}
4402 }
4403 /// Returns true if `examples` has been explicitly set.
4404 public var hasExamples: Bool {return _storage._examples != nil}
4405 /// Clears the value of `examples`. Subsequent reads from it will return its default value.
4406 public mutating func clearExamples() {_storage._examples = nil}
4407
4408 public var vendorExtension: [Openapi_V2_NamedAny] {
4409 get {return _storage._vendorExtension}
4410 set {_uniqueStorage()._vendorExtension = newValue}
4411 }
4412
4413 public var unknownFields = SwiftProtobuf.UnknownStorage()
4414
4415 public init() {}
4416
4417 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4418 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4419 /// initializers are defined in the SwiftProtobuf library. See the Message and
4420 /// Message+*Additions` files.
4421 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4422 _ = _uniqueStorage()
4423 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4424 while let fieldNumber = try decoder.nextFieldNumber() {
4425 switch fieldNumber {
4426 case 1: try decoder.decodeSingularStringField(value: &_storage._description_p)
4427 case 2: try decoder.decodeSingularMessageField(value: &_storage._schema)
4428 case 3: try decoder.decodeSingularMessageField(value: &_storage._headers)
4429 case 4: try decoder.decodeSingularMessageField(value: &_storage._examples)
4430 case 5: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
4431 default: break
4432 }
4433 }
4434 }
4435 }
4436
4437 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4438 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4439 /// other serializer methods are defined in the SwiftProtobuf library. See the
4440 /// `Message` and `Message+*Additions` files.
4441 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4442 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4443 if !_storage._description_p.isEmpty {
4444 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 1)
4445 }
4446 if let v = _storage._schema {
4447 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
4448 }
4449 if let v = _storage._headers {
4450 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
4451 }
4452 if let v = _storage._examples {
4453 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
4454 }
4455 if !_storage._vendorExtension.isEmpty {
4456 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 5)
4457 }
4458 }
4459 try unknownFields.traverse(visitor: &visitor)
4460 }
4461
4462 fileprivate var _storage = _StorageClass.defaultInstance
4463 }
4464
4465 /// One or more JSON representations for parameters
4466 public struct Openapi_V2_ResponseDefinitions: SwiftProtobuf.Message {
4467 public static let protoMessageName: String = _protobuf_package + ".ResponseDefinitions"
4468
4469 public var additionalProperties: [Openapi_V2_NamedResponse] = []
4470
4471 public var unknownFields = SwiftProtobuf.UnknownStorage()
4472
4473 public init() {}
4474
4475 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4476 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4477 /// initializers are defined in the SwiftProtobuf library. See the Message and
4478 /// Message+*Additions` files.
4479 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4480 while let fieldNumber = try decoder.nextFieldNumber() {
4481 switch fieldNumber {
4482 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
4483 default: break
4484 }
4485 }
4486 }
4487
4488 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4489 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4490 /// other serializer methods are defined in the SwiftProtobuf library. See the
4491 /// `Message` and `Message+*Additions` files.
4492 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4493 if !self.additionalProperties.isEmpty {
4494 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
4495 }
4496 try unknownFields.traverse(visitor: &visitor)
4497 }
4498 }
4499
4500 public struct Openapi_V2_ResponseValue: SwiftProtobuf.Message {
4501 public static let protoMessageName: String = _protobuf_package + ".ResponseValue"
4502
4503 public var oneof: OneOf_Oneof? {
4504 get {return _storage._oneof}
4505 set {_uniqueStorage()._oneof = newValue}
4506 }
4507
4508 public var response: Openapi_V2_Response {
4509 get {
4510 if case .response(let v)? = _storage._oneof {return v}
4511 return Openapi_V2_Response()
4512 }
4513 set {_uniqueStorage()._oneof = .response(newValue)}
4514 }
4515
4516 public var jsonReference: Openapi_V2_JsonReference {
4517 get {
4518 if case .jsonReference(let v)? = _storage._oneof {return v}
4519 return Openapi_V2_JsonReference()
4520 }
4521 set {_uniqueStorage()._oneof = .jsonReference(newValue)}
4522 }
4523
4524 public var unknownFields = SwiftProtobuf.UnknownStorage()
4525
4526 public enum OneOf_Oneof: Equatable {
4527 case response(Openapi_V2_Response)
4528 case jsonReference(Openapi_V2_JsonReference)
4529
4530 public static func ==(lhs: Openapi_V2_ResponseValue.OneOf_Oneof, rhs: Openapi_V2_ResponseValue.OneOf_Oneof) -> Bool {
4531 switch (lhs, rhs) {
4532 case (.response(let l), .response(let r)): return l == r
4533 case (.jsonReference(let l), .jsonReference(let r)): return l == r
4534 default: return false
4535 }
4536 }
4537 }
4538
4539 public init() {}
4540
4541 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4542 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4543 /// initializers are defined in the SwiftProtobuf library. See the Message and
4544 /// Message+*Additions` files.
4545 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4546 _ = _uniqueStorage()
4547 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4548 while let fieldNumber = try decoder.nextFieldNumber() {
4549 switch fieldNumber {
4550 case 1:
4551 var v: Openapi_V2_Response?
4552 if let current = _storage._oneof {
4553 try decoder.handleConflictingOneOf()
4554 if case .response(let m) = current {v = m}
4555 }
4556 try decoder.decodeSingularMessageField(value: &v)
4557 if let v = v {_storage._oneof = .response(v)}
4558 case 2:
4559 var v: Openapi_V2_JsonReference?
4560 if let current = _storage._oneof {
4561 try decoder.handleConflictingOneOf()
4562 if case .jsonReference(let m) = current {v = m}
4563 }
4564 try decoder.decodeSingularMessageField(value: &v)
4565 if let v = v {_storage._oneof = .jsonReference(v)}
4566 default: break
4567 }
4568 }
4569 }
4570 }
4571
4572 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4573 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4574 /// other serializer methods are defined in the SwiftProtobuf library. See the
4575 /// `Message` and `Message+*Additions` files.
4576 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4577 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4578 switch _storage._oneof {
4579 case .response(let v)?:
4580 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
4581 case .jsonReference(let v)?:
4582 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
4583 case nil: break
4584 }
4585 }
4586 try unknownFields.traverse(visitor: &visitor)
4587 }
4588
4589 fileprivate var _storage = _StorageClass.defaultInstance
4590 }
4591
4592 /// Response objects names can either be any valid HTTP status code or 'default'.
4593 public struct Openapi_V2_Responses: SwiftProtobuf.Message {
4594 public static let protoMessageName: String = _protobuf_package + ".Responses"
4595
4596 public var responseCode: [Openapi_V2_NamedResponseValue] = []
4597
4598 public var vendorExtension: [Openapi_V2_NamedAny] = []
4599
4600 public var unknownFields = SwiftProtobuf.UnknownStorage()
4601
4602 public init() {}
4603
4604 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4605 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4606 /// initializers are defined in the SwiftProtobuf library. See the Message and
4607 /// Message+*Additions` files.
4608 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4609 while let fieldNumber = try decoder.nextFieldNumber() {
4610 switch fieldNumber {
4611 case 1: try decoder.decodeRepeatedMessageField(value: &self.responseCode)
4612 case 2: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
4613 default: break
4614 }
4615 }
4616 }
4617
4618 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4619 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4620 /// other serializer methods are defined in the SwiftProtobuf library. See the
4621 /// `Message` and `Message+*Additions` files.
4622 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4623 if !self.responseCode.isEmpty {
4624 try visitor.visitRepeatedMessageField(value: self.responseCode, fieldNumber: 1)
4625 }
4626 if !self.vendorExtension.isEmpty {
4627 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 2)
4628 }
4629 try unknownFields.traverse(visitor: &visitor)
4630 }
4631 }
4632
4633 /// A deterministic version of a JSON Schema object.
4634 public struct Openapi_V2_Schema: SwiftProtobuf.Message {
4635 public static let protoMessageName: String = _protobuf_package + ".Schema"
4636
4637 public var ref: String {
4638 get {return _storage._ref}
4639 set {_uniqueStorage()._ref = newValue}
4640 }
4641
4642 public var format: String {
4643 get {return _storage._format}
4644 set {_uniqueStorage()._format = newValue}
4645 }
4646
4647 public var title: String {
4648 get {return _storage._title}
4649 set {_uniqueStorage()._title = newValue}
4650 }
4651
4652 public var description_p: String {
4653 get {return _storage._description_p}
4654 set {_uniqueStorage()._description_p = newValue}
4655 }
4656
4657 public var `default`: Openapi_V2_Any {
4658 get {return _storage._default ?? Openapi_V2_Any()}
4659 set {_uniqueStorage()._default = newValue}
4660 }
4661 /// Returns true if ``default`` has been explicitly set.
4662 public var hasDefault: Bool {return _storage._default != nil}
4663 /// Clears the value of ``default``. Subsequent reads from it will return its default value.
4664 public mutating func clearDefault() {_storage._default = nil}
4665
4666 public var multipleOf: Double {
4667 get {return _storage._multipleOf}
4668 set {_uniqueStorage()._multipleOf = newValue}
4669 }
4670
4671 public var maximum: Double {
4672 get {return _storage._maximum}
4673 set {_uniqueStorage()._maximum = newValue}
4674 }
4675
4676 public var exclusiveMaximum: Bool {
4677 get {return _storage._exclusiveMaximum}
4678 set {_uniqueStorage()._exclusiveMaximum = newValue}
4679 }
4680
4681 public var minimum: Double {
4682 get {return _storage._minimum}
4683 set {_uniqueStorage()._minimum = newValue}
4684 }
4685
4686 public var exclusiveMinimum: Bool {
4687 get {return _storage._exclusiveMinimum}
4688 set {_uniqueStorage()._exclusiveMinimum = newValue}
4689 }
4690
4691 public var maxLength: Int64 {
4692 get {return _storage._maxLength}
4693 set {_uniqueStorage()._maxLength = newValue}
4694 }
4695
4696 public var minLength: Int64 {
4697 get {return _storage._minLength}
4698 set {_uniqueStorage()._minLength = newValue}
4699 }
4700
4701 public var pattern: String {
4702 get {return _storage._pattern}
4703 set {_uniqueStorage()._pattern = newValue}
4704 }
4705
4706 public var maxItems: Int64 {
4707 get {return _storage._maxItems}
4708 set {_uniqueStorage()._maxItems = newValue}
4709 }
4710
4711 public var minItems: Int64 {
4712 get {return _storage._minItems}
4713 set {_uniqueStorage()._minItems = newValue}
4714 }
4715
4716 public var uniqueItems: Bool {
4717 get {return _storage._uniqueItems}
4718 set {_uniqueStorage()._uniqueItems = newValue}
4719 }
4720
4721 public var maxProperties: Int64 {
4722 get {return _storage._maxProperties}
4723 set {_uniqueStorage()._maxProperties = newValue}
4724 }
4725
4726 public var minProperties: Int64 {
4727 get {return _storage._minProperties}
4728 set {_uniqueStorage()._minProperties = newValue}
4729 }
4730
4731 public var required: [String] {
4732 get {return _storage._required}
4733 set {_uniqueStorage()._required = newValue}
4734 }
4735
4736 public var `enum`: [Openapi_V2_Any] {
4737 get {return _storage._enum}
4738 set {_uniqueStorage()._enum = newValue}
4739 }
4740
4741 public var additionalProperties: Openapi_V2_AdditionalPropertiesItem {
4742 get {return _storage._additionalProperties ?? Openapi_V2_AdditionalPropertiesItem()}
4743 set {_uniqueStorage()._additionalProperties = newValue}
4744 }
4745 /// Returns true if `additionalProperties` has been explicitly set.
4746 public var hasAdditionalProperties: Bool {return _storage._additionalProperties != nil}
4747 /// Clears the value of `additionalProperties`. Subsequent reads from it will return its default value.
4748 public mutating func clearAdditionalProperties() {_storage._additionalProperties = nil}
4749
4750 public var type: Openapi_V2_TypeItem {
4751 get {return _storage._type ?? Openapi_V2_TypeItem()}
4752 set {_uniqueStorage()._type = newValue}
4753 }
4754 /// Returns true if `type` has been explicitly set.
4755 public var hasType: Bool {return _storage._type != nil}
4756 /// Clears the value of `type`. Subsequent reads from it will return its default value.
4757 public mutating func clearType() {_storage._type = nil}
4758
4759 public var items: Openapi_V2_ItemsItem {
4760 get {return _storage._items ?? Openapi_V2_ItemsItem()}
4761 set {_uniqueStorage()._items = newValue}
4762 }
4763 /// Returns true if `items` has been explicitly set.
4764 public var hasItems: Bool {return _storage._items != nil}
4765 /// Clears the value of `items`. Subsequent reads from it will return its default value.
4766 public mutating func clearItems() {_storage._items = nil}
4767
4768 public var allOf: [Openapi_V2_Schema] {
4769 get {return _storage._allOf}
4770 set {_uniqueStorage()._allOf = newValue}
4771 }
4772
4773 public var properties: Openapi_V2_Properties {
4774 get {return _storage._properties ?? Openapi_V2_Properties()}
4775 set {_uniqueStorage()._properties = newValue}
4776 }
4777 /// Returns true if `properties` has been explicitly set.
4778 public var hasProperties: Bool {return _storage._properties != nil}
4779 /// Clears the value of `properties`. Subsequent reads from it will return its default value.
4780 public mutating func clearProperties() {_storage._properties = nil}
4781
4782 public var discriminator: String {
4783 get {return _storage._discriminator}
4784 set {_uniqueStorage()._discriminator = newValue}
4785 }
4786
4787 public var readOnly: Bool {
4788 get {return _storage._readOnly}
4789 set {_uniqueStorage()._readOnly = newValue}
4790 }
4791
4792 public var xml: Openapi_V2_Xml {
4793 get {return _storage._xml ?? Openapi_V2_Xml()}
4794 set {_uniqueStorage()._xml = newValue}
4795 }
4796 /// Returns true if `xml` has been explicitly set.
4797 public var hasXml: Bool {return _storage._xml != nil}
4798 /// Clears the value of `xml`. Subsequent reads from it will return its default value.
4799 public mutating func clearXml() {_storage._xml = nil}
4800
4801 public var externalDocs: Openapi_V2_ExternalDocs {
4802 get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()}
4803 set {_uniqueStorage()._externalDocs = newValue}
4804 }
4805 /// Returns true if `externalDocs` has been explicitly set.
4806 public var hasExternalDocs: Bool {return _storage._externalDocs != nil}
4807 /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value.
4808 public mutating func clearExternalDocs() {_storage._externalDocs = nil}
4809
4810 public var example: Openapi_V2_Any {
4811 get {return _storage._example ?? Openapi_V2_Any()}
4812 set {_uniqueStorage()._example = newValue}
4813 }
4814 /// Returns true if `example` has been explicitly set.
4815 public var hasExample: Bool {return _storage._example != nil}
4816 /// Clears the value of `example`. Subsequent reads from it will return its default value.
4817 public mutating func clearExample() {_storage._example = nil}
4818
4819 public var vendorExtension: [Openapi_V2_NamedAny] {
4820 get {return _storage._vendorExtension}
4821 set {_uniqueStorage()._vendorExtension = newValue}
4822 }
4823
4824 public var unknownFields = SwiftProtobuf.UnknownStorage()
4825
4826 public init() {}
4827
4828 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
4829 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
4830 /// initializers are defined in the SwiftProtobuf library. See the Message and
4831 /// Message+*Additions` files.
4832 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
4833 _ = _uniqueStorage()
4834 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4835 while let fieldNumber = try decoder.nextFieldNumber() {
4836 switch fieldNumber {
4837 case 1: try decoder.decodeSingularStringField(value: &_storage._ref)
4838 case 2: try decoder.decodeSingularStringField(value: &_storage._format)
4839 case 3: try decoder.decodeSingularStringField(value: &_storage._title)
4840 case 4: try decoder.decodeSingularStringField(value: &_storage._description_p)
4841 case 5: try decoder.decodeSingularMessageField(value: &_storage._default)
4842 case 6: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf)
4843 case 7: try decoder.decodeSingularDoubleField(value: &_storage._maximum)
4844 case 8: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum)
4845 case 9: try decoder.decodeSingularDoubleField(value: &_storage._minimum)
4846 case 10: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum)
4847 case 11: try decoder.decodeSingularInt64Field(value: &_storage._maxLength)
4848 case 12: try decoder.decodeSingularInt64Field(value: &_storage._minLength)
4849 case 13: try decoder.decodeSingularStringField(value: &_storage._pattern)
4850 case 14: try decoder.decodeSingularInt64Field(value: &_storage._maxItems)
4851 case 15: try decoder.decodeSingularInt64Field(value: &_storage._minItems)
4852 case 16: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems)
4853 case 17: try decoder.decodeSingularInt64Field(value: &_storage._maxProperties)
4854 case 18: try decoder.decodeSingularInt64Field(value: &_storage._minProperties)
4855 case 19: try decoder.decodeRepeatedStringField(value: &_storage._required)
4856 case 20: try decoder.decodeRepeatedMessageField(value: &_storage._enum)
4857 case 21: try decoder.decodeSingularMessageField(value: &_storage._additionalProperties)
4858 case 22: try decoder.decodeSingularMessageField(value: &_storage._type)
4859 case 23: try decoder.decodeSingularMessageField(value: &_storage._items)
4860 case 24: try decoder.decodeRepeatedMessageField(value: &_storage._allOf)
4861 case 25: try decoder.decodeSingularMessageField(value: &_storage._properties)
4862 case 26: try decoder.decodeSingularStringField(value: &_storage._discriminator)
4863 case 27: try decoder.decodeSingularBoolField(value: &_storage._readOnly)
4864 case 28: try decoder.decodeSingularMessageField(value: &_storage._xml)
4865 case 29: try decoder.decodeSingularMessageField(value: &_storage._externalDocs)
4866 case 30: try decoder.decodeSingularMessageField(value: &_storage._example)
4867 case 31: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
4868 default: break
4869 }
4870 }
4871 }
4872 }
4873
4874 /// Used by the encoding methods of the SwiftProtobuf library, not generally
4875 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
4876 /// other serializer methods are defined in the SwiftProtobuf library. See the
4877 /// `Message` and `Message+*Additions` files.
4878 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
4879 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
4880 if !_storage._ref.isEmpty {
4881 try visitor.visitSingularStringField(value: _storage._ref, fieldNumber: 1)
4882 }
4883 if !_storage._format.isEmpty {
4884 try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 2)
4885 }
4886 if !_storage._title.isEmpty {
4887 try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 3)
4888 }
4889 if !_storage._description_p.isEmpty {
4890 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 4)
4891 }
4892 if let v = _storage._default {
4893 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
4894 }
4895 if _storage._multipleOf != 0 {
4896 try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 6)
4897 }
4898 if _storage._maximum != 0 {
4899 try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 7)
4900 }
4901 if _storage._exclusiveMaximum != false {
4902 try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 8)
4903 }
4904 if _storage._minimum != 0 {
4905 try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 9)
4906 }
4907 if _storage._exclusiveMinimum != false {
4908 try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 10)
4909 }
4910 if _storage._maxLength != 0 {
4911 try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 11)
4912 }
4913 if _storage._minLength != 0 {
4914 try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 12)
4915 }
4916 if !_storage._pattern.isEmpty {
4917 try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 13)
4918 }
4919 if _storage._maxItems != 0 {
4920 try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 14)
4921 }
4922 if _storage._minItems != 0 {
4923 try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 15)
4924 }
4925 if _storage._uniqueItems != false {
4926 try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 16)
4927 }
4928 if _storage._maxProperties != 0 {
4929 try visitor.visitSingularInt64Field(value: _storage._maxProperties, fieldNumber: 17)
4930 }
4931 if _storage._minProperties != 0 {
4932 try visitor.visitSingularInt64Field(value: _storage._minProperties, fieldNumber: 18)
4933 }
4934 if !_storage._required.isEmpty {
4935 try visitor.visitRepeatedStringField(value: _storage._required, fieldNumber: 19)
4936 }
4937 if !_storage._enum.isEmpty {
4938 try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 20)
4939 }
4940 if let v = _storage._additionalProperties {
4941 try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
4942 }
4943 if let v = _storage._type {
4944 try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
4945 }
4946 if let v = _storage._items {
4947 try visitor.visitSingularMessageField(value: v, fieldNumber: 23)
4948 }
4949 if !_storage._allOf.isEmpty {
4950 try visitor.visitRepeatedMessageField(value: _storage._allOf, fieldNumber: 24)
4951 }
4952 if let v = _storage._properties {
4953 try visitor.visitSingularMessageField(value: v, fieldNumber: 25)
4954 }
4955 if !_storage._discriminator.isEmpty {
4956 try visitor.visitSingularStringField(value: _storage._discriminator, fieldNumber: 26)
4957 }
4958 if _storage._readOnly != false {
4959 try visitor.visitSingularBoolField(value: _storage._readOnly, fieldNumber: 27)
4960 }
4961 if let v = _storage._xml {
4962 try visitor.visitSingularMessageField(value: v, fieldNumber: 28)
4963 }
4964 if let v = _storage._externalDocs {
4965 try visitor.visitSingularMessageField(value: v, fieldNumber: 29)
4966 }
4967 if let v = _storage._example {
4968 try visitor.visitSingularMessageField(value: v, fieldNumber: 30)
4969 }
4970 if !_storage._vendorExtension.isEmpty {
4971 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 31)
4972 }
4973 }
4974 try unknownFields.traverse(visitor: &visitor)
4975 }
4976
4977 fileprivate var _storage = _StorageClass.defaultInstance
4978 }
4979
4980 public struct Openapi_V2_SchemaItem: SwiftProtobuf.Message {
4981 public static let protoMessageName: String = _protobuf_package + ".SchemaItem"
4982
4983 public var oneof: OneOf_Oneof? {
4984 get {return _storage._oneof}
4985 set {_uniqueStorage()._oneof = newValue}
4986 }
4987
4988 public var schema: Openapi_V2_Schema {
4989 get {
4990 if case .schema(let v)? = _storage._oneof {return v}
4991 return Openapi_V2_Schema()
4992 }
4993 set {_uniqueStorage()._oneof = .schema(newValue)}
4994 }
4995
4996 public var fileSchema: Openapi_V2_FileSchema {
4997 get {
4998 if case .fileSchema(let v)? = _storage._oneof {return v}
4999 return Openapi_V2_FileSchema()
5000 }
5001 set {_uniqueStorage()._oneof = .fileSchema(newValue)}
5002 }
5003
5004 public var unknownFields = SwiftProtobuf.UnknownStorage()
5005
5006 public enum OneOf_Oneof: Equatable {
5007 case schema(Openapi_V2_Schema)
5008 case fileSchema(Openapi_V2_FileSchema)
5009
5010 public static func ==(lhs: Openapi_V2_SchemaItem.OneOf_Oneof, rhs: Openapi_V2_SchemaItem.OneOf_Oneof) -> Bool {
5011 switch (lhs, rhs) {
5012 case (.schema(let l), .schema(let r)): return l == r
5013 case (.fileSchema(let l), .fileSchema(let r)): return l == r
5014 default: return false
5015 }
5016 }
5017 }
5018
5019 public init() {}
5020
5021 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5022 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5023 /// initializers are defined in the SwiftProtobuf library. See the Message and
5024 /// Message+*Additions` files.
5025 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5026 _ = _uniqueStorage()
5027 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5028 while let fieldNumber = try decoder.nextFieldNumber() {
5029 switch fieldNumber {
5030 case 1:
5031 var v: Openapi_V2_Schema?
5032 if let current = _storage._oneof {
5033 try decoder.handleConflictingOneOf()
5034 if case .schema(let m) = current {v = m}
5035 }
5036 try decoder.decodeSingularMessageField(value: &v)
5037 if let v = v {_storage._oneof = .schema(v)}
5038 case 2:
5039 var v: Openapi_V2_FileSchema?
5040 if let current = _storage._oneof {
5041 try decoder.handleConflictingOneOf()
5042 if case .fileSchema(let m) = current {v = m}
5043 }
5044 try decoder.decodeSingularMessageField(value: &v)
5045 if let v = v {_storage._oneof = .fileSchema(v)}
5046 default: break
5047 }
5048 }
5049 }
5050 }
5051
5052 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5053 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5054 /// other serializer methods are defined in the SwiftProtobuf library. See the
5055 /// `Message` and `Message+*Additions` files.
5056 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5057 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5058 switch _storage._oneof {
5059 case .schema(let v)?:
5060 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
5061 case .fileSchema(let v)?:
5062 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
5063 case nil: break
5064 }
5065 }
5066 try unknownFields.traverse(visitor: &visitor)
5067 }
5068
5069 fileprivate var _storage = _StorageClass.defaultInstance
5070 }
5071
5072 public struct Openapi_V2_SecurityDefinitions: SwiftProtobuf.Message {
5073 public static let protoMessageName: String = _protobuf_package + ".SecurityDefinitions"
5074
5075 public var additionalProperties: [Openapi_V2_NamedSecurityDefinitionsItem] = []
5076
5077 public var unknownFields = SwiftProtobuf.UnknownStorage()
5078
5079 public init() {}
5080
5081 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5082 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5083 /// initializers are defined in the SwiftProtobuf library. See the Message and
5084 /// Message+*Additions` files.
5085 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5086 while let fieldNumber = try decoder.nextFieldNumber() {
5087 switch fieldNumber {
5088 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
5089 default: break
5090 }
5091 }
5092 }
5093
5094 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5095 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5096 /// other serializer methods are defined in the SwiftProtobuf library. See the
5097 /// `Message` and `Message+*Additions` files.
5098 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5099 if !self.additionalProperties.isEmpty {
5100 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
5101 }
5102 try unknownFields.traverse(visitor: &visitor)
5103 }
5104 }
5105
5106 public struct Openapi_V2_SecurityDefinitionsItem: SwiftProtobuf.Message {
5107 public static let protoMessageName: String = _protobuf_package + ".SecurityDefinitionsItem"
5108
5109 public var oneof: OneOf_Oneof? {
5110 get {return _storage._oneof}
5111 set {_uniqueStorage()._oneof = newValue}
5112 }
5113
5114 public var basicAuthenticationSecurity: Openapi_V2_BasicAuthenticationSecurity {
5115 get {
5116 if case .basicAuthenticationSecurity(let v)? = _storage._oneof {return v}
5117 return Openapi_V2_BasicAuthenticationSecurity()
5118 }
5119 set {_uniqueStorage()._oneof = .basicAuthenticationSecurity(newValue)}
5120 }
5121
5122 public var apiKeySecurity: Openapi_V2_ApiKeySecurity {
5123 get {
5124 if case .apiKeySecurity(let v)? = _storage._oneof {return v}
5125 return Openapi_V2_ApiKeySecurity()
5126 }
5127 set {_uniqueStorage()._oneof = .apiKeySecurity(newValue)}
5128 }
5129
5130 public var oauth2ImplicitSecurity: Openapi_V2_Oauth2ImplicitSecurity {
5131 get {
5132 if case .oauth2ImplicitSecurity(let v)? = _storage._oneof {return v}
5133 return Openapi_V2_Oauth2ImplicitSecurity()
5134 }
5135 set {_uniqueStorage()._oneof = .oauth2ImplicitSecurity(newValue)}
5136 }
5137
5138 public var oauth2PasswordSecurity: Openapi_V2_Oauth2PasswordSecurity {
5139 get {
5140 if case .oauth2PasswordSecurity(let v)? = _storage._oneof {return v}
5141 return Openapi_V2_Oauth2PasswordSecurity()
5142 }
5143 set {_uniqueStorage()._oneof = .oauth2PasswordSecurity(newValue)}
5144 }
5145
5146 public var oauth2ApplicationSecurity: Openapi_V2_Oauth2ApplicationSecurity {
5147 get {
5148 if case .oauth2ApplicationSecurity(let v)? = _storage._oneof {return v}
5149 return Openapi_V2_Oauth2ApplicationSecurity()
5150 }
5151 set {_uniqueStorage()._oneof = .oauth2ApplicationSecurity(newValue)}
5152 }
5153
5154 public var oauth2AccessCodeSecurity: Openapi_V2_Oauth2AccessCodeSecurity {
5155 get {
5156 if case .oauth2AccessCodeSecurity(let v)? = _storage._oneof {return v}
5157 return Openapi_V2_Oauth2AccessCodeSecurity()
5158 }
5159 set {_uniqueStorage()._oneof = .oauth2AccessCodeSecurity(newValue)}
5160 }
5161
5162 public var unknownFields = SwiftProtobuf.UnknownStorage()
5163
5164 public enum OneOf_Oneof: Equatable {
5165 case basicAuthenticationSecurity(Openapi_V2_BasicAuthenticationSecurity)
5166 case apiKeySecurity(Openapi_V2_ApiKeySecurity)
5167 case oauth2ImplicitSecurity(Openapi_V2_Oauth2ImplicitSecurity)
5168 case oauth2PasswordSecurity(Openapi_V2_Oauth2PasswordSecurity)
5169 case oauth2ApplicationSecurity(Openapi_V2_Oauth2ApplicationSecurity)
5170 case oauth2AccessCodeSecurity(Openapi_V2_Oauth2AccessCodeSecurity)
5171
5172 public static func ==(lhs: Openapi_V2_SecurityDefinitionsItem.OneOf_Oneof, rhs: Openapi_V2_SecurityDefinitionsItem.OneOf_Oneof) -> Bool {
5173 switch (lhs, rhs) {
5174 case (.basicAuthenticationSecurity(let l), .basicAuthenticationSecurity(let r)): return l == r
5175 case (.apiKeySecurity(let l), .apiKeySecurity(let r)): return l == r
5176 case (.oauth2ImplicitSecurity(let l), .oauth2ImplicitSecurity(let r)): return l == r
5177 case (.oauth2PasswordSecurity(let l), .oauth2PasswordSecurity(let r)): return l == r
5178 case (.oauth2ApplicationSecurity(let l), .oauth2ApplicationSecurity(let r)): return l == r
5179 case (.oauth2AccessCodeSecurity(let l), .oauth2AccessCodeSecurity(let r)): return l == r
5180 default: return false
5181 }
5182 }
5183 }
5184
5185 public init() {}
5186
5187 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5188 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5189 /// initializers are defined in the SwiftProtobuf library. See the Message and
5190 /// Message+*Additions` files.
5191 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5192 _ = _uniqueStorage()
5193 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5194 while let fieldNumber = try decoder.nextFieldNumber() {
5195 switch fieldNumber {
5196 case 1:
5197 var v: Openapi_V2_BasicAuthenticationSecurity?
5198 if let current = _storage._oneof {
5199 try decoder.handleConflictingOneOf()
5200 if case .basicAuthenticationSecurity(let m) = current {v = m}
5201 }
5202 try decoder.decodeSingularMessageField(value: &v)
5203 if let v = v {_storage._oneof = .basicAuthenticationSecurity(v)}
5204 case 2:
5205 var v: Openapi_V2_ApiKeySecurity?
5206 if let current = _storage._oneof {
5207 try decoder.handleConflictingOneOf()
5208 if case .apiKeySecurity(let m) = current {v = m}
5209 }
5210 try decoder.decodeSingularMessageField(value: &v)
5211 if let v = v {_storage._oneof = .apiKeySecurity(v)}
5212 case 3:
5213 var v: Openapi_V2_Oauth2ImplicitSecurity?
5214 if let current = _storage._oneof {
5215 try decoder.handleConflictingOneOf()
5216 if case .oauth2ImplicitSecurity(let m) = current {v = m}
5217 }
5218 try decoder.decodeSingularMessageField(value: &v)
5219 if let v = v {_storage._oneof = .oauth2ImplicitSecurity(v)}
5220 case 4:
5221 var v: Openapi_V2_Oauth2PasswordSecurity?
5222 if let current = _storage._oneof {
5223 try decoder.handleConflictingOneOf()
5224 if case .oauth2PasswordSecurity(let m) = current {v = m}
5225 }
5226 try decoder.decodeSingularMessageField(value: &v)
5227 if let v = v {_storage._oneof = .oauth2PasswordSecurity(v)}
5228 case 5:
5229 var v: Openapi_V2_Oauth2ApplicationSecurity?
5230 if let current = _storage._oneof {
5231 try decoder.handleConflictingOneOf()
5232 if case .oauth2ApplicationSecurity(let m) = current {v = m}
5233 }
5234 try decoder.decodeSingularMessageField(value: &v)
5235 if let v = v {_storage._oneof = .oauth2ApplicationSecurity(v)}
5236 case 6:
5237 var v: Openapi_V2_Oauth2AccessCodeSecurity?
5238 if let current = _storage._oneof {
5239 try decoder.handleConflictingOneOf()
5240 if case .oauth2AccessCodeSecurity(let m) = current {v = m}
5241 }
5242 try decoder.decodeSingularMessageField(value: &v)
5243 if let v = v {_storage._oneof = .oauth2AccessCodeSecurity(v)}
5244 default: break
5245 }
5246 }
5247 }
5248 }
5249
5250 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5251 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5252 /// other serializer methods are defined in the SwiftProtobuf library. See the
5253 /// `Message` and `Message+*Additions` files.
5254 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5255 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5256 switch _storage._oneof {
5257 case .basicAuthenticationSecurity(let v)?:
5258 try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
5259 case .apiKeySecurity(let v)?:
5260 try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
5261 case .oauth2ImplicitSecurity(let v)?:
5262 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
5263 case .oauth2PasswordSecurity(let v)?:
5264 try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
5265 case .oauth2ApplicationSecurity(let v)?:
5266 try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
5267 case .oauth2AccessCodeSecurity(let v)?:
5268 try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
5269 case nil: break
5270 }
5271 }
5272 try unknownFields.traverse(visitor: &visitor)
5273 }
5274
5275 fileprivate var _storage = _StorageClass.defaultInstance
5276 }
5277
5278 public struct Openapi_V2_SecurityRequirement: SwiftProtobuf.Message {
5279 public static let protoMessageName: String = _protobuf_package + ".SecurityRequirement"
5280
5281 public var additionalProperties: [Openapi_V2_NamedStringArray] = []
5282
5283 public var unknownFields = SwiftProtobuf.UnknownStorage()
5284
5285 public init() {}
5286
5287 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5288 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5289 /// initializers are defined in the SwiftProtobuf library. See the Message and
5290 /// Message+*Additions` files.
5291 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5292 while let fieldNumber = try decoder.nextFieldNumber() {
5293 switch fieldNumber {
5294 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
5295 default: break
5296 }
5297 }
5298 }
5299
5300 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5301 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5302 /// other serializer methods are defined in the SwiftProtobuf library. See the
5303 /// `Message` and `Message+*Additions` files.
5304 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5305 if !self.additionalProperties.isEmpty {
5306 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
5307 }
5308 try unknownFields.traverse(visitor: &visitor)
5309 }
5310 }
5311
5312 public struct Openapi_V2_StringArray: SwiftProtobuf.Message {
5313 public static let protoMessageName: String = _protobuf_package + ".StringArray"
5314
5315 public var value: [String] = []
5316
5317 public var unknownFields = SwiftProtobuf.UnknownStorage()
5318
5319 public init() {}
5320
5321 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5322 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5323 /// initializers are defined in the SwiftProtobuf library. See the Message and
5324 /// Message+*Additions` files.
5325 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5326 while let fieldNumber = try decoder.nextFieldNumber() {
5327 switch fieldNumber {
5328 case 1: try decoder.decodeRepeatedStringField(value: &self.value)
5329 default: break
5330 }
5331 }
5332 }
5333
5334 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5335 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5336 /// other serializer methods are defined in the SwiftProtobuf library. See the
5337 /// `Message` and `Message+*Additions` files.
5338 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5339 if !self.value.isEmpty {
5340 try visitor.visitRepeatedStringField(value: self.value, fieldNumber: 1)
5341 }
5342 try unknownFields.traverse(visitor: &visitor)
5343 }
5344 }
5345
5346 public struct Openapi_V2_Tag: SwiftProtobuf.Message {
5347 public static let protoMessageName: String = _protobuf_package + ".Tag"
5348
5349 public var name: String {
5350 get {return _storage._name}
5351 set {_uniqueStorage()._name = newValue}
5352 }
5353
5354 public var description_p: String {
5355 get {return _storage._description_p}
5356 set {_uniqueStorage()._description_p = newValue}
5357 }
5358
5359 public var externalDocs: Openapi_V2_ExternalDocs {
5360 get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()}
5361 set {_uniqueStorage()._externalDocs = newValue}
5362 }
5363 /// Returns true if `externalDocs` has been explicitly set.
5364 public var hasExternalDocs: Bool {return _storage._externalDocs != nil}
5365 /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value.
5366 public mutating func clearExternalDocs() {_storage._externalDocs = nil}
5367
5368 public var vendorExtension: [Openapi_V2_NamedAny] {
5369 get {return _storage._vendorExtension}
5370 set {_uniqueStorage()._vendorExtension = newValue}
5371 }
5372
5373 public var unknownFields = SwiftProtobuf.UnknownStorage()
5374
5375 public init() {}
5376
5377 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5378 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5379 /// initializers are defined in the SwiftProtobuf library. See the Message and
5380 /// Message+*Additions` files.
5381 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5382 _ = _uniqueStorage()
5383 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5384 while let fieldNumber = try decoder.nextFieldNumber() {
5385 switch fieldNumber {
5386 case 1: try decoder.decodeSingularStringField(value: &_storage._name)
5387 case 2: try decoder.decodeSingularStringField(value: &_storage._description_p)
5388 case 3: try decoder.decodeSingularMessageField(value: &_storage._externalDocs)
5389 case 4: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension)
5390 default: break
5391 }
5392 }
5393 }
5394 }
5395
5396 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5397 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5398 /// other serializer methods are defined in the SwiftProtobuf library. See the
5399 /// `Message` and `Message+*Additions` files.
5400 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5401 try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
5402 if !_storage._name.isEmpty {
5403 try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
5404 }
5405 if !_storage._description_p.isEmpty {
5406 try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 2)
5407 }
5408 if let v = _storage._externalDocs {
5409 try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
5410 }
5411 if !_storage._vendorExtension.isEmpty {
5412 try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 4)
5413 }
5414 }
5415 try unknownFields.traverse(visitor: &visitor)
5416 }
5417
5418 fileprivate var _storage = _StorageClass.defaultInstance
5419 }
5420
5421 public struct Openapi_V2_TypeItem: SwiftProtobuf.Message {
5422 public static let protoMessageName: String = _protobuf_package + ".TypeItem"
5423
5424 public var value: [String] = []
5425
5426 public var unknownFields = SwiftProtobuf.UnknownStorage()
5427
5428 public init() {}
5429
5430 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5431 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5432 /// initializers are defined in the SwiftProtobuf library. See the Message and
5433 /// Message+*Additions` files.
5434 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5435 while let fieldNumber = try decoder.nextFieldNumber() {
5436 switch fieldNumber {
5437 case 1: try decoder.decodeRepeatedStringField(value: &self.value)
5438 default: break
5439 }
5440 }
5441 }
5442
5443 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5444 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5445 /// other serializer methods are defined in the SwiftProtobuf library. See the
5446 /// `Message` and `Message+*Additions` files.
5447 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5448 if !self.value.isEmpty {
5449 try visitor.visitRepeatedStringField(value: self.value, fieldNumber: 1)
5450 }
5451 try unknownFields.traverse(visitor: &visitor)
5452 }
5453 }
5454
5455 /// Any property starting with x- is valid.
5456 public struct Openapi_V2_VendorExtension: SwiftProtobuf.Message {
5457 public static let protoMessageName: String = _protobuf_package + ".VendorExtension"
5458
5459 public var additionalProperties: [Openapi_V2_NamedAny] = []
5460
5461 public var unknownFields = SwiftProtobuf.UnknownStorage()
5462
5463 public init() {}
5464
5465 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5466 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5467 /// initializers are defined in the SwiftProtobuf library. See the Message and
5468 /// Message+*Additions` files.
5469 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5470 while let fieldNumber = try decoder.nextFieldNumber() {
5471 switch fieldNumber {
5472 case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
5473 default: break
5474 }
5475 }
5476 }
5477
5478 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5479 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5480 /// other serializer methods are defined in the SwiftProtobuf library. See the
5481 /// `Message` and `Message+*Additions` files.
5482 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5483 if !self.additionalProperties.isEmpty {
5484 try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
5485 }
5486 try unknownFields.traverse(visitor: &visitor)
5487 }
5488 }
5489
5490 public struct Openapi_V2_Xml: SwiftProtobuf.Message {
5491 public static let protoMessageName: String = _protobuf_package + ".Xml"
5492
5493 public var name: String = String()
5494
5495 public var namespace: String = String()
5496
5497 public var prefix: String = String()
5498
5499 public var attribute: Bool = false
5500
5501 public var wrapped: Bool = false
5502
5503 public var vendorExtension: [Openapi_V2_NamedAny] = []
5504
5505 public var unknownFields = SwiftProtobuf.UnknownStorage()
5506
5507 public init() {}
5508
5509 /// Used by the decoding initializers in the SwiftProtobuf library, not generally
5510 /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
5511 /// initializers are defined in the SwiftProtobuf library. See the Message and
5512 /// Message+*Additions` files.
5513 public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
5514 while let fieldNumber = try decoder.nextFieldNumber() {
5515 switch fieldNumber {
5516 case 1: try decoder.decodeSingularStringField(value: &self.name)
5517 case 2: try decoder.decodeSingularStringField(value: &self.namespace)
5518 case 3: try decoder.decodeSingularStringField(value: &self.prefix)
5519 case 4: try decoder.decodeSingularBoolField(value: &self.attribute)
5520 case 5: try decoder.decodeSingularBoolField(value: &self.wrapped)
5521 case 6: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension)
5522 default: break
5523 }
5524 }
5525 }
5526
5527 /// Used by the encoding methods of the SwiftProtobuf library, not generally
5528 /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
5529 /// other serializer methods are defined in the SwiftProtobuf library. See the
5530 /// `Message` and `Message+*Additions` files.
5531 public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
5532 if !self.name.isEmpty {
5533 try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
5534 }
5535 if !self.namespace.isEmpty {
5536 try visitor.visitSingularStringField(value: self.namespace, fieldNumber: 2)
5537 }
5538 if !self.prefix.isEmpty {
5539 try visitor.visitSingularStringField(value: self.prefix, fieldNumber: 3)
5540 }
5541 if self.attribute != false {
5542 try visitor.visitSingularBoolField(value: self.attribute, fieldNumber: 4)
5543 }
5544 if self.wrapped != false {
5545 try visitor.visitSingularBoolField(value: self.wrapped, fieldNumber: 5)
5546 }
5547 if !self.vendorExtension.isEmpty {
5548 try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 6)
5549 }
5550 try unknownFields.traverse(visitor: &visitor)
5551 }
5552 }
5553
5554 // MARK: - Code below here is support for the SwiftProtobuf runtime.
5555
5556 fileprivate let _protobuf_package = "openapi.v2"
5557
5558 extension Openapi_V2_AdditionalPropertiesItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5559 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5560 1: .same(proto: "schema"),
5561 2: .same(proto: "boolean"),
5562 ]
5563
5564 fileprivate class _StorageClass {
5565 var _oneof: Openapi_V2_AdditionalPropertiesItem.OneOf_Oneof?
5566
5567 static let defaultInstance = _StorageClass()
5568
5569 private init() {}
5570
5571 init(copying source: _StorageClass) {
5572 _oneof = source._oneof
5573 }
5574 }
5575
5576 fileprivate mutating func _uniqueStorage() -> _StorageClass {
5577 if !isKnownUniquelyReferenced(&_storage) {
5578 _storage = _StorageClass(copying: _storage)
5579 }
5580 return _storage
5581 }
5582
5583 public func _protobuf_generated_isEqualTo(other: Openapi_V2_AdditionalPropertiesItem) -> Bool {
5584 if _storage !== other._storage {
5585 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
5586 if _storage._oneof != other_storage._oneof {return false}
5587 return true
5588 }
5589 if !storagesAreEqual {return false}
5590 }
5591 if unknownFields != other.unknownFields {return false}
5592 return true
5593 }
5594 }
5595
5596 extension Openapi_V2_Any: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5597 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5598 1: .same(proto: "value"),
5599 2: .same(proto: "yaml"),
5600 ]
5601
5602 fileprivate class _StorageClass {
5603 var _value: SwiftProtobuf.Google_Protobuf_Any? = nil
5604 var _yaml: String = String()
5605
5606 static let defaultInstance = _StorageClass()
5607
5608 private init() {}
5609
5610 init(copying source: _StorageClass) {
5611 _value = source._value
5612 _yaml = source._yaml
5613 }
5614 }
5615
5616 fileprivate mutating func _uniqueStorage() -> _StorageClass {
5617 if !isKnownUniquelyReferenced(&_storage) {
5618 _storage = _StorageClass(copying: _storage)
5619 }
5620 return _storage
5621 }
5622
5623 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Any) -> Bool {
5624 if _storage !== other._storage {
5625 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
5626 if _storage._value != other_storage._value {return false}
5627 if _storage._yaml != other_storage._yaml {return false}
5628 return true
5629 }
5630 if !storagesAreEqual {return false}
5631 }
5632 if unknownFields != other.unknownFields {return false}
5633 return true
5634 }
5635 }
5636
5637 extension Openapi_V2_ApiKeySecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5638 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5639 1: .same(proto: "type"),
5640 2: .same(proto: "name"),
5641 3: .same(proto: "in"),
5642 4: .same(proto: "description"),
5643 5: .standard(proto: "vendor_extension"),
5644 ]
5645
5646 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ApiKeySecurity) -> Bool {
5647 if self.type != other.type {return false}
5648 if self.name != other.name {return false}
5649 if self.`in` != other.`in` {return false}
5650 if self.description_p != other.description_p {return false}
5651 if self.vendorExtension != other.vendorExtension {return false}
5652 if unknownFields != other.unknownFields {return false}
5653 return true
5654 }
5655 }
5656
5657 extension Openapi_V2_BasicAuthenticationSecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5658 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5659 1: .same(proto: "type"),
5660 2: .same(proto: "description"),
5661 3: .standard(proto: "vendor_extension"),
5662 ]
5663
5664 public func _protobuf_generated_isEqualTo(other: Openapi_V2_BasicAuthenticationSecurity) -> Bool {
5665 if self.type != other.type {return false}
5666 if self.description_p != other.description_p {return false}
5667 if self.vendorExtension != other.vendorExtension {return false}
5668 if unknownFields != other.unknownFields {return false}
5669 return true
5670 }
5671 }
5672
5673 extension Openapi_V2_BodyParameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5674 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5675 1: .same(proto: "description"),
5676 2: .same(proto: "name"),
5677 3: .same(proto: "in"),
5678 4: .same(proto: "required"),
5679 5: .same(proto: "schema"),
5680 6: .standard(proto: "vendor_extension"),
5681 ]
5682
5683 fileprivate class _StorageClass {
5684 var _description_p: String = String()
5685 var _name: String = String()
5686 var _in: String = String()
5687 var _required: Bool = false
5688 var _schema: Openapi_V2_Schema? = nil
5689 var _vendorExtension: [Openapi_V2_NamedAny] = []
5690
5691 static let defaultInstance = _StorageClass()
5692
5693 private init() {}
5694
5695 init(copying source: _StorageClass) {
5696 _description_p = source._description_p
5697 _name = source._name
5698 _in = source._in
5699 _required = source._required
5700 _schema = source._schema
5701 _vendorExtension = source._vendorExtension
5702 }
5703 }
5704
5705 fileprivate mutating func _uniqueStorage() -> _StorageClass {
5706 if !isKnownUniquelyReferenced(&_storage) {
5707 _storage = _StorageClass(copying: _storage)
5708 }
5709 return _storage
5710 }
5711
5712 public func _protobuf_generated_isEqualTo(other: Openapi_V2_BodyParameter) -> Bool {
5713 if _storage !== other._storage {
5714 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
5715 if _storage._description_p != other_storage._description_p {return false}
5716 if _storage._name != other_storage._name {return false}
5717 if _storage._in != other_storage._in {return false}
5718 if _storage._required != other_storage._required {return false}
5719 if _storage._schema != other_storage._schema {return false}
5720 if _storage._vendorExtension != other_storage._vendorExtension {return false}
5721 return true
5722 }
5723 if !storagesAreEqual {return false}
5724 }
5725 if unknownFields != other.unknownFields {return false}
5726 return true
5727 }
5728 }
5729
5730 extension Openapi_V2_Contact: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5731 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5732 1: .same(proto: "name"),
5733 2: .same(proto: "url"),
5734 3: .same(proto: "email"),
5735 4: .standard(proto: "vendor_extension"),
5736 ]
5737
5738 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Contact) -> Bool {
5739 if self.name != other.name {return false}
5740 if self.url != other.url {return false}
5741 if self.email != other.email {return false}
5742 if self.vendorExtension != other.vendorExtension {return false}
5743 if unknownFields != other.unknownFields {return false}
5744 return true
5745 }
5746 }
5747
5748 extension Openapi_V2_Default: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5749 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5750 1: .standard(proto: "additional_properties"),
5751 ]
5752
5753 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Default) -> Bool {
5754 if self.additionalProperties != other.additionalProperties {return false}
5755 if unknownFields != other.unknownFields {return false}
5756 return true
5757 }
5758 }
5759
5760 extension Openapi_V2_Definitions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5761 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5762 1: .standard(proto: "additional_properties"),
5763 ]
5764
5765 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Definitions) -> Bool {
5766 if self.additionalProperties != other.additionalProperties {return false}
5767 if unknownFields != other.unknownFields {return false}
5768 return true
5769 }
5770 }
5771
5772 extension Openapi_V2_Document: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5773 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5774 1: .same(proto: "swagger"),
5775 2: .same(proto: "info"),
5776 3: .same(proto: "host"),
5777 4: .standard(proto: "base_path"),
5778 5: .same(proto: "schemes"),
5779 6: .same(proto: "consumes"),
5780 7: .same(proto: "produces"),
5781 8: .same(proto: "paths"),
5782 9: .same(proto: "definitions"),
5783 10: .same(proto: "parameters"),
5784 11: .same(proto: "responses"),
5785 12: .same(proto: "security"),
5786 13: .standard(proto: "security_definitions"),
5787 14: .same(proto: "tags"),
5788 15: .standard(proto: "external_docs"),
5789 16: .standard(proto: "vendor_extension"),
5790 ]
5791
5792 fileprivate class _StorageClass {
5793 var _swagger: String = String()
5794 var _info: Openapi_V2_Info? = nil
5795 var _host: String = String()
5796 var _basePath: String = String()
5797 var _schemes: [String] = []
5798 var _consumes: [String] = []
5799 var _produces: [String] = []
5800 var _paths: Openapi_V2_Paths? = nil
5801 var _definitions: Openapi_V2_Definitions? = nil
5802 var _parameters: Openapi_V2_ParameterDefinitions? = nil
5803 var _responses: Openapi_V2_ResponseDefinitions? = nil
5804 var _security: [Openapi_V2_SecurityRequirement] = []
5805 var _securityDefinitions: Openapi_V2_SecurityDefinitions? = nil
5806 var _tags: [Openapi_V2_Tag] = []
5807 var _externalDocs: Openapi_V2_ExternalDocs? = nil
5808 var _vendorExtension: [Openapi_V2_NamedAny] = []
5809
5810 static let defaultInstance = _StorageClass()
5811
5812 private init() {}
5813
5814 init(copying source: _StorageClass) {
5815 _swagger = source._swagger
5816 _info = source._info
5817 _host = source._host
5818 _basePath = source._basePath
5819 _schemes = source._schemes
5820 _consumes = source._consumes
5821 _produces = source._produces
5822 _paths = source._paths
5823 _definitions = source._definitions
5824 _parameters = source._parameters
5825 _responses = source._responses
5826 _security = source._security
5827 _securityDefinitions = source._securityDefinitions
5828 _tags = source._tags
5829 _externalDocs = source._externalDocs
5830 _vendorExtension = source._vendorExtension
5831 }
5832 }
5833
5834 fileprivate mutating func _uniqueStorage() -> _StorageClass {
5835 if !isKnownUniquelyReferenced(&_storage) {
5836 _storage = _StorageClass(copying: _storage)
5837 }
5838 return _storage
5839 }
5840
5841 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Document) -> Bool {
5842 if _storage !== other._storage {
5843 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
5844 if _storage._swagger != other_storage._swagger {return false}
5845 if _storage._info != other_storage._info {return false}
5846 if _storage._host != other_storage._host {return false}
5847 if _storage._basePath != other_storage._basePath {return false}
5848 if _storage._schemes != other_storage._schemes {return false}
5849 if _storage._consumes != other_storage._consumes {return false}
5850 if _storage._produces != other_storage._produces {return false}
5851 if _storage._paths != other_storage._paths {return false}
5852 if _storage._definitions != other_storage._definitions {return false}
5853 if _storage._parameters != other_storage._parameters {return false}
5854 if _storage._responses != other_storage._responses {return false}
5855 if _storage._security != other_storage._security {return false}
5856 if _storage._securityDefinitions != other_storage._securityDefinitions {return false}
5857 if _storage._tags != other_storage._tags {return false}
5858 if _storage._externalDocs != other_storage._externalDocs {return false}
5859 if _storage._vendorExtension != other_storage._vendorExtension {return false}
5860 return true
5861 }
5862 if !storagesAreEqual {return false}
5863 }
5864 if unknownFields != other.unknownFields {return false}
5865 return true
5866 }
5867 }
5868
5869 extension Openapi_V2_Examples: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5870 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5871 1: .standard(proto: "additional_properties"),
5872 ]
5873
5874 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Examples) -> Bool {
5875 if self.additionalProperties != other.additionalProperties {return false}
5876 if unknownFields != other.unknownFields {return false}
5877 return true
5878 }
5879 }
5880
5881 extension Openapi_V2_ExternalDocs: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5882 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5883 1: .same(proto: "description"),
5884 2: .same(proto: "url"),
5885 3: .standard(proto: "vendor_extension"),
5886 ]
5887
5888 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ExternalDocs) -> Bool {
5889 if self.description_p != other.description_p {return false}
5890 if self.url != other.url {return false}
5891 if self.vendorExtension != other.vendorExtension {return false}
5892 if unknownFields != other.unknownFields {return false}
5893 return true
5894 }
5895 }
5896
5897 extension Openapi_V2_FileSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5898 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5899 1: .same(proto: "format"),
5900 2: .same(proto: "title"),
5901 3: .same(proto: "description"),
5902 4: .same(proto: "default"),
5903 5: .same(proto: "required"),
5904 6: .same(proto: "type"),
5905 7: .standard(proto: "read_only"),
5906 8: .standard(proto: "external_docs"),
5907 9: .same(proto: "example"),
5908 10: .standard(proto: "vendor_extension"),
5909 ]
5910
5911 fileprivate class _StorageClass {
5912 var _format: String = String()
5913 var _title: String = String()
5914 var _description_p: String = String()
5915 var _default: Openapi_V2_Any? = nil
5916 var _required: [String] = []
5917 var _type: String = String()
5918 var _readOnly: Bool = false
5919 var _externalDocs: Openapi_V2_ExternalDocs? = nil
5920 var _example: Openapi_V2_Any? = nil
5921 var _vendorExtension: [Openapi_V2_NamedAny] = []
5922
5923 static let defaultInstance = _StorageClass()
5924
5925 private init() {}
5926
5927 init(copying source: _StorageClass) {
5928 _format = source._format
5929 _title = source._title
5930 _description_p = source._description_p
5931 _default = source._default
5932 _required = source._required
5933 _type = source._type
5934 _readOnly = source._readOnly
5935 _externalDocs = source._externalDocs
5936 _example = source._example
5937 _vendorExtension = source._vendorExtension
5938 }
5939 }
5940
5941 fileprivate mutating func _uniqueStorage() -> _StorageClass {
5942 if !isKnownUniquelyReferenced(&_storage) {
5943 _storage = _StorageClass(copying: _storage)
5944 }
5945 return _storage
5946 }
5947
5948 public func _protobuf_generated_isEqualTo(other: Openapi_V2_FileSchema) -> Bool {
5949 if _storage !== other._storage {
5950 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
5951 if _storage._format != other_storage._format {return false}
5952 if _storage._title != other_storage._title {return false}
5953 if _storage._description_p != other_storage._description_p {return false}
5954 if _storage._default != other_storage._default {return false}
5955 if _storage._required != other_storage._required {return false}
5956 if _storage._type != other_storage._type {return false}
5957 if _storage._readOnly != other_storage._readOnly {return false}
5958 if _storage._externalDocs != other_storage._externalDocs {return false}
5959 if _storage._example != other_storage._example {return false}
5960 if _storage._vendorExtension != other_storage._vendorExtension {return false}
5961 return true
5962 }
5963 if !storagesAreEqual {return false}
5964 }
5965 if unknownFields != other.unknownFields {return false}
5966 return true
5967 }
5968 }
5969
5970 extension Openapi_V2_FormDataParameterSubSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
5971 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
5972 1: .same(proto: "required"),
5973 2: .same(proto: "in"),
5974 3: .same(proto: "description"),
5975 4: .same(proto: "name"),
5976 5: .standard(proto: "allow_empty_value"),
5977 6: .same(proto: "type"),
5978 7: .same(proto: "format"),
5979 8: .same(proto: "items"),
5980 9: .standard(proto: "collection_format"),
5981 10: .same(proto: "default"),
5982 11: .same(proto: "maximum"),
5983 12: .standard(proto: "exclusive_maximum"),
5984 13: .same(proto: "minimum"),
5985 14: .standard(proto: "exclusive_minimum"),
5986 15: .standard(proto: "max_length"),
5987 16: .standard(proto: "min_length"),
5988 17: .same(proto: "pattern"),
5989 18: .standard(proto: "max_items"),
5990 19: .standard(proto: "min_items"),
5991 20: .standard(proto: "unique_items"),
5992 21: .same(proto: "enum"),
5993 22: .standard(proto: "multiple_of"),
5994 23: .standard(proto: "vendor_extension"),
5995 ]
5996
5997 fileprivate class _StorageClass {
5998 var _required: Bool = false
5999 var _in: String = String()
6000 var _description_p: String = String()
6001 var _name: String = String()
6002 var _allowEmptyValue: Bool = false
6003 var _type: String = String()
6004 var _format: String = String()
6005 var _items: Openapi_V2_PrimitivesItems? = nil
6006 var _collectionFormat: String = String()
6007 var _default: Openapi_V2_Any? = nil
6008 var _maximum: Double = 0
6009 var _exclusiveMaximum: Bool = false
6010 var _minimum: Double = 0
6011 var _exclusiveMinimum: Bool = false
6012 var _maxLength: Int64 = 0
6013 var _minLength: Int64 = 0
6014 var _pattern: String = String()
6015 var _maxItems: Int64 = 0
6016 var _minItems: Int64 = 0
6017 var _uniqueItems: Bool = false
6018 var _enum: [Openapi_V2_Any] = []
6019 var _multipleOf: Double = 0
6020 var _vendorExtension: [Openapi_V2_NamedAny] = []
6021
6022 static let defaultInstance = _StorageClass()
6023
6024 private init() {}
6025
6026 init(copying source: _StorageClass) {
6027 _required = source._required
6028 _in = source._in
6029 _description_p = source._description_p
6030 _name = source._name
6031 _allowEmptyValue = source._allowEmptyValue
6032 _type = source._type
6033 _format = source._format
6034 _items = source._items
6035 _collectionFormat = source._collectionFormat
6036 _default = source._default
6037 _maximum = source._maximum
6038 _exclusiveMaximum = source._exclusiveMaximum
6039 _minimum = source._minimum
6040 _exclusiveMinimum = source._exclusiveMinimum
6041 _maxLength = source._maxLength
6042 _minLength = source._minLength
6043 _pattern = source._pattern
6044 _maxItems = source._maxItems
6045 _minItems = source._minItems
6046 _uniqueItems = source._uniqueItems
6047 _enum = source._enum
6048 _multipleOf = source._multipleOf
6049 _vendorExtension = source._vendorExtension
6050 }
6051 }
6052
6053 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6054 if !isKnownUniquelyReferenced(&_storage) {
6055 _storage = _StorageClass(copying: _storage)
6056 }
6057 return _storage
6058 }
6059
6060 public func _protobuf_generated_isEqualTo(other: Openapi_V2_FormDataParameterSubSchema) -> Bool {
6061 if _storage !== other._storage {
6062 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6063 if _storage._required != other_storage._required {return false}
6064 if _storage._in != other_storage._in {return false}
6065 if _storage._description_p != other_storage._description_p {return false}
6066 if _storage._name != other_storage._name {return false}
6067 if _storage._allowEmptyValue != other_storage._allowEmptyValue {return false}
6068 if _storage._type != other_storage._type {return false}
6069 if _storage._format != other_storage._format {return false}
6070 if _storage._items != other_storage._items {return false}
6071 if _storage._collectionFormat != other_storage._collectionFormat {return false}
6072 if _storage._default != other_storage._default {return false}
6073 if _storage._maximum != other_storage._maximum {return false}
6074 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
6075 if _storage._minimum != other_storage._minimum {return false}
6076 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
6077 if _storage._maxLength != other_storage._maxLength {return false}
6078 if _storage._minLength != other_storage._minLength {return false}
6079 if _storage._pattern != other_storage._pattern {return false}
6080 if _storage._maxItems != other_storage._maxItems {return false}
6081 if _storage._minItems != other_storage._minItems {return false}
6082 if _storage._uniqueItems != other_storage._uniqueItems {return false}
6083 if _storage._enum != other_storage._enum {return false}
6084 if _storage._multipleOf != other_storage._multipleOf {return false}
6085 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6086 return true
6087 }
6088 if !storagesAreEqual {return false}
6089 }
6090 if unknownFields != other.unknownFields {return false}
6091 return true
6092 }
6093 }
6094
6095 extension Openapi_V2_Header: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6096 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6097 1: .same(proto: "type"),
6098 2: .same(proto: "format"),
6099 3: .same(proto: "items"),
6100 4: .standard(proto: "collection_format"),
6101 5: .same(proto: "default"),
6102 6: .same(proto: "maximum"),
6103 7: .standard(proto: "exclusive_maximum"),
6104 8: .same(proto: "minimum"),
6105 9: .standard(proto: "exclusive_minimum"),
6106 10: .standard(proto: "max_length"),
6107 11: .standard(proto: "min_length"),
6108 12: .same(proto: "pattern"),
6109 13: .standard(proto: "max_items"),
6110 14: .standard(proto: "min_items"),
6111 15: .standard(proto: "unique_items"),
6112 16: .same(proto: "enum"),
6113 17: .standard(proto: "multiple_of"),
6114 18: .same(proto: "description"),
6115 19: .standard(proto: "vendor_extension"),
6116 ]
6117
6118 fileprivate class _StorageClass {
6119 var _type: String = String()
6120 var _format: String = String()
6121 var _items: Openapi_V2_PrimitivesItems? = nil
6122 var _collectionFormat: String = String()
6123 var _default: Openapi_V2_Any? = nil
6124 var _maximum: Double = 0
6125 var _exclusiveMaximum: Bool = false
6126 var _minimum: Double = 0
6127 var _exclusiveMinimum: Bool = false
6128 var _maxLength: Int64 = 0
6129 var _minLength: Int64 = 0
6130 var _pattern: String = String()
6131 var _maxItems: Int64 = 0
6132 var _minItems: Int64 = 0
6133 var _uniqueItems: Bool = false
6134 var _enum: [Openapi_V2_Any] = []
6135 var _multipleOf: Double = 0
6136 var _description_p: String = String()
6137 var _vendorExtension: [Openapi_V2_NamedAny] = []
6138
6139 static let defaultInstance = _StorageClass()
6140
6141 private init() {}
6142
6143 init(copying source: _StorageClass) {
6144 _type = source._type
6145 _format = source._format
6146 _items = source._items
6147 _collectionFormat = source._collectionFormat
6148 _default = source._default
6149 _maximum = source._maximum
6150 _exclusiveMaximum = source._exclusiveMaximum
6151 _minimum = source._minimum
6152 _exclusiveMinimum = source._exclusiveMinimum
6153 _maxLength = source._maxLength
6154 _minLength = source._minLength
6155 _pattern = source._pattern
6156 _maxItems = source._maxItems
6157 _minItems = source._minItems
6158 _uniqueItems = source._uniqueItems
6159 _enum = source._enum
6160 _multipleOf = source._multipleOf
6161 _description_p = source._description_p
6162 _vendorExtension = source._vendorExtension
6163 }
6164 }
6165
6166 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6167 if !isKnownUniquelyReferenced(&_storage) {
6168 _storage = _StorageClass(copying: _storage)
6169 }
6170 return _storage
6171 }
6172
6173 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Header) -> Bool {
6174 if _storage !== other._storage {
6175 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6176 if _storage._type != other_storage._type {return false}
6177 if _storage._format != other_storage._format {return false}
6178 if _storage._items != other_storage._items {return false}
6179 if _storage._collectionFormat != other_storage._collectionFormat {return false}
6180 if _storage._default != other_storage._default {return false}
6181 if _storage._maximum != other_storage._maximum {return false}
6182 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
6183 if _storage._minimum != other_storage._minimum {return false}
6184 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
6185 if _storage._maxLength != other_storage._maxLength {return false}
6186 if _storage._minLength != other_storage._minLength {return false}
6187 if _storage._pattern != other_storage._pattern {return false}
6188 if _storage._maxItems != other_storage._maxItems {return false}
6189 if _storage._minItems != other_storage._minItems {return false}
6190 if _storage._uniqueItems != other_storage._uniqueItems {return false}
6191 if _storage._enum != other_storage._enum {return false}
6192 if _storage._multipleOf != other_storage._multipleOf {return false}
6193 if _storage._description_p != other_storage._description_p {return false}
6194 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6195 return true
6196 }
6197 if !storagesAreEqual {return false}
6198 }
6199 if unknownFields != other.unknownFields {return false}
6200 return true
6201 }
6202 }
6203
6204 extension Openapi_V2_HeaderParameterSubSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6205 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6206 1: .same(proto: "required"),
6207 2: .same(proto: "in"),
6208 3: .same(proto: "description"),
6209 4: .same(proto: "name"),
6210 5: .same(proto: "type"),
6211 6: .same(proto: "format"),
6212 7: .same(proto: "items"),
6213 8: .standard(proto: "collection_format"),
6214 9: .same(proto: "default"),
6215 10: .same(proto: "maximum"),
6216 11: .standard(proto: "exclusive_maximum"),
6217 12: .same(proto: "minimum"),
6218 13: .standard(proto: "exclusive_minimum"),
6219 14: .standard(proto: "max_length"),
6220 15: .standard(proto: "min_length"),
6221 16: .same(proto: "pattern"),
6222 17: .standard(proto: "max_items"),
6223 18: .standard(proto: "min_items"),
6224 19: .standard(proto: "unique_items"),
6225 20: .same(proto: "enum"),
6226 21: .standard(proto: "multiple_of"),
6227 22: .standard(proto: "vendor_extension"),
6228 ]
6229
6230 fileprivate class _StorageClass {
6231 var _required: Bool = false
6232 var _in: String = String()
6233 var _description_p: String = String()
6234 var _name: String = String()
6235 var _type: String = String()
6236 var _format: String = String()
6237 var _items: Openapi_V2_PrimitivesItems? = nil
6238 var _collectionFormat: String = String()
6239 var _default: Openapi_V2_Any? = nil
6240 var _maximum: Double = 0
6241 var _exclusiveMaximum: Bool = false
6242 var _minimum: Double = 0
6243 var _exclusiveMinimum: Bool = false
6244 var _maxLength: Int64 = 0
6245 var _minLength: Int64 = 0
6246 var _pattern: String = String()
6247 var _maxItems: Int64 = 0
6248 var _minItems: Int64 = 0
6249 var _uniqueItems: Bool = false
6250 var _enum: [Openapi_V2_Any] = []
6251 var _multipleOf: Double = 0
6252 var _vendorExtension: [Openapi_V2_NamedAny] = []
6253
6254 static let defaultInstance = _StorageClass()
6255
6256 private init() {}
6257
6258 init(copying source: _StorageClass) {
6259 _required = source._required
6260 _in = source._in
6261 _description_p = source._description_p
6262 _name = source._name
6263 _type = source._type
6264 _format = source._format
6265 _items = source._items
6266 _collectionFormat = source._collectionFormat
6267 _default = source._default
6268 _maximum = source._maximum
6269 _exclusiveMaximum = source._exclusiveMaximum
6270 _minimum = source._minimum
6271 _exclusiveMinimum = source._exclusiveMinimum
6272 _maxLength = source._maxLength
6273 _minLength = source._minLength
6274 _pattern = source._pattern
6275 _maxItems = source._maxItems
6276 _minItems = source._minItems
6277 _uniqueItems = source._uniqueItems
6278 _enum = source._enum
6279 _multipleOf = source._multipleOf
6280 _vendorExtension = source._vendorExtension
6281 }
6282 }
6283
6284 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6285 if !isKnownUniquelyReferenced(&_storage) {
6286 _storage = _StorageClass(copying: _storage)
6287 }
6288 return _storage
6289 }
6290
6291 public func _protobuf_generated_isEqualTo(other: Openapi_V2_HeaderParameterSubSchema) -> Bool {
6292 if _storage !== other._storage {
6293 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6294 if _storage._required != other_storage._required {return false}
6295 if _storage._in != other_storage._in {return false}
6296 if _storage._description_p != other_storage._description_p {return false}
6297 if _storage._name != other_storage._name {return false}
6298 if _storage._type != other_storage._type {return false}
6299 if _storage._format != other_storage._format {return false}
6300 if _storage._items != other_storage._items {return false}
6301 if _storage._collectionFormat != other_storage._collectionFormat {return false}
6302 if _storage._default != other_storage._default {return false}
6303 if _storage._maximum != other_storage._maximum {return false}
6304 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
6305 if _storage._minimum != other_storage._minimum {return false}
6306 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
6307 if _storage._maxLength != other_storage._maxLength {return false}
6308 if _storage._minLength != other_storage._minLength {return false}
6309 if _storage._pattern != other_storage._pattern {return false}
6310 if _storage._maxItems != other_storage._maxItems {return false}
6311 if _storage._minItems != other_storage._minItems {return false}
6312 if _storage._uniqueItems != other_storage._uniqueItems {return false}
6313 if _storage._enum != other_storage._enum {return false}
6314 if _storage._multipleOf != other_storage._multipleOf {return false}
6315 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6316 return true
6317 }
6318 if !storagesAreEqual {return false}
6319 }
6320 if unknownFields != other.unknownFields {return false}
6321 return true
6322 }
6323 }
6324
6325 extension Openapi_V2_Headers: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6326 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6327 1: .standard(proto: "additional_properties"),
6328 ]
6329
6330 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Headers) -> Bool {
6331 if self.additionalProperties != other.additionalProperties {return false}
6332 if unknownFields != other.unknownFields {return false}
6333 return true
6334 }
6335 }
6336
6337 extension Openapi_V2_Info: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6338 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6339 1: .same(proto: "title"),
6340 2: .same(proto: "version"),
6341 3: .same(proto: "description"),
6342 4: .standard(proto: "terms_of_service"),
6343 5: .same(proto: "contact"),
6344 6: .same(proto: "license"),
6345 7: .standard(proto: "vendor_extension"),
6346 ]
6347
6348 fileprivate class _StorageClass {
6349 var _title: String = String()
6350 var _version: String = String()
6351 var _description_p: String = String()
6352 var _termsOfService: String = String()
6353 var _contact: Openapi_V2_Contact? = nil
6354 var _license: Openapi_V2_License? = nil
6355 var _vendorExtension: [Openapi_V2_NamedAny] = []
6356
6357 static let defaultInstance = _StorageClass()
6358
6359 private init() {}
6360
6361 init(copying source: _StorageClass) {
6362 _title = source._title
6363 _version = source._version
6364 _description_p = source._description_p
6365 _termsOfService = source._termsOfService
6366 _contact = source._contact
6367 _license = source._license
6368 _vendorExtension = source._vendorExtension
6369 }
6370 }
6371
6372 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6373 if !isKnownUniquelyReferenced(&_storage) {
6374 _storage = _StorageClass(copying: _storage)
6375 }
6376 return _storage
6377 }
6378
6379 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Info) -> Bool {
6380 if _storage !== other._storage {
6381 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6382 if _storage._title != other_storage._title {return false}
6383 if _storage._version != other_storage._version {return false}
6384 if _storage._description_p != other_storage._description_p {return false}
6385 if _storage._termsOfService != other_storage._termsOfService {return false}
6386 if _storage._contact != other_storage._contact {return false}
6387 if _storage._license != other_storage._license {return false}
6388 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6389 return true
6390 }
6391 if !storagesAreEqual {return false}
6392 }
6393 if unknownFields != other.unknownFields {return false}
6394 return true
6395 }
6396 }
6397
6398 extension Openapi_V2_ItemsItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6399 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6400 1: .same(proto: "schema"),
6401 ]
6402
6403 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ItemsItem) -> Bool {
6404 if self.schema != other.schema {return false}
6405 if unknownFields != other.unknownFields {return false}
6406 return true
6407 }
6408 }
6409
6410 extension Openapi_V2_JsonReference: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6411 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6412 1: .standard(proto: "_ref"),
6413 2: .same(proto: "description"),
6414 ]
6415
6416 public func _protobuf_generated_isEqualTo(other: Openapi_V2_JsonReference) -> Bool {
6417 if self.ref != other.ref {return false}
6418 if self.description_p != other.description_p {return false}
6419 if unknownFields != other.unknownFields {return false}
6420 return true
6421 }
6422 }
6423
6424 extension Openapi_V2_License: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6425 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6426 1: .same(proto: "name"),
6427 2: .same(proto: "url"),
6428 3: .standard(proto: "vendor_extension"),
6429 ]
6430
6431 public func _protobuf_generated_isEqualTo(other: Openapi_V2_License) -> Bool {
6432 if self.name != other.name {return false}
6433 if self.url != other.url {return false}
6434 if self.vendorExtension != other.vendorExtension {return false}
6435 if unknownFields != other.unknownFields {return false}
6436 return true
6437 }
6438 }
6439
6440 extension Openapi_V2_NamedAny: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6441 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6442 1: .same(proto: "name"),
6443 2: .same(proto: "value"),
6444 ]
6445
6446 fileprivate class _StorageClass {
6447 var _name: String = String()
6448 var _value: Openapi_V2_Any? = nil
6449
6450 static let defaultInstance = _StorageClass()
6451
6452 private init() {}
6453
6454 init(copying source: _StorageClass) {
6455 _name = source._name
6456 _value = source._value
6457 }
6458 }
6459
6460 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6461 if !isKnownUniquelyReferenced(&_storage) {
6462 _storage = _StorageClass(copying: _storage)
6463 }
6464 return _storage
6465 }
6466
6467 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedAny) -> Bool {
6468 if _storage !== other._storage {
6469 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6470 if _storage._name != other_storage._name {return false}
6471 if _storage._value != other_storage._value {return false}
6472 return true
6473 }
6474 if !storagesAreEqual {return false}
6475 }
6476 if unknownFields != other.unknownFields {return false}
6477 return true
6478 }
6479 }
6480
6481 extension Openapi_V2_NamedHeader: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6482 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6483 1: .same(proto: "name"),
6484 2: .same(proto: "value"),
6485 ]
6486
6487 fileprivate class _StorageClass {
6488 var _name: String = String()
6489 var _value: Openapi_V2_Header? = nil
6490
6491 static let defaultInstance = _StorageClass()
6492
6493 private init() {}
6494
6495 init(copying source: _StorageClass) {
6496 _name = source._name
6497 _value = source._value
6498 }
6499 }
6500
6501 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6502 if !isKnownUniquelyReferenced(&_storage) {
6503 _storage = _StorageClass(copying: _storage)
6504 }
6505 return _storage
6506 }
6507
6508 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedHeader) -> Bool {
6509 if _storage !== other._storage {
6510 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6511 if _storage._name != other_storage._name {return false}
6512 if _storage._value != other_storage._value {return false}
6513 return true
6514 }
6515 if !storagesAreEqual {return false}
6516 }
6517 if unknownFields != other.unknownFields {return false}
6518 return true
6519 }
6520 }
6521
6522 extension Openapi_V2_NamedParameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6523 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6524 1: .same(proto: "name"),
6525 2: .same(proto: "value"),
6526 ]
6527
6528 fileprivate class _StorageClass {
6529 var _name: String = String()
6530 var _value: Openapi_V2_Parameter? = nil
6531
6532 static let defaultInstance = _StorageClass()
6533
6534 private init() {}
6535
6536 init(copying source: _StorageClass) {
6537 _name = source._name
6538 _value = source._value
6539 }
6540 }
6541
6542 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6543 if !isKnownUniquelyReferenced(&_storage) {
6544 _storage = _StorageClass(copying: _storage)
6545 }
6546 return _storage
6547 }
6548
6549 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedParameter) -> Bool {
6550 if _storage !== other._storage {
6551 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6552 if _storage._name != other_storage._name {return false}
6553 if _storage._value != other_storage._value {return false}
6554 return true
6555 }
6556 if !storagesAreEqual {return false}
6557 }
6558 if unknownFields != other.unknownFields {return false}
6559 return true
6560 }
6561 }
6562
6563 extension Openapi_V2_NamedPathItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6564 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6565 1: .same(proto: "name"),
6566 2: .same(proto: "value"),
6567 ]
6568
6569 fileprivate class _StorageClass {
6570 var _name: String = String()
6571 var _value: Openapi_V2_PathItem? = nil
6572
6573 static let defaultInstance = _StorageClass()
6574
6575 private init() {}
6576
6577 init(copying source: _StorageClass) {
6578 _name = source._name
6579 _value = source._value
6580 }
6581 }
6582
6583 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6584 if !isKnownUniquelyReferenced(&_storage) {
6585 _storage = _StorageClass(copying: _storage)
6586 }
6587 return _storage
6588 }
6589
6590 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedPathItem) -> Bool {
6591 if _storage !== other._storage {
6592 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6593 if _storage._name != other_storage._name {return false}
6594 if _storage._value != other_storage._value {return false}
6595 return true
6596 }
6597 if !storagesAreEqual {return false}
6598 }
6599 if unknownFields != other.unknownFields {return false}
6600 return true
6601 }
6602 }
6603
6604 extension Openapi_V2_NamedResponse: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6605 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6606 1: .same(proto: "name"),
6607 2: .same(proto: "value"),
6608 ]
6609
6610 fileprivate class _StorageClass {
6611 var _name: String = String()
6612 var _value: Openapi_V2_Response? = nil
6613
6614 static let defaultInstance = _StorageClass()
6615
6616 private init() {}
6617
6618 init(copying source: _StorageClass) {
6619 _name = source._name
6620 _value = source._value
6621 }
6622 }
6623
6624 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6625 if !isKnownUniquelyReferenced(&_storage) {
6626 _storage = _StorageClass(copying: _storage)
6627 }
6628 return _storage
6629 }
6630
6631 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedResponse) -> Bool {
6632 if _storage !== other._storage {
6633 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6634 if _storage._name != other_storage._name {return false}
6635 if _storage._value != other_storage._value {return false}
6636 return true
6637 }
6638 if !storagesAreEqual {return false}
6639 }
6640 if unknownFields != other.unknownFields {return false}
6641 return true
6642 }
6643 }
6644
6645 extension Openapi_V2_NamedResponseValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6646 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6647 1: .same(proto: "name"),
6648 2: .same(proto: "value"),
6649 ]
6650
6651 fileprivate class _StorageClass {
6652 var _name: String = String()
6653 var _value: Openapi_V2_ResponseValue? = nil
6654
6655 static let defaultInstance = _StorageClass()
6656
6657 private init() {}
6658
6659 init(copying source: _StorageClass) {
6660 _name = source._name
6661 _value = source._value
6662 }
6663 }
6664
6665 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6666 if !isKnownUniquelyReferenced(&_storage) {
6667 _storage = _StorageClass(copying: _storage)
6668 }
6669 return _storage
6670 }
6671
6672 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedResponseValue) -> Bool {
6673 if _storage !== other._storage {
6674 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6675 if _storage._name != other_storage._name {return false}
6676 if _storage._value != other_storage._value {return false}
6677 return true
6678 }
6679 if !storagesAreEqual {return false}
6680 }
6681 if unknownFields != other.unknownFields {return false}
6682 return true
6683 }
6684 }
6685
6686 extension Openapi_V2_NamedSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6687 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6688 1: .same(proto: "name"),
6689 2: .same(proto: "value"),
6690 ]
6691
6692 fileprivate class _StorageClass {
6693 var _name: String = String()
6694 var _value: Openapi_V2_Schema? = nil
6695
6696 static let defaultInstance = _StorageClass()
6697
6698 private init() {}
6699
6700 init(copying source: _StorageClass) {
6701 _name = source._name
6702 _value = source._value
6703 }
6704 }
6705
6706 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6707 if !isKnownUniquelyReferenced(&_storage) {
6708 _storage = _StorageClass(copying: _storage)
6709 }
6710 return _storage
6711 }
6712
6713 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedSchema) -> Bool {
6714 if _storage !== other._storage {
6715 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6716 if _storage._name != other_storage._name {return false}
6717 if _storage._value != other_storage._value {return false}
6718 return true
6719 }
6720 if !storagesAreEqual {return false}
6721 }
6722 if unknownFields != other.unknownFields {return false}
6723 return true
6724 }
6725 }
6726
6727 extension Openapi_V2_NamedSecurityDefinitionsItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6728 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6729 1: .same(proto: "name"),
6730 2: .same(proto: "value"),
6731 ]
6732
6733 fileprivate class _StorageClass {
6734 var _name: String = String()
6735 var _value: Openapi_V2_SecurityDefinitionsItem? = nil
6736
6737 static let defaultInstance = _StorageClass()
6738
6739 private init() {}
6740
6741 init(copying source: _StorageClass) {
6742 _name = source._name
6743 _value = source._value
6744 }
6745 }
6746
6747 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6748 if !isKnownUniquelyReferenced(&_storage) {
6749 _storage = _StorageClass(copying: _storage)
6750 }
6751 return _storage
6752 }
6753
6754 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedSecurityDefinitionsItem) -> Bool {
6755 if _storage !== other._storage {
6756 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6757 if _storage._name != other_storage._name {return false}
6758 if _storage._value != other_storage._value {return false}
6759 return true
6760 }
6761 if !storagesAreEqual {return false}
6762 }
6763 if unknownFields != other.unknownFields {return false}
6764 return true
6765 }
6766 }
6767
6768 extension Openapi_V2_NamedString: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6769 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6770 1: .same(proto: "name"),
6771 2: .same(proto: "value"),
6772 ]
6773
6774 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedString) -> Bool {
6775 if self.name != other.name {return false}
6776 if self.value != other.value {return false}
6777 if unknownFields != other.unknownFields {return false}
6778 return true
6779 }
6780 }
6781
6782 extension Openapi_V2_NamedStringArray: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6783 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6784 1: .same(proto: "name"),
6785 2: .same(proto: "value"),
6786 ]
6787
6788 fileprivate class _StorageClass {
6789 var _name: String = String()
6790 var _value: Openapi_V2_StringArray? = nil
6791
6792 static let defaultInstance = _StorageClass()
6793
6794 private init() {}
6795
6796 init(copying source: _StorageClass) {
6797 _name = source._name
6798 _value = source._value
6799 }
6800 }
6801
6802 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6803 if !isKnownUniquelyReferenced(&_storage) {
6804 _storage = _StorageClass(copying: _storage)
6805 }
6806 return _storage
6807 }
6808
6809 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NamedStringArray) -> Bool {
6810 if _storage !== other._storage {
6811 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6812 if _storage._name != other_storage._name {return false}
6813 if _storage._value != other_storage._value {return false}
6814 return true
6815 }
6816 if !storagesAreEqual {return false}
6817 }
6818 if unknownFields != other.unknownFields {return false}
6819 return true
6820 }
6821 }
6822
6823 extension Openapi_V2_NonBodyParameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6824 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6825 1: .standard(proto: "header_parameter_sub_schema"),
6826 2: .standard(proto: "form_data_parameter_sub_schema"),
6827 3: .standard(proto: "query_parameter_sub_schema"),
6828 4: .standard(proto: "path_parameter_sub_schema"),
6829 ]
6830
6831 fileprivate class _StorageClass {
6832 var _oneof: Openapi_V2_NonBodyParameter.OneOf_Oneof?
6833
6834 static let defaultInstance = _StorageClass()
6835
6836 private init() {}
6837
6838 init(copying source: _StorageClass) {
6839 _oneof = source._oneof
6840 }
6841 }
6842
6843 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6844 if !isKnownUniquelyReferenced(&_storage) {
6845 _storage = _StorageClass(copying: _storage)
6846 }
6847 return _storage
6848 }
6849
6850 public func _protobuf_generated_isEqualTo(other: Openapi_V2_NonBodyParameter) -> Bool {
6851 if _storage !== other._storage {
6852 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6853 if _storage._oneof != other_storage._oneof {return false}
6854 return true
6855 }
6856 if !storagesAreEqual {return false}
6857 }
6858 if unknownFields != other.unknownFields {return false}
6859 return true
6860 }
6861 }
6862
6863 extension Openapi_V2_Oauth2AccessCodeSecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6864 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6865 1: .same(proto: "type"),
6866 2: .same(proto: "flow"),
6867 3: .same(proto: "scopes"),
6868 4: .standard(proto: "authorization_url"),
6869 5: .standard(proto: "token_url"),
6870 6: .same(proto: "description"),
6871 7: .standard(proto: "vendor_extension"),
6872 ]
6873
6874 fileprivate class _StorageClass {
6875 var _type: String = String()
6876 var _flow: String = String()
6877 var _scopes: Openapi_V2_Oauth2Scopes? = nil
6878 var _authorizationURL: String = String()
6879 var _tokenURL: String = String()
6880 var _description_p: String = String()
6881 var _vendorExtension: [Openapi_V2_NamedAny] = []
6882
6883 static let defaultInstance = _StorageClass()
6884
6885 private init() {}
6886
6887 init(copying source: _StorageClass) {
6888 _type = source._type
6889 _flow = source._flow
6890 _scopes = source._scopes
6891 _authorizationURL = source._authorizationURL
6892 _tokenURL = source._tokenURL
6893 _description_p = source._description_p
6894 _vendorExtension = source._vendorExtension
6895 }
6896 }
6897
6898 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6899 if !isKnownUniquelyReferenced(&_storage) {
6900 _storage = _StorageClass(copying: _storage)
6901 }
6902 return _storage
6903 }
6904
6905 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Oauth2AccessCodeSecurity) -> Bool {
6906 if _storage !== other._storage {
6907 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6908 if _storage._type != other_storage._type {return false}
6909 if _storage._flow != other_storage._flow {return false}
6910 if _storage._scopes != other_storage._scopes {return false}
6911 if _storage._authorizationURL != other_storage._authorizationURL {return false}
6912 if _storage._tokenURL != other_storage._tokenURL {return false}
6913 if _storage._description_p != other_storage._description_p {return false}
6914 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6915 return true
6916 }
6917 if !storagesAreEqual {return false}
6918 }
6919 if unknownFields != other.unknownFields {return false}
6920 return true
6921 }
6922 }
6923
6924 extension Openapi_V2_Oauth2ApplicationSecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6925 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6926 1: .same(proto: "type"),
6927 2: .same(proto: "flow"),
6928 3: .same(proto: "scopes"),
6929 4: .standard(proto: "token_url"),
6930 5: .same(proto: "description"),
6931 6: .standard(proto: "vendor_extension"),
6932 ]
6933
6934 fileprivate class _StorageClass {
6935 var _type: String = String()
6936 var _flow: String = String()
6937 var _scopes: Openapi_V2_Oauth2Scopes? = nil
6938 var _tokenURL: String = String()
6939 var _description_p: String = String()
6940 var _vendorExtension: [Openapi_V2_NamedAny] = []
6941
6942 static let defaultInstance = _StorageClass()
6943
6944 private init() {}
6945
6946 init(copying source: _StorageClass) {
6947 _type = source._type
6948 _flow = source._flow
6949 _scopes = source._scopes
6950 _tokenURL = source._tokenURL
6951 _description_p = source._description_p
6952 _vendorExtension = source._vendorExtension
6953 }
6954 }
6955
6956 fileprivate mutating func _uniqueStorage() -> _StorageClass {
6957 if !isKnownUniquelyReferenced(&_storage) {
6958 _storage = _StorageClass(copying: _storage)
6959 }
6960 return _storage
6961 }
6962
6963 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Oauth2ApplicationSecurity) -> Bool {
6964 if _storage !== other._storage {
6965 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
6966 if _storage._type != other_storage._type {return false}
6967 if _storage._flow != other_storage._flow {return false}
6968 if _storage._scopes != other_storage._scopes {return false}
6969 if _storage._tokenURL != other_storage._tokenURL {return false}
6970 if _storage._description_p != other_storage._description_p {return false}
6971 if _storage._vendorExtension != other_storage._vendorExtension {return false}
6972 return true
6973 }
6974 if !storagesAreEqual {return false}
6975 }
6976 if unknownFields != other.unknownFields {return false}
6977 return true
6978 }
6979 }
6980
6981 extension Openapi_V2_Oauth2ImplicitSecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
6982 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
6983 1: .same(proto: "type"),
6984 2: .same(proto: "flow"),
6985 3: .same(proto: "scopes"),
6986 4: .standard(proto: "authorization_url"),
6987 5: .same(proto: "description"),
6988 6: .standard(proto: "vendor_extension"),
6989 ]
6990
6991 fileprivate class _StorageClass {
6992 var _type: String = String()
6993 var _flow: String = String()
6994 var _scopes: Openapi_V2_Oauth2Scopes? = nil
6995 var _authorizationURL: String = String()
6996 var _description_p: String = String()
6997 var _vendorExtension: [Openapi_V2_NamedAny] = []
6998
6999 static let defaultInstance = _StorageClass()
7000
7001 private init() {}
7002
7003 init(copying source: _StorageClass) {
7004 _type = source._type
7005 _flow = source._flow
7006 _scopes = source._scopes
7007 _authorizationURL = source._authorizationURL
7008 _description_p = source._description_p
7009 _vendorExtension = source._vendorExtension
7010 }
7011 }
7012
7013 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7014 if !isKnownUniquelyReferenced(&_storage) {
7015 _storage = _StorageClass(copying: _storage)
7016 }
7017 return _storage
7018 }
7019
7020 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Oauth2ImplicitSecurity) -> Bool {
7021 if _storage !== other._storage {
7022 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7023 if _storage._type != other_storage._type {return false}
7024 if _storage._flow != other_storage._flow {return false}
7025 if _storage._scopes != other_storage._scopes {return false}
7026 if _storage._authorizationURL != other_storage._authorizationURL {return false}
7027 if _storage._description_p != other_storage._description_p {return false}
7028 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7029 return true
7030 }
7031 if !storagesAreEqual {return false}
7032 }
7033 if unknownFields != other.unknownFields {return false}
7034 return true
7035 }
7036 }
7037
7038 extension Openapi_V2_Oauth2PasswordSecurity: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7039 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7040 1: .same(proto: "type"),
7041 2: .same(proto: "flow"),
7042 3: .same(proto: "scopes"),
7043 4: .standard(proto: "token_url"),
7044 5: .same(proto: "description"),
7045 6: .standard(proto: "vendor_extension"),
7046 ]
7047
7048 fileprivate class _StorageClass {
7049 var _type: String = String()
7050 var _flow: String = String()
7051 var _scopes: Openapi_V2_Oauth2Scopes? = nil
7052 var _tokenURL: String = String()
7053 var _description_p: String = String()
7054 var _vendorExtension: [Openapi_V2_NamedAny] = []
7055
7056 static let defaultInstance = _StorageClass()
7057
7058 private init() {}
7059
7060 init(copying source: _StorageClass) {
7061 _type = source._type
7062 _flow = source._flow
7063 _scopes = source._scopes
7064 _tokenURL = source._tokenURL
7065 _description_p = source._description_p
7066 _vendorExtension = source._vendorExtension
7067 }
7068 }
7069
7070 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7071 if !isKnownUniquelyReferenced(&_storage) {
7072 _storage = _StorageClass(copying: _storage)
7073 }
7074 return _storage
7075 }
7076
7077 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Oauth2PasswordSecurity) -> Bool {
7078 if _storage !== other._storage {
7079 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7080 if _storage._type != other_storage._type {return false}
7081 if _storage._flow != other_storage._flow {return false}
7082 if _storage._scopes != other_storage._scopes {return false}
7083 if _storage._tokenURL != other_storage._tokenURL {return false}
7084 if _storage._description_p != other_storage._description_p {return false}
7085 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7086 return true
7087 }
7088 if !storagesAreEqual {return false}
7089 }
7090 if unknownFields != other.unknownFields {return false}
7091 return true
7092 }
7093 }
7094
7095 extension Openapi_V2_Oauth2Scopes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7096 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7097 1: .standard(proto: "additional_properties"),
7098 ]
7099
7100 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Oauth2Scopes) -> Bool {
7101 if self.additionalProperties != other.additionalProperties {return false}
7102 if unknownFields != other.unknownFields {return false}
7103 return true
7104 }
7105 }
7106
7107 extension Openapi_V2_Operation: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7108 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7109 1: .same(proto: "tags"),
7110 2: .same(proto: "summary"),
7111 3: .same(proto: "description"),
7112 4: .standard(proto: "external_docs"),
7113 5: .standard(proto: "operation_id"),
7114 6: .same(proto: "produces"),
7115 7: .same(proto: "consumes"),
7116 8: .same(proto: "parameters"),
7117 9: .same(proto: "responses"),
7118 10: .same(proto: "schemes"),
7119 11: .same(proto: "deprecated"),
7120 12: .same(proto: "security"),
7121 13: .standard(proto: "vendor_extension"),
7122 ]
7123
7124 fileprivate class _StorageClass {
7125 var _tags: [String] = []
7126 var _summary: String = String()
7127 var _description_p: String = String()
7128 var _externalDocs: Openapi_V2_ExternalDocs? = nil
7129 var _operationID: String = String()
7130 var _produces: [String] = []
7131 var _consumes: [String] = []
7132 var _parameters: [Openapi_V2_ParametersItem] = []
7133 var _responses: Openapi_V2_Responses? = nil
7134 var _schemes: [String] = []
7135 var _deprecated: Bool = false
7136 var _security: [Openapi_V2_SecurityRequirement] = []
7137 var _vendorExtension: [Openapi_V2_NamedAny] = []
7138
7139 static let defaultInstance = _StorageClass()
7140
7141 private init() {}
7142
7143 init(copying source: _StorageClass) {
7144 _tags = source._tags
7145 _summary = source._summary
7146 _description_p = source._description_p
7147 _externalDocs = source._externalDocs
7148 _operationID = source._operationID
7149 _produces = source._produces
7150 _consumes = source._consumes
7151 _parameters = source._parameters
7152 _responses = source._responses
7153 _schemes = source._schemes
7154 _deprecated = source._deprecated
7155 _security = source._security
7156 _vendorExtension = source._vendorExtension
7157 }
7158 }
7159
7160 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7161 if !isKnownUniquelyReferenced(&_storage) {
7162 _storage = _StorageClass(copying: _storage)
7163 }
7164 return _storage
7165 }
7166
7167 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Operation) -> Bool {
7168 if _storage !== other._storage {
7169 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7170 if _storage._tags != other_storage._tags {return false}
7171 if _storage._summary != other_storage._summary {return false}
7172 if _storage._description_p != other_storage._description_p {return false}
7173 if _storage._externalDocs != other_storage._externalDocs {return false}
7174 if _storage._operationID != other_storage._operationID {return false}
7175 if _storage._produces != other_storage._produces {return false}
7176 if _storage._consumes != other_storage._consumes {return false}
7177 if _storage._parameters != other_storage._parameters {return false}
7178 if _storage._responses != other_storage._responses {return false}
7179 if _storage._schemes != other_storage._schemes {return false}
7180 if _storage._deprecated != other_storage._deprecated {return false}
7181 if _storage._security != other_storage._security {return false}
7182 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7183 return true
7184 }
7185 if !storagesAreEqual {return false}
7186 }
7187 if unknownFields != other.unknownFields {return false}
7188 return true
7189 }
7190 }
7191
7192 extension Openapi_V2_Parameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7193 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7194 1: .standard(proto: "body_parameter"),
7195 2: .standard(proto: "non_body_parameter"),
7196 ]
7197
7198 fileprivate class _StorageClass {
7199 var _oneof: Openapi_V2_Parameter.OneOf_Oneof?
7200
7201 static let defaultInstance = _StorageClass()
7202
7203 private init() {}
7204
7205 init(copying source: _StorageClass) {
7206 _oneof = source._oneof
7207 }
7208 }
7209
7210 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7211 if !isKnownUniquelyReferenced(&_storage) {
7212 _storage = _StorageClass(copying: _storage)
7213 }
7214 return _storage
7215 }
7216
7217 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Parameter) -> Bool {
7218 if _storage !== other._storage {
7219 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7220 if _storage._oneof != other_storage._oneof {return false}
7221 return true
7222 }
7223 if !storagesAreEqual {return false}
7224 }
7225 if unknownFields != other.unknownFields {return false}
7226 return true
7227 }
7228 }
7229
7230 extension Openapi_V2_ParameterDefinitions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7231 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7232 1: .standard(proto: "additional_properties"),
7233 ]
7234
7235 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ParameterDefinitions) -> Bool {
7236 if self.additionalProperties != other.additionalProperties {return false}
7237 if unknownFields != other.unknownFields {return false}
7238 return true
7239 }
7240 }
7241
7242 extension Openapi_V2_ParametersItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7243 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7244 1: .same(proto: "parameter"),
7245 2: .standard(proto: "json_reference"),
7246 ]
7247
7248 fileprivate class _StorageClass {
7249 var _oneof: Openapi_V2_ParametersItem.OneOf_Oneof?
7250
7251 static let defaultInstance = _StorageClass()
7252
7253 private init() {}
7254
7255 init(copying source: _StorageClass) {
7256 _oneof = source._oneof
7257 }
7258 }
7259
7260 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7261 if !isKnownUniquelyReferenced(&_storage) {
7262 _storage = _StorageClass(copying: _storage)
7263 }
7264 return _storage
7265 }
7266
7267 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ParametersItem) -> Bool {
7268 if _storage !== other._storage {
7269 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7270 if _storage._oneof != other_storage._oneof {return false}
7271 return true
7272 }
7273 if !storagesAreEqual {return false}
7274 }
7275 if unknownFields != other.unknownFields {return false}
7276 return true
7277 }
7278 }
7279
7280 extension Openapi_V2_PathItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7281 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7282 1: .standard(proto: "_ref"),
7283 2: .same(proto: "get"),
7284 3: .same(proto: "put"),
7285 4: .same(proto: "post"),
7286 5: .same(proto: "delete"),
7287 6: .same(proto: "options"),
7288 7: .same(proto: "head"),
7289 8: .same(proto: "patch"),
7290 9: .same(proto: "parameters"),
7291 10: .standard(proto: "vendor_extension"),
7292 ]
7293
7294 fileprivate class _StorageClass {
7295 var _ref: String = String()
7296 var _get: Openapi_V2_Operation? = nil
7297 var _put: Openapi_V2_Operation? = nil
7298 var _post: Openapi_V2_Operation? = nil
7299 var _delete: Openapi_V2_Operation? = nil
7300 var _options: Openapi_V2_Operation? = nil
7301 var _head: Openapi_V2_Operation? = nil
7302 var _patch: Openapi_V2_Operation? = nil
7303 var _parameters: [Openapi_V2_ParametersItem] = []
7304 var _vendorExtension: [Openapi_V2_NamedAny] = []
7305
7306 static let defaultInstance = _StorageClass()
7307
7308 private init() {}
7309
7310 init(copying source: _StorageClass) {
7311 _ref = source._ref
7312 _get = source._get
7313 _put = source._put
7314 _post = source._post
7315 _delete = source._delete
7316 _options = source._options
7317 _head = source._head
7318 _patch = source._patch
7319 _parameters = source._parameters
7320 _vendorExtension = source._vendorExtension
7321 }
7322 }
7323
7324 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7325 if !isKnownUniquelyReferenced(&_storage) {
7326 _storage = _StorageClass(copying: _storage)
7327 }
7328 return _storage
7329 }
7330
7331 public func _protobuf_generated_isEqualTo(other: Openapi_V2_PathItem) -> Bool {
7332 if _storage !== other._storage {
7333 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7334 if _storage._ref != other_storage._ref {return false}
7335 if _storage._get != other_storage._get {return false}
7336 if _storage._put != other_storage._put {return false}
7337 if _storage._post != other_storage._post {return false}
7338 if _storage._delete != other_storage._delete {return false}
7339 if _storage._options != other_storage._options {return false}
7340 if _storage._head != other_storage._head {return false}
7341 if _storage._patch != other_storage._patch {return false}
7342 if _storage._parameters != other_storage._parameters {return false}
7343 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7344 return true
7345 }
7346 if !storagesAreEqual {return false}
7347 }
7348 if unknownFields != other.unknownFields {return false}
7349 return true
7350 }
7351 }
7352
7353 extension Openapi_V2_PathParameterSubSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7354 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7355 1: .same(proto: "required"),
7356 2: .same(proto: "in"),
7357 3: .same(proto: "description"),
7358 4: .same(proto: "name"),
7359 5: .same(proto: "type"),
7360 6: .same(proto: "format"),
7361 7: .same(proto: "items"),
7362 8: .standard(proto: "collection_format"),
7363 9: .same(proto: "default"),
7364 10: .same(proto: "maximum"),
7365 11: .standard(proto: "exclusive_maximum"),
7366 12: .same(proto: "minimum"),
7367 13: .standard(proto: "exclusive_minimum"),
7368 14: .standard(proto: "max_length"),
7369 15: .standard(proto: "min_length"),
7370 16: .same(proto: "pattern"),
7371 17: .standard(proto: "max_items"),
7372 18: .standard(proto: "min_items"),
7373 19: .standard(proto: "unique_items"),
7374 20: .same(proto: "enum"),
7375 21: .standard(proto: "multiple_of"),
7376 22: .standard(proto: "vendor_extension"),
7377 ]
7378
7379 fileprivate class _StorageClass {
7380 var _required: Bool = false
7381 var _in: String = String()
7382 var _description_p: String = String()
7383 var _name: String = String()
7384 var _type: String = String()
7385 var _format: String = String()
7386 var _items: Openapi_V2_PrimitivesItems? = nil
7387 var _collectionFormat: String = String()
7388 var _default: Openapi_V2_Any? = nil
7389 var _maximum: Double = 0
7390 var _exclusiveMaximum: Bool = false
7391 var _minimum: Double = 0
7392 var _exclusiveMinimum: Bool = false
7393 var _maxLength: Int64 = 0
7394 var _minLength: Int64 = 0
7395 var _pattern: String = String()
7396 var _maxItems: Int64 = 0
7397 var _minItems: Int64 = 0
7398 var _uniqueItems: Bool = false
7399 var _enum: [Openapi_V2_Any] = []
7400 var _multipleOf: Double = 0
7401 var _vendorExtension: [Openapi_V2_NamedAny] = []
7402
7403 static let defaultInstance = _StorageClass()
7404
7405 private init() {}
7406
7407 init(copying source: _StorageClass) {
7408 _required = source._required
7409 _in = source._in
7410 _description_p = source._description_p
7411 _name = source._name
7412 _type = source._type
7413 _format = source._format
7414 _items = source._items
7415 _collectionFormat = source._collectionFormat
7416 _default = source._default
7417 _maximum = source._maximum
7418 _exclusiveMaximum = source._exclusiveMaximum
7419 _minimum = source._minimum
7420 _exclusiveMinimum = source._exclusiveMinimum
7421 _maxLength = source._maxLength
7422 _minLength = source._minLength
7423 _pattern = source._pattern
7424 _maxItems = source._maxItems
7425 _minItems = source._minItems
7426 _uniqueItems = source._uniqueItems
7427 _enum = source._enum
7428 _multipleOf = source._multipleOf
7429 _vendorExtension = source._vendorExtension
7430 }
7431 }
7432
7433 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7434 if !isKnownUniquelyReferenced(&_storage) {
7435 _storage = _StorageClass(copying: _storage)
7436 }
7437 return _storage
7438 }
7439
7440 public func _protobuf_generated_isEqualTo(other: Openapi_V2_PathParameterSubSchema) -> Bool {
7441 if _storage !== other._storage {
7442 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7443 if _storage._required != other_storage._required {return false}
7444 if _storage._in != other_storage._in {return false}
7445 if _storage._description_p != other_storage._description_p {return false}
7446 if _storage._name != other_storage._name {return false}
7447 if _storage._type != other_storage._type {return false}
7448 if _storage._format != other_storage._format {return false}
7449 if _storage._items != other_storage._items {return false}
7450 if _storage._collectionFormat != other_storage._collectionFormat {return false}
7451 if _storage._default != other_storage._default {return false}
7452 if _storage._maximum != other_storage._maximum {return false}
7453 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
7454 if _storage._minimum != other_storage._minimum {return false}
7455 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
7456 if _storage._maxLength != other_storage._maxLength {return false}
7457 if _storage._minLength != other_storage._minLength {return false}
7458 if _storage._pattern != other_storage._pattern {return false}
7459 if _storage._maxItems != other_storage._maxItems {return false}
7460 if _storage._minItems != other_storage._minItems {return false}
7461 if _storage._uniqueItems != other_storage._uniqueItems {return false}
7462 if _storage._enum != other_storage._enum {return false}
7463 if _storage._multipleOf != other_storage._multipleOf {return false}
7464 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7465 return true
7466 }
7467 if !storagesAreEqual {return false}
7468 }
7469 if unknownFields != other.unknownFields {return false}
7470 return true
7471 }
7472 }
7473
7474 extension Openapi_V2_Paths: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7475 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7476 1: .standard(proto: "vendor_extension"),
7477 2: .same(proto: "path"),
7478 ]
7479
7480 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Paths) -> Bool {
7481 if self.vendorExtension != other.vendorExtension {return false}
7482 if self.path != other.path {return false}
7483 if unknownFields != other.unknownFields {return false}
7484 return true
7485 }
7486 }
7487
7488 extension Openapi_V2_PrimitivesItems: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7489 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7490 1: .same(proto: "type"),
7491 2: .same(proto: "format"),
7492 3: .same(proto: "items"),
7493 4: .standard(proto: "collection_format"),
7494 5: .same(proto: "default"),
7495 6: .same(proto: "maximum"),
7496 7: .standard(proto: "exclusive_maximum"),
7497 8: .same(proto: "minimum"),
7498 9: .standard(proto: "exclusive_minimum"),
7499 10: .standard(proto: "max_length"),
7500 11: .standard(proto: "min_length"),
7501 12: .same(proto: "pattern"),
7502 13: .standard(proto: "max_items"),
7503 14: .standard(proto: "min_items"),
7504 15: .standard(proto: "unique_items"),
7505 16: .same(proto: "enum"),
7506 17: .standard(proto: "multiple_of"),
7507 18: .standard(proto: "vendor_extension"),
7508 ]
7509
7510 fileprivate class _StorageClass {
7511 var _type: String = String()
7512 var _format: String = String()
7513 var _items: Openapi_V2_PrimitivesItems? = nil
7514 var _collectionFormat: String = String()
7515 var _default: Openapi_V2_Any? = nil
7516 var _maximum: Double = 0
7517 var _exclusiveMaximum: Bool = false
7518 var _minimum: Double = 0
7519 var _exclusiveMinimum: Bool = false
7520 var _maxLength: Int64 = 0
7521 var _minLength: Int64 = 0
7522 var _pattern: String = String()
7523 var _maxItems: Int64 = 0
7524 var _minItems: Int64 = 0
7525 var _uniqueItems: Bool = false
7526 var _enum: [Openapi_V2_Any] = []
7527 var _multipleOf: Double = 0
7528 var _vendorExtension: [Openapi_V2_NamedAny] = []
7529
7530 static let defaultInstance = _StorageClass()
7531
7532 private init() {}
7533
7534 init(copying source: _StorageClass) {
7535 _type = source._type
7536 _format = source._format
7537 _items = source._items
7538 _collectionFormat = source._collectionFormat
7539 _default = source._default
7540 _maximum = source._maximum
7541 _exclusiveMaximum = source._exclusiveMaximum
7542 _minimum = source._minimum
7543 _exclusiveMinimum = source._exclusiveMinimum
7544 _maxLength = source._maxLength
7545 _minLength = source._minLength
7546 _pattern = source._pattern
7547 _maxItems = source._maxItems
7548 _minItems = source._minItems
7549 _uniqueItems = source._uniqueItems
7550 _enum = source._enum
7551 _multipleOf = source._multipleOf
7552 _vendorExtension = source._vendorExtension
7553 }
7554 }
7555
7556 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7557 if !isKnownUniquelyReferenced(&_storage) {
7558 _storage = _StorageClass(copying: _storage)
7559 }
7560 return _storage
7561 }
7562
7563 public func _protobuf_generated_isEqualTo(other: Openapi_V2_PrimitivesItems) -> Bool {
7564 if _storage !== other._storage {
7565 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7566 if _storage._type != other_storage._type {return false}
7567 if _storage._format != other_storage._format {return false}
7568 if _storage._items != other_storage._items {return false}
7569 if _storage._collectionFormat != other_storage._collectionFormat {return false}
7570 if _storage._default != other_storage._default {return false}
7571 if _storage._maximum != other_storage._maximum {return false}
7572 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
7573 if _storage._minimum != other_storage._minimum {return false}
7574 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
7575 if _storage._maxLength != other_storage._maxLength {return false}
7576 if _storage._minLength != other_storage._minLength {return false}
7577 if _storage._pattern != other_storage._pattern {return false}
7578 if _storage._maxItems != other_storage._maxItems {return false}
7579 if _storage._minItems != other_storage._minItems {return false}
7580 if _storage._uniqueItems != other_storage._uniqueItems {return false}
7581 if _storage._enum != other_storage._enum {return false}
7582 if _storage._multipleOf != other_storage._multipleOf {return false}
7583 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7584 return true
7585 }
7586 if !storagesAreEqual {return false}
7587 }
7588 if unknownFields != other.unknownFields {return false}
7589 return true
7590 }
7591 }
7592
7593 extension Openapi_V2_Properties: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7594 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7595 1: .standard(proto: "additional_properties"),
7596 ]
7597
7598 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Properties) -> Bool {
7599 if self.additionalProperties != other.additionalProperties {return false}
7600 if unknownFields != other.unknownFields {return false}
7601 return true
7602 }
7603 }
7604
7605 extension Openapi_V2_QueryParameterSubSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7606 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7607 1: .same(proto: "required"),
7608 2: .same(proto: "in"),
7609 3: .same(proto: "description"),
7610 4: .same(proto: "name"),
7611 5: .standard(proto: "allow_empty_value"),
7612 6: .same(proto: "type"),
7613 7: .same(proto: "format"),
7614 8: .same(proto: "items"),
7615 9: .standard(proto: "collection_format"),
7616 10: .same(proto: "default"),
7617 11: .same(proto: "maximum"),
7618 12: .standard(proto: "exclusive_maximum"),
7619 13: .same(proto: "minimum"),
7620 14: .standard(proto: "exclusive_minimum"),
7621 15: .standard(proto: "max_length"),
7622 16: .standard(proto: "min_length"),
7623 17: .same(proto: "pattern"),
7624 18: .standard(proto: "max_items"),
7625 19: .standard(proto: "min_items"),
7626 20: .standard(proto: "unique_items"),
7627 21: .same(proto: "enum"),
7628 22: .standard(proto: "multiple_of"),
7629 23: .standard(proto: "vendor_extension"),
7630 ]
7631
7632 fileprivate class _StorageClass {
7633 var _required: Bool = false
7634 var _in: String = String()
7635 var _description_p: String = String()
7636 var _name: String = String()
7637 var _allowEmptyValue: Bool = false
7638 var _type: String = String()
7639 var _format: String = String()
7640 var _items: Openapi_V2_PrimitivesItems? = nil
7641 var _collectionFormat: String = String()
7642 var _default: Openapi_V2_Any? = nil
7643 var _maximum: Double = 0
7644 var _exclusiveMaximum: Bool = false
7645 var _minimum: Double = 0
7646 var _exclusiveMinimum: Bool = false
7647 var _maxLength: Int64 = 0
7648 var _minLength: Int64 = 0
7649 var _pattern: String = String()
7650 var _maxItems: Int64 = 0
7651 var _minItems: Int64 = 0
7652 var _uniqueItems: Bool = false
7653 var _enum: [Openapi_V2_Any] = []
7654 var _multipleOf: Double = 0
7655 var _vendorExtension: [Openapi_V2_NamedAny] = []
7656
7657 static let defaultInstance = _StorageClass()
7658
7659 private init() {}
7660
7661 init(copying source: _StorageClass) {
7662 _required = source._required
7663 _in = source._in
7664 _description_p = source._description_p
7665 _name = source._name
7666 _allowEmptyValue = source._allowEmptyValue
7667 _type = source._type
7668 _format = source._format
7669 _items = source._items
7670 _collectionFormat = source._collectionFormat
7671 _default = source._default
7672 _maximum = source._maximum
7673 _exclusiveMaximum = source._exclusiveMaximum
7674 _minimum = source._minimum
7675 _exclusiveMinimum = source._exclusiveMinimum
7676 _maxLength = source._maxLength
7677 _minLength = source._minLength
7678 _pattern = source._pattern
7679 _maxItems = source._maxItems
7680 _minItems = source._minItems
7681 _uniqueItems = source._uniqueItems
7682 _enum = source._enum
7683 _multipleOf = source._multipleOf
7684 _vendorExtension = source._vendorExtension
7685 }
7686 }
7687
7688 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7689 if !isKnownUniquelyReferenced(&_storage) {
7690 _storage = _StorageClass(copying: _storage)
7691 }
7692 return _storage
7693 }
7694
7695 public func _protobuf_generated_isEqualTo(other: Openapi_V2_QueryParameterSubSchema) -> Bool {
7696 if _storage !== other._storage {
7697 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7698 if _storage._required != other_storage._required {return false}
7699 if _storage._in != other_storage._in {return false}
7700 if _storage._description_p != other_storage._description_p {return false}
7701 if _storage._name != other_storage._name {return false}
7702 if _storage._allowEmptyValue != other_storage._allowEmptyValue {return false}
7703 if _storage._type != other_storage._type {return false}
7704 if _storage._format != other_storage._format {return false}
7705 if _storage._items != other_storage._items {return false}
7706 if _storage._collectionFormat != other_storage._collectionFormat {return false}
7707 if _storage._default != other_storage._default {return false}
7708 if _storage._maximum != other_storage._maximum {return false}
7709 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
7710 if _storage._minimum != other_storage._minimum {return false}
7711 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
7712 if _storage._maxLength != other_storage._maxLength {return false}
7713 if _storage._minLength != other_storage._minLength {return false}
7714 if _storage._pattern != other_storage._pattern {return false}
7715 if _storage._maxItems != other_storage._maxItems {return false}
7716 if _storage._minItems != other_storage._minItems {return false}
7717 if _storage._uniqueItems != other_storage._uniqueItems {return false}
7718 if _storage._enum != other_storage._enum {return false}
7719 if _storage._multipleOf != other_storage._multipleOf {return false}
7720 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7721 return true
7722 }
7723 if !storagesAreEqual {return false}
7724 }
7725 if unknownFields != other.unknownFields {return false}
7726 return true
7727 }
7728 }
7729
7730 extension Openapi_V2_Response: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7731 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7732 1: .same(proto: "description"),
7733 2: .same(proto: "schema"),
7734 3: .same(proto: "headers"),
7735 4: .same(proto: "examples"),
7736 5: .standard(proto: "vendor_extension"),
7737 ]
7738
7739 fileprivate class _StorageClass {
7740 var _description_p: String = String()
7741 var _schema: Openapi_V2_SchemaItem? = nil
7742 var _headers: Openapi_V2_Headers? = nil
7743 var _examples: Openapi_V2_Examples? = nil
7744 var _vendorExtension: [Openapi_V2_NamedAny] = []
7745
7746 static let defaultInstance = _StorageClass()
7747
7748 private init() {}
7749
7750 init(copying source: _StorageClass) {
7751 _description_p = source._description_p
7752 _schema = source._schema
7753 _headers = source._headers
7754 _examples = source._examples
7755 _vendorExtension = source._vendorExtension
7756 }
7757 }
7758
7759 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7760 if !isKnownUniquelyReferenced(&_storage) {
7761 _storage = _StorageClass(copying: _storage)
7762 }
7763 return _storage
7764 }
7765
7766 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Response) -> Bool {
7767 if _storage !== other._storage {
7768 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7769 if _storage._description_p != other_storage._description_p {return false}
7770 if _storage._schema != other_storage._schema {return false}
7771 if _storage._headers != other_storage._headers {return false}
7772 if _storage._examples != other_storage._examples {return false}
7773 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7774 return true
7775 }
7776 if !storagesAreEqual {return false}
7777 }
7778 if unknownFields != other.unknownFields {return false}
7779 return true
7780 }
7781 }
7782
7783 extension Openapi_V2_ResponseDefinitions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7784 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7785 1: .standard(proto: "additional_properties"),
7786 ]
7787
7788 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ResponseDefinitions) -> Bool {
7789 if self.additionalProperties != other.additionalProperties {return false}
7790 if unknownFields != other.unknownFields {return false}
7791 return true
7792 }
7793 }
7794
7795 extension Openapi_V2_ResponseValue: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7796 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7797 1: .same(proto: "response"),
7798 2: .standard(proto: "json_reference"),
7799 ]
7800
7801 fileprivate class _StorageClass {
7802 var _oneof: Openapi_V2_ResponseValue.OneOf_Oneof?
7803
7804 static let defaultInstance = _StorageClass()
7805
7806 private init() {}
7807
7808 init(copying source: _StorageClass) {
7809 _oneof = source._oneof
7810 }
7811 }
7812
7813 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7814 if !isKnownUniquelyReferenced(&_storage) {
7815 _storage = _StorageClass(copying: _storage)
7816 }
7817 return _storage
7818 }
7819
7820 public func _protobuf_generated_isEqualTo(other: Openapi_V2_ResponseValue) -> Bool {
7821 if _storage !== other._storage {
7822 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7823 if _storage._oneof != other_storage._oneof {return false}
7824 return true
7825 }
7826 if !storagesAreEqual {return false}
7827 }
7828 if unknownFields != other.unknownFields {return false}
7829 return true
7830 }
7831 }
7832
7833 extension Openapi_V2_Responses: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7834 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7835 1: .standard(proto: "response_code"),
7836 2: .standard(proto: "vendor_extension"),
7837 ]
7838
7839 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Responses) -> Bool {
7840 if self.responseCode != other.responseCode {return false}
7841 if self.vendorExtension != other.vendorExtension {return false}
7842 if unknownFields != other.unknownFields {return false}
7843 return true
7844 }
7845 }
7846
7847 extension Openapi_V2_Schema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
7848 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
7849 1: .standard(proto: "_ref"),
7850 2: .same(proto: "format"),
7851 3: .same(proto: "title"),
7852 4: .same(proto: "description"),
7853 5: .same(proto: "default"),
7854 6: .standard(proto: "multiple_of"),
7855 7: .same(proto: "maximum"),
7856 8: .standard(proto: "exclusive_maximum"),
7857 9: .same(proto: "minimum"),
7858 10: .standard(proto: "exclusive_minimum"),
7859 11: .standard(proto: "max_length"),
7860 12: .standard(proto: "min_length"),
7861 13: .same(proto: "pattern"),
7862 14: .standard(proto: "max_items"),
7863 15: .standard(proto: "min_items"),
7864 16: .standard(proto: "unique_items"),
7865 17: .standard(proto: "max_properties"),
7866 18: .standard(proto: "min_properties"),
7867 19: .same(proto: "required"),
7868 20: .same(proto: "enum"),
7869 21: .standard(proto: "additional_properties"),
7870 22: .same(proto: "type"),
7871 23: .same(proto: "items"),
7872 24: .standard(proto: "all_of"),
7873 25: .same(proto: "properties"),
7874 26: .same(proto: "discriminator"),
7875 27: .standard(proto: "read_only"),
7876 28: .same(proto: "xml"),
7877 29: .standard(proto: "external_docs"),
7878 30: .same(proto: "example"),
7879 31: .standard(proto: "vendor_extension"),
7880 ]
7881
7882 fileprivate class _StorageClass {
7883 var _ref: String = String()
7884 var _format: String = String()
7885 var _title: String = String()
7886 var _description_p: String = String()
7887 var _default: Openapi_V2_Any? = nil
7888 var _multipleOf: Double = 0
7889 var _maximum: Double = 0
7890 var _exclusiveMaximum: Bool = false
7891 var _minimum: Double = 0
7892 var _exclusiveMinimum: Bool = false
7893 var _maxLength: Int64 = 0
7894 var _minLength: Int64 = 0
7895 var _pattern: String = String()
7896 var _maxItems: Int64 = 0
7897 var _minItems: Int64 = 0
7898 var _uniqueItems: Bool = false
7899 var _maxProperties: Int64 = 0
7900 var _minProperties: Int64 = 0
7901 var _required: [String] = []
7902 var _enum: [Openapi_V2_Any] = []
7903 var _additionalProperties: Openapi_V2_AdditionalPropertiesItem? = nil
7904 var _type: Openapi_V2_TypeItem? = nil
7905 var _items: Openapi_V2_ItemsItem? = nil
7906 var _allOf: [Openapi_V2_Schema] = []
7907 var _properties: Openapi_V2_Properties? = nil
7908 var _discriminator: String = String()
7909 var _readOnly: Bool = false
7910 var _xml: Openapi_V2_Xml? = nil
7911 var _externalDocs: Openapi_V2_ExternalDocs? = nil
7912 var _example: Openapi_V2_Any? = nil
7913 var _vendorExtension: [Openapi_V2_NamedAny] = []
7914
7915 static let defaultInstance = _StorageClass()
7916
7917 private init() {}
7918
7919 init(copying source: _StorageClass) {
7920 _ref = source._ref
7921 _format = source._format
7922 _title = source._title
7923 _description_p = source._description_p
7924 _default = source._default
7925 _multipleOf = source._multipleOf
7926 _maximum = source._maximum
7927 _exclusiveMaximum = source._exclusiveMaximum
7928 _minimum = source._minimum
7929 _exclusiveMinimum = source._exclusiveMinimum
7930 _maxLength = source._maxLength
7931 _minLength = source._minLength
7932 _pattern = source._pattern
7933 _maxItems = source._maxItems
7934 _minItems = source._minItems
7935 _uniqueItems = source._uniqueItems
7936 _maxProperties = source._maxProperties
7937 _minProperties = source._minProperties
7938 _required = source._required
7939 _enum = source._enum
7940 _additionalProperties = source._additionalProperties
7941 _type = source._type
7942 _items = source._items
7943 _allOf = source._allOf
7944 _properties = source._properties
7945 _discriminator = source._discriminator
7946 _readOnly = source._readOnly
7947 _xml = source._xml
7948 _externalDocs = source._externalDocs
7949 _example = source._example
7950 _vendorExtension = source._vendorExtension
7951 }
7952 }
7953
7954 fileprivate mutating func _uniqueStorage() -> _StorageClass {
7955 if !isKnownUniquelyReferenced(&_storage) {
7956 _storage = _StorageClass(copying: _storage)
7957 }
7958 return _storage
7959 }
7960
7961 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Schema) -> Bool {
7962 if _storage !== other._storage {
7963 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
7964 if _storage._ref != other_storage._ref {return false}
7965 if _storage._format != other_storage._format {return false}
7966 if _storage._title != other_storage._title {return false}
7967 if _storage._description_p != other_storage._description_p {return false}
7968 if _storage._default != other_storage._default {return false}
7969 if _storage._multipleOf != other_storage._multipleOf {return false}
7970 if _storage._maximum != other_storage._maximum {return false}
7971 if _storage._exclusiveMaximum != other_storage._exclusiveMaximum {return false}
7972 if _storage._minimum != other_storage._minimum {return false}
7973 if _storage._exclusiveMinimum != other_storage._exclusiveMinimum {return false}
7974 if _storage._maxLength != other_storage._maxLength {return false}
7975 if _storage._minLength != other_storage._minLength {return false}
7976 if _storage._pattern != other_storage._pattern {return false}
7977 if _storage._maxItems != other_storage._maxItems {return false}
7978 if _storage._minItems != other_storage._minItems {return false}
7979 if _storage._uniqueItems != other_storage._uniqueItems {return false}
7980 if _storage._maxProperties != other_storage._maxProperties {return false}
7981 if _storage._minProperties != other_storage._minProperties {return false}
7982 if _storage._required != other_storage._required {return false}
7983 if _storage._enum != other_storage._enum {return false}
7984 if _storage._additionalProperties != other_storage._additionalProperties {return false}
7985 if _storage._type != other_storage._type {return false}
7986 if _storage._items != other_storage._items {return false}
7987 if _storage._allOf != other_storage._allOf {return false}
7988 if _storage._properties != other_storage._properties {return false}
7989 if _storage._discriminator != other_storage._discriminator {return false}
7990 if _storage._readOnly != other_storage._readOnly {return false}
7991 if _storage._xml != other_storage._xml {return false}
7992 if _storage._externalDocs != other_storage._externalDocs {return false}
7993 if _storage._example != other_storage._example {return false}
7994 if _storage._vendorExtension != other_storage._vendorExtension {return false}
7995 return true
7996 }
7997 if !storagesAreEqual {return false}
7998 }
7999 if unknownFields != other.unknownFields {return false}
8000 return true
8001 }
8002 }
8003
8004 extension Openapi_V2_SchemaItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8005 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8006 1: .same(proto: "schema"),
8007 2: .standard(proto: "file_schema"),
8008 ]
8009
8010 fileprivate class _StorageClass {
8011 var _oneof: Openapi_V2_SchemaItem.OneOf_Oneof?
8012
8013 static let defaultInstance = _StorageClass()
8014
8015 private init() {}
8016
8017 init(copying source: _StorageClass) {
8018 _oneof = source._oneof
8019 }
8020 }
8021
8022 fileprivate mutating func _uniqueStorage() -> _StorageClass {
8023 if !isKnownUniquelyReferenced(&_storage) {
8024 _storage = _StorageClass(copying: _storage)
8025 }
8026 return _storage
8027 }
8028
8029 public func _protobuf_generated_isEqualTo(other: Openapi_V2_SchemaItem) -> Bool {
8030 if _storage !== other._storage {
8031 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
8032 if _storage._oneof != other_storage._oneof {return false}
8033 return true
8034 }
8035 if !storagesAreEqual {return false}
8036 }
8037 if unknownFields != other.unknownFields {return false}
8038 return true
8039 }
8040 }
8041
8042 extension Openapi_V2_SecurityDefinitions: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8043 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8044 1: .standard(proto: "additional_properties"),
8045 ]
8046
8047 public func _protobuf_generated_isEqualTo(other: Openapi_V2_SecurityDefinitions) -> Bool {
8048 if self.additionalProperties != other.additionalProperties {return false}
8049 if unknownFields != other.unknownFields {return false}
8050 return true
8051 }
8052 }
8053
8054 extension Openapi_V2_SecurityDefinitionsItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8055 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8056 1: .standard(proto: "basic_authentication_security"),
8057 2: .standard(proto: "api_key_security"),
8058 3: .standard(proto: "oauth2_implicit_security"),
8059 4: .standard(proto: "oauth2_password_security"),
8060 5: .standard(proto: "oauth2_application_security"),
8061 6: .standard(proto: "oauth2_access_code_security"),
8062 ]
8063
8064 fileprivate class _StorageClass {
8065 var _oneof: Openapi_V2_SecurityDefinitionsItem.OneOf_Oneof?
8066
8067 static let defaultInstance = _StorageClass()
8068
8069 private init() {}
8070
8071 init(copying source: _StorageClass) {
8072 _oneof = source._oneof
8073 }
8074 }
8075
8076 fileprivate mutating func _uniqueStorage() -> _StorageClass {
8077 if !isKnownUniquelyReferenced(&_storage) {
8078 _storage = _StorageClass(copying: _storage)
8079 }
8080 return _storage
8081 }
8082
8083 public func _protobuf_generated_isEqualTo(other: Openapi_V2_SecurityDefinitionsItem) -> Bool {
8084 if _storage !== other._storage {
8085 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
8086 if _storage._oneof != other_storage._oneof {return false}
8087 return true
8088 }
8089 if !storagesAreEqual {return false}
8090 }
8091 if unknownFields != other.unknownFields {return false}
8092 return true
8093 }
8094 }
8095
8096 extension Openapi_V2_SecurityRequirement: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8097 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8098 1: .standard(proto: "additional_properties"),
8099 ]
8100
8101 public func _protobuf_generated_isEqualTo(other: Openapi_V2_SecurityRequirement) -> Bool {
8102 if self.additionalProperties != other.additionalProperties {return false}
8103 if unknownFields != other.unknownFields {return false}
8104 return true
8105 }
8106 }
8107
8108 extension Openapi_V2_StringArray: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8109 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8110 1: .same(proto: "value"),
8111 ]
8112
8113 public func _protobuf_generated_isEqualTo(other: Openapi_V2_StringArray) -> Bool {
8114 if self.value != other.value {return false}
8115 if unknownFields != other.unknownFields {return false}
8116 return true
8117 }
8118 }
8119
8120 extension Openapi_V2_Tag: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8121 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8122 1: .same(proto: "name"),
8123 2: .same(proto: "description"),
8124 3: .standard(proto: "external_docs"),
8125 4: .standard(proto: "vendor_extension"),
8126 ]
8127
8128 fileprivate class _StorageClass {
8129 var _name: String = String()
8130 var _description_p: String = String()
8131 var _externalDocs: Openapi_V2_ExternalDocs? = nil
8132 var _vendorExtension: [Openapi_V2_NamedAny] = []
8133
8134 static let defaultInstance = _StorageClass()
8135
8136 private init() {}
8137
8138 init(copying source: _StorageClass) {
8139 _name = source._name
8140 _description_p = source._description_p
8141 _externalDocs = source._externalDocs
8142 _vendorExtension = source._vendorExtension
8143 }
8144 }
8145
8146 fileprivate mutating func _uniqueStorage() -> _StorageClass {
8147 if !isKnownUniquelyReferenced(&_storage) {
8148 _storage = _StorageClass(copying: _storage)
8149 }
8150 return _storage
8151 }
8152
8153 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Tag) -> Bool {
8154 if _storage !== other._storage {
8155 let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
8156 if _storage._name != other_storage._name {return false}
8157 if _storage._description_p != other_storage._description_p {return false}
8158 if _storage._externalDocs != other_storage._externalDocs {return false}
8159 if _storage._vendorExtension != other_storage._vendorExtension {return false}
8160 return true
8161 }
8162 if !storagesAreEqual {return false}
8163 }
8164 if unknownFields != other.unknownFields {return false}
8165 return true
8166 }
8167 }
8168
8169 extension Openapi_V2_TypeItem: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8170 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8171 1: .same(proto: "value"),
8172 ]
8173
8174 public func _protobuf_generated_isEqualTo(other: Openapi_V2_TypeItem) -> Bool {
8175 if self.value != other.value {return false}
8176 if unknownFields != other.unknownFields {return false}
8177 return true
8178 }
8179 }
8180
8181 extension Openapi_V2_VendorExtension: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8182 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8183 1: .standard(proto: "additional_properties"),
8184 ]
8185
8186 public func _protobuf_generated_isEqualTo(other: Openapi_V2_VendorExtension) -> Bool {
8187 if self.additionalProperties != other.additionalProperties {return false}
8188 if unknownFields != other.unknownFields {return false}
8189 return true
8190 }
8191 }
8192
8193 extension Openapi_V2_Xml: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
8194 public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
8195 1: .same(proto: "name"),
8196 2: .same(proto: "namespace"),
8197 3: .same(proto: "prefix"),
8198 4: .same(proto: "attribute"),
8199 5: .same(proto: "wrapped"),
8200 6: .standard(proto: "vendor_extension"),
8201 ]
8202
8203 public func _protobuf_generated_isEqualTo(other: Openapi_V2_Xml) -> Bool {
8204 if self.name != other.name {return false}
8205 if self.namespace != other.namespace {return false}
8206 if self.prefix != other.prefix {return false}
8207 if self.attribute != other.attribute {return false}
8208 if self.wrapped != other.wrapped {return false}
8209 if self.vendorExtension != other.vendorExtension {return false}
8210 if unknownFields != other.unknownFields {return false}
8211 return true
8212 }
8213 }