struct UserLoginRes {
// 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 {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
var message: String {
get {return _storage._message}
set {_uniqueStorage()._message = newValue}
}
var data: UserInfo {
get {return _storage._data ?? UserInfo()}
set {_uniqueStorage()._data = newValue}
}
/// Returns true if `data` has been explicitly set.
var hasData: Bool {return _storage._data != nil}
/// Clears the value of `data`. Subsequent reads from it will return its default value.
mutating func clearData() {_uniqueStorage()._data = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
Usage:
let realResp = try typeInfo(of: UserLoginRes.self)
Debug:
Q: Can not find property "code" and "message"? Only "unknownFields" and "_storage"?