Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Commit 90eef14

Browse files
Update Proto To Build 93
1 parent ac2e4dc commit 90eef14

File tree

4 files changed

+634
-0
lines changed

4 files changed

+634
-0
lines changed

IGProtoBuff/ProtoBuffs/Global.pb.swift

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
172172
case location // = 11
173173
case log // = 12
174174
case contact // = 13
175+
case wallet // = 15
175176
case UNRECOGNIZED(Int)
176177

177178
public init() {
@@ -195,6 +196,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
195196
case 12: self = .log
196197
case 13: self = .contact
197198
case 14: self = .gifText
199+
case 15: self = .wallet
198200
default: self = .UNRECOGNIZED(rawValue)
199201
}
200202
}
@@ -216,6 +218,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
216218
case .log: return 12
217219
case .contact: return 13
218220
case .gifText: return 14
221+
case .wallet: return 15
219222
case .UNRECOGNIZED(let i): return i
220223
}
221224
}
@@ -634,6 +637,81 @@ public struct IGPRoomMessageContact: SwiftProtobuf.Message {
634637
public init() {}
635638
}
636639

640+
public struct IGPRoomMessageWallet: SwiftProtobuf.Message {
641+
// SwiftProtobuf.Message conformance is added in an extension below. See the
642+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
643+
// methods supported on all messages.
644+
645+
public var igpType: IGPRoomMessageWallet.IGPType {
646+
get {return _storage._igpType}
647+
set {_uniqueStorage()._igpType = newValue}
648+
}
649+
650+
public var igpMoneyTransfer: IGPRoomMessageWallet.IGPMoneyTransfer {
651+
get {return _storage._igpMoneyTransfer ?? IGPRoomMessageWallet.IGPMoneyTransfer()}
652+
set {_uniqueStorage()._igpMoneyTransfer = newValue}
653+
}
654+
/// Returns true if `igpMoneyTransfer` has been explicitly set.
655+
public var hasIgpMoneyTransfer: Bool {return _storage._igpMoneyTransfer != nil}
656+
/// Clears the value of `igpMoneyTransfer`. Subsequent reads from it will return its default value.
657+
public mutating func clearIgpMoneyTransfer() {_storage._igpMoneyTransfer = nil}
658+
659+
public var unknownFields = SwiftProtobuf.UnknownStorage()
660+
661+
public enum IGPType: SwiftProtobuf.Enum {
662+
public typealias RawValue = Int
663+
case moneyTransfer // = 0
664+
case UNRECOGNIZED(Int)
665+
666+
public init() {
667+
self = .moneyTransfer
668+
}
669+
670+
public init?(rawValue: Int) {
671+
switch rawValue {
672+
case 0: self = .moneyTransfer
673+
default: self = .UNRECOGNIZED(rawValue)
674+
}
675+
}
676+
677+
public var rawValue: Int {
678+
switch self {
679+
case .moneyTransfer: return 0
680+
case .UNRECOGNIZED(let i): return i
681+
}
682+
}
683+
684+
}
685+
686+
public struct IGPMoneyTransfer: SwiftProtobuf.Message {
687+
// SwiftProtobuf.Message conformance is added in an extension below. See the
688+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
689+
// methods supported on all messages.
690+
691+
public var igpFromUserID: Int64 = 0
692+
693+
public var igpToUserID: Int64 = 0
694+
695+
public var igpAmount: Int64 = 0
696+
697+
public var igpTraceNumber: Int64 = 0
698+
699+
public var igpInvoiceNumber: Int64 = 0
700+
701+
public var igpPayTime: Int32 = 0
702+
703+
public var igpDescription: String = String()
704+
705+
public var unknownFields = SwiftProtobuf.UnknownStorage()
706+
707+
public init() {}
708+
}
709+
710+
public init() {}
711+
712+
fileprivate var _storage = _StorageClass.defaultInstance
713+
}
714+
637715
public struct IGPRoomMessageForwardFrom: SwiftProtobuf.Message {
638716
// SwiftProtobuf.Message conformance is added in an extension below. See the
639717
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -901,6 +979,15 @@ public struct IGPRoomMessage: SwiftProtobuf.Message {
901979
/// Clears the value of `igpContact`. Subsequent reads from it will return its default value.
902980
public mutating func clearIgpContact() {_storage._igpContact = nil}
903981

982+
public var igpWallet: IGPRoomMessageWallet {
983+
get {return _storage._igpWallet ?? IGPRoomMessageWallet()}
984+
set {_uniqueStorage()._igpWallet = newValue}
985+
}
986+
/// Returns true if `igpWallet` has been explicitly set.
987+
public var hasIgpWallet: Bool {return _storage._igpWallet != nil}
988+
/// Clears the value of `igpWallet`. Subsequent reads from it will return its default value.
989+
public mutating func clearIgpWallet() {_storage._igpWallet = nil}
990+
904991
public var igpEdited: Bool {
905992
get {return _storage._igpEdited}
906993
set {_uniqueStorage()._igpEdited = newValue}
@@ -1813,6 +1900,7 @@ extension IGPRoomMessageType: SwiftProtobuf._ProtoNameProviding {
18131900
12: .same(proto: "LOG"),
18141901
13: .same(proto: "CONTACT"),
18151902
14: .same(proto: "GIF_TEXT"),
1903+
15: .same(proto: "WALLET"),
18161904
]
18171905
}
18181906

@@ -2103,6 +2191,146 @@ extension IGPRoomMessageContact: SwiftProtobuf._MessageImplementationBase, Swift
21032191
}
21042192
}
21052193

2194+
extension IGPRoomMessageWallet: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2195+
public static let protoMessageName: String = "IGPRoomMessageWallet"
2196+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2197+
1: .standard(proto: "IGP_type"),
2198+
2: .standard(proto: "IGP_money_transfer"),
2199+
]
2200+
2201+
fileprivate class _StorageClass {
2202+
var _igpType: IGPRoomMessageWallet.IGPType = .moneyTransfer
2203+
var _igpMoneyTransfer: IGPRoomMessageWallet.IGPMoneyTransfer? = nil
2204+
2205+
static let defaultInstance = _StorageClass()
2206+
2207+
private init() {}
2208+
2209+
init(copying source: _StorageClass) {
2210+
_igpType = source._igpType
2211+
_igpMoneyTransfer = source._igpMoneyTransfer
2212+
}
2213+
}
2214+
2215+
fileprivate mutating func _uniqueStorage() -> _StorageClass {
2216+
if !isKnownUniquelyReferenced(&_storage) {
2217+
_storage = _StorageClass(copying: _storage)
2218+
}
2219+
return _storage
2220+
}
2221+
2222+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2223+
_ = _uniqueStorage()
2224+
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2225+
while let fieldNumber = try decoder.nextFieldNumber() {
2226+
switch fieldNumber {
2227+
case 1: try decoder.decodeSingularEnumField(value: &_storage._igpType)
2228+
case 2: try decoder.decodeSingularMessageField(value: &_storage._igpMoneyTransfer)
2229+
default: break
2230+
}
2231+
}
2232+
}
2233+
}
2234+
2235+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2236+
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2237+
if _storage._igpType != .moneyTransfer {
2238+
try visitor.visitSingularEnumField(value: _storage._igpType, fieldNumber: 1)
2239+
}
2240+
if let v = _storage._igpMoneyTransfer {
2241+
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2242+
}
2243+
}
2244+
try unknownFields.traverse(visitor: &visitor)
2245+
}
2246+
2247+
public func _protobuf_generated_isEqualTo(other: IGPRoomMessageWallet) -> Bool {
2248+
if _storage !== other._storage {
2249+
let storagesAreEqual: Bool = withExtendedLifetime((_storage, other._storage)) { (_args: (_StorageClass, _StorageClass)) in
2250+
let _storage = _args.0
2251+
let other_storage = _args.1
2252+
if _storage._igpType != other_storage._igpType {return false}
2253+
if _storage._igpMoneyTransfer != other_storage._igpMoneyTransfer {return false}
2254+
return true
2255+
}
2256+
if !storagesAreEqual {return false}
2257+
}
2258+
if unknownFields != other.unknownFields {return false}
2259+
return true
2260+
}
2261+
}
2262+
2263+
extension IGPRoomMessageWallet.IGPType: SwiftProtobuf._ProtoNameProviding {
2264+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2265+
0: .same(proto: "MONEY_TRANSFER"),
2266+
]
2267+
}
2268+
2269+
extension IGPRoomMessageWallet.IGPMoneyTransfer: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2270+
public static let protoMessageName: String = IGPRoomMessageWallet.protoMessageName + ".IGPMoneyTransfer"
2271+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2272+
1: .standard(proto: "IGP_from_user_id"),
2273+
2: .standard(proto: "IGP_to_user_id"),
2274+
3: .standard(proto: "IGP_amount"),
2275+
4: .standard(proto: "IGP_trace_number"),
2276+
5: .standard(proto: "IGP_invoice_number"),
2277+
6: .standard(proto: "IGP_pay_time"),
2278+
7: .standard(proto: "IGP_description"),
2279+
]
2280+
2281+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2282+
while let fieldNumber = try decoder.nextFieldNumber() {
2283+
switch fieldNumber {
2284+
case 1: try decoder.decodeSingularInt64Field(value: &self.igpFromUserID)
2285+
case 2: try decoder.decodeSingularInt64Field(value: &self.igpToUserID)
2286+
case 3: try decoder.decodeSingularInt64Field(value: &self.igpAmount)
2287+
case 4: try decoder.decodeSingularInt64Field(value: &self.igpTraceNumber)
2288+
case 5: try decoder.decodeSingularInt64Field(value: &self.igpInvoiceNumber)
2289+
case 6: try decoder.decodeSingularInt32Field(value: &self.igpPayTime)
2290+
case 7: try decoder.decodeSingularStringField(value: &self.igpDescription)
2291+
default: break
2292+
}
2293+
}
2294+
}
2295+
2296+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2297+
if self.igpFromUserID != 0 {
2298+
try visitor.visitSingularInt64Field(value: self.igpFromUserID, fieldNumber: 1)
2299+
}
2300+
if self.igpToUserID != 0 {
2301+
try visitor.visitSingularInt64Field(value: self.igpToUserID, fieldNumber: 2)
2302+
}
2303+
if self.igpAmount != 0 {
2304+
try visitor.visitSingularInt64Field(value: self.igpAmount, fieldNumber: 3)
2305+
}
2306+
if self.igpTraceNumber != 0 {
2307+
try visitor.visitSingularInt64Field(value: self.igpTraceNumber, fieldNumber: 4)
2308+
}
2309+
if self.igpInvoiceNumber != 0 {
2310+
try visitor.visitSingularInt64Field(value: self.igpInvoiceNumber, fieldNumber: 5)
2311+
}
2312+
if self.igpPayTime != 0 {
2313+
try visitor.visitSingularInt32Field(value: self.igpPayTime, fieldNumber: 6)
2314+
}
2315+
if !self.igpDescription.isEmpty {
2316+
try visitor.visitSingularStringField(value: self.igpDescription, fieldNumber: 7)
2317+
}
2318+
try unknownFields.traverse(visitor: &visitor)
2319+
}
2320+
2321+
public func _protobuf_generated_isEqualTo(other: IGPRoomMessageWallet.IGPMoneyTransfer) -> Bool {
2322+
if self.igpFromUserID != other.igpFromUserID {return false}
2323+
if self.igpToUserID != other.igpToUserID {return false}
2324+
if self.igpAmount != other.igpAmount {return false}
2325+
if self.igpTraceNumber != other.igpTraceNumber {return false}
2326+
if self.igpInvoiceNumber != other.igpInvoiceNumber {return false}
2327+
if self.igpPayTime != other.igpPayTime {return false}
2328+
if self.igpDescription != other.igpDescription {return false}
2329+
if unknownFields != other.unknownFields {return false}
2330+
return true
2331+
}
2332+
}
2333+
21062334
extension IGPRoomMessageForwardFrom: SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
21072335
public static let protoMessageName: String = "IGPRoomMessageForwardFrom"
21082336
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
@@ -2423,6 +2651,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
24232651
9: .standard(proto: "IGP_location"),
24242652
10: .standard(proto: "IGP_log"),
24252653
11: .standard(proto: "IGP_contact"),
2654+
22: .standard(proto: "IGP_wallet"),
24262655
12: .standard(proto: "IGP_edited"),
24272656
13: .standard(proto: "IGP_create_time"),
24282657
14: .standard(proto: "IGP_update_time"),
@@ -2447,6 +2676,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
24472676
var _igpLocation: IGPRoomMessageLocation? = nil
24482677
var _igpLog: IGPRoomMessageLog? = nil
24492678
var _igpContact: IGPRoomMessageContact? = nil
2679+
var _igpWallet: IGPRoomMessageWallet? = nil
24502680
var _igpEdited: Bool = false
24512681
var _igpCreateTime: Int32 = 0
24522682
var _igpUpdateTime: Int32 = 0
@@ -2474,6 +2704,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
24742704
_igpLocation = source._igpLocation
24752705
_igpLog = source._igpLog
24762706
_igpContact = source._igpContact
2707+
_igpWallet = source._igpWallet
24772708
_igpEdited = source._igpEdited
24782709
_igpCreateTime = source._igpCreateTime
24792710
_igpUpdateTime = source._igpUpdateTime
@@ -2520,6 +2751,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
25202751
case 19: try decoder.decodeSingularEnumField(value: &_storage._igpExtraType)
25212752
case 20: try decoder.decodeSingularMessageField(value: &_storage._igpChannelExtra)
25222753
case 21: try decoder.decodeSingularInt64Field(value: &_storage._igpRandomID)
2754+
case 22: try decoder.decodeSingularMessageField(value: &_storage._igpWallet)
25232755
default: break
25242756
}
25252757
}
@@ -2591,6 +2823,9 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
25912823
if _storage._igpRandomID != 0 {
25922824
try visitor.visitSingularInt64Field(value: _storage._igpRandomID, fieldNumber: 21)
25932825
}
2826+
if let v = _storage._igpWallet {
2827+
try visitor.visitSingularMessageField(value: v, fieldNumber: 22)
2828+
}
25942829
}
25952830
try unknownFields.traverse(visitor: &visitor)
25962831
}
@@ -2611,6 +2846,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
26112846
if _storage._igpLocation != other_storage._igpLocation {return false}
26122847
if _storage._igpLog != other_storage._igpLog {return false}
26132848
if _storage._igpContact != other_storage._igpContact {return false}
2849+
if _storage._igpWallet != other_storage._igpWallet {return false}
26142850
if _storage._igpEdited != other_storage._igpEdited {return false}
26152851
if _storage._igpCreateTime != other_storage._igpCreateTime {return false}
26162852
if _storage._igpUpdateTime != other_storage._igpUpdateTime {return false}

0 commit comments

Comments
 (0)