123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728 |
- // DO NOT EDIT.
- // swift-format-ignore-file
- //
- // Generated by the Swift generator plugin for the protocol buffer compiler.
- // Source: bledata.proto
- //
- // For information on using the generated types, please see the documentation:
- // https://github.com/apple/swift-protobuf/
- import Foundation
- import SwiftProtobuf
- // If the compiler emits an error on this type, it is because this file
- // was generated by a version of the `protoc` Swift plug-in that is
- // incompatible with the version of SwiftProtobuf to which you are linking.
- // Please ensure that you are building against the same version of the API
- // that was used to generate this file.
- fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
- struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
- typealias Version = _2
- }
- struct ScanForDevicesRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var serviceUuids: [Uuid] = []
- var scanMode: Int32 = 0
- var requireLocationServicesEnabled: Bool = false
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct DeviceScanInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var id: String = String()
- var name: String = String()
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var serviceData: [ServiceDataEntry] = []
- var manufacturerData: Data = Data()
- var serviceUuids: [Uuid] = []
- var rssi: Int32 = 0
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _failure: GenericFailure? = nil
- }
- struct ConnectToDeviceRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var servicesWithCharacteristicsToDiscover: ServicesWithCharacteristics {
- get {return _servicesWithCharacteristicsToDiscover ?? ServicesWithCharacteristics()}
- set {_servicesWithCharacteristicsToDiscover = newValue}
- }
- /// Returns true if `servicesWithCharacteristicsToDiscover` has been explicitly set.
- var hasServicesWithCharacteristicsToDiscover: Bool {return self._servicesWithCharacteristicsToDiscover != nil}
- /// Clears the value of `servicesWithCharacteristicsToDiscover`. Subsequent reads from it will return its default value.
- mutating func clearServicesWithCharacteristicsToDiscover() {self._servicesWithCharacteristicsToDiscover = nil}
- var timeoutInMs: Int32 = 0
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _servicesWithCharacteristicsToDiscover: ServicesWithCharacteristics? = nil
- }
- struct DeviceInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var id: String = String()
- var connectionState: Int32 = 0
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _failure: GenericFailure? = nil
- }
- struct DisconnectFromDeviceRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct ClearGattCacheRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct ClearGattCacheInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _failure: GenericFailure? = nil
- }
- struct NotifyCharacteristicRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- }
- struct NotifyNoMoreCharacteristicRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- }
- struct ReadCharacteristicRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- }
- struct CharacteristicValueInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var value: Data = Data()
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- fileprivate var _failure: GenericFailure? = nil
- }
- struct WriteCharacteristicRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var value: Data = Data()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- }
- struct WriteCharacteristicInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristic: CharacteristicAddress {
- get {return _characteristic ?? CharacteristicAddress()}
- set {_characteristic = newValue}
- }
- /// Returns true if `characteristic` has been explicitly set.
- var hasCharacteristic: Bool {return self._characteristic != nil}
- /// Clears the value of `characteristic`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristic() {self._characteristic = nil}
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristic: CharacteristicAddress? = nil
- fileprivate var _failure: GenericFailure? = nil
- }
- struct NegotiateMtuRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var mtuSize: Int32 = 0
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct NegotiateMtuInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var mtuSize: Int32 = 0
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _failure: GenericFailure? = nil
- }
- struct BleStatusInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var status: Int32 = 0
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct ChangeConnectionPriorityRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var priority: Int32 = 0
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct ChangeConnectionPriorityInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var failure: GenericFailure {
- get {return _failure ?? GenericFailure()}
- set {_failure = newValue}
- }
- /// Returns true if `failure` has been explicitly set.
- var hasFailure: Bool {return self._failure != nil}
- /// Clears the value of `failure`. Subsequent reads from it will return its default value.
- mutating func clearFailure() {self._failure = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _failure: GenericFailure? = nil
- }
- struct CharacteristicAddress {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var serviceUuid: Uuid {
- get {return _serviceUuid ?? Uuid()}
- set {_serviceUuid = newValue}
- }
- /// Returns true if `serviceUuid` has been explicitly set.
- var hasServiceUuid: Bool {return self._serviceUuid != nil}
- /// Clears the value of `serviceUuid`. Subsequent reads from it will return its default value.
- mutating func clearServiceUuid() {self._serviceUuid = nil}
- var characteristicUuid: Uuid {
- get {return _characteristicUuid ?? Uuid()}
- set {_characteristicUuid = newValue}
- }
- /// Returns true if `characteristicUuid` has been explicitly set.
- var hasCharacteristicUuid: Bool {return self._characteristicUuid != nil}
- /// Clears the value of `characteristicUuid`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristicUuid() {self._characteristicUuid = nil}
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _serviceUuid: Uuid? = nil
- fileprivate var _characteristicUuid: Uuid? = nil
- }
- struct ServiceDataEntry {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var serviceUuid: Uuid {
- get {return _serviceUuid ?? Uuid()}
- set {_serviceUuid = newValue}
- }
- /// Returns true if `serviceUuid` has been explicitly set.
- var hasServiceUuid: Bool {return self._serviceUuid != nil}
- /// Clears the value of `serviceUuid`. Subsequent reads from it will return its default value.
- mutating func clearServiceUuid() {self._serviceUuid = nil}
- var data: Data = Data()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _serviceUuid: Uuid? = nil
- }
- struct ServicesWithCharacteristics {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var items: [ServiceWithCharacteristics] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct ServiceWithCharacteristics {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var serviceID: Uuid {
- get {return _serviceID ?? Uuid()}
- set {_serviceID = newValue}
- }
- /// Returns true if `serviceID` has been explicitly set.
- var hasServiceID: Bool {return self._serviceID != nil}
- /// Clears the value of `serviceID`. Subsequent reads from it will return its default value.
- mutating func clearServiceID() {self._serviceID = nil}
- var characteristics: [Uuid] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _serviceID: Uuid? = nil
- }
- struct DiscoverServicesRequest {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct DiscoverServicesInfo {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var deviceID: String = String()
- var services: [DiscoveredService] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct DiscoveredService {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var serviceUuid: Uuid {
- get {return _serviceUuid ?? Uuid()}
- set {_serviceUuid = newValue}
- }
- /// Returns true if `serviceUuid` has been explicitly set.
- var hasServiceUuid: Bool {return self._serviceUuid != nil}
- /// Clears the value of `serviceUuid`. Subsequent reads from it will return its default value.
- mutating func clearServiceUuid() {self._serviceUuid = nil}
- var characteristicUuids: [Uuid] = []
- var includedServices: [DiscoveredService] = []
- var characteristics: [DiscoveredCharacteristic] = []
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _serviceUuid: Uuid? = nil
- }
- struct DiscoveredCharacteristic {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var characteristicID: Uuid {
- get {return _characteristicID ?? Uuid()}
- set {_characteristicID = newValue}
- }
- /// Returns true if `characteristicID` has been explicitly set.
- var hasCharacteristicID: Bool {return self._characteristicID != nil}
- /// Clears the value of `characteristicID`. Subsequent reads from it will return its default value.
- mutating func clearCharacteristicID() {self._characteristicID = nil}
- var serviceID: Uuid {
- get {return _serviceID ?? Uuid()}
- set {_serviceID = newValue}
- }
- /// Returns true if `serviceID` has been explicitly set.
- var hasServiceID: Bool {return self._serviceID != nil}
- /// Clears the value of `serviceID`. Subsequent reads from it will return its default value.
- mutating func clearServiceID() {self._serviceID = nil}
- var isReadable: Bool = false
- var isWritableWithResponse: Bool = false
- var isWritableWithoutResponse: Bool = false
- var isNotifiable: Bool = false
- var isIndicatable: Bool = false
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- fileprivate var _characteristicID: Uuid? = nil
- fileprivate var _serviceID: Uuid? = nil
- }
- struct Uuid {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var data: Data = Data()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- struct GenericFailure {
- // SwiftProtobuf.Message conformance is added in an extension below. See the
- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
- // methods supported on all messages.
- var code: Int32 = 0
- var message: String = String()
- var unknownFields = SwiftProtobuf.UnknownStorage()
- init() {}
- }
- // MARK: - Code below here is support for the SwiftProtobuf runtime.
- extension ScanForDevicesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ScanForDevicesRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "serviceUuids"),
- 2: .same(proto: "scanMode"),
- 3: .same(proto: "requireLocationServicesEnabled"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedMessageField(value: &self.serviceUuids) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self.scanMode) }()
- case 3: try { try decoder.decodeSingularBoolField(value: &self.requireLocationServicesEnabled) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.serviceUuids.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.serviceUuids, fieldNumber: 1)
- }
- if self.scanMode != 0 {
- try visitor.visitSingularInt32Field(value: self.scanMode, fieldNumber: 2)
- }
- if self.requireLocationServicesEnabled != false {
- try visitor.visitSingularBoolField(value: self.requireLocationServicesEnabled, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ScanForDevicesRequest, rhs: ScanForDevicesRequest) -> Bool {
- if lhs.serviceUuids != rhs.serviceUuids {return false}
- if lhs.scanMode != rhs.scanMode {return false}
- if lhs.requireLocationServicesEnabled != rhs.requireLocationServicesEnabled {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DeviceScanInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DeviceScanInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "id"),
- 2: .same(proto: "name"),
- 3: .same(proto: "failure"),
- 4: .same(proto: "serviceData"),
- 6: .same(proto: "manufacturerData"),
- 7: .same(proto: "serviceUuids"),
- 5: .same(proto: "rssi"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.id) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self.name) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- case 4: try { try decoder.decodeRepeatedMessageField(value: &self.serviceData) }()
- case 5: try { try decoder.decodeSingularInt32Field(value: &self.rssi) }()
- case 6: try { try decoder.decodeSingularBytesField(value: &self.manufacturerData) }()
- case 7: try { try decoder.decodeRepeatedMessageField(value: &self.serviceUuids) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.id.isEmpty {
- try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
- }
- if !self.name.isEmpty {
- try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- if !self.serviceData.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.serviceData, fieldNumber: 4)
- }
- if self.rssi != 0 {
- try visitor.visitSingularInt32Field(value: self.rssi, fieldNumber: 5)
- }
- if !self.manufacturerData.isEmpty {
- try visitor.visitSingularBytesField(value: self.manufacturerData, fieldNumber: 6)
- }
- if !self.serviceUuids.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.serviceUuids, fieldNumber: 7)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DeviceScanInfo, rhs: DeviceScanInfo) -> Bool {
- if lhs.id != rhs.id {return false}
- if lhs.name != rhs.name {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.serviceData != rhs.serviceData {return false}
- if lhs.manufacturerData != rhs.manufacturerData {return false}
- if lhs.serviceUuids != rhs.serviceUuids {return false}
- if lhs.rssi != rhs.rssi {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ConnectToDeviceRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ConnectToDeviceRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "servicesWithCharacteristicsToDiscover"),
- 3: .same(proto: "timeoutInMs"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._servicesWithCharacteristicsToDiscover) }()
- case 3: try { try decoder.decodeSingularInt32Field(value: &self.timeoutInMs) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if let v = self._servicesWithCharacteristicsToDiscover {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- }
- if self.timeoutInMs != 0 {
- try visitor.visitSingularInt32Field(value: self.timeoutInMs, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ConnectToDeviceRequest, rhs: ConnectToDeviceRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs._servicesWithCharacteristicsToDiscover != rhs._servicesWithCharacteristicsToDiscover {return false}
- if lhs.timeoutInMs != rhs.timeoutInMs {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DeviceInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "id"),
- 2: .same(proto: "connectionState"),
- 3: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.id) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self.connectionState) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.id.isEmpty {
- try visitor.visitSingularStringField(value: self.id, fieldNumber: 1)
- }
- if self.connectionState != 0 {
- try visitor.visitSingularInt32Field(value: self.connectionState, fieldNumber: 2)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DeviceInfo, rhs: DeviceInfo) -> Bool {
- if lhs.id != rhs.id {return false}
- if lhs.connectionState != rhs.connectionState {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DisconnectFromDeviceRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DisconnectFromDeviceRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DisconnectFromDeviceRequest, rhs: DisconnectFromDeviceRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ClearGattCacheRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ClearGattCacheRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ClearGattCacheRequest, rhs: ClearGattCacheRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ClearGattCacheInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ClearGattCacheInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ClearGattCacheInfo, rhs: ClearGattCacheInfo) -> Bool {
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension NotifyCharacteristicRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "NotifyCharacteristicRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: NotifyCharacteristicRequest, rhs: NotifyCharacteristicRequest) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension NotifyNoMoreCharacteristicRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "NotifyNoMoreCharacteristicRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: NotifyNoMoreCharacteristicRequest, rhs: NotifyNoMoreCharacteristicRequest) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ReadCharacteristicRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ReadCharacteristicRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ReadCharacteristicRequest, rhs: ReadCharacteristicRequest) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension CharacteristicValueInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "CharacteristicValueInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- 2: .same(proto: "value"),
- 3: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- case 2: try { try decoder.decodeSingularBytesField(value: &self.value) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if !self.value.isEmpty {
- try visitor.visitSingularBytesField(value: self.value, fieldNumber: 2)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: CharacteristicValueInfo, rhs: CharacteristicValueInfo) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs.value != rhs.value {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension WriteCharacteristicRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "WriteCharacteristicRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- 2: .same(proto: "value"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- case 2: try { try decoder.decodeSingularBytesField(value: &self.value) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if !self.value.isEmpty {
- try visitor.visitSingularBytesField(value: self.value, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: WriteCharacteristicRequest, rhs: WriteCharacteristicRequest) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs.value != rhs.value {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension WriteCharacteristicInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "WriteCharacteristicInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristic"),
- 3: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristic) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristic {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: WriteCharacteristicInfo, rhs: WriteCharacteristicInfo) -> Bool {
- if lhs._characteristic != rhs._characteristic {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension NegotiateMtuRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "NegotiateMtuRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "mtuSize"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self.mtuSize) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if self.mtuSize != 0 {
- try visitor.visitSingularInt32Field(value: self.mtuSize, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: NegotiateMtuRequest, rhs: NegotiateMtuRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.mtuSize != rhs.mtuSize {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension NegotiateMtuInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "NegotiateMtuInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "mtuSize"),
- 3: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self.mtuSize) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if self.mtuSize != 0 {
- try visitor.visitSingularInt32Field(value: self.mtuSize, fieldNumber: 2)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: NegotiateMtuInfo, rhs: NegotiateMtuInfo) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.mtuSize != rhs.mtuSize {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension BleStatusInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "BleStatusInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "status"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self.status) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if self.status != 0 {
- try visitor.visitSingularInt32Field(value: self.status, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: BleStatusInfo, rhs: BleStatusInfo) -> Bool {
- if lhs.status != rhs.status {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ChangeConnectionPriorityRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ChangeConnectionPriorityRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "priority"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularInt32Field(value: &self.priority) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if self.priority != 0 {
- try visitor.visitSingularInt32Field(value: self.priority, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ChangeConnectionPriorityRequest, rhs: ChangeConnectionPriorityRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.priority != rhs.priority {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ChangeConnectionPriorityInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ChangeConnectionPriorityInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "failure"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._failure) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if let v = self._failure {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ChangeConnectionPriorityInfo, rhs: ChangeConnectionPriorityInfo) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs._failure != rhs._failure {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension CharacteristicAddress: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "CharacteristicAddress"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "serviceUuid"),
- 3: .same(proto: "characteristicUuid"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._serviceUuid) }()
- case 3: try { try decoder.decodeSingularMessageField(value: &self._characteristicUuid) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if let v = self._serviceUuid {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- }
- if let v = self._characteristicUuid {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: CharacteristicAddress, rhs: CharacteristicAddress) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs._serviceUuid != rhs._serviceUuid {return false}
- if lhs._characteristicUuid != rhs._characteristicUuid {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ServiceDataEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ServiceDataEntry"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "serviceUuid"),
- 2: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._serviceUuid) }()
- case 2: try { try decoder.decodeSingularBytesField(value: &self.data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._serviceUuid {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if !self.data.isEmpty {
- try visitor.visitSingularBytesField(value: self.data, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ServiceDataEntry, rhs: ServiceDataEntry) -> Bool {
- if lhs._serviceUuid != rhs._serviceUuid {return false}
- if lhs.data != rhs.data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ServicesWithCharacteristics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ServicesWithCharacteristics"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "items"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeRepeatedMessageField(value: &self.items) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.items.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.items, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ServicesWithCharacteristics, rhs: ServicesWithCharacteristics) -> Bool {
- if lhs.items != rhs.items {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension ServiceWithCharacteristics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "ServiceWithCharacteristics"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "serviceId"),
- 2: .same(proto: "characteristics"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._serviceID) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.characteristics) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._serviceID {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if !self.characteristics.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.characteristics, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: ServiceWithCharacteristics, rhs: ServiceWithCharacteristics) -> Bool {
- if lhs._serviceID != rhs._serviceID {return false}
- if lhs.characteristics != rhs.characteristics {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DiscoverServicesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DiscoverServicesRequest"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DiscoverServicesRequest, rhs: DiscoverServicesRequest) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DiscoverServicesInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DiscoverServicesInfo"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "deviceId"),
- 2: .same(proto: "services"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularStringField(value: &self.deviceID) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.services) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.deviceID.isEmpty {
- try visitor.visitSingularStringField(value: self.deviceID, fieldNumber: 1)
- }
- if !self.services.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.services, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DiscoverServicesInfo, rhs: DiscoverServicesInfo) -> Bool {
- if lhs.deviceID != rhs.deviceID {return false}
- if lhs.services != rhs.services {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DiscoveredService: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DiscoveredService"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "serviceUuid"),
- 2: .same(proto: "characteristicUuids"),
- 3: .same(proto: "includedServices"),
- 4: .same(proto: "characteristics"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._serviceUuid) }()
- case 2: try { try decoder.decodeRepeatedMessageField(value: &self.characteristicUuids) }()
- case 3: try { try decoder.decodeRepeatedMessageField(value: &self.includedServices) }()
- case 4: try { try decoder.decodeRepeatedMessageField(value: &self.characteristics) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._serviceUuid {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if !self.characteristicUuids.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.characteristicUuids, fieldNumber: 2)
- }
- if !self.includedServices.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.includedServices, fieldNumber: 3)
- }
- if !self.characteristics.isEmpty {
- try visitor.visitRepeatedMessageField(value: self.characteristics, fieldNumber: 4)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DiscoveredService, rhs: DiscoveredService) -> Bool {
- if lhs._serviceUuid != rhs._serviceUuid {return false}
- if lhs.characteristicUuids != rhs.characteristicUuids {return false}
- if lhs.includedServices != rhs.includedServices {return false}
- if lhs.characteristics != rhs.characteristics {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension DiscoveredCharacteristic: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "DiscoveredCharacteristic"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "characteristicId"),
- 2: .same(proto: "serviceId"),
- 3: .same(proto: "isReadable"),
- 4: .same(proto: "isWritableWithResponse"),
- 5: .same(proto: "isWritableWithoutResponse"),
- 6: .same(proto: "isNotifiable"),
- 7: .same(proto: "isIndicatable"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularMessageField(value: &self._characteristicID) }()
- case 2: try { try decoder.decodeSingularMessageField(value: &self._serviceID) }()
- case 3: try { try decoder.decodeSingularBoolField(value: &self.isReadable) }()
- case 4: try { try decoder.decodeSingularBoolField(value: &self.isWritableWithResponse) }()
- case 5: try { try decoder.decodeSingularBoolField(value: &self.isWritableWithoutResponse) }()
- case 6: try { try decoder.decodeSingularBoolField(value: &self.isNotifiable) }()
- case 7: try { try decoder.decodeSingularBoolField(value: &self.isIndicatable) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if let v = self._characteristicID {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
- }
- if let v = self._serviceID {
- try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
- }
- if self.isReadable != false {
- try visitor.visitSingularBoolField(value: self.isReadable, fieldNumber: 3)
- }
- if self.isWritableWithResponse != false {
- try visitor.visitSingularBoolField(value: self.isWritableWithResponse, fieldNumber: 4)
- }
- if self.isWritableWithoutResponse != false {
- try visitor.visitSingularBoolField(value: self.isWritableWithoutResponse, fieldNumber: 5)
- }
- if self.isNotifiable != false {
- try visitor.visitSingularBoolField(value: self.isNotifiable, fieldNumber: 6)
- }
- if self.isIndicatable != false {
- try visitor.visitSingularBoolField(value: self.isIndicatable, fieldNumber: 7)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: DiscoveredCharacteristic, rhs: DiscoveredCharacteristic) -> Bool {
- if lhs._characteristicID != rhs._characteristicID {return false}
- if lhs._serviceID != rhs._serviceID {return false}
- if lhs.isReadable != rhs.isReadable {return false}
- if lhs.isWritableWithResponse != rhs.isWritableWithResponse {return false}
- if lhs.isWritableWithoutResponse != rhs.isWritableWithoutResponse {return false}
- if lhs.isNotifiable != rhs.isNotifiable {return false}
- if lhs.isIndicatable != rhs.isIndicatable {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension Uuid: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "Uuid"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "data"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularBytesField(value: &self.data) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if !self.data.isEmpty {
- try visitor.visitSingularBytesField(value: self.data, fieldNumber: 1)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: Uuid, rhs: Uuid) -> Bool {
- if lhs.data != rhs.data {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
- extension GenericFailure: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
- static let protoMessageName: String = "GenericFailure"
- static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
- 1: .same(proto: "code"),
- 2: .same(proto: "message"),
- ]
- mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
- while let fieldNumber = try decoder.nextFieldNumber() {
- // The use of inline closures is to circumvent an issue where the compiler
- // allocates stack space for every case branch when no optimizations are
- // enabled. https://github.com/apple/swift-protobuf/issues/1034
- switch fieldNumber {
- case 1: try { try decoder.decodeSingularInt32Field(value: &self.code) }()
- case 2: try { try decoder.decodeSingularStringField(value: &self.message) }()
- default: break
- }
- }
- }
- func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
- if self.code != 0 {
- try visitor.visitSingularInt32Field(value: self.code, fieldNumber: 1)
- }
- if !self.message.isEmpty {
- try visitor.visitSingularStringField(value: self.message, fieldNumber: 2)
- }
- try unknownFields.traverse(visitor: &visitor)
- }
- static func ==(lhs: GenericFailure, rhs: GenericFailure) -> Bool {
- if lhs.code != rhs.code {return false}
- if lhs.message != rhs.message {return false}
- if lhs.unknownFields != rhs.unknownFields {return false}
- return true
- }
- }
|