1 // DO NOT EDIT.
2 //
3 // Generated by the Swift generator plugin for the protocol buffer compiler.
4 // Source: github.com/googleapis/gnostic/discovery/discovery.proto
5 //
6 // For information on using the generated types, please see the documenation:
7 //   https://github.com/apple/swift-protobuf/
8 
9 // Copyright 2017 Google Inc. All Rights Reserved.
10 //
11 // Licensed under the Apache License, Version 2.0 (the "License");
12 // you may not use this file except in compliance with the License.
13 // You may obtain a copy of the License at
14 //
15 //    http://www.apache.org/licenses/LICENSE-2.0
16 //
17 // Unless required by applicable law or agreed to in writing, software
18 // distributed under the License is distributed on an "AS IS" BASIS,
19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 // See the License for the specific language governing permissions and
21 // limitations under the License.
22 
23 // THIS FILE IS AUTOMATICALLY GENERATED.
24 
25 import Foundation
26 import SwiftProtobuf
27 
28 // If the compiler emits an error on this type, it is because this file
29 // was generated by a version of the `protoc` Swift plug-in that is
30 // incompatible with the version of SwiftProtobuf to which you are linking.
31 // Please ensure that your are building against the same version of the API
32 // that was used to generate this file.
33 fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
34   struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
35   typealias Version = _2
36 }
37 
38 public struct Discovery_V1_Annotations: SwiftProtobuf.Message {
39   public static let protoMessageName: String = _protobuf_package + ".Annotations"
40 
41   public var required: [String] = []
42 
43   public var unknownFields = SwiftProtobuf.UnknownStorage()
44 
45   public init() {}
46 
47   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
48   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
49   /// initializers are defined in the SwiftProtobuf library. See the Message and
50   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null51   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
52     while let fieldNumber = try decoder.nextFieldNumber() {
53       switch fieldNumber {
54       case 1: try decoder.decodeRepeatedStringField(value: &self.required)
55       default: break
56       }
57     }
58   }
59 
60   /// Used by the encoding methods of the SwiftProtobuf library, not generally
61   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
62   /// other serializer methods are defined in the SwiftProtobuf library. See the
63   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null64   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
65     if !self.required.isEmpty {
66       try visitor.visitRepeatedStringField(value: self.required, fieldNumber: 1)
67     }
68     try unknownFields.traverse(visitor: &visitor)
69   }
70 }
71 
72 public struct Discovery_V1_Any: SwiftProtobuf.Message {
73   public static let protoMessageName: String = _protobuf_package + ".Any"
74 
75   public var value: SwiftProtobuf.Google_Protobuf_Any {
76     get {return _storage._value ?? SwiftProtobuf.Google_Protobuf_Any()}
77     set {_uniqueStorage()._value = newValue}
78   }
79   /// Returns true if `value` has been explicitly set.
80   public var hasValue: Bool {return _storage._value != nil}
81   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull82   public mutating func clearValue() {_storage._value = nil}
83 
84   public var yaml: String {
85     get {return _storage._yaml}
86     set {_uniqueStorage()._yaml = newValue}
87   }
88 
89   public var unknownFields = SwiftProtobuf.UnknownStorage()
90 
91   public init() {}
92 
93   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
94   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
95   /// initializers are defined in the SwiftProtobuf library. See the Message and
96   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null97   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
98     _ = _uniqueStorage()
99     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
100       while let fieldNumber = try decoder.nextFieldNumber() {
101         switch fieldNumber {
102         case 1: try decoder.decodeSingularMessageField(value: &_storage._value)
103         case 2: try decoder.decodeSingularStringField(value: &_storage._yaml)
104         default: break
105         }
106       }
107     }
108   }
109 
110   /// Used by the encoding methods of the SwiftProtobuf library, not generally
111   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
112   /// other serializer methods are defined in the SwiftProtobuf library. See the
113   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null114   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
115     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
116       if let v = _storage._value {
117         try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
118       }
119       if !_storage._yaml.isEmpty {
120         try visitor.visitSingularStringField(value: _storage._yaml, fieldNumber: 2)
121       }
122     }
123     try unknownFields.traverse(visitor: &visitor)
124   }
125 
126   fileprivate var _storage = _StorageClass.defaultInstance
127 }
128 
129 public struct Discovery_V1_Auth: SwiftProtobuf.Message {
130   public static let protoMessageName: String = _protobuf_package + ".Auth"
131 
132   public var oauth2: Discovery_V1_Oauth2 {
133     get {return _storage._oauth2 ?? Discovery_V1_Oauth2()}
134     set {_uniqueStorage()._oauth2 = newValue}
135   }
136   /// Returns true if `oauth2` has been explicitly set.
137   public var hasOauth2: Bool {return _storage._oauth2 != nil}
138   /// Clears the value of `oauth2`. Subsequent reads from it will return its default value.
clearOauth2null139   public mutating func clearOauth2() {_storage._oauth2 = nil}
140 
141   public var unknownFields = SwiftProtobuf.UnknownStorage()
142 
143   public init() {}
144 
145   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
146   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
147   /// initializers are defined in the SwiftProtobuf library. See the Message and
148   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null149   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
150     _ = _uniqueStorage()
151     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
152       while let fieldNumber = try decoder.nextFieldNumber() {
153         switch fieldNumber {
154         case 1: try decoder.decodeSingularMessageField(value: &_storage._oauth2)
155         default: break
156         }
157       }
158     }
159   }
160 
161   /// Used by the encoding methods of the SwiftProtobuf library, not generally
162   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
163   /// other serializer methods are defined in the SwiftProtobuf library. See the
164   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null165   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
166     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
167       if let v = _storage._oauth2 {
168         try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
169       }
170     }
171     try unknownFields.traverse(visitor: &visitor)
172   }
173 
174   fileprivate var _storage = _StorageClass.defaultInstance
175 }
176 
177 public struct Discovery_V1_Document: SwiftProtobuf.Message {
178   public static let protoMessageName: String = _protobuf_package + ".Document"
179 
180   public var kind: String {
181     get {return _storage._kind}
182     set {_uniqueStorage()._kind = newValue}
183   }
184 
185   public var discoveryVersion: String {
186     get {return _storage._discoveryVersion}
187     set {_uniqueStorage()._discoveryVersion = newValue}
188   }
189 
190   public var id: String {
191     get {return _storage._id}
192     set {_uniqueStorage()._id = newValue}
193   }
194 
195   public var name: String {
196     get {return _storage._name}
197     set {_uniqueStorage()._name = newValue}
198   }
199 
200   public var version: String {
201     get {return _storage._version}
202     set {_uniqueStorage()._version = newValue}
203   }
204 
205   public var revision: String {
206     get {return _storage._revision}
207     set {_uniqueStorage()._revision = newValue}
208   }
209 
210   public var title: String {
211     get {return _storage._title}
212     set {_uniqueStorage()._title = newValue}
213   }
214 
215   public var description_p: String {
216     get {return _storage._description_p}
217     set {_uniqueStorage()._description_p = newValue}
218   }
219 
220   public var icons: Discovery_V1_Icons {
221     get {return _storage._icons ?? Discovery_V1_Icons()}
222     set {_uniqueStorage()._icons = newValue}
223   }
224   /// Returns true if `icons` has been explicitly set.
225   public var hasIcons: Bool {return _storage._icons != nil}
226   /// Clears the value of `icons`. Subsequent reads from it will return its default value.
clearIconsnull227   public mutating func clearIcons() {_storage._icons = nil}
228 
229   public var documentationLink: String {
230     get {return _storage._documentationLink}
231     set {_uniqueStorage()._documentationLink = newValue}
232   }
233 
234   public var labels: [String] {
235     get {return _storage._labels}
236     set {_uniqueStorage()._labels = newValue}
237   }
238 
239   public var `protocol`: String {
240     get {return _storage._protocol}
241     set {_uniqueStorage()._protocol = newValue}
242   }
243 
244   public var baseURL: String {
245     get {return _storage._baseURL}
246     set {_uniqueStorage()._baseURL = newValue}
247   }
248 
249   public var basePath: String {
250     get {return _storage._basePath}
251     set {_uniqueStorage()._basePath = newValue}
252   }
253 
254   public var rootURL: String {
255     get {return _storage._rootURL}
256     set {_uniqueStorage()._rootURL = newValue}
257   }
258 
259   public var servicePath: String {
260     get {return _storage._servicePath}
261     set {_uniqueStorage()._servicePath = newValue}
262   }
263 
264   public var batchPath: String {
265     get {return _storage._batchPath}
266     set {_uniqueStorage()._batchPath = newValue}
267   }
268 
269   public var parameters: Discovery_V1_Parameters {
270     get {return _storage._parameters ?? Discovery_V1_Parameters()}
271     set {_uniqueStorage()._parameters = newValue}
272   }
273   /// Returns true if `parameters` has been explicitly set.
274   public var hasParameters: Bool {return _storage._parameters != nil}
275   /// Clears the value of `parameters`. Subsequent reads from it will return its default value.
clearParametersnull276   public mutating func clearParameters() {_storage._parameters = nil}
277 
278   public var auth: Discovery_V1_Auth {
279     get {return _storage._auth ?? Discovery_V1_Auth()}
280     set {_uniqueStorage()._auth = newValue}
281   }
282   /// Returns true if `auth` has been explicitly set.
283   public var hasAuth: Bool {return _storage._auth != nil}
284   /// Clears the value of `auth`. Subsequent reads from it will return its default value.
clearAuthnull285   public mutating func clearAuth() {_storage._auth = nil}
286 
287   public var features: [String] {
288     get {return _storage._features}
289     set {_uniqueStorage()._features = newValue}
290   }
291 
292   public var schemas: Discovery_V1_Schemas {
293     get {return _storage._schemas ?? Discovery_V1_Schemas()}
294     set {_uniqueStorage()._schemas = newValue}
295   }
296   /// Returns true if `schemas` has been explicitly set.
297   public var hasSchemas: Bool {return _storage._schemas != nil}
298   /// Clears the value of `schemas`. Subsequent reads from it will return its default value.
clearSchemasnull299   public mutating func clearSchemas() {_storage._schemas = nil}
300 
301   public var methods: Discovery_V1_Methods {
302     get {return _storage._methods ?? Discovery_V1_Methods()}
303     set {_uniqueStorage()._methods = newValue}
304   }
305   /// Returns true if `methods` has been explicitly set.
306   public var hasMethods: Bool {return _storage._methods != nil}
307   /// Clears the value of `methods`. Subsequent reads from it will return its default value.
clearMethodsnull308   public mutating func clearMethods() {_storage._methods = nil}
309 
310   public var resources: Discovery_V1_Resources {
311     get {return _storage._resources ?? Discovery_V1_Resources()}
312     set {_uniqueStorage()._resources = newValue}
313   }
314   /// Returns true if `resources` has been explicitly set.
315   public var hasResources: Bool {return _storage._resources != nil}
316   /// Clears the value of `resources`. Subsequent reads from it will return its default value.
clearResourcesnull317   public mutating func clearResources() {_storage._resources = nil}
318 
319   public var etag: String {
320     get {return _storage._etag}
321     set {_uniqueStorage()._etag = newValue}
322   }
323 
324   public var ownerDomain: String {
325     get {return _storage._ownerDomain}
326     set {_uniqueStorage()._ownerDomain = newValue}
327   }
328 
329   public var ownerName: String {
330     get {return _storage._ownerName}
331     set {_uniqueStorage()._ownerName = newValue}
332   }
333 
334   public var versionModule: Bool {
335     get {return _storage._versionModule}
336     set {_uniqueStorage()._versionModule = newValue}
337   }
338 
339   public var canonicalName: String {
340     get {return _storage._canonicalName}
341     set {_uniqueStorage()._canonicalName = newValue}
342   }
343 
344   public var fullyEncodeReservedExpansion: Bool {
345     get {return _storage._fullyEncodeReservedExpansion}
346     set {_uniqueStorage()._fullyEncodeReservedExpansion = newValue}
347   }
348 
349   public var packagePath: String {
350     get {return _storage._packagePath}
351     set {_uniqueStorage()._packagePath = newValue}
352   }
353 
354   public var unknownFields = SwiftProtobuf.UnknownStorage()
355 
356   public init() {}
357 
358   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
359   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
360   /// initializers are defined in the SwiftProtobuf library. See the Message and
361   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null362   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
363     _ = _uniqueStorage()
364     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
365       while let fieldNumber = try decoder.nextFieldNumber() {
366         switch fieldNumber {
367         case 1: try decoder.decodeSingularStringField(value: &_storage._kind)
368         case 2: try decoder.decodeSingularStringField(value: &_storage._discoveryVersion)
369         case 3: try decoder.decodeSingularStringField(value: &_storage._id)
370         case 4: try decoder.decodeSingularStringField(value: &_storage._name)
371         case 5: try decoder.decodeSingularStringField(value: &_storage._version)
372         case 6: try decoder.decodeSingularStringField(value: &_storage._revision)
373         case 7: try decoder.decodeSingularStringField(value: &_storage._title)
374         case 8: try decoder.decodeSingularStringField(value: &_storage._description_p)
375         case 9: try decoder.decodeSingularMessageField(value: &_storage._icons)
376         case 10: try decoder.decodeSingularStringField(value: &_storage._documentationLink)
377         case 11: try decoder.decodeRepeatedStringField(value: &_storage._labels)
378         case 12: try decoder.decodeSingularStringField(value: &_storage._protocol)
379         case 13: try decoder.decodeSingularStringField(value: &_storage._baseURL)
380         case 14: try decoder.decodeSingularStringField(value: &_storage._basePath)
381         case 15: try decoder.decodeSingularStringField(value: &_storage._rootURL)
382         case 16: try decoder.decodeSingularStringField(value: &_storage._servicePath)
383         case 17: try decoder.decodeSingularStringField(value: &_storage._batchPath)
384         case 18: try decoder.decodeSingularMessageField(value: &_storage._parameters)
385         case 19: try decoder.decodeSingularMessageField(value: &_storage._auth)
386         case 20: try decoder.decodeRepeatedStringField(value: &_storage._features)
387         case 21: try decoder.decodeSingularMessageField(value: &_storage._schemas)
388         case 22: try decoder.decodeSingularMessageField(value: &_storage._methods)
389         case 23: try decoder.decodeSingularMessageField(value: &_storage._resources)
390         case 24: try decoder.decodeSingularStringField(value: &_storage._etag)
391         case 25: try decoder.decodeSingularStringField(value: &_storage._ownerDomain)
392         case 26: try decoder.decodeSingularStringField(value: &_storage._ownerName)
393         case 27: try decoder.decodeSingularBoolField(value: &_storage._versionModule)
394         case 28: try decoder.decodeSingularStringField(value: &_storage._canonicalName)
395         case 29: try decoder.decodeSingularBoolField(value: &_storage._fullyEncodeReservedExpansion)
396         case 30: try decoder.decodeSingularStringField(value: &_storage._packagePath)
397         default: break
398         }
399       }
400     }
401   }
402 
403   /// Used by the encoding methods of the SwiftProtobuf library, not generally
404   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
405   /// other serializer methods are defined in the SwiftProtobuf library. See the
406   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null407   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
408     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
409       if !_storage._kind.isEmpty {
410         try visitor.visitSingularStringField(value: _storage._kind, fieldNumber: 1)
411       }
412       if !_storage._discoveryVersion.isEmpty {
413         try visitor.visitSingularStringField(value: _storage._discoveryVersion, fieldNumber: 2)
414       }
415       if !_storage._id.isEmpty {
416         try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 3)
417       }
418       if !_storage._name.isEmpty {
419         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 4)
420       }
421       if !_storage._version.isEmpty {
422         try visitor.visitSingularStringField(value: _storage._version, fieldNumber: 5)
423       }
424       if !_storage._revision.isEmpty {
425         try visitor.visitSingularStringField(value: _storage._revision, fieldNumber: 6)
426       }
427       if !_storage._title.isEmpty {
428         try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 7)
429       }
430       if !_storage._description_p.isEmpty {
431         try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 8)
432       }
433       if let v = _storage._icons {
434         try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
435       }
436       if !_storage._documentationLink.isEmpty {
437         try visitor.visitSingularStringField(value: _storage._documentationLink, fieldNumber: 10)
438       }
439       if !_storage._labels.isEmpty {
440         try visitor.visitRepeatedStringField(value: _storage._labels, fieldNumber: 11)
441       }
442       if !_storage._protocol.isEmpty {
443         try visitor.visitSingularStringField(value: _storage._protocol, fieldNumber: 12)
444       }
445       if !_storage._baseURL.isEmpty {
446         try visitor.visitSingularStringField(value: _storage._baseURL, fieldNumber: 13)
447       }
448       if !_storage._basePath.isEmpty {
449         try visitor.visitSingularStringField(value: _storage._basePath, fieldNumber: 14)
450       }
451       if !_storage._rootURL.isEmpty {
452         try visitor.visitSingularStringField(value: _storage._rootURL, fieldNumber: 15)
453       }
454       if !_storage._servicePath.isEmpty {
455         try visitor.visitSingularStringField(value: _storage._servicePath, fieldNumber: 16)
456       }
457       if !_storage._batchPath.isEmpty {
458         try visitor.visitSingularStringField(value: _storage._batchPath, fieldNumber: 17)
459       }
460       if let v = _storage._parameters {
461         try visitor.visitSingularMessageField(value: v, fieldNumber: 18)
462       }
463       if let v = _storage._auth {
464         try visitor.visitSingularMessageField(value: v, fieldNumber: 19)
465       }
466       if !_storage._features.isEmpty {
467         try visitor.visitRepeatedStringField(value: _storage._features, fieldNumber: 20)
468       }
469       if let v = _storage._schemas {
470         try visitor.visitSingularMessageField(value: v, fieldNumber: 21)
471       }
472       if let v = _storage._methods {
473         try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
474       }
475       if let v = _storage._resources {
476         try visitor.visitSingularMessageField(value: v, fieldNumber: 23)
477       }
478       if !_storage._etag.isEmpty {
479         try visitor.visitSingularStringField(value: _storage._etag, fieldNumber: 24)
480       }
481       if !_storage._ownerDomain.isEmpty {
482         try visitor.visitSingularStringField(value: _storage._ownerDomain, fieldNumber: 25)
483       }
484       if !_storage._ownerName.isEmpty {
485         try visitor.visitSingularStringField(value: _storage._ownerName, fieldNumber: 26)
486       }
487       if _storage._versionModule != false {
488         try visitor.visitSingularBoolField(value: _storage._versionModule, fieldNumber: 27)
489       }
490       if !_storage._canonicalName.isEmpty {
491         try visitor.visitSingularStringField(value: _storage._canonicalName, fieldNumber: 28)
492       }
493       if _storage._fullyEncodeReservedExpansion != false {
494         try visitor.visitSingularBoolField(value: _storage._fullyEncodeReservedExpansion, fieldNumber: 29)
495       }
496       if !_storage._packagePath.isEmpty {
497         try visitor.visitSingularStringField(value: _storage._packagePath, fieldNumber: 30)
498       }
499     }
500     try unknownFields.traverse(visitor: &visitor)
501   }
502 
503   fileprivate var _storage = _StorageClass.defaultInstance
504 }
505 
506 /// Icons that represent the API.
507 public struct Discovery_V1_Icons: SwiftProtobuf.Message {
508   public static let protoMessageName: String = _protobuf_package + ".Icons"
509 
510   public var x16: String = String()
511 
512   public var x32: String = String()
513 
514   public var unknownFields = SwiftProtobuf.UnknownStorage()
515 
516   public init() {}
517 
518   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
519   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
520   /// initializers are defined in the SwiftProtobuf library. See the Message and
521   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null522   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
523     while let fieldNumber = try decoder.nextFieldNumber() {
524       switch fieldNumber {
525       case 1: try decoder.decodeSingularStringField(value: &self.x16)
526       case 2: try decoder.decodeSingularStringField(value: &self.x32)
527       default: break
528       }
529     }
530   }
531 
532   /// Used by the encoding methods of the SwiftProtobuf library, not generally
533   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
534   /// other serializer methods are defined in the SwiftProtobuf library. See the
535   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null536   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
537     if !self.x16.isEmpty {
538       try visitor.visitSingularStringField(value: self.x16, fieldNumber: 1)
539     }
540     if !self.x32.isEmpty {
541       try visitor.visitSingularStringField(value: self.x32, fieldNumber: 2)
542     }
543     try unknownFields.traverse(visitor: &visitor)
544   }
545 }
546 
547 public struct Discovery_V1_MediaUpload: SwiftProtobuf.Message {
548   public static let protoMessageName: String = _protobuf_package + ".MediaUpload"
549 
550   public var accept: [String] {
551     get {return _storage._accept}
552     set {_uniqueStorage()._accept = newValue}
553   }
554 
555   public var maxSize: String {
556     get {return _storage._maxSize}
557     set {_uniqueStorage()._maxSize = newValue}
558   }
559 
560   public var protocols: Discovery_V1_Protocols {
561     get {return _storage._protocols ?? Discovery_V1_Protocols()}
562     set {_uniqueStorage()._protocols = newValue}
563   }
564   /// Returns true if `protocols` has been explicitly set.
565   public var hasProtocols: Bool {return _storage._protocols != nil}
566   /// Clears the value of `protocols`. Subsequent reads from it will return its default value.
clearProtocolsnull567   public mutating func clearProtocols() {_storage._protocols = nil}
568 
569   public var supportsSubscription: Bool {
570     get {return _storage._supportsSubscription}
571     set {_uniqueStorage()._supportsSubscription = newValue}
572   }
573 
574   public var unknownFields = SwiftProtobuf.UnknownStorage()
575 
576   public init() {}
577 
578   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
579   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
580   /// initializers are defined in the SwiftProtobuf library. See the Message and
581   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null582   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
583     _ = _uniqueStorage()
584     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
585       while let fieldNumber = try decoder.nextFieldNumber() {
586         switch fieldNumber {
587         case 1: try decoder.decodeRepeatedStringField(value: &_storage._accept)
588         case 2: try decoder.decodeSingularStringField(value: &_storage._maxSize)
589         case 3: try decoder.decodeSingularMessageField(value: &_storage._protocols)
590         case 4: try decoder.decodeSingularBoolField(value: &_storage._supportsSubscription)
591         default: break
592         }
593       }
594     }
595   }
596 
597   /// Used by the encoding methods of the SwiftProtobuf library, not generally
598   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
599   /// other serializer methods are defined in the SwiftProtobuf library. See the
600   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null601   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
602     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
603       if !_storage._accept.isEmpty {
604         try visitor.visitRepeatedStringField(value: _storage._accept, fieldNumber: 1)
605       }
606       if !_storage._maxSize.isEmpty {
607         try visitor.visitSingularStringField(value: _storage._maxSize, fieldNumber: 2)
608       }
609       if let v = _storage._protocols {
610         try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
611       }
612       if _storage._supportsSubscription != false {
613         try visitor.visitSingularBoolField(value: _storage._supportsSubscription, fieldNumber: 4)
614       }
615     }
616     try unknownFields.traverse(visitor: &visitor)
617   }
618 
619   fileprivate var _storage = _StorageClass.defaultInstance
620 }
621 
622 public struct Discovery_V1_Method: SwiftProtobuf.Message {
623   public static let protoMessageName: String = _protobuf_package + ".Method"
624 
625   public var id: String {
626     get {return _storage._id}
627     set {_uniqueStorage()._id = newValue}
628   }
629 
630   public var path: String {
631     get {return _storage._path}
632     set {_uniqueStorage()._path = newValue}
633   }
634 
635   public var httpMethod: String {
636     get {return _storage._httpMethod}
637     set {_uniqueStorage()._httpMethod = newValue}
638   }
639 
640   public var description_p: String {
641     get {return _storage._description_p}
642     set {_uniqueStorage()._description_p = newValue}
643   }
644 
645   public var parameters: Discovery_V1_Parameters {
646     get {return _storage._parameters ?? Discovery_V1_Parameters()}
647     set {_uniqueStorage()._parameters = newValue}
648   }
649   /// Returns true if `parameters` has been explicitly set.
650   public var hasParameters: Bool {return _storage._parameters != nil}
651   /// Clears the value of `parameters`. Subsequent reads from it will return its default value.
clearParametersnull652   public mutating func clearParameters() {_storage._parameters = nil}
653 
654   public var parameterOrder: [String] {
655     get {return _storage._parameterOrder}
656     set {_uniqueStorage()._parameterOrder = newValue}
657   }
658 
659   public var request: Discovery_V1_Request {
660     get {return _storage._request ?? Discovery_V1_Request()}
661     set {_uniqueStorage()._request = newValue}
662   }
663   /// Returns true if `request` has been explicitly set.
664   public var hasRequest: Bool {return _storage._request != nil}
665   /// Clears the value of `request`. Subsequent reads from it will return its default value.
clearRequestnull666   public mutating func clearRequest() {_storage._request = nil}
667 
668   public var response: Discovery_V1_Response {
669     get {return _storage._response ?? Discovery_V1_Response()}
670     set {_uniqueStorage()._response = newValue}
671   }
672   /// Returns true if `response` has been explicitly set.
673   public var hasResponse: Bool {return _storage._response != nil}
674   /// Clears the value of `response`. Subsequent reads from it will return its default value.
clearResponsenull675   public mutating func clearResponse() {_storage._response = nil}
676 
677   public var scopes: [String] {
678     get {return _storage._scopes}
679     set {_uniqueStorage()._scopes = newValue}
680   }
681 
682   public var supportsMediaDownload: Bool {
683     get {return _storage._supportsMediaDownload}
684     set {_uniqueStorage()._supportsMediaDownload = newValue}
685   }
686 
687   public var supportsMediaUpload: Bool {
688     get {return _storage._supportsMediaUpload}
689     set {_uniqueStorage()._supportsMediaUpload = newValue}
690   }
691 
692   public var useMediaDownloadService: Bool {
693     get {return _storage._useMediaDownloadService}
694     set {_uniqueStorage()._useMediaDownloadService = newValue}
695   }
696 
697   public var mediaUpload: Discovery_V1_MediaUpload {
698     get {return _storage._mediaUpload ?? Discovery_V1_MediaUpload()}
699     set {_uniqueStorage()._mediaUpload = newValue}
700   }
701   /// Returns true if `mediaUpload` has been explicitly set.
702   public var hasMediaUpload: Bool {return _storage._mediaUpload != nil}
703   /// Clears the value of `mediaUpload`. Subsequent reads from it will return its default value.
clearMediaUploadnull704   public mutating func clearMediaUpload() {_storage._mediaUpload = nil}
705 
706   public var supportsSubscription: Bool {
707     get {return _storage._supportsSubscription}
708     set {_uniqueStorage()._supportsSubscription = newValue}
709   }
710 
711   public var flatPath: String {
712     get {return _storage._flatPath}
713     set {_uniqueStorage()._flatPath = newValue}
714   }
715 
716   public var etagRequired: Bool {
717     get {return _storage._etagRequired}
718     set {_uniqueStorage()._etagRequired = newValue}
719   }
720 
721   public var unknownFields = SwiftProtobuf.UnknownStorage()
722 
723   public init() {}
724 
725   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
726   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
727   /// initializers are defined in the SwiftProtobuf library. See the Message and
728   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null729   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
730     _ = _uniqueStorage()
731     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
732       while let fieldNumber = try decoder.nextFieldNumber() {
733         switch fieldNumber {
734         case 1: try decoder.decodeSingularStringField(value: &_storage._id)
735         case 2: try decoder.decodeSingularStringField(value: &_storage._path)
736         case 3: try decoder.decodeSingularStringField(value: &_storage._httpMethod)
737         case 4: try decoder.decodeSingularStringField(value: &_storage._description_p)
738         case 5: try decoder.decodeSingularMessageField(value: &_storage._parameters)
739         case 6: try decoder.decodeRepeatedStringField(value: &_storage._parameterOrder)
740         case 7: try decoder.decodeSingularMessageField(value: &_storage._request)
741         case 8: try decoder.decodeSingularMessageField(value: &_storage._response)
742         case 9: try decoder.decodeRepeatedStringField(value: &_storage._scopes)
743         case 10: try decoder.decodeSingularBoolField(value: &_storage._supportsMediaDownload)
744         case 11: try decoder.decodeSingularBoolField(value: &_storage._supportsMediaUpload)
745         case 12: try decoder.decodeSingularBoolField(value: &_storage._useMediaDownloadService)
746         case 13: try decoder.decodeSingularMessageField(value: &_storage._mediaUpload)
747         case 14: try decoder.decodeSingularBoolField(value: &_storage._supportsSubscription)
748         case 15: try decoder.decodeSingularStringField(value: &_storage._flatPath)
749         case 16: try decoder.decodeSingularBoolField(value: &_storage._etagRequired)
750         default: break
751         }
752       }
753     }
754   }
755 
756   /// Used by the encoding methods of the SwiftProtobuf library, not generally
757   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
758   /// other serializer methods are defined in the SwiftProtobuf library. See the
759   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null760   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
761     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
762       if !_storage._id.isEmpty {
763         try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1)
764       }
765       if !_storage._path.isEmpty {
766         try visitor.visitSingularStringField(value: _storage._path, fieldNumber: 2)
767       }
768       if !_storage._httpMethod.isEmpty {
769         try visitor.visitSingularStringField(value: _storage._httpMethod, fieldNumber: 3)
770       }
771       if !_storage._description_p.isEmpty {
772         try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 4)
773       }
774       if let v = _storage._parameters {
775         try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
776       }
777       if !_storage._parameterOrder.isEmpty {
778         try visitor.visitRepeatedStringField(value: _storage._parameterOrder, fieldNumber: 6)
779       }
780       if let v = _storage._request {
781         try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
782       }
783       if let v = _storage._response {
784         try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
785       }
786       if !_storage._scopes.isEmpty {
787         try visitor.visitRepeatedStringField(value: _storage._scopes, fieldNumber: 9)
788       }
789       if _storage._supportsMediaDownload != false {
790         try visitor.visitSingularBoolField(value: _storage._supportsMediaDownload, fieldNumber: 10)
791       }
792       if _storage._supportsMediaUpload != false {
793         try visitor.visitSingularBoolField(value: _storage._supportsMediaUpload, fieldNumber: 11)
794       }
795       if _storage._useMediaDownloadService != false {
796         try visitor.visitSingularBoolField(value: _storage._useMediaDownloadService, fieldNumber: 12)
797       }
798       if let v = _storage._mediaUpload {
799         try visitor.visitSingularMessageField(value: v, fieldNumber: 13)
800       }
801       if _storage._supportsSubscription != false {
802         try visitor.visitSingularBoolField(value: _storage._supportsSubscription, fieldNumber: 14)
803       }
804       if !_storage._flatPath.isEmpty {
805         try visitor.visitSingularStringField(value: _storage._flatPath, fieldNumber: 15)
806       }
807       if _storage._etagRequired != false {
808         try visitor.visitSingularBoolField(value: _storage._etagRequired, fieldNumber: 16)
809       }
810     }
811     try unknownFields.traverse(visitor: &visitor)
812   }
813 
814   fileprivate var _storage = _StorageClass.defaultInstance
815 }
816 
817 public struct Discovery_V1_Methods: SwiftProtobuf.Message {
818   public static let protoMessageName: String = _protobuf_package + ".Methods"
819 
820   public var additionalProperties: [Discovery_V1_NamedMethod] = []
821 
822   public var unknownFields = SwiftProtobuf.UnknownStorage()
823 
824   public init() {}
825 
826   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
827   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
828   /// initializers are defined in the SwiftProtobuf library. See the Message and
829   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null830   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
831     while let fieldNumber = try decoder.nextFieldNumber() {
832       switch fieldNumber {
833       case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
834       default: break
835       }
836     }
837   }
838 
839   /// Used by the encoding methods of the SwiftProtobuf library, not generally
840   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
841   /// other serializer methods are defined in the SwiftProtobuf library. See the
842   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null843   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
844     if !self.additionalProperties.isEmpty {
845       try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
846     }
847     try unknownFields.traverse(visitor: &visitor)
848   }
849 }
850 
851 /// Automatically-generated message used to represent maps of Method as ordered (name,value) pairs.
852 public struct Discovery_V1_NamedMethod: SwiftProtobuf.Message {
853   public static let protoMessageName: String = _protobuf_package + ".NamedMethod"
854 
855   /// Map key
856   public var name: String {
857     get {return _storage._name}
858     set {_uniqueStorage()._name = newValue}
859   }
860 
861   /// Mapped value
862   public var value: Discovery_V1_Method {
863     get {return _storage._value ?? Discovery_V1_Method()}
864     set {_uniqueStorage()._value = newValue}
865   }
866   /// Returns true if `value` has been explicitly set.
867   public var hasValue: Bool {return _storage._value != nil}
868   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull869   public mutating func clearValue() {_storage._value = nil}
870 
871   public var unknownFields = SwiftProtobuf.UnknownStorage()
872 
873   public init() {}
874 
875   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
876   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
877   /// initializers are defined in the SwiftProtobuf library. See the Message and
878   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null879   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
880     _ = _uniqueStorage()
881     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
882       while let fieldNumber = try decoder.nextFieldNumber() {
883         switch fieldNumber {
884         case 1: try decoder.decodeSingularStringField(value: &_storage._name)
885         case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
886         default: break
887         }
888       }
889     }
890   }
891 
892   /// Used by the encoding methods of the SwiftProtobuf library, not generally
893   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
894   /// other serializer methods are defined in the SwiftProtobuf library. See the
895   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null896   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
897     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
898       if !_storage._name.isEmpty {
899         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
900       }
901       if let v = _storage._value {
902         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
903       }
904     }
905     try unknownFields.traverse(visitor: &visitor)
906   }
907 
908   fileprivate var _storage = _StorageClass.defaultInstance
909 }
910 
911 /// Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs.
912 public struct Discovery_V1_NamedParameter: SwiftProtobuf.Message {
913   public static let protoMessageName: String = _protobuf_package + ".NamedParameter"
914 
915   /// Map key
916   public var name: String {
917     get {return _storage._name}
918     set {_uniqueStorage()._name = newValue}
919   }
920 
921   /// Mapped value
922   public var value: Discovery_V1_Parameter {
923     get {return _storage._value ?? Discovery_V1_Parameter()}
924     set {_uniqueStorage()._value = newValue}
925   }
926   /// Returns true if `value` has been explicitly set.
927   public var hasValue: Bool {return _storage._value != nil}
928   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull929   public mutating func clearValue() {_storage._value = nil}
930 
931   public var unknownFields = SwiftProtobuf.UnknownStorage()
932 
933   public init() {}
934 
935   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
936   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
937   /// initializers are defined in the SwiftProtobuf library. See the Message and
938   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null939   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
940     _ = _uniqueStorage()
941     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
942       while let fieldNumber = try decoder.nextFieldNumber() {
943         switch fieldNumber {
944         case 1: try decoder.decodeSingularStringField(value: &_storage._name)
945         case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
946         default: break
947         }
948       }
949     }
950   }
951 
952   /// Used by the encoding methods of the SwiftProtobuf library, not generally
953   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
954   /// other serializer methods are defined in the SwiftProtobuf library. See the
955   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null956   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
957     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
958       if !_storage._name.isEmpty {
959         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
960       }
961       if let v = _storage._value {
962         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
963       }
964     }
965     try unknownFields.traverse(visitor: &visitor)
966   }
967 
968   fileprivate var _storage = _StorageClass.defaultInstance
969 }
970 
971 /// Automatically-generated message used to represent maps of Resource as ordered (name,value) pairs.
972 public struct Discovery_V1_NamedResource: SwiftProtobuf.Message {
973   public static let protoMessageName: String = _protobuf_package + ".NamedResource"
974 
975   /// Map key
976   public var name: String {
977     get {return _storage._name}
978     set {_uniqueStorage()._name = newValue}
979   }
980 
981   /// Mapped value
982   public var value: Discovery_V1_Resource {
983     get {return _storage._value ?? Discovery_V1_Resource()}
984     set {_uniqueStorage()._value = newValue}
985   }
986   /// Returns true if `value` has been explicitly set.
987   public var hasValue: Bool {return _storage._value != nil}
988   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull989   public mutating func clearValue() {_storage._value = nil}
990 
991   public var unknownFields = SwiftProtobuf.UnknownStorage()
992 
993   public init() {}
994 
995   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
996   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
997   /// initializers are defined in the SwiftProtobuf library. See the Message and
998   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null999   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1000     _ = _uniqueStorage()
1001     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1002       while let fieldNumber = try decoder.nextFieldNumber() {
1003         switch fieldNumber {
1004         case 1: try decoder.decodeSingularStringField(value: &_storage._name)
1005         case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
1006         default: break
1007         }
1008       }
1009     }
1010   }
1011 
1012   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1013   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1014   /// other serializer methods are defined in the SwiftProtobuf library. See the
1015   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1016   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1017     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1018       if !_storage._name.isEmpty {
1019         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
1020       }
1021       if let v = _storage._value {
1022         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1023       }
1024     }
1025     try unknownFields.traverse(visitor: &visitor)
1026   }
1027 
1028   fileprivate var _storage = _StorageClass.defaultInstance
1029 }
1030 
1031 /// Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs.
1032 public struct Discovery_V1_NamedSchema: SwiftProtobuf.Message {
1033   public static let protoMessageName: String = _protobuf_package + ".NamedSchema"
1034 
1035   /// Map key
1036   public var name: String {
1037     get {return _storage._name}
1038     set {_uniqueStorage()._name = newValue}
1039   }
1040 
1041   /// Mapped value
1042   public var value: Discovery_V1_Schema {
1043     get {return _storage._value ?? Discovery_V1_Schema()}
1044     set {_uniqueStorage()._value = newValue}
1045   }
1046   /// Returns true if `value` has been explicitly set.
1047   public var hasValue: Bool {return _storage._value != nil}
1048   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull1049   public mutating func clearValue() {_storage._value = nil}
1050 
1051   public var unknownFields = SwiftProtobuf.UnknownStorage()
1052 
1053   public init() {}
1054 
1055   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1056   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1057   /// initializers are defined in the SwiftProtobuf library. See the Message and
1058   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1059   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1060     _ = _uniqueStorage()
1061     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1062       while let fieldNumber = try decoder.nextFieldNumber() {
1063         switch fieldNumber {
1064         case 1: try decoder.decodeSingularStringField(value: &_storage._name)
1065         case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
1066         default: break
1067         }
1068       }
1069     }
1070   }
1071 
1072   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1073   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1074   /// other serializer methods are defined in the SwiftProtobuf library. See the
1075   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1076   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1077     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1078       if !_storage._name.isEmpty {
1079         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
1080       }
1081       if let v = _storage._value {
1082         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1083       }
1084     }
1085     try unknownFields.traverse(visitor: &visitor)
1086   }
1087 
1088   fileprivate var _storage = _StorageClass.defaultInstance
1089 }
1090 
1091 /// Automatically-generated message used to represent maps of Scope as ordered (name,value) pairs.
1092 public struct Discovery_V1_NamedScope: SwiftProtobuf.Message {
1093   public static let protoMessageName: String = _protobuf_package + ".NamedScope"
1094 
1095   /// Map key
1096   public var name: String {
1097     get {return _storage._name}
1098     set {_uniqueStorage()._name = newValue}
1099   }
1100 
1101   /// Mapped value
1102   public var value: Discovery_V1_Scope {
1103     get {return _storage._value ?? Discovery_V1_Scope()}
1104     set {_uniqueStorage()._value = newValue}
1105   }
1106   /// Returns true if `value` has been explicitly set.
1107   public var hasValue: Bool {return _storage._value != nil}
1108   /// Clears the value of `value`. Subsequent reads from it will return its default value.
clearValuenull1109   public mutating func clearValue() {_storage._value = nil}
1110 
1111   public var unknownFields = SwiftProtobuf.UnknownStorage()
1112 
1113   public init() {}
1114 
1115   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1116   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1117   /// initializers are defined in the SwiftProtobuf library. See the Message and
1118   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1119   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1120     _ = _uniqueStorage()
1121     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1122       while let fieldNumber = try decoder.nextFieldNumber() {
1123         switch fieldNumber {
1124         case 1: try decoder.decodeSingularStringField(value: &_storage._name)
1125         case 2: try decoder.decodeSingularMessageField(value: &_storage._value)
1126         default: break
1127         }
1128       }
1129     }
1130   }
1131 
1132   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1133   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1134   /// other serializer methods are defined in the SwiftProtobuf library. See the
1135   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1136   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1137     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1138       if !_storage._name.isEmpty {
1139         try visitor.visitSingularStringField(value: _storage._name, fieldNumber: 1)
1140       }
1141       if let v = _storage._value {
1142         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1143       }
1144     }
1145     try unknownFields.traverse(visitor: &visitor)
1146   }
1147 
1148   fileprivate var _storage = _StorageClass.defaultInstance
1149 }
1150 
1151 public struct Discovery_V1_Oauth2: SwiftProtobuf.Message {
1152   public static let protoMessageName: String = _protobuf_package + ".Oauth2"
1153 
1154   public var scopes: Discovery_V1_Scopes {
1155     get {return _storage._scopes ?? Discovery_V1_Scopes()}
1156     set {_uniqueStorage()._scopes = newValue}
1157   }
1158   /// Returns true if `scopes` has been explicitly set.
1159   public var hasScopes: Bool {return _storage._scopes != nil}
1160   /// Clears the value of `scopes`. Subsequent reads from it will return its default value.
clearScopesnull1161   public mutating func clearScopes() {_storage._scopes = nil}
1162 
1163   public var unknownFields = SwiftProtobuf.UnknownStorage()
1164 
1165   public init() {}
1166 
1167   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1168   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1169   /// initializers are defined in the SwiftProtobuf library. See the Message and
1170   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1171   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1172     _ = _uniqueStorage()
1173     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1174       while let fieldNumber = try decoder.nextFieldNumber() {
1175         switch fieldNumber {
1176         case 1: try decoder.decodeSingularMessageField(value: &_storage._scopes)
1177         default: break
1178         }
1179       }
1180     }
1181   }
1182 
1183   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1184   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1185   /// other serializer methods are defined in the SwiftProtobuf library. See the
1186   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1187   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1188     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1189       if let v = _storage._scopes {
1190         try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1191       }
1192     }
1193     try unknownFields.traverse(visitor: &visitor)
1194   }
1195 
1196   fileprivate var _storage = _StorageClass.defaultInstance
1197 }
1198 
1199 public struct Discovery_V1_Parameter: SwiftProtobuf.Message {
1200   public static let protoMessageName: String = _protobuf_package + ".Parameter"
1201 
1202   public var id: String {
1203     get {return _storage._id}
1204     set {_uniqueStorage()._id = newValue}
1205   }
1206 
1207   public var type: String {
1208     get {return _storage._type}
1209     set {_uniqueStorage()._type = newValue}
1210   }
1211 
1212   public var ref: String {
1213     get {return _storage._ref}
1214     set {_uniqueStorage()._ref = newValue}
1215   }
1216 
1217   public var description_p: String {
1218     get {return _storage._description_p}
1219     set {_uniqueStorage()._description_p = newValue}
1220   }
1221 
1222   public var `default`: String {
1223     get {return _storage._default}
1224     set {_uniqueStorage()._default = newValue}
1225   }
1226 
1227   public var required: Bool {
1228     get {return _storage._required}
1229     set {_uniqueStorage()._required = newValue}
1230   }
1231 
1232   public var format: String {
1233     get {return _storage._format}
1234     set {_uniqueStorage()._format = newValue}
1235   }
1236 
1237   public var pattern: String {
1238     get {return _storage._pattern}
1239     set {_uniqueStorage()._pattern = newValue}
1240   }
1241 
1242   public var minimum: String {
1243     get {return _storage._minimum}
1244     set {_uniqueStorage()._minimum = newValue}
1245   }
1246 
1247   public var maximum: String {
1248     get {return _storage._maximum}
1249     set {_uniqueStorage()._maximum = newValue}
1250   }
1251 
1252   public var `enum`: [String] {
1253     get {return _storage._enum}
1254     set {_uniqueStorage()._enum = newValue}
1255   }
1256 
1257   public var enumDescriptions: [String] {
1258     get {return _storage._enumDescriptions}
1259     set {_uniqueStorage()._enumDescriptions = newValue}
1260   }
1261 
1262   public var repeated: Bool {
1263     get {return _storage._repeated}
1264     set {_uniqueStorage()._repeated = newValue}
1265   }
1266 
1267   public var location: String {
1268     get {return _storage._location}
1269     set {_uniqueStorage()._location = newValue}
1270   }
1271 
1272   public var properties: Discovery_V1_Schemas {
1273     get {return _storage._properties ?? Discovery_V1_Schemas()}
1274     set {_uniqueStorage()._properties = newValue}
1275   }
1276   /// Returns true if `properties` has been explicitly set.
1277   public var hasProperties: Bool {return _storage._properties != nil}
1278   /// Clears the value of `properties`. Subsequent reads from it will return its default value.
clearPropertiesnull1279   public mutating func clearProperties() {_storage._properties = nil}
1280 
1281   public var additionalProperties: Discovery_V1_Schema {
1282     get {return _storage._additionalProperties ?? Discovery_V1_Schema()}
1283     set {_uniqueStorage()._additionalProperties = newValue}
1284   }
1285   /// Returns true if `additionalProperties` has been explicitly set.
1286   public var hasAdditionalProperties: Bool {return _storage._additionalProperties != nil}
1287   /// Clears the value of `additionalProperties`. Subsequent reads from it will return its default value.
clearAdditionalPropertiesnull1288   public mutating func clearAdditionalProperties() {_storage._additionalProperties = nil}
1289 
1290   public var items: Discovery_V1_Schema {
1291     get {return _storage._items ?? Discovery_V1_Schema()}
1292     set {_uniqueStorage()._items = newValue}
1293   }
1294   /// Returns true if `items` has been explicitly set.
1295   public var hasItems: Bool {return _storage._items != nil}
1296   /// Clears the value of `items`. Subsequent reads from it will return its default value.
clearItemsnull1297   public mutating func clearItems() {_storage._items = nil}
1298 
1299   public var annotations: Discovery_V1_Annotations {
1300     get {return _storage._annotations ?? Discovery_V1_Annotations()}
1301     set {_uniqueStorage()._annotations = newValue}
1302   }
1303   /// Returns true if `annotations` has been explicitly set.
1304   public var hasAnnotations: Bool {return _storage._annotations != nil}
1305   /// Clears the value of `annotations`. Subsequent reads from it will return its default value.
clearAnnotationsnull1306   public mutating func clearAnnotations() {_storage._annotations = nil}
1307 
1308   public var unknownFields = SwiftProtobuf.UnknownStorage()
1309 
1310   public init() {}
1311 
1312   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1313   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1314   /// initializers are defined in the SwiftProtobuf library. See the Message and
1315   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1316   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1317     _ = _uniqueStorage()
1318     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1319       while let fieldNumber = try decoder.nextFieldNumber() {
1320         switch fieldNumber {
1321         case 1: try decoder.decodeSingularStringField(value: &_storage._id)
1322         case 2: try decoder.decodeSingularStringField(value: &_storage._type)
1323         case 3: try decoder.decodeSingularStringField(value: &_storage._ref)
1324         case 4: try decoder.decodeSingularStringField(value: &_storage._description_p)
1325         case 5: try decoder.decodeSingularStringField(value: &_storage._default)
1326         case 6: try decoder.decodeSingularBoolField(value: &_storage._required)
1327         case 7: try decoder.decodeSingularStringField(value: &_storage._format)
1328         case 8: try decoder.decodeSingularStringField(value: &_storage._pattern)
1329         case 9: try decoder.decodeSingularStringField(value: &_storage._minimum)
1330         case 10: try decoder.decodeSingularStringField(value: &_storage._maximum)
1331         case 11: try decoder.decodeRepeatedStringField(value: &_storage._enum)
1332         case 12: try decoder.decodeRepeatedStringField(value: &_storage._enumDescriptions)
1333         case 13: try decoder.decodeSingularBoolField(value: &_storage._repeated)
1334         case 14: try decoder.decodeSingularStringField(value: &_storage._location)
1335         case 15: try decoder.decodeSingularMessageField(value: &_storage._properties)
1336         case 16: try decoder.decodeSingularMessageField(value: &_storage._additionalProperties)
1337         case 17: try decoder.decodeSingularMessageField(value: &_storage._items)
1338         case 18: try decoder.decodeSingularMessageField(value: &_storage._annotations)
1339         default: break
1340         }
1341       }
1342     }
1343   }
1344 
1345   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1346   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1347   /// other serializer methods are defined in the SwiftProtobuf library. See the
1348   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1349   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1350     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1351       if !_storage._id.isEmpty {
1352         try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1)
1353       }
1354       if !_storage._type.isEmpty {
1355         try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 2)
1356       }
1357       if !_storage._ref.isEmpty {
1358         try visitor.visitSingularStringField(value: _storage._ref, fieldNumber: 3)
1359       }
1360       if !_storage._description_p.isEmpty {
1361         try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 4)
1362       }
1363       if !_storage._default.isEmpty {
1364         try visitor.visitSingularStringField(value: _storage._default, fieldNumber: 5)
1365       }
1366       if _storage._required != false {
1367         try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 6)
1368       }
1369       if !_storage._format.isEmpty {
1370         try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 7)
1371       }
1372       if !_storage._pattern.isEmpty {
1373         try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 8)
1374       }
1375       if !_storage._minimum.isEmpty {
1376         try visitor.visitSingularStringField(value: _storage._minimum, fieldNumber: 9)
1377       }
1378       if !_storage._maximum.isEmpty {
1379         try visitor.visitSingularStringField(value: _storage._maximum, fieldNumber: 10)
1380       }
1381       if !_storage._enum.isEmpty {
1382         try visitor.visitRepeatedStringField(value: _storage._enum, fieldNumber: 11)
1383       }
1384       if !_storage._enumDescriptions.isEmpty {
1385         try visitor.visitRepeatedStringField(value: _storage._enumDescriptions, fieldNumber: 12)
1386       }
1387       if _storage._repeated != false {
1388         try visitor.visitSingularBoolField(value: _storage._repeated, fieldNumber: 13)
1389       }
1390       if !_storage._location.isEmpty {
1391         try visitor.visitSingularStringField(value: _storage._location, fieldNumber: 14)
1392       }
1393       if let v = _storage._properties {
1394         try visitor.visitSingularMessageField(value: v, fieldNumber: 15)
1395       }
1396       if let v = _storage._additionalProperties {
1397         try visitor.visitSingularMessageField(value: v, fieldNumber: 16)
1398       }
1399       if let v = _storage._items {
1400         try visitor.visitSingularMessageField(value: v, fieldNumber: 17)
1401       }
1402       if let v = _storage._annotations {
1403         try visitor.visitSingularMessageField(value: v, fieldNumber: 18)
1404       }
1405     }
1406     try unknownFields.traverse(visitor: &visitor)
1407   }
1408 
1409   fileprivate var _storage = _StorageClass.defaultInstance
1410 }
1411 
1412 public struct Discovery_V1_Parameters: SwiftProtobuf.Message {
1413   public static let protoMessageName: String = _protobuf_package + ".Parameters"
1414 
1415   public var additionalProperties: [Discovery_V1_NamedParameter] = []
1416 
1417   public var unknownFields = SwiftProtobuf.UnknownStorage()
1418 
1419   public init() {}
1420 
1421   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1422   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1423   /// initializers are defined in the SwiftProtobuf library. See the Message and
1424   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1425   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1426     while let fieldNumber = try decoder.nextFieldNumber() {
1427       switch fieldNumber {
1428       case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
1429       default: break
1430       }
1431     }
1432   }
1433 
1434   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1435   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1436   /// other serializer methods are defined in the SwiftProtobuf library. See the
1437   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1438   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1439     if !self.additionalProperties.isEmpty {
1440       try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
1441     }
1442     try unknownFields.traverse(visitor: &visitor)
1443   }
1444 }
1445 
1446 public struct Discovery_V1_Protocols: SwiftProtobuf.Message {
1447   public static let protoMessageName: String = _protobuf_package + ".Protocols"
1448 
1449   public var simple: Discovery_V1_Simple {
1450     get {return _storage._simple ?? Discovery_V1_Simple()}
1451     set {_uniqueStorage()._simple = newValue}
1452   }
1453   /// Returns true if `simple` has been explicitly set.
1454   public var hasSimple: Bool {return _storage._simple != nil}
1455   /// Clears the value of `simple`. Subsequent reads from it will return its default value.
clearSimplenull1456   public mutating func clearSimple() {_storage._simple = nil}
1457 
1458   public var resumable: Discovery_V1_Resumable {
1459     get {return _storage._resumable ?? Discovery_V1_Resumable()}
1460     set {_uniqueStorage()._resumable = newValue}
1461   }
1462   /// Returns true if `resumable` has been explicitly set.
1463   public var hasResumable: Bool {return _storage._resumable != nil}
1464   /// Clears the value of `resumable`. Subsequent reads from it will return its default value.
clearResumablenull1465   public mutating func clearResumable() {_storage._resumable = nil}
1466 
1467   public var unknownFields = SwiftProtobuf.UnknownStorage()
1468 
1469   public init() {}
1470 
1471   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1472   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1473   /// initializers are defined in the SwiftProtobuf library. See the Message and
1474   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1475   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1476     _ = _uniqueStorage()
1477     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1478       while let fieldNumber = try decoder.nextFieldNumber() {
1479         switch fieldNumber {
1480         case 1: try decoder.decodeSingularMessageField(value: &_storage._simple)
1481         case 2: try decoder.decodeSingularMessageField(value: &_storage._resumable)
1482         default: break
1483         }
1484       }
1485     }
1486   }
1487 
1488   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1489   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1490   /// other serializer methods are defined in the SwiftProtobuf library. See the
1491   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1492   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1493     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1494       if let v = _storage._simple {
1495         try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1496       }
1497       if let v = _storage._resumable {
1498         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1499       }
1500     }
1501     try unknownFields.traverse(visitor: &visitor)
1502   }
1503 
1504   fileprivate var _storage = _StorageClass.defaultInstance
1505 }
1506 
1507 public struct Discovery_V1_Request: SwiftProtobuf.Message {
1508   public static let protoMessageName: String = _protobuf_package + ".Request"
1509 
1510   public var ref: String = String()
1511 
1512   public var parameterName: String = String()
1513 
1514   public var unknownFields = SwiftProtobuf.UnknownStorage()
1515 
1516   public init() {}
1517 
1518   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1519   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1520   /// initializers are defined in the SwiftProtobuf library. See the Message and
1521   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1522   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1523     while let fieldNumber = try decoder.nextFieldNumber() {
1524       switch fieldNumber {
1525       case 1: try decoder.decodeSingularStringField(value: &self.ref)
1526       case 2: try decoder.decodeSingularStringField(value: &self.parameterName)
1527       default: break
1528       }
1529     }
1530   }
1531 
1532   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1533   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1534   /// other serializer methods are defined in the SwiftProtobuf library. See the
1535   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1536   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1537     if !self.ref.isEmpty {
1538       try visitor.visitSingularStringField(value: self.ref, fieldNumber: 1)
1539     }
1540     if !self.parameterName.isEmpty {
1541       try visitor.visitSingularStringField(value: self.parameterName, fieldNumber: 2)
1542     }
1543     try unknownFields.traverse(visitor: &visitor)
1544   }
1545 }
1546 
1547 public struct Discovery_V1_Resource: SwiftProtobuf.Message {
1548   public static let protoMessageName: String = _protobuf_package + ".Resource"
1549 
1550   public var methods: Discovery_V1_Methods {
1551     get {return _storage._methods ?? Discovery_V1_Methods()}
1552     set {_uniqueStorage()._methods = newValue}
1553   }
1554   /// Returns true if `methods` has been explicitly set.
1555   public var hasMethods: Bool {return _storage._methods != nil}
1556   /// Clears the value of `methods`. Subsequent reads from it will return its default value.
clearMethodsnull1557   public mutating func clearMethods() {_storage._methods = nil}
1558 
1559   public var resources: Discovery_V1_Resources {
1560     get {return _storage._resources ?? Discovery_V1_Resources()}
1561     set {_uniqueStorage()._resources = newValue}
1562   }
1563   /// Returns true if `resources` has been explicitly set.
1564   public var hasResources: Bool {return _storage._resources != nil}
1565   /// Clears the value of `resources`. Subsequent reads from it will return its default value.
clearResourcesnull1566   public mutating func clearResources() {_storage._resources = nil}
1567 
1568   public var unknownFields = SwiftProtobuf.UnknownStorage()
1569 
1570   public init() {}
1571 
1572   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1573   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1574   /// initializers are defined in the SwiftProtobuf library. See the Message and
1575   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1576   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1577     _ = _uniqueStorage()
1578     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1579       while let fieldNumber = try decoder.nextFieldNumber() {
1580         switch fieldNumber {
1581         case 1: try decoder.decodeSingularMessageField(value: &_storage._methods)
1582         case 2: try decoder.decodeSingularMessageField(value: &_storage._resources)
1583         default: break
1584         }
1585       }
1586     }
1587   }
1588 
1589   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1590   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1591   /// other serializer methods are defined in the SwiftProtobuf library. See the
1592   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1593   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1594     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1595       if let v = _storage._methods {
1596         try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1597       }
1598       if let v = _storage._resources {
1599         try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1600       }
1601     }
1602     try unknownFields.traverse(visitor: &visitor)
1603   }
1604 
1605   fileprivate var _storage = _StorageClass.defaultInstance
1606 }
1607 
1608 public struct Discovery_V1_Resources: SwiftProtobuf.Message {
1609   public static let protoMessageName: String = _protobuf_package + ".Resources"
1610 
1611   public var additionalProperties: [Discovery_V1_NamedResource] = []
1612 
1613   public var unknownFields = SwiftProtobuf.UnknownStorage()
1614 
1615   public init() {}
1616 
1617   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1618   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1619   /// initializers are defined in the SwiftProtobuf library. See the Message and
1620   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1621   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1622     while let fieldNumber = try decoder.nextFieldNumber() {
1623       switch fieldNumber {
1624       case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
1625       default: break
1626       }
1627     }
1628   }
1629 
1630   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1631   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1632   /// other serializer methods are defined in the SwiftProtobuf library. See the
1633   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1634   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1635     if !self.additionalProperties.isEmpty {
1636       try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
1637     }
1638     try unknownFields.traverse(visitor: &visitor)
1639   }
1640 }
1641 
1642 public struct Discovery_V1_Response: SwiftProtobuf.Message {
1643   public static let protoMessageName: String = _protobuf_package + ".Response"
1644 
1645   public var ref: String = String()
1646 
1647   public var unknownFields = SwiftProtobuf.UnknownStorage()
1648 
1649   public init() {}
1650 
1651   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1652   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1653   /// initializers are defined in the SwiftProtobuf library. See the Message and
1654   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1655   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1656     while let fieldNumber = try decoder.nextFieldNumber() {
1657       switch fieldNumber {
1658       case 1: try decoder.decodeSingularStringField(value: &self.ref)
1659       default: break
1660       }
1661     }
1662   }
1663 
1664   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1665   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1666   /// other serializer methods are defined in the SwiftProtobuf library. See the
1667   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1668   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1669     if !self.ref.isEmpty {
1670       try visitor.visitSingularStringField(value: self.ref, fieldNumber: 1)
1671     }
1672     try unknownFields.traverse(visitor: &visitor)
1673   }
1674 }
1675 
1676 public struct Discovery_V1_Resumable: SwiftProtobuf.Message {
1677   public static let protoMessageName: String = _protobuf_package + ".Resumable"
1678 
1679   public var multipart: Bool = false
1680 
1681   public var path: String = String()
1682 
1683   public var unknownFields = SwiftProtobuf.UnknownStorage()
1684 
1685   public init() {}
1686 
1687   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1688   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1689   /// initializers are defined in the SwiftProtobuf library. See the Message and
1690   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1691   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1692     while let fieldNumber = try decoder.nextFieldNumber() {
1693       switch fieldNumber {
1694       case 1: try decoder.decodeSingularBoolField(value: &self.multipart)
1695       case 2: try decoder.decodeSingularStringField(value: &self.path)
1696       default: break
1697       }
1698     }
1699   }
1700 
1701   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1702   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1703   /// other serializer methods are defined in the SwiftProtobuf library. See the
1704   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1705   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1706     if self.multipart != false {
1707       try visitor.visitSingularBoolField(value: self.multipart, fieldNumber: 1)
1708     }
1709     if !self.path.isEmpty {
1710       try visitor.visitSingularStringField(value: self.path, fieldNumber: 2)
1711     }
1712     try unknownFields.traverse(visitor: &visitor)
1713   }
1714 }
1715 
1716 public struct Discovery_V1_Schema: SwiftProtobuf.Message {
1717   public static let protoMessageName: String = _protobuf_package + ".Schema"
1718 
1719   public var id: String {
1720     get {return _storage._id}
1721     set {_uniqueStorage()._id = newValue}
1722   }
1723 
1724   public var type: String {
1725     get {return _storage._type}
1726     set {_uniqueStorage()._type = newValue}
1727   }
1728 
1729   public var description_p: String {
1730     get {return _storage._description_p}
1731     set {_uniqueStorage()._description_p = newValue}
1732   }
1733 
1734   public var `default`: String {
1735     get {return _storage._default}
1736     set {_uniqueStorage()._default = newValue}
1737   }
1738 
1739   public var required: Bool {
1740     get {return _storage._required}
1741     set {_uniqueStorage()._required = newValue}
1742   }
1743 
1744   public var format: String {
1745     get {return _storage._format}
1746     set {_uniqueStorage()._format = newValue}
1747   }
1748 
1749   public var pattern: String {
1750     get {return _storage._pattern}
1751     set {_uniqueStorage()._pattern = newValue}
1752   }
1753 
1754   public var minimum: String {
1755     get {return _storage._minimum}
1756     set {_uniqueStorage()._minimum = newValue}
1757   }
1758 
1759   public var maximum: String {
1760     get {return _storage._maximum}
1761     set {_uniqueStorage()._maximum = newValue}
1762   }
1763 
1764   public var `enum`: [String] {
1765     get {return _storage._enum}
1766     set {_uniqueStorage()._enum = newValue}
1767   }
1768 
1769   public var enumDescriptions: [String] {
1770     get {return _storage._enumDescriptions}
1771     set {_uniqueStorage()._enumDescriptions = newValue}
1772   }
1773 
1774   public var repeated: Bool {
1775     get {return _storage._repeated}
1776     set {_uniqueStorage()._repeated = newValue}
1777   }
1778 
1779   public var location: String {
1780     get {return _storage._location}
1781     set {_uniqueStorage()._location = newValue}
1782   }
1783 
1784   public var properties: Discovery_V1_Schemas {
1785     get {return _storage._properties ?? Discovery_V1_Schemas()}
1786     set {_uniqueStorage()._properties = newValue}
1787   }
1788   /// Returns true if `properties` has been explicitly set.
1789   public var hasProperties: Bool {return _storage._properties != nil}
1790   /// Clears the value of `properties`. Subsequent reads from it will return its default value.
clearPropertiesnull1791   public mutating func clearProperties() {_storage._properties = nil}
1792 
1793   public var additionalProperties: Discovery_V1_Schema {
1794     get {return _storage._additionalProperties ?? Discovery_V1_Schema()}
1795     set {_uniqueStorage()._additionalProperties = newValue}
1796   }
1797   /// Returns true if `additionalProperties` has been explicitly set.
1798   public var hasAdditionalProperties: Bool {return _storage._additionalProperties != nil}
1799   /// Clears the value of `additionalProperties`. Subsequent reads from it will return its default value.
clearAdditionalPropertiesnull1800   public mutating func clearAdditionalProperties() {_storage._additionalProperties = nil}
1801 
1802   public var items: Discovery_V1_Schema {
1803     get {return _storage._items ?? Discovery_V1_Schema()}
1804     set {_uniqueStorage()._items = newValue}
1805   }
1806   /// Returns true if `items` has been explicitly set.
1807   public var hasItems: Bool {return _storage._items != nil}
1808   /// Clears the value of `items`. Subsequent reads from it will return its default value.
clearItemsnull1809   public mutating func clearItems() {_storage._items = nil}
1810 
1811   public var ref: String {
1812     get {return _storage._ref}
1813     set {_uniqueStorage()._ref = newValue}
1814   }
1815 
1816   public var annotations: Discovery_V1_Annotations {
1817     get {return _storage._annotations ?? Discovery_V1_Annotations()}
1818     set {_uniqueStorage()._annotations = newValue}
1819   }
1820   /// Returns true if `annotations` has been explicitly set.
1821   public var hasAnnotations: Bool {return _storage._annotations != nil}
1822   /// Clears the value of `annotations`. Subsequent reads from it will return its default value.
clearAnnotationsnull1823   public mutating func clearAnnotations() {_storage._annotations = nil}
1824 
1825   public var readOnly: Bool {
1826     get {return _storage._readOnly}
1827     set {_uniqueStorage()._readOnly = newValue}
1828   }
1829 
1830   public var unknownFields = SwiftProtobuf.UnknownStorage()
1831 
1832   public init() {}
1833 
1834   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1835   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1836   /// initializers are defined in the SwiftProtobuf library. See the Message and
1837   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1838   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1839     _ = _uniqueStorage()
1840     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1841       while let fieldNumber = try decoder.nextFieldNumber() {
1842         switch fieldNumber {
1843         case 1: try decoder.decodeSingularStringField(value: &_storage._id)
1844         case 2: try decoder.decodeSingularStringField(value: &_storage._type)
1845         case 3: try decoder.decodeSingularStringField(value: &_storage._description_p)
1846         case 4: try decoder.decodeSingularStringField(value: &_storage._default)
1847         case 5: try decoder.decodeSingularBoolField(value: &_storage._required)
1848         case 6: try decoder.decodeSingularStringField(value: &_storage._format)
1849         case 7: try decoder.decodeSingularStringField(value: &_storage._pattern)
1850         case 8: try decoder.decodeSingularStringField(value: &_storage._minimum)
1851         case 9: try decoder.decodeSingularStringField(value: &_storage._maximum)
1852         case 10: try decoder.decodeRepeatedStringField(value: &_storage._enum)
1853         case 11: try decoder.decodeRepeatedStringField(value: &_storage._enumDescriptions)
1854         case 12: try decoder.decodeSingularBoolField(value: &_storage._repeated)
1855         case 13: try decoder.decodeSingularStringField(value: &_storage._location)
1856         case 14: try decoder.decodeSingularMessageField(value: &_storage._properties)
1857         case 15: try decoder.decodeSingularMessageField(value: &_storage._additionalProperties)
1858         case 16: try decoder.decodeSingularMessageField(value: &_storage._items)
1859         case 17: try decoder.decodeSingularStringField(value: &_storage._ref)
1860         case 18: try decoder.decodeSingularMessageField(value: &_storage._annotations)
1861         case 19: try decoder.decodeSingularBoolField(value: &_storage._readOnly)
1862         default: break
1863         }
1864       }
1865     }
1866   }
1867 
1868   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1869   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1870   /// other serializer methods are defined in the SwiftProtobuf library. See the
1871   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1872   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1873     try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1874       if !_storage._id.isEmpty {
1875         try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1)
1876       }
1877       if !_storage._type.isEmpty {
1878         try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 2)
1879       }
1880       if !_storage._description_p.isEmpty {
1881         try visitor.visitSingularStringField(value: _storage._description_p, fieldNumber: 3)
1882       }
1883       if !_storage._default.isEmpty {
1884         try visitor.visitSingularStringField(value: _storage._default, fieldNumber: 4)
1885       }
1886       if _storage._required != false {
1887         try visitor.visitSingularBoolField(value: _storage._required, fieldNumber: 5)
1888       }
1889       if !_storage._format.isEmpty {
1890         try visitor.visitSingularStringField(value: _storage._format, fieldNumber: 6)
1891       }
1892       if !_storage._pattern.isEmpty {
1893         try visitor.visitSingularStringField(value: _storage._pattern, fieldNumber: 7)
1894       }
1895       if !_storage._minimum.isEmpty {
1896         try visitor.visitSingularStringField(value: _storage._minimum, fieldNumber: 8)
1897       }
1898       if !_storage._maximum.isEmpty {
1899         try visitor.visitSingularStringField(value: _storage._maximum, fieldNumber: 9)
1900       }
1901       if !_storage._enum.isEmpty {
1902         try visitor.visitRepeatedStringField(value: _storage._enum, fieldNumber: 10)
1903       }
1904       if !_storage._enumDescriptions.isEmpty {
1905         try visitor.visitRepeatedStringField(value: _storage._enumDescriptions, fieldNumber: 11)
1906       }
1907       if _storage._repeated != false {
1908         try visitor.visitSingularBoolField(value: _storage._repeated, fieldNumber: 12)
1909       }
1910       if !_storage._location.isEmpty {
1911         try visitor.visitSingularStringField(value: _storage._location, fieldNumber: 13)
1912       }
1913       if let v = _storage._properties {
1914         try visitor.visitSingularMessageField(value: v, fieldNumber: 14)
1915       }
1916       if let v = _storage._additionalProperties {
1917         try visitor.visitSingularMessageField(value: v, fieldNumber: 15)
1918       }
1919       if let v = _storage._items {
1920         try visitor.visitSingularMessageField(value: v, fieldNumber: 16)
1921       }
1922       if !_storage._ref.isEmpty {
1923         try visitor.visitSingularStringField(value: _storage._ref, fieldNumber: 17)
1924       }
1925       if let v = _storage._annotations {
1926         try visitor.visitSingularMessageField(value: v, fieldNumber: 18)
1927       }
1928       if _storage._readOnly != false {
1929         try visitor.visitSingularBoolField(value: _storage._readOnly, fieldNumber: 19)
1930       }
1931     }
1932     try unknownFields.traverse(visitor: &visitor)
1933   }
1934 
1935   fileprivate var _storage = _StorageClass.defaultInstance
1936 }
1937 
1938 public struct Discovery_V1_Schemas: SwiftProtobuf.Message {
1939   public static let protoMessageName: String = _protobuf_package + ".Schemas"
1940 
1941   public var additionalProperties: [Discovery_V1_NamedSchema] = []
1942 
1943   public var unknownFields = SwiftProtobuf.UnknownStorage()
1944 
1945   public init() {}
1946 
1947   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1948   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1949   /// initializers are defined in the SwiftProtobuf library. See the Message and
1950   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1951   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1952     while let fieldNumber = try decoder.nextFieldNumber() {
1953       switch fieldNumber {
1954       case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
1955       default: break
1956       }
1957     }
1958   }
1959 
1960   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1961   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1962   /// other serializer methods are defined in the SwiftProtobuf library. See the
1963   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1964   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1965     if !self.additionalProperties.isEmpty {
1966       try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
1967     }
1968     try unknownFields.traverse(visitor: &visitor)
1969   }
1970 }
1971 
1972 public struct Discovery_V1_Scope: SwiftProtobuf.Message {
1973   public static let protoMessageName: String = _protobuf_package + ".Scope"
1974 
1975   public var description_p: String = String()
1976 
1977   public var unknownFields = SwiftProtobuf.UnknownStorage()
1978 
1979   public init() {}
1980 
1981   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
1982   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
1983   /// initializers are defined in the SwiftProtobuf library. See the Message and
1984   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null1985   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1986     while let fieldNumber = try decoder.nextFieldNumber() {
1987       switch fieldNumber {
1988       case 1: try decoder.decodeSingularStringField(value: &self.description_p)
1989       default: break
1990       }
1991     }
1992   }
1993 
1994   /// Used by the encoding methods of the SwiftProtobuf library, not generally
1995   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
1996   /// other serializer methods are defined in the SwiftProtobuf library. See the
1997   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null1998   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1999     if !self.description_p.isEmpty {
2000       try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 1)
2001     }
2002     try unknownFields.traverse(visitor: &visitor)
2003   }
2004 }
2005 
2006 public struct Discovery_V1_Scopes: SwiftProtobuf.Message {
2007   public static let protoMessageName: String = _protobuf_package + ".Scopes"
2008 
2009   public var additionalProperties: [Discovery_V1_NamedScope] = []
2010 
2011   public var unknownFields = SwiftProtobuf.UnknownStorage()
2012 
2013   public init() {}
2014 
2015   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2016   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2017   /// initializers are defined in the SwiftProtobuf library. See the Message and
2018   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null2019   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2020     while let fieldNumber = try decoder.nextFieldNumber() {
2021       switch fieldNumber {
2022       case 1: try decoder.decodeRepeatedMessageField(value: &self.additionalProperties)
2023       default: break
2024       }
2025     }
2026   }
2027 
2028   /// Used by the encoding methods of the SwiftProtobuf library, not generally
2029   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2030   /// other serializer methods are defined in the SwiftProtobuf library. See the
2031   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null2032   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2033     if !self.additionalProperties.isEmpty {
2034       try visitor.visitRepeatedMessageField(value: self.additionalProperties, fieldNumber: 1)
2035     }
2036     try unknownFields.traverse(visitor: &visitor)
2037   }
2038 }
2039 
2040 public struct Discovery_V1_Simple: SwiftProtobuf.Message {
2041   public static let protoMessageName: String = _protobuf_package + ".Simple"
2042 
2043   public var multipart: Bool = false
2044 
2045   public var path: String = String()
2046 
2047   public var unknownFields = SwiftProtobuf.UnknownStorage()
2048 
2049   public init() {}
2050 
2051   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2052   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2053   /// initializers are defined in the SwiftProtobuf library. See the Message and
2054   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null2055   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2056     while let fieldNumber = try decoder.nextFieldNumber() {
2057       switch fieldNumber {
2058       case 1: try decoder.decodeSingularBoolField(value: &self.multipart)
2059       case 2: try decoder.decodeSingularStringField(value: &self.path)
2060       default: break
2061       }
2062     }
2063   }
2064 
2065   /// Used by the encoding methods of the SwiftProtobuf library, not generally
2066   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2067   /// other serializer methods are defined in the SwiftProtobuf library. See the
2068   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null2069   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2070     if self.multipart != false {
2071       try visitor.visitSingularBoolField(value: self.multipart, fieldNumber: 1)
2072     }
2073     if !self.path.isEmpty {
2074       try visitor.visitSingularStringField(value: self.path, fieldNumber: 2)
2075     }
2076     try unknownFields.traverse(visitor: &visitor)
2077   }
2078 }
2079 
2080 public struct Discovery_V1_StringArray: SwiftProtobuf.Message {
2081   public static let protoMessageName: String = _protobuf_package + ".StringArray"
2082 
2083   public var value: [String] = []
2084 
2085   public var unknownFields = SwiftProtobuf.UnknownStorage()
2086 
2087   public init() {}
2088 
2089   /// Used by the decoding initializers in the SwiftProtobuf library, not generally
2090   /// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
2091   /// initializers are defined in the SwiftProtobuf library. See the Message and
2092   /// Message+*Additions` files.
decodeMessage<D: SwiftProtobuf.Decoder>null2093   public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2094     while let fieldNumber = try decoder.nextFieldNumber() {
2095       switch fieldNumber {
2096       case 1: try decoder.decodeRepeatedStringField(value: &self.value)
2097       default: break
2098       }
2099     }
2100   }
2101 
2102   /// Used by the encoding methods of the SwiftProtobuf library, not generally
2103   /// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
2104   /// other serializer methods are defined in the SwiftProtobuf library. See the
2105   /// `Message` and `Message+*Additions` files.
traverse<V: SwiftProtobuf.Visitor>null2106   public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2107     if !self.value.isEmpty {
2108       try visitor.visitRepeatedStringField(value: self.value, fieldNumber: 1)
2109     }
2110     try unknownFields.traverse(visitor: &visitor)
2111   }
2112 }
2113 
2114 // MARK: - Code below here is support for the SwiftProtobuf runtime.
2115 
2116 fileprivate let _protobuf_package = "discovery.v1"
2117 
2118 extension Discovery_V1_Annotations: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2119   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2120     1: .same(proto: "required"),
2121   ]
2122 
_protobuf_generated_isEqualTonull2123   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Annotations) -> Bool {
2124     if self.required != other.required {return false}
2125     if unknownFields != other.unknownFields {return false}
2126     return true
2127   }
2128 }
2129 
2130 extension Discovery_V1_Any: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2131   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2132     1: .same(proto: "value"),
2133     2: .same(proto: "yaml"),
2134   ]
2135 
2136   fileprivate class _StorageClass {
2137     var _value: SwiftProtobuf.Google_Protobuf_Any? = nil
2138     var _yaml: String = String()
2139 
2140     static let defaultInstance = _StorageClass()
2141 
2142     private init() {}
2143 
2144     init(copying source: _StorageClass) {
2145       _value = source._value
2146       _yaml = source._yaml
2147     }
2148   }
2149 
_uniqueStoragenull2150   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2151     if !isKnownUniquelyReferenced(&_storage) {
2152       _storage = _StorageClass(copying: _storage)
2153     }
2154     return _storage
2155   }
2156 
_protobuf_generated_isEqualTonull2157   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Any) -> Bool {
2158     if _storage !== other._storage {
2159       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2160         if _storage._value != other_storage._value {return false}
2161         if _storage._yaml != other_storage._yaml {return false}
2162         return true
2163       }
2164       if !storagesAreEqual {return false}
2165     }
2166     if unknownFields != other.unknownFields {return false}
2167     return true
2168   }
2169 }
2170 
2171 extension Discovery_V1_Auth: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2172   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2173     1: .same(proto: "oauth2"),
2174   ]
2175 
2176   fileprivate class _StorageClass {
2177     var _oauth2: Discovery_V1_Oauth2? = nil
2178 
2179     static let defaultInstance = _StorageClass()
2180 
2181     private init() {}
2182 
2183     init(copying source: _StorageClass) {
2184       _oauth2 = source._oauth2
2185     }
2186   }
2187 
_uniqueStoragenull2188   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2189     if !isKnownUniquelyReferenced(&_storage) {
2190       _storage = _StorageClass(copying: _storage)
2191     }
2192     return _storage
2193   }
2194 
_protobuf_generated_isEqualTonull2195   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Auth) -> Bool {
2196     if _storage !== other._storage {
2197       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2198         if _storage._oauth2 != other_storage._oauth2 {return false}
2199         return true
2200       }
2201       if !storagesAreEqual {return false}
2202     }
2203     if unknownFields != other.unknownFields {return false}
2204     return true
2205   }
2206 }
2207 
2208 extension Discovery_V1_Document: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2209   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2210     1: .same(proto: "kind"),
2211     2: .standard(proto: "discovery_version"),
2212     3: .same(proto: "id"),
2213     4: .same(proto: "name"),
2214     5: .same(proto: "version"),
2215     6: .same(proto: "revision"),
2216     7: .same(proto: "title"),
2217     8: .same(proto: "description"),
2218     9: .same(proto: "icons"),
2219     10: .standard(proto: "documentation_link"),
2220     11: .same(proto: "labels"),
2221     12: .same(proto: "protocol"),
2222     13: .standard(proto: "base_url"),
2223     14: .standard(proto: "base_path"),
2224     15: .standard(proto: "root_url"),
2225     16: .standard(proto: "service_path"),
2226     17: .standard(proto: "batch_path"),
2227     18: .same(proto: "parameters"),
2228     19: .same(proto: "auth"),
2229     20: .same(proto: "features"),
2230     21: .same(proto: "schemas"),
2231     22: .same(proto: "methods"),
2232     23: .same(proto: "resources"),
2233     24: .same(proto: "etag"),
2234     25: .standard(proto: "owner_domain"),
2235     26: .standard(proto: "owner_name"),
2236     27: .standard(proto: "version_module"),
2237     28: .standard(proto: "canonical_name"),
2238     29: .standard(proto: "fully_encode_reserved_expansion"),
2239     30: .standard(proto: "package_path"),
2240   ]
2241 
2242   fileprivate class _StorageClass {
2243     var _kind: String = String()
2244     var _discoveryVersion: String = String()
2245     var _id: String = String()
2246     var _name: String = String()
2247     var _version: String = String()
2248     var _revision: String = String()
2249     var _title: String = String()
2250     var _description_p: String = String()
2251     var _icons: Discovery_V1_Icons? = nil
2252     var _documentationLink: String = String()
2253     var _labels: [String] = []
2254     var _protocol: String = String()
2255     var _baseURL: String = String()
2256     var _basePath: String = String()
2257     var _rootURL: String = String()
2258     var _servicePath: String = String()
2259     var _batchPath: String = String()
2260     var _parameters: Discovery_V1_Parameters? = nil
2261     var _auth: Discovery_V1_Auth? = nil
2262     var _features: [String] = []
2263     var _schemas: Discovery_V1_Schemas? = nil
2264     var _methods: Discovery_V1_Methods? = nil
2265     var _resources: Discovery_V1_Resources? = nil
2266     var _etag: String = String()
2267     var _ownerDomain: String = String()
2268     var _ownerName: String = String()
2269     var _versionModule: Bool = false
2270     var _canonicalName: String = String()
2271     var _fullyEncodeReservedExpansion: Bool = false
2272     var _packagePath: String = String()
2273 
2274     static let defaultInstance = _StorageClass()
2275 
2276     private init() {}
2277 
2278     init(copying source: _StorageClass) {
2279       _kind = source._kind
2280       _discoveryVersion = source._discoveryVersion
2281       _id = source._id
2282       _name = source._name
2283       _version = source._version
2284       _revision = source._revision
2285       _title = source._title
2286       _description_p = source._description_p
2287       _icons = source._icons
2288       _documentationLink = source._documentationLink
2289       _labels = source._labels
2290       _protocol = source._protocol
2291       _baseURL = source._baseURL
2292       _basePath = source._basePath
2293       _rootURL = source._rootURL
2294       _servicePath = source._servicePath
2295       _batchPath = source._batchPath
2296       _parameters = source._parameters
2297       _auth = source._auth
2298       _features = source._features
2299       _schemas = source._schemas
2300       _methods = source._methods
2301       _resources = source._resources
2302       _etag = source._etag
2303       _ownerDomain = source._ownerDomain
2304       _ownerName = source._ownerName
2305       _versionModule = source._versionModule
2306       _canonicalName = source._canonicalName
2307       _fullyEncodeReservedExpansion = source._fullyEncodeReservedExpansion
2308       _packagePath = source._packagePath
2309     }
2310   }
2311 
_uniqueStoragenull2312   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2313     if !isKnownUniquelyReferenced(&_storage) {
2314       _storage = _StorageClass(copying: _storage)
2315     }
2316     return _storage
2317   }
2318 
_protobuf_generated_isEqualTonull2319   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Document) -> Bool {
2320     if _storage !== other._storage {
2321       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2322         if _storage._kind != other_storage._kind {return false}
2323         if _storage._discoveryVersion != other_storage._discoveryVersion {return false}
2324         if _storage._id != other_storage._id {return false}
2325         if _storage._name != other_storage._name {return false}
2326         if _storage._version != other_storage._version {return false}
2327         if _storage._revision != other_storage._revision {return false}
2328         if _storage._title != other_storage._title {return false}
2329         if _storage._description_p != other_storage._description_p {return false}
2330         if _storage._icons != other_storage._icons {return false}
2331         if _storage._documentationLink != other_storage._documentationLink {return false}
2332         if _storage._labels != other_storage._labels {return false}
2333         if _storage._protocol != other_storage._protocol {return false}
2334         if _storage._baseURL != other_storage._baseURL {return false}
2335         if _storage._basePath != other_storage._basePath {return false}
2336         if _storage._rootURL != other_storage._rootURL {return false}
2337         if _storage._servicePath != other_storage._servicePath {return false}
2338         if _storage._batchPath != other_storage._batchPath {return false}
2339         if _storage._parameters != other_storage._parameters {return false}
2340         if _storage._auth != other_storage._auth {return false}
2341         if _storage._features != other_storage._features {return false}
2342         if _storage._schemas != other_storage._schemas {return false}
2343         if _storage._methods != other_storage._methods {return false}
2344         if _storage._resources != other_storage._resources {return false}
2345         if _storage._etag != other_storage._etag {return false}
2346         if _storage._ownerDomain != other_storage._ownerDomain {return false}
2347         if _storage._ownerName != other_storage._ownerName {return false}
2348         if _storage._versionModule != other_storage._versionModule {return false}
2349         if _storage._canonicalName != other_storage._canonicalName {return false}
2350         if _storage._fullyEncodeReservedExpansion != other_storage._fullyEncodeReservedExpansion {return false}
2351         if _storage._packagePath != other_storage._packagePath {return false}
2352         return true
2353       }
2354       if !storagesAreEqual {return false}
2355     }
2356     if unknownFields != other.unknownFields {return false}
2357     return true
2358   }
2359 }
2360 
2361 extension Discovery_V1_Icons: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2362   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2363     1: .same(proto: "x16"),
2364     2: .same(proto: "x32"),
2365   ]
2366 
_protobuf_generated_isEqualTonull2367   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Icons) -> Bool {
2368     if self.x16 != other.x16 {return false}
2369     if self.x32 != other.x32 {return false}
2370     if unknownFields != other.unknownFields {return false}
2371     return true
2372   }
2373 }
2374 
2375 extension Discovery_V1_MediaUpload: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2376   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2377     1: .same(proto: "accept"),
2378     2: .standard(proto: "max_size"),
2379     3: .same(proto: "protocols"),
2380     4: .standard(proto: "supports_subscription"),
2381   ]
2382 
2383   fileprivate class _StorageClass {
2384     var _accept: [String] = []
2385     var _maxSize: String = String()
2386     var _protocols: Discovery_V1_Protocols? = nil
2387     var _supportsSubscription: Bool = false
2388 
2389     static let defaultInstance = _StorageClass()
2390 
2391     private init() {}
2392 
2393     init(copying source: _StorageClass) {
2394       _accept = source._accept
2395       _maxSize = source._maxSize
2396       _protocols = source._protocols
2397       _supportsSubscription = source._supportsSubscription
2398     }
2399   }
2400 
_uniqueStoragenull2401   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2402     if !isKnownUniquelyReferenced(&_storage) {
2403       _storage = _StorageClass(copying: _storage)
2404     }
2405     return _storage
2406   }
2407 
_protobuf_generated_isEqualTonull2408   public func _protobuf_generated_isEqualTo(other: Discovery_V1_MediaUpload) -> Bool {
2409     if _storage !== other._storage {
2410       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2411         if _storage._accept != other_storage._accept {return false}
2412         if _storage._maxSize != other_storage._maxSize {return false}
2413         if _storage._protocols != other_storage._protocols {return false}
2414         if _storage._supportsSubscription != other_storage._supportsSubscription {return false}
2415         return true
2416       }
2417       if !storagesAreEqual {return false}
2418     }
2419     if unknownFields != other.unknownFields {return false}
2420     return true
2421   }
2422 }
2423 
2424 extension Discovery_V1_Method: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2425   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2426     1: .same(proto: "id"),
2427     2: .same(proto: "path"),
2428     3: .standard(proto: "http_method"),
2429     4: .same(proto: "description"),
2430     5: .same(proto: "parameters"),
2431     6: .standard(proto: "parameter_order"),
2432     7: .same(proto: "request"),
2433     8: .same(proto: "response"),
2434     9: .same(proto: "scopes"),
2435     10: .standard(proto: "supports_media_download"),
2436     11: .standard(proto: "supports_media_upload"),
2437     12: .standard(proto: "use_media_download_service"),
2438     13: .standard(proto: "media_upload"),
2439     14: .standard(proto: "supports_subscription"),
2440     15: .standard(proto: "flat_path"),
2441     16: .standard(proto: "etag_required"),
2442   ]
2443 
2444   fileprivate class _StorageClass {
2445     var _id: String = String()
2446     var _path: String = String()
2447     var _httpMethod: String = String()
2448     var _description_p: String = String()
2449     var _parameters: Discovery_V1_Parameters? = nil
2450     var _parameterOrder: [String] = []
2451     var _request: Discovery_V1_Request? = nil
2452     var _response: Discovery_V1_Response? = nil
2453     var _scopes: [String] = []
2454     var _supportsMediaDownload: Bool = false
2455     var _supportsMediaUpload: Bool = false
2456     var _useMediaDownloadService: Bool = false
2457     var _mediaUpload: Discovery_V1_MediaUpload? = nil
2458     var _supportsSubscription: Bool = false
2459     var _flatPath: String = String()
2460     var _etagRequired: Bool = false
2461 
2462     static let defaultInstance = _StorageClass()
2463 
2464     private init() {}
2465 
2466     init(copying source: _StorageClass) {
2467       _id = source._id
2468       _path = source._path
2469       _httpMethod = source._httpMethod
2470       _description_p = source._description_p
2471       _parameters = source._parameters
2472       _parameterOrder = source._parameterOrder
2473       _request = source._request
2474       _response = source._response
2475       _scopes = source._scopes
2476       _supportsMediaDownload = source._supportsMediaDownload
2477       _supportsMediaUpload = source._supportsMediaUpload
2478       _useMediaDownloadService = source._useMediaDownloadService
2479       _mediaUpload = source._mediaUpload
2480       _supportsSubscription = source._supportsSubscription
2481       _flatPath = source._flatPath
2482       _etagRequired = source._etagRequired
2483     }
2484   }
2485 
_uniqueStoragenull2486   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2487     if !isKnownUniquelyReferenced(&_storage) {
2488       _storage = _StorageClass(copying: _storage)
2489     }
2490     return _storage
2491   }
2492 
_protobuf_generated_isEqualTonull2493   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Method) -> Bool {
2494     if _storage !== other._storage {
2495       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2496         if _storage._id != other_storage._id {return false}
2497         if _storage._path != other_storage._path {return false}
2498         if _storage._httpMethod != other_storage._httpMethod {return false}
2499         if _storage._description_p != other_storage._description_p {return false}
2500         if _storage._parameters != other_storage._parameters {return false}
2501         if _storage._parameterOrder != other_storage._parameterOrder {return false}
2502         if _storage._request != other_storage._request {return false}
2503         if _storage._response != other_storage._response {return false}
2504         if _storage._scopes != other_storage._scopes {return false}
2505         if _storage._supportsMediaDownload != other_storage._supportsMediaDownload {return false}
2506         if _storage._supportsMediaUpload != other_storage._supportsMediaUpload {return false}
2507         if _storage._useMediaDownloadService != other_storage._useMediaDownloadService {return false}
2508         if _storage._mediaUpload != other_storage._mediaUpload {return false}
2509         if _storage._supportsSubscription != other_storage._supportsSubscription {return false}
2510         if _storage._flatPath != other_storage._flatPath {return false}
2511         if _storage._etagRequired != other_storage._etagRequired {return false}
2512         return true
2513       }
2514       if !storagesAreEqual {return false}
2515     }
2516     if unknownFields != other.unknownFields {return false}
2517     return true
2518   }
2519 }
2520 
2521 extension Discovery_V1_Methods: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2522   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2523     1: .standard(proto: "additional_properties"),
2524   ]
2525 
_protobuf_generated_isEqualTonull2526   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Methods) -> Bool {
2527     if self.additionalProperties != other.additionalProperties {return false}
2528     if unknownFields != other.unknownFields {return false}
2529     return true
2530   }
2531 }
2532 
2533 extension Discovery_V1_NamedMethod: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2534   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2535     1: .same(proto: "name"),
2536     2: .same(proto: "value"),
2537   ]
2538 
2539   fileprivate class _StorageClass {
2540     var _name: String = String()
2541     var _value: Discovery_V1_Method? = nil
2542 
2543     static let defaultInstance = _StorageClass()
2544 
2545     private init() {}
2546 
2547     init(copying source: _StorageClass) {
2548       _name = source._name
2549       _value = source._value
2550     }
2551   }
2552 
_uniqueStoragenull2553   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2554     if !isKnownUniquelyReferenced(&_storage) {
2555       _storage = _StorageClass(copying: _storage)
2556     }
2557     return _storage
2558   }
2559 
_protobuf_generated_isEqualTonull2560   public func _protobuf_generated_isEqualTo(other: Discovery_V1_NamedMethod) -> Bool {
2561     if _storage !== other._storage {
2562       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2563         if _storage._name != other_storage._name {return false}
2564         if _storage._value != other_storage._value {return false}
2565         return true
2566       }
2567       if !storagesAreEqual {return false}
2568     }
2569     if unknownFields != other.unknownFields {return false}
2570     return true
2571   }
2572 }
2573 
2574 extension Discovery_V1_NamedParameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2575   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2576     1: .same(proto: "name"),
2577     2: .same(proto: "value"),
2578   ]
2579 
2580   fileprivate class _StorageClass {
2581     var _name: String = String()
2582     var _value: Discovery_V1_Parameter? = nil
2583 
2584     static let defaultInstance = _StorageClass()
2585 
2586     private init() {}
2587 
2588     init(copying source: _StorageClass) {
2589       _name = source._name
2590       _value = source._value
2591     }
2592   }
2593 
_uniqueStoragenull2594   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2595     if !isKnownUniquelyReferenced(&_storage) {
2596       _storage = _StorageClass(copying: _storage)
2597     }
2598     return _storage
2599   }
2600 
_protobuf_generated_isEqualTonull2601   public func _protobuf_generated_isEqualTo(other: Discovery_V1_NamedParameter) -> Bool {
2602     if _storage !== other._storage {
2603       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2604         if _storage._name != other_storage._name {return false}
2605         if _storage._value != other_storage._value {return false}
2606         return true
2607       }
2608       if !storagesAreEqual {return false}
2609     }
2610     if unknownFields != other.unknownFields {return false}
2611     return true
2612   }
2613 }
2614 
2615 extension Discovery_V1_NamedResource: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2616   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2617     1: .same(proto: "name"),
2618     2: .same(proto: "value"),
2619   ]
2620 
2621   fileprivate class _StorageClass {
2622     var _name: String = String()
2623     var _value: Discovery_V1_Resource? = nil
2624 
2625     static let defaultInstance = _StorageClass()
2626 
2627     private init() {}
2628 
2629     init(copying source: _StorageClass) {
2630       _name = source._name
2631       _value = source._value
2632     }
2633   }
2634 
_uniqueStoragenull2635   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2636     if !isKnownUniquelyReferenced(&_storage) {
2637       _storage = _StorageClass(copying: _storage)
2638     }
2639     return _storage
2640   }
2641 
_protobuf_generated_isEqualTonull2642   public func _protobuf_generated_isEqualTo(other: Discovery_V1_NamedResource) -> Bool {
2643     if _storage !== other._storage {
2644       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2645         if _storage._name != other_storage._name {return false}
2646         if _storage._value != other_storage._value {return false}
2647         return true
2648       }
2649       if !storagesAreEqual {return false}
2650     }
2651     if unknownFields != other.unknownFields {return false}
2652     return true
2653   }
2654 }
2655 
2656 extension Discovery_V1_NamedSchema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2657   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2658     1: .same(proto: "name"),
2659     2: .same(proto: "value"),
2660   ]
2661 
2662   fileprivate class _StorageClass {
2663     var _name: String = String()
2664     var _value: Discovery_V1_Schema? = nil
2665 
2666     static let defaultInstance = _StorageClass()
2667 
2668     private init() {}
2669 
2670     init(copying source: _StorageClass) {
2671       _name = source._name
2672       _value = source._value
2673     }
2674   }
2675 
_uniqueStoragenull2676   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2677     if !isKnownUniquelyReferenced(&_storage) {
2678       _storage = _StorageClass(copying: _storage)
2679     }
2680     return _storage
2681   }
2682 
_protobuf_generated_isEqualTonull2683   public func _protobuf_generated_isEqualTo(other: Discovery_V1_NamedSchema) -> Bool {
2684     if _storage !== other._storage {
2685       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2686         if _storage._name != other_storage._name {return false}
2687         if _storage._value != other_storage._value {return false}
2688         return true
2689       }
2690       if !storagesAreEqual {return false}
2691     }
2692     if unknownFields != other.unknownFields {return false}
2693     return true
2694   }
2695 }
2696 
2697 extension Discovery_V1_NamedScope: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2698   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2699     1: .same(proto: "name"),
2700     2: .same(proto: "value"),
2701   ]
2702 
2703   fileprivate class _StorageClass {
2704     var _name: String = String()
2705     var _value: Discovery_V1_Scope? = nil
2706 
2707     static let defaultInstance = _StorageClass()
2708 
2709     private init() {}
2710 
2711     init(copying source: _StorageClass) {
2712       _name = source._name
2713       _value = source._value
2714     }
2715   }
2716 
_uniqueStoragenull2717   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2718     if !isKnownUniquelyReferenced(&_storage) {
2719       _storage = _StorageClass(copying: _storage)
2720     }
2721     return _storage
2722   }
2723 
_protobuf_generated_isEqualTonull2724   public func _protobuf_generated_isEqualTo(other: Discovery_V1_NamedScope) -> Bool {
2725     if _storage !== other._storage {
2726       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2727         if _storage._name != other_storage._name {return false}
2728         if _storage._value != other_storage._value {return false}
2729         return true
2730       }
2731       if !storagesAreEqual {return false}
2732     }
2733     if unknownFields != other.unknownFields {return false}
2734     return true
2735   }
2736 }
2737 
2738 extension Discovery_V1_Oauth2: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2739   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2740     1: .same(proto: "scopes"),
2741   ]
2742 
2743   fileprivate class _StorageClass {
2744     var _scopes: Discovery_V1_Scopes? = nil
2745 
2746     static let defaultInstance = _StorageClass()
2747 
2748     private init() {}
2749 
2750     init(copying source: _StorageClass) {
2751       _scopes = source._scopes
2752     }
2753   }
2754 
_uniqueStoragenull2755   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2756     if !isKnownUniquelyReferenced(&_storage) {
2757       _storage = _StorageClass(copying: _storage)
2758     }
2759     return _storage
2760   }
2761 
_protobuf_generated_isEqualTonull2762   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Oauth2) -> Bool {
2763     if _storage !== other._storage {
2764       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2765         if _storage._scopes != other_storage._scopes {return false}
2766         return true
2767       }
2768       if !storagesAreEqual {return false}
2769     }
2770     if unknownFields != other.unknownFields {return false}
2771     return true
2772   }
2773 }
2774 
2775 extension Discovery_V1_Parameter: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2776   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2777     1: .same(proto: "id"),
2778     2: .same(proto: "type"),
2779     3: .standard(proto: "_ref"),
2780     4: .same(proto: "description"),
2781     5: .same(proto: "default"),
2782     6: .same(proto: "required"),
2783     7: .same(proto: "format"),
2784     8: .same(proto: "pattern"),
2785     9: .same(proto: "minimum"),
2786     10: .same(proto: "maximum"),
2787     11: .same(proto: "enum"),
2788     12: .standard(proto: "enum_descriptions"),
2789     13: .same(proto: "repeated"),
2790     14: .same(proto: "location"),
2791     15: .same(proto: "properties"),
2792     16: .standard(proto: "additional_properties"),
2793     17: .same(proto: "items"),
2794     18: .same(proto: "annotations"),
2795   ]
2796 
2797   fileprivate class _StorageClass {
2798     var _id: String = String()
2799     var _type: String = String()
2800     var _ref: String = String()
2801     var _description_p: String = String()
2802     var _default: String = String()
2803     var _required: Bool = false
2804     var _format: String = String()
2805     var _pattern: String = String()
2806     var _minimum: String = String()
2807     var _maximum: String = String()
2808     var _enum: [String] = []
2809     var _enumDescriptions: [String] = []
2810     var _repeated: Bool = false
2811     var _location: String = String()
2812     var _properties: Discovery_V1_Schemas? = nil
2813     var _additionalProperties: Discovery_V1_Schema? = nil
2814     var _items: Discovery_V1_Schema? = nil
2815     var _annotations: Discovery_V1_Annotations? = nil
2816 
2817     static let defaultInstance = _StorageClass()
2818 
2819     private init() {}
2820 
2821     init(copying source: _StorageClass) {
2822       _id = source._id
2823       _type = source._type
2824       _ref = source._ref
2825       _description_p = source._description_p
2826       _default = source._default
2827       _required = source._required
2828       _format = source._format
2829       _pattern = source._pattern
2830       _minimum = source._minimum
2831       _maximum = source._maximum
2832       _enum = source._enum
2833       _enumDescriptions = source._enumDescriptions
2834       _repeated = source._repeated
2835       _location = source._location
2836       _properties = source._properties
2837       _additionalProperties = source._additionalProperties
2838       _items = source._items
2839       _annotations = source._annotations
2840     }
2841   }
2842 
_uniqueStoragenull2843   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2844     if !isKnownUniquelyReferenced(&_storage) {
2845       _storage = _StorageClass(copying: _storage)
2846     }
2847     return _storage
2848   }
2849 
_protobuf_generated_isEqualTonull2850   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Parameter) -> Bool {
2851     if _storage !== other._storage {
2852       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2853         if _storage._id != other_storage._id {return false}
2854         if _storage._type != other_storage._type {return false}
2855         if _storage._ref != other_storage._ref {return false}
2856         if _storage._description_p != other_storage._description_p {return false}
2857         if _storage._default != other_storage._default {return false}
2858         if _storage._required != other_storage._required {return false}
2859         if _storage._format != other_storage._format {return false}
2860         if _storage._pattern != other_storage._pattern {return false}
2861         if _storage._minimum != other_storage._minimum {return false}
2862         if _storage._maximum != other_storage._maximum {return false}
2863         if _storage._enum != other_storage._enum {return false}
2864         if _storage._enumDescriptions != other_storage._enumDescriptions {return false}
2865         if _storage._repeated != other_storage._repeated {return false}
2866         if _storage._location != other_storage._location {return false}
2867         if _storage._properties != other_storage._properties {return false}
2868         if _storage._additionalProperties != other_storage._additionalProperties {return false}
2869         if _storage._items != other_storage._items {return false}
2870         if _storage._annotations != other_storage._annotations {return false}
2871         return true
2872       }
2873       if !storagesAreEqual {return false}
2874     }
2875     if unknownFields != other.unknownFields {return false}
2876     return true
2877   }
2878 }
2879 
2880 extension Discovery_V1_Parameters: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2881   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2882     1: .standard(proto: "additional_properties"),
2883   ]
2884 
_protobuf_generated_isEqualTonull2885   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Parameters) -> Bool {
2886     if self.additionalProperties != other.additionalProperties {return false}
2887     if unknownFields != other.unknownFields {return false}
2888     return true
2889   }
2890 }
2891 
2892 extension Discovery_V1_Protocols: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2893   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2894     1: .same(proto: "simple"),
2895     2: .same(proto: "resumable"),
2896   ]
2897 
2898   fileprivate class _StorageClass {
2899     var _simple: Discovery_V1_Simple? = nil
2900     var _resumable: Discovery_V1_Resumable? = nil
2901 
2902     static let defaultInstance = _StorageClass()
2903 
2904     private init() {}
2905 
2906     init(copying source: _StorageClass) {
2907       _simple = source._simple
2908       _resumable = source._resumable
2909     }
2910   }
2911 
_uniqueStoragenull2912   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2913     if !isKnownUniquelyReferenced(&_storage) {
2914       _storage = _StorageClass(copying: _storage)
2915     }
2916     return _storage
2917   }
2918 
_protobuf_generated_isEqualTonull2919   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Protocols) -> Bool {
2920     if _storage !== other._storage {
2921       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2922         if _storage._simple != other_storage._simple {return false}
2923         if _storage._resumable != other_storage._resumable {return false}
2924         return true
2925       }
2926       if !storagesAreEqual {return false}
2927     }
2928     if unknownFields != other.unknownFields {return false}
2929     return true
2930   }
2931 }
2932 
2933 extension Discovery_V1_Request: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2934   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2935     1: .standard(proto: "_ref"),
2936     2: .standard(proto: "parameter_name"),
2937   ]
2938 
_protobuf_generated_isEqualTonull2939   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Request) -> Bool {
2940     if self.ref != other.ref {return false}
2941     if self.parameterName != other.parameterName {return false}
2942     if unknownFields != other.unknownFields {return false}
2943     return true
2944   }
2945 }
2946 
2947 extension Discovery_V1_Resource: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2948   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2949     1: .same(proto: "methods"),
2950     2: .same(proto: "resources"),
2951   ]
2952 
2953   fileprivate class _StorageClass {
2954     var _methods: Discovery_V1_Methods? = nil
2955     var _resources: Discovery_V1_Resources? = nil
2956 
2957     static let defaultInstance = _StorageClass()
2958 
2959     private init() {}
2960 
2961     init(copying source: _StorageClass) {
2962       _methods = source._methods
2963       _resources = source._resources
2964     }
2965   }
2966 
_uniqueStoragenull2967   fileprivate mutating func _uniqueStorage() -> _StorageClass {
2968     if !isKnownUniquelyReferenced(&_storage) {
2969       _storage = _StorageClass(copying: _storage)
2970     }
2971     return _storage
2972   }
2973 
_protobuf_generated_isEqualTonull2974   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Resource) -> Bool {
2975     if _storage !== other._storage {
2976       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
2977         if _storage._methods != other_storage._methods {return false}
2978         if _storage._resources != other_storage._resources {return false}
2979         return true
2980       }
2981       if !storagesAreEqual {return false}
2982     }
2983     if unknownFields != other.unknownFields {return false}
2984     return true
2985   }
2986 }
2987 
2988 extension Discovery_V1_Resources: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2989   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2990     1: .standard(proto: "additional_properties"),
2991   ]
2992 
_protobuf_generated_isEqualTonull2993   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Resources) -> Bool {
2994     if self.additionalProperties != other.additionalProperties {return false}
2995     if unknownFields != other.unknownFields {return false}
2996     return true
2997   }
2998 }
2999 
3000 extension Discovery_V1_Response: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3001   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3002     1: .standard(proto: "_ref"),
3003   ]
3004 
_protobuf_generated_isEqualTonull3005   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Response) -> Bool {
3006     if self.ref != other.ref {return false}
3007     if unknownFields != other.unknownFields {return false}
3008     return true
3009   }
3010 }
3011 
3012 extension Discovery_V1_Resumable: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3013   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3014     1: .same(proto: "multipart"),
3015     2: .same(proto: "path"),
3016   ]
3017 
_protobuf_generated_isEqualTonull3018   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Resumable) -> Bool {
3019     if self.multipart != other.multipart {return false}
3020     if self.path != other.path {return false}
3021     if unknownFields != other.unknownFields {return false}
3022     return true
3023   }
3024 }
3025 
3026 extension Discovery_V1_Schema: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3027   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3028     1: .same(proto: "id"),
3029     2: .same(proto: "type"),
3030     3: .same(proto: "description"),
3031     4: .same(proto: "default"),
3032     5: .same(proto: "required"),
3033     6: .same(proto: "format"),
3034     7: .same(proto: "pattern"),
3035     8: .same(proto: "minimum"),
3036     9: .same(proto: "maximum"),
3037     10: .same(proto: "enum"),
3038     11: .standard(proto: "enum_descriptions"),
3039     12: .same(proto: "repeated"),
3040     13: .same(proto: "location"),
3041     14: .same(proto: "properties"),
3042     15: .standard(proto: "additional_properties"),
3043     16: .same(proto: "items"),
3044     17: .standard(proto: "_ref"),
3045     18: .same(proto: "annotations"),
3046     19: .standard(proto: "read_only"),
3047   ]
3048 
3049   fileprivate class _StorageClass {
3050     var _id: String = String()
3051     var _type: String = String()
3052     var _description_p: String = String()
3053     var _default: String = String()
3054     var _required: Bool = false
3055     var _format: String = String()
3056     var _pattern: String = String()
3057     var _minimum: String = String()
3058     var _maximum: String = String()
3059     var _enum: [String] = []
3060     var _enumDescriptions: [String] = []
3061     var _repeated: Bool = false
3062     var _location: String = String()
3063     var _properties: Discovery_V1_Schemas? = nil
3064     var _additionalProperties: Discovery_V1_Schema? = nil
3065     var _items: Discovery_V1_Schema? = nil
3066     var _ref: String = String()
3067     var _annotations: Discovery_V1_Annotations? = nil
3068     var _readOnly: Bool = false
3069 
3070     static let defaultInstance = _StorageClass()
3071 
3072     private init() {}
3073 
3074     init(copying source: _StorageClass) {
3075       _id = source._id
3076       _type = source._type
3077       _description_p = source._description_p
3078       _default = source._default
3079       _required = source._required
3080       _format = source._format
3081       _pattern = source._pattern
3082       _minimum = source._minimum
3083       _maximum = source._maximum
3084       _enum = source._enum
3085       _enumDescriptions = source._enumDescriptions
3086       _repeated = source._repeated
3087       _location = source._location
3088       _properties = source._properties
3089       _additionalProperties = source._additionalProperties
3090       _items = source._items
3091       _ref = source._ref
3092       _annotations = source._annotations
3093       _readOnly = source._readOnly
3094     }
3095   }
3096 
_uniqueStoragenull3097   fileprivate mutating func _uniqueStorage() -> _StorageClass {
3098     if !isKnownUniquelyReferenced(&_storage) {
3099       _storage = _StorageClass(copying: _storage)
3100     }
3101     return _storage
3102   }
3103 
_protobuf_generated_isEqualTonull3104   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Schema) -> Bool {
3105     if _storage !== other._storage {
3106       let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_storage, other_storage) in
3107         if _storage._id != other_storage._id {return false}
3108         if _storage._type != other_storage._type {return false}
3109         if _storage._description_p != other_storage._description_p {return false}
3110         if _storage._default != other_storage._default {return false}
3111         if _storage._required != other_storage._required {return false}
3112         if _storage._format != other_storage._format {return false}
3113         if _storage._pattern != other_storage._pattern {return false}
3114         if _storage._minimum != other_storage._minimum {return false}
3115         if _storage._maximum != other_storage._maximum {return false}
3116         if _storage._enum != other_storage._enum {return false}
3117         if _storage._enumDescriptions != other_storage._enumDescriptions {return false}
3118         if _storage._repeated != other_storage._repeated {return false}
3119         if _storage._location != other_storage._location {return false}
3120         if _storage._properties != other_storage._properties {return false}
3121         if _storage._additionalProperties != other_storage._additionalProperties {return false}
3122         if _storage._items != other_storage._items {return false}
3123         if _storage._ref != other_storage._ref {return false}
3124         if _storage._annotations != other_storage._annotations {return false}
3125         if _storage._readOnly != other_storage._readOnly {return false}
3126         return true
3127       }
3128       if !storagesAreEqual {return false}
3129     }
3130     if unknownFields != other.unknownFields {return false}
3131     return true
3132   }
3133 }
3134 
3135 extension Discovery_V1_Schemas: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3136   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3137     1: .standard(proto: "additional_properties"),
3138   ]
3139 
_protobuf_generated_isEqualTonull3140   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Schemas) -> Bool {
3141     if self.additionalProperties != other.additionalProperties {return false}
3142     if unknownFields != other.unknownFields {return false}
3143     return true
3144   }
3145 }
3146 
3147 extension Discovery_V1_Scope: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3148   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3149     1: .same(proto: "description"),
3150   ]
3151 
_protobuf_generated_isEqualTonull3152   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Scope) -> Bool {
3153     if self.description_p != other.description_p {return false}
3154     if unknownFields != other.unknownFields {return false}
3155     return true
3156   }
3157 }
3158 
3159 extension Discovery_V1_Scopes: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3160   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3161     1: .standard(proto: "additional_properties"),
3162   ]
3163 
_protobuf_generated_isEqualTonull3164   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Scopes) -> Bool {
3165     if self.additionalProperties != other.additionalProperties {return false}
3166     if unknownFields != other.unknownFields {return false}
3167     return true
3168   }
3169 }
3170 
3171 extension Discovery_V1_Simple: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3172   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3173     1: .same(proto: "multipart"),
3174     2: .same(proto: "path"),
3175   ]
3176 
_protobuf_generated_isEqualTonull3177   public func _protobuf_generated_isEqualTo(other: Discovery_V1_Simple) -> Bool {
3178     if self.multipart != other.multipart {return false}
3179     if self.path != other.path {return false}
3180     if unknownFields != other.unknownFields {return false}
3181     return true
3182   }
3183 }
3184 
3185 extension Discovery_V1_StringArray: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
3186   public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
3187     1: .same(proto: "value"),
3188   ]
3189 
_protobuf_generated_isEqualTonull3190   public func _protobuf_generated_isEqualTo(other: Discovery_V1_StringArray) -> Bool {
3191     if self.value != other.value {return false}
3192     if unknownFields != other.unknownFields {return false}
3193     return true
3194   }
3195 }
3196