| // DO NOT EDIT. |
| // |
| // Generated by the Swift generator plugin for the protocol buffer compiler. |
| // Source: github.com/googleapis/gnostic/OpenAPIv2/OpenAPIv2.proto |
| // |
| // For information on using the generated types, please see the documenation: |
| // https://github.com/apple/swift-protobuf/ |
| |
| // Copyright 2017 Google Inc. All Rights Reserved. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // THIS FILE IS AUTOMATICALLY GENERATED. |
| |
| import Foundation |
| import SwiftProtobuf |
| |
| // If the compiler emits an error on this type, it is because this file |
| // was generated by a version of the `protoc` Swift plug-in that is |
| // incompatible with the version of SwiftProtobuf to which you are linking. |
| // Please ensure that your are building against the same version of the API |
| // that was used to generate this file. |
| fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { |
| struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} |
| typealias Version = _2 |
| } |
| |
| public struct Openapi_V2_AdditionalPropertiesItem: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".AdditionalPropertiesItem" |
| |
| public var oneof: OneOf_Oneof? { |
| get {return _storage._oneof} |
| set {_uniqueStorage()._oneof = newValue} |
| } |
| |
| public var schema: Openapi_V2_Schema { |
| get { |
| if case .schema(let v)? = _storage._oneof {return v} |
| return Openapi_V2_Schema() |
| } |
| set {_uniqueStorage()._oneof = .schema(newValue)} |
| } |
| |
| public var boolean: Bool { |
| get { |
| if case .boolean(let v)? = _storage._oneof {return v} |
| return false |
| } |
| set {_uniqueStorage()._oneof = .boolean(newValue)} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public enum OneOf_Oneof: Equatable { |
| case schema(Openapi_V2_Schema) |
| case boolean(Bool) |
| |
| public static func ==(lhs: Openapi_V2_AdditionalPropertiesItem.OneOf_Oneof, rhs: Openapi_V2_AdditionalPropertiesItem.OneOf_Oneof) -> Bool { |
| switch (lhs, rhs) { |
| case (.schema(let l), .schema(let r)): return l == r |
| case (.boolean(let l), .boolean(let r)): return l == r |
| default: return false |
| } |
| } |
| } |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: |
| var v: Openapi_V2_Schema? |
| if let current = _storage._oneof { |
| try decoder.handleConflictingOneOf() |
| if case .schema(let m) = current {v = m} |
| } |
| try decoder.decodeSingularMessageField(value: &v) |
| if let v = v {_storage._oneof = .schema(v)} |
| case 2: |
| if _storage._oneof != nil {try decoder.handleConflictingOneOf()} |
| var v: Bool? |
| try decoder.decodeSingularBoolField(value: &v) |
| if let v = v {_storage._oneof = .boolean(v)} |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| switch _storage._oneof { |
| case .schema(let v)?: |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 1) |
| case .boolean(let v)?: |
| try visitor.visitSingularBoolField(value: v, fieldNumber: 2) |
| case nil: break |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_Any: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Any" |
| |
| public var value: SwiftProtobuf.Google_Protobuf_Any { |
| get {return _storage._value ?? SwiftProtobuf.Google_Protobuf_Any()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var yaml: String { |
| get {return _storage._yaml} |
| set {_uniqueStorage()._yaml = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularMessageField(value: &_storage._value) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._yaml) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 1) |
| } |
| if !_storage._yaml.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._yaml, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_ApiKeySecurity: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".ApiKeySecurity" |
| |
| public var type: String = String() |
| |
| public var name: String = String() |
| |
| public var `in`: String = String() |
| |
| public var description_p: String = String() |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.type) |
| case 2: try decoder.decodeSingularStringField(value: &self.name) |
| case 3: try decoder.decodeSingularStringField(value: &self.`in`) |
| case 4: try decoder.decodeSingularStringField(value: &self.description_p) |
| case 5: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.type.isEmpty { |
| try visitor.visitSingularStringField(value: self.type, fieldNumber: 1) |
| } |
| if !self.name.isEmpty { |
| try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) |
| } |
| if !self.`in`.isEmpty { |
| try visitor.visitSingularStringField(value: self.`in`, fieldNumber: 3) |
| } |
| if !self.description_p.isEmpty { |
| try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 4) |
| } |
| if !self.vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 5) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_BasicAuthenticationSecurity: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".BasicAuthenticationSecurity" |
| |
| public var type: String = String() |
| |
| public var description_p: String = String() |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.type) |
| case 2: try decoder.decodeSingularStringField(value: &self.description_p) |
| case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.type.isEmpty { |
| try visitor.visitSingularStringField(value: self.type, fieldNumber: 1) |
| } |
| if !self.description_p.isEmpty { |
| try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) |
| } |
| if !self.vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_BodyParameter: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".BodyParameter" |
| |
| /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| /// The name of the parameter. |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Determines the location of the parameter. |
| public var `in`: String { |
| get {return _storage._in} |
| set {_uniqueStorage()._in = newValue} |
| } |
| |
| /// Determines whether or not this parameter is required or optional. |
| public var required: Bool { |
| get {return _storage._required} |
| set {_uniqueStorage()._required = newValue} |
| } |
| |
| public var schema: Openapi_V2_Schema { |
| get {return _storage._schema ?? Openapi_V2_Schema()} |
| set {_uniqueStorage()._schema = newValue} |
| } |
| /// Returns true if `schema` has been explicitly set. |
| public var hasSchema: Bool {return _storage._schema != nil} |
| /// Clears the value of `schema`. Subsequent reads from it will return its default value. |
| public mutating func clearSchema() {_storage._schema = nil} |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._in) |
| case 4: try decoder.decodeSingularBoolField(value: &_storage._required) |
| case 5: try decoder.decodeSingularMessageField(value: &_storage._schema) |
| case 6: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 1) |
| } |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 2) |
| } |
| if !_storage._in.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 3) |
| } |
| if _storage._required != false { |
| try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 4) |
| } |
| if let v = _storage._schema { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 5) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 6) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Contact information for the owners of the API. |
| public struct Openapi_V2_Contact: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Contact" |
| |
| /// The identifying name of the contact person/organization. |
| public var name: String = String() |
| |
| /// The URL pointing to the contact information. |
| public var url: String = String() |
| |
| /// The email address of the contact person/organization. |
| public var email: String = String() |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.name) |
| case 2: try decoder.decodeSingularStringField(value: &self.url) |
| case 3: try decoder.decodeSingularStringField(value: &self.email) |
| case 4: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.name.isEmpty { |
| try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) |
| } |
| if !self.url.isEmpty { |
| try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) |
| } |
| if !self.email.isEmpty { |
| try visitor.visitSingularStringField(value: self.email, fieldNumber: 3) |
| } |
| if !self.vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 4) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_Default: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Default" |
| |
| public var additionalProperties: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.additionalProperties.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// One or more JSON objects describing the schemas being consumed and produced by the API. |
| public struct Openapi_V2_Definitions: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Definitions" |
| |
| public var additionalProperties: [Openapi_V2_NamedSchema] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.additionalProperties.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_Document: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Document" |
| |
| /// The Swagger version of this document. |
| public var swagger: String { |
| get {return _storage._swagger} |
| set {_uniqueStorage()._swagger = newValue} |
| } |
| |
| public var info: Openapi_V2_Info { |
| get {return _storage._info ?? Openapi_V2_Info()} |
| set {_uniqueStorage()._info = newValue} |
| } |
| /// Returns true if `info` has been explicitly set. |
| public var hasInfo: Bool {return _storage._info != nil} |
| /// Clears the value of `info`. Subsequent reads from it will return its default value. |
| public mutating func clearInfo() {_storage._info = nil} |
| |
| /// The host (name or ip) of the API. Example: 'swagger.io' |
| public var host: String { |
| get {return _storage._host} |
| set {_uniqueStorage()._host = newValue} |
| } |
| |
| /// The base path to the API. Example: '/api'. |
| public var basePath: String { |
| get {return _storage._basePath} |
| set {_uniqueStorage()._basePath = newValue} |
| } |
| |
| /// The transfer protocol of the API. |
| public var schemes: [String] { |
| get {return _storage._schemes} |
| set {_uniqueStorage()._schemes = newValue} |
| } |
| |
| /// A list of MIME types accepted by the API. |
| public var consumes: [String] { |
| get {return _storage._consumes} |
| set {_uniqueStorage()._consumes = newValue} |
| } |
| |
| /// A list of MIME types the API can produce. |
| public var produces: [String] { |
| get {return _storage._produces} |
| set {_uniqueStorage()._produces = newValue} |
| } |
| |
| public var paths: Openapi_V2_Paths { |
| get {return _storage._paths ?? Openapi_V2_Paths()} |
| set {_uniqueStorage()._paths = newValue} |
| } |
| /// Returns true if `paths` has been explicitly set. |
| public var hasPaths: Bool {return _storage._paths != nil} |
| /// Clears the value of `paths`. Subsequent reads from it will return its default value. |
| public mutating func clearPaths() {_storage._paths = nil} |
| |
| public var definitions: Openapi_V2_Definitions { |
| get {return _storage._definitions ?? Openapi_V2_Definitions()} |
| set {_uniqueStorage()._definitions = newValue} |
| } |
| /// Returns true if `definitions` has been explicitly set. |
| public var hasDefinitions: Bool {return _storage._definitions != nil} |
| /// Clears the value of `definitions`. Subsequent reads from it will return its default value. |
| public mutating func clearDefinitions() {_storage._definitions = nil} |
| |
| public var parameters: Openapi_V2_ParameterDefinitions { |
| get {return _storage._parameters ?? Openapi_V2_ParameterDefinitions()} |
| set {_uniqueStorage()._parameters = newValue} |
| } |
| /// Returns true if `parameters` has been explicitly set. |
| public var hasParameters: Bool {return _storage._parameters != nil} |
| /// Clears the value of `parameters`. Subsequent reads from it will return its default value. |
| public mutating func clearParameters() {_storage._parameters = nil} |
| |
| public var responses: Openapi_V2_ResponseDefinitions { |
| get {return _storage._responses ?? Openapi_V2_ResponseDefinitions()} |
| set {_uniqueStorage()._responses = newValue} |
| } |
| /// Returns true if `responses` has been explicitly set. |
| public var hasResponses: Bool {return _storage._responses != nil} |
| /// Clears the value of `responses`. Subsequent reads from it will return its default value. |
| public mutating func clearResponses() {_storage._responses = nil} |
| |
| public var security: [Openapi_V2_SecurityRequirement] { |
| get {return _storage._security} |
| set {_uniqueStorage()._security = newValue} |
| } |
| |
| public var securityDefinitions: Openapi_V2_SecurityDefinitions { |
| get {return _storage._securityDefinitions ?? Openapi_V2_SecurityDefinitions()} |
| set {_uniqueStorage()._securityDefinitions = newValue} |
| } |
| /// Returns true if `securityDefinitions` has been explicitly set. |
| public var hasSecurityDefinitions: Bool {return _storage._securityDefinitions != nil} |
| /// Clears the value of `securityDefinitions`. Subsequent reads from it will return its default value. |
| public mutating func clearSecurityDefinitions() {_storage._securityDefinitions = nil} |
| |
| public var tags: [Openapi_V2_Tag] { |
| get {return _storage._tags} |
| set {_uniqueStorage()._tags = newValue} |
| } |
| |
| public var externalDocs: Openapi_V2_ExternalDocs { |
| get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()} |
| set {_uniqueStorage()._externalDocs = newValue} |
| } |
| /// Returns true if `externalDocs` has been explicitly set. |
| public var hasExternalDocs: Bool {return _storage._externalDocs != nil} |
| /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value. |
| public mutating func clearExternalDocs() {_storage._externalDocs = nil} |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._swagger) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._info) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._host) |
| case 4: try decoder.decodeSingularStringField(value: &_storage._basePath) |
| case 5: try decoder.decodeRepeatedStringField(value: &_storage._schemes) |
| case 6: try decoder.decodeRepeatedStringField(value: &_storage._consumes) |
| case 7: try decoder.decodeRepeatedStringField(value: &_storage._produces) |
| case 8: try decoder.decodeSingularMessageField(value: &_storage._paths) |
| case 9: try decoder.decodeSingularMessageField(value: &_storage._definitions) |
| case 10: try decoder.decodeSingularMessageField(value: &_storage._parameters) |
| case 11: try decoder.decodeSingularMessageField(value: &_storage._responses) |
| case 12: try decoder.decodeRepeatedMessageField(value: &_storage._security) |
| case 13: try decoder.decodeSingularMessageField(value: &_storage._securityDefinitions) |
| case 14: try decoder.decodeRepeatedMessageField(value: &_storage._tags) |
| case 15: try decoder.decodeSingularMessageField(value: &_storage._externalDocs) |
| case 16: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._swagger.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._swagger, fieldNumber: 1) |
| } |
| if let v = _storage._info { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| if !_storage._host.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._host, fieldNumber: 3) |
| } |
| if !_storage._basePath.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._basePath, fieldNumber: 4) |
| } |
| if !_storage._schemes.isEmpty { |
| try visitor.visitRepeatedStringField(value: _storage._schemes, fieldNumber: 5) |
| } |
| if !_storage._consumes.isEmpty { |
| try visitor.visitRepeatedStringField(value: _storage._consumes, fieldNumber: 6) |
| } |
| if !_storage._produces.isEmpty { |
| try visitor.visitRepeatedStringField(value: _storage._produces, fieldNumber: 7) |
| } |
| if let v = _storage._paths { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 8) |
| } |
| if let v = _storage._definitions { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 9) |
| } |
| if let v = _storage._parameters { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 10) |
| } |
| if let v = _storage._responses { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 11) |
| } |
| if !_storage._security.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._security, fieldNumber: 12) |
| } |
| if let v = _storage._securityDefinitions { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 13) |
| } |
| if !_storage._tags.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._tags, fieldNumber: 14) |
| } |
| if let v = _storage._externalDocs { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 15) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 16) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_Examples: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Examples" |
| |
| public var additionalProperties: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.additionalProperties.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// information about external documentation |
| public struct Openapi_V2_ExternalDocs: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".ExternalDocs" |
| |
| public var description_p: String = String() |
| |
| public var url: String = String() |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.description_p) |
| case 2: try decoder.decodeSingularStringField(value: &self.url) |
| case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.description_p.isEmpty { |
| try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 1) |
| } |
| if !self.url.isEmpty { |
| try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) |
| } |
| if !self.vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// A deterministic version of a JSON Schema object. |
| public struct Openapi_V2_FileSchema: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".FileSchema" |
| |
| public var format: String { |
| get {return _storage._format} |
| set {_uniqueStorage()._format = newValue} |
| } |
| |
| public var title: String { |
| get {return _storage._title} |
| set {_uniqueStorage()._title = newValue} |
| } |
| |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| public var `default`: Openapi_V2_Any { |
| get {return _storage._default ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._default = newValue} |
| } |
| /// Returns true if ``default`` has been explicitly set. |
| public var hasDefault: Bool {return _storage._default != nil} |
| /// Clears the value of ``default``. Subsequent reads from it will return its default value. |
| public mutating func clearDefault() {_storage._default = nil} |
| |
| public var required: [String] { |
| get {return _storage._required} |
| set {_uniqueStorage()._required = newValue} |
| } |
| |
| public var type: String { |
| get {return _storage._type} |
| set {_uniqueStorage()._type = newValue} |
| } |
| |
| public var readOnly: Bool { |
| get {return _storage._readOnly} |
| set {_uniqueStorage()._readOnly = newValue} |
| } |
| |
| public var externalDocs: Openapi_V2_ExternalDocs { |
| get {return _storage._externalDocs ?? Openapi_V2_ExternalDocs()} |
| set {_uniqueStorage()._externalDocs = newValue} |
| } |
| /// Returns true if `externalDocs` has been explicitly set. |
| public var hasExternalDocs: Bool {return _storage._externalDocs != nil} |
| /// Clears the value of `externalDocs`. Subsequent reads from it will return its default value. |
| public mutating func clearExternalDocs() {_storage._externalDocs = nil} |
| |
| public var example: Openapi_V2_Any { |
| get {return _storage._example ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._example = newValue} |
| } |
| /// Returns true if `example` has been explicitly set. |
| public var hasExample: Bool {return _storage._example != nil} |
| /// Clears the value of `example`. Subsequent reads from it will return its default value. |
| public mutating func clearExample() {_storage._example = nil} |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._format) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._title) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 4: try decoder.decodeSingularMessageField(value: &_storage._default) |
| case 5: try decoder.decodeRepeatedStringField(value: &_storage._required) |
| case 6: try decoder.decodeSingularStringField(value: &_storage._type) |
| case 7: try decoder.decodeSingularBoolField(value: &_storage._readOnly) |
| case 8: try decoder.decodeSingularMessageField(value: &_storage._externalDocs) |
| case 9: try decoder.decodeSingularMessageField(value: &_storage._example) |
| case 10: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._format.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 1) |
| } |
| if !_storage._title.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 2) |
| } |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) |
| } |
| if let v = _storage._default { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 4) |
| } |
| if !_storage._required.isEmpty { |
| try visitor.visitRepeatedStringField(value: _storage._required, fieldNumber: 5) |
| } |
| if !_storage._type.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 6) |
| } |
| if _storage._readOnly != false { |
| try visitor.visitSingularBoolField(value: _storage._readOnly, fieldNumber: 7) |
| } |
| if let v = _storage._externalDocs { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 8) |
| } |
| if let v = _storage._example { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 9) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 10) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_FormDataParameterSubSchema: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".FormDataParameterSubSchema" |
| |
| /// Determines whether or not this parameter is required or optional. |
| public var required: Bool { |
| get {return _storage._required} |
| set {_uniqueStorage()._required = newValue} |
| } |
| |
| /// Determines the location of the parameter. |
| public var `in`: String { |
| get {return _storage._in} |
| set {_uniqueStorage()._in = newValue} |
| } |
| |
| /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| /// The name of the parameter. |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// allows sending a parameter by name only or with an empty value. |
| public var allowEmptyValue: Bool { |
| get {return _storage._allowEmptyValue} |
| set {_uniqueStorage()._allowEmptyValue = newValue} |
| } |
| |
| public var type: String { |
| get {return _storage._type} |
| set {_uniqueStorage()._type = newValue} |
| } |
| |
| public var format: String { |
| get {return _storage._format} |
| set {_uniqueStorage()._format = newValue} |
| } |
| |
| public var items: Openapi_V2_PrimitivesItems { |
| get {return _storage._items ?? Openapi_V2_PrimitivesItems()} |
| set {_uniqueStorage()._items = newValue} |
| } |
| /// Returns true if `items` has been explicitly set. |
| public var hasItems: Bool {return _storage._items != nil} |
| /// Clears the value of `items`. Subsequent reads from it will return its default value. |
| public mutating func clearItems() {_storage._items = nil} |
| |
| public var collectionFormat: String { |
| get {return _storage._collectionFormat} |
| set {_uniqueStorage()._collectionFormat = newValue} |
| } |
| |
| public var `default`: Openapi_V2_Any { |
| get {return _storage._default ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._default = newValue} |
| } |
| /// Returns true if ``default`` has been explicitly set. |
| public var hasDefault: Bool {return _storage._default != nil} |
| /// Clears the value of ``default``. Subsequent reads from it will return its default value. |
| public mutating func clearDefault() {_storage._default = nil} |
| |
| public var maximum: Double { |
| get {return _storage._maximum} |
| set {_uniqueStorage()._maximum = newValue} |
| } |
| |
| public var exclusiveMaximum: Bool { |
| get {return _storage._exclusiveMaximum} |
| set {_uniqueStorage()._exclusiveMaximum = newValue} |
| } |
| |
| public var minimum: Double { |
| get {return _storage._minimum} |
| set {_uniqueStorage()._minimum = newValue} |
| } |
| |
| public var exclusiveMinimum: Bool { |
| get {return _storage._exclusiveMinimum} |
| set {_uniqueStorage()._exclusiveMinimum = newValue} |
| } |
| |
| public var maxLength: Int64 { |
| get {return _storage._maxLength} |
| set {_uniqueStorage()._maxLength = newValue} |
| } |
| |
| public var minLength: Int64 { |
| get {return _storage._minLength} |
| set {_uniqueStorage()._minLength = newValue} |
| } |
| |
| public var pattern: String { |
| get {return _storage._pattern} |
| set {_uniqueStorage()._pattern = newValue} |
| } |
| |
| public var maxItems: Int64 { |
| get {return _storage._maxItems} |
| set {_uniqueStorage()._maxItems = newValue} |
| } |
| |
| public var minItems: Int64 { |
| get {return _storage._minItems} |
| set {_uniqueStorage()._minItems = newValue} |
| } |
| |
| public var uniqueItems: Bool { |
| get {return _storage._uniqueItems} |
| set {_uniqueStorage()._uniqueItems = newValue} |
| } |
| |
| public var `enum`: [Openapi_V2_Any] { |
| get {return _storage._enum} |
| set {_uniqueStorage()._enum = newValue} |
| } |
| |
| public var multipleOf: Double { |
| get {return _storage._multipleOf} |
| set {_uniqueStorage()._multipleOf = newValue} |
| } |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularBoolField(value: &_storage._required) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._in) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 4: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 5: try decoder.decodeSingularBoolField(value: &_storage._allowEmptyValue) |
| case 6: try decoder.decodeSingularStringField(value: &_storage._type) |
| case 7: try decoder.decodeSingularStringField(value: &_storage._format) |
| case 8: try decoder.decodeSingularMessageField(value: &_storage._items) |
| case 9: try decoder.decodeSingularStringField(value: &_storage._collectionFormat) |
| case 10: try decoder.decodeSingularMessageField(value: &_storage._default) |
| case 11: try decoder.decodeSingularDoubleField(value: &_storage._maximum) |
| case 12: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum) |
| case 13: try decoder.decodeSingularDoubleField(value: &_storage._minimum) |
| case 14: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum) |
| case 15: try decoder.decodeSingularInt64Field(value: &_storage._maxLength) |
| case 16: try decoder.decodeSingularInt64Field(value: &_storage._minLength) |
| case 17: try decoder.decodeSingularStringField(value: &_storage._pattern) |
| case 18: try decoder.decodeSingularInt64Field(value: &_storage._maxItems) |
| case 19: try decoder.decodeSingularInt64Field(value: &_storage._minItems) |
| case 20: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems) |
| case 21: try decoder.decodeRepeatedMessageField(value: &_storage._enum) |
| case 22: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf) |
| case 23: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if _storage._required != false { |
| try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1) |
| } |
| if !_storage._in.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2) |
| } |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) |
| } |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4) |
| } |
| if _storage._allowEmptyValue != false { |
| try visitor.visitSingularBoolField(value: _storage._allowEmptyValue, fieldNumber: 5) |
| } |
| if !_storage._type.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 6) |
| } |
| if !_storage._format.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 7) |
| } |
| if let v = _storage._items { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 8) |
| } |
| if !_storage._collectionFormat.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 9) |
| } |
| if let v = _storage._default { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 10) |
| } |
| if _storage._maximum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 11) |
| } |
| if _storage._exclusiveMaximum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 12) |
| } |
| if _storage._minimum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 13) |
| } |
| if _storage._exclusiveMinimum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 14) |
| } |
| if _storage._maxLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 15) |
| } |
| if _storage._minLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 16) |
| } |
| if !_storage._pattern.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 17) |
| } |
| if _storage._maxItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 18) |
| } |
| if _storage._minItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 19) |
| } |
| if _storage._uniqueItems != false { |
| try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 20) |
| } |
| if !_storage._enum.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 21) |
| } |
| if _storage._multipleOf != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 22) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 23) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_Header: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Header" |
| |
| public var type: String { |
| get {return _storage._type} |
| set {_uniqueStorage()._type = newValue} |
| } |
| |
| public var format: String { |
| get {return _storage._format} |
| set {_uniqueStorage()._format = newValue} |
| } |
| |
| public var items: Openapi_V2_PrimitivesItems { |
| get {return _storage._items ?? Openapi_V2_PrimitivesItems()} |
| set {_uniqueStorage()._items = newValue} |
| } |
| /// Returns true if `items` has been explicitly set. |
| public var hasItems: Bool {return _storage._items != nil} |
| /// Clears the value of `items`. Subsequent reads from it will return its default value. |
| public mutating func clearItems() {_storage._items = nil} |
| |
| public var collectionFormat: String { |
| get {return _storage._collectionFormat} |
| set {_uniqueStorage()._collectionFormat = newValue} |
| } |
| |
| public var `default`: Openapi_V2_Any { |
| get {return _storage._default ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._default = newValue} |
| } |
| /// Returns true if ``default`` has been explicitly set. |
| public var hasDefault: Bool {return _storage._default != nil} |
| /// Clears the value of ``default``. Subsequent reads from it will return its default value. |
| public mutating func clearDefault() {_storage._default = nil} |
| |
| public var maximum: Double { |
| get {return _storage._maximum} |
| set {_uniqueStorage()._maximum = newValue} |
| } |
| |
| public var exclusiveMaximum: Bool { |
| get {return _storage._exclusiveMaximum} |
| set {_uniqueStorage()._exclusiveMaximum = newValue} |
| } |
| |
| public var minimum: Double { |
| get {return _storage._minimum} |
| set {_uniqueStorage()._minimum = newValue} |
| } |
| |
| public var exclusiveMinimum: Bool { |
| get {return _storage._exclusiveMinimum} |
| set {_uniqueStorage()._exclusiveMinimum = newValue} |
| } |
| |
| public var maxLength: Int64 { |
| get {return _storage._maxLength} |
| set {_uniqueStorage()._maxLength = newValue} |
| } |
| |
| public var minLength: Int64 { |
| get {return _storage._minLength} |
| set {_uniqueStorage()._minLength = newValue} |
| } |
| |
| public var pattern: String { |
| get {return _storage._pattern} |
| set {_uniqueStorage()._pattern = newValue} |
| } |
| |
| public var maxItems: Int64 { |
| get {return _storage._maxItems} |
| set {_uniqueStorage()._maxItems = newValue} |
| } |
| |
| public var minItems: Int64 { |
| get {return _storage._minItems} |
| set {_uniqueStorage()._minItems = newValue} |
| } |
| |
| public var uniqueItems: Bool { |
| get {return _storage._uniqueItems} |
| set {_uniqueStorage()._uniqueItems = newValue} |
| } |
| |
| public var `enum`: [Openapi_V2_Any] { |
| get {return _storage._enum} |
| set {_uniqueStorage()._enum = newValue} |
| } |
| |
| public var multipleOf: Double { |
| get {return _storage._multipleOf} |
| set {_uniqueStorage()._multipleOf = newValue} |
| } |
| |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._type) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._format) |
| case 3: try decoder.decodeSingularMessageField(value: &_storage._items) |
| case 4: try decoder.decodeSingularStringField(value: &_storage._collectionFormat) |
| case 5: try decoder.decodeSingularMessageField(value: &_storage._default) |
| case 6: try decoder.decodeSingularDoubleField(value: &_storage._maximum) |
| case 7: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum) |
| case 8: try decoder.decodeSingularDoubleField(value: &_storage._minimum) |
| case 9: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum) |
| case 10: try decoder.decodeSingularInt64Field(value: &_storage._maxLength) |
| case 11: try decoder.decodeSingularInt64Field(value: &_storage._minLength) |
| case 12: try decoder.decodeSingularStringField(value: &_storage._pattern) |
| case 13: try decoder.decodeSingularInt64Field(value: &_storage._maxItems) |
| case 14: try decoder.decodeSingularInt64Field(value: &_storage._minItems) |
| case 15: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems) |
| case 16: try decoder.decodeRepeatedMessageField(value: &_storage._enum) |
| case 17: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf) |
| case 18: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 19: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._type.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1) |
| } |
| if !_storage._format.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 2) |
| } |
| if let v = _storage._items { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 3) |
| } |
| if !_storage._collectionFormat.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 4) |
| } |
| if let v = _storage._default { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 5) |
| } |
| if _storage._maximum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 6) |
| } |
| if _storage._exclusiveMaximum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 7) |
| } |
| if _storage._minimum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 8) |
| } |
| if _storage._exclusiveMinimum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 9) |
| } |
| if _storage._maxLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 10) |
| } |
| if _storage._minLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 11) |
| } |
| if !_storage._pattern.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 12) |
| } |
| if _storage._maxItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 13) |
| } |
| if _storage._minItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 14) |
| } |
| if _storage._uniqueItems != false { |
| try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 15) |
| } |
| if !_storage._enum.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 16) |
| } |
| if _storage._multipleOf != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 17) |
| } |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 18) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 19) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_HeaderParameterSubSchema: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".HeaderParameterSubSchema" |
| |
| /// Determines whether or not this parameter is required or optional. |
| public var required: Bool { |
| get {return _storage._required} |
| set {_uniqueStorage()._required = newValue} |
| } |
| |
| /// Determines the location of the parameter. |
| public var `in`: String { |
| get {return _storage._in} |
| set {_uniqueStorage()._in = newValue} |
| } |
| |
| /// A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| /// The name of the parameter. |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| public var type: String { |
| get {return _storage._type} |
| set {_uniqueStorage()._type = newValue} |
| } |
| |
| public var format: String { |
| get {return _storage._format} |
| set {_uniqueStorage()._format = newValue} |
| } |
| |
| public var items: Openapi_V2_PrimitivesItems { |
| get {return _storage._items ?? Openapi_V2_PrimitivesItems()} |
| set {_uniqueStorage()._items = newValue} |
| } |
| /// Returns true if `items` has been explicitly set. |
| public var hasItems: Bool {return _storage._items != nil} |
| /// Clears the value of `items`. Subsequent reads from it will return its default value. |
| public mutating func clearItems() {_storage._items = nil} |
| |
| public var collectionFormat: String { |
| get {return _storage._collectionFormat} |
| set {_uniqueStorage()._collectionFormat = newValue} |
| } |
| |
| public var `default`: Openapi_V2_Any { |
| get {return _storage._default ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._default = newValue} |
| } |
| /// Returns true if ``default`` has been explicitly set. |
| public var hasDefault: Bool {return _storage._default != nil} |
| /// Clears the value of ``default``. Subsequent reads from it will return its default value. |
| public mutating func clearDefault() {_storage._default = nil} |
| |
| public var maximum: Double { |
| get {return _storage._maximum} |
| set {_uniqueStorage()._maximum = newValue} |
| } |
| |
| public var exclusiveMaximum: Bool { |
| get {return _storage._exclusiveMaximum} |
| set {_uniqueStorage()._exclusiveMaximum = newValue} |
| } |
| |
| public var minimum: Double { |
| get {return _storage._minimum} |
| set {_uniqueStorage()._minimum = newValue} |
| } |
| |
| public var exclusiveMinimum: Bool { |
| get {return _storage._exclusiveMinimum} |
| set {_uniqueStorage()._exclusiveMinimum = newValue} |
| } |
| |
| public var maxLength: Int64 { |
| get {return _storage._maxLength} |
| set {_uniqueStorage()._maxLength = newValue} |
| } |
| |
| public var minLength: Int64 { |
| get {return _storage._minLength} |
| set {_uniqueStorage()._minLength = newValue} |
| } |
| |
| public var pattern: String { |
| get {return _storage._pattern} |
| set {_uniqueStorage()._pattern = newValue} |
| } |
| |
| public var maxItems: Int64 { |
| get {return _storage._maxItems} |
| set {_uniqueStorage()._maxItems = newValue} |
| } |
| |
| public var minItems: Int64 { |
| get {return _storage._minItems} |
| set {_uniqueStorage()._minItems = newValue} |
| } |
| |
| public var uniqueItems: Bool { |
| get {return _storage._uniqueItems} |
| set {_uniqueStorage()._uniqueItems = newValue} |
| } |
| |
| public var `enum`: [Openapi_V2_Any] { |
| get {return _storage._enum} |
| set {_uniqueStorage()._enum = newValue} |
| } |
| |
| public var multipleOf: Double { |
| get {return _storage._multipleOf} |
| set {_uniqueStorage()._multipleOf = newValue} |
| } |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularBoolField(value: &_storage._required) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._in) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 4: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 5: try decoder.decodeSingularStringField(value: &_storage._type) |
| case 6: try decoder.decodeSingularStringField(value: &_storage._format) |
| case 7: try decoder.decodeSingularMessageField(value: &_storage._items) |
| case 8: try decoder.decodeSingularStringField(value: &_storage._collectionFormat) |
| case 9: try decoder.decodeSingularMessageField(value: &_storage._default) |
| case 10: try decoder.decodeSingularDoubleField(value: &_storage._maximum) |
| case 11: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMaximum) |
| case 12: try decoder.decodeSingularDoubleField(value: &_storage._minimum) |
| case 13: try decoder.decodeSingularBoolField(value: &_storage._exclusiveMinimum) |
| case 14: try decoder.decodeSingularInt64Field(value: &_storage._maxLength) |
| case 15: try decoder.decodeSingularInt64Field(value: &_storage._minLength) |
| case 16: try decoder.decodeSingularStringField(value: &_storage._pattern) |
| case 17: try decoder.decodeSingularInt64Field(value: &_storage._maxItems) |
| case 18: try decoder.decodeSingularInt64Field(value: &_storage._minItems) |
| case 19: try decoder.decodeSingularBoolField(value: &_storage._uniqueItems) |
| case 20: try decoder.decodeRepeatedMessageField(value: &_storage._enum) |
| case 21: try decoder.decodeSingularDoubleField(value: &_storage._multipleOf) |
| case 22: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if _storage._required != false { |
| try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 1) |
| } |
| if !_storage._in.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._in, fieldNumber: 2) |
| } |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) |
| } |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4) |
| } |
| if !_storage._type.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 5) |
| } |
| if !_storage._format.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 6) |
| } |
| if let v = _storage._items { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 7) |
| } |
| if !_storage._collectionFormat.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._collectionFormat, fieldNumber: 8) |
| } |
| if let v = _storage._default { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 9) |
| } |
| if _storage._maximum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._maximum, fieldNumber: 10) |
| } |
| if _storage._exclusiveMaximum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMaximum, fieldNumber: 11) |
| } |
| if _storage._minimum != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._minimum, fieldNumber: 12) |
| } |
| if _storage._exclusiveMinimum != false { |
| try visitor.visitSingularBoolField(value: _storage._exclusiveMinimum, fieldNumber: 13) |
| } |
| if _storage._maxLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxLength, fieldNumber: 14) |
| } |
| if _storage._minLength != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minLength, fieldNumber: 15) |
| } |
| if !_storage._pattern.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 16) |
| } |
| if _storage._maxItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._maxItems, fieldNumber: 17) |
| } |
| if _storage._minItems != 0 { |
| try visitor.visitSingularInt64Field(value: _storage._minItems, fieldNumber: 18) |
| } |
| if _storage._uniqueItems != false { |
| try visitor.visitSingularBoolField(value: _storage._uniqueItems, fieldNumber: 19) |
| } |
| if !_storage._enum.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._enum, fieldNumber: 20) |
| } |
| if _storage._multipleOf != 0 { |
| try visitor.visitSingularDoubleField(value: _storage._multipleOf, fieldNumber: 21) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 22) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_Headers: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Headers" |
| |
| public var additionalProperties: [Openapi_V2_NamedHeader] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.additionalProperties.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// General information about the API. |
| public struct Openapi_V2_Info: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".Info" |
| |
| /// A unique and precise title of the API. |
| public var title: String { |
| get {return _storage._title} |
| set {_uniqueStorage()._title = newValue} |
| } |
| |
| /// A semantic version number of the API. |
| public var version: String { |
| get {return _storage._version} |
| set {_uniqueStorage()._version = newValue} |
| } |
| |
| /// A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed. |
| public var description_p: String { |
| get {return _storage._description_p} |
| set {_uniqueStorage()._description_p = newValue} |
| } |
| |
| /// The terms of service for the API. |
| public var termsOfService: String { |
| get {return _storage._termsOfService} |
| set {_uniqueStorage()._termsOfService = newValue} |
| } |
| |
| public var contact: Openapi_V2_Contact { |
| get {return _storage._contact ?? Openapi_V2_Contact()} |
| set {_uniqueStorage()._contact = newValue} |
| } |
| /// Returns true if `contact` has been explicitly set. |
| public var hasContact: Bool {return _storage._contact != nil} |
| /// Clears the value of `contact`. Subsequent reads from it will return its default value. |
| public mutating func clearContact() {_storage._contact = nil} |
| |
| public var license: Openapi_V2_License { |
| get {return _storage._license ?? Openapi_V2_License()} |
| set {_uniqueStorage()._license = newValue} |
| } |
| /// Returns true if `license` has been explicitly set. |
| public var hasLicense: Bool {return _storage._license != nil} |
| /// Clears the value of `license`. Subsequent reads from it will return its default value. |
| public mutating func clearLicense() {_storage._license = nil} |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] { |
| get {return _storage._vendorExtension} |
| set {_uniqueStorage()._vendorExtension = newValue} |
| } |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._title) |
| case 2: try decoder.decodeSingularStringField(value: &_storage._version) |
| case 3: try decoder.decodeSingularStringField(value: &_storage._description_p) |
| case 4: try decoder.decodeSingularStringField(value: &_storage._termsOfService) |
| case 5: try decoder.decodeSingularMessageField(value: &_storage._contact) |
| case 6: try decoder.decodeSingularMessageField(value: &_storage._license) |
| case 7: try decoder.decodeRepeatedMessageField(value: &_storage._vendorExtension) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._title.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 1) |
| } |
| if !_storage._version.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._version, fieldNumber: 2) |
| } |
| if !_storage._description_p.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3) |
| } |
| if !_storage._termsOfService.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._termsOfService, fieldNumber: 4) |
| } |
| if let v = _storage._contact { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 5) |
| } |
| if let v = _storage._license { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 6) |
| } |
| if !_storage._vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: _storage._vendorExtension, fieldNumber: 7) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_ItemsItem: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".ItemsItem" |
| |
| public var schema: [Openapi_V2_Schema] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeRepeatedMessageField(value: &self.schema) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.schema.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.schema, fieldNumber: 1) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_JsonReference: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".JsonReference" |
| |
| public var ref: String = String() |
| |
| public var description_p: String = String() |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.ref) |
| case 2: try decoder.decodeSingularStringField(value: &self.description_p) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.ref.isEmpty { |
| try visitor.visitSingularStringField(value: self.ref, fieldNumber: 1) |
| } |
| if !self.description_p.isEmpty { |
| try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 2) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| public struct Openapi_V2_License: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".License" |
| |
| /// The name of the license type. It's encouraged to use an OSI compatible license. |
| public var name: String = String() |
| |
| /// The URL pointing to the license. |
| public var url: String = String() |
| |
| public var vendorExtension: [Openapi_V2_NamedAny] = [] |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.name) |
| case 2: try decoder.decodeSingularStringField(value: &self.url) |
| case 3: try decoder.decodeRepeatedMessageField(value: &self.vendorExtension) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.name.isEmpty { |
| try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) |
| } |
| if !self.url.isEmpty { |
| try visitor.visitSingularStringField(value: self.url, fieldNumber: 2) |
| } |
| if !self.vendorExtension.isEmpty { |
| try visitor.visitRepeatedMessageField(value: self.vendorExtension, fieldNumber: 3) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// Automatically-generated message used to represent maps of Any as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedAny: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedAny" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_Any { |
| get {return _storage._value ?? Openapi_V2_Any()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of Header as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedHeader: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedHeader" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_Header { |
| get {return _storage._value ?? Openapi_V2_Header()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedParameter: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedParameter" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_Parameter { |
| get {return _storage._value ?? Openapi_V2_Parameter()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of PathItem as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedPathItem: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedPathItem" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_PathItem { |
| get {return _storage._value ?? Openapi_V2_PathItem()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of Response as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedResponse: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedResponse" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_Response { |
| get {return _storage._value ?? Openapi_V2_Response()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of ResponseValue as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedResponseValue: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedResponseValue" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_ResponseValue { |
| get {return _storage._value ?? Openapi_V2_ResponseValue()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedSchema: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedSchema" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_Schema { |
| get {return _storage._value ?? Openapi_V2_Schema()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of SecurityDefinitionsItem as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedSecurityDefinitionsItem: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedSecurityDefinitionsItem" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_SecurityDefinitionsItem { |
| get {return _storage._value ?? Openapi_V2_SecurityDefinitionsItem()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| /// Automatically-generated message used to represent maps of string as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedString: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedString" |
| |
| /// Map key |
| public var name: String = String() |
| |
| /// Mapped value |
| public var value: String = String() |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &self.name) |
| case 2: try decoder.decodeSingularStringField(value: &self.value) |
| default: break |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| if !self.name.isEmpty { |
| try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) |
| } |
| if !self.value.isEmpty { |
| try visitor.visitSingularStringField(value: self.value, fieldNumber: 2) |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| } |
| |
| /// Automatically-generated message used to represent maps of StringArray as ordered (name,value) pairs. |
| public struct Openapi_V2_NamedStringArray: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NamedStringArray" |
| |
| /// Map key |
| public var name: String { |
| get {return _storage._name} |
| set {_uniqueStorage()._name = newValue} |
| } |
| |
| /// Mapped value |
| public var value: Openapi_V2_StringArray { |
| get {return _storage._value ?? Openapi_V2_StringArray()} |
| set {_uniqueStorage()._value = newValue} |
| } |
| /// Returns true if `value` has been explicitly set. |
| public var hasValue: Bool {return _storage._value != nil} |
| /// Clears the value of `value`. Subsequent reads from it will return its default value. |
| public mutating func clearValue() {_storage._value = nil} |
| |
| public var unknownFields = SwiftProtobuf.UnknownStorage() |
| |
| public init() {} |
| |
| /// Used by the decoding initializers in the SwiftProtobuf library, not generally |
| /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding |
| /// initializers are defined in the SwiftProtobuf library. See the Message and |
| /// Message+*Additions` files. |
| public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { |
| _ = _uniqueStorage() |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| while let fieldNumber = try decoder.nextFieldNumber() { |
| switch fieldNumber { |
| case 1: try decoder.decodeSingularStringField(value: &_storage._name) |
| case 2: try decoder.decodeSingularMessageField(value: &_storage._value) |
| default: break |
| } |
| } |
| } |
| } |
| |
| /// Used by the encoding methods of the SwiftProtobuf library, not generally |
| /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and |
| /// other serializer methods are defined in the SwiftProtobuf library. See the |
| /// `Message` and `Message+*Additions` files. |
| public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws { |
| try withExtendedLifetime(_storage) { (_storage: _StorageClass) in |
| if !_storage._name.isEmpty { |
| try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1) |
| } |
| if let v = _storage._value { |
| try visitor.visitSingularMessageField(value: v, fieldNumber: 2) |
| } |
| } |
| try unknownFields.traverse(visitor: &visitor) |
| } |
| |
| fileprivate var _storage = _StorageClass.defaultInstance |
| } |
| |
| public struct Openapi_V2_NonBodyParameter: SwiftProtobuf.Message { |
| public static let protoMessageName: String = _protobuf_package + ".NonBodyParameter" |
| |
| public var oneof: OneOf_Oneof? { |
| get {return _storage._oneof} |
| set {_uniqueStorage()._oneof = newValue} |
| } |
| |
| public var headerParameterSubSchema: Openapi_V2_HeaderParameterSubSchema { |
| get { |
| if case .headerParameterSubSchema(let v)? = _storage._oneof {return v} |
| return Openapi_V2_HeaderParameterSubSchema() |
| } |
| set {_uniqueStorage()._oneof = .headerParameterSubSchema(newValue)} |
| } |
| |
| public var formDataParameterSubSchema: Openapi_V2_FormDataParameterSubSchema { |
| get { |
| if case .formDataParameterSubSchema(let v)? = _storage._oneof {return v} |
| return Openapi_V2_FormDataParameterSubSchema() |
| } |
| set {_uniqueStorage()._oneof = .formDataParameterSubSchema(newValue)} |
| } |
| |
| public var queryParameterSubSchema: Openapi_V2_QueryParameterSubSchema { |
| get { |
| if case .queryParameterSubSchema(let v)? = _storage._oneof {return v} |
| return Openapi_V2_QueryParameterSubSchema() |
| } |
| set {_uniqueStorage()._oneof = .queryParameterSubSchema(newValue)} |
| } |
| |
| public var pathParameterSubSchema: Openapi_V2_PathParameterSubSchema { |
| get { |
| <