@@ -248,6 +248,15 @@ struct Stream_Video_Sfu_Event_SfuEvent {
248
248
set { eventPayload = . changePublishOptions( newValue) }
249
249
}
250
250
251
+ /// InboundStateNotification
252
+ var inboundStateNotification : Stream_Video_Sfu_Event_InboundStateNotification {
253
+ get {
254
+ if case . inboundStateNotification( let v) ? = eventPayload { return v}
255
+ return Stream_Video_Sfu_Event_InboundStateNotification ( )
256
+ }
257
+ set { eventPayload = . inboundStateNotification( newValue) }
258
+ }
259
+
251
260
var unknownFields = SwiftProtobuf . UnknownStorage ( )
252
261
253
262
enum OneOf_EventPayload : Equatable {
@@ -317,6 +326,8 @@ struct Stream_Video_Sfu_Event_SfuEvent {
317
326
case participantMigrationComplete( Stream_Video_Sfu_Event_ParticipantMigrationComplete )
318
327
/// ChangePublishOptions is sent to signal the change in publish options such as a new codec or simulcast layers
319
328
case changePublishOptions( Stream_Video_Sfu_Event_ChangePublishOptions )
329
+ /// InboundStateNotification
330
+ case inboundStateNotification( Stream_Video_Sfu_Event_InboundStateNotification )
320
331
321
332
#if !swift(>=4.1)
322
333
static func == ( lhs: Stream_Video_Sfu_Event_SfuEvent . OneOf_EventPayload , rhs: Stream_Video_Sfu_Event_SfuEvent . OneOf_EventPayload ) -> Bool {
@@ -412,6 +423,10 @@ struct Stream_Video_Sfu_Event_SfuEvent {
412
423
guard case . changePublishOptions( let l) = lhs, case . changePublishOptions( let r) = rhs else { preconditionFailure ( ) }
413
424
return l == r
414
425
} ( )
426
+ case ( . inboundStateNotification, . inboundStateNotification) : return {
427
+ guard case . inboundStateNotification( let l) = lhs, case . inboundStateNotification( let r) = rhs else { preconditionFailure ( ) }
428
+ return l == r
429
+ } ( )
415
430
default : return false
416
431
}
417
432
}
@@ -795,6 +810,11 @@ struct Stream_Video_Sfu_Event_JoinRequest {
795
810
set { _uniqueStorage ( ) . _preferredSubscribeOptions = newValue}
796
811
}
797
812
813
+ var capabilities : [ Stream_Video_Sfu_Models_ClientCapability ] {
814
+ get { return _storage. _capabilities}
815
+ set { _uniqueStorage ( ) . _capabilities = newValue}
816
+ }
817
+
798
818
var unknownFields = SwiftProtobuf . UnknownStorage ( )
799
819
800
820
init ( ) { }
@@ -1217,6 +1237,36 @@ struct Stream_Video_Sfu_Event_CallEnded {
1217
1237
init ( ) { }
1218
1238
}
1219
1239
1240
+ struct Stream_Video_Sfu_Event_InboundStateNotification {
1241
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1242
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1243
+ // methods supported on all messages.
1244
+
1245
+ var inboundVideoStates : [ Stream_Video_Sfu_Event_InboundVideoState ] = [ ]
1246
+
1247
+ var unknownFields = SwiftProtobuf . UnknownStorage ( )
1248
+
1249
+ init ( ) { }
1250
+ }
1251
+
1252
+ struct Stream_Video_Sfu_Event_InboundVideoState {
1253
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1254
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1255
+ // methods supported on all messages.
1256
+
1257
+ var userID : String = String ( )
1258
+
1259
+ var sessionID : String = String ( )
1260
+
1261
+ var trackType : Stream_Video_Sfu_Models_TrackType = . unspecified
1262
+
1263
+ var paused : Bool = false
1264
+
1265
+ var unknownFields = SwiftProtobuf . UnknownStorage ( )
1266
+
1267
+ init ( ) { }
1268
+ }
1269
+
1220
1270
#if swift(>=5.5) && canImport(_Concurrency)
1221
1271
extension Stream_Video_Sfu_Event_SfuEvent : @unchecked Sendable { }
1222
1272
extension Stream_Video_Sfu_Event_SfuEvent . OneOf_EventPayload : @unchecked Sendable { }
@@ -1255,6 +1305,8 @@ extension Stream_Video_Sfu_Event_ChangePublishQuality: @unchecked Sendable {}
1255
1305
extension Stream_Video_Sfu_Event_CallGrantsUpdated : @unchecked Sendable { }
1256
1306
extension Stream_Video_Sfu_Event_GoAway : @unchecked Sendable { }
1257
1307
extension Stream_Video_Sfu_Event_CallEnded : @unchecked Sendable { }
1308
+ extension Stream_Video_Sfu_Event_InboundStateNotification : @unchecked Sendable { }
1309
+ extension Stream_Video_Sfu_Event_InboundVideoState : @unchecked Sendable { }
1258
1310
#endif // swift(>=5.5) && canImport(_Concurrency)
1259
1311
1260
1312
// MARK: - Code below here is support for the SwiftProtobuf runtime.
@@ -1286,6 +1338,7 @@ extension Stream_Video_Sfu_Event_SfuEvent: SwiftProtobuf.Message, SwiftProtobuf.
1286
1338
24 : . standard( proto: " participant_updated " ) ,
1287
1339
25 : . standard( proto: " participant_migration_complete " ) ,
1288
1340
27 : . standard( proto: " change_publish_options " ) ,
1341
+ 28 : . standard( proto: " inbound_state_notification " ) ,
1289
1342
]
1290
1343
1291
1344
mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
@@ -1580,6 +1633,19 @@ extension Stream_Video_Sfu_Event_SfuEvent: SwiftProtobuf.Message, SwiftProtobuf.
1580
1633
self . eventPayload = . changePublishOptions( v)
1581
1634
}
1582
1635
} ( )
1636
+ case 28 : try {
1637
+ var v : Stream_Video_Sfu_Event_InboundStateNotification ?
1638
+ var hadOneofValue = false
1639
+ if let current = self . eventPayload {
1640
+ hadOneofValue = true
1641
+ if case . inboundStateNotification( let m) = current { v = m}
1642
+ }
1643
+ try decoder. decodeSingularMessageField ( value: & v)
1644
+ if let v = v {
1645
+ if hadOneofValue { try decoder. handleConflictingOneOf ( ) }
1646
+ self . eventPayload = . inboundStateNotification( v)
1647
+ }
1648
+ } ( )
1583
1649
default : break
1584
1650
}
1585
1651
}
@@ -1679,6 +1745,10 @@ extension Stream_Video_Sfu_Event_SfuEvent: SwiftProtobuf.Message, SwiftProtobuf.
1679
1745
guard case . changePublishOptions( let v) ? = self . eventPayload else { preconditionFailure ( ) }
1680
1746
try visitor. visitSingularMessageField ( value: v, fieldNumber: 27 )
1681
1747
} ( )
1748
+ case . inboundStateNotification? : try {
1749
+ guard case . inboundStateNotification( let v) ? = self . eventPayload else { preconditionFailure ( ) }
1750
+ try visitor. visitSingularMessageField ( value: v, fieldNumber: 28 )
1751
+ } ( )
1682
1752
case nil : break
1683
1753
}
1684
1754
try unknownFields. traverse ( visitor: & visitor)
@@ -2297,6 +2367,7 @@ extension Stream_Video_Sfu_Event_JoinRequest: SwiftProtobuf.Message, SwiftProtob
2297
2367
7 : . standard( proto: " reconnect_details " ) ,
2298
2368
9 : . standard( proto: " preferred_publish_options " ) ,
2299
2369
10 : . standard( proto: " preferred_subscribe_options " ) ,
2370
+ 11 : . same( proto: " capabilities " ) ,
2300
2371
]
2301
2372
2302
2373
fileprivate class _StorageClass : @unchecked Sendable {
@@ -2310,6 +2381,7 @@ fileprivate class _StorageClass: @unchecked Sendable {
2310
2381
var _reconnectDetails : Stream_Video_Sfu_Event_ReconnectDetails ? = nil
2311
2382
var _preferredPublishOptions : [ Stream_Video_Sfu_Models_PublishOption ] = [ ]
2312
2383
var _preferredSubscribeOptions : [ Stream_Video_Sfu_Models_SubscribeOption ] = [ ]
2384
+ var _capabilities : [ Stream_Video_Sfu_Models_ClientCapability ] = [ ]
2313
2385
2314
2386
static let defaultInstance = _StorageClass ( )
2315
2387
@@ -2326,6 +2398,7 @@ fileprivate class _StorageClass: @unchecked Sendable {
2326
2398
_reconnectDetails = source. _reconnectDetails
2327
2399
_preferredPublishOptions = source. _preferredPublishOptions
2328
2400
_preferredSubscribeOptions = source. _preferredSubscribeOptions
2401
+ _capabilities = source. _capabilities
2329
2402
}
2330
2403
}
2331
2404
@@ -2354,6 +2427,7 @@ fileprivate class _StorageClass: @unchecked Sendable {
2354
2427
case 8 : try { try decoder. decodeSingularStringField ( value: & _storage. _publisherSdp) } ( )
2355
2428
case 9 : try { try decoder. decodeRepeatedMessageField ( value: & _storage. _preferredPublishOptions) } ( )
2356
2429
case 10 : try { try decoder. decodeRepeatedMessageField ( value: & _storage. _preferredSubscribeOptions) } ( )
2430
+ case 11 : try { try decoder. decodeRepeatedEnumField ( value: & _storage. _capabilities) } ( )
2357
2431
default : break
2358
2432
}
2359
2433
}
@@ -2396,6 +2470,9 @@ fileprivate class _StorageClass: @unchecked Sendable {
2396
2470
if !_storage. _preferredSubscribeOptions. isEmpty {
2397
2471
try visitor. visitRepeatedMessageField ( value: _storage. _preferredSubscribeOptions, fieldNumber: 10 )
2398
2472
}
2473
+ if !_storage. _capabilities. isEmpty {
2474
+ try visitor. visitPackedEnumField ( value: _storage. _capabilities, fieldNumber: 11 )
2475
+ }
2399
2476
}
2400
2477
try unknownFields. traverse ( visitor: & visitor)
2401
2478
}
@@ -2415,6 +2492,7 @@ fileprivate class _StorageClass: @unchecked Sendable {
2415
2492
if _storage. _reconnectDetails != rhs_storage. _reconnectDetails { return false }
2416
2493
if _storage. _preferredPublishOptions != rhs_storage. _preferredPublishOptions { return false }
2417
2494
if _storage. _preferredSubscribeOptions != rhs_storage. _preferredSubscribeOptions { return false }
2495
+ if _storage. _capabilities != rhs_storage. _capabilities { return false }
2418
2496
return true
2419
2497
}
2420
2498
if !storagesAreEqual { return false }
@@ -3299,3 +3377,85 @@ extension Stream_Video_Sfu_Event_CallEnded: SwiftProtobuf.Message, SwiftProtobuf
3299
3377
return true
3300
3378
}
3301
3379
}
3380
+
3381
+ extension Stream_Video_Sfu_Event_InboundStateNotification : SwiftProtobuf . Message , SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
3382
+ static let protoMessageName : String = _protobuf_package + " .InboundStateNotification "
3383
+ static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
3384
+ 1 : . standard( proto: " inbound_video_states " ) ,
3385
+ ]
3386
+
3387
+ mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
3388
+ while let fieldNumber = try decoder. nextFieldNumber ( ) {
3389
+ // The use of inline closures is to circumvent an issue where the compiler
3390
+ // allocates stack space for every case branch when no optimizations are
3391
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
3392
+ switch fieldNumber {
3393
+ case 1 : try { try decoder. decodeRepeatedMessageField ( value: & self . inboundVideoStates) } ( )
3394
+ default : break
3395
+ }
3396
+ }
3397
+ }
3398
+
3399
+ func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
3400
+ if !self . inboundVideoStates. isEmpty {
3401
+ try visitor. visitRepeatedMessageField ( value: self . inboundVideoStates, fieldNumber: 1 )
3402
+ }
3403
+ try unknownFields. traverse ( visitor: & visitor)
3404
+ }
3405
+
3406
+ static func == ( lhs: Stream_Video_Sfu_Event_InboundStateNotification , rhs: Stream_Video_Sfu_Event_InboundStateNotification ) -> Bool {
3407
+ if lhs. inboundVideoStates != rhs. inboundVideoStates { return false }
3408
+ if lhs. unknownFields != rhs. unknownFields { return false }
3409
+ return true
3410
+ }
3411
+ }
3412
+
3413
+ extension Stream_Video_Sfu_Event_InboundVideoState : SwiftProtobuf . Message , SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
3414
+ static let protoMessageName : String = _protobuf_package + " .InboundVideoState "
3415
+ static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
3416
+ 1 : . standard( proto: " user_id " ) ,
3417
+ 2 : . standard( proto: " session_id " ) ,
3418
+ 3 : . standard( proto: " track_type " ) ,
3419
+ 4 : . same( proto: " paused " ) ,
3420
+ ]
3421
+
3422
+ mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
3423
+ while let fieldNumber = try decoder. nextFieldNumber ( ) {
3424
+ // The use of inline closures is to circumvent an issue where the compiler
3425
+ // allocates stack space for every case branch when no optimizations are
3426
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
3427
+ switch fieldNumber {
3428
+ case 1 : try { try decoder. decodeSingularStringField ( value: & self . userID) } ( )
3429
+ case 2 : try { try decoder. decodeSingularStringField ( value: & self . sessionID) } ( )
3430
+ case 3 : try { try decoder. decodeSingularEnumField ( value: & self . trackType) } ( )
3431
+ case 4 : try { try decoder. decodeSingularBoolField ( value: & self . paused) } ( )
3432
+ default : break
3433
+ }
3434
+ }
3435
+ }
3436
+
3437
+ func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
3438
+ if !self . userID. isEmpty {
3439
+ try visitor. visitSingularStringField ( value: self . userID, fieldNumber: 1 )
3440
+ }
3441
+ if !self . sessionID. isEmpty {
3442
+ try visitor. visitSingularStringField ( value: self . sessionID, fieldNumber: 2 )
3443
+ }
3444
+ if self . trackType != . unspecified {
3445
+ try visitor. visitSingularEnumField ( value: self . trackType, fieldNumber: 3 )
3446
+ }
3447
+ if self . paused != false {
3448
+ try visitor. visitSingularBoolField ( value: self . paused, fieldNumber: 4 )
3449
+ }
3450
+ try unknownFields. traverse ( visitor: & visitor)
3451
+ }
3452
+
3453
+ static func == ( lhs: Stream_Video_Sfu_Event_InboundVideoState , rhs: Stream_Video_Sfu_Event_InboundVideoState ) -> Bool {
3454
+ if lhs. userID != rhs. userID { return false }
3455
+ if lhs. sessionID != rhs. sessionID { return false }
3456
+ if lhs. trackType != rhs. trackType { return false }
3457
+ if lhs. paused != rhs. paused { return false }
3458
+ if lhs. unknownFields != rhs. unknownFields { return false }
3459
+ return true
3460
+ }
3461
+ }
0 commit comments