@@ -172,6 +172,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
172
172
case location // = 11
173
173
case log // = 12
174
174
case contact // = 13
175
+ case wallet // = 15
175
176
case UNRECOGNIZED( Int )
176
177
177
178
public init ( ) {
@@ -195,6 +196,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
195
196
case 12 : self = . log
196
197
case 13 : self = . contact
197
198
case 14 : self = . gifText
199
+ case 15 : self = . wallet
198
200
default : self = . UNRECOGNIZED( rawValue)
199
201
}
200
202
}
@@ -216,6 +218,7 @@ public enum IGPRoomMessageType: SwiftProtobuf.Enum {
216
218
case . log: return 12
217
219
case . contact: return 13
218
220
case . gifText: return 14
221
+ case . wallet: return 15
219
222
case . UNRECOGNIZED( let i) : return i
220
223
}
221
224
}
@@ -634,6 +637,81 @@ public struct IGPRoomMessageContact: SwiftProtobuf.Message {
634
637
public init ( ) { }
635
638
}
636
639
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
+
637
715
public struct IGPRoomMessageForwardFrom : SwiftProtobuf . Message {
638
716
// SwiftProtobuf.Message conformance is added in an extension below. See the
639
717
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -901,6 +979,15 @@ public struct IGPRoomMessage: SwiftProtobuf.Message {
901
979
/// Clears the value of `igpContact`. Subsequent reads from it will return its default value.
902
980
public mutating func clearIgpContact( ) { _storage. _igpContact = nil }
903
981
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
+
904
991
public var igpEdited : Bool {
905
992
get { return _storage. _igpEdited}
906
993
set { _uniqueStorage ( ) . _igpEdited = newValue}
@@ -1813,6 +1900,7 @@ extension IGPRoomMessageType: SwiftProtobuf._ProtoNameProviding {
1813
1900
12 : . same( proto: " LOG " ) ,
1814
1901
13 : . same( proto: " CONTACT " ) ,
1815
1902
14 : . same( proto: " GIF_TEXT " ) ,
1903
+ 15 : . same( proto: " WALLET " ) ,
1816
1904
]
1817
1905
}
1818
1906
@@ -2103,6 +2191,146 @@ extension IGPRoomMessageContact: SwiftProtobuf._MessageImplementationBase, Swift
2103
2191
}
2104
2192
}
2105
2193
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
+
2106
2334
extension IGPRoomMessageForwardFrom : SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
2107
2335
public static let protoMessageName : String = " IGPRoomMessageForwardFrom "
2108
2336
public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
@@ -2423,6 +2651,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2423
2651
9 : . standard( proto: " IGP_location " ) ,
2424
2652
10 : . standard( proto: " IGP_log " ) ,
2425
2653
11 : . standard( proto: " IGP_contact " ) ,
2654
+ 22 : . standard( proto: " IGP_wallet " ) ,
2426
2655
12 : . standard( proto: " IGP_edited " ) ,
2427
2656
13 : . standard( proto: " IGP_create_time " ) ,
2428
2657
14 : . standard( proto: " IGP_update_time " ) ,
@@ -2447,6 +2676,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2447
2676
var _igpLocation : IGPRoomMessageLocation ? = nil
2448
2677
var _igpLog : IGPRoomMessageLog ? = nil
2449
2678
var _igpContact : IGPRoomMessageContact ? = nil
2679
+ var _igpWallet : IGPRoomMessageWallet ? = nil
2450
2680
var _igpEdited : Bool = false
2451
2681
var _igpCreateTime : Int32 = 0
2452
2682
var _igpUpdateTime : Int32 = 0
@@ -2474,6 +2704,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2474
2704
_igpLocation = source. _igpLocation
2475
2705
_igpLog = source. _igpLog
2476
2706
_igpContact = source. _igpContact
2707
+ _igpWallet = source. _igpWallet
2477
2708
_igpEdited = source. _igpEdited
2478
2709
_igpCreateTime = source. _igpCreateTime
2479
2710
_igpUpdateTime = source. _igpUpdateTime
@@ -2520,6 +2751,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2520
2751
case 19 : try decoder. decodeSingularEnumField ( value: & _storage. _igpExtraType)
2521
2752
case 20 : try decoder. decodeSingularMessageField ( value: & _storage. _igpChannelExtra)
2522
2753
case 21 : try decoder. decodeSingularInt64Field ( value: & _storage. _igpRandomID)
2754
+ case 22 : try decoder. decodeSingularMessageField ( value: & _storage. _igpWallet)
2523
2755
default : break
2524
2756
}
2525
2757
}
@@ -2591,6 +2823,9 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2591
2823
if _storage. _igpRandomID != 0 {
2592
2824
try visitor. visitSingularInt64Field ( value: _storage. _igpRandomID, fieldNumber: 21 )
2593
2825
}
2826
+ if let v = _storage. _igpWallet {
2827
+ try visitor. visitSingularMessageField ( value: v, fieldNumber: 22 )
2828
+ }
2594
2829
}
2595
2830
try unknownFields. traverse ( visitor: & visitor)
2596
2831
}
@@ -2611,6 +2846,7 @@ extension IGPRoomMessage: SwiftProtobuf._MessageImplementationBase, SwiftProtobu
2611
2846
if _storage. _igpLocation != other_storage. _igpLocation { return false }
2612
2847
if _storage. _igpLog != other_storage. _igpLog { return false }
2613
2848
if _storage. _igpContact != other_storage. _igpContact { return false }
2849
+ if _storage. _igpWallet != other_storage. _igpWallet { return false }
2614
2850
if _storage. _igpEdited != other_storage. _igpEdited { return false }
2615
2851
if _storage. _igpCreateTime != other_storage. _igpCreateTime { return false }
2616
2852
if _storage. _igpUpdateTime != other_storage. _igpUpdateTime { return false }
0 commit comments