Skip to content

Commit 0a5e39c

Browse files
Generated new protobuf models (#867)
1 parent c9d60dc commit 0a5e39c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Sources/StreamVideo/protobuf/sfu/models/models.pb.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ enum Stream_Video_Sfu_Models_ErrorCode: SwiftProtobuf.Enum {
224224
case participantMigrating // = 203
225225
case participantReconnectFailed // = 204
226226
case participantMediaTransportFailure // = 205
227+
case participantSignalLost // = 206
227228
case callNotFound // = 300
229+
case callParticipantLimitReached // = 301
228230
case requestValidationFailed // = 400
229231
case unauthenticated // = 401
230232
case permissionDenied // = 403
@@ -252,7 +254,9 @@ enum Stream_Video_Sfu_Models_ErrorCode: SwiftProtobuf.Enum {
252254
case 203: self = .participantMigrating
253255
case 204: self = .participantReconnectFailed
254256
case 205: self = .participantMediaTransportFailure
257+
case 206: self = .participantSignalLost
255258
case 300: self = .callNotFound
259+
case 301: self = .callParticipantLimitReached
256260
case 400: self = .requestValidationFailed
257261
case 401: self = .unauthenticated
258262
case 403: self = .permissionDenied
@@ -278,7 +282,9 @@ enum Stream_Video_Sfu_Models_ErrorCode: SwiftProtobuf.Enum {
278282
case .participantMigrating: return 203
279283
case .participantReconnectFailed: return 204
280284
case .participantMediaTransportFailure: return 205
285+
case .participantSignalLost: return 206
281286
case .callNotFound: return 300
287+
case .callParticipantLimitReached: return 301
282288
case .requestValidationFailed: return 400
283289
case .unauthenticated: return 401
284290
case .permissionDenied: return 403
@@ -309,7 +315,9 @@ extension Stream_Video_Sfu_Models_ErrorCode: CaseIterable {
309315
.participantMigrating,
310316
.participantReconnectFailed,
311317
.participantMediaTransportFailure,
318+
.participantSignalLost,
312319
.callNotFound,
320+
.callParticipantLimitReached,
313321
.requestValidationFailed,
314322
.unauthenticated,
315323
.permissionDenied,
@@ -1015,6 +1023,11 @@ struct Stream_Video_Sfu_Models_PublishOption {
10151023
/// publish request without affecting others.
10161024
var id: Int32 = 0
10171025

1026+
/// If true, instructs the publisher to send only the highest available simulcast layer,
1027+
/// disabling all lower layers. This applies to simulcast encodings.
1028+
/// For SVC codecs, prefer using the L1T3 (single spatial, 3 temporal layers) mode instead.
1029+
var useSingleLayer: Bool = false
1030+
10181031
var unknownFields = SwiftProtobuf.UnknownStorage()
10191032

10201033
init() {}
@@ -1512,7 +1525,9 @@ extension Stream_Video_Sfu_Models_ErrorCode: SwiftProtobuf._ProtoNameProviding {
15121525
203: .same(proto: "ERROR_CODE_PARTICIPANT_MIGRATING"),
15131526
204: .same(proto: "ERROR_CODE_PARTICIPANT_RECONNECT_FAILED"),
15141527
205: .same(proto: "ERROR_CODE_PARTICIPANT_MEDIA_TRANSPORT_FAILURE"),
1528+
206: .same(proto: "ERROR_CODE_PARTICIPANT_SIGNAL_LOST"),
15151529
300: .same(proto: "ERROR_CODE_CALL_NOT_FOUND"),
1530+
301: .same(proto: "ERROR_CODE_CALL_PARTICIPANT_LIMIT_REACHED"),
15161531
400: .same(proto: "ERROR_CODE_REQUEST_VALIDATION_FAILED"),
15171532
401: .same(proto: "ERROR_CODE_UNAUTHENTICATED"),
15181533
403: .same(proto: "ERROR_CODE_PERMISSION_DENIED"),
@@ -2021,6 +2036,7 @@ extension Stream_Video_Sfu_Models_PublishOption: SwiftProtobuf.Message, SwiftPro
20212036
6: .standard(proto: "max_temporal_layers"),
20222037
7: .standard(proto: "video_dimension"),
20232038
8: .same(proto: "id"),
2039+
9: .standard(proto: "use_single_layer"),
20242040
]
20252041

20262042
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
@@ -2037,6 +2053,7 @@ extension Stream_Video_Sfu_Models_PublishOption: SwiftProtobuf.Message, SwiftPro
20372053
case 6: try { try decoder.decodeSingularInt32Field(value: &self.maxTemporalLayers) }()
20382054
case 7: try { try decoder.decodeSingularMessageField(value: &self._videoDimension) }()
20392055
case 8: try { try decoder.decodeSingularInt32Field(value: &self.id) }()
2056+
case 9: try { try decoder.decodeSingularBoolField(value: &self.useSingleLayer) }()
20402057
default: break
20412058
}
20422059
}
@@ -2071,6 +2088,9 @@ extension Stream_Video_Sfu_Models_PublishOption: SwiftProtobuf.Message, SwiftPro
20712088
if self.id != 0 {
20722089
try visitor.visitSingularInt32Field(value: self.id, fieldNumber: 8)
20732090
}
2091+
if self.useSingleLayer != false {
2092+
try visitor.visitSingularBoolField(value: self.useSingleLayer, fieldNumber: 9)
2093+
}
20742094
try unknownFields.traverse(visitor: &visitor)
20752095
}
20762096

@@ -2083,6 +2103,7 @@ extension Stream_Video_Sfu_Models_PublishOption: SwiftProtobuf.Message, SwiftPro
20832103
if lhs.maxTemporalLayers != rhs.maxTemporalLayers {return false}
20842104
if lhs._videoDimension != rhs._videoDimension {return false}
20852105
if lhs.id != rhs.id {return false}
2106+
if lhs.useSingleLayer != rhs.useSingleLayer {return false}
20862107
if lhs.unknownFields != rhs.unknownFields {return false}
20872108
return true
20882109
}

0 commit comments

Comments
 (0)