1483 lines
55 KiB
Swift
1483 lines
55 KiB
Swift
// DO NOT EDIT.
|
||
// swift-format-ignore-file
|
||
// swiftlint:disable all
|
||
//
|
||
// Generated by the Swift generator plugin for the protocol buffer compiler.
|
||
// Source: sdlan_pb.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 SDLV4Info: @unchecked Sendable {
|
||
// 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 port: UInt32 = 0
|
||
|
||
var v4: Data = Data()
|
||
|
||
var natType: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLV6Info: @unchecked Sendable {
|
||
// 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 port: UInt32 = 0
|
||
|
||
var v6: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
/// 设备网络地址信息
|
||
struct SDLDevAddr: @unchecked Sendable {
|
||
// 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 networkID: UInt32 = 0
|
||
|
||
var mac: Data = Data()
|
||
|
||
var netAddr: UInt32 = 0
|
||
|
||
var netBitLen: UInt32 = 0
|
||
|
||
var networkDomain: String = String()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
/// tcp通讯消息
|
||
struct SDLEmpty: Sendable {
|
||
// 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 unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLRegisterSuper: Sendable {
|
||
// 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 version: UInt32 = 0
|
||
|
||
var installedChannel: String = String()
|
||
|
||
var clientID: String = String()
|
||
|
||
var devAddr: SDLDevAddr {
|
||
get {return _devAddr ?? SDLDevAddr()}
|
||
set {_devAddr = newValue}
|
||
}
|
||
/// Returns true if `devAddr` has been explicitly set.
|
||
var hasDevAddr: Bool {return self._devAddr != nil}
|
||
/// Clears the value of `devAddr`. Subsequent reads from it will return its default value.
|
||
mutating func clearDevAddr() {self._devAddr = nil}
|
||
|
||
var pubKey: String = String()
|
||
|
||
var token: String = String()
|
||
|
||
var networkCode: String = String()
|
||
|
||
var hostname: String = String()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _devAddr: SDLDevAddr? = nil
|
||
}
|
||
|
||
struct SDLRegisterSuperAck: @unchecked Sendable {
|
||
// 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 devAddr: SDLDevAddr {
|
||
get {return _devAddr ?? SDLDevAddr()}
|
||
set {_devAddr = newValue}
|
||
}
|
||
/// Returns true if `devAddr` has been explicitly set.
|
||
var hasDevAddr: Bool {return self._devAddr != nil}
|
||
/// Clears the value of `devAddr`. Subsequent reads from it will return its default value.
|
||
mutating func clearDevAddr() {self._devAddr = nil}
|
||
|
||
var aesKey: Data = Data()
|
||
|
||
var upgradeType: UInt32 = 0
|
||
|
||
var upgradePrompt: String {
|
||
get {return _upgradePrompt ?? String()}
|
||
set {_upgradePrompt = newValue}
|
||
}
|
||
/// Returns true if `upgradePrompt` has been explicitly set.
|
||
var hasUpgradePrompt: Bool {return self._upgradePrompt != nil}
|
||
/// Clears the value of `upgradePrompt`. Subsequent reads from it will return its default value.
|
||
mutating func clearUpgradePrompt() {self._upgradePrompt = nil}
|
||
|
||
var upgradeAddress: String {
|
||
get {return _upgradeAddress ?? String()}
|
||
set {_upgradeAddress = newValue}
|
||
}
|
||
/// Returns true if `upgradeAddress` has been explicitly set.
|
||
var hasUpgradeAddress: Bool {return self._upgradeAddress != nil}
|
||
/// Clears the value of `upgradeAddress`. Subsequent reads from it will return its default value.
|
||
mutating func clearUpgradeAddress() {self._upgradeAddress = nil}
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _devAddr: SDLDevAddr? = nil
|
||
fileprivate var _upgradePrompt: String? = nil
|
||
fileprivate var _upgradeAddress: String? = nil
|
||
}
|
||
|
||
struct SDLRegisterSuperNak: Sendable {
|
||
// 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 errorCode: UInt32 = 0
|
||
|
||
var errorMessage: String = String()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLQueryInfo: @unchecked Sendable {
|
||
// 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 dstMac: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLPeerInfo: @unchecked Sendable {
|
||
// 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 dstMac: Data = Data()
|
||
|
||
var v4Info: SDLV4Info {
|
||
get {return _v4Info ?? SDLV4Info()}
|
||
set {_v4Info = newValue}
|
||
}
|
||
/// Returns true if `v4Info` has been explicitly set.
|
||
var hasV4Info: Bool {return self._v4Info != nil}
|
||
/// Clears the value of `v4Info`. Subsequent reads from it will return its default value.
|
||
mutating func clearV4Info() {self._v4Info = nil}
|
||
|
||
var v6Info: SDLV6Info {
|
||
get {return _v6Info ?? SDLV6Info()}
|
||
set {_v6Info = newValue}
|
||
}
|
||
/// Returns true if `v6Info` has been explicitly set.
|
||
var hasV6Info: Bool {return self._v6Info != nil}
|
||
/// Clears the value of `v6Info`. Subsequent reads from it will return its default value.
|
||
mutating func clearV6Info() {self._v6Info = nil}
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _v4Info: SDLV4Info? = nil
|
||
fileprivate var _v6Info: SDLV6Info? = nil
|
||
}
|
||
|
||
struct SDLNatChangedEvent: @unchecked Sendable {
|
||
// 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 mac: Data = Data()
|
||
|
||
var ip: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLSendRegisterEvent: @unchecked Sendable {
|
||
// 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 dstMac: Data = Data()
|
||
|
||
var natIp: UInt32 = 0
|
||
|
||
var natPort: UInt32 = 0
|
||
|
||
var natType: UInt32 = 0
|
||
|
||
var v6Info: SDLV6Info {
|
||
get {return _v6Info ?? SDLV6Info()}
|
||
set {_v6Info = newValue}
|
||
}
|
||
/// Returns true if `v6Info` has been explicitly set.
|
||
var hasV6Info: Bool {return self._v6Info != nil}
|
||
/// Clears the value of `v6Info`. Subsequent reads from it will return its default value.
|
||
mutating func clearV6Info() {self._v6Info = nil}
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _v6Info: SDLV6Info? = nil
|
||
}
|
||
|
||
struct SDLNetworkShutdownEvent: Sendable {
|
||
// 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 message: String = String()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLChangeNetworkCommand: @unchecked Sendable {
|
||
// 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 devAddr: SDLDevAddr {
|
||
get {return _devAddr ?? SDLDevAddr()}
|
||
set {_devAddr = newValue}
|
||
}
|
||
/// Returns true if `devAddr` has been explicitly set.
|
||
var hasDevAddr: Bool {return self._devAddr != nil}
|
||
/// Clears the value of `devAddr`. Subsequent reads from it will return its default value.
|
||
mutating func clearDevAddr() {self._devAddr = nil}
|
||
|
||
var aesKey: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _devAddr: SDLDevAddr? = nil
|
||
}
|
||
|
||
struct SDLCommandAck: Sendable {
|
||
// 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.
|
||
|
||
/// status = true, 表示成功;status = false 表示失败,message是失败原因描述
|
||
var status: Bool = false
|
||
|
||
var message: String {
|
||
get {return _message ?? String()}
|
||
set {_message = newValue}
|
||
}
|
||
/// Returns true if `message` has been explicitly set.
|
||
var hasMessage: Bool {return self._message != nil}
|
||
/// Clears the value of `message`. Subsequent reads from it will return its default value.
|
||
mutating func clearMessage() {self._message = nil}
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _message: String? = nil
|
||
}
|
||
|
||
struct SDLFlows: Sendable {
|
||
// 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 forwardNum: UInt32 = 0
|
||
|
||
/// p2p直接流量
|
||
var p2PNum: UInt32 = 0
|
||
|
||
/// 接收的流量
|
||
var inboundNum: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLStunRequest: @unchecked Sendable {
|
||
// 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 cookie: UInt32 = 0
|
||
|
||
var clientID: String = String()
|
||
|
||
var networkID: UInt32 = 0
|
||
|
||
var mac: Data = Data()
|
||
|
||
var ip: UInt32 = 0
|
||
|
||
var natType: UInt32 = 0
|
||
|
||
var v6Info: SDLV6Info {
|
||
get {return _v6Info ?? SDLV6Info()}
|
||
set {_v6Info = newValue}
|
||
}
|
||
/// Returns true if `v6Info` has been explicitly set.
|
||
var hasV6Info: Bool {return self._v6Info != nil}
|
||
/// Clears the value of `v6Info`. Subsequent reads from it will return its default value.
|
||
mutating func clearV6Info() {self._v6Info = nil}
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
|
||
fileprivate var _v6Info: SDLV6Info? = nil
|
||
}
|
||
|
||
struct SDLStunReply: Sendable {
|
||
// 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 cookie: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLData: @unchecked Sendable {
|
||
// 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 networkID: UInt32 = 0
|
||
|
||
var srcMac: Data = Data()
|
||
|
||
var dstMac: Data = Data()
|
||
|
||
var isP2P: Bool = false
|
||
|
||
var ttl: UInt32 = 0
|
||
|
||
var data: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLRegister: @unchecked Sendable {
|
||
// 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 networkID: UInt32 = 0
|
||
|
||
var srcMac: Data = Data()
|
||
|
||
var dstMac: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLRegisterAck: @unchecked Sendable {
|
||
// 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 networkID: UInt32 = 0
|
||
|
||
var srcMac: Data = Data()
|
||
|
||
var dstMac: Data = Data()
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLStunProbe: Sendable {
|
||
// 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 cookie: UInt32 = 0
|
||
|
||
var attr: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
struct SDLStunProbeReply: Sendable {
|
||
// 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 cookie: UInt32 = 0
|
||
|
||
var port: UInt32 = 0
|
||
|
||
var ip: UInt32 = 0
|
||
|
||
var unknownFields = SwiftProtobuf.UnknownStorage()
|
||
|
||
init() {}
|
||
}
|
||
|
||
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
||
|
||
extension SDLV4Info: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLV4Info"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "port"),
|
||
2: .same(proto: "v4"),
|
||
3: .standard(proto: "nat_type"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.port) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.v4) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.natType) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.port != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.port, fieldNumber: 1)
|
||
}
|
||
if !self.v4.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.v4, fieldNumber: 2)
|
||
}
|
||
if self.natType != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.natType, fieldNumber: 3)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLV4Info, rhs: SDLV4Info) -> Bool {
|
||
if lhs.port != rhs.port {return false}
|
||
if lhs.v4 != rhs.v4 {return false}
|
||
if lhs.natType != rhs.natType {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLV6Info: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLV6Info"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "port"),
|
||
2: .same(proto: "v6"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.port) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.v6) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.port != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.port, fieldNumber: 1)
|
||
}
|
||
if !self.v6.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.v6, fieldNumber: 2)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLV6Info, rhs: SDLV6Info) -> Bool {
|
||
if lhs.port != rhs.port {return false}
|
||
if lhs.v6 != rhs.v6 {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLDevAddr: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLDevAddr"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "network_id"),
|
||
2: .same(proto: "mac"),
|
||
3: .standard(proto: "net_addr"),
|
||
4: .standard(proto: "net_bit_len"),
|
||
5: .standard(proto: "network_domain"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.networkID) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.mac) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.netAddr) }()
|
||
case 4: try { try decoder.decodeSingularUInt32Field(value: &self.netBitLen) }()
|
||
case 5: try { try decoder.decodeSingularStringField(value: &self.networkDomain) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.networkID != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.networkID, fieldNumber: 1)
|
||
}
|
||
if !self.mac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.mac, fieldNumber: 2)
|
||
}
|
||
if self.netAddr != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.netAddr, fieldNumber: 3)
|
||
}
|
||
if self.netBitLen != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.netBitLen, fieldNumber: 4)
|
||
}
|
||
if !self.networkDomain.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.networkDomain, fieldNumber: 5)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLDevAddr, rhs: SDLDevAddr) -> Bool {
|
||
if lhs.networkID != rhs.networkID {return false}
|
||
if lhs.mac != rhs.mac {return false}
|
||
if lhs.netAddr != rhs.netAddr {return false}
|
||
if lhs.netBitLen != rhs.netBitLen {return false}
|
||
if lhs.networkDomain != rhs.networkDomain {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLEmpty: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLEmpty"
|
||
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
||
|
||
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
||
// Load everything into unknown fields
|
||
while try decoder.nextFieldNumber() != nil {}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLEmpty, rhs: SDLEmpty) -> Bool {
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLRegisterSuper: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLRegisterSuper"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "version"),
|
||
2: .standard(proto: "installed_channel"),
|
||
3: .standard(proto: "client_id"),
|
||
4: .standard(proto: "dev_addr"),
|
||
5: .standard(proto: "pub_key"),
|
||
6: .same(proto: "token"),
|
||
7: .standard(proto: "network_code"),
|
||
8: .same(proto: "hostname"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.version) }()
|
||
case 2: try { try decoder.decodeSingularStringField(value: &self.installedChannel) }()
|
||
case 3: try { try decoder.decodeSingularStringField(value: &self.clientID) }()
|
||
case 4: try { try decoder.decodeSingularMessageField(value: &self._devAddr) }()
|
||
case 5: try { try decoder.decodeSingularStringField(value: &self.pubKey) }()
|
||
case 6: try { try decoder.decodeSingularStringField(value: &self.token) }()
|
||
case 7: try { try decoder.decodeSingularStringField(value: &self.networkCode) }()
|
||
case 8: try { try decoder.decodeSingularStringField(value: &self.hostname) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
if self.version != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.version, fieldNumber: 1)
|
||
}
|
||
if !self.installedChannel.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.installedChannel, fieldNumber: 2)
|
||
}
|
||
if !self.clientID.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.clientID, fieldNumber: 3)
|
||
}
|
||
try { if let v = self._devAddr {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
|
||
} }()
|
||
if !self.pubKey.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.pubKey, fieldNumber: 5)
|
||
}
|
||
if !self.token.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.token, fieldNumber: 6)
|
||
}
|
||
if !self.networkCode.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.networkCode, fieldNumber: 7)
|
||
}
|
||
if !self.hostname.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.hostname, fieldNumber: 8)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLRegisterSuper, rhs: SDLRegisterSuper) -> Bool {
|
||
if lhs.version != rhs.version {return false}
|
||
if lhs.installedChannel != rhs.installedChannel {return false}
|
||
if lhs.clientID != rhs.clientID {return false}
|
||
if lhs._devAddr != rhs._devAddr {return false}
|
||
if lhs.pubKey != rhs.pubKey {return false}
|
||
if lhs.token != rhs.token {return false}
|
||
if lhs.networkCode != rhs.networkCode {return false}
|
||
if lhs.hostname != rhs.hostname {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLRegisterSuperAck: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLRegisterSuperAck"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "dev_addr"),
|
||
2: .standard(proto: "aes_key"),
|
||
3: .standard(proto: "upgrade_type"),
|
||
4: .standard(proto: "upgrade_prompt"),
|
||
5: .standard(proto: "upgrade_address"),
|
||
]
|
||
|
||
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._devAddr) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.aesKey) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.upgradeType) }()
|
||
case 4: try { try decoder.decodeSingularStringField(value: &self._upgradePrompt) }()
|
||
case 5: try { try decoder.decodeSingularStringField(value: &self._upgradeAddress) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
try { if let v = self._devAddr {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
|
||
} }()
|
||
if !self.aesKey.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.aesKey, fieldNumber: 2)
|
||
}
|
||
if self.upgradeType != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.upgradeType, fieldNumber: 3)
|
||
}
|
||
try { if let v = self._upgradePrompt {
|
||
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
|
||
} }()
|
||
try { if let v = self._upgradeAddress {
|
||
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
|
||
} }()
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLRegisterSuperAck, rhs: SDLRegisterSuperAck) -> Bool {
|
||
if lhs._devAddr != rhs._devAddr {return false}
|
||
if lhs.aesKey != rhs.aesKey {return false}
|
||
if lhs.upgradeType != rhs.upgradeType {return false}
|
||
if lhs._upgradePrompt != rhs._upgradePrompt {return false}
|
||
if lhs._upgradeAddress != rhs._upgradeAddress {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLRegisterSuperNak: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLRegisterSuperNak"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "error_code"),
|
||
2: .standard(proto: "error_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.decodeSingularUInt32Field(value: &self.errorCode) }()
|
||
case 2: try { try decoder.decodeSingularStringField(value: &self.errorMessage) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.errorCode != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.errorCode, fieldNumber: 1)
|
||
}
|
||
if !self.errorMessage.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.errorMessage, fieldNumber: 2)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLRegisterSuperNak, rhs: SDLRegisterSuperNak) -> Bool {
|
||
if lhs.errorCode != rhs.errorCode {return false}
|
||
if lhs.errorMessage != rhs.errorMessage {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLQueryInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLQueryInfo"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "dst_mac"),
|
||
]
|
||
|
||
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.dstMac) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 1)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLQueryInfo, rhs: SDLQueryInfo) -> Bool {
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLPeerInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLPeerInfo"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "dst_mac"),
|
||
2: .standard(proto: "v4_info"),
|
||
3: .standard(proto: "v6_info"),
|
||
]
|
||
|
||
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.dstMac) }()
|
||
case 2: try { try decoder.decodeSingularMessageField(value: &self._v4Info) }()
|
||
case 3: try { try decoder.decodeSingularMessageField(value: &self._v6Info) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 1)
|
||
}
|
||
try { if let v = self._v4Info {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
|
||
} }()
|
||
try { if let v = self._v6Info {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
|
||
} }()
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLPeerInfo, rhs: SDLPeerInfo) -> Bool {
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs._v4Info != rhs._v4Info {return false}
|
||
if lhs._v6Info != rhs._v6Info {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLNatChangedEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLNatChangedEvent"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "mac"),
|
||
2: .same(proto: "ip"),
|
||
]
|
||
|
||
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.mac) }()
|
||
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.ip) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if !self.mac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.mac, fieldNumber: 1)
|
||
}
|
||
if self.ip != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.ip, fieldNumber: 2)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLNatChangedEvent, rhs: SDLNatChangedEvent) -> Bool {
|
||
if lhs.mac != rhs.mac {return false}
|
||
if lhs.ip != rhs.ip {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLSendRegisterEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLSendRegisterEvent"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "dst_mac"),
|
||
2: .standard(proto: "nat_ip"),
|
||
3: .standard(proto: "nat_port"),
|
||
4: .standard(proto: "nat_type"),
|
||
5: .standard(proto: "v6_info"),
|
||
]
|
||
|
||
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.dstMac) }()
|
||
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.natIp) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.natPort) }()
|
||
case 4: try { try decoder.decodeSingularUInt32Field(value: &self.natType) }()
|
||
case 5: try { try decoder.decodeSingularMessageField(value: &self._v6Info) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 1)
|
||
}
|
||
if self.natIp != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.natIp, fieldNumber: 2)
|
||
}
|
||
if self.natPort != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.natPort, fieldNumber: 3)
|
||
}
|
||
if self.natType != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.natType, fieldNumber: 4)
|
||
}
|
||
try { if let v = self._v6Info {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
|
||
} }()
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLSendRegisterEvent, rhs: SDLSendRegisterEvent) -> Bool {
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs.natIp != rhs.natIp {return false}
|
||
if lhs.natPort != rhs.natPort {return false}
|
||
if lhs.natType != rhs.natType {return false}
|
||
if lhs._v6Info != rhs._v6Info {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLNetworkShutdownEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLNetworkShutdownEvent"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .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.decodeSingularStringField(value: &self.message) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if !self.message.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.message, fieldNumber: 1)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLNetworkShutdownEvent, rhs: SDLNetworkShutdownEvent) -> Bool {
|
||
if lhs.message != rhs.message {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLChangeNetworkCommand: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLChangeNetworkCommand"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "dev_addr"),
|
||
2: .standard(proto: "aes_key"),
|
||
]
|
||
|
||
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._devAddr) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.aesKey) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
try { if let v = self._devAddr {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
|
||
} }()
|
||
if !self.aesKey.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.aesKey, fieldNumber: 2)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLChangeNetworkCommand, rhs: SDLChangeNetworkCommand) -> Bool {
|
||
if lhs._devAddr != rhs._devAddr {return false}
|
||
if lhs.aesKey != rhs.aesKey {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLCommandAck: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLCommandAck"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "status"),
|
||
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.decodeSingularBoolField(value: &self.status) }()
|
||
case 2: try { try decoder.decodeSingularStringField(value: &self._message) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
if self.status != false {
|
||
try visitor.visitSingularBoolField(value: self.status, fieldNumber: 1)
|
||
}
|
||
try { if let v = self._message {
|
||
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
||
} }()
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLCommandAck, rhs: SDLCommandAck) -> Bool {
|
||
if lhs.status != rhs.status {return false}
|
||
if lhs._message != rhs._message {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLFlows: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLFlows"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "forward_num"),
|
||
2: .standard(proto: "p2p_num"),
|
||
3: .standard(proto: "inbound_num"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.forwardNum) }()
|
||
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.p2PNum) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.inboundNum) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.forwardNum != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.forwardNum, fieldNumber: 1)
|
||
}
|
||
if self.p2PNum != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.p2PNum, fieldNumber: 2)
|
||
}
|
||
if self.inboundNum != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.inboundNum, fieldNumber: 3)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLFlows, rhs: SDLFlows) -> Bool {
|
||
if lhs.forwardNum != rhs.forwardNum {return false}
|
||
if lhs.p2PNum != rhs.p2PNum {return false}
|
||
if lhs.inboundNum != rhs.inboundNum {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLStunRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLStunRequest"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "cookie"),
|
||
2: .standard(proto: "client_id"),
|
||
3: .standard(proto: "network_id"),
|
||
4: .same(proto: "mac"),
|
||
5: .same(proto: "ip"),
|
||
6: .standard(proto: "nat_type"),
|
||
7: .standard(proto: "v6_info"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.cookie) }()
|
||
case 2: try { try decoder.decodeSingularStringField(value: &self.clientID) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.networkID) }()
|
||
case 4: try { try decoder.decodeSingularBytesField(value: &self.mac) }()
|
||
case 5: try { try decoder.decodeSingularUInt32Field(value: &self.ip) }()
|
||
case 6: try { try decoder.decodeSingularUInt32Field(value: &self.natType) }()
|
||
case 7: try { try decoder.decodeSingularMessageField(value: &self._v6Info) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
// The use of inline closures is to circumvent an issue where the compiler
|
||
// allocates stack space for every if/case branch local when no optimizations
|
||
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
||
// https://github.com/apple/swift-protobuf/issues/1182
|
||
if self.cookie != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.cookie, fieldNumber: 1)
|
||
}
|
||
if !self.clientID.isEmpty {
|
||
try visitor.visitSingularStringField(value: self.clientID, fieldNumber: 2)
|
||
}
|
||
if self.networkID != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.networkID, fieldNumber: 3)
|
||
}
|
||
if !self.mac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.mac, fieldNumber: 4)
|
||
}
|
||
if self.ip != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.ip, fieldNumber: 5)
|
||
}
|
||
if self.natType != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.natType, fieldNumber: 6)
|
||
}
|
||
try { if let v = self._v6Info {
|
||
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
|
||
} }()
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLStunRequest, rhs: SDLStunRequest) -> Bool {
|
||
if lhs.cookie != rhs.cookie {return false}
|
||
if lhs.clientID != rhs.clientID {return false}
|
||
if lhs.networkID != rhs.networkID {return false}
|
||
if lhs.mac != rhs.mac {return false}
|
||
if lhs.ip != rhs.ip {return false}
|
||
if lhs.natType != rhs.natType {return false}
|
||
if lhs._v6Info != rhs._v6Info {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLStunReply: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLStunReply"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "cookie"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.cookie) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.cookie != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.cookie, fieldNumber: 1)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLStunReply, rhs: SDLStunReply) -> Bool {
|
||
if lhs.cookie != rhs.cookie {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLData"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "network_id"),
|
||
2: .standard(proto: "src_mac"),
|
||
3: .standard(proto: "dst_mac"),
|
||
4: .standard(proto: "is_p2p"),
|
||
5: .same(proto: "ttl"),
|
||
6: .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.decodeSingularUInt32Field(value: &self.networkID) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.srcMac) }()
|
||
case 3: try { try decoder.decodeSingularBytesField(value: &self.dstMac) }()
|
||
case 4: try { try decoder.decodeSingularBoolField(value: &self.isP2P) }()
|
||
case 5: try { try decoder.decodeSingularUInt32Field(value: &self.ttl) }()
|
||
case 6: try { try decoder.decodeSingularBytesField(value: &self.data) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.networkID != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.networkID, fieldNumber: 1)
|
||
}
|
||
if !self.srcMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.srcMac, fieldNumber: 2)
|
||
}
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 3)
|
||
}
|
||
if self.isP2P != false {
|
||
try visitor.visitSingularBoolField(value: self.isP2P, fieldNumber: 4)
|
||
}
|
||
if self.ttl != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.ttl, fieldNumber: 5)
|
||
}
|
||
if !self.data.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.data, fieldNumber: 6)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLData, rhs: SDLData) -> Bool {
|
||
if lhs.networkID != rhs.networkID {return false}
|
||
if lhs.srcMac != rhs.srcMac {return false}
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs.isP2P != rhs.isP2P {return false}
|
||
if lhs.ttl != rhs.ttl {return false}
|
||
if lhs.data != rhs.data {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLRegister: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLRegister"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "network_id"),
|
||
2: .standard(proto: "src_mac"),
|
||
3: .standard(proto: "dst_mac"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.networkID) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.srcMac) }()
|
||
case 3: try { try decoder.decodeSingularBytesField(value: &self.dstMac) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.networkID != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.networkID, fieldNumber: 1)
|
||
}
|
||
if !self.srcMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.srcMac, fieldNumber: 2)
|
||
}
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 3)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLRegister, rhs: SDLRegister) -> Bool {
|
||
if lhs.networkID != rhs.networkID {return false}
|
||
if lhs.srcMac != rhs.srcMac {return false}
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLRegisterAck: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLRegisterAck"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .standard(proto: "network_id"),
|
||
2: .standard(proto: "src_mac"),
|
||
3: .standard(proto: "dst_mac"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.networkID) }()
|
||
case 2: try { try decoder.decodeSingularBytesField(value: &self.srcMac) }()
|
||
case 3: try { try decoder.decodeSingularBytesField(value: &self.dstMac) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.networkID != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.networkID, fieldNumber: 1)
|
||
}
|
||
if !self.srcMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.srcMac, fieldNumber: 2)
|
||
}
|
||
if !self.dstMac.isEmpty {
|
||
try visitor.visitSingularBytesField(value: self.dstMac, fieldNumber: 3)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLRegisterAck, rhs: SDLRegisterAck) -> Bool {
|
||
if lhs.networkID != rhs.networkID {return false}
|
||
if lhs.srcMac != rhs.srcMac {return false}
|
||
if lhs.dstMac != rhs.dstMac {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLStunProbe: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLStunProbe"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "cookie"),
|
||
2: .same(proto: "attr"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.cookie) }()
|
||
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.attr) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.cookie != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.cookie, fieldNumber: 1)
|
||
}
|
||
if self.attr != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.attr, fieldNumber: 2)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLStunProbe, rhs: SDLStunProbe) -> Bool {
|
||
if lhs.cookie != rhs.cookie {return false}
|
||
if lhs.attr != rhs.attr {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|
||
|
||
extension SDLStunProbeReply: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
||
static let protoMessageName: String = "SDLStunProbeReply"
|
||
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
||
1: .same(proto: "cookie"),
|
||
2: .same(proto: "port"),
|
||
3: .same(proto: "ip"),
|
||
]
|
||
|
||
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.decodeSingularUInt32Field(value: &self.cookie) }()
|
||
case 2: try { try decoder.decodeSingularUInt32Field(value: &self.port) }()
|
||
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.ip) }()
|
||
default: break
|
||
}
|
||
}
|
||
}
|
||
|
||
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
||
if self.cookie != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.cookie, fieldNumber: 1)
|
||
}
|
||
if self.port != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.port, fieldNumber: 2)
|
||
}
|
||
if self.ip != 0 {
|
||
try visitor.visitSingularUInt32Field(value: self.ip, fieldNumber: 3)
|
||
}
|
||
try unknownFields.traverse(visitor: &visitor)
|
||
}
|
||
|
||
static func ==(lhs: SDLStunProbeReply, rhs: SDLStunProbeReply) -> Bool {
|
||
if lhs.cookie != rhs.cookie {return false}
|
||
if lhs.port != rhs.port {return false}
|
||
if lhs.ip != rhs.ip {return false}
|
||
if lhs.unknownFields != rhs.unknownFields {return false}
|
||
return true
|
||
}
|
||
}
|