diff --git a/Runtime/Plugins/ffi-android-arm64/liblivekit_ffi.so b/Runtime/Plugins/ffi-android-arm64/liblivekit_ffi.so index fadf1c9..21eafea 100644 --- a/Runtime/Plugins/ffi-android-arm64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-android-arm64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1a119ec9f90b7ea02e29e1cd11916d7d1ce2b0ffd10673860b8c7cd42dfa5dd9 -size 19271672 +oid sha256:5549ce9ad68c839ce43a4cbbf8ead4a3ea51ae0a392fb7c92f4489cc3a094e8c +size 19481248 diff --git a/Runtime/Plugins/ffi-android-armv7/liblivekit_ffi.so b/Runtime/Plugins/ffi-android-armv7/liblivekit_ffi.so index 2195c03..9209c2b 100644 --- a/Runtime/Plugins/ffi-android-armv7/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-android-armv7/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff355140c31d40be1109304015402ac28d28d1c0c609e9b6810f8a2499d3e79b -size 11726988 +oid sha256:c195c984e4ade9f124ecef422d239f62bf5ce1e1312a84eb74abd770a1bfa2d6 +size 11879508 diff --git a/Runtime/Plugins/ffi-android-x86_64/liblivekit_ffi.so b/Runtime/Plugins/ffi-android-x86_64/liblivekit_ffi.so index 08d626f..44c06bc 100644 --- a/Runtime/Plugins/ffi-android-x86_64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-android-x86_64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c01651e337782fe24b63b7b8f7a2e45b4eeae5733bad178338d5bc850f87d89f -size 22591512 +oid sha256:a5ea2aa6e817f75c2d74224461adf5b750bce874108cbdba0b6b563556c39ef8 +size 22878288 diff --git a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a index 54900a5..57289ab 100644 --- a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a +++ b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:accac267be6c72d2e6fc6fd49e4ba1ab7559b92a284553d0cbf3cc141462fff5 -size 335777784 +oid sha256:e65058144f16acff227cc61a858e4c182fc380c97afff7c0459bd52ead8afb2d +size 358056168 diff --git a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a index d2e916f..96aedc8 100644 --- a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a +++ b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:282f46a37b08dd32584a161f25bf9a7c8dd8890553c96297870321c1888e2f3a -size 335993032 +oid sha256:751f5a57a7df1fce186932a0df982779eca1f72d353ae8aa14cb95dc3d159f22 +size 358436416 diff --git a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so index 3330139..9097af6 100644 --- a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:91b94f2fd60c6add3938b6058470f8ebfda9de98d855b40a9cd7320e52777a8e -size 22303320 +oid sha256:48148f57ea581441bacca9f626cb05e5b71d2daf35b8e5f6f7175419194d039d +size 22565440 diff --git a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so index 5c40150..da54904 100644 --- a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:586d352477fa0c65b0ecda8ff34ed58fc963c99ca74100d9e7637094898ff46d -size 28058192 +oid sha256:e1675b1f16d5ff5353bc0baa5a7f3bef55e5ffcede19f5677f9d485f00f6d94c +size 28385888 diff --git a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib index 8c87a12..0f0e1e8 100644 --- a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib +++ b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ba67e67c5a42a7a5bf7e7854ffa2b050081b5c228e07250a332741da0820b5a8 -size 19197256 +oid sha256:10984d692094d6577292b9a02ec6fd79541017ba26620480620fa8fcd53b2471 +size 19624056 diff --git a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib index 4fd805b..a0acbcd 100644 --- a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib +++ b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:37a4cd4a97048fcd7556ea3652109a5aa316959f516efde7d787270981cebd7a -size 24070384 +oid sha256:0cc771595be30fa1685325f50cc9b2b7f74685268815b1ae0308ec123f3ca33b +size 24542288 diff --git a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll index c4c0acf..7f32ee1 100644 --- a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll +++ b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0fe880eb2e5b8c6e33c8b94a55da7ea4ed9cb0d29582fd4595cc05dd27920e93 -size 19584512 +oid sha256:fc747f843712625fe0c429361f47b80fab1cc7c1737b5fb5ebc8bb182106d3bc +size 19926016 diff --git a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll index ec5e5f7..e3a17b9 100644 --- a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll +++ b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9deae57541695751b23d778d8a53cd96ba2444f91a78c6911f25410c60ad8a3c -size 24170496 +oid sha256:7ab0a9fd73282200e8d768085c7d183d658486e2d6c2c55d09c8f45dee049699 +size 24543232 diff --git a/Runtime/Scripts/AudioSource.cs b/Runtime/Scripts/AudioSource.cs index a674c2a..6ef6bad 100644 --- a/Runtime/Scripts/AudioSource.cs +++ b/Runtime/Scripts/AudioSource.cs @@ -16,7 +16,7 @@ public enum RtcAudioSourceType AudioSourceMicrophone = 1, } - public class RtcAudioSource + public class RtcAudioSource : IRtcSource { #if UNITY_IOS // iOS microphone sample rate is 24k, @@ -45,6 +45,10 @@ public class RtcAudioSource private Thread _readAudioThread; private ThreadSafeQueue _frameQueue = new ThreadSafeQueue(); + private bool _muted = false; + + public override bool Muted => _muted; + public RtcAudioSource(AudioSource source, RtcAudioSourceType audioSourceType = RtcAudioSourceType.AudioSourceCustom) { _sourceType = audioSourceType; @@ -137,6 +141,11 @@ private void ReadAudio() try { AudioFrame frame = _frameQueue.Dequeue(); + + if(_muted) + { + continue; + } unsafe { using var request = FFIBridge.Instance.NewRequest(); @@ -166,5 +175,10 @@ private void UpdateSource(AudioSource source) _audioSource = source; _audioFilter = source.gameObject.AddComponent(); } + + public override void SetMute(bool muted) + { + _muted = muted; + } } } diff --git a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs index 3044189..281b87d 100644 --- a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs +++ b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs @@ -33,11 +33,11 @@ public static void Inject(this FfiRequest ffiRequest, T request) case SetSubscribedRequest setSubscribedRequest: ffiRequest.SetSubscribed = setSubscribedRequest; break; - case UpdateLocalMetadataRequest updateLocalMetadataRequest: - ffiRequest.UpdateLocalMetadata = updateLocalMetadataRequest; + case SetLocalMetadataRequest updateLocalMetadataRequest: + ffiRequest.SetLocalMetadata = updateLocalMetadataRequest; break; - case UpdateLocalNameRequest updateLocalNameRequest: - ffiRequest.UpdateLocalName = updateLocalNameRequest; + case SetLocalNameRequest updateLocalNameRequest: + ffiRequest.SetLocalName = updateLocalNameRequest; break; case GetSessionStatsRequest getSessionStatsRequest: ffiRequest.GetSessionStats = getSessionStatsRequest; @@ -106,8 +106,9 @@ public static void EnsureClean(this FfiRequest request) || request.UnpublishTrack != null || request.PublishData != null || request.SetSubscribed != null - || request.UpdateLocalMetadata != null - || request.UpdateLocalName != null + || request.SetLocalMetadata != null + || request.SetLocalName != null + || request.SetLocalAttributes != null || request.GetSessionStats != null || @@ -154,8 +155,9 @@ public static void EnsureClean(this FfiResponse response) || response.UnpublishTrack != null || response.PublishData != null || response.SetSubscribed != null - || response.UpdateLocalMetadata != null - || response.UpdateLocalName != null + || response.SetLocalMetadata != null + || response.SetLocalName != null + || response.SetLocalAttributes != null || response.GetSessionStats != null || diff --git a/Runtime/Scripts/Participant.cs b/Runtime/Scripts/Participant.cs index 4357ce4..35ceb6a 100644 --- a/Runtime/Scripts/Participant.cs +++ b/Runtime/Scripts/Participant.cs @@ -118,7 +118,7 @@ public void PublishData(Span data, IReadOnlyCollection destination public void UpdateMetadata(string metadata) { - using var request = FFIBridge.Instance.NewRequest(); + using var request = FFIBridge.Instance.NewRequest(); var updateReq = request.request; updateReq.Metadata = metadata; var resp = request.Send(); @@ -126,7 +126,7 @@ public void UpdateMetadata(string metadata) public void UpdateName(string name) { - using var request = FFIBridge.Instance.NewRequest(); + using var request = FFIBridge.Instance.NewRequest(); var updateReq = request.request; updateReq.Name = name; var resp = request.Send(); diff --git a/Runtime/Scripts/Proto/AudioFrame.cs b/Runtime/Scripts/Proto/AudioFrame.cs index d0a2a2d..2ee0dbe 100644 --- a/Runtime/Scripts/Proto/AudioFrame.cs +++ b/Runtime/Scripts/Proto/AudioFrame.cs @@ -25,62 +25,72 @@ static AudioFrameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", - "b3RvIlsKFU5ld0F1ZGlvU3RyZWFtUmVxdWVzdBIUCgx0cmFja19oYW5kbGUY", - "ASABKAQSLAoEdHlwZRgCIAEoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl", - "YW1UeXBlIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2USLwoGc3RyZWFtGAEg", - "ASgLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3RyZWFtIuEBChVOZXdB", - "dWRpb1NvdXJjZVJlcXVlc3QSLAoEdHlwZRgBIAEoDjIeLmxpdmVraXQucHJv", - "dG8uQXVkaW9Tb3VyY2VUeXBlEjcKB29wdGlvbnMYAiABKAsyIS5saXZla2l0", - "LnByb3RvLkF1ZGlvU291cmNlT3B0aW9uc0gAiAEBEhMKC3NhbXBsZV9yYXRl", - "GAMgASgNEhQKDG51bV9jaGFubmVscxgEIAEoDRIZCgxlbmFibGVfcXVldWUY", - "BSABKAhIAYgBAUIKCghfb3B0aW9uc0IPCg1fZW5hYmxlX3F1ZXVlIkkKFk5l", - "d0F1ZGlvU291cmNlUmVzcG9uc2USLwoGc291cmNlGAEgASgLMh8ubGl2ZWtp", - "dC5wcm90by5Pd25lZEF1ZGlvU291cmNlImYKGENhcHR1cmVBdWRpb0ZyYW1l", - "UmVxdWVzdBIVCg1zb3VyY2VfaGFuZGxlGAEgASgEEjMKBmJ1ZmZlchgCIAEo", - "CzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iLQoZQ2Fw", - "dHVyZUF1ZGlvRnJhbWVSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJLChlD", - "YXB0dXJlQXVkaW9GcmFtZUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIK", - "BWVycm9yGAIgASgJSACIAQFCCAoGX2Vycm9yIhoKGE5ld0F1ZGlvUmVzYW1w", - "bGVyUmVxdWVzdCJSChlOZXdBdWRpb1Jlc2FtcGxlclJlc3BvbnNlEjUKCXJl", - "c2FtcGxlchgBIAEoCzIiLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1Jlc2Ft", - "cGxlciKTAQoXUmVtaXhBbmRSZXNhbXBsZVJlcXVlc3QSGAoQcmVzYW1wbGVy", - "X2hhbmRsZRgBIAEoBBIzCgZidWZmZXIYAiABKAsyIy5saXZla2l0LnByb3Rv", - "LkF1ZGlvRnJhbWVCdWZmZXJJbmZvEhQKDG51bV9jaGFubmVscxgDIAEoDRIT", - "CgtzYW1wbGVfcmF0ZRgEIAEoDSJQChhSZW1peEFuZFJlc2FtcGxlUmVzcG9u", - "c2USNAoGYnVmZmVyGAEgASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlv", - "RnJhbWVCdWZmZXIicAoUQXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoIZGF0YV9w", - "dHIYASABKAQSFAoMbnVtX2NoYW5uZWxzGAIgASgNEhMKC3NhbXBsZV9yYXRl", - "GAMgASgNEhsKE3NhbXBsZXNfcGVyX2NoYW5uZWwYBCABKA0ieQoVT3duZWRB", - "dWRpb0ZyYW1lQnVmZmVyEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJv", - "dG8uRmZpT3duZWRIYW5kbGUSMQoEaW5mbxgCIAEoCzIjLmxpdmVraXQucHJv", - "dG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1JbmZvEiwK", - "BHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZSJv", - "ChBPd25lZEF1ZGlvU3RyZWFtEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQu", - "cHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQu", - "cHJvdG8uQXVkaW9TdHJlYW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2ZW50EhUK", - "DXN0cmVhbV9oYW5kbGUYASABKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsy", - "IS5saXZla2l0LnByb3RvLkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgD", - "IAEoCzIdLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJCgdtZXNz", - "YWdlIkkKEkF1ZGlvRnJhbWVSZWNlaXZlZBIzCgVmcmFtZRgBIAEoCzIkLmxp", - "dmVraXQucHJvdG8uT3duZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1ZGlvU3Ry", - "ZWFtRU9TImUKEkF1ZGlvU291cmNlT3B0aW9ucxIZChFlY2hvX2NhbmNlbGxh", - "dGlvbhgBIAEoCBIZChFub2lzZV9zdXBwcmVzc2lvbhgCIAEoCBIZChFhdXRv", - "X2dhaW5fY29udHJvbBgDIAEoCCI/Cg9BdWRpb1NvdXJjZUluZm8SLAoEdHlw", - "ZRgCIAEoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBlIm8KEE93", - "bmVkQXVkaW9Tb3VyY2USLQoGaGFuZGxlGAEgASgLMh0ubGl2ZWtpdC5wcm90", - "by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgASgLMh4ubGl2ZWtpdC5wcm90", - "by5BdWRpb1NvdXJjZUluZm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZvInUKE093", - "bmVkQXVkaW9SZXNhbXBsZXISLQoGaGFuZGxlGAEgASgLMh0ubGl2ZWtpdC5w", - "cm90by5GZmlPd25lZEhhbmRsZRIvCgRpbmZvGAIgASgLMiEubGl2ZWtpdC5w", - "cm90by5BdWRpb1Jlc2FtcGxlckluZm8qQQoPQXVkaW9TdHJlYW1UeXBlEhcK", - "E0FVRElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBAB", - "KioKD0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABC", - "EKoCDUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); + "b3RvGgt0cmFjay5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK", + "DHRyYWNrX2hhbmRsZRgBIAEoBBIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5w", + "cm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoM", + "bnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2US", + "LwoGc3RyZWFtGAEgASgLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3Ry", + "ZWFtIuABCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoS", + "cGFydGljaXBhbnRfaGFuZGxlGAEgASgEEiwKBHR5cGUYAiABKA4yHi5saXZl", + "a2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRI1Cgx0cmFja19zb3VyY2UYAyAB", + "KA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlSACIAQESEwoLc2FtcGxl", + "X3JhdGUYBSABKA0SFAoMbnVtX2NoYW5uZWxzGAYgASgNQg8KDV90cmFja19z", + "b3VyY2UiVQoiQXVkaW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXNwb25zZRIv", + "CgZzdHJlYW0YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkQXVkaW9TdHJl", + "YW0i4QEKFU5ld0F1ZGlvU291cmNlUmVxdWVzdBIsCgR0eXBlGAEgASgOMh4u", + "bGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVR5cGUSNwoHb3B0aW9ucxgCIAEo", + "CzIhLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VPcHRpb25zSACIAQESEwoL", + "c2FtcGxlX3JhdGUYAyABKA0SFAoMbnVtX2NoYW5uZWxzGAQgASgNEhkKDGVu", + "YWJsZV9xdWV1ZRgFIAEoCEgBiAEBQgoKCF9vcHRpb25zQg8KDV9lbmFibGVf", + "cXVldWUiSQoWTmV3QXVkaW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASAB", + "KAsyHy5saXZla2l0LnByb3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVy", + "ZUF1ZGlvRnJhbWVSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASABKAQSMwoG", + "YnVmZmVyGAIgASgLMiMubGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVy", + "SW5mbyItChlDYXB0dXJlQXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lk", + "GAEgASgEIksKGUNhcHR1cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNf", + "aWQYASABKAQSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZfZXJyb3IiGgoYTmV3", + "QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVyUmVz", + "cG9uc2USNQoJcmVzYW1wbGVyGAEgASgLMiIubGl2ZWtpdC5wcm90by5Pd25l", + "ZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVzdBIY", + "ChByZXNhbXBsZXJfaGFuZGxlGAEgASgEEjMKBmJ1ZmZlchgCIAEoCzIjLmxp", + "dmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2NoYW5u", + "ZWxzGAMgASgNEhMKC3NhbXBsZV9yYXRlGAQgASgNIlAKGFJlbWl4QW5kUmVz", + "YW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASABKAsyJC5saXZla2l0LnByb3Rv", + "Lk93bmVkQXVkaW9GcmFtZUJ1ZmZlciJwChRBdWRpb0ZyYW1lQnVmZmVySW5m", + "bxIQCghkYXRhX3B0chgBIAEoBBIUCgxudW1fY2hhbm5lbHMYAiABKA0SEwoL", + "c2FtcGxlX3JhdGUYAyABKA0SGwoTc2FtcGxlc19wZXJfY2hhbm5lbBgEIAEo", + "DSJ5ChVPd25lZEF1ZGlvRnJhbWVCdWZmZXISLQoGaGFuZGxlGAEgASgLMh0u", + "bGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIxCgRpbmZvGAIgASgLMiMu", + "bGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyI/Cg9BdWRpb1N0", + "cmVhbUluZm8SLAoEdHlwZRgBIAEoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9T", + "dHJlYW1UeXBlIm8KEE93bmVkQXVkaW9TdHJlYW0SLQoGaGFuZGxlGAEgASgL", + "Mh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgASgL", + "Mh4ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUluZm8inwEKEEF1ZGlvU3Ry", + "ZWFtRXZlbnQSFQoNc3RyZWFtX2hhbmRsZRgBIAEoBBI7Cg5mcmFtZV9yZWNl", + "aXZlZBgCIAEoCzIhLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZVJlY2VpdmVk", + "SAASLAoDZW9zGAMgASgLMh0ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUVP", + "U0gAQgkKB21lc3NhZ2UiSQoSQXVkaW9GcmFtZVJlY2VpdmVkEjMKBWZyYW1l", + "GAEgASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvRnJhbWVCdWZmZXIi", + "EAoOQXVkaW9TdHJlYW1FT1MiZQoSQXVkaW9Tb3VyY2VPcHRpb25zEhkKEWVj", + "aG9fY2FuY2VsbGF0aW9uGAEgASgIEhkKEW5vaXNlX3N1cHByZXNzaW9uGAIg", + "ASgIEhkKEWF1dG9fZ2Fpbl9jb250cm9sGAMgASgIIj8KD0F1ZGlvU291cmNl", + "SW5mbxIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJj", + "ZVR5cGUibwoQT3duZWRBdWRpb1NvdXJjZRItCgZoYW5kbGUYASABKAsyHS5s", + "aXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiwKBGluZm8YAiABKAsyHi5s", + "aXZla2l0LnByb3RvLkF1ZGlvU291cmNlSW5mbyIUChJBdWRpb1Jlc2FtcGxl", + "ckluZm8idQoTT3duZWRBdWRpb1Jlc2FtcGxlchItCgZoYW5kbGUYASABKAsy", + "HS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEi8KBGluZm8YAiABKAsy", + "IS5saXZla2l0LnByb3RvLkF1ZGlvUmVzYW1wbGVySW5mbypBCg9BdWRpb1N0", + "cmVhbVR5cGUSFwoTQVVESU9fU1RSRUFNX05BVElWRRAAEhUKEUFVRElPX1NU", + "UkVBTV9IVE1MEAEqKgoPQXVkaW9Tb3VyY2VUeXBlEhcKE0FVRElPX1NPVVJD", + "RV9OQVRJVkUQAEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.AudioStreamType), typeof(global::LiveKit.Proto.AudioSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamResponse), global::LiveKit.Proto.NewAudioStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels" }, new[]{ "TrackSource" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantResponse), global::LiveKit.Proto.AudioStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels", "EnableQueue" }, new[]{ "Options", "EnableQueue" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceResponse), global::LiveKit.Proto.NewAudioSourceResponse.Parser, new[]{ "Source" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameRequest), global::LiveKit.Proto.CaptureAudioFrameRequest.Parser, new[]{ "SourceHandle", "Buffer" }, null, null, null, null), @@ -161,24 +171,529 @@ public NewAudioStreamRequest() { public NewAudioStreamRequest(NewAudioStreamRequest other) : this() { trackHandle_ = other.trackHandle_; type_ = other.type_; + sampleRate_ = other.sampleRate_; + numChannels_ = other.numChannels_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioStreamRequest Clone() { + return new NewAudioStreamRequest(this); + } + + /// Field number for the "track_handle" field. + public const int TrackHandleFieldNumber = 1; + private ulong trackHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TrackHandle { + get { return trackHandle_; } + set { + trackHandle_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::LiveKit.Proto.AudioStreamType type_ = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "sample_rate" field. + public const int SampleRateFieldNumber = 3; + private uint sampleRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SampleRate { + get { return sampleRate_; } + set { + sampleRate_ = value; + } + } + + /// Field number for the "num_channels" field. + public const int NumChannelsFieldNumber = 4; + private uint numChannels_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NumChannels { + get { return numChannels_; } + set { + numChannels_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NewAudioStreamRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NewAudioStreamRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackHandle != other.TrackHandle) return false; + if (Type != other.Type) return false; + if (SampleRate != other.SampleRate) return false; + if (NumChannels != other.NumChannels) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); + if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); + if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (SampleRate != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SampleRate); + } + if (NumChannels != 0) { + output.WriteRawTag(32); + output.WriteUInt32(NumChannels); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (SampleRate != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SampleRate); + } + if (NumChannels != 0) { + output.WriteRawTag(32); + output.WriteUInt32(NumChannels); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); + } + if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (SampleRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); + } + if (NumChannels != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NewAudioStreamRequest other) { + if (other == null) { + return; + } + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; + } + if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + Type = other.Type; + } + if (other.SampleRate != 0) { + SampleRate = other.SampleRate; + } + if (other.NumChannels != 0) { + NumChannels = other.NumChannels; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); + break; + } + case 24: { + SampleRate = input.ReadUInt32(); + break; + } + case 32: { + NumChannels = input.ReadUInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); + break; + } + case 24: { + SampleRate = input.ReadUInt32(); + break; + } + case 32: { + NumChannels = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NewAudioStreamResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioStreamResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioStreamResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioStreamResponse(NewAudioStreamResponse other) : this() { + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioStreamResponse Clone() { + return new NewAudioStreamResponse(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private global::LiveKit.Proto.OwnedAudioStream stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedAudioStream Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NewAudioStreamResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NewAudioStreamResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Stream, other.Stream)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (stream_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (stream_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NewAudioStreamResponse other) { + if (other == null) { + return; + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedAudioStream(); + } + Stream.MergeFrom(other.Stream); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedAudioStream(); + } + input.ReadMessage(Stream); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedAudioStream(); + } + input.ReadMessage(Stream); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioStreamFromParticipantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamFromParticipantRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamFromParticipantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamFromParticipantRequest(AudioStreamFromParticipantRequest other) : this() { + _hasBits0 = other._hasBits0; + participantHandle_ = other.participantHandle_; + type_ = other.type_; + trackSource_ = other.trackSource_; + sampleRate_ = other.sampleRate_; + numChannels_ = other.numChannels_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NewAudioStreamRequest Clone() { - return new NewAudioStreamRequest(this); + public AudioStreamFromParticipantRequest Clone() { + return new AudioStreamFromParticipantRequest(this); } - /// Field number for the "track_handle" field. - public const int TrackHandleFieldNumber = 1; - private ulong trackHandle_; + /// Field number for the "participant_handle" field. + public const int ParticipantHandleFieldNumber = 1; + private ulong participantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong TrackHandle { - get { return trackHandle_; } + public ulong ParticipantHandle { + get { return participantHandle_; } set { - trackHandle_ = value; + participantHandle_ = value; } } @@ -194,23 +709,77 @@ public ulong TrackHandle { } } + /// Field number for the "track_source" field. + public const int TrackSourceFieldNumber = 3; + private readonly static global::LiveKit.Proto.TrackSource TrackSourceDefaultValue = global::LiveKit.Proto.TrackSource.SourceUnknown; + + private global::LiveKit.Proto.TrackSource trackSource_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSource TrackSource { + get { if ((_hasBits0 & 1) != 0) { return trackSource_; } else { return TrackSourceDefaultValue; } } + set { + _hasBits0 |= 1; + trackSource_ = value; + } + } + /// Gets whether the "track_source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSource { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSource() { + _hasBits0 &= ~1; + } + + /// Field number for the "sample_rate" field. + public const int SampleRateFieldNumber = 5; + private uint sampleRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SampleRate { + get { return sampleRate_; } + set { + sampleRate_ = value; + } + } + + /// Field number for the "num_channels" field. + public const int NumChannelsFieldNumber = 6; + private uint numChannels_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NumChannels { + get { return numChannels_; } + set { + numChannels_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as NewAudioStreamRequest); + return Equals(other as AudioStreamFromParticipantRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NewAudioStreamRequest other) { + public bool Equals(AudioStreamFromParticipantRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (TrackHandle != other.TrackHandle) return false; + if (ParticipantHandle != other.ParticipantHandle) return false; if (Type != other.Type) return false; + if (TrackSource != other.TrackSource) return false; + if (SampleRate != other.SampleRate) return false; + if (NumChannels != other.NumChannels) return false; return Equals(_unknownFields, other._unknownFields); } @@ -218,8 +787,11 @@ public bool Equals(NewAudioStreamRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (ParticipantHandle != 0UL) hash ^= ParticipantHandle.GetHashCode(); if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); + if (HasTrackSource) hash ^= TrackSource.GetHashCode(); + if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); + if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -238,14 +810,26 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (ParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(TrackHandle); + output.WriteUInt64(ParticipantHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { output.WriteRawTag(16); output.WriteEnum((int) Type); } + if (HasTrackSource) { + output.WriteRawTag(24); + output.WriteEnum((int) TrackSource); + } + if (SampleRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(SampleRate); + } + if (NumChannels != 0) { + output.WriteRawTag(48); + output.WriteUInt32(NumChannels); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -256,14 +840,26 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackHandle != 0UL) { + if (ParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(TrackHandle); + output.WriteUInt64(ParticipantHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { output.WriteRawTag(16); output.WriteEnum((int) Type); } + if (HasTrackSource) { + output.WriteRawTag(24); + output.WriteEnum((int) TrackSource); + } + if (SampleRate != 0) { + output.WriteRawTag(40); + output.WriteUInt32(SampleRate); + } + if (NumChannels != 0) { + output.WriteRawTag(48); + output.WriteUInt32(NumChannels); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -274,12 +870,21 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); + if (ParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ParticipantHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } + if (HasTrackSource) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackSource); + } + if (SampleRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); + } + if (NumChannels != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -288,16 +893,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NewAudioStreamRequest other) { + public void MergeFrom(AudioStreamFromParticipantRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { - TrackHandle = other.TrackHandle; + if (other.ParticipantHandle != 0UL) { + ParticipantHandle = other.ParticipantHandle; } if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { Type = other.Type; } + if (other.HasTrackSource) { + TrackSource = other.TrackSource; + } + if (other.SampleRate != 0) { + SampleRate = other.SampleRate; + } + if (other.NumChannels != 0) { + NumChannels = other.NumChannels; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -314,13 +928,25 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - TrackHandle = input.ReadUInt64(); + ParticipantHandle = input.ReadUInt64(); break; } case 16: { Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); break; } + case 24: { + TrackSource = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 40: { + SampleRate = input.ReadUInt32(); + break; + } + case 48: { + NumChannels = input.ReadUInt32(); + break; + } } } #endif @@ -337,13 +963,25 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - TrackHandle = input.ReadUInt64(); + ParticipantHandle = input.ReadUInt64(); break; } case 16: { Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); break; } + case 24: { + TrackSource = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 40: { + SampleRate = input.ReadUInt32(); + break; + } + case 48: { + NumChannels = input.ReadUInt32(); + break; + } } } } @@ -352,21 +990,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class NewAudioStreamResponse : pb::IMessage + public sealed partial class AudioStreamFromParticipantResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioStreamResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamFromParticipantResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[1]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -377,7 +1015,7 @@ public sealed partial class NewAudioStreamResponse : pb::IMessageField number for the "stream" field. @@ -411,12 +1049,12 @@ public NewAudioStreamResponse Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as NewAudioStreamResponse); + return Equals(other as AudioStreamFromParticipantResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NewAudioStreamResponse other) { + public bool Equals(AudioStreamFromParticipantResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -489,7 +1127,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NewAudioStreamResponse other) { + public void MergeFrom(AudioStreamFromParticipantResponse other) { if (other == null) { return; } @@ -569,7 +1207,7 @@ public sealed partial class NewAudioSourceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[13]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3408,7 +4046,7 @@ public sealed partial class OwnedAudioStream : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[14]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3653,7 +4291,7 @@ public sealed partial class AudioStreamEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[15]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3976,7 +4614,7 @@ public sealed partial class AudioFrameReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[17]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4328,7 +4966,7 @@ public sealed partial class AudioSourceOptions : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[19]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4782,7 +5420,7 @@ public sealed partial class OwnedAudioSource : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[20]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5027,7 +5665,7 @@ public sealed partial class AudioResamplerInfo : pb::IMessageField number for the "update_local_metadata" field. - public const int UpdateLocalMetadataFieldNumber = 9; + /// Field number for the "set_local_metadata" field. + public const int SetLocalMetadataFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetLocalMetadataRequest SetLocalMetadata { + get { return messageCase_ == MessageOneofCase.SetLocalMetadata ? (global::LiveKit.Proto.SetLocalMetadataRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalMetadata; + } + } + + /// Field number for the "set_local_name" field. + public const int SetLocalNameFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalMetadataRequest UpdateLocalMetadata { - get { return messageCase_ == MessageOneofCase.UpdateLocalMetadata ? (global::LiveKit.Proto.UpdateLocalMetadataRequest) message_ : null; } + public global::LiveKit.Proto.SetLocalNameRequest SetLocalName { + get { return messageCase_ == MessageOneofCase.SetLocalName ? (global::LiveKit.Proto.SetLocalNameRequest) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalName; } } - /// Field number for the "update_local_name" field. - public const int UpdateLocalNameFieldNumber = 10; + /// Field number for the "set_local_attributes" field. + public const int SetLocalAttributesFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalNameRequest UpdateLocalName { - get { return messageCase_ == MessageOneofCase.UpdateLocalName ? (global::LiveKit.Proto.UpdateLocalNameRequest) message_ : null; } + public global::LiveKit.Proto.SetLocalAttributesRequest SetLocalAttributes { + get { return messageCase_ == MessageOneofCase.SetLocalAttributes ? (global::LiveKit.Proto.SetLocalAttributesRequest) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalAttributes; } } /// Field number for the "get_session_stats" field. - public const int GetSessionStatsFieldNumber = 11; + public const int GetSessionStatsFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetSessionStatsRequest GetSessionStats { @@ -408,7 +461,7 @@ public FfiRequest Clone() { } /// Field number for the "publish_transcription" field. - public const int PublishTranscriptionFieldNumber = 12; + public const int PublishTranscriptionFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PublishTranscriptionRequest PublishTranscription { @@ -419,8 +472,20 @@ public FfiRequest Clone() { } } + /// Field number for the "publish_sip_dtmf" field. + public const int PublishSipDtmfFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishSipDtmfRequest PublishSipDtmf { + get { return messageCase_ == MessageOneofCase.PublishSipDtmf ? (global::LiveKit.Proto.PublishSipDtmfRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishSipDtmf; + } + } + /// Field number for the "create_video_track" field. - public const int CreateVideoTrackFieldNumber = 13; + public const int CreateVideoTrackFieldNumber = 15; /// /// Track /// @@ -435,7 +500,7 @@ public FfiRequest Clone() { } /// Field number for the "create_audio_track" field. - public const int CreateAudioTrackFieldNumber = 14; + public const int CreateAudioTrackFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CreateAudioTrackRequest CreateAudioTrack { @@ -446,8 +511,32 @@ public FfiRequest Clone() { } } + /// Field number for the "local_track_mute" field. + public const int LocalTrackMuteFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackMuteRequest LocalTrackMute { + get { return messageCase_ == MessageOneofCase.LocalTrackMute ? (global::LiveKit.Proto.LocalTrackMuteRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackMute; + } + } + + /// Field number for the "enable_remote_track" field. + public const int EnableRemoteTrackFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.EnableRemoteTrackRequest EnableRemoteTrack { + get { return messageCase_ == MessageOneofCase.EnableRemoteTrack ? (global::LiveKit.Proto.EnableRemoteTrackRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.EnableRemoteTrack; + } + } + /// Field number for the "get_stats" field. - public const int GetStatsFieldNumber = 15; + public const int GetStatsFieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetStatsRequest GetStats { @@ -459,7 +548,7 @@ public FfiRequest Clone() { } /// Field number for the "new_video_stream" field. - public const int NewVideoStreamFieldNumber = 16; + public const int NewVideoStreamFieldNumber = 20; /// /// Video /// @@ -474,7 +563,7 @@ public FfiRequest Clone() { } /// Field number for the "new_video_source" field. - public const int NewVideoSourceFieldNumber = 17; + public const int NewVideoSourceFieldNumber = 21; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoSourceRequest NewVideoSource { @@ -486,7 +575,7 @@ public FfiRequest Clone() { } /// Field number for the "capture_video_frame" field. - public const int CaptureVideoFrameFieldNumber = 18; + public const int CaptureVideoFrameFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureVideoFrameRequest CaptureVideoFrame { @@ -498,7 +587,7 @@ public FfiRequest Clone() { } /// Field number for the "video_convert" field. - public const int VideoConvertFieldNumber = 19; + public const int VideoConvertFieldNumber = 23; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoConvertRequest VideoConvert { @@ -509,8 +598,20 @@ public FfiRequest Clone() { } } + /// Field number for the "video_stream_from_participant" field. + public const int VideoStreamFromParticipantFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoStreamFromParticipantRequest VideoStreamFromParticipant { + get { return messageCase_ == MessageOneofCase.VideoStreamFromParticipant ? (global::LiveKit.Proto.VideoStreamFromParticipantRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.VideoStreamFromParticipant; + } + } + /// Field number for the "new_audio_stream" field. - public const int NewAudioStreamFieldNumber = 22; + public const int NewAudioStreamFieldNumber = 25; /// /// Audio /// @@ -525,7 +626,7 @@ public FfiRequest Clone() { } /// Field number for the "new_audio_source" field. - public const int NewAudioSourceFieldNumber = 23; + public const int NewAudioSourceFieldNumber = 26; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioSourceRequest NewAudioSource { @@ -537,7 +638,7 @@ public FfiRequest Clone() { } /// Field number for the "capture_audio_frame" field. - public const int CaptureAudioFrameFieldNumber = 24; + public const int CaptureAudioFrameFieldNumber = 27; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureAudioFrameRequest CaptureAudioFrame { @@ -549,7 +650,7 @@ public FfiRequest Clone() { } /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 25; + public const int NewAudioResamplerFieldNumber = 28; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerRequest NewAudioResampler { @@ -561,7 +662,7 @@ public FfiRequest Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 26; + public const int RemixAndResampleFieldNumber = 29; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleRequest RemixAndResample { @@ -573,7 +674,7 @@ public FfiRequest Clone() { } /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 27; + public const int E2EeFieldNumber = 30; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.E2eeRequest E2Ee { @@ -584,6 +685,18 @@ public FfiRequest Clone() { } } + /// Field number for the "audio_stream_from_participant" field. + public const int AudioStreamFromParticipantFieldNumber = 31; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamFromParticipantRequest AudioStreamFromParticipant { + get { return messageCase_ == MessageOneofCase.AudioStreamFromParticipant ? (global::LiveKit.Proto.AudioStreamFromParticipantRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.AudioStreamFromParticipant; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { @@ -595,23 +708,29 @@ public enum MessageOneofCase { UnpublishTrack = 6, PublishData = 7, SetSubscribed = 8, - UpdateLocalMetadata = 9, - UpdateLocalName = 10, - GetSessionStats = 11, - PublishTranscription = 12, - CreateVideoTrack = 13, - CreateAudioTrack = 14, - GetStats = 15, - NewVideoStream = 16, - NewVideoSource = 17, - CaptureVideoFrame = 18, - VideoConvert = 19, - NewAudioStream = 22, - NewAudioSource = 23, - CaptureAudioFrame = 24, - NewAudioResampler = 25, - RemixAndResample = 26, - E2Ee = 27, + SetLocalMetadata = 9, + SetLocalName = 10, + SetLocalAttributes = 11, + GetSessionStats = 12, + PublishTranscription = 13, + PublishSipDtmf = 14, + CreateVideoTrack = 15, + CreateAudioTrack = 16, + LocalTrackMute = 17, + EnableRemoteTrack = 18, + GetStats = 19, + NewVideoStream = 20, + NewVideoSource = 21, + CaptureVideoFrame = 22, + VideoConvert = 23, + VideoStreamFromParticipant = 24, + NewAudioStream = 25, + NewAudioSource = 26, + CaptureAudioFrame = 27, + NewAudioResampler = 28, + RemixAndResample = 29, + E2Ee = 30, + AudioStreamFromParticipant = 31, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -649,23 +768,29 @@ public bool Equals(FfiRequest other) { if (!object.Equals(UnpublishTrack, other.UnpublishTrack)) return false; if (!object.Equals(PublishData, other.PublishData)) return false; if (!object.Equals(SetSubscribed, other.SetSubscribed)) return false; - if (!object.Equals(UpdateLocalMetadata, other.UpdateLocalMetadata)) return false; - if (!object.Equals(UpdateLocalName, other.UpdateLocalName)) return false; + if (!object.Equals(SetLocalMetadata, other.SetLocalMetadata)) return false; + if (!object.Equals(SetLocalName, other.SetLocalName)) return false; + if (!object.Equals(SetLocalAttributes, other.SetLocalAttributes)) return false; if (!object.Equals(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(PublishTranscription, other.PublishTranscription)) return false; + if (!object.Equals(PublishSipDtmf, other.PublishSipDtmf)) return false; if (!object.Equals(CreateVideoTrack, other.CreateVideoTrack)) return false; if (!object.Equals(CreateAudioTrack, other.CreateAudioTrack)) return false; + if (!object.Equals(LocalTrackMute, other.LocalTrackMute)) return false; + if (!object.Equals(EnableRemoteTrack, other.EnableRemoteTrack)) return false; if (!object.Equals(GetStats, other.GetStats)) return false; if (!object.Equals(NewVideoStream, other.NewVideoStream)) return false; if (!object.Equals(NewVideoSource, other.NewVideoSource)) return false; if (!object.Equals(CaptureVideoFrame, other.CaptureVideoFrame)) return false; if (!object.Equals(VideoConvert, other.VideoConvert)) return false; + if (!object.Equals(VideoStreamFromParticipant, other.VideoStreamFromParticipant)) return false; if (!object.Equals(NewAudioStream, other.NewAudioStream)) return false; if (!object.Equals(NewAudioSource, other.NewAudioSource)) return false; if (!object.Equals(CaptureAudioFrame, other.CaptureAudioFrame)) return false; if (!object.Equals(NewAudioResampler, other.NewAudioResampler)) return false; if (!object.Equals(RemixAndResample, other.RemixAndResample)) return false; if (!object.Equals(E2Ee, other.E2Ee)) return false; + if (!object.Equals(AudioStreamFromParticipant, other.AudioStreamFromParticipant)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -681,23 +806,29 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.UnpublishTrack) hash ^= UnpublishTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishData) hash ^= PublishData.GetHashCode(); if (messageCase_ == MessageOneofCase.SetSubscribed) hash ^= SetSubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) hash ^= UpdateLocalMetadata.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) hash ^= UpdateLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) hash ^= SetLocalMetadata.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalName) hash ^= SetLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) hash ^= SetLocalAttributes.GetHashCode(); if (messageCase_ == MessageOneofCase.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTranscription) hash ^= PublishTranscription.GetHashCode(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) hash ^= PublishSipDtmf.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) hash ^= CreateVideoTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) hash ^= CreateAudioTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) hash ^= LocalTrackMute.GetHashCode(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) hash ^= EnableRemoteTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.GetStats) hash ^= GetStats.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoStream) hash ^= NewVideoStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoSource) hash ^= NewVideoSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) hash ^= CaptureVideoFrame.GetHashCode(); if (messageCase_ == MessageOneofCase.VideoConvert) hash ^= VideoConvert.GetHashCode(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) hash ^= VideoStreamFromParticipant.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioStream) hash ^= NewAudioStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioSource) hash ^= NewAudioSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) hash ^= CaptureAudioFrame.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioResampler) hash ^= NewAudioResampler.GetHashCode(); if (messageCase_ == MessageOneofCase.RemixAndResample) hash ^= RemixAndResample.GetHashCode(); if (messageCase_ == MessageOneofCase.E2Ee) hash ^= E2Ee.GetHashCode(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) hash ^= AudioStreamFromParticipant.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -745,74 +876,98 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(74); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(82); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalName); } - if (messageCase_ == MessageOneofCase.GetSessionStats) { + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { output.WriteRawTag(90); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(98); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(98); + output.WriteRawTag(106); output.WriteMessage(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(114); + output.WriteMessage(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - output.WriteRawTag(106); + output.WriteRawTag(122); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(114); + output.WriteRawTag(130, 1); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + output.WriteRawTag(138, 1); + output.WriteMessage(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + output.WriteRawTag(146, 1); + output.WriteMessage(EnableRemoteTrack); + } if (messageCase_ == MessageOneofCase.GetStats) { - output.WriteRawTag(122); + output.WriteRawTag(154, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(162, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(170, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(178, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.VideoConvert) { - output.WriteRawTag(154, 1); + output.WriteRawTag(186, 1); output.WriteMessage(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + output.WriteRawTag(194, 1); + output.WriteMessage(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(178, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(186, 1); + output.WriteRawTag(210, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(194, 1); + output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(202, 1); + output.WriteRawTag(226, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(210, 1); + output.WriteRawTag(234, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(218, 1); + output.WriteRawTag(242, 1); output.WriteMessage(E2Ee); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + output.WriteRawTag(250, 1); + output.WriteMessage(AudioStreamFromParticipant); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -851,74 +1006,98 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(74); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(82); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalName); } - if (messageCase_ == MessageOneofCase.GetSessionStats) { + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { output.WriteRawTag(90); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(98); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(98); + output.WriteRawTag(106); output.WriteMessage(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(114); + output.WriteMessage(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - output.WriteRawTag(106); + output.WriteRawTag(122); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(114); + output.WriteRawTag(130, 1); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + output.WriteRawTag(138, 1); + output.WriteMessage(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + output.WriteRawTag(146, 1); + output.WriteMessage(EnableRemoteTrack); + } if (messageCase_ == MessageOneofCase.GetStats) { - output.WriteRawTag(122); + output.WriteRawTag(154, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(162, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(170, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(178, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.VideoConvert) { - output.WriteRawTag(154, 1); + output.WriteRawTag(186, 1); output.WriteMessage(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + output.WriteRawTag(194, 1); + output.WriteMessage(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(178, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(186, 1); + output.WriteRawTag(210, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(194, 1); + output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(202, 1); + output.WriteRawTag(226, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(210, 1); + output.WriteRawTag(234, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(218, 1); + output.WriteRawTag(242, 1); output.WriteMessage(E2Ee); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + output.WriteRawTag(250, 1); + output.WriteMessage(AudioStreamFromParticipant); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -950,11 +1129,14 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.SetSubscribed) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + if (messageCase_ == MessageOneofCase.SetLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalName); + } + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalAttributes); } if (messageCase_ == MessageOneofCase.GetSessionStats) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSessionStats); @@ -962,14 +1144,23 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.PublishTranscription) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); + } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EnableRemoteTrack); } if (messageCase_ == MessageOneofCase.GetStats) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); @@ -983,6 +1174,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.VideoConvert) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioStream); } @@ -1001,6 +1195,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.E2Ee) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudioStreamFromParticipant); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1056,17 +1253,23 @@ public void MergeFrom(FfiRequest other) { } SetSubscribed.MergeFrom(other.SetSubscribed); break; - case MessageOneofCase.UpdateLocalMetadata: - if (UpdateLocalMetadata == null) { - UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); + case MessageOneofCase.SetLocalMetadata: + if (SetLocalMetadata == null) { + SetLocalMetadata = new global::LiveKit.Proto.SetLocalMetadataRequest(); } - UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + SetLocalMetadata.MergeFrom(other.SetLocalMetadata); break; - case MessageOneofCase.UpdateLocalName: - if (UpdateLocalName == null) { - UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameRequest(); + case MessageOneofCase.SetLocalName: + if (SetLocalName == null) { + SetLocalName = new global::LiveKit.Proto.SetLocalNameRequest(); } - UpdateLocalName.MergeFrom(other.UpdateLocalName); + SetLocalName.MergeFrom(other.SetLocalName); + break; + case MessageOneofCase.SetLocalAttributes: + if (SetLocalAttributes == null) { + SetLocalAttributes = new global::LiveKit.Proto.SetLocalAttributesRequest(); + } + SetLocalAttributes.MergeFrom(other.SetLocalAttributes); break; case MessageOneofCase.GetSessionStats: if (GetSessionStats == null) { @@ -1080,6 +1283,12 @@ public void MergeFrom(FfiRequest other) { } PublishTranscription.MergeFrom(other.PublishTranscription); break; + case MessageOneofCase.PublishSipDtmf: + if (PublishSipDtmf == null) { + PublishSipDtmf = new global::LiveKit.Proto.PublishSipDtmfRequest(); + } + PublishSipDtmf.MergeFrom(other.PublishSipDtmf); + break; case MessageOneofCase.CreateVideoTrack: if (CreateVideoTrack == null) { CreateVideoTrack = new global::LiveKit.Proto.CreateVideoTrackRequest(); @@ -1092,6 +1301,18 @@ public void MergeFrom(FfiRequest other) { } CreateAudioTrack.MergeFrom(other.CreateAudioTrack); break; + case MessageOneofCase.LocalTrackMute: + if (LocalTrackMute == null) { + LocalTrackMute = new global::LiveKit.Proto.LocalTrackMuteRequest(); + } + LocalTrackMute.MergeFrom(other.LocalTrackMute); + break; + case MessageOneofCase.EnableRemoteTrack: + if (EnableRemoteTrack == null) { + EnableRemoteTrack = new global::LiveKit.Proto.EnableRemoteTrackRequest(); + } + EnableRemoteTrack.MergeFrom(other.EnableRemoteTrack); + break; case MessageOneofCase.GetStats: if (GetStats == null) { GetStats = new global::LiveKit.Proto.GetStatsRequest(); @@ -1122,6 +1343,12 @@ public void MergeFrom(FfiRequest other) { } VideoConvert.MergeFrom(other.VideoConvert); break; + case MessageOneofCase.VideoStreamFromParticipant: + if (VideoStreamFromParticipant == null) { + VideoStreamFromParticipant = new global::LiveKit.Proto.VideoStreamFromParticipantRequest(); + } + VideoStreamFromParticipant.MergeFrom(other.VideoStreamFromParticipant); + break; case MessageOneofCase.NewAudioStream: if (NewAudioStream == null) { NewAudioStream = new global::LiveKit.Proto.NewAudioStreamRequest(); @@ -1158,6 +1385,12 @@ public void MergeFrom(FfiRequest other) { } E2Ee.MergeFrom(other.E2Ee); break; + case MessageOneofCase.AudioStreamFromParticipant: + if (AudioStreamFromParticipant == null) { + AudioStreamFromParticipant = new global::LiveKit.Proto.AudioStreamFromParticipantRequest(); + } + AudioStreamFromParticipant.MergeFrom(other.AudioStreamFromParticipant); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1239,24 +1472,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 74: { - global::LiveKit.Proto.UpdateLocalMetadataRequest subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + global::LiveKit.Proto.SetLocalMetadataRequest subBuilder = new global::LiveKit.Proto.SetLocalMetadataRequest(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.UpdateLocalNameRequest subBuilder = new global::LiveKit.Proto.UpdateLocalNameRequest(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + global::LiveKit.Proto.SetLocalNameRequest subBuilder = new global::LiveKit.Proto.SetLocalNameRequest(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } case 90: { + global::LiveKit.Proto.SetLocalAttributesRequest subBuilder = new global::LiveKit.Proto.SetLocalAttributesRequest(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.GetSessionStatsRequest subBuilder = new global::LiveKit.Proto.GetSessionStatsRequest(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -1265,7 +1507,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.PublishTranscriptionRequest subBuilder = new global::LiveKit.Proto.PublishTranscriptionRequest(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -1274,7 +1516,16 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 106: { + case 114: { + global::LiveKit.Proto.PublishSipDtmfRequest subBuilder = new global::LiveKit.Proto.PublishSipDtmfRequest(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.CreateVideoTrackRequest subBuilder = new global::LiveKit.Proto.CreateVideoTrackRequest(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -1283,7 +1534,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 114: { + case 130: { global::LiveKit.Proto.CreateAudioTrackRequest subBuilder = new global::LiveKit.Proto.CreateAudioTrackRequest(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -1292,7 +1543,25 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 122: { + case 138: { + global::LiveKit.Proto.LocalTrackMuteRequest subBuilder = new global::LiveKit.Proto.LocalTrackMuteRequest(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + subBuilder.MergeFrom(LocalTrackMute); + } + input.ReadMessage(subBuilder); + LocalTrackMute = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.EnableRemoteTrackRequest subBuilder = new global::LiveKit.Proto.EnableRemoteTrackRequest(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + subBuilder.MergeFrom(EnableRemoteTrack); + } + input.ReadMessage(subBuilder); + EnableRemoteTrack = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.GetStatsRequest subBuilder = new global::LiveKit.Proto.GetStatsRequest(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -1301,7 +1570,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 162: { global::LiveKit.Proto.NewVideoStreamRequest subBuilder = new global::LiveKit.Proto.NewVideoStreamRequest(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -1310,7 +1579,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 138: { + case 170: { global::LiveKit.Proto.NewVideoSourceRequest subBuilder = new global::LiveKit.Proto.NewVideoSourceRequest(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -1319,7 +1588,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 146: { + case 178: { global::LiveKit.Proto.CaptureVideoFrameRequest subBuilder = new global::LiveKit.Proto.CaptureVideoFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -1328,7 +1597,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 154: { + case 186: { global::LiveKit.Proto.VideoConvertRequest subBuilder = new global::LiveKit.Proto.VideoConvertRequest(); if (messageCase_ == MessageOneofCase.VideoConvert) { subBuilder.MergeFrom(VideoConvert); @@ -1337,7 +1606,16 @@ public void MergeFrom(pb::CodedInputStream input) { VideoConvert = subBuilder; break; } - case 178: { + case 194: { + global::LiveKit.Proto.VideoStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.VideoStreamFromParticipantRequest(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + subBuilder.MergeFrom(VideoStreamFromParticipant); + } + input.ReadMessage(subBuilder); + VideoStreamFromParticipant = subBuilder; + break; + } + case 202: { global::LiveKit.Proto.NewAudioStreamRequest subBuilder = new global::LiveKit.Proto.NewAudioStreamRequest(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -1346,7 +1624,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 186: { + case 210: { global::LiveKit.Proto.NewAudioSourceRequest subBuilder = new global::LiveKit.Proto.NewAudioSourceRequest(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -1355,7 +1633,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 194: { + case 218: { global::LiveKit.Proto.CaptureAudioFrameRequest subBuilder = new global::LiveKit.Proto.CaptureAudioFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -1364,7 +1642,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 202: { + case 226: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1373,7 +1651,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 210: { + case 234: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1382,7 +1660,7 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 218: { + case 242: { global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -1391,6 +1669,15 @@ public void MergeFrom(pb::CodedInputStream input) { E2Ee = subBuilder; break; } + case 250: { + global::LiveKit.Proto.AudioStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantRequest(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + subBuilder.MergeFrom(AudioStreamFromParticipant); + } + input.ReadMessage(subBuilder); + AudioStreamFromParticipant = subBuilder; + break; + } } } #endif @@ -1470,24 +1757,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 74: { - global::LiveKit.Proto.UpdateLocalMetadataRequest subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + global::LiveKit.Proto.SetLocalMetadataRequest subBuilder = new global::LiveKit.Proto.SetLocalMetadataRequest(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.UpdateLocalNameRequest subBuilder = new global::LiveKit.Proto.UpdateLocalNameRequest(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + global::LiveKit.Proto.SetLocalNameRequest subBuilder = new global::LiveKit.Proto.SetLocalNameRequest(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } case 90: { + global::LiveKit.Proto.SetLocalAttributesRequest subBuilder = new global::LiveKit.Proto.SetLocalAttributesRequest(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.GetSessionStatsRequest subBuilder = new global::LiveKit.Proto.GetSessionStatsRequest(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -1496,7 +1792,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.PublishTranscriptionRequest subBuilder = new global::LiveKit.Proto.PublishTranscriptionRequest(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -1505,7 +1801,16 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 106: { + case 114: { + global::LiveKit.Proto.PublishSipDtmfRequest subBuilder = new global::LiveKit.Proto.PublishSipDtmfRequest(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.CreateVideoTrackRequest subBuilder = new global::LiveKit.Proto.CreateVideoTrackRequest(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -1514,7 +1819,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 114: { + case 130: { global::LiveKit.Proto.CreateAudioTrackRequest subBuilder = new global::LiveKit.Proto.CreateAudioTrackRequest(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -1523,7 +1828,25 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 122: { + case 138: { + global::LiveKit.Proto.LocalTrackMuteRequest subBuilder = new global::LiveKit.Proto.LocalTrackMuteRequest(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + subBuilder.MergeFrom(LocalTrackMute); + } + input.ReadMessage(subBuilder); + LocalTrackMute = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.EnableRemoteTrackRequest subBuilder = new global::LiveKit.Proto.EnableRemoteTrackRequest(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + subBuilder.MergeFrom(EnableRemoteTrack); + } + input.ReadMessage(subBuilder); + EnableRemoteTrack = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.GetStatsRequest subBuilder = new global::LiveKit.Proto.GetStatsRequest(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -1532,7 +1855,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 162: { global::LiveKit.Proto.NewVideoStreamRequest subBuilder = new global::LiveKit.Proto.NewVideoStreamRequest(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -1541,7 +1864,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 138: { + case 170: { global::LiveKit.Proto.NewVideoSourceRequest subBuilder = new global::LiveKit.Proto.NewVideoSourceRequest(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -1550,7 +1873,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 146: { + case 178: { global::LiveKit.Proto.CaptureVideoFrameRequest subBuilder = new global::LiveKit.Proto.CaptureVideoFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -1559,7 +1882,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 154: { + case 186: { global::LiveKit.Proto.VideoConvertRequest subBuilder = new global::LiveKit.Proto.VideoConvertRequest(); if (messageCase_ == MessageOneofCase.VideoConvert) { subBuilder.MergeFrom(VideoConvert); @@ -1568,7 +1891,16 @@ public void MergeFrom(pb::CodedInputStream input) { VideoConvert = subBuilder; break; } - case 178: { + case 194: { + global::LiveKit.Proto.VideoStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.VideoStreamFromParticipantRequest(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + subBuilder.MergeFrom(VideoStreamFromParticipant); + } + input.ReadMessage(subBuilder); + VideoStreamFromParticipant = subBuilder; + break; + } + case 202: { global::LiveKit.Proto.NewAudioStreamRequest subBuilder = new global::LiveKit.Proto.NewAudioStreamRequest(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -1577,7 +1909,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 186: { + case 210: { global::LiveKit.Proto.NewAudioSourceRequest subBuilder = new global::LiveKit.Proto.NewAudioSourceRequest(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -1586,7 +1918,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 194: { + case 218: { global::LiveKit.Proto.CaptureAudioFrameRequest subBuilder = new global::LiveKit.Proto.CaptureAudioFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -1595,7 +1927,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 202: { + case 226: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1604,7 +1936,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 210: { + case 234: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1613,7 +1945,7 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 218: { + case 242: { global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -1622,6 +1954,15 @@ public void MergeFrom(pb::CodedInputStream input) { E2Ee = subBuilder; break; } + case 250: { + global::LiveKit.Proto.AudioStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantRequest(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + subBuilder.MergeFrom(AudioStreamFromParticipant); + } + input.ReadMessage(subBuilder); + AudioStreamFromParticipant = subBuilder; + break; + } } } } @@ -1689,11 +2030,14 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.SetSubscribed: SetSubscribed = other.SetSubscribed.Clone(); break; - case MessageOneofCase.UpdateLocalMetadata: - UpdateLocalMetadata = other.UpdateLocalMetadata.Clone(); + case MessageOneofCase.SetLocalMetadata: + SetLocalMetadata = other.SetLocalMetadata.Clone(); break; - case MessageOneofCase.UpdateLocalName: - UpdateLocalName = other.UpdateLocalName.Clone(); + case MessageOneofCase.SetLocalName: + SetLocalName = other.SetLocalName.Clone(); + break; + case MessageOneofCase.SetLocalAttributes: + SetLocalAttributes = other.SetLocalAttributes.Clone(); break; case MessageOneofCase.GetSessionStats: GetSessionStats = other.GetSessionStats.Clone(); @@ -1701,12 +2045,21 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.PublishTranscription: PublishTranscription = other.PublishTranscription.Clone(); break; + case MessageOneofCase.PublishSipDtmf: + PublishSipDtmf = other.PublishSipDtmf.Clone(); + break; case MessageOneofCase.CreateVideoTrack: CreateVideoTrack = other.CreateVideoTrack.Clone(); break; case MessageOneofCase.CreateAudioTrack: CreateAudioTrack = other.CreateAudioTrack.Clone(); break; + case MessageOneofCase.LocalTrackMute: + LocalTrackMute = other.LocalTrackMute.Clone(); + break; + case MessageOneofCase.EnableRemoteTrack: + EnableRemoteTrack = other.EnableRemoteTrack.Clone(); + break; case MessageOneofCase.GetStats: GetStats = other.GetStats.Clone(); break; @@ -1722,6 +2075,9 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.VideoConvert: VideoConvert = other.VideoConvert.Clone(); break; + case MessageOneofCase.VideoStreamFromParticipant: + VideoStreamFromParticipant = other.VideoStreamFromParticipant.Clone(); + break; case MessageOneofCase.NewAudioStream: NewAudioStream = other.NewAudioStream.Clone(); break; @@ -1737,6 +2093,9 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.RemixAndResample: RemixAndResample = other.RemixAndResample.Clone(); break; + case MessageOneofCase.AudioStreamFromParticipant: + AudioStreamFromParticipant = other.AudioStreamFromParticipant.Clone(); + break; case MessageOneofCase.E2Ee: E2Ee = other.E2Ee.Clone(); break; @@ -1838,32 +2197,44 @@ public FfiResponse Clone() { } } - /// Field number for the "update_local_metadata" field. - public const int UpdateLocalMetadataFieldNumber = 9; + /// Field number for the "set_local_metadata" field. + public const int SetLocalMetadataFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalMetadataResponse UpdateLocalMetadata { - get { return messageCase_ == MessageOneofCase.UpdateLocalMetadata ? (global::LiveKit.Proto.UpdateLocalMetadataResponse) message_ : null; } + public global::LiveKit.Proto.SetLocalMetadataResponse SetLocalMetadata { + get { return messageCase_ == MessageOneofCase.SetLocalMetadata ? (global::LiveKit.Proto.SetLocalMetadataResponse) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalMetadata; } } - /// Field number for the "update_local_name" field. - public const int UpdateLocalNameFieldNumber = 10; + /// Field number for the "set_local_name" field. + public const int SetLocalNameFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalNameResponse UpdateLocalName { - get { return messageCase_ == MessageOneofCase.UpdateLocalName ? (global::LiveKit.Proto.UpdateLocalNameResponse) message_ : null; } + public global::LiveKit.Proto.SetLocalNameResponse SetLocalName { + get { return messageCase_ == MessageOneofCase.SetLocalName ? (global::LiveKit.Proto.SetLocalNameResponse) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalName; + } + } + + /// Field number for the "set_local_attributes" field. + public const int SetLocalAttributesFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetLocalAttributesResponse SetLocalAttributes { + get { return messageCase_ == MessageOneofCase.SetLocalAttributes ? (global::LiveKit.Proto.SetLocalAttributesResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalAttributes; } } /// Field number for the "get_session_stats" field. - public const int GetSessionStatsFieldNumber = 11; + public const int GetSessionStatsFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetSessionStatsResponse GetSessionStats { @@ -1875,7 +2246,7 @@ public FfiResponse Clone() { } /// Field number for the "publish_transcription" field. - public const int PublishTranscriptionFieldNumber = 12; + public const int PublishTranscriptionFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PublishTranscriptionResponse PublishTranscription { @@ -1886,8 +2257,20 @@ public FfiResponse Clone() { } } + /// Field number for the "publish_sip_dtmf" field. + public const int PublishSipDtmfFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishSipDtmfResponse PublishSipDtmf { + get { return messageCase_ == MessageOneofCase.PublishSipDtmf ? (global::LiveKit.Proto.PublishSipDtmfResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishSipDtmf; + } + } + /// Field number for the "create_video_track" field. - public const int CreateVideoTrackFieldNumber = 13; + public const int CreateVideoTrackFieldNumber = 15; /// /// Track /// @@ -1902,7 +2285,7 @@ public FfiResponse Clone() { } /// Field number for the "create_audio_track" field. - public const int CreateAudioTrackFieldNumber = 14; + public const int CreateAudioTrackFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CreateAudioTrackResponse CreateAudioTrack { @@ -1913,8 +2296,32 @@ public FfiResponse Clone() { } } + /// Field number for the "local_track_mute" field. + public const int LocalTrackMuteFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackMuteResponse LocalTrackMute { + get { return messageCase_ == MessageOneofCase.LocalTrackMute ? (global::LiveKit.Proto.LocalTrackMuteResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackMute; + } + } + + /// Field number for the "enable_remote_track" field. + public const int EnableRemoteTrackFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.EnableRemoteTrackResponse EnableRemoteTrack { + get { return messageCase_ == MessageOneofCase.EnableRemoteTrack ? (global::LiveKit.Proto.EnableRemoteTrackResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.EnableRemoteTrack; + } + } + /// Field number for the "get_stats" field. - public const int GetStatsFieldNumber = 15; + public const int GetStatsFieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetStatsResponse GetStats { @@ -1926,7 +2333,7 @@ public FfiResponse Clone() { } /// Field number for the "new_video_stream" field. - public const int NewVideoStreamFieldNumber = 16; + public const int NewVideoStreamFieldNumber = 20; /// /// Video /// @@ -1941,7 +2348,7 @@ public FfiResponse Clone() { } /// Field number for the "new_video_source" field. - public const int NewVideoSourceFieldNumber = 17; + public const int NewVideoSourceFieldNumber = 21; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoSourceResponse NewVideoSource { @@ -1953,7 +2360,7 @@ public FfiResponse Clone() { } /// Field number for the "capture_video_frame" field. - public const int CaptureVideoFrameFieldNumber = 18; + public const int CaptureVideoFrameFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureVideoFrameResponse CaptureVideoFrame { @@ -1965,7 +2372,7 @@ public FfiResponse Clone() { } /// Field number for the "video_convert" field. - public const int VideoConvertFieldNumber = 19; + public const int VideoConvertFieldNumber = 23; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoConvertResponse VideoConvert { @@ -1976,8 +2383,20 @@ public FfiResponse Clone() { } } + /// Field number for the "video_stream_from_participant" field. + public const int VideoStreamFromParticipantFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoStreamFromParticipantResponse VideoStreamFromParticipant { + get { return messageCase_ == MessageOneofCase.VideoStreamFromParticipant ? (global::LiveKit.Proto.VideoStreamFromParticipantResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.VideoStreamFromParticipant; + } + } + /// Field number for the "new_audio_stream" field. - public const int NewAudioStreamFieldNumber = 22; + public const int NewAudioStreamFieldNumber = 25; /// /// Audio /// @@ -1992,7 +2411,7 @@ public FfiResponse Clone() { } /// Field number for the "new_audio_source" field. - public const int NewAudioSourceFieldNumber = 23; + public const int NewAudioSourceFieldNumber = 26; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioSourceResponse NewAudioSource { @@ -2004,7 +2423,7 @@ public FfiResponse Clone() { } /// Field number for the "capture_audio_frame" field. - public const int CaptureAudioFrameFieldNumber = 24; + public const int CaptureAudioFrameFieldNumber = 27; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureAudioFrameResponse CaptureAudioFrame { @@ -2016,7 +2435,7 @@ public FfiResponse Clone() { } /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 25; + public const int NewAudioResamplerFieldNumber = 28; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerResponse NewAudioResampler { @@ -2028,7 +2447,7 @@ public FfiResponse Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 26; + public const int RemixAndResampleFieldNumber = 29; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleResponse RemixAndResample { @@ -2039,8 +2458,20 @@ public FfiResponse Clone() { } } + /// Field number for the "audio_stream_from_participant" field. + public const int AudioStreamFromParticipantFieldNumber = 30; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamFromParticipantResponse AudioStreamFromParticipant { + get { return messageCase_ == MessageOneofCase.AudioStreamFromParticipant ? (global::LiveKit.Proto.AudioStreamFromParticipantResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.AudioStreamFromParticipant; + } + } + /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 27; + public const int E2EeFieldNumber = 31; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.E2eeResponse E2Ee { @@ -2062,23 +2493,29 @@ public enum MessageOneofCase { UnpublishTrack = 6, PublishData = 7, SetSubscribed = 8, - UpdateLocalMetadata = 9, - UpdateLocalName = 10, - GetSessionStats = 11, - PublishTranscription = 12, - CreateVideoTrack = 13, - CreateAudioTrack = 14, - GetStats = 15, - NewVideoStream = 16, - NewVideoSource = 17, - CaptureVideoFrame = 18, - VideoConvert = 19, - NewAudioStream = 22, - NewAudioSource = 23, - CaptureAudioFrame = 24, - NewAudioResampler = 25, - RemixAndResample = 26, - E2Ee = 27, + SetLocalMetadata = 9, + SetLocalName = 10, + SetLocalAttributes = 11, + GetSessionStats = 12, + PublishTranscription = 13, + PublishSipDtmf = 14, + CreateVideoTrack = 15, + CreateAudioTrack = 16, + LocalTrackMute = 17, + EnableRemoteTrack = 18, + GetStats = 19, + NewVideoStream = 20, + NewVideoSource = 21, + CaptureVideoFrame = 22, + VideoConvert = 23, + VideoStreamFromParticipant = 24, + NewAudioStream = 25, + NewAudioSource = 26, + CaptureAudioFrame = 27, + NewAudioResampler = 28, + RemixAndResample = 29, + AudioStreamFromParticipant = 30, + E2Ee = 31, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2116,22 +2553,28 @@ public bool Equals(FfiResponse other) { if (!object.Equals(UnpublishTrack, other.UnpublishTrack)) return false; if (!object.Equals(PublishData, other.PublishData)) return false; if (!object.Equals(SetSubscribed, other.SetSubscribed)) return false; - if (!object.Equals(UpdateLocalMetadata, other.UpdateLocalMetadata)) return false; - if (!object.Equals(UpdateLocalName, other.UpdateLocalName)) return false; + if (!object.Equals(SetLocalMetadata, other.SetLocalMetadata)) return false; + if (!object.Equals(SetLocalName, other.SetLocalName)) return false; + if (!object.Equals(SetLocalAttributes, other.SetLocalAttributes)) return false; if (!object.Equals(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(PublishTranscription, other.PublishTranscription)) return false; + if (!object.Equals(PublishSipDtmf, other.PublishSipDtmf)) return false; if (!object.Equals(CreateVideoTrack, other.CreateVideoTrack)) return false; if (!object.Equals(CreateAudioTrack, other.CreateAudioTrack)) return false; + if (!object.Equals(LocalTrackMute, other.LocalTrackMute)) return false; + if (!object.Equals(EnableRemoteTrack, other.EnableRemoteTrack)) return false; if (!object.Equals(GetStats, other.GetStats)) return false; if (!object.Equals(NewVideoStream, other.NewVideoStream)) return false; if (!object.Equals(NewVideoSource, other.NewVideoSource)) return false; if (!object.Equals(CaptureVideoFrame, other.CaptureVideoFrame)) return false; if (!object.Equals(VideoConvert, other.VideoConvert)) return false; + if (!object.Equals(VideoStreamFromParticipant, other.VideoStreamFromParticipant)) return false; if (!object.Equals(NewAudioStream, other.NewAudioStream)) return false; if (!object.Equals(NewAudioSource, other.NewAudioSource)) return false; if (!object.Equals(CaptureAudioFrame, other.CaptureAudioFrame)) return false; if (!object.Equals(NewAudioResampler, other.NewAudioResampler)) return false; if (!object.Equals(RemixAndResample, other.RemixAndResample)) return false; + if (!object.Equals(AudioStreamFromParticipant, other.AudioStreamFromParticipant)) return false; if (!object.Equals(E2Ee, other.E2Ee)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); @@ -2148,22 +2591,28 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.UnpublishTrack) hash ^= UnpublishTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishData) hash ^= PublishData.GetHashCode(); if (messageCase_ == MessageOneofCase.SetSubscribed) hash ^= SetSubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) hash ^= UpdateLocalMetadata.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) hash ^= UpdateLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) hash ^= SetLocalMetadata.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalName) hash ^= SetLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) hash ^= SetLocalAttributes.GetHashCode(); if (messageCase_ == MessageOneofCase.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTranscription) hash ^= PublishTranscription.GetHashCode(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) hash ^= PublishSipDtmf.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) hash ^= CreateVideoTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) hash ^= CreateAudioTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) hash ^= LocalTrackMute.GetHashCode(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) hash ^= EnableRemoteTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.GetStats) hash ^= GetStats.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoStream) hash ^= NewVideoStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoSource) hash ^= NewVideoSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) hash ^= CaptureVideoFrame.GetHashCode(); if (messageCase_ == MessageOneofCase.VideoConvert) hash ^= VideoConvert.GetHashCode(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) hash ^= VideoStreamFromParticipant.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioStream) hash ^= NewAudioStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioSource) hash ^= NewAudioSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) hash ^= CaptureAudioFrame.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioResampler) hash ^= NewAudioResampler.GetHashCode(); if (messageCase_ == MessageOneofCase.RemixAndResample) hash ^= RemixAndResample.GetHashCode(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) hash ^= AudioStreamFromParticipant.GetHashCode(); if (messageCase_ == MessageOneofCase.E2Ee) hash ^= E2Ee.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { @@ -2212,72 +2661,96 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(74); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(82); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalName); } - if (messageCase_ == MessageOneofCase.GetSessionStats) { + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { output.WriteRawTag(90); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(98); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(98); + output.WriteRawTag(106); output.WriteMessage(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(114); + output.WriteMessage(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - output.WriteRawTag(106); + output.WriteRawTag(122); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(114); + output.WriteRawTag(130, 1); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + output.WriteRawTag(138, 1); + output.WriteMessage(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + output.WriteRawTag(146, 1); + output.WriteMessage(EnableRemoteTrack); + } if (messageCase_ == MessageOneofCase.GetStats) { - output.WriteRawTag(122); + output.WriteRawTag(154, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(162, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(170, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(178, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.VideoConvert) { - output.WriteRawTag(154, 1); + output.WriteRawTag(186, 1); output.WriteMessage(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + output.WriteRawTag(194, 1); + output.WriteMessage(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(178, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(186, 1); + output.WriteRawTag(210, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(194, 1); + output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(202, 1); + output.WriteRawTag(226, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(210, 1); + output.WriteRawTag(234, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + output.WriteRawTag(242, 1); + output.WriteMessage(AudioStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(218, 1); + output.WriteRawTag(250, 1); output.WriteMessage(E2Ee); } if (_unknownFields != null) { @@ -2318,72 +2791,96 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(74); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(82); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalName); } - if (messageCase_ == MessageOneofCase.GetSessionStats) { + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { output.WriteRawTag(90); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(98); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(98); + output.WriteRawTag(106); output.WriteMessage(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(114); + output.WriteMessage(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - output.WriteRawTag(106); + output.WriteRawTag(122); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(114); + output.WriteRawTag(130, 1); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + output.WriteRawTag(138, 1); + output.WriteMessage(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + output.WriteRawTag(146, 1); + output.WriteMessage(EnableRemoteTrack); + } if (messageCase_ == MessageOneofCase.GetStats) { - output.WriteRawTag(122); + output.WriteRawTag(154, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(162, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(170, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(178, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.VideoConvert) { - output.WriteRawTag(154, 1); + output.WriteRawTag(186, 1); output.WriteMessage(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + output.WriteRawTag(194, 1); + output.WriteMessage(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(178, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(186, 1); + output.WriteRawTag(210, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(194, 1); + output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(202, 1); + output.WriteRawTag(226, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(210, 1); + output.WriteRawTag(234, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + output.WriteRawTag(242, 1); + output.WriteMessage(AudioStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(218, 1); + output.WriteRawTag(250, 1); output.WriteMessage(E2Ee); } if (_unknownFields != null) { @@ -2417,11 +2914,14 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.SetSubscribed) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSubscribed); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + if (messageCase_ == MessageOneofCase.SetLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalName); + } + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalAttributes); } if (messageCase_ == MessageOneofCase.GetSessionStats) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSessionStats); @@ -2429,14 +2929,23 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.PublishTranscription) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishTranscription); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishSipDtmf); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); + } + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackMute); + } + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EnableRemoteTrack); } if (messageCase_ == MessageOneofCase.GetStats) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetStats); } if (messageCase_ == MessageOneofCase.NewVideoStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); @@ -2450,6 +2959,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.VideoConvert) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoConvert); } + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.NewAudioStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioStream); } @@ -2465,6 +2977,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.RemixAndResample) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemixAndResample); } + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudioStreamFromParticipant); + } if (messageCase_ == MessageOneofCase.E2Ee) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); } @@ -2523,17 +3038,23 @@ public void MergeFrom(FfiResponse other) { } SetSubscribed.MergeFrom(other.SetSubscribed); break; - case MessageOneofCase.UpdateLocalMetadata: - if (UpdateLocalMetadata == null) { - UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); + case MessageOneofCase.SetLocalMetadata: + if (SetLocalMetadata == null) { + SetLocalMetadata = new global::LiveKit.Proto.SetLocalMetadataResponse(); } - UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + SetLocalMetadata.MergeFrom(other.SetLocalMetadata); break; - case MessageOneofCase.UpdateLocalName: - if (UpdateLocalName == null) { - UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameResponse(); + case MessageOneofCase.SetLocalName: + if (SetLocalName == null) { + SetLocalName = new global::LiveKit.Proto.SetLocalNameResponse(); } - UpdateLocalName.MergeFrom(other.UpdateLocalName); + SetLocalName.MergeFrom(other.SetLocalName); + break; + case MessageOneofCase.SetLocalAttributes: + if (SetLocalAttributes == null) { + SetLocalAttributes = new global::LiveKit.Proto.SetLocalAttributesResponse(); + } + SetLocalAttributes.MergeFrom(other.SetLocalAttributes); break; case MessageOneofCase.GetSessionStats: if (GetSessionStats == null) { @@ -2547,6 +3068,12 @@ public void MergeFrom(FfiResponse other) { } PublishTranscription.MergeFrom(other.PublishTranscription); break; + case MessageOneofCase.PublishSipDtmf: + if (PublishSipDtmf == null) { + PublishSipDtmf = new global::LiveKit.Proto.PublishSipDtmfResponse(); + } + PublishSipDtmf.MergeFrom(other.PublishSipDtmf); + break; case MessageOneofCase.CreateVideoTrack: if (CreateVideoTrack == null) { CreateVideoTrack = new global::LiveKit.Proto.CreateVideoTrackResponse(); @@ -2559,6 +3086,18 @@ public void MergeFrom(FfiResponse other) { } CreateAudioTrack.MergeFrom(other.CreateAudioTrack); break; + case MessageOneofCase.LocalTrackMute: + if (LocalTrackMute == null) { + LocalTrackMute = new global::LiveKit.Proto.LocalTrackMuteResponse(); + } + LocalTrackMute.MergeFrom(other.LocalTrackMute); + break; + case MessageOneofCase.EnableRemoteTrack: + if (EnableRemoteTrack == null) { + EnableRemoteTrack = new global::LiveKit.Proto.EnableRemoteTrackResponse(); + } + EnableRemoteTrack.MergeFrom(other.EnableRemoteTrack); + break; case MessageOneofCase.GetStats: if (GetStats == null) { GetStats = new global::LiveKit.Proto.GetStatsResponse(); @@ -2589,6 +3128,12 @@ public void MergeFrom(FfiResponse other) { } VideoConvert.MergeFrom(other.VideoConvert); break; + case MessageOneofCase.VideoStreamFromParticipant: + if (VideoStreamFromParticipant == null) { + VideoStreamFromParticipant = new global::LiveKit.Proto.VideoStreamFromParticipantResponse(); + } + VideoStreamFromParticipant.MergeFrom(other.VideoStreamFromParticipant); + break; case MessageOneofCase.NewAudioStream: if (NewAudioStream == null) { NewAudioStream = new global::LiveKit.Proto.NewAudioStreamResponse(); @@ -2619,6 +3164,12 @@ public void MergeFrom(FfiResponse other) { } RemixAndResample.MergeFrom(other.RemixAndResample); break; + case MessageOneofCase.AudioStreamFromParticipant: + if (AudioStreamFromParticipant == null) { + AudioStreamFromParticipant = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); + } + AudioStreamFromParticipant.MergeFrom(other.AudioStreamFromParticipant); + break; case MessageOneofCase.E2Ee: if (E2Ee == null) { E2Ee = new global::LiveKit.Proto.E2eeResponse(); @@ -2706,24 +3257,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 74: { - global::LiveKit.Proto.UpdateLocalMetadataResponse subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + global::LiveKit.Proto.SetLocalMetadataResponse subBuilder = new global::LiveKit.Proto.SetLocalMetadataResponse(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.UpdateLocalNameResponse subBuilder = new global::LiveKit.Proto.UpdateLocalNameResponse(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + global::LiveKit.Proto.SetLocalNameResponse subBuilder = new global::LiveKit.Proto.SetLocalNameResponse(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } case 90: { + global::LiveKit.Proto.SetLocalAttributesResponse subBuilder = new global::LiveKit.Proto.SetLocalAttributesResponse(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.GetSessionStatsResponse subBuilder = new global::LiveKit.Proto.GetSessionStatsResponse(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -2732,7 +3292,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.PublishTranscriptionResponse subBuilder = new global::LiveKit.Proto.PublishTranscriptionResponse(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -2741,7 +3301,16 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 106: { + case 114: { + global::LiveKit.Proto.PublishSipDtmfResponse subBuilder = new global::LiveKit.Proto.PublishSipDtmfResponse(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.CreateVideoTrackResponse subBuilder = new global::LiveKit.Proto.CreateVideoTrackResponse(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -2750,7 +3319,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 114: { + case 130: { global::LiveKit.Proto.CreateAudioTrackResponse subBuilder = new global::LiveKit.Proto.CreateAudioTrackResponse(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -2759,7 +3328,25 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 122: { + case 138: { + global::LiveKit.Proto.LocalTrackMuteResponse subBuilder = new global::LiveKit.Proto.LocalTrackMuteResponse(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + subBuilder.MergeFrom(LocalTrackMute); + } + input.ReadMessage(subBuilder); + LocalTrackMute = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.EnableRemoteTrackResponse subBuilder = new global::LiveKit.Proto.EnableRemoteTrackResponse(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + subBuilder.MergeFrom(EnableRemoteTrack); + } + input.ReadMessage(subBuilder); + EnableRemoteTrack = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.GetStatsResponse subBuilder = new global::LiveKit.Proto.GetStatsResponse(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -2768,7 +3355,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 162: { global::LiveKit.Proto.NewVideoStreamResponse subBuilder = new global::LiveKit.Proto.NewVideoStreamResponse(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -2777,7 +3364,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 138: { + case 170: { global::LiveKit.Proto.NewVideoSourceResponse subBuilder = new global::LiveKit.Proto.NewVideoSourceResponse(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -2786,7 +3373,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 146: { + case 178: { global::LiveKit.Proto.CaptureVideoFrameResponse subBuilder = new global::LiveKit.Proto.CaptureVideoFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -2795,7 +3382,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 154: { + case 186: { global::LiveKit.Proto.VideoConvertResponse subBuilder = new global::LiveKit.Proto.VideoConvertResponse(); if (messageCase_ == MessageOneofCase.VideoConvert) { subBuilder.MergeFrom(VideoConvert); @@ -2804,7 +3391,16 @@ public void MergeFrom(pb::CodedInputStream input) { VideoConvert = subBuilder; break; } - case 178: { + case 194: { + global::LiveKit.Proto.VideoStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.VideoStreamFromParticipantResponse(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + subBuilder.MergeFrom(VideoStreamFromParticipant); + } + input.ReadMessage(subBuilder); + VideoStreamFromParticipant = subBuilder; + break; + } + case 202: { global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -2813,7 +3409,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 186: { + case 210: { global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -2822,7 +3418,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 194: { + case 218: { global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -2831,7 +3427,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 202: { + case 226: { global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -2840,7 +3436,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 210: { + case 234: { global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -2849,7 +3445,16 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 218: { + case 242: { + global::LiveKit.Proto.AudioStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + subBuilder.MergeFrom(AudioStreamFromParticipant); + } + input.ReadMessage(subBuilder); + AudioStreamFromParticipant = subBuilder; + break; + } + case 250: { global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -2937,24 +3542,33 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 74: { - global::LiveKit.Proto.UpdateLocalMetadataResponse subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + global::LiveKit.Proto.SetLocalMetadataResponse subBuilder = new global::LiveKit.Proto.SetLocalMetadataResponse(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.UpdateLocalNameResponse subBuilder = new global::LiveKit.Proto.UpdateLocalNameResponse(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + global::LiveKit.Proto.SetLocalNameResponse subBuilder = new global::LiveKit.Proto.SetLocalNameResponse(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } case 90: { + global::LiveKit.Proto.SetLocalAttributesResponse subBuilder = new global::LiveKit.Proto.SetLocalAttributesResponse(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.GetSessionStatsResponse subBuilder = new global::LiveKit.Proto.GetSessionStatsResponse(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -2963,7 +3577,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.PublishTranscriptionResponse subBuilder = new global::LiveKit.Proto.PublishTranscriptionResponse(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -2972,7 +3586,16 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 106: { + case 114: { + global::LiveKit.Proto.PublishSipDtmfResponse subBuilder = new global::LiveKit.Proto.PublishSipDtmfResponse(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.CreateVideoTrackResponse subBuilder = new global::LiveKit.Proto.CreateVideoTrackResponse(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -2981,7 +3604,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 114: { + case 130: { global::LiveKit.Proto.CreateAudioTrackResponse subBuilder = new global::LiveKit.Proto.CreateAudioTrackResponse(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -2990,7 +3613,25 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 122: { + case 138: { + global::LiveKit.Proto.LocalTrackMuteResponse subBuilder = new global::LiveKit.Proto.LocalTrackMuteResponse(); + if (messageCase_ == MessageOneofCase.LocalTrackMute) { + subBuilder.MergeFrom(LocalTrackMute); + } + input.ReadMessage(subBuilder); + LocalTrackMute = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.EnableRemoteTrackResponse subBuilder = new global::LiveKit.Proto.EnableRemoteTrackResponse(); + if (messageCase_ == MessageOneofCase.EnableRemoteTrack) { + subBuilder.MergeFrom(EnableRemoteTrack); + } + input.ReadMessage(subBuilder); + EnableRemoteTrack = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.GetStatsResponse subBuilder = new global::LiveKit.Proto.GetStatsResponse(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -2999,7 +3640,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 162: { global::LiveKit.Proto.NewVideoStreamResponse subBuilder = new global::LiveKit.Proto.NewVideoStreamResponse(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -3008,7 +3649,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 138: { + case 170: { global::LiveKit.Proto.NewVideoSourceResponse subBuilder = new global::LiveKit.Proto.NewVideoSourceResponse(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -3017,7 +3658,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 146: { + case 178: { global::LiveKit.Proto.CaptureVideoFrameResponse subBuilder = new global::LiveKit.Proto.CaptureVideoFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -3026,7 +3667,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 154: { + case 186: { global::LiveKit.Proto.VideoConvertResponse subBuilder = new global::LiveKit.Proto.VideoConvertResponse(); if (messageCase_ == MessageOneofCase.VideoConvert) { subBuilder.MergeFrom(VideoConvert); @@ -3035,7 +3676,16 @@ public void MergeFrom(pb::CodedInputStream input) { VideoConvert = subBuilder; break; } - case 178: { + case 194: { + global::LiveKit.Proto.VideoStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.VideoStreamFromParticipantResponse(); + if (messageCase_ == MessageOneofCase.VideoStreamFromParticipant) { + subBuilder.MergeFrom(VideoStreamFromParticipant); + } + input.ReadMessage(subBuilder); + VideoStreamFromParticipant = subBuilder; + break; + } + case 202: { global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -3044,7 +3694,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 186: { + case 210: { global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -3053,7 +3703,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 194: { + case 218: { global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -3062,7 +3712,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 202: { + case 226: { global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -3071,7 +3721,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 210: { + case 234: { global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -3080,7 +3730,16 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 218: { + case 242: { + global::LiveKit.Proto.AudioStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + subBuilder.MergeFrom(AudioStreamFromParticipant); + } + input.ReadMessage(subBuilder); + AudioStreamFromParticipant = subBuilder; + break; + } + case 250: { global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -3173,11 +3832,14 @@ public FfiEvent(FfiEvent other) : this() { case MessageOneofCase.CaptureAudioFrame: CaptureAudioFrame = other.CaptureAudioFrame.Clone(); break; - case MessageOneofCase.UpdateLocalMetadata: - UpdateLocalMetadata = other.UpdateLocalMetadata.Clone(); + case MessageOneofCase.SetLocalMetadata: + SetLocalMetadata = other.SetLocalMetadata.Clone(); break; - case MessageOneofCase.UpdateLocalName: - UpdateLocalName = other.UpdateLocalName.Clone(); + case MessageOneofCase.SetLocalName: + SetLocalName = other.SetLocalName.Clone(); + break; + case MessageOneofCase.SetLocalAttributes: + SetLocalAttributes = other.SetLocalAttributes.Clone(); break; case MessageOneofCase.GetStats: GetStats = other.GetStats.Clone(); @@ -3191,6 +3853,9 @@ public FfiEvent(FfiEvent other) : this() { case MessageOneofCase.Panic: Panic = other.Panic.Clone(); break; + case MessageOneofCase.PublishSipDtmf: + PublishSipDtmf = other.PublishSipDtmf.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3263,7 +3928,7 @@ public FfiEvent Clone() { } /// Field number for the "disconnect" field. - public const int DisconnectFieldNumber = 6; + public const int DisconnectFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.DisconnectCallback Disconnect { @@ -3275,7 +3940,7 @@ public FfiEvent Clone() { } /// Field number for the "dispose" field. - public const int DisposeFieldNumber = 7; + public const int DisposeFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.DisposeCallback Dispose { @@ -3287,7 +3952,7 @@ public FfiEvent Clone() { } /// Field number for the "publish_track" field. - public const int PublishTrackFieldNumber = 8; + public const int PublishTrackFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PublishTrackCallback PublishTrack { @@ -3299,7 +3964,7 @@ public FfiEvent Clone() { } /// Field number for the "unpublish_track" field. - public const int UnpublishTrackFieldNumber = 9; + public const int UnpublishTrackFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.UnpublishTrackCallback UnpublishTrack { @@ -3311,7 +3976,7 @@ public FfiEvent Clone() { } /// Field number for the "publish_data" field. - public const int PublishDataFieldNumber = 10; + public const int PublishDataFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PublishDataCallback PublishData { @@ -3323,7 +3988,7 @@ public FfiEvent Clone() { } /// Field number for the "publish_transcription" field. - public const int PublishTranscriptionFieldNumber = 11; + public const int PublishTranscriptionFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PublishTranscriptionCallback PublishTranscription { @@ -3335,7 +4000,7 @@ public FfiEvent Clone() { } /// Field number for the "capture_audio_frame" field. - public const int CaptureAudioFrameFieldNumber = 12; + public const int CaptureAudioFrameFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureAudioFrameCallback CaptureAudioFrame { @@ -3346,32 +4011,44 @@ public FfiEvent Clone() { } } - /// Field number for the "update_local_metadata" field. - public const int UpdateLocalMetadataFieldNumber = 13; + /// Field number for the "set_local_metadata" field. + public const int SetLocalMetadataFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetLocalMetadataCallback SetLocalMetadata { + get { return messageCase_ == MessageOneofCase.SetLocalMetadata ? (global::LiveKit.Proto.SetLocalMetadataCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalMetadata; + } + } + + /// Field number for the "set_local_name" field. + public const int SetLocalNameFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalMetadataCallback UpdateLocalMetadata { - get { return messageCase_ == MessageOneofCase.UpdateLocalMetadata ? (global::LiveKit.Proto.UpdateLocalMetadataCallback) message_ : null; } + public global::LiveKit.Proto.SetLocalNameCallback SetLocalName { + get { return messageCase_ == MessageOneofCase.SetLocalName ? (global::LiveKit.Proto.SetLocalNameCallback) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalName; } } - /// Field number for the "update_local_name" field. - public const int UpdateLocalNameFieldNumber = 14; + /// Field number for the "set_local_attributes" field. + public const int SetLocalAttributesFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UpdateLocalNameCallback UpdateLocalName { - get { return messageCase_ == MessageOneofCase.UpdateLocalName ? (global::LiveKit.Proto.UpdateLocalNameCallback) message_ : null; } + public global::LiveKit.Proto.SetLocalAttributesCallback SetLocalAttributes { + get { return messageCase_ == MessageOneofCase.SetLocalAttributes ? (global::LiveKit.Proto.SetLocalAttributesCallback) message_ : null; } set { message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetLocalAttributes; } } /// Field number for the "get_stats" field. - public const int GetStatsFieldNumber = 15; + public const int GetStatsFieldNumber = 17; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetStatsCallback GetStats { @@ -3383,7 +4060,7 @@ public FfiEvent Clone() { } /// Field number for the "logs" field. - public const int LogsFieldNumber = 16; + public const int LogsFieldNumber = 18; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.LogBatch Logs { @@ -3395,7 +4072,7 @@ public FfiEvent Clone() { } /// Field number for the "get_session_stats" field. - public const int GetSessionStatsFieldNumber = 17; + public const int GetSessionStatsFieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.GetSessionStatsCallback GetSessionStats { @@ -3407,7 +4084,7 @@ public FfiEvent Clone() { } /// Field number for the "panic" field. - public const int PanicFieldNumber = 18; + public const int PanicFieldNumber = 20; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.Panic Panic { @@ -3418,6 +4095,18 @@ public FfiEvent Clone() { } } + /// Field number for the "publish_sip_dtmf" field. + public const int PublishSipDtmfFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishSipDtmfCallback PublishSipDtmf { + get { return messageCase_ == MessageOneofCase.PublishSipDtmf ? (global::LiveKit.Proto.PublishSipDtmfCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishSipDtmf; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { @@ -3427,19 +4116,21 @@ public enum MessageOneofCase { VideoStreamEvent = 3, AudioStreamEvent = 4, Connect = 5, - Disconnect = 6, - Dispose = 7, - PublishTrack = 8, - UnpublishTrack = 9, - PublishData = 10, - PublishTranscription = 11, - CaptureAudioFrame = 12, - UpdateLocalMetadata = 13, - UpdateLocalName = 14, - GetStats = 15, - Logs = 16, - GetSessionStats = 17, - Panic = 18, + Disconnect = 7, + Dispose = 8, + PublishTrack = 9, + UnpublishTrack = 10, + PublishData = 11, + PublishTranscription = 12, + CaptureAudioFrame = 13, + SetLocalMetadata = 14, + SetLocalName = 15, + SetLocalAttributes = 16, + GetStats = 17, + Logs = 18, + GetSessionStats = 19, + Panic = 20, + PublishSipDtmf = 21, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3482,12 +4173,14 @@ public bool Equals(FfiEvent other) { if (!object.Equals(PublishData, other.PublishData)) return false; if (!object.Equals(PublishTranscription, other.PublishTranscription)) return false; if (!object.Equals(CaptureAudioFrame, other.CaptureAudioFrame)) return false; - if (!object.Equals(UpdateLocalMetadata, other.UpdateLocalMetadata)) return false; - if (!object.Equals(UpdateLocalName, other.UpdateLocalName)) return false; + if (!object.Equals(SetLocalMetadata, other.SetLocalMetadata)) return false; + if (!object.Equals(SetLocalName, other.SetLocalName)) return false; + if (!object.Equals(SetLocalAttributes, other.SetLocalAttributes)) return false; if (!object.Equals(GetStats, other.GetStats)) return false; if (!object.Equals(Logs, other.Logs)) return false; if (!object.Equals(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(Panic, other.Panic)) return false; + if (!object.Equals(PublishSipDtmf, other.PublishSipDtmf)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3508,12 +4201,14 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.PublishData) hash ^= PublishData.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTranscription) hash ^= PublishTranscription.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) hash ^= CaptureAudioFrame.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) hash ^= UpdateLocalMetadata.GetHashCode(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) hash ^= UpdateLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) hash ^= SetLocalMetadata.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalName) hash ^= SetLocalName.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) hash ^= SetLocalAttributes.GetHashCode(); if (messageCase_ == MessageOneofCase.GetStats) hash ^= GetStats.GetHashCode(); if (messageCase_ == MessageOneofCase.Logs) hash ^= Logs.GetHashCode(); if (messageCase_ == MessageOneofCase.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.Panic) hash ^= Panic.GetHashCode(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) hash ^= PublishSipDtmf.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -3554,57 +4249,65 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(Connect); } if (messageCase_ == MessageOneofCase.Disconnect) { - output.WriteRawTag(50); + output.WriteRawTag(58); output.WriteMessage(Disconnect); } if (messageCase_ == MessageOneofCase.Dispose) { - output.WriteRawTag(58); + output.WriteRawTag(66); output.WriteMessage(Dispose); } if (messageCase_ == MessageOneofCase.PublishTrack) { - output.WriteRawTag(66); + output.WriteRawTag(74); output.WriteMessage(PublishTrack); } if (messageCase_ == MessageOneofCase.UnpublishTrack) { - output.WriteRawTag(74); + output.WriteRawTag(82); output.WriteMessage(UnpublishTrack); } if (messageCase_ == MessageOneofCase.PublishData) { - output.WriteRawTag(82); + output.WriteRawTag(90); output.WriteMessage(PublishData); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(90); + output.WriteRawTag(98); output.WriteMessage(PublishTranscription); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(98); - output.WriteMessage(CaptureAudioFrame); - } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { output.WriteRawTag(106); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(114); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.GetStats) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(122); + output.WriteMessage(SetLocalName); + } + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + output.WriteRawTag(130, 1); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(138, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.Logs) { - output.WriteRawTag(130, 1); + output.WriteRawTag(146, 1); output.WriteMessage(Logs); } if (messageCase_ == MessageOneofCase.GetSessionStats) { - output.WriteRawTag(138, 1); + output.WriteRawTag(154, 1); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.Panic) { - output.WriteRawTag(146, 1); + output.WriteRawTag(162, 1); output.WriteMessage(Panic); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(170, 1); + output.WriteMessage(PublishSipDtmf); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3636,57 +4339,65 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteMessage(Connect); } if (messageCase_ == MessageOneofCase.Disconnect) { - output.WriteRawTag(50); + output.WriteRawTag(58); output.WriteMessage(Disconnect); } if (messageCase_ == MessageOneofCase.Dispose) { - output.WriteRawTag(58); + output.WriteRawTag(66); output.WriteMessage(Dispose); } if (messageCase_ == MessageOneofCase.PublishTrack) { - output.WriteRawTag(66); + output.WriteRawTag(74); output.WriteMessage(PublishTrack); } if (messageCase_ == MessageOneofCase.UnpublishTrack) { - output.WriteRawTag(74); + output.WriteRawTag(82); output.WriteMessage(UnpublishTrack); } if (messageCase_ == MessageOneofCase.PublishData) { - output.WriteRawTag(82); + output.WriteRawTag(90); output.WriteMessage(PublishData); } if (messageCase_ == MessageOneofCase.PublishTranscription) { - output.WriteRawTag(90); + output.WriteRawTag(98); output.WriteMessage(PublishTranscription); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(98); - output.WriteMessage(CaptureAudioFrame); - } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { output.WriteRawTag(106); - output.WriteMessage(UpdateLocalMetadata); + output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { output.WriteRawTag(114); - output.WriteMessage(UpdateLocalName); + output.WriteMessage(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.GetStats) { + if (messageCase_ == MessageOneofCase.SetLocalName) { output.WriteRawTag(122); + output.WriteMessage(SetLocalName); + } + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + output.WriteRawTag(130, 1); + output.WriteMessage(SetLocalAttributes); + } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(138, 1); output.WriteMessage(GetStats); } if (messageCase_ == MessageOneofCase.Logs) { - output.WriteRawTag(130, 1); + output.WriteRawTag(146, 1); output.WriteMessage(Logs); } if (messageCase_ == MessageOneofCase.GetSessionStats) { - output.WriteRawTag(138, 1); + output.WriteRawTag(154, 1); output.WriteMessage(GetSessionStats); } if (messageCase_ == MessageOneofCase.Panic) { - output.WriteRawTag(146, 1); + output.WriteRawTag(162, 1); output.WriteMessage(Panic); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + output.WriteRawTag(170, 1); + output.WriteMessage(PublishSipDtmf); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3733,14 +4444,17 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalMetadata); } - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + if (messageCase_ == MessageOneofCase.SetLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetLocalName); + } + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetLocalAttributes); } if (messageCase_ == MessageOneofCase.GetStats) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetStats); } if (messageCase_ == MessageOneofCase.Logs) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Logs); @@ -3751,6 +4465,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.Panic) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Panic); } + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PublishSipDtmf); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3836,17 +4553,23 @@ public void MergeFrom(FfiEvent other) { } CaptureAudioFrame.MergeFrom(other.CaptureAudioFrame); break; - case MessageOneofCase.UpdateLocalMetadata: - if (UpdateLocalMetadata == null) { - UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); + case MessageOneofCase.SetLocalMetadata: + if (SetLocalMetadata == null) { + SetLocalMetadata = new global::LiveKit.Proto.SetLocalMetadataCallback(); } - UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + SetLocalMetadata.MergeFrom(other.SetLocalMetadata); break; - case MessageOneofCase.UpdateLocalName: - if (UpdateLocalName == null) { - UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameCallback(); + case MessageOneofCase.SetLocalName: + if (SetLocalName == null) { + SetLocalName = new global::LiveKit.Proto.SetLocalNameCallback(); } - UpdateLocalName.MergeFrom(other.UpdateLocalName); + SetLocalName.MergeFrom(other.SetLocalName); + break; + case MessageOneofCase.SetLocalAttributes: + if (SetLocalAttributes == null) { + SetLocalAttributes = new global::LiveKit.Proto.SetLocalAttributesCallback(); + } + SetLocalAttributes.MergeFrom(other.SetLocalAttributes); break; case MessageOneofCase.GetStats: if (GetStats == null) { @@ -3872,6 +4595,12 @@ public void MergeFrom(FfiEvent other) { } Panic.MergeFrom(other.Panic); break; + case MessageOneofCase.PublishSipDtmf: + if (PublishSipDtmf == null) { + PublishSipDtmf = new global::LiveKit.Proto.PublishSipDtmfCallback(); + } + PublishSipDtmf.MergeFrom(other.PublishSipDtmf); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3934,7 +4663,7 @@ public void MergeFrom(pb::CodedInputStream input) { Connect = subBuilder; break; } - case 50: { + case 58: { global::LiveKit.Proto.DisconnectCallback subBuilder = new global::LiveKit.Proto.DisconnectCallback(); if (messageCase_ == MessageOneofCase.Disconnect) { subBuilder.MergeFrom(Disconnect); @@ -3943,7 +4672,7 @@ public void MergeFrom(pb::CodedInputStream input) { Disconnect = subBuilder; break; } - case 58: { + case 66: { global::LiveKit.Proto.DisposeCallback subBuilder = new global::LiveKit.Proto.DisposeCallback(); if (messageCase_ == MessageOneofCase.Dispose) { subBuilder.MergeFrom(Dispose); @@ -3952,7 +4681,7 @@ public void MergeFrom(pb::CodedInputStream input) { Dispose = subBuilder; break; } - case 66: { + case 74: { global::LiveKit.Proto.PublishTrackCallback subBuilder = new global::LiveKit.Proto.PublishTrackCallback(); if (messageCase_ == MessageOneofCase.PublishTrack) { subBuilder.MergeFrom(PublishTrack); @@ -3961,7 +4690,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTrack = subBuilder; break; } - case 74: { + case 82: { global::LiveKit.Proto.UnpublishTrackCallback subBuilder = new global::LiveKit.Proto.UnpublishTrackCallback(); if (messageCase_ == MessageOneofCase.UnpublishTrack) { subBuilder.MergeFrom(UnpublishTrack); @@ -3970,7 +4699,7 @@ public void MergeFrom(pb::CodedInputStream input) { UnpublishTrack = subBuilder; break; } - case 82: { + case 90: { global::LiveKit.Proto.PublishDataCallback subBuilder = new global::LiveKit.Proto.PublishDataCallback(); if (messageCase_ == MessageOneofCase.PublishData) { subBuilder.MergeFrom(PublishData); @@ -3979,7 +4708,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishData = subBuilder; break; } - case 90: { + case 98: { global::LiveKit.Proto.PublishTranscriptionCallback subBuilder = new global::LiveKit.Proto.PublishTranscriptionCallback(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -3988,7 +4717,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.CaptureAudioFrameCallback subBuilder = new global::LiveKit.Proto.CaptureAudioFrameCallback(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -3997,25 +4726,34 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 106: { - global::LiveKit.Proto.UpdateLocalMetadataCallback subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + case 114: { + global::LiveKit.Proto.SetLocalMetadataCallback subBuilder = new global::LiveKit.Proto.SetLocalMetadataCallback(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } - case 114: { - global::LiveKit.Proto.UpdateLocalNameCallback subBuilder = new global::LiveKit.Proto.UpdateLocalNameCallback(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + case 122: { + global::LiveKit.Proto.SetLocalNameCallback subBuilder = new global::LiveKit.Proto.SetLocalNameCallback(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } - case 122: { + case 130: { + global::LiveKit.Proto.SetLocalAttributesCallback subBuilder = new global::LiveKit.Proto.SetLocalAttributesCallback(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 138: { global::LiveKit.Proto.GetStatsCallback subBuilder = new global::LiveKit.Proto.GetStatsCallback(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -4024,7 +4762,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 146: { global::LiveKit.Proto.LogBatch subBuilder = new global::LiveKit.Proto.LogBatch(); if (messageCase_ == MessageOneofCase.Logs) { subBuilder.MergeFrom(Logs); @@ -4033,7 +4771,7 @@ public void MergeFrom(pb::CodedInputStream input) { Logs = subBuilder; break; } - case 138: { + case 154: { global::LiveKit.Proto.GetSessionStatsCallback subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -4042,7 +4780,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 146: { + case 162: { global::LiveKit.Proto.Panic subBuilder = new global::LiveKit.Proto.Panic(); if (messageCase_ == MessageOneofCase.Panic) { subBuilder.MergeFrom(Panic); @@ -4051,6 +4789,15 @@ public void MergeFrom(pb::CodedInputStream input) { Panic = subBuilder; break; } + case 170: { + global::LiveKit.Proto.PublishSipDtmfCallback subBuilder = new global::LiveKit.Proto.PublishSipDtmfCallback(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } } } #endif @@ -4111,7 +4858,7 @@ public void MergeFrom(pb::CodedInputStream input) { Connect = subBuilder; break; } - case 50: { + case 58: { global::LiveKit.Proto.DisconnectCallback subBuilder = new global::LiveKit.Proto.DisconnectCallback(); if (messageCase_ == MessageOneofCase.Disconnect) { subBuilder.MergeFrom(Disconnect); @@ -4120,7 +4867,7 @@ public void MergeFrom(pb::CodedInputStream input) { Disconnect = subBuilder; break; } - case 58: { + case 66: { global::LiveKit.Proto.DisposeCallback subBuilder = new global::LiveKit.Proto.DisposeCallback(); if (messageCase_ == MessageOneofCase.Dispose) { subBuilder.MergeFrom(Dispose); @@ -4129,7 +4876,7 @@ public void MergeFrom(pb::CodedInputStream input) { Dispose = subBuilder; break; } - case 66: { + case 74: { global::LiveKit.Proto.PublishTrackCallback subBuilder = new global::LiveKit.Proto.PublishTrackCallback(); if (messageCase_ == MessageOneofCase.PublishTrack) { subBuilder.MergeFrom(PublishTrack); @@ -4138,7 +4885,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTrack = subBuilder; break; } - case 74: { + case 82: { global::LiveKit.Proto.UnpublishTrackCallback subBuilder = new global::LiveKit.Proto.UnpublishTrackCallback(); if (messageCase_ == MessageOneofCase.UnpublishTrack) { subBuilder.MergeFrom(UnpublishTrack); @@ -4147,7 +4894,7 @@ public void MergeFrom(pb::CodedInputStream input) { UnpublishTrack = subBuilder; break; } - case 82: { + case 90: { global::LiveKit.Proto.PublishDataCallback subBuilder = new global::LiveKit.Proto.PublishDataCallback(); if (messageCase_ == MessageOneofCase.PublishData) { subBuilder.MergeFrom(PublishData); @@ -4156,7 +4903,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishData = subBuilder; break; } - case 90: { + case 98: { global::LiveKit.Proto.PublishTranscriptionCallback subBuilder = new global::LiveKit.Proto.PublishTranscriptionCallback(); if (messageCase_ == MessageOneofCase.PublishTranscription) { subBuilder.MergeFrom(PublishTranscription); @@ -4165,7 +4912,7 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTranscription = subBuilder; break; } - case 98: { + case 106: { global::LiveKit.Proto.CaptureAudioFrameCallback subBuilder = new global::LiveKit.Proto.CaptureAudioFrameCallback(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -4174,25 +4921,34 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 106: { - global::LiveKit.Proto.UpdateLocalMetadataCallback subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); - if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { - subBuilder.MergeFrom(UpdateLocalMetadata); + case 114: { + global::LiveKit.Proto.SetLocalMetadataCallback subBuilder = new global::LiveKit.Proto.SetLocalMetadataCallback(); + if (messageCase_ == MessageOneofCase.SetLocalMetadata) { + subBuilder.MergeFrom(SetLocalMetadata); } input.ReadMessage(subBuilder); - UpdateLocalMetadata = subBuilder; + SetLocalMetadata = subBuilder; break; } - case 114: { - global::LiveKit.Proto.UpdateLocalNameCallback subBuilder = new global::LiveKit.Proto.UpdateLocalNameCallback(); - if (messageCase_ == MessageOneofCase.UpdateLocalName) { - subBuilder.MergeFrom(UpdateLocalName); + case 122: { + global::LiveKit.Proto.SetLocalNameCallback subBuilder = new global::LiveKit.Proto.SetLocalNameCallback(); + if (messageCase_ == MessageOneofCase.SetLocalName) { + subBuilder.MergeFrom(SetLocalName); } input.ReadMessage(subBuilder); - UpdateLocalName = subBuilder; + SetLocalName = subBuilder; break; } - case 122: { + case 130: { + global::LiveKit.Proto.SetLocalAttributesCallback subBuilder = new global::LiveKit.Proto.SetLocalAttributesCallback(); + if (messageCase_ == MessageOneofCase.SetLocalAttributes) { + subBuilder.MergeFrom(SetLocalAttributes); + } + input.ReadMessage(subBuilder); + SetLocalAttributes = subBuilder; + break; + } + case 138: { global::LiveKit.Proto.GetStatsCallback subBuilder = new global::LiveKit.Proto.GetStatsCallback(); if (messageCase_ == MessageOneofCase.GetStats) { subBuilder.MergeFrom(GetStats); @@ -4201,7 +4957,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetStats = subBuilder; break; } - case 130: { + case 146: { global::LiveKit.Proto.LogBatch subBuilder = new global::LiveKit.Proto.LogBatch(); if (messageCase_ == MessageOneofCase.Logs) { subBuilder.MergeFrom(Logs); @@ -4210,7 +4966,7 @@ public void MergeFrom(pb::CodedInputStream input) { Logs = subBuilder; break; } - case 138: { + case 154: { global::LiveKit.Proto.GetSessionStatsCallback subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback(); if (messageCase_ == MessageOneofCase.GetSessionStats) { subBuilder.MergeFrom(GetSessionStats); @@ -4219,7 +4975,7 @@ public void MergeFrom(pb::CodedInputStream input) { GetSessionStats = subBuilder; break; } - case 146: { + case 162: { global::LiveKit.Proto.Panic subBuilder = new global::LiveKit.Proto.Panic(); if (messageCase_ == MessageOneofCase.Panic) { subBuilder.MergeFrom(Panic); @@ -4228,6 +4984,15 @@ public void MergeFrom(pb::CodedInputStream input) { Panic = subBuilder; break; } + case 170: { + global::LiveKit.Proto.PublishSipDtmfCallback subBuilder = new global::LiveKit.Proto.PublishSipDtmfCallback(); + if (messageCase_ == MessageOneofCase.PublishSipDtmf) { + subBuilder.MergeFrom(PublishSipDtmf); + } + input.ReadMessage(subBuilder); + PublishSipDtmf = subBuilder; + break; + } } } } diff --git a/Runtime/Scripts/Proto/Participant.cs b/Runtime/Scripts/Proto/Participant.cs index 15c3001..a2c5f54 100644 --- a/Runtime/Scripts/Proto/Participant.cs +++ b/Runtime/Scripts/Proto/Participant.cs @@ -25,15 +25,18 @@ static ParticipantReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", - "b3RvIlAKD1BhcnRpY2lwYW50SW5mbxILCgNzaWQYASABKAkSDAoEbmFtZRgC", - "IAEoCRIQCghpZGVudGl0eRgDIAEoCRIQCghtZXRhZGF0YRgEIAEoCSJvChBP", - "d25lZFBhcnRpY2lwYW50Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJv", - "dG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQucHJv", - "dG8uUGFydGljaXBhbnRJbmZvQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); + "b3RvIscBCg9QYXJ0aWNpcGFudEluZm8SCwoDc2lkGAEgASgJEgwKBG5hbWUY", + "AiABKAkSEAoIaWRlbnRpdHkYAyABKAkSEAoIbWV0YWRhdGEYBCABKAkSQgoK", + "YXR0cmlidXRlcxgFIAMoCzIuLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRJ", + "bmZvLkF0dHJpYnV0ZXNFbnRyeRoxCg9BdHRyaWJ1dGVzRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJvChBPd25lZFBhcnRpY2lwYW50", + "Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k", + "bGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRJ", + "bmZvQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantInfo), global::LiveKit.Proto.ParticipantInfo.Parser, new[]{ "Sid", "Name", "Identity", "Metadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantInfo), global::LiveKit.Proto.ParticipantInfo.Parser, new[]{ "Sid", "Name", "Identity", "Metadata", "Attributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedParticipant), global::LiveKit.Proto.OwnedParticipant.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } @@ -80,6 +83,7 @@ public ParticipantInfo(ParticipantInfo other) : this() { name_ = other.name_; identity_ = other.identity_; metadata_ = other.metadata_; + attributes_ = other.attributes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -137,6 +141,17 @@ public string Metadata { } } + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_attributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField attributes_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Attributes { + get { return attributes_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -156,6 +171,7 @@ public bool Equals(ParticipantInfo other) { if (Name != other.Name) return false; if (Identity != other.Identity) return false; if (Metadata != other.Metadata) return false; + if (!Attributes.Equals(other.Attributes)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -167,6 +183,7 @@ public override int GetHashCode() { if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Identity.Length != 0) hash ^= Identity.GetHashCode(); if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + hash ^= Attributes.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -201,6 +218,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Metadata); } + attributes_.WriteTo(output, _map_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -227,6 +245,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Metadata); } + attributes_.WriteTo(ref output, _map_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -249,6 +268,7 @@ public int CalculateSize() { if (Metadata.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } + size += attributes_.CalculateSize(_map_attributes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -273,6 +293,7 @@ public void MergeFrom(ParticipantInfo other) { if (other.Metadata.Length != 0) { Metadata = other.Metadata; } + attributes_.MergeFrom(other.attributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -304,6 +325,10 @@ public void MergeFrom(pb::CodedInputStream input) { Metadata = input.ReadString(); break; } + case 42: { + attributes_.AddEntriesFrom(input, _map_attributes_codec); + break; + } } } #endif @@ -335,6 +360,10 @@ public void MergeFrom(pb::CodedInputStream input) { Metadata = input.ReadString(); break; } + case 42: { + attributes_.AddEntriesFrom(ref input, _map_attributes_codec); + break; + } } } } diff --git a/Runtime/Scripts/Proto/Room.cs b/Runtime/Scripts/Proto/Room.cs index 255cc0b..5a90a2e 100644 --- a/Runtime/Scripts/Proto/Room.cs +++ b/Runtime/Scripts/Proto/Room.cs @@ -66,139 +66,177 @@ static RoomReflection() { "aW9uU2VnbWVudCIwChxQdWJsaXNoVHJhbnNjcmlwdGlvblJlc3BvbnNlEhAK", "CGFzeW5jX2lkGAEgASgEIk4KHFB1Ymxpc2hUcmFuc2NyaXB0aW9uQ2FsbGJh", "Y2sSEAoIYXN5bmNfaWQYASABKAQSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZf", - "ZXJyb3IiUAoaVXBkYXRlTG9jYWxNZXRhZGF0YVJlcXVlc3QSIAoYbG9jYWxf", - "cGFydGljaXBhbnRfaGFuZGxlGAEgASgEEhAKCG1ldGFkYXRhGAIgASgJIi8K", - "G1VwZGF0ZUxvY2FsTWV0YWRhdGFSZXNwb25zZRIQCghhc3luY19pZBgBIAEo", - "BCIvChtVcGRhdGVMb2NhbE1ldGFkYXRhQ2FsbGJhY2sSEAoIYXN5bmNfaWQY", - "ASABKAQiSAoWVXBkYXRlTG9jYWxOYW1lUmVxdWVzdBIgChhsb2NhbF9wYXJ0", - "aWNpcGFudF9oYW5kbGUYASABKAQSDAoEbmFtZRgCIAEoCSIrChdVcGRhdGVM", - "b2NhbE5hbWVSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCIrChdVcGRhdGVM", - "b2NhbE5hbWVDYWxsYmFjaxIQCghhc3luY19pZBgBIAEoBCJFChRTZXRTdWJz", - "Y3JpYmVkUmVxdWVzdBIRCglzdWJzY3JpYmUYASABKAgSGgoScHVibGljYXRp", - "b25faGFuZGxlGAIgASgEIhcKFVNldFN1YnNjcmliZWRSZXNwb25zZSItChZH", - "ZXRTZXNzaW9uU3RhdHNSZXF1ZXN0EhMKC3Jvb21faGFuZGxlGAEgASgEIisK", - "F0dldFNlc3Npb25TdGF0c1Jlc3BvbnNlEhAKCGFzeW5jX2lkGAEgASgEIq4B", - "ChdHZXRTZXNzaW9uU3RhdHNDYWxsYmFjaxIQCghhc3luY19pZBgBIAEoBBIS", - "CgVlcnJvchgCIAEoCUgAiAEBEjAKD3B1Ymxpc2hlcl9zdGF0cxgDIAMoCzIX", - "LmxpdmVraXQucHJvdG8uUnRjU3RhdHMSMQoQc3Vic2NyaWJlcl9zdGF0cxgE", - "IAMoCzIXLmxpdmVraXQucHJvdG8uUnRjU3RhdHNCCAoGX2Vycm9yIjsKDVZp", - "ZGVvRW5jb2RpbmcSEwoLbWF4X2JpdHJhdGUYASABKAQSFQoNbWF4X2ZyYW1l", - "cmF0ZRgCIAEoASIkCg1BdWRpb0VuY29kaW5nEhMKC21heF9iaXRyYXRlGAEg", - "ASgEIooCChNUcmFja1B1Ymxpc2hPcHRpb25zEjQKDnZpZGVvX2VuY29kaW5n", - "GAEgASgLMhwubGl2ZWtpdC5wcm90by5WaWRlb0VuY29kaW5nEjQKDmF1ZGlv", - "X2VuY29kaW5nGAIgASgLMhwubGl2ZWtpdC5wcm90by5BdWRpb0VuY29kaW5n", - "Ei4KC3ZpZGVvX2NvZGVjGAMgASgOMhkubGl2ZWtpdC5wcm90by5WaWRlb0Nv", - "ZGVjEgsKA2R0eBgEIAEoCBILCgNyZWQYBSABKAgSEQoJc2ltdWxjYXN0GAYg", - "ASgIEioKBnNvdXJjZRgHIAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tTb3Vy", - "Y2UiPQoJSWNlU2VydmVyEgwKBHVybHMYASADKAkSEAoIdXNlcm5hbWUYAiAB", - "KAkSEAoIcGFzc3dvcmQYAyABKAkihAIKCVJ0Y0NvbmZpZxJAChJpY2VfdHJh", - "bnNwb3J0X3R5cGUYASABKA4yHy5saXZla2l0LnByb3RvLkljZVRyYW5zcG9y", - "dFR5cGVIAIgBARJQChpjb250aW51YWxfZ2F0aGVyaW5nX3BvbGljeRgCIAEo", - "DjInLmxpdmVraXQucHJvdG8uQ29udGludWFsR2F0aGVyaW5nUG9saWN5SAGI", - "AQESLQoLaWNlX3NlcnZlcnMYAyADKAsyGC5saXZla2l0LnByb3RvLkljZVNl", - "cnZlckIVChNfaWNlX3RyYW5zcG9ydF90eXBlQh0KG19jb250aW51YWxfZ2F0", - "aGVyaW5nX3BvbGljeSLgAQoLUm9vbU9wdGlvbnMSFgoOYXV0b19zdWJzY3Jp", - "YmUYASABKAgSFwoPYWRhcHRpdmVfc3RyZWFtGAIgASgIEhAKCGR5bmFjYXN0", - "GAMgASgIEi0KBGUyZWUYBCABKAsyGi5saXZla2l0LnByb3RvLkUyZWVPcHRp", - "b25zSACIAQESMQoKcnRjX2NvbmZpZxgFIAEoCzIYLmxpdmVraXQucHJvdG8u", - "UnRjQ29uZmlnSAGIAQESFAoMam9pbl9yZXRyaWVzGAYgASgNQgcKBV9lMmVl", - "Qg0KC19ydGNfY29uZmlnIncKFFRyYW5zY3JpcHRpb25TZWdtZW50EgoKAmlk", - "GAEgASgJEgwKBHRleHQYAiABKAkSEgoKc3RhcnRfdGltZRgDIAEoBBIQCghl", - "bmRfdGltZRgEIAEoBBINCgVmaW5hbBgFIAEoCBIQCghsYW5ndWFnZRgGIAEo", - "CSIwCgpCdWZmZXJJbmZvEhAKCGRhdGFfcHRyGAEgASgEEhAKCGRhdGFfbGVu", - "GAIgASgEImUKC093bmVkQnVmZmVyEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVr", - "aXQucHJvdG8uRmZpT3duZWRIYW5kbGUSJwoEZGF0YRgCIAEoCzIZLmxpdmVr", - "aXQucHJvdG8uQnVmZmVySW5mbyK7DAoJUm9vbUV2ZW50EhMKC3Jvb21faGFu", - "ZGxlGAEgASgEEkQKFXBhcnRpY2lwYW50X2Nvbm5lY3RlZBgCIAEoCzIjLmxp", - "dmVraXQucHJvdG8uUGFydGljaXBhbnRDb25uZWN0ZWRIABJKChhwYXJ0aWNp", - "cGFudF9kaXNjb25uZWN0ZWQYAyABKAsyJi5saXZla2l0LnByb3RvLlBhcnRp", - "Y2lwYW50RGlzY29ubmVjdGVkSAASQwoVbG9jYWxfdHJhY2tfcHVibGlzaGVk", - "GAQgASgLMiIubGl2ZWtpdC5wcm90by5Mb2NhbFRyYWNrUHVibGlzaGVkSAAS", - "RwoXbG9jYWxfdHJhY2tfdW5wdWJsaXNoZWQYBSABKAsyJC5saXZla2l0LnBy", - "b3RvLkxvY2FsVHJhY2tVbnB1Ymxpc2hlZEgAEjgKD3RyYWNrX3B1Ymxpc2hl", - "ZBgGIAEoCzIdLmxpdmVraXQucHJvdG8uVHJhY2tQdWJsaXNoZWRIABI8ChF0", - "cmFja191bnB1Ymxpc2hlZBgHIAEoCzIfLmxpdmVraXQucHJvdG8uVHJhY2tV", - "bnB1Ymxpc2hlZEgAEjoKEHRyYWNrX3N1YnNjcmliZWQYCCABKAsyHi5saXZl", - "a2l0LnByb3RvLlRyYWNrU3Vic2NyaWJlZEgAEj4KEnRyYWNrX3Vuc3Vic2Ny", - "aWJlZBgJIAEoCzIgLmxpdmVraXQucHJvdG8uVHJhY2tVbnN1YnNjcmliZWRI", - "ABJLChl0cmFja19zdWJzY3JpcHRpb25fZmFpbGVkGAogASgLMiYubGl2ZWtp", - "dC5wcm90by5UcmFja1N1YnNjcmlwdGlvbkZhaWxlZEgAEjAKC3RyYWNrX211", - "dGVkGAsgASgLMhkubGl2ZWtpdC5wcm90by5UcmFja011dGVkSAASNAoNdHJh", - "Y2tfdW5tdXRlZBgMIAEoCzIbLmxpdmVraXQucHJvdG8uVHJhY2tVbm11dGVk", - "SAASRwoXYWN0aXZlX3NwZWFrZXJzX2NoYW5nZWQYDSABKAsyJC5saXZla2l0", - "LnByb3RvLkFjdGl2ZVNwZWFrZXJzQ2hhbmdlZEgAEkMKFXJvb21fbWV0YWRh", - "dGFfY2hhbmdlZBgOIAEoCzIiLmxpdmVraXQucHJvdG8uUm9vbU1ldGFkYXRh", - "Q2hhbmdlZEgAEjkKEHJvb21fc2lkX2NoYW5nZWQYDyABKAsyHS5saXZla2l0", - "LnByb3RvLlJvb21TaWRDaGFuZ2VkSAASUQoccGFydGljaXBhbnRfbWV0YWRh", - "dGFfY2hhbmdlZBgQIAEoCzIpLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRN", - "ZXRhZGF0YUNoYW5nZWRIABJJChhwYXJ0aWNpcGFudF9uYW1lX2NoYW5nZWQY", - "ESABKAsyJS5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50TmFtZUNoYW5nZWRI", - "ABJNChpjb25uZWN0aW9uX3F1YWxpdHlfY2hhbmdlZBgSIAEoCzInLmxpdmVr", - "aXQucHJvdG8uQ29ubmVjdGlvblF1YWxpdHlDaGFuZ2VkSAASSQoYY29ubmVj", - "dGlvbl9zdGF0ZV9jaGFuZ2VkGBMgASgLMiUubGl2ZWtpdC5wcm90by5Db25u", - "ZWN0aW9uU3RhdGVDaGFuZ2VkSAASMwoMZGlzY29ubmVjdGVkGBUgASgLMhsu", - "bGl2ZWtpdC5wcm90by5EaXNjb25uZWN0ZWRIABIzCgxyZWNvbm5lY3RpbmcY", - "FiABKAsyGy5saXZla2l0LnByb3RvLlJlY29ubmVjdGluZ0gAEjEKC3JlY29u", - "bmVjdGVkGBcgASgLMhoubGl2ZWtpdC5wcm90by5SZWNvbm5lY3RlZEgAEj0K", - "EmUyZWVfc3RhdGVfY2hhbmdlZBgYIAEoCzIfLmxpdmVraXQucHJvdG8uRTJl", - "ZVN0YXRlQ2hhbmdlZEgAEiUKA2VvcxgZIAEoCzIWLmxpdmVraXQucHJvdG8u", - "Um9vbUVPU0gAEkEKFGRhdGFfcGFja2V0X3JlY2VpdmVkGBogASgLMiEubGl2", - "ZWtpdC5wcm90by5EYXRhUGFja2V0UmVjZWl2ZWRIAEIJCgdtZXNzYWdlIjcK", - "CFJvb21JbmZvEgsKA3NpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhAKCG1ldGFk", - "YXRhGAMgASgJImEKCU93bmVkUm9vbRItCgZoYW5kbGUYASABKAsyHS5saXZl", - "a2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiUKBGluZm8YAiABKAsyFy5saXZl", - "a2l0LnByb3RvLlJvb21JbmZvIkUKFFBhcnRpY2lwYW50Q29ubmVjdGVkEi0K", - "BGluZm8YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBhbnQi", - "MgoXUGFydGljaXBhbnREaXNjb25uZWN0ZWQSFwoPcGFydGljaXBhbnRfc2lk", - "GAEgASgJIigKE0xvY2FsVHJhY2tQdWJsaXNoZWQSEQoJdHJhY2tfc2lkGAEg", - "ASgJIjAKFUxvY2FsVHJhY2tVbnB1Ymxpc2hlZBIXCg9wdWJsaWNhdGlvbl9z", - "aWQYASABKAkiZAoOVHJhY2tQdWJsaXNoZWQSFwoPcGFydGljaXBhbnRfc2lk", - "GAEgASgJEjkKC3B1YmxpY2F0aW9uGAIgASgLMiQubGl2ZWtpdC5wcm90by5P", - "d25lZFRyYWNrUHVibGljYXRpb24iRAoQVHJhY2tVbnB1Ymxpc2hlZBIXCg9w", - "YXJ0aWNpcGFudF9zaWQYASABKAkSFwoPcHVibGljYXRpb25fc2lkGAIgASgJ", - "IlQKD1RyYWNrU3Vic2NyaWJlZBIXCg9wYXJ0aWNpcGFudF9zaWQYASABKAkS", - "KAoFdHJhY2sYAiABKAsyGS5saXZla2l0LnByb3RvLk93bmVkVHJhY2siPwoR", - "VHJhY2tVbnN1YnNjcmliZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJEhEK", - "CXRyYWNrX3NpZBgCIAEoCSJUChdUcmFja1N1YnNjcmlwdGlvbkZhaWxlZBIX", - "Cg9wYXJ0aWNpcGFudF9zaWQYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJEg0K", - "BWVycm9yGAMgASgJIjgKClRyYWNrTXV0ZWQSFwoPcGFydGljaXBhbnRfc2lk", - "GAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCSI6CgxUcmFja1VubXV0ZWQSFwoP", - "cGFydGljaXBhbnRfc2lkGAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCSJaChBF", - "MmVlU3RhdGVDaGFuZ2VkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEoCRItCgVz", - "dGF0ZRgCIAEoDjIeLmxpdmVraXQucHJvdG8uRW5jcnlwdGlvblN0YXRlIjEK", - "FUFjdGl2ZVNwZWFrZXJzQ2hhbmdlZBIYChBwYXJ0aWNpcGFudF9zaWRzGAEg", - "AygJIicKE1Jvb21NZXRhZGF0YUNoYW5nZWQSEAoIbWV0YWRhdGEYASABKAki", - "HQoOUm9vbVNpZENoYW5nZWQSCwoDc2lkGAEgASgJIkcKGlBhcnRpY2lwYW50", - "TWV0YWRhdGFDaGFuZ2VkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEoCRIQCght", - "ZXRhZGF0YRgCIAEoCSI/ChZQYXJ0aWNpcGFudE5hbWVDaGFuZ2VkEhcKD3Bh", - "cnRpY2lwYW50X3NpZBgBIAEoCRIMCgRuYW1lGAIgASgJImYKGENvbm5lY3Rp", - "b25RdWFsaXR5Q2hhbmdlZBIXCg9wYXJ0aWNpcGFudF9zaWQYASABKAkSMQoH", - "cXVhbGl0eRgCIAEoDjIgLmxpdmVraXQucHJvdG8uQ29ubmVjdGlvblF1YWxp", - "dHkiVAoKVXNlclBhY2tldBIoCgRkYXRhGAEgASgLMhoubGl2ZWtpdC5wcm90", - "by5Pd25lZEJ1ZmZlchISCgV0b3BpYxgCIAEoCUgAiAEBQggKBl90b3BpYyI1", - "CgdTaXBEVE1GEgwKBGNvZGUYASABKA0SEgoFZGlnaXQYAiABKAlIAIgBAUII", - "CgZfZGlnaXQi9QEKEkRhdGFQYWNrZXRSZWNlaXZlZBIrCgRraW5kGAEgASgO", - "Mh0ubGl2ZWtpdC5wcm90by5EYXRhUGFja2V0S2luZBIcChRwYXJ0aWNpcGFu", - "dF9pZGVudGl0eRgCIAEoCRIgCg9wYXJ0aWNpcGFudF9zaWQYAyABKAlCAhgB", - "SAGIAQESKQoEdXNlchgEIAEoCzIZLmxpdmVraXQucHJvdG8uVXNlclBhY2tl", - "dEgAEioKCHNpcF9kdG1mGAUgASgLMhYubGl2ZWtpdC5wcm90by5TaXBEVE1G", - "SABCBwoFdmFsdWVCEgoQX3BhcnRpY2lwYW50X3NpZCJHChZDb25uZWN0aW9u", - "U3RhdGVDaGFuZ2VkEi0KBXN0YXRlGAEgASgOMh4ubGl2ZWtpdC5wcm90by5D", - "b25uZWN0aW9uU3RhdGUiCwoJQ29ubmVjdGVkIg4KDERpc2Nvbm5lY3RlZCIO", - "CgxSZWNvbm5lY3RpbmciDQoLUmVjb25uZWN0ZWQiCQoHUm9vbUVPUypQChBJ", - "Y2VUcmFuc3BvcnRUeXBlEhMKD1RSQU5TUE9SVF9SRUxBWRAAEhQKEFRSQU5T", - "UE9SVF9OT0hPU1QQARIRCg1UUkFOU1BPUlRfQUxMEAIqQwoYQ29udGludWFs", - "R2F0aGVyaW5nUG9saWN5Eg8KC0dBVEhFUl9PTkNFEAASFgoSR0FUSEVSX0NP", - "TlRJTlVBTExZEAEqYAoRQ29ubmVjdGlvblF1YWxpdHkSEAoMUVVBTElUWV9Q", - "T09SEAASEAoMUVVBTElUWV9HT09EEAESFQoRUVVBTElUWV9FWENFTExFTlQQ", - "AhIQCgxRVUFMSVRZX0xPU1QQAypTCg9Db25uZWN0aW9uU3RhdGUSFQoRQ09O", - "Tl9ESVNDT05ORUNURUQQABISCg5DT05OX0NPTk5FQ1RFRBABEhUKEUNPTk5f", - "UkVDT05ORUNUSU5HEAIqMwoORGF0YVBhY2tldEtpbmQSDgoKS0lORF9MT1NT", - "WRAAEhEKDUtJTkRfUkVMSUFCTEUQAUIQqgINTGl2ZUtpdC5Qcm90b2IGcHJv", - "dG8z")); + "ZXJyb3IidgoVUHVibGlzaFNpcER0bWZSZXF1ZXN0EiAKGGxvY2FsX3BhcnRp", + "Y2lwYW50X2hhbmRsZRgBIAEoBBIMCgRjb2RlGAIgASgNEg0KBWRpZ2l0GAMg", + "ASgJEh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYBCADKAkiKgoWUHVibGlz", + "aFNpcER0bWZSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJIChZQdWJsaXNo", + "U2lwRHRtZkNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIg", + "ASgJSACIAQFCCAoGX2Vycm9yIk0KF1NldExvY2FsTWV0YWRhdGFSZXF1ZXN0", + "EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAEoBBIQCghtZXRhZGF0", + "YRgCIAEoCSIsChhTZXRMb2NhbE1ldGFkYXRhUmVzcG9uc2USEAoIYXN5bmNf", + "aWQYASABKAQiSgoYU2V0TG9jYWxNZXRhZGF0YUNhbGxiYWNrEhAKCGFzeW5j", + "X2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQFCCAoGX2Vycm9yIr4BChlT", + "ZXRMb2NhbEF0dHJpYnV0ZXNSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50", + "X2hhbmRsZRgBIAEoBBJMCgphdHRyaWJ1dGVzGAIgAygLMjgubGl2ZWtpdC5w", + "cm90by5TZXRMb2NhbEF0dHJpYnV0ZXNSZXF1ZXN0LkF0dHJpYnV0ZXNFbnRy", + "eRoxCg9BdHRyaWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", + "ASgJOgI4ASIuChpTZXRMb2NhbEF0dHJpYnV0ZXNSZXNwb25zZRIQCghhc3lu", + "Y19pZBgBIAEoBCJMChpTZXRMb2NhbEF0dHJpYnV0ZXNDYWxsYmFjaxIQCghh", + "c3luY19pZBgBIAEoBBISCgVlcnJvchgCIAEoCUgAiAEBQggKBl9lcnJvciJF", + "ChNTZXRMb2NhbE5hbWVSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hh", + "bmRsZRgBIAEoBBIMCgRuYW1lGAIgASgJIigKFFNldExvY2FsTmFtZVJlc3Bv", + "bnNlEhAKCGFzeW5jX2lkGAEgASgEIkYKFFNldExvY2FsTmFtZUNhbGxiYWNr", + "EhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQFCCAoGX2Vy", + "cm9yIkUKFFNldFN1YnNjcmliZWRSZXF1ZXN0EhEKCXN1YnNjcmliZRgBIAEo", + "CBIaChJwdWJsaWNhdGlvbl9oYW5kbGUYAiABKAQiFwoVU2V0U3Vic2NyaWJl", + "ZFJlc3BvbnNlIi0KFkdldFNlc3Npb25TdGF0c1JlcXVlc3QSEwoLcm9vbV9o", + "YW5kbGUYASABKAQiKwoXR2V0U2Vzc2lvblN0YXRzUmVzcG9uc2USEAoIYXN5", + "bmNfaWQYASABKAQirgEKF0dldFNlc3Npb25TdGF0c0NhbGxiYWNrEhAKCGFz", + "eW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQESMAoPcHVibGlzaGVy", + "X3N0YXRzGAMgAygLMhcubGl2ZWtpdC5wcm90by5SdGNTdGF0cxIxChBzdWJz", + "Y3JpYmVyX3N0YXRzGAQgAygLMhcubGl2ZWtpdC5wcm90by5SdGNTdGF0c0II", + "CgZfZXJyb3IiOwoNVmlkZW9FbmNvZGluZxITCgttYXhfYml0cmF0ZRgBIAEo", + "BBIVCg1tYXhfZnJhbWVyYXRlGAIgASgBIiQKDUF1ZGlvRW5jb2RpbmcSEwoL", + "bWF4X2JpdHJhdGUYASABKAQimgIKE1RyYWNrUHVibGlzaE9wdGlvbnMSNAoO", + "dmlkZW9fZW5jb2RpbmcYASABKAsyHC5saXZla2l0LnByb3RvLlZpZGVvRW5j", + "b2RpbmcSNAoOYXVkaW9fZW5jb2RpbmcYAiABKAsyHC5saXZla2l0LnByb3Rv", + "LkF1ZGlvRW5jb2RpbmcSLgoLdmlkZW9fY29kZWMYAyABKA4yGS5saXZla2l0", + "LnByb3RvLlZpZGVvQ29kZWMSCwoDZHR4GAQgASgIEgsKA3JlZBgFIAEoCBIR", + "CglzaW11bGNhc3QYBiABKAgSKgoGc291cmNlGAcgASgOMhoubGl2ZWtpdC5w", + "cm90by5UcmFja1NvdXJjZRIOCgZzdHJlYW0YCCABKAkiPQoJSWNlU2VydmVy", + "EgwKBHVybHMYASADKAkSEAoIdXNlcm5hbWUYAiABKAkSEAoIcGFzc3dvcmQY", + "AyABKAkihAIKCVJ0Y0NvbmZpZxJAChJpY2VfdHJhbnNwb3J0X3R5cGUYASAB", + "KA4yHy5saXZla2l0LnByb3RvLkljZVRyYW5zcG9ydFR5cGVIAIgBARJQChpj", + "b250aW51YWxfZ2F0aGVyaW5nX3BvbGljeRgCIAEoDjInLmxpdmVraXQucHJv", + "dG8uQ29udGludWFsR2F0aGVyaW5nUG9saWN5SAGIAQESLQoLaWNlX3NlcnZl", + "cnMYAyADKAsyGC5saXZla2l0LnByb3RvLkljZVNlcnZlckIVChNfaWNlX3Ry", + "YW5zcG9ydF90eXBlQh0KG19jb250aW51YWxfZ2F0aGVyaW5nX3BvbGljeSLg", + "AQoLUm9vbU9wdGlvbnMSFgoOYXV0b19zdWJzY3JpYmUYASABKAgSFwoPYWRh", + "cHRpdmVfc3RyZWFtGAIgASgIEhAKCGR5bmFjYXN0GAMgASgIEi0KBGUyZWUY", + "BCABKAsyGi5saXZla2l0LnByb3RvLkUyZWVPcHRpb25zSACIAQESMQoKcnRj", + "X2NvbmZpZxgFIAEoCzIYLmxpdmVraXQucHJvdG8uUnRjQ29uZmlnSAGIAQES", + "FAoMam9pbl9yZXRyaWVzGAYgASgNQgcKBV9lMmVlQg0KC19ydGNfY29uZmln", + "IncKFFRyYW5zY3JpcHRpb25TZWdtZW50EgoKAmlkGAEgASgJEgwKBHRleHQY", + "AiABKAkSEgoKc3RhcnRfdGltZRgDIAEoBBIQCghlbmRfdGltZRgEIAEoBBIN", + "CgVmaW5hbBgFIAEoCBIQCghsYW5ndWFnZRgGIAEoCSIwCgpCdWZmZXJJbmZv", + "EhAKCGRhdGFfcHRyGAEgASgEEhAKCGRhdGFfbGVuGAIgASgEImUKC093bmVk", + "QnVmZmVyEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3du", + "ZWRIYW5kbGUSJwoEZGF0YRgCIAEoCzIZLmxpdmVraXQucHJvdG8uQnVmZmVy", + "SW5mbyKhDgoJUm9vbUV2ZW50EhMKC3Jvb21faGFuZGxlGAEgASgEEkQKFXBh", + "cnRpY2lwYW50X2Nvbm5lY3RlZBgCIAEoCzIjLmxpdmVraXQucHJvdG8uUGFy", + "dGljaXBhbnRDb25uZWN0ZWRIABJKChhwYXJ0aWNpcGFudF9kaXNjb25uZWN0", + "ZWQYAyABKAsyJi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50RGlzY29ubmVj", + "dGVkSAASQwoVbG9jYWxfdHJhY2tfcHVibGlzaGVkGAQgASgLMiIubGl2ZWtp", + "dC5wcm90by5Mb2NhbFRyYWNrUHVibGlzaGVkSAASRwoXbG9jYWxfdHJhY2tf", + "dW5wdWJsaXNoZWQYBSABKAsyJC5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tV", + "bnB1Ymxpc2hlZEgAEkUKFmxvY2FsX3RyYWNrX3N1YnNjcmliZWQYBiABKAsy", + "Iy5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tTdWJzY3JpYmVkSAASOAoPdHJh", + "Y2tfcHVibGlzaGVkGAcgASgLMh0ubGl2ZWtpdC5wcm90by5UcmFja1B1Ymxp", + "c2hlZEgAEjwKEXRyYWNrX3VucHVibGlzaGVkGAggASgLMh8ubGl2ZWtpdC5w", + "cm90by5UcmFja1VucHVibGlzaGVkSAASOgoQdHJhY2tfc3Vic2NyaWJlZBgJ", + "IAEoCzIeLmxpdmVraXQucHJvdG8uVHJhY2tTdWJzY3JpYmVkSAASPgoSdHJh", + "Y2tfdW5zdWJzY3JpYmVkGAogASgLMiAubGl2ZWtpdC5wcm90by5UcmFja1Vu", + "c3Vic2NyaWJlZEgAEksKGXRyYWNrX3N1YnNjcmlwdGlvbl9mYWlsZWQYCyAB", + "KAsyJi5saXZla2l0LnByb3RvLlRyYWNrU3Vic2NyaXB0aW9uRmFpbGVkSAAS", + "MAoLdHJhY2tfbXV0ZWQYDCABKAsyGS5saXZla2l0LnByb3RvLlRyYWNrTXV0", + "ZWRIABI0Cg10cmFja191bm11dGVkGA0gASgLMhsubGl2ZWtpdC5wcm90by5U", + "cmFja1VubXV0ZWRIABJHChdhY3RpdmVfc3BlYWtlcnNfY2hhbmdlZBgOIAEo", + "CzIkLmxpdmVraXQucHJvdG8uQWN0aXZlU3BlYWtlcnNDaGFuZ2VkSAASQwoV", + "cm9vbV9tZXRhZGF0YV9jaGFuZ2VkGA8gASgLMiIubGl2ZWtpdC5wcm90by5S", + "b29tTWV0YWRhdGFDaGFuZ2VkSAASOQoQcm9vbV9zaWRfY2hhbmdlZBgQIAEo", + "CzIdLmxpdmVraXQucHJvdG8uUm9vbVNpZENoYW5nZWRIABJRChxwYXJ0aWNp", + "cGFudF9tZXRhZGF0YV9jaGFuZ2VkGBEgASgLMikubGl2ZWtpdC5wcm90by5Q", + "YXJ0aWNpcGFudE1ldGFkYXRhQ2hhbmdlZEgAEkkKGHBhcnRpY2lwYW50X25h", + "bWVfY2hhbmdlZBgSIAEoCzIlLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRO", + "YW1lQ2hhbmdlZEgAElUKHnBhcnRpY2lwYW50X2F0dHJpYnV0ZXNfY2hhbmdl", + "ZBgTIAEoCzIrLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRBdHRyaWJ1dGVz", + "Q2hhbmdlZEgAEk0KGmNvbm5lY3Rpb25fcXVhbGl0eV9jaGFuZ2VkGBQgASgL", + "MicubGl2ZWtpdC5wcm90by5Db25uZWN0aW9uUXVhbGl0eUNoYW5nZWRIABJJ", + "Chhjb25uZWN0aW9uX3N0YXRlX2NoYW5nZWQYFSABKAsyJS5saXZla2l0LnBy", + "b3RvLkNvbm5lY3Rpb25TdGF0ZUNoYW5nZWRIABIzCgxkaXNjb25uZWN0ZWQY", + "FiABKAsyGy5saXZla2l0LnByb3RvLkRpc2Nvbm5lY3RlZEgAEjMKDHJlY29u", + "bmVjdGluZxgXIAEoCzIbLmxpdmVraXQucHJvdG8uUmVjb25uZWN0aW5nSAAS", + "MQoLcmVjb25uZWN0ZWQYGCABKAsyGi5saXZla2l0LnByb3RvLlJlY29ubmVj", + "dGVkSAASPQoSZTJlZV9zdGF0ZV9jaGFuZ2VkGBkgASgLMh8ubGl2ZWtpdC5w", + "cm90by5FMmVlU3RhdGVDaGFuZ2VkSAASJQoDZW9zGBogASgLMhYubGl2ZWtp", + "dC5wcm90by5Sb29tRU9TSAASQQoUZGF0YV9wYWNrZXRfcmVjZWl2ZWQYGyAB", + "KAsyIS5saXZla2l0LnByb3RvLkRhdGFQYWNrZXRSZWNlaXZlZEgAEkYKFnRy", + "YW5zY3JpcHRpb25fcmVjZWl2ZWQYHCABKAsyJC5saXZla2l0LnByb3RvLlRy", + "YW5zY3JpcHRpb25SZWNlaXZlZEgAQgkKB21lc3NhZ2UiRAoIUm9vbUluZm8S", + "EAoDc2lkGAEgASgJSACIAQESDAoEbmFtZRgCIAEoCRIQCghtZXRhZGF0YRgD", + "IAEoCUIGCgRfc2lkImEKCU93bmVkUm9vbRItCgZoYW5kbGUYASABKAsyHS5s", + "aXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiUKBGluZm8YAiABKAsyFy5s", + "aXZla2l0LnByb3RvLlJvb21JbmZvIkUKFFBhcnRpY2lwYW50Q29ubmVjdGVk", + "Ei0KBGluZm8YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBh", + "bnQiNwoXUGFydGljaXBhbnREaXNjb25uZWN0ZWQSHAoUcGFydGljaXBhbnRf", + "aWRlbnRpdHkYASABKAkiKAoTTG9jYWxUcmFja1B1Ymxpc2hlZBIRCgl0cmFj", + "a19zaWQYASABKAkiMAoVTG9jYWxUcmFja1VucHVibGlzaGVkEhcKD3B1Ymxp", + "Y2F0aW9uX3NpZBgBIAEoCSIpChRMb2NhbFRyYWNrU3Vic2NyaWJlZBIRCgl0", + "cmFja19zaWQYAiABKAkiaQoOVHJhY2tQdWJsaXNoZWQSHAoUcGFydGljaXBh", + "bnRfaWRlbnRpdHkYASABKAkSOQoLcHVibGljYXRpb24YAiABKAsyJC5saXZl", + "a2l0LnByb3RvLk93bmVkVHJhY2tQdWJsaWNhdGlvbiJJChBUcmFja1VucHVi", + "bGlzaGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgASgJEhcKD3B1Ymxp", + "Y2F0aW9uX3NpZBgCIAEoCSJZCg9UcmFja1N1YnNjcmliZWQSHAoUcGFydGlj", + "aXBhbnRfaWRlbnRpdHkYASABKAkSKAoFdHJhY2sYAiABKAsyGS5saXZla2l0", + "LnByb3RvLk93bmVkVHJhY2siRAoRVHJhY2tVbnN1YnNjcmliZWQSHAoUcGFy", + "dGljaXBhbnRfaWRlbnRpdHkYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJIlkK", + "F1RyYWNrU3Vic2NyaXB0aW9uRmFpbGVkEhwKFHBhcnRpY2lwYW50X2lkZW50", + "aXR5GAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCRINCgVlcnJvchgDIAEoCSI9", + "CgpUcmFja011dGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgASgJEhEK", + "CXRyYWNrX3NpZBgCIAEoCSI/CgxUcmFja1VubXV0ZWQSHAoUcGFydGljaXBh", + "bnRfaWRlbnRpdHkYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJIl8KEEUyZWVT", + "dGF0ZUNoYW5nZWQSHAoUcGFydGljaXBhbnRfaWRlbnRpdHkYASABKAkSLQoF", + "c3RhdGUYAiABKA4yHi5saXZla2l0LnByb3RvLkVuY3J5cHRpb25TdGF0ZSI3", + "ChVBY3RpdmVTcGVha2Vyc0NoYW5nZWQSHgoWcGFydGljaXBhbnRfaWRlbnRp", + "dGllcxgBIAMoCSInChNSb29tTWV0YWRhdGFDaGFuZ2VkEhAKCG1ldGFkYXRh", + "GAEgASgJIh0KDlJvb21TaWRDaGFuZ2VkEgsKA3NpZBgBIAEoCSJMChpQYXJ0", + "aWNpcGFudE1ldGFkYXRhQ2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0", + "eRgBIAEoCRIQCghtZXRhZGF0YRgCIAEoCSLaAgocUGFydGljaXBhbnRBdHRy", + "aWJ1dGVzQ2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRJP", + "CgphdHRyaWJ1dGVzGAIgAygLMjsubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFu", + "dEF0dHJpYnV0ZXNDaGFuZ2VkLkF0dHJpYnV0ZXNFbnRyeRJeChJjaGFuZ2Vk", + "X2F0dHJpYnV0ZXMYAyADKAsyQi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50", + "QXR0cmlidXRlc0NoYW5nZWQuQ2hhbmdlZEF0dHJpYnV0ZXNFbnRyeRoxCg9B", + "dHRyaWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "ARo4ChZDaGFuZ2VkQXR0cmlidXRlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", + "YWx1ZRgCIAEoCToCOAEiRAoWUGFydGljaXBhbnROYW1lQ2hhbmdlZBIcChRw", + "YXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRIMCgRuYW1lGAIgASgJImsKGENv", + "bm5lY3Rpb25RdWFsaXR5Q2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0", + "eRgBIAEoCRIxCgdxdWFsaXR5GAIgASgOMiAubGl2ZWtpdC5wcm90by5Db25u", + "ZWN0aW9uUXVhbGl0eSJUCgpVc2VyUGFja2V0EigKBGRhdGEYASABKAsyGi5s", + "aXZla2l0LnByb3RvLk93bmVkQnVmZmVyEhIKBXRvcGljGAIgASgJSACIAQFC", + "CAoGX3RvcGljIjUKB1NpcERUTUYSDAoEY29kZRgBIAEoDRISCgVkaWdpdBgC", + "IAEoCUgAiAEBQggKBl9kaWdpdCK/AQoSRGF0YVBhY2tldFJlY2VpdmVkEisK", + "BGtpbmQYASABKA4yHS5saXZla2l0LnByb3RvLkRhdGFQYWNrZXRLaW5kEhwK", + "FHBhcnRpY2lwYW50X2lkZW50aXR5GAIgASgJEikKBHVzZXIYBCABKAsyGS5s", + "aXZla2l0LnByb3RvLlVzZXJQYWNrZXRIABIqCghzaXBfZHRtZhgFIAEoCzIW", + "LmxpdmVraXQucHJvdG8uU2lwRFRNRkgAQgcKBXZhbHVlIrABChVUcmFuc2Ny", + "aXB0aW9uUmVjZWl2ZWQSIQoUcGFydGljaXBhbnRfaWRlbnRpdHkYASABKAlI", + "AIgBARIWCgl0cmFja19zaWQYAiABKAlIAYgBARI1CghzZWdtZW50cxgDIAMo", + "CzIjLmxpdmVraXQucHJvdG8uVHJhbnNjcmlwdGlvblNlZ21lbnRCFwoVX3Bh", + "cnRpY2lwYW50X2lkZW50aXR5QgwKCl90cmFja19zaWQiRwoWQ29ubmVjdGlv", + "blN0YXRlQ2hhbmdlZBItCgVzdGF0ZRgBIAEoDjIeLmxpdmVraXQucHJvdG8u", + "Q29ubmVjdGlvblN0YXRlIgsKCUNvbm5lY3RlZCI/CgxEaXNjb25uZWN0ZWQS", + "LwoGcmVhc29uGAEgASgOMh8ubGl2ZWtpdC5wcm90by5EaXNjb25uZWN0UmVh", + "c29uIg4KDFJlY29ubmVjdGluZyINCgtSZWNvbm5lY3RlZCIJCgdSb29tRU9T", + "KlAKEEljZVRyYW5zcG9ydFR5cGUSEwoPVFJBTlNQT1JUX1JFTEFZEAASFAoQ", + "VFJBTlNQT1JUX05PSE9TVBABEhEKDVRSQU5TUE9SVF9BTEwQAipDChhDb250", + "aW51YWxHYXRoZXJpbmdQb2xpY3kSDwoLR0FUSEVSX09OQ0UQABIWChJHQVRI", + "RVJfQ09OVElOVUFMTFkQASpgChFDb25uZWN0aW9uUXVhbGl0eRIQCgxRVUFM", + "SVRZX1BPT1IQABIQCgxRVUFMSVRZX0dPT0QQARIVChFRVUFMSVRZX0VYQ0VM", + "TEVOVBACEhAKDFFVQUxJVFlfTE9TVBADKlMKD0Nvbm5lY3Rpb25TdGF0ZRIV", + "ChFDT05OX0RJU0NPTk5FQ1RFRBAAEhIKDkNPTk5fQ09OTkVDVEVEEAESFQoR", + "Q09OTl9SRUNPTk5FQ1RJTkcQAiozCg5EYXRhUGFja2V0S2luZBIOCgpLSU5E", + "X0xPU1NZEAASEQoNS0lORF9SRUxJQUJMRRABKuwBChBEaXNjb25uZWN0UmVh", + "c29uEhIKDlVOS05PV05fUkVBU09OEAASFAoQQ0xJRU5UX0lOSVRJQVRFRBAB", + "EhYKEkRVUExJQ0FURV9JREVOVElUWRACEhMKD1NFUlZFUl9TSFVURE9XThAD", + "EhcKE1BBUlRJQ0lQQU5UX1JFTU9WRUQQBBIQCgxST09NX0RFTEVURUQQBRIS", + "Cg5TVEFURV9NSVNNQVRDSBAGEhAKDEpPSU5fRkFJTFVSRRAHEg0KCU1JR1JB", + "VElPThAIEhAKDFNJR05BTF9DTE9TRRAJEg8KC1JPT01fQ0xPU0VEEApCEKoC", + "DUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.E2EeReflection.Descriptor, global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.ParticipantReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, global::LiveKit.Proto.StatsReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.IceTransportType), typeof(global::LiveKit.Proto.ContinualGatheringPolicy), typeof(global::LiveKit.Proto.ConnectionQuality), typeof(global::LiveKit.Proto.ConnectionState), typeof(global::LiveKit.Proto.DataPacketKind), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.IceTransportType), typeof(global::LiveKit.Proto.ContinualGatheringPolicy), typeof(global::LiveKit.Proto.ConnectionQuality), typeof(global::LiveKit.Proto.ConnectionState), typeof(global::LiveKit.Proto.DataPacketKind), typeof(global::LiveKit.Proto.DisconnectReason), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectRequest), global::LiveKit.Proto.ConnectRequest.Parser, new[]{ "Url", "Token", "Options" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectResponse), global::LiveKit.Proto.ConnectResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectCallback), global::LiveKit.Proto.ConnectCallback.Parser, new[]{ "AsyncId", "Error", "Room", "LocalParticipant", "Participants" }, new[]{ "Error" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectCallback.Types.ParticipantWithTracks), global::LiveKit.Proto.ConnectCallback.Types.ParticipantWithTracks.Parser, new[]{ "Participant", "Publications" }, null, null, null, null)}), @@ -217,12 +255,18 @@ static RoomReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionRequest), global::LiveKit.Proto.PublishTranscriptionRequest.Parser, new[]{ "LocalParticipantHandle", "ParticipantIdentity", "TrackId", "Segments" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionResponse), global::LiveKit.Proto.PublishTranscriptionResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionCallback), global::LiveKit.Proto.PublishTranscriptionCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalMetadataRequest), global::LiveKit.Proto.UpdateLocalMetadataRequest.Parser, new[]{ "LocalParticipantHandle", "Metadata" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalMetadataResponse), global::LiveKit.Proto.UpdateLocalMetadataResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalMetadataCallback), global::LiveKit.Proto.UpdateLocalMetadataCallback.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalNameRequest), global::LiveKit.Proto.UpdateLocalNameRequest.Parser, new[]{ "LocalParticipantHandle", "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalNameResponse), global::LiveKit.Proto.UpdateLocalNameResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UpdateLocalNameCallback), global::LiveKit.Proto.UpdateLocalNameCallback.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfRequest), global::LiveKit.Proto.PublishSipDtmfRequest.Parser, new[]{ "LocalParticipantHandle", "Code", "Digit", "DestinationIdentities" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfResponse), global::LiveKit.Proto.PublishSipDtmfResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfCallback), global::LiveKit.Proto.PublishSipDtmfCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataRequest), global::LiveKit.Proto.SetLocalMetadataRequest.Parser, new[]{ "LocalParticipantHandle", "Metadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataResponse), global::LiveKit.Proto.SetLocalMetadataResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataCallback), global::LiveKit.Proto.SetLocalMetadataCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesRequest), global::LiveKit.Proto.SetLocalAttributesRequest.Parser, new[]{ "LocalParticipantHandle", "Attributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesResponse), global::LiveKit.Proto.SetLocalAttributesResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesCallback), global::LiveKit.Proto.SetLocalAttributesCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameRequest), global::LiveKit.Proto.SetLocalNameRequest.Parser, new[]{ "LocalParticipantHandle", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameResponse), global::LiveKit.Proto.SetLocalNameResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameCallback), global::LiveKit.Proto.SetLocalNameCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetSubscribedRequest), global::LiveKit.Proto.SetSubscribedRequest.Parser, new[]{ "Subscribe", "PublicationHandle" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetSubscribedResponse), global::LiveKit.Proto.SetSubscribedResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSessionStatsRequest), global::LiveKit.Proto.GetSessionStatsRequest.Parser, new[]{ "RoomHandle" }, null, null, null, null), @@ -230,40 +274,43 @@ static RoomReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSessionStatsCallback), global::LiveKit.Proto.GetSessionStatsCallback.Parser, new[]{ "AsyncId", "Error", "PublisherStats", "SubscriberStats" }, new[]{ "Error" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoEncoding), global::LiveKit.Proto.VideoEncoding.Parser, new[]{ "MaxBitrate", "MaxFramerate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioEncoding), global::LiveKit.Proto.AudioEncoding.Parser, new[]{ "MaxBitrate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublishOptions), global::LiveKit.Proto.TrackPublishOptions.Parser, new[]{ "VideoEncoding", "AudioEncoding", "VideoCodec", "Dtx", "Red", "Simulcast", "Source" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublishOptions), global::LiveKit.Proto.TrackPublishOptions.Parser, new[]{ "VideoEncoding", "AudioEncoding", "VideoCodec", "Dtx", "Red", "Simulcast", "Source", "Stream" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.IceServer), global::LiveKit.Proto.IceServer.Parser, new[]{ "Urls", "Username", "Password" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcConfig), global::LiveKit.Proto.RtcConfig.Parser, new[]{ "IceTransportType", "ContinualGatheringPolicy", "IceServers" }, new[]{ "IceTransportType", "ContinualGatheringPolicy" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomOptions), global::LiveKit.Proto.RoomOptions.Parser, new[]{ "AutoSubscribe", "AdaptiveStream", "Dynacast", "E2Ee", "RtcConfig", "JoinRetries" }, new[]{ "E2Ee", "RtcConfig" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TranscriptionSegment), global::LiveKit.Proto.TranscriptionSegment.Parser, new[]{ "Id", "Text", "StartTime", "EndTime", "Final", "Language" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.BufferInfo), global::LiveKit.Proto.BufferInfo.Parser, new[]{ "DataPtr", "DataLen" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedBuffer), global::LiveKit.Proto.OwnedBuffer.Parser, new[]{ "Handle", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEvent), global::LiveKit.Proto.RoomEvent.Parser, new[]{ "RoomHandle", "ParticipantConnected", "ParticipantDisconnected", "LocalTrackPublished", "LocalTrackUnpublished", "TrackPublished", "TrackUnpublished", "TrackSubscribed", "TrackUnsubscribed", "TrackSubscriptionFailed", "TrackMuted", "TrackUnmuted", "ActiveSpeakersChanged", "RoomMetadataChanged", "RoomSidChanged", "ParticipantMetadataChanged", "ParticipantNameChanged", "ConnectionQualityChanged", "ConnectionStateChanged", "Disconnected", "Reconnecting", "Reconnected", "E2EeStateChanged", "Eos", "DataPacketReceived" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomInfo), global::LiveKit.Proto.RoomInfo.Parser, new[]{ "Sid", "Name", "Metadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEvent), global::LiveKit.Proto.RoomEvent.Parser, new[]{ "RoomHandle", "ParticipantConnected", "ParticipantDisconnected", "LocalTrackPublished", "LocalTrackUnpublished", "LocalTrackSubscribed", "TrackPublished", "TrackUnpublished", "TrackSubscribed", "TrackUnsubscribed", "TrackSubscriptionFailed", "TrackMuted", "TrackUnmuted", "ActiveSpeakersChanged", "RoomMetadataChanged", "RoomSidChanged", "ParticipantMetadataChanged", "ParticipantNameChanged", "ParticipantAttributesChanged", "ConnectionQualityChanged", "ConnectionStateChanged", "Disconnected", "Reconnecting", "Reconnected", "E2EeStateChanged", "Eos", "DataPacketReceived", "TranscriptionReceived" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomInfo), global::LiveKit.Proto.RoomInfo.Parser, new[]{ "Sid", "Name", "Metadata" }, new[]{ "Sid" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedRoom), global::LiveKit.Proto.OwnedRoom.Parser, new[]{ "Handle", "Info" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantConnected), global::LiveKit.Proto.ParticipantConnected.Parser, new[]{ "Info" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantDisconnected), global::LiveKit.Proto.ParticipantDisconnected.Parser, new[]{ "ParticipantSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantDisconnected), global::LiveKit.Proto.ParticipantDisconnected.Parser, new[]{ "ParticipantIdentity" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LocalTrackPublished), global::LiveKit.Proto.LocalTrackPublished.Parser, new[]{ "TrackSid" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LocalTrackUnpublished), global::LiveKit.Proto.LocalTrackUnpublished.Parser, new[]{ "PublicationSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublished), global::LiveKit.Proto.TrackPublished.Parser, new[]{ "ParticipantSid", "Publication" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnpublished), global::LiveKit.Proto.TrackUnpublished.Parser, new[]{ "ParticipantSid", "PublicationSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackSubscribed), global::LiveKit.Proto.TrackSubscribed.Parser, new[]{ "ParticipantSid", "Track" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnsubscribed), global::LiveKit.Proto.TrackUnsubscribed.Parser, new[]{ "ParticipantSid", "TrackSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackSubscriptionFailed), global::LiveKit.Proto.TrackSubscriptionFailed.Parser, new[]{ "ParticipantSid", "TrackSid", "Error" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackMuted), global::LiveKit.Proto.TrackMuted.Parser, new[]{ "ParticipantSid", "TrackSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnmuted), global::LiveKit.Proto.TrackUnmuted.Parser, new[]{ "ParticipantSid", "TrackSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeStateChanged), global::LiveKit.Proto.E2eeStateChanged.Parser, new[]{ "ParticipantSid", "State" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ActiveSpeakersChanged), global::LiveKit.Proto.ActiveSpeakersChanged.Parser, new[]{ "ParticipantSids" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LocalTrackSubscribed), global::LiveKit.Proto.LocalTrackSubscribed.Parser, new[]{ "TrackSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublished), global::LiveKit.Proto.TrackPublished.Parser, new[]{ "ParticipantIdentity", "Publication" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnpublished), global::LiveKit.Proto.TrackUnpublished.Parser, new[]{ "ParticipantIdentity", "PublicationSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackSubscribed), global::LiveKit.Proto.TrackSubscribed.Parser, new[]{ "ParticipantIdentity", "Track" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnsubscribed), global::LiveKit.Proto.TrackUnsubscribed.Parser, new[]{ "ParticipantIdentity", "TrackSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackSubscriptionFailed), global::LiveKit.Proto.TrackSubscriptionFailed.Parser, new[]{ "ParticipantIdentity", "TrackSid", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackMuted), global::LiveKit.Proto.TrackMuted.Parser, new[]{ "ParticipantIdentity", "TrackSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackUnmuted), global::LiveKit.Proto.TrackUnmuted.Parser, new[]{ "ParticipantIdentity", "TrackSid" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeStateChanged), global::LiveKit.Proto.E2eeStateChanged.Parser, new[]{ "ParticipantIdentity", "State" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ActiveSpeakersChanged), global::LiveKit.Proto.ActiveSpeakersChanged.Parser, new[]{ "ParticipantIdentities" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomMetadataChanged), global::LiveKit.Proto.RoomMetadataChanged.Parser, new[]{ "Metadata" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomSidChanged), global::LiveKit.Proto.RoomSidChanged.Parser, new[]{ "Sid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantMetadataChanged), global::LiveKit.Proto.ParticipantMetadataChanged.Parser, new[]{ "ParticipantSid", "Metadata" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantNameChanged), global::LiveKit.Proto.ParticipantNameChanged.Parser, new[]{ "ParticipantSid", "Name" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectionQualityChanged), global::LiveKit.Proto.ConnectionQualityChanged.Parser, new[]{ "ParticipantSid", "Quality" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantMetadataChanged), global::LiveKit.Proto.ParticipantMetadataChanged.Parser, new[]{ "ParticipantIdentity", "Metadata" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantAttributesChanged), global::LiveKit.Proto.ParticipantAttributesChanged.Parser, new[]{ "ParticipantIdentity", "Attributes", "ChangedAttributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantNameChanged), global::LiveKit.Proto.ParticipantNameChanged.Parser, new[]{ "ParticipantIdentity", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectionQualityChanged), global::LiveKit.Proto.ConnectionQualityChanged.Parser, new[]{ "ParticipantIdentity", "Quality" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UserPacket), global::LiveKit.Proto.UserPacket.Parser, new[]{ "Data", "Topic" }, new[]{ "Topic" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SipDTMF), global::LiveKit.Proto.SipDTMF.Parser, new[]{ "Code", "Digit" }, new[]{ "Digit" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DataPacketReceived), global::LiveKit.Proto.DataPacketReceived.Parser, new[]{ "Kind", "ParticipantIdentity", "ParticipantSid", "User", "SipDtmf" }, new[]{ "Value", "ParticipantSid" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DataPacketReceived), global::LiveKit.Proto.DataPacketReceived.Parser, new[]{ "Kind", "ParticipantIdentity", "User", "SipDtmf" }, new[]{ "Value" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TranscriptionReceived), global::LiveKit.Proto.TranscriptionReceived.Parser, new[]{ "ParticipantIdentity", "TrackSid", "Segments" }, new[]{ "ParticipantIdentity", "TrackSid" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectionStateChanged), global::LiveKit.Proto.ConnectionStateChanged.Parser, new[]{ "State" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Connected), global::LiveKit.Proto.Connected.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Disconnected), global::LiveKit.Proto.Disconnected.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Disconnected), global::LiveKit.Proto.Disconnected.Parser, new[]{ "Reason" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Reconnecting), global::LiveKit.Proto.Reconnecting.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Reconnected), global::LiveKit.Proto.Reconnected.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEOS), global::LiveKit.Proto.RoomEOS.Parser, null, null, null, null, null) @@ -302,6 +349,50 @@ public enum DataPacketKind { [pbr::OriginalName("KIND_RELIABLE")] KindReliable = 1, } + public enum DisconnectReason { + [pbr::OriginalName("UNKNOWN_REASON")] UnknownReason = 0, + /// + /// the client initiated the disconnect + /// + [pbr::OriginalName("CLIENT_INITIATED")] ClientInitiated = 1, + /// + /// another participant with the same identity has joined the room + /// + [pbr::OriginalName("DUPLICATE_IDENTITY")] DuplicateIdentity = 2, + /// + /// the server instance is shutting down + /// + [pbr::OriginalName("SERVER_SHUTDOWN")] ServerShutdown = 3, + /// + /// RoomService.RemoveParticipant was called + /// + [pbr::OriginalName("PARTICIPANT_REMOVED")] ParticipantRemoved = 4, + /// + /// RoomService.DeleteRoom was called + /// + [pbr::OriginalName("ROOM_DELETED")] RoomDeleted = 5, + /// + /// the client is attempting to resume a session, but server is not aware of it + /// + [pbr::OriginalName("STATE_MISMATCH")] StateMismatch = 6, + /// + /// client was unable to connect fully + /// + [pbr::OriginalName("JOIN_FAILURE")] JoinFailure = 7, + /// + /// Cloud-only, the server requested Participant to migrate the connection elsewhere + /// + [pbr::OriginalName("MIGRATION")] Migration = 8, + /// + /// the signal websocket was closed unexpectedly + /// + [pbr::OriginalName("SIGNAL_CLOSE")] SignalClose = 9, + /// + /// the room was closed, due to all Standard and Ingress participants having left + /// + [pbr::OriginalName("ROOM_CLOSED")] RoomClosed = 10, + } + #endregion #region Messages @@ -4955,19 +5046,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Change the local participant's metadata + /// Publish Sip DTMF messages to other participants /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalMetadataRequest : pb::IMessage + public sealed partial class PublishSipDtmfRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalMetadataRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishSipDtmfRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4983,7 +5074,7 @@ public sealed partial class UpdateLocalMetadataRequest : pb::IMessageField number for the "local_participant_handle" field. @@ -5015,27 +5108,50 @@ public ulong LocalParticipantHandle { } } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 2; - private string metadata_ = ""; + /// Field number for the "code" field. + public const int CodeFieldNumber = 2; + private uint code_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Metadata { - get { return metadata_; } + public uint Code { + get { return code_; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + code_ = value; + } + } + + /// Field number for the "digit" field. + public const int DigitFieldNumber = 3; + private string digit_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Digit { + get { return digit_; } + set { + digit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Field number for the "destination_identities" field. + public const int DestinationIdentitiesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_destinationIdentities_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField destinationIdentities_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DestinationIdentities { + get { return destinationIdentities_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalMetadataRequest); + return Equals(other as PublishSipDtmfRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalMetadataRequest other) { + public bool Equals(PublishSipDtmfRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -5043,7 +5159,9 @@ public bool Equals(UpdateLocalMetadataRequest other) { return true; } if (LocalParticipantHandle != other.LocalParticipantHandle) return false; - if (Metadata != other.Metadata) return false; + if (Code != other.Code) return false; + if (Digit != other.Digit) return false; + if(!destinationIdentities_.Equals(other.destinationIdentities_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5052,7 +5170,9 @@ public bool Equals(UpdateLocalMetadataRequest other) { public override int GetHashCode() { int hash = 1; if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (Code != 0) hash ^= Code.GetHashCode(); + if (Digit.Length != 0) hash ^= Digit.GetHashCode(); + hash ^= destinationIdentities_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5075,10 +5195,15 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Metadata.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Metadata); + if (Code != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Code); + } + if (Digit.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Digit); } + destinationIdentities_.WriteTo(output, _repeated_destinationIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5093,10 +5218,15 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Metadata.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Metadata); + if (Code != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Code); + } + if (Digit.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Digit); } + destinationIdentities_.WriteTo(ref output, _repeated_destinationIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5110,9 +5240,13 @@ public int CalculateSize() { if (LocalParticipantHandle != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (Metadata.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + if (Code != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); + } + if (Digit.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Digit); } + size += destinationIdentities_.CalculateSize(_repeated_destinationIdentities_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5121,16 +5255,20 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalMetadataRequest other) { + public void MergeFrom(PublishSipDtmfRequest other) { if (other == null) { return; } if (other.LocalParticipantHandle != 0UL) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.Metadata.Length != 0) { - Metadata = other.Metadata; + if (other.Code != 0) { + Code = other.Code; + } + if (other.Digit.Length != 0) { + Digit = other.Digit; } + destinationIdentities_.Add(other.destinationIdentities_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5150,8 +5288,16 @@ public void MergeFrom(pb::CodedInputStream input) { LocalParticipantHandle = input.ReadUInt64(); break; } - case 18: { - Metadata = input.ReadString(); + case 16: { + Code = input.ReadUInt32(); + break; + } + case 26: { + Digit = input.ReadString(); + break; + } + case 34: { + destinationIdentities_.AddEntriesFrom(input, _repeated_destinationIdentities_codec); break; } } @@ -5173,8 +5319,16 @@ public void MergeFrom(pb::CodedInputStream input) { LocalParticipantHandle = input.ReadUInt64(); break; } - case 18: { - Metadata = input.ReadString(); + case 16: { + Code = input.ReadUInt32(); + break; + } + case 26: { + Digit = input.ReadString(); + break; + } + case 34: { + destinationIdentities_.AddEntriesFrom(ref input, _repeated_destinationIdentities_codec); break; } } @@ -5185,16 +5339,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalMetadataResponse : pb::IMessage + public sealed partial class PublishSipDtmfResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalMetadataResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishSipDtmfResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5210,7 +5364,7 @@ public sealed partial class UpdateLocalMetadataResponse : pb::IMessageField number for the "async_id" field. @@ -5244,12 +5398,12 @@ public ulong AsyncId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalMetadataResponse); + return Equals(other as PublishSipDtmfResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalMetadataResponse other) { + public bool Equals(PublishSipDtmfResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -5322,7 +5476,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalMetadataResponse other) { + public void MergeFrom(PublishSipDtmfResponse other) { if (other == null) { return; } @@ -5375,16 +5529,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalMetadataCallback : pb::IMessage + public sealed partial class PublishSipDtmfCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalMetadataCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishSipDtmfCallback()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5400,7 +5554,7 @@ public sealed partial class UpdateLocalMetadataCallback : pb::IMessageField number for the "async_id" field. @@ -5431,15 +5586,41 @@ public ulong AsyncId { } } + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; + + private string error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_ ?? ErrorDefaultValue; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return error_ != null; } + } + /// Clears the value of the "error" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + error_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalMetadataCallback); + return Equals(other as PublishSipDtmfCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalMetadataCallback other) { + public bool Equals(PublishSipDtmfCallback other) { if (ReferenceEquals(other, null)) { return false; } @@ -5447,6 +5628,7 @@ public bool Equals(UpdateLocalMetadataCallback other) { return true; } if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5455,6 +5637,7 @@ public bool Equals(UpdateLocalMetadataCallback other) { public override int GetHashCode() { int hash = 1; if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5477,6 +5660,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5491,6 +5678,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5504,6 +5695,9 @@ public int CalculateSize() { if (AsyncId != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5512,13 +5706,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalMetadataCallback other) { + public void MergeFrom(PublishSipDtmfCallback other) { if (other == null) { return; } if (other.AsyncId != 0UL) { AsyncId = other.AsyncId; } + if (other.HasError) { + Error = other.Error; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5538,6 +5735,10 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } + case 18: { + Error = input.ReadString(); + break; + } } } #endif @@ -5557,6 +5758,10 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } + case 18: { + Error = input.ReadString(); + break; + } } } } @@ -5565,19 +5770,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Change the local participant's name + /// Change the local participant's metadata /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalNameRequest : pb::IMessage + public sealed partial class SetLocalMetadataRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalMetadataRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5593,7 +5798,7 @@ public sealed partial class UpdateLocalNameRequest : pb::IMessageField number for the "local_participant_handle" field. @@ -5625,27 +5830,27 @@ public ulong LocalParticipantHandle { } } - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 2; + private string metadata_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string Metadata { + get { return metadata_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalNameRequest); + return Equals(other as SetLocalMetadataRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalNameRequest other) { + public bool Equals(SetLocalMetadataRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -5653,7 +5858,7 @@ public bool Equals(UpdateLocalNameRequest other) { return true; } if (LocalParticipantHandle != other.LocalParticipantHandle) return false; - if (Name != other.Name) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5662,7 +5867,7 @@ public bool Equals(UpdateLocalNameRequest other) { public override int GetHashCode() { int hash = 1; if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5685,9 +5890,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Name.Length != 0) { + if (Metadata.Length != 0) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5703,9 +5908,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Name.Length != 0) { + if (Metadata.Length != 0) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5720,8 +5925,8 @@ public int CalculateSize() { if (LocalParticipantHandle != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5731,15 +5936,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalNameRequest other) { + public void MergeFrom(SetLocalMetadataRequest other) { if (other == null) { return; } if (other.LocalParticipantHandle != 0UL) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5761,7 +5966,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Name = input.ReadString(); + Metadata = input.ReadString(); break; } } @@ -5784,7 +5989,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Name = input.ReadString(); + Metadata = input.ReadString(); break; } } @@ -5795,16 +6000,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalNameResponse : pb::IMessage + public sealed partial class SetLocalMetadataResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalMetadataResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5820,7 +6025,7 @@ public sealed partial class UpdateLocalNameResponse : pb::IMessageField number for the "async_id" field. @@ -5854,12 +6059,12 @@ public ulong AsyncId { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalNameResponse); + return Equals(other as SetLocalMetadataResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalNameResponse other) { + public bool Equals(SetLocalMetadataResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -5932,7 +6137,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalNameResponse other) { + public void MergeFrom(SetLocalMetadataResponse other) { if (other == null) { return; } @@ -5985,16 +6190,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UpdateLocalNameCallback : pb::IMessage + public sealed partial class SetLocalMetadataCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalMetadataCallback()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6010,7 +6215,7 @@ public sealed partial class UpdateLocalNameCallback : pb::IMessageField number for the "async_id" field. @@ -6041,15 +6247,41 @@ public ulong AsyncId { } } + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; + + private string error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_ ?? ErrorDefaultValue; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return error_ != null; } + } + /// Clears the value of the "error" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + error_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateLocalNameCallback); + return Equals(other as SetLocalMetadataCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateLocalNameCallback other) { + public bool Equals(SetLocalMetadataCallback other) { if (ReferenceEquals(other, null)) { return false; } @@ -6057,6 +6289,7 @@ public bool Equals(UpdateLocalNameCallback other) { return true; } if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6065,6 +6298,7 @@ public bool Equals(UpdateLocalNameCallback other) { public override int GetHashCode() { int hash = 1; if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6087,6 +6321,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6101,6 +6339,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6114,6 +6356,9 @@ public int CalculateSize() { if (AsyncId != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6122,13 +6367,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateLocalNameCallback other) { + public void MergeFrom(SetLocalMetadataCallback other) { if (other == null) { return; } if (other.AsyncId != 0UL) { AsyncId = other.AsyncId; } + if (other.HasError) { + Error = other.Error; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6148,7 +6396,11 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } - } + case 18: { + Error = input.ReadString(); + break; + } + } } #endif } @@ -6167,6 +6419,10 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } + case 18: { + Error = input.ReadString(); + break; + } } } } @@ -6175,19 +6431,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Change the "desire" to subs2ribe to a track + /// Change the local participant's attributes /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetSubscribedRequest : pb::IMessage + public sealed partial class SetLocalAttributesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6203,7 +6459,7 @@ public sealed partial class SetSubscribedRequest : pb::IMessageField number for the "subscribe" field. - public const int SubscribeFieldNumber = 1; - private bool subscribe_; + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Subscribe { - get { return subscribe_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - subscribe_ = value; + localParticipantHandle_ = value; } } - /// Field number for the "publication_handle" field. - public const int PublicationHandleFieldNumber = 2; - private ulong publicationHandle_; + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_attributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField attributes_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong PublicationHandle { - get { return publicationHandle_; } - set { - publicationHandle_ = value; - } + public pbc::MapField Attributes { + get { return attributes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetSubscribedRequest); + return Equals(other as SetLocalAttributesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetSubscribedRequest other) { + public bool Equals(SetLocalAttributesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Subscribe != other.Subscribe) return false; - if (PublicationHandle != other.PublicationHandle) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (!Attributes.Equals(other.Attributes)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6271,8 +6526,8 @@ public bool Equals(SetSubscribedRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Subscribe != false) hash ^= Subscribe.GetHashCode(); - if (PublicationHandle != 0UL) hash ^= PublicationHandle.GetHashCode(); + if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + hash ^= Attributes.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6291,14 +6546,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Subscribe != false) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteBool(Subscribe); - } - if (PublicationHandle != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(PublicationHandle); + output.WriteUInt64(LocalParticipantHandle); } + attributes_.WriteTo(output, _map_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6309,14 +6561,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Subscribe != false) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteBool(Subscribe); - } - if (PublicationHandle != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(PublicationHandle); + output.WriteUInt64(LocalParticipantHandle); } + attributes_.WriteTo(ref output, _map_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6327,12 +6576,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Subscribe != false) { - size += 1 + 1; - } - if (PublicationHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PublicationHandle); + if (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } + size += attributes_.CalculateSize(_map_attributes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6341,16 +6588,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetSubscribedRequest other) { + public void MergeFrom(SetLocalAttributesRequest other) { if (other == null) { return; } - if (other.Subscribe != false) { - Subscribe = other.Subscribe; - } - if (other.PublicationHandle != 0UL) { - PublicationHandle = other.PublicationHandle; + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } + attributes_.MergeFrom(other.attributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6367,11 +6612,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Subscribe = input.ReadBool(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 16: { - PublicationHandle = input.ReadUInt64(); + case 18: { + attributes_.AddEntriesFrom(input, _map_attributes_codec); break; } } @@ -6390,11 +6635,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Subscribe = input.ReadBool(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 16: { - PublicationHandle = input.ReadUInt64(); + case 18: { + attributes_.AddEntriesFrom(ref input, _map_attributes_codec); break; } } @@ -6405,16 +6650,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetSubscribedResponse : pb::IMessage + public sealed partial class SetLocalAttributesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6430,7 +6675,7 @@ public sealed partial class SetSubscribedResponse : pb::IMessageField number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private ulong asyncId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AsyncId { + get { return asyncId_; } + set { + asyncId_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetSubscribedResponse); + return Equals(other as SetLocalAttributesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetSubscribedResponse other) { + public bool Equals(SetLocalAttributesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6470,6 +6729,7 @@ public bool Equals(SetSubscribedResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6488,6 +6748,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6498,6 +6762,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6508,6 +6776,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6516,10 +6787,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetSubscribedResponse other) { + public void MergeFrom(SetLocalAttributesResponse other) { if (other == null) { return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6535,6 +6809,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } #endif @@ -6550,6 +6828,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } } @@ -6558,16 +6840,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsRequest : pb::IMessage + public sealed partial class SetLocalAttributesCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesCallback()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6583,7 +6865,7 @@ public sealed partial class GetSessionStatsRequest : pb::IMessageField number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private ulong roomHandle_; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong RoomHandle { - get { return roomHandle_; } + public ulong AsyncId { + get { return asyncId_; } set { - roomHandle_ = value; + asyncId_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; + + private string error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_ ?? ErrorDefaultValue; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return error_ != null; } + } + /// Clears the value of the "error" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + error_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetSessionStatsRequest); + return Equals(other as SetLocalAttributesCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsRequest other) { + public bool Equals(SetLocalAttributesCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RoomHandle != other.RoomHandle) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6637,7 +6947,8 @@ public bool Equals(GetSessionStatsRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6656,9 +6967,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteUInt64(AsyncId); + } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6670,9 +6985,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RoomHandle != 0UL) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteUInt64(AsyncId); + } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6684,8 +7003,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RoomHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6695,12 +7017,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsRequest other) { + public void MergeFrom(SetLocalAttributesCallback other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { - RoomHandle = other.RoomHandle; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } + if (other.HasError) { + Error = other.Error; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6718,7 +7043,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); break; } } @@ -6737,7 +7066,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); break; } } @@ -6747,17 +7080,20 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Change the local participant's name + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsResponse : pb::IMessage + public sealed partial class SetLocalNameRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6773,7 +7109,7 @@ public sealed partial class GetSessionStatsResponse : pb::IMessageField number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private ulong asyncId_; + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong AsyncId { - get { return asyncId_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - asyncId_ = value; + localParticipantHandle_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetSessionStatsResponse); + return Equals(other as SetLocalNameRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsResponse other) { + public bool Equals(SetLocalNameRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AsyncId != other.AsyncId) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6827,7 +7177,8 @@ public bool Equals(GetSessionStatsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6846,9 +7197,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6860,9 +7215,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AsyncId != 0UL) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6874,8 +7233,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + if (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6885,12 +7247,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsResponse other) { + public void MergeFrom(SetLocalNameRequest other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { - AsyncId = other.AsyncId; + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.Name.Length != 0) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6908,7 +7273,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); break; } } @@ -6927,7 +7296,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); break; } } @@ -6938,16 +7311,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsCallback : pb::IMessage + public sealed partial class SetLocalNameResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6963,7 +7336,7 @@ public sealed partial class GetSessionStatsCallback : pb::IMessageField number for the "async_id" field. @@ -6997,63 +7367,15 @@ public ulong AsyncId { } } - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private readonly static string ErrorDefaultValue = ""; - - private string error_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_ ?? ErrorDefaultValue; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "error" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasError { - get { return error_ != null; } - } - /// Clears the value of the "error" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearError() { - error_ = null; - } - - /// Field number for the "publisher_stats" field. - public const int PublisherStatsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_publisherStats_codec - = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.RtcStats.Parser); - private readonly pbc::RepeatedField publisherStats_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PublisherStats { - get { return publisherStats_; } - } - - /// Field number for the "subscriber_stats" field. - public const int SubscriberStatsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_subscriberStats_codec - = pb::FieldCodec.ForMessage(34, global::LiveKit.Proto.RtcStats.Parser); - private readonly pbc::RepeatedField subscriberStats_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SubscriberStats { - get { return subscriberStats_; } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetSessionStatsCallback); + return Equals(other as SetLocalNameResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsCallback other) { + public bool Equals(SetLocalNameResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -7061,9 +7383,6 @@ public bool Equals(GetSessionStatsCallback other) { return true; } if (AsyncId != other.AsyncId) return false; - if (Error != other.Error) return false; - if(!publisherStats_.Equals(other.publisherStats_)) return false; - if(!subscriberStats_.Equals(other.subscriberStats_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7072,9 +7391,6 @@ public bool Equals(GetSessionStatsCallback other) { public override int GetHashCode() { int hash = 1; if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); - if (HasError) hash ^= Error.GetHashCode(); - hash ^= publisherStats_.GetHashCode(); - hash ^= subscriberStats_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7097,12 +7413,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } - if (HasError) { - output.WriteRawTag(18); - output.WriteString(Error); - } - publisherStats_.WriteTo(output, _repeated_publisherStats_codec); - subscriberStats_.WriteTo(output, _repeated_subscriberStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7117,12 +7427,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } - if (HasError) { - output.WriteRawTag(18); - output.WriteString(Error); - } - publisherStats_.WriteTo(ref output, _repeated_publisherStats_codec); - subscriberStats_.WriteTo(ref output, _repeated_subscriberStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7136,11 +7440,6 @@ public int CalculateSize() { if (AsyncId != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (HasError) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } - size += publisherStats_.CalculateSize(_repeated_publisherStats_codec); - size += subscriberStats_.CalculateSize(_repeated_subscriberStats_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7149,18 +7448,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsCallback other) { + public void MergeFrom(SetLocalNameResponse other) { if (other == null) { return; } if (other.AsyncId != 0UL) { AsyncId = other.AsyncId; } - if (other.HasError) { - Error = other.Error; - } - publisherStats_.Add(other.publisherStats_); - subscriberStats_.Add(other.subscriberStats_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7180,18 +7474,6 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - publisherStats_.AddEntriesFrom(input, _repeated_publisherStats_codec); - break; - } - case 34: { - subscriberStats_.AddEntriesFrom(input, _repeated_subscriberStats_codec); - break; - } } } #endif @@ -7211,18 +7493,6 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - publisherStats_.AddEntriesFrom(ref input, _repeated_publisherStats_codec); - break; - } - case 34: { - subscriberStats_.AddEntriesFrom(ref input, _repeated_subscriberStats_codec); - break; - } } } } @@ -7231,16 +7501,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VideoEncoding : pb::IMessage + public sealed partial class SetLocalNameCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoEncoding()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameCallback()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7256,7 +7526,7 @@ public sealed partial class VideoEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoEncoding() { + public SetLocalNameCallback() { OnConstruction(); } @@ -7264,59 +7534,73 @@ public VideoEncoding() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoEncoding(VideoEncoding other) : this() { - maxBitrate_ = other.maxBitrate_; - maxFramerate_ = other.maxFramerate_; + public SetLocalNameCallback(SetLocalNameCallback other) : this() { + asyncId_ = other.asyncId_; + error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoEncoding Clone() { - return new VideoEncoding(this); + public SetLocalNameCallback Clone() { + return new SetLocalNameCallback(this); } - /// Field number for the "max_bitrate" field. - public const int MaxBitrateFieldNumber = 1; - private ulong maxBitrate_; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong MaxBitrate { - get { return maxBitrate_; } + public ulong AsyncId { + get { return asyncId_; } set { - maxBitrate_ = value; + asyncId_ = value; } } - /// Field number for the "max_framerate" field. - public const int MaxFramerateFieldNumber = 2; - private double maxFramerate_; + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; + + private string error_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double MaxFramerate { - get { return maxFramerate_; } + public string Error { + get { return error_ ?? ErrorDefaultValue; } set { - maxFramerate_ = value; + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return error_ != null; } + } + /// Clears the value of the "error" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + error_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoEncoding); + return Equals(other as SetLocalNameCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoEncoding other) { + public bool Equals(SetLocalNameCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (MaxBitrate != other.MaxBitrate) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxFramerate, other.MaxFramerate)) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7324,8 +7608,8 @@ public bool Equals(VideoEncoding other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (MaxBitrate != 0UL) hash ^= MaxBitrate.GetHashCode(); - if (MaxFramerate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxFramerate); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7344,13 +7628,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (MaxBitrate != 0UL) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteUInt64(AsyncId); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7362,13 +7646,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MaxBitrate != 0UL) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteUInt64(AsyncId); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7380,11 +7664,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (MaxBitrate != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (MaxFramerate != 0D) { - size += 1 + 8; + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7394,15 +7678,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoEncoding other) { + public void MergeFrom(SetLocalNameCallback other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } - if (other.MaxFramerate != 0D) { - MaxFramerate = other.MaxFramerate; + if (other.HasError) { + Error = other.Error; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7420,11 +7704,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 18: { + Error = input.ReadString(); break; } } @@ -7443,11 +7727,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 18: { + Error = input.ReadString(); break; } } @@ -7457,17 +7741,20 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Change the "desire" to subs2ribe to a track + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioEncoding : pb::IMessage + public sealed partial class SetSubscribedRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioEncoding()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7483,7 +7770,7 @@ public sealed partial class AudioEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding() { + public SetSubscribedRequest() { OnConstruction(); } @@ -7491,45 +7778,59 @@ public AudioEncoding() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding(AudioEncoding other) : this() { - maxBitrate_ = other.maxBitrate_; + public SetSubscribedRequest(SetSubscribedRequest other) : this() { + subscribe_ = other.subscribe_; + publicationHandle_ = other.publicationHandle_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding Clone() { - return new AudioEncoding(this); + public SetSubscribedRequest Clone() { + return new SetSubscribedRequest(this); } - /// Field number for the "max_bitrate" field. - public const int MaxBitrateFieldNumber = 1; - private ulong maxBitrate_; + /// Field number for the "subscribe" field. + public const int SubscribeFieldNumber = 1; + private bool subscribe_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong MaxBitrate { - get { return maxBitrate_; } + public bool Subscribe { + get { return subscribe_; } set { - maxBitrate_ = value; + subscribe_ = value; + } + } + + /// Field number for the "publication_handle" field. + public const int PublicationHandleFieldNumber = 2; + private ulong publicationHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PublicationHandle { + get { return publicationHandle_; } + set { + publicationHandle_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioEncoding); + return Equals(other as SetSubscribedRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioEncoding other) { + public bool Equals(SetSubscribedRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (MaxBitrate != other.MaxBitrate) return false; + if (Subscribe != other.Subscribe) return false; + if (PublicationHandle != other.PublicationHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7537,7 +7838,8 @@ public bool Equals(AudioEncoding other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (MaxBitrate != 0UL) hash ^= MaxBitrate.GetHashCode(); + if (Subscribe != false) hash ^= Subscribe.GetHashCode(); + if (PublicationHandle != 0UL) hash ^= PublicationHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7556,9 +7858,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (MaxBitrate != 0UL) { + if (Subscribe != false) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteBool(Subscribe); + } + if (PublicationHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7570,9 +7876,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MaxBitrate != 0UL) { + if (Subscribe != false) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteBool(Subscribe); + } + if (PublicationHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7584,8 +7894,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (MaxBitrate != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); + if (Subscribe != false) { + size += 1 + 1; + } + if (PublicationHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PublicationHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7595,12 +7908,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioEncoding other) { + public void MergeFrom(SetSubscribedRequest other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; + if (other.Subscribe != false) { + Subscribe = other.Subscribe; + } + if (other.PublicationHandle != 0UL) { + PublicationHandle = other.PublicationHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7618,7 +7934,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + Subscribe = input.ReadBool(); + break; + } + case 16: { + PublicationHandle = input.ReadUInt64(); break; } } @@ -7637,7 +7957,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + Subscribe = input.ReadBool(); + break; + } + case 16: { + PublicationHandle = input.ReadUInt64(); break; } } @@ -7648,16 +7972,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackPublishOptions : pb::IMessage + public sealed partial class SetSubscribedResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublishOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7673,7 +7997,7 @@ public sealed partial class TrackPublishOptions : pb::IMessageField number for the "video_encoding" field. - public const int VideoEncodingFieldNumber = 1; - private global::LiveKit.Proto.VideoEncoding videoEncoding_; - /// - /// encodings are optional - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoEncoding VideoEncoding { - get { return videoEncoding_; } - set { - videoEncoding_ = value; - } + public override bool Equals(object other) { + return Equals(other as SetSubscribedResponse); } - /// Field number for the "audio_encoding" field. - public const int AudioEncodingFieldNumber = 2; - private global::LiveKit.Proto.AudioEncoding audioEncoding_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioEncoding AudioEncoding { - get { return audioEncoding_; } - set { - audioEncoding_ = value; + public bool Equals(SetSubscribedResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "video_codec" field. - public const int VideoCodecFieldNumber = 3; - private global::LiveKit.Proto.VideoCodec videoCodec_ = global::LiveKit.Proto.VideoCodec.Vp8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoCodec VideoCodec { - get { return videoCodec_; } - set { - videoCodec_ = value; + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "dtx" field. - public const int DtxFieldNumber = 4; - private bool dtx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Dtx { - get { return dtx_; } - set { - dtx_ = value; - } + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "red" field. - public const int RedFieldNumber = 5; - private bool red_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Red { - get { return red_; } - set { - red_ = value; + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } + #endif } - /// Field number for the "simulcast" field. - public const int SimulcastFieldNumber = 6; - private bool simulcast_; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Simulcast { - get { return simulcast_; } - set { - simulcast_ = value; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "source" field. - public const int SourceFieldNumber = 7; - private global::LiveKit.Proto.TrackSource source_ = global::LiveKit.Proto.TrackSource.SourceUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSource Source { - get { return source_; } - set { - source_ = value; + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TrackPublishOptions); + public void MergeFrom(SetSubscribedResponse other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublishOptions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(VideoEncoding, other.VideoEncoding)) return false; - if (!object.Equals(AudioEncoding, other.AudioEncoding)) return false; - if (VideoCodec != other.VideoCodec) return false; - if (Dtx != other.Dtx) return false; - if (Red != other.Red) return false; - if (Simulcast != other.Simulcast) return false; - if (Source != other.Source) return false; + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSessionStatsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSessionStatsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSessionStatsRequest(GetSessionStatsRequest other) : this() { + roomHandle_ = other.roomHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSessionStatsRequest Clone() { + return new GetSessionStatsRequest(this); + } + + /// Field number for the "room_handle" field. + public const int RoomHandleFieldNumber = 1; + private ulong roomHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoomHandle { + get { return roomHandle_; } + set { + roomHandle_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSessionStatsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSessionStatsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomHandle != other.RoomHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7814,13 +8204,7 @@ public bool Equals(TrackPublishOptions other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (videoEncoding_ != null) hash ^= VideoEncoding.GetHashCode(); - if (audioEncoding_ != null) hash ^= AudioEncoding.GetHashCode(); - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) hash ^= VideoCodec.GetHashCode(); - if (Dtx != false) hash ^= Dtx.GetHashCode(); - if (Red != false) hash ^= Red.GetHashCode(); - if (Simulcast != false) hash ^= Simulcast.GetHashCode(); - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= Source.GetHashCode(); + if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7839,33 +8223,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (videoEncoding_ != null) { - output.WriteRawTag(10); - output.WriteMessage(VideoEncoding); - } - if (audioEncoding_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - output.WriteRawTag(24); - output.WriteEnum((int) VideoCodec); - } - if (Dtx != false) { - output.WriteRawTag(32); - output.WriteBool(Dtx); - } - if (Red != false) { - output.WriteRawTag(40); - output.WriteBool(Red); - } - if (Simulcast != false) { - output.WriteRawTag(48); - output.WriteBool(Simulcast); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(56); - output.WriteEnum((int) Source); + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7877,33 +8237,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (videoEncoding_ != null) { - output.WriteRawTag(10); - output.WriteMessage(VideoEncoding); - } - if (audioEncoding_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - output.WriteRawTag(24); - output.WriteEnum((int) VideoCodec); - } - if (Dtx != false) { - output.WriteRawTag(32); - output.WriteBool(Dtx); - } - if (Red != false) { - output.WriteRawTag(40); - output.WriteBool(Red); - } - if (Simulcast != false) { - output.WriteRawTag(48); - output.WriteBool(Simulcast); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(56); - output.WriteEnum((int) Source); + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7915,26 +8251,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (videoEncoding_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoEncoding); - } - if (audioEncoding_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VideoCodec); - } - if (Dtx != false) { - size += 1 + 1; - } - if (Red != false) { - size += 1 + 1; - } - if (Simulcast != false) { - size += 1 + 1; - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + if (RoomHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7944,36 +8262,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublishOptions other) { + public void MergeFrom(GetSessionStatsRequest other) { if (other == null) { return; } - if (other.videoEncoding_ != null) { - if (videoEncoding_ == null) { - VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); - } - VideoEncoding.MergeFrom(other.VideoEncoding); - } - if (other.audioEncoding_ != null) { - if (audioEncoding_ == null) { - AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); - } - AudioEncoding.MergeFrom(other.AudioEncoding); - } - if (other.VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - VideoCodec = other.VideoCodec; - } - if (other.Dtx != false) { - Dtx = other.Dtx; - } - if (other.Red != false) { - Red = other.Red; - } - if (other.Simulcast != false) { - Simulcast = other.Simulcast; - } - if (other.Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - Source = other.Source; + if (other.RoomHandle != 0UL) { + RoomHandle = other.RoomHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7990,87 +8284,27 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (videoEncoding_ == null) { - VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); - } - input.ReadMessage(VideoEncoding); + case 8: { + RoomHandle = input.ReadUInt64(); break; } - case 18: { - if (audioEncoding_ == null) { - AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); - } - input.ReadMessage(AudioEncoding); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 24: { - VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); - break; - } - case 32: { - Dtx = input.ReadBool(); - break; - } - case 40: { - Red = input.ReadBool(); - break; - } - case 48: { - Simulcast = input.ReadBool(); - break; - } - case 56: { - Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (videoEncoding_ == null) { - VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); - } - input.ReadMessage(VideoEncoding); - break; - } - case 18: { - if (audioEncoding_ == null) { - AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); - } - input.ReadMessage(AudioEncoding); - break; - } - case 24: { - VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); - break; - } - case 32: { - Dtx = input.ReadBool(); - break; - } - case 40: { - Red = input.ReadBool(); - break; - } - case 48: { - Simulcast = input.ReadBool(); - break; - } - case 56: { - Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + case 8: { + RoomHandle = input.ReadUInt64(); break; } } @@ -8081,21 +8315,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class IceServer : pb::IMessage + public sealed partial class GetSessionStatsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IceServer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[32]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8106,7 +8340,7 @@ public sealed partial class IceServer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer() { + public GetSessionStatsResponse() { OnConstruction(); } @@ -8114,72 +8348,45 @@ public IceServer() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer(IceServer other) : this() { - urls_ = other.urls_.Clone(); - username_ = other.username_; - password_ = other.password_; + public GetSessionStatsResponse(GetSessionStatsResponse other) : this() { + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer Clone() { - return new IceServer(this); - } - - /// Field number for the "urls" field. - public const int UrlsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_urls_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField urls_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Urls { - get { return urls_; } - } - - /// Field number for the "username" field. - public const int UsernameFieldNumber = 2; - private string username_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { - get { return username_; } - set { - username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public GetSessionStatsResponse Clone() { + return new GetSessionStatsResponse(this); } - /// Field number for the "password" field. - public const int PasswordFieldNumber = 3; - private string password_ = ""; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } + public ulong AsyncId { + get { return asyncId_; } set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + asyncId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as IceServer); + return Equals(other as GetSessionStatsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IceServer other) { + public bool Equals(GetSessionStatsResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!urls_.Equals(other.urls_)) return false; - if (Username != other.Username) return false; - if (Password != other.Password) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8187,9 +8394,7 @@ public bool Equals(IceServer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= urls_.GetHashCode(); - if (Username.Length != 0) hash ^= Username.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8208,14 +8413,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - urls_.WriteTo(output, _repeated_urls_codec); - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Password); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8227,14 +8427,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - urls_.WriteTo(ref output, _repeated_urls_codec); - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Password); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8246,12 +8441,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += urls_.CalculateSize(_repeated_urls_codec); - if (Username.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8261,16 +8452,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IceServer other) { + public void MergeFrom(GetSessionStatsResponse other) { if (other == null) { return; } - urls_.Add(other.urls_); - if (other.Username.Length != 0) { - Username = other.Username; - } - if (other.Password.Length != 0) { - Password = other.Password; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8287,16 +8474,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - urls_.AddEntriesFrom(input, _repeated_urls_codec); - break; - } - case 18: { - Username = input.ReadString(); - break; - } - case 26: { - Password = input.ReadString(); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -8314,16 +8493,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - urls_.AddEntriesFrom(ref input, _repeated_urls_codec); - break; - } - case 18: { - Username = input.ReadString(); - break; - } - case 26: { - Password = input.ReadString(); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -8334,22 +8505,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RtcConfig : pb::IMessage + public sealed partial class GetSessionStatsCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcConfig()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsCallback()); private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[33]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8360,7 +8530,7 @@ public sealed partial class RtcConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig() { + public GetSessionStatsCallback() { OnConstruction(); } @@ -8368,106 +8538,99 @@ public RtcConfig() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig(RtcConfig other) : this() { - _hasBits0 = other._hasBits0; - iceTransportType_ = other.iceTransportType_; - continualGatheringPolicy_ = other.continualGatheringPolicy_; - iceServers_ = other.iceServers_.Clone(); + public GetSessionStatsCallback(GetSessionStatsCallback other) : this() { + asyncId_ = other.asyncId_; + error_ = other.error_; + publisherStats_ = other.publisherStats_.Clone(); + subscriberStats_ = other.subscriberStats_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig Clone() { - return new RtcConfig(this); + public GetSessionStatsCallback Clone() { + return new GetSessionStatsCallback(this); } - /// Field number for the "ice_transport_type" field. - public const int IceTransportTypeFieldNumber = 1; - private readonly static global::LiveKit.Proto.IceTransportType IceTransportTypeDefaultValue = global::LiveKit.Proto.IceTransportType.TransportRelay; - - private global::LiveKit.Proto.IceTransportType iceTransportType_; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.IceTransportType IceTransportType { - get { if ((_hasBits0 & 1) != 0) { return iceTransportType_; } else { return IceTransportTypeDefaultValue; } } + public ulong AsyncId { + get { return asyncId_; } set { - _hasBits0 |= 1; - iceTransportType_ = value; + asyncId_ = value; } } - /// Gets whether the "ice_transport_type" field is set + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; + + private string error_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIceTransportType { - get { return (_hasBits0 & 1) != 0; } + public string Error { + get { return error_ ?? ErrorDefaultValue; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// Clears the value of the "ice_transport_type" field + /// Gets whether the "error" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIceTransportType() { - _hasBits0 &= ~1; - } - - /// Field number for the "continual_gathering_policy" field. - public const int ContinualGatheringPolicyFieldNumber = 2; - private readonly static global::LiveKit.Proto.ContinualGatheringPolicy ContinualGatheringPolicyDefaultValue = global::LiveKit.Proto.ContinualGatheringPolicy.GatherOnce; - - private global::LiveKit.Proto.ContinualGatheringPolicy continualGatheringPolicy_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ContinualGatheringPolicy ContinualGatheringPolicy { - get { if ((_hasBits0 & 2) != 0) { return continualGatheringPolicy_; } else { return ContinualGatheringPolicyDefaultValue; } } - set { - _hasBits0 |= 2; - continualGatheringPolicy_ = value; - } + public bool HasError { + get { return error_ != null; } } - /// Gets whether the "continual_gathering_policy" field is set + /// Clears the value of the "error" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasContinualGatheringPolicy { - get { return (_hasBits0 & 2) != 0; } + public void ClearError() { + error_ = null; } - /// Clears the value of the "continual_gathering_policy" field + + /// Field number for the "publisher_stats" field. + public const int PublisherStatsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_publisherStats_codec + = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.RtcStats.Parser); + private readonly pbc::RepeatedField publisherStats_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearContinualGatheringPolicy() { - _hasBits0 &= ~2; + public pbc::RepeatedField PublisherStats { + get { return publisherStats_; } } - /// Field number for the "ice_servers" field. - public const int IceServersFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_iceServers_codec - = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.IceServer.Parser); - private readonly pbc::RepeatedField iceServers_ = new pbc::RepeatedField(); - /// - /// empty fallback to default - /// + /// Field number for the "subscriber_stats" field. + public const int SubscriberStatsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_subscriberStats_codec + = pb::FieldCodec.ForMessage(34, global::LiveKit.Proto.RtcStats.Parser); + private readonly pbc::RepeatedField subscriberStats_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IceServers { - get { return iceServers_; } + public pbc::RepeatedField SubscriberStats { + get { return subscriberStats_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RtcConfig); + return Equals(other as GetSessionStatsCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RtcConfig other) { + public bool Equals(GetSessionStatsCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (IceTransportType != other.IceTransportType) return false; - if (ContinualGatheringPolicy != other.ContinualGatheringPolicy) return false; - if(!iceServers_.Equals(other.iceServers_)) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; + if(!publisherStats_.Equals(other.publisherStats_)) return false; + if(!subscriberStats_.Equals(other.subscriberStats_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8475,9 +8638,10 @@ public bool Equals(RtcConfig other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (HasIceTransportType) hash ^= IceTransportType.GetHashCode(); - if (HasContinualGatheringPolicy) hash ^= ContinualGatheringPolicy.GetHashCode(); - hash ^= iceServers_.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); + hash ^= publisherStats_.GetHashCode(); + hash ^= subscriberStats_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8496,15 +8660,16 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (HasIceTransportType) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteEnum((int) IceTransportType); + output.WriteUInt64(AsyncId); } - if (HasContinualGatheringPolicy) { - output.WriteRawTag(16); - output.WriteEnum((int) ContinualGatheringPolicy); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } - iceServers_.WriteTo(output, _repeated_iceServers_codec); + publisherStats_.WriteTo(output, _repeated_publisherStats_codec); + subscriberStats_.WriteTo(output, _repeated_subscriberStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8515,15 +8680,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasIceTransportType) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteEnum((int) IceTransportType); + output.WriteUInt64(AsyncId); } - if (HasContinualGatheringPolicy) { - output.WriteRawTag(16); - output.WriteEnum((int) ContinualGatheringPolicy); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); } - iceServers_.WriteTo(ref output, _repeated_iceServers_codec); + publisherStats_.WriteTo(ref output, _repeated_publisherStats_codec); + subscriberStats_.WriteTo(ref output, _repeated_subscriberStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -8534,13 +8700,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (HasIceTransportType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceTransportType); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (HasContinualGatheringPolicy) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ContinualGatheringPolicy); + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } - size += iceServers_.CalculateSize(_repeated_iceServers_codec); + size += publisherStats_.CalculateSize(_repeated_publisherStats_codec); + size += subscriberStats_.CalculateSize(_repeated_subscriberStats_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8549,17 +8716,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RtcConfig other) { + public void MergeFrom(GetSessionStatsCallback other) { if (other == null) { return; } - if (other.HasIceTransportType) { - IceTransportType = other.IceTransportType; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } - if (other.HasContinualGatheringPolicy) { - ContinualGatheringPolicy = other.ContinualGatheringPolicy; + if (other.HasError) { + Error = other.Error; } - iceServers_.Add(other.iceServers_); + publisherStats_.Add(other.publisherStats_); + subscriberStats_.Add(other.subscriberStats_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8576,15 +8744,19 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + AsyncId = input.ReadUInt64(); break; } - case 16: { - ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + case 18: { + Error = input.ReadString(); break; } case 26: { - iceServers_.AddEntriesFrom(input, _repeated_iceServers_codec); + publisherStats_.AddEntriesFrom(input, _repeated_publisherStats_codec); + break; + } + case 34: { + subscriberStats_.AddEntriesFrom(input, _repeated_subscriberStats_codec); break; } } @@ -8603,15 +8775,19 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + AsyncId = input.ReadUInt64(); break; } - case 16: { - ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + case 18: { + Error = input.ReadString(); break; } case 26: { - iceServers_.AddEntriesFrom(ref input, _repeated_iceServers_codec); + publisherStats_.AddEntriesFrom(ref input, _repeated_publisherStats_codec); + break; + } + case 34: { + subscriberStats_.AddEntriesFrom(ref input, _repeated_subscriberStats_codec); break; } } @@ -8622,21 +8798,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomOptions : pb::IMessage + public sealed partial class VideoEncoding : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoEncoding()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[34]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8647,7 +8823,7 @@ public sealed partial class RoomOptions : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions() { + public VideoEncoding() { OnConstruction(); } @@ -8655,141 +8831,78 @@ public RoomOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions(RoomOptions other) : this() { - autoSubscribe_ = other.autoSubscribe_; - adaptiveStream_ = other.adaptiveStream_; - dynacast_ = other.dynacast_; - e2Ee_ = other.e2Ee_ != null ? other.e2Ee_.Clone() : null; - rtcConfig_ = other.rtcConfig_ != null ? other.rtcConfig_.Clone() : null; - joinRetries_ = other.joinRetries_; + public VideoEncoding(VideoEncoding other) : this() { + maxBitrate_ = other.maxBitrate_; + maxFramerate_ = other.maxFramerate_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions Clone() { - return new RoomOptions(this); + public VideoEncoding Clone() { + return new VideoEncoding(this); } - /// Field number for the "auto_subscribe" field. - public const int AutoSubscribeFieldNumber = 1; - private bool autoSubscribe_; + /// Field number for the "max_bitrate" field. + public const int MaxBitrateFieldNumber = 1; + private ulong maxBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoSubscribe { - get { return autoSubscribe_; } + public ulong MaxBitrate { + get { return maxBitrate_; } set { - autoSubscribe_ = value; + maxBitrate_ = value; } } - /// Field number for the "adaptive_stream" field. - public const int AdaptiveStreamFieldNumber = 2; - private bool adaptiveStream_; + /// Field number for the "max_framerate" field. + public const int MaxFramerateFieldNumber = 2; + private double maxFramerate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AdaptiveStream { - get { return adaptiveStream_; } + public double MaxFramerate { + get { return maxFramerate_; } set { - adaptiveStream_ = value; + maxFramerate_ = value; } } - /// Field number for the "dynacast" field. - public const int DynacastFieldNumber = 3; - private bool dynacast_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Dynacast { - get { return dynacast_; } - set { - dynacast_ = value; - } + public override bool Equals(object other) { + return Equals(other as VideoEncoding); } - /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 4; - private global::LiveKit.Proto.E2eeOptions e2Ee_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.E2eeOptions E2Ee { - get { return e2Ee_; } - set { - e2Ee_ = value; + public bool Equals(VideoEncoding other) { + if (ReferenceEquals(other, null)) { + return false; } - } - - /// Field number for the "rtc_config" field. - public const int RtcConfigFieldNumber = 5; - private global::LiveKit.Proto.RtcConfig rtcConfig_; - /// - /// allow to setup a custom RtcConfiguration - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RtcConfig RtcConfig { - get { return rtcConfig_; } - set { - rtcConfig_ = value; + if (ReferenceEquals(other, this)) { + return true; } + if (MaxBitrate != other.MaxBitrate) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxFramerate, other.MaxFramerate)) return false; + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "join_retries" field. - public const int JoinRetriesFieldNumber = 6; - private uint joinRetries_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint JoinRetries { - get { return joinRetries_; } - set { - joinRetries_ = value; + public override int GetHashCode() { + int hash = 1; + if (MaxBitrate != 0UL) hash ^= MaxBitrate.GetHashCode(); + if (MaxFramerate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxFramerate); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RoomOptions); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomOptions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AutoSubscribe != other.AutoSubscribe) return false; - if (AdaptiveStream != other.AdaptiveStream) return false; - if (Dynacast != other.Dynacast) return false; - if (!object.Equals(E2Ee, other.E2Ee)) return false; - if (!object.Equals(RtcConfig, other.RtcConfig)) return false; - if (JoinRetries != other.JoinRetries) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AutoSubscribe != false) hash ^= AutoSubscribe.GetHashCode(); - if (AdaptiveStream != false) hash ^= AdaptiveStream.GetHashCode(); - if (Dynacast != false) hash ^= Dynacast.GetHashCode(); - if (e2Ee_ != null) hash ^= E2Ee.GetHashCode(); - if (rtcConfig_ != null) hash ^= RtcConfig.GetHashCode(); - if (JoinRetries != 0) hash ^= JoinRetries.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8798,29 +8911,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AutoSubscribe != false) { + if (MaxBitrate != 0UL) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); - } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); - } - if (Dynacast != false) { - output.WriteRawTag(24); - output.WriteBool(Dynacast); - } - if (e2Ee_ != null) { - output.WriteRawTag(34); - output.WriteMessage(E2Ee); - } - if (rtcConfig_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RtcConfig); + output.WriteUInt64(MaxBitrate); } - if (JoinRetries != 0) { - output.WriteRawTag(48); - output.WriteUInt32(JoinRetries); + if (MaxFramerate != 0D) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8832,29 +8929,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AutoSubscribe != false) { + if (MaxBitrate != 0UL) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); - } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); - } - if (Dynacast != false) { - output.WriteRawTag(24); - output.WriteBool(Dynacast); - } - if (e2Ee_ != null) { - output.WriteRawTag(34); - output.WriteMessage(E2Ee); - } - if (rtcConfig_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RtcConfig); + output.WriteUInt64(MaxBitrate); } - if (JoinRetries != 0) { - output.WriteRawTag(48); - output.WriteUInt32(JoinRetries); + if (MaxFramerate != 0D) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8866,23 +8947,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AutoSubscribe != false) { - size += 1 + 1; - } - if (AdaptiveStream != false) { - size += 1 + 1; - } - if (Dynacast != false) { - size += 1 + 1; - } - if (e2Ee_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); - } - if (rtcConfig_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RtcConfig); + if (MaxBitrate != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); } - if (JoinRetries != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinRetries); + if (MaxFramerate != 0D) { + size += 1 + 8; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8892,33 +8961,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomOptions other) { + public void MergeFrom(VideoEncoding other) { if (other == null) { return; } - if (other.AutoSubscribe != false) { - AutoSubscribe = other.AutoSubscribe; - } - if (other.AdaptiveStream != false) { - AdaptiveStream = other.AdaptiveStream; - } - if (other.Dynacast != false) { - Dynacast = other.Dynacast; - } - if (other.e2Ee_ != null) { - if (e2Ee_ == null) { - E2Ee = new global::LiveKit.Proto.E2eeOptions(); - } - E2Ee.MergeFrom(other.E2Ee); - } - if (other.rtcConfig_ != null) { - if (rtcConfig_ == null) { - RtcConfig = new global::LiveKit.Proto.RtcConfig(); - } - RtcConfig.MergeFrom(other.RtcConfig); + if (other.MaxBitrate != 0UL) { + MaxBitrate = other.MaxBitrate; } - if (other.JoinRetries != 0) { - JoinRetries = other.JoinRetries; + if (other.MaxFramerate != 0D) { + MaxFramerate = other.MaxFramerate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8936,33 +8987,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - AutoSubscribe = input.ReadBool(); - break; - } - case 16: { - AdaptiveStream = input.ReadBool(); - break; - } - case 24: { - Dynacast = input.ReadBool(); - break; - } - case 34: { - if (e2Ee_ == null) { - E2Ee = new global::LiveKit.Proto.E2eeOptions(); - } - input.ReadMessage(E2Ee); - break; - } - case 42: { - if (rtcConfig_ == null) { - RtcConfig = new global::LiveKit.Proto.RtcConfig(); - } - input.ReadMessage(RtcConfig); + MaxBitrate = input.ReadUInt64(); break; } - case 48: { - JoinRetries = input.ReadUInt32(); + case 17: { + MaxFramerate = input.ReadDouble(); break; } } @@ -8981,33 +9010,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - AutoSubscribe = input.ReadBool(); - break; - } - case 16: { - AdaptiveStream = input.ReadBool(); - break; - } - case 24: { - Dynacast = input.ReadBool(); - break; - } - case 34: { - if (e2Ee_ == null) { - E2Ee = new global::LiveKit.Proto.E2eeOptions(); - } - input.ReadMessage(E2Ee); - break; - } - case 42: { - if (rtcConfig_ == null) { - RtcConfig = new global::LiveKit.Proto.RtcConfig(); - } - input.ReadMessage(RtcConfig); + MaxBitrate = input.ReadUInt64(); break; } - case 48: { - JoinRetries = input.ReadUInt32(); + case 17: { + MaxFramerate = input.ReadDouble(); break; } } @@ -9018,21 +9025,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TranscriptionSegment : pb::IMessage + public sealed partial class AudioEncoding : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranscriptionSegment()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioEncoding()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[35]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9043,7 +9050,7 @@ public sealed partial class TranscriptionSegment : pb::IMessageField number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; + /// Field number for the "max_bitrate" field. + public const int MaxBitrateFieldNumber = 1; + private ulong maxBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } + public ulong MaxBitrate { + get { return maxBitrate_; } set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + maxBitrate_ = value; } } - /// Field number for the "text" field. - public const int TextFieldNumber = 2; - private string text_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public override bool Equals(object other) { + return Equals(other as AudioEncoding); } - /// Field number for the "start_time" field. - public const int StartTimeFieldNumber = 3; - private ulong startTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong StartTime { - get { return startTime_; } - set { - startTime_ = value; + public bool Equals(AudioEncoding other) { + if (ReferenceEquals(other, null)) { + return false; } - } - - /// Field number for the "end_time" field. - public const int EndTimeFieldNumber = 4; - private ulong endTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong EndTime { - get { return endTime_; } - set { - endTime_ = value; - } - } - - /// Field number for the "final" field. - public const int FinalFieldNumber = 5; - private bool final_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Final { - get { return final_; } - set { - final_ = value; - } - } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 6; - private string language_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Language { - get { return language_; } - set { - language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TranscriptionSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TranscriptionSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Text != other.Text) return false; - if (StartTime != other.StartTime) return false; - if (EndTime != other.EndTime) return false; - if (Final != other.Final) return false; - if (Language != other.Language) return false; - return Equals(_unknownFields, other._unknownFields); + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxBitrate != other.MaxBitrate) return false; + return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Text.Length != 0) hash ^= Text.GetHashCode(); - if (StartTime != 0UL) hash ^= StartTime.GetHashCode(); - if (EndTime != 0UL) hash ^= EndTime.GetHashCode(); - if (Final != false) hash ^= Final.GetHashCode(); - if (Language.Length != 0) hash ^= Language.GetHashCode(); + if (MaxBitrate != 0UL) hash ^= MaxBitrate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9191,29 +9123,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (StartTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(StartTime); - } - if (EndTime != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(EndTime); - } - if (Final != false) { - output.WriteRawTag(40); - output.WriteBool(Final); - } - if (Language.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Language); + if (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9225,29 +9137,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (StartTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(StartTime); - } - if (EndTime != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(EndTime); - } - if (Final != false) { - output.WriteRawTag(40); - output.WriteBool(Final); - } - if (Language.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Language); + if (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9259,23 +9151,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (StartTime != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTime); - } - if (EndTime != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EndTime); - } - if (Final != false) { - size += 1 + 1; - } - if (Language.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); + if (MaxBitrate != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9285,27 +9162,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TranscriptionSegment other) { + public void MergeFrom(AudioEncoding other) { if (other == null) { return; } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Text.Length != 0) { - Text = other.Text; - } - if (other.StartTime != 0UL) { - StartTime = other.StartTime; - } - if (other.EndTime != 0UL) { - EndTime = other.EndTime; - } - if (other.Final != false) { - Final = other.Final; - } - if (other.Language.Length != 0) { - Language = other.Language; + if (other.MaxBitrate != 0UL) { + MaxBitrate = other.MaxBitrate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9322,28 +9184,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 24: { - StartTime = input.ReadUInt64(); - break; - } - case 32: { - EndTime = input.ReadUInt64(); - break; - } - case 40: { - Final = input.ReadBool(); - break; - } - case 50: { - Language = input.ReadString(); + case 8: { + MaxBitrate = input.ReadUInt64(); break; } } @@ -9361,28 +9203,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 24: { - StartTime = input.ReadUInt64(); - break; - } - case 32: { - EndTime = input.ReadUInt64(); - break; - } - case 40: { - Final = input.ReadBool(); - break; - } - case 50: { - Language = input.ReadString(); + case 8: { + MaxBitrate = input.ReadUInt64(); break; } } @@ -9393,21 +9215,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class BufferInfo : pb::IMessage + public sealed partial class TrackPublishOptions : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BufferInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublishOptions()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[36]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9418,7 +9240,7 @@ public sealed partial class BufferInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo() { + public TrackPublishOptions() { OnConstruction(); } @@ -9426,59 +9248,146 @@ public BufferInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo(BufferInfo other) : this() { - dataPtr_ = other.dataPtr_; - dataLen_ = other.dataLen_; + public TrackPublishOptions(TrackPublishOptions other) : this() { + videoEncoding_ = other.videoEncoding_ != null ? other.videoEncoding_.Clone() : null; + audioEncoding_ = other.audioEncoding_ != null ? other.audioEncoding_.Clone() : null; + videoCodec_ = other.videoCodec_; + dtx_ = other.dtx_; + red_ = other.red_; + simulcast_ = other.simulcast_; + source_ = other.source_; + stream_ = other.stream_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo Clone() { - return new BufferInfo(this); + public TrackPublishOptions Clone() { + return new TrackPublishOptions(this); } - /// Field number for the "data_ptr" field. - public const int DataPtrFieldNumber = 1; - private ulong dataPtr_; + /// Field number for the "video_encoding" field. + public const int VideoEncodingFieldNumber = 1; + private global::LiveKit.Proto.VideoEncoding videoEncoding_; + /// + /// encodings are optional + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataPtr { - get { return dataPtr_; } + public global::LiveKit.Proto.VideoEncoding VideoEncoding { + get { return videoEncoding_; } set { - dataPtr_ = value; + videoEncoding_ = value; } } - /// Field number for the "data_len" field. - public const int DataLenFieldNumber = 2; - private ulong dataLen_; + /// Field number for the "audio_encoding" field. + public const int AudioEncodingFieldNumber = 2; + private global::LiveKit.Proto.AudioEncoding audioEncoding_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataLen { - get { return dataLen_; } + public global::LiveKit.Proto.AudioEncoding AudioEncoding { + get { return audioEncoding_; } set { - dataLen_ = value; + audioEncoding_ = value; } } + /// Field number for the "video_codec" field. + public const int VideoCodecFieldNumber = 3; + private global::LiveKit.Proto.VideoCodec videoCodec_ = global::LiveKit.Proto.VideoCodec.Vp8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BufferInfo); + public global::LiveKit.Proto.VideoCodec VideoCodec { + get { return videoCodec_; } + set { + videoCodec_ = value; + } } + /// Field number for the "dtx" field. + public const int DtxFieldNumber = 4; + private bool dtx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BufferInfo other) { + public bool Dtx { + get { return dtx_; } + set { + dtx_ = value; + } + } + + /// Field number for the "red" field. + public const int RedFieldNumber = 5; + private bool red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Red { + get { return red_; } + set { + red_ = value; + } + } + + /// Field number for the "simulcast" field. + public const int SimulcastFieldNumber = 6; + private bool simulcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Simulcast { + get { return simulcast_; } + set { + simulcast_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 7; + private global::LiveKit.Proto.TrackSource source_ = global::LiveKit.Proto.TrackSource.SourceUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSource Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 8; + private string stream_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Stream { + get { return stream_; } + set { + stream_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrackPublishOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrackPublishOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (DataPtr != other.DataPtr) return false; - if (DataLen != other.DataLen) return false; + if (!object.Equals(VideoEncoding, other.VideoEncoding)) return false; + if (!object.Equals(AudioEncoding, other.AudioEncoding)) return false; + if (VideoCodec != other.VideoCodec) return false; + if (Dtx != other.Dtx) return false; + if (Red != other.Red) return false; + if (Simulcast != other.Simulcast) return false; + if (Source != other.Source) return false; + if (Stream != other.Stream) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9486,8 +9395,14 @@ public bool Equals(BufferInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (DataLen != 0UL) hash ^= DataLen.GetHashCode(); + if (videoEncoding_ != null) hash ^= VideoEncoding.GetHashCode(); + if (audioEncoding_ != null) hash ^= AudioEncoding.GetHashCode(); + if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) hash ^= VideoCodec.GetHashCode(); + if (Dtx != false) hash ^= Dtx.GetHashCode(); + if (Red != false) hash ^= Red.GetHashCode(); + if (Simulcast != false) hash ^= Simulcast.GetHashCode(); + if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= Source.GetHashCode(); + if (Stream.Length != 0) hash ^= Stream.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9506,13 +9421,37 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (DataPtr != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(DataPtr); + if (videoEncoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(VideoEncoding); } - if (DataLen != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(DataLen); + if (audioEncoding_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AudioEncoding); + } + if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { + output.WriteRawTag(24); + output.WriteEnum((int) VideoCodec); + } + if (Dtx != false) { + output.WriteRawTag(32); + output.WriteBool(Dtx); + } + if (Red != false) { + output.WriteRawTag(40); + output.WriteBool(Red); + } + if (Simulcast != false) { + output.WriteRawTag(48); + output.WriteBool(Simulcast); + } + if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + output.WriteRawTag(56); + output.WriteEnum((int) Source); + } + if (Stream.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Stream); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9524,13 +9463,37 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataPtr != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(DataPtr); + if (videoEncoding_ != null) { + output.WriteRawTag(10); + output.WriteMessage(VideoEncoding); } - if (DataLen != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(DataLen); + if (audioEncoding_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AudioEncoding); + } + if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { + output.WriteRawTag(24); + output.WriteEnum((int) VideoCodec); + } + if (Dtx != false) { + output.WriteRawTag(32); + output.WriteBool(Dtx); + } + if (Red != false) { + output.WriteRawTag(40); + output.WriteBool(Red); + } + if (Simulcast != false) { + output.WriteRawTag(48); + output.WriteBool(Simulcast); + } + if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + output.WriteRawTag(56); + output.WriteEnum((int) Source); + } + if (Stream.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Stream); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9542,11 +9505,29 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (DataPtr != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + if (videoEncoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoEncoding); } - if (DataLen != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataLen); + if (audioEncoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioEncoding); + } + if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VideoCodec); + } + if (Dtx != false) { + size += 1 + 1; + } + if (Red != false) { + size += 1 + 1; + } + if (Simulcast != false) { + size += 1 + 1; + } + if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (Stream.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Stream); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9556,15 +9537,39 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BufferInfo other) { + public void MergeFrom(TrackPublishOptions other) { if (other == null) { return; } - if (other.DataPtr != 0UL) { - DataPtr = other.DataPtr; + if (other.videoEncoding_ != null) { + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); + } + VideoEncoding.MergeFrom(other.VideoEncoding); } - if (other.DataLen != 0UL) { - DataLen = other.DataLen; + if (other.audioEncoding_ != null) { + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); + } + AudioEncoding.MergeFrom(other.AudioEncoding); + } + if (other.VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { + VideoCodec = other.VideoCodec; + } + if (other.Dtx != false) { + Dtx = other.Dtx; + } + if (other.Red != false) { + Red = other.Red; + } + if (other.Simulcast != false) { + Simulcast = other.Simulcast; + } + if (other.Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + Source = other.Source; + } + if (other.Stream.Length != 0) { + Stream = other.Stream; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9581,12 +9586,42 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - DataPtr = input.ReadUInt64(); + case 10: { + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); + } + input.ReadMessage(VideoEncoding); break; } - case 16: { - DataLen = input.ReadUInt64(); + case 18: { + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); + } + input.ReadMessage(AudioEncoding); + break; + } + case 24: { + VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); + break; + } + case 32: { + Dtx = input.ReadBool(); + break; + } + case 40: { + Red = input.ReadBool(); + break; + } + case 48: { + Simulcast = input.ReadBool(); + break; + } + case 56: { + Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 66: { + Stream = input.ReadString(); break; } } @@ -9604,12 +9639,42 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - DataPtr = input.ReadUInt64(); + case 10: { + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); + } + input.ReadMessage(VideoEncoding); break; } - case 16: { - DataLen = input.ReadUInt64(); + case 18: { + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); + } + input.ReadMessage(AudioEncoding); + break; + } + case 24: { + VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); + break; + } + case 32: { + Dtx = input.ReadBool(); + break; + } + case 40: { + Red = input.ReadBool(); + break; + } + case 48: { + Simulcast = input.ReadBool(); + break; + } + case 56: { + Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 66: { + Stream = input.ReadString(); break; } } @@ -9620,21 +9685,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class OwnedBuffer : pb::IMessage + public sealed partial class IceServer : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedBuffer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IceServer()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[37]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9645,7 +9710,7 @@ public sealed partial class OwnedBuffer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedBuffer() { + public IceServer() { OnConstruction(); } @@ -9653,59 +9718,72 @@ public OwnedBuffer() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedBuffer(OwnedBuffer other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; - data_ = other.data_ != null ? other.data_.Clone() : null; + public IceServer(IceServer other) : this() { + urls_ = other.urls_.Clone(); + username_ = other.username_; + password_ = other.password_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedBuffer Clone() { - return new OwnedBuffer(this); + public IceServer Clone() { + return new IceServer(this); } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; + /// Field number for the "urls" field. + public const int UrlsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_urls_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField urls_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } + public pbc::RepeatedField Urls { + get { return urls_; } + } + + /// Field number for the "username" field. + public const int UsernameFieldNumber = 2; + private string username_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Username { + get { return username_; } set { - handle_ = value; + username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private global::LiveKit.Proto.BufferInfo data_; + /// Field number for the "password" field. + public const int PasswordFieldNumber = 3; + private string password_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.BufferInfo Data { - get { return data_; } + public string Password { + get { return password_; } set { - data_ = value; + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedBuffer); + return Equals(other as IceServer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedBuffer other) { + public bool Equals(IceServer other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Data, other.Data)) return false; + if(!urls_.Equals(other.urls_)) return false; + if (Username != other.Username) return false; + if (Password != other.Password) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9713,8 +9791,9 @@ public bool Equals(OwnedBuffer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (data_ != null) hash ^= Data.GetHashCode(); + hash ^= urls_.GetHashCode(); + if (Username.Length != 0) hash ^= Username.GetHashCode(); + if (Password.Length != 0) hash ^= Password.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9733,13 +9812,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (data_ != null) { + urls_.WriteTo(output, _repeated_urls_codec); + if (Username.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Data); + output.WriteString(Username); + } + if (Password.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Password); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9751,13 +9831,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (handle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (data_ != null) { + urls_.WriteTo(ref output, _repeated_urls_codec); + if (Username.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Data); + output.WriteString(Username); + } + if (Password.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Password); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9769,11 +9850,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (handle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); + size += urls_.CalculateSize(_repeated_urls_codec); + if (Username.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + if (Password.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9783,21 +9865,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedBuffer other) { + public void MergeFrom(IceServer other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - Handle.MergeFrom(other.Handle); + urls_.Add(other.urls_); + if (other.Username.Length != 0) { + Username = other.Username; } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); - } - Data.MergeFrom(other.Data); + if (other.Password.Length != 0) { + Password = other.Password; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9815,17 +9892,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - input.ReadMessage(Handle); + urls_.AddEntriesFrom(input, _repeated_urls_codec); break; } case 18: { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); - } - input.ReadMessage(Data); + Username = input.ReadString(); + break; + } + case 26: { + Password = input.ReadString(); break; } } @@ -9844,17 +9919,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - input.ReadMessage(Handle); + urls_.AddEntriesFrom(ref input, _repeated_urls_codec); break; } case 18: { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); - } - input.ReadMessage(Data); + Username = input.ReadString(); + break; + } + case 26: { + Password = input.ReadString(); break; } } @@ -9865,21 +9938,22 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomEvent : pb::IMessage + public sealed partial class RtcConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcConfig()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[38]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9890,7 +9964,7 @@ public sealed partial class RoomEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent() { + public RtcConfig() { OnConstruction(); } @@ -9898,482 +9972,405 @@ public RoomEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent(RoomEvent other) : this() { - roomHandle_ = other.roomHandle_; - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - ParticipantConnected = other.ParticipantConnected.Clone(); - break; - case MessageOneofCase.ParticipantDisconnected: - ParticipantDisconnected = other.ParticipantDisconnected.Clone(); - break; - case MessageOneofCase.LocalTrackPublished: - LocalTrackPublished = other.LocalTrackPublished.Clone(); - break; - case MessageOneofCase.LocalTrackUnpublished: - LocalTrackUnpublished = other.LocalTrackUnpublished.Clone(); - break; - case MessageOneofCase.TrackPublished: - TrackPublished = other.TrackPublished.Clone(); - break; - case MessageOneofCase.TrackUnpublished: - TrackUnpublished = other.TrackUnpublished.Clone(); - break; - case MessageOneofCase.TrackSubscribed: - TrackSubscribed = other.TrackSubscribed.Clone(); - break; - case MessageOneofCase.TrackUnsubscribed: - TrackUnsubscribed = other.TrackUnsubscribed.Clone(); - break; - case MessageOneofCase.TrackSubscriptionFailed: - TrackSubscriptionFailed = other.TrackSubscriptionFailed.Clone(); - break; - case MessageOneofCase.TrackMuted: - TrackMuted = other.TrackMuted.Clone(); - break; - case MessageOneofCase.TrackUnmuted: - TrackUnmuted = other.TrackUnmuted.Clone(); - break; - case MessageOneofCase.ActiveSpeakersChanged: - ActiveSpeakersChanged = other.ActiveSpeakersChanged.Clone(); - break; - case MessageOneofCase.RoomMetadataChanged: - RoomMetadataChanged = other.RoomMetadataChanged.Clone(); - break; - case MessageOneofCase.RoomSidChanged: - RoomSidChanged = other.RoomSidChanged.Clone(); - break; - case MessageOneofCase.ParticipantMetadataChanged: - ParticipantMetadataChanged = other.ParticipantMetadataChanged.Clone(); - break; - case MessageOneofCase.ParticipantNameChanged: - ParticipantNameChanged = other.ParticipantNameChanged.Clone(); - break; - case MessageOneofCase.ConnectionQualityChanged: - ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); - break; - case MessageOneofCase.ConnectionStateChanged: - ConnectionStateChanged = other.ConnectionStateChanged.Clone(); - break; - case MessageOneofCase.Disconnected: - Disconnected = other.Disconnected.Clone(); - break; - case MessageOneofCase.Reconnecting: - Reconnecting = other.Reconnecting.Clone(); - break; - case MessageOneofCase.Reconnected: - Reconnected = other.Reconnected.Clone(); - break; - case MessageOneofCase.E2EeStateChanged: - E2EeStateChanged = other.E2EeStateChanged.Clone(); - break; - case MessageOneofCase.Eos: - Eos = other.Eos.Clone(); - break; - case MessageOneofCase.DataPacketReceived: - DataPacketReceived = other.DataPacketReceived.Clone(); - break; - } - + public RtcConfig(RtcConfig other) : this() { + _hasBits0 = other._hasBits0; + iceTransportType_ = other.iceTransportType_; + continualGatheringPolicy_ = other.continualGatheringPolicy_; + iceServers_ = other.iceServers_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent Clone() { - return new RoomEvent(this); + public RtcConfig Clone() { + return new RtcConfig(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private ulong roomHandle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong RoomHandle { - get { return roomHandle_; } - set { - roomHandle_ = value; - } - } + /// Field number for the "ice_transport_type" field. + public const int IceTransportTypeFieldNumber = 1; + private readonly static global::LiveKit.Proto.IceTransportType IceTransportTypeDefaultValue = global::LiveKit.Proto.IceTransportType.TransportRelay; - /// Field number for the "participant_connected" field. - public const int ParticipantConnectedFieldNumber = 2; + private global::LiveKit.Proto.IceTransportType iceTransportType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantConnected ParticipantConnected { - get { return messageCase_ == MessageOneofCase.ParticipantConnected ? (global::LiveKit.Proto.ParticipantConnected) message_ : null; } + public global::LiveKit.Proto.IceTransportType IceTransportType { + get { if ((_hasBits0 & 1) != 0) { return iceTransportType_; } else { return IceTransportTypeDefaultValue; } } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantConnected; + _hasBits0 |= 1; + iceTransportType_ = value; } } - - /// Field number for the "participant_disconnected" field. - public const int ParticipantDisconnectedFieldNumber = 3; + /// Gets whether the "ice_transport_type" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantDisconnected ParticipantDisconnected { - get { return messageCase_ == MessageOneofCase.ParticipantDisconnected ? (global::LiveKit.Proto.ParticipantDisconnected) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantDisconnected; - } + public bool HasIceTransportType { + get { return (_hasBits0 & 1) != 0; } } - - /// Field number for the "local_track_published" field. - public const int LocalTrackPublishedFieldNumber = 4; + /// Clears the value of the "ice_transport_type" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.LocalTrackPublished LocalTrackPublished { - get { return messageCase_ == MessageOneofCase.LocalTrackPublished ? (global::LiveKit.Proto.LocalTrackPublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackPublished; - } + public void ClearIceTransportType() { + _hasBits0 &= ~1; } - /// Field number for the "local_track_unpublished" field. - public const int LocalTrackUnpublishedFieldNumber = 5; + /// Field number for the "continual_gathering_policy" field. + public const int ContinualGatheringPolicyFieldNumber = 2; + private readonly static global::LiveKit.Proto.ContinualGatheringPolicy ContinualGatheringPolicyDefaultValue = global::LiveKit.Proto.ContinualGatheringPolicy.GatherOnce; + + private global::LiveKit.Proto.ContinualGatheringPolicy continualGatheringPolicy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.LocalTrackUnpublished LocalTrackUnpublished { - get { return messageCase_ == MessageOneofCase.LocalTrackUnpublished ? (global::LiveKit.Proto.LocalTrackUnpublished) message_ : null; } + public global::LiveKit.Proto.ContinualGatheringPolicy ContinualGatheringPolicy { + get { if ((_hasBits0 & 2) != 0) { return continualGatheringPolicy_; } else { return ContinualGatheringPolicyDefaultValue; } } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackUnpublished; + _hasBits0 |= 2; + continualGatheringPolicy_ = value; } } - - /// Field number for the "track_published" field. - public const int TrackPublishedFieldNumber = 6; + /// Gets whether the "continual_gathering_policy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackPublished TrackPublished { - get { return messageCase_ == MessageOneofCase.TrackPublished ? (global::LiveKit.Proto.TrackPublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackPublished; - } + public bool HasContinualGatheringPolicy { + get { return (_hasBits0 & 2) != 0; } } - - /// Field number for the "track_unpublished" field. - public const int TrackUnpublishedFieldNumber = 7; + /// Clears the value of the "continual_gathering_policy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnpublished TrackUnpublished { - get { return messageCase_ == MessageOneofCase.TrackUnpublished ? (global::LiveKit.Proto.TrackUnpublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnpublished; - } + public void ClearContinualGatheringPolicy() { + _hasBits0 &= ~2; } - /// Field number for the "track_subscribed" field. - public const int TrackSubscribedFieldNumber = 8; + /// Field number for the "ice_servers" field. + public const int IceServersFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_iceServers_codec + = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.IceServer.Parser); + private readonly pbc::RepeatedField iceServers_ = new pbc::RepeatedField(); + /// + /// empty fallback to default + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSubscribed TrackSubscribed { - get { return messageCase_ == MessageOneofCase.TrackSubscribed ? (global::LiveKit.Proto.TrackSubscribed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscribed; - } + public pbc::RepeatedField IceServers { + get { return iceServers_; } } - /// Field number for the "track_unsubscribed" field. - public const int TrackUnsubscribedFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnsubscribed TrackUnsubscribed { - get { return messageCase_ == MessageOneofCase.TrackUnsubscribed ? (global::LiveKit.Proto.TrackUnsubscribed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnsubscribed; - } + public override bool Equals(object other) { + return Equals(other as RtcConfig); } - /// Field number for the "track_subscription_failed" field. - public const int TrackSubscriptionFailedFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSubscriptionFailed TrackSubscriptionFailed { - get { return messageCase_ == MessageOneofCase.TrackSubscriptionFailed ? (global::LiveKit.Proto.TrackSubscriptionFailed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscriptionFailed; + public bool Equals(RtcConfig other) { + if (ReferenceEquals(other, null)) { + return false; } + if (ReferenceEquals(other, this)) { + return true; + } + if (IceTransportType != other.IceTransportType) return false; + if (ContinualGatheringPolicy != other.ContinualGatheringPolicy) return false; + if(!iceServers_.Equals(other.iceServers_)) return false; + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "track_muted" field. - public const int TrackMutedFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackMuted TrackMuted { - get { return messageCase_ == MessageOneofCase.TrackMuted ? (global::LiveKit.Proto.TrackMuted) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackMuted; + public override int GetHashCode() { + int hash = 1; + if (HasIceTransportType) hash ^= IceTransportType.GetHashCode(); + if (HasContinualGatheringPolicy) hash ^= ContinualGatheringPolicy.GetHashCode(); + hash ^= iceServers_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "track_unmuted" field. - public const int TrackUnmutedFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnmuted TrackUnmuted { - get { return messageCase_ == MessageOneofCase.TrackUnmuted ? (global::LiveKit.Proto.TrackUnmuted) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnmuted; - } + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "active_speakers_changed" field. - public const int ActiveSpeakersChangedFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ActiveSpeakersChanged ActiveSpeakersChanged { - get { return messageCase_ == MessageOneofCase.ActiveSpeakersChanged ? (global::LiveKit.Proto.ActiveSpeakersChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ActiveSpeakersChanged; + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasIceTransportType) { + output.WriteRawTag(8); + output.WriteEnum((int) IceTransportType); + } + if (HasContinualGatheringPolicy) { + output.WriteRawTag(16); + output.WriteEnum((int) ContinualGatheringPolicy); + } + iceServers_.WriteTo(output, _repeated_iceServers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } + #endif } - /// Field number for the "room_metadata_changed" field. - public const int RoomMetadataChangedFieldNumber = 14; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomMetadataChanged RoomMetadataChanged { - get { return messageCase_ == MessageOneofCase.RoomMetadataChanged ? (global::LiveKit.Proto.RoomMetadataChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomMetadataChanged; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasIceTransportType) { + output.WriteRawTag(8); + output.WriteEnum((int) IceTransportType); + } + if (HasContinualGatheringPolicy) { + output.WriteRawTag(16); + output.WriteEnum((int) ContinualGatheringPolicy); + } + iceServers_.WriteTo(ref output, _repeated_iceServers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "room_sid_changed" field. - public const int RoomSidChangedFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomSidChanged RoomSidChanged { - get { return messageCase_ == MessageOneofCase.RoomSidChanged ? (global::LiveKit.Proto.RoomSidChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomSidChanged; + public int CalculateSize() { + int size = 0; + if (HasIceTransportType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceTransportType); + } + if (HasContinualGatheringPolicy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ContinualGatheringPolicy); + } + size += iceServers_.CalculateSize(_repeated_iceServers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "participant_metadata_changed" field. - public const int ParticipantMetadataChangedFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantMetadataChanged ParticipantMetadataChanged { - get { return messageCase_ == MessageOneofCase.ParticipantMetadataChanged ? (global::LiveKit.Proto.ParticipantMetadataChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantMetadataChanged; + public void MergeFrom(RtcConfig other) { + if (other == null) { + return; + } + if (other.HasIceTransportType) { + IceTransportType = other.IceTransportType; + } + if (other.HasContinualGatheringPolicy) { + ContinualGatheringPolicy = other.ContinualGatheringPolicy; } + iceServers_.Add(other.iceServers_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// Field number for the "participant_name_changed" field. - public const int ParticipantNameChangedFieldNumber = 17; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantNameChanged ParticipantNameChanged { - get { return messageCase_ == MessageOneofCase.ParticipantNameChanged ? (global::LiveKit.Proto.ParticipantNameChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantNameChanged; - } - } - - /// Field number for the "connection_quality_changed" field. - public const int ConnectionQualityChangedFieldNumber = 18; + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + break; + } + case 16: { + ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + break; + } + case 26: { + iceServers_.AddEntriesFrom(input, _repeated_iceServers_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ConnectionQualityChanged ConnectionQualityChanged { - get { return messageCase_ == MessageOneofCase.ConnectionQualityChanged ? (global::LiveKit.Proto.ConnectionQualityChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionQualityChanged; + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + break; + } + case 16: { + ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + break; + } + case 26: { + iceServers_.AddEntriesFrom(ref input, _repeated_iceServers_codec); + break; + } + } } } + #endif - /// Field number for the "connection_state_changed" field. - public const int ConnectionStateChangedFieldNumber = 19; + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RoomOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomOptions()); + private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ConnectionStateChanged ConnectionStateChanged { - get { return messageCase_ == MessageOneofCase.ConnectionStateChanged ? (global::LiveKit.Proto.ConnectionStateChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionStateChanged; - } + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[40]; } } - /// Field number for the "disconnected" field. - public const int DisconnectedFieldNumber = 21; - /// - /// Connected connected = 20; - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Disconnected Disconnected { - get { return messageCase_ == MessageOneofCase.Disconnected ? (global::LiveKit.Proto.Disconnected) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Disconnected; - } + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - /// Field number for the "reconnecting" field. - public const int ReconnectingFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Reconnecting Reconnecting { - get { return messageCase_ == MessageOneofCase.Reconnecting ? (global::LiveKit.Proto.Reconnecting) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnecting; - } + public RoomOptions() { + OnConstruction(); } - /// Field number for the "reconnected" field. - public const int ReconnectedFieldNumber = 23; + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Reconnected Reconnected { - get { return messageCase_ == MessageOneofCase.Reconnected ? (global::LiveKit.Proto.Reconnected) message_ : null; } + public RoomOptions(RoomOptions other) : this() { + autoSubscribe_ = other.autoSubscribe_; + adaptiveStream_ = other.adaptiveStream_; + dynacast_ = other.dynacast_; + e2Ee_ = other.e2Ee_ != null ? other.e2Ee_.Clone() : null; + rtcConfig_ = other.rtcConfig_ != null ? other.rtcConfig_.Clone() : null; + joinRetries_ = other.joinRetries_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomOptions Clone() { + return new RoomOptions(this); + } + + /// Field number for the "auto_subscribe" field. + public const int AutoSubscribeFieldNumber = 1; + private bool autoSubscribe_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoSubscribe { + get { return autoSubscribe_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnected; + autoSubscribe_ = value; } } - /// Field number for the "e2ee_state_changed" field. - public const int E2EeStateChangedFieldNumber = 24; + /// Field number for the "adaptive_stream" field. + public const int AdaptiveStreamFieldNumber = 2; + private bool adaptiveStream_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.E2eeStateChanged E2EeStateChanged { - get { return messageCase_ == MessageOneofCase.E2EeStateChanged ? (global::LiveKit.Proto.E2eeStateChanged) message_ : null; } + public bool AdaptiveStream { + get { return adaptiveStream_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.E2EeStateChanged; + adaptiveStream_ = value; } } - /// Field number for the "eos" field. - public const int EosFieldNumber = 25; - /// - /// The stream of room events has ended - /// + /// Field number for the "dynacast" field. + public const int DynacastFieldNumber = 3; + private bool dynacast_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomEOS Eos { - get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.RoomEOS) message_ : null; } + public bool Dynacast { + get { return dynacast_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos; + dynacast_ = value; } } - /// Field number for the "data_packet_received" field. - public const int DataPacketReceivedFieldNumber = 26; + /// Field number for the "e2ee" field. + public const int E2EeFieldNumber = 4; + private global::LiveKit.Proto.E2eeOptions e2Ee_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.DataPacketReceived DataPacketReceived { - get { return messageCase_ == MessageOneofCase.DataPacketReceived ? (global::LiveKit.Proto.DataPacketReceived) message_ : null; } + public global::LiveKit.Proto.E2eeOptions E2Ee { + get { return e2Ee_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataPacketReceived; + e2Ee_ = value; } } - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - ParticipantConnected = 2, - ParticipantDisconnected = 3, - LocalTrackPublished = 4, - LocalTrackUnpublished = 5, - TrackPublished = 6, - TrackUnpublished = 7, - TrackSubscribed = 8, - TrackUnsubscribed = 9, - TrackSubscriptionFailed = 10, - TrackMuted = 11, - TrackUnmuted = 12, - ActiveSpeakersChanged = 13, - RoomMetadataChanged = 14, - RoomSidChanged = 15, - ParticipantMetadataChanged = 16, - ParticipantNameChanged = 17, - ConnectionQualityChanged = 18, - ConnectionStateChanged = 19, - Disconnected = 21, - Reconnecting = 22, - Reconnected = 23, - E2EeStateChanged = 24, - Eos = 25, - DataPacketReceived = 26, - } - private MessageOneofCase messageCase_ = MessageOneofCase.None; + /// Field number for the "rtc_config" field. + public const int RtcConfigFieldNumber = 5; + private global::LiveKit.Proto.RtcConfig rtcConfig_; + /// + /// allow to setup a custom RtcConfiguration + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageOneofCase MessageCase { - get { return messageCase_; } + public global::LiveKit.Proto.RtcConfig RtcConfig { + get { return rtcConfig_; } + set { + rtcConfig_ = value; + } } + /// Field number for the "join_retries" field. + public const int JoinRetriesFieldNumber = 6; + private uint joinRetries_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMessage() { - messageCase_ = MessageOneofCase.None; - message_ = null; + public uint JoinRetries { + get { return joinRetries_; } + set { + joinRetries_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomEvent); + return Equals(other as RoomOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomEvent other) { + public bool Equals(RoomOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RoomHandle != other.RoomHandle) return false; - if (!object.Equals(ParticipantConnected, other.ParticipantConnected)) return false; - if (!object.Equals(ParticipantDisconnected, other.ParticipantDisconnected)) return false; - if (!object.Equals(LocalTrackPublished, other.LocalTrackPublished)) return false; - if (!object.Equals(LocalTrackUnpublished, other.LocalTrackUnpublished)) return false; - if (!object.Equals(TrackPublished, other.TrackPublished)) return false; - if (!object.Equals(TrackUnpublished, other.TrackUnpublished)) return false; - if (!object.Equals(TrackSubscribed, other.TrackSubscribed)) return false; - if (!object.Equals(TrackUnsubscribed, other.TrackUnsubscribed)) return false; - if (!object.Equals(TrackSubscriptionFailed, other.TrackSubscriptionFailed)) return false; - if (!object.Equals(TrackMuted, other.TrackMuted)) return false; - if (!object.Equals(TrackUnmuted, other.TrackUnmuted)) return false; - if (!object.Equals(ActiveSpeakersChanged, other.ActiveSpeakersChanged)) return false; - if (!object.Equals(RoomMetadataChanged, other.RoomMetadataChanged)) return false; - if (!object.Equals(RoomSidChanged, other.RoomSidChanged)) return false; - if (!object.Equals(ParticipantMetadataChanged, other.ParticipantMetadataChanged)) return false; - if (!object.Equals(ParticipantNameChanged, other.ParticipantNameChanged)) return false; - if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; - if (!object.Equals(ConnectionStateChanged, other.ConnectionStateChanged)) return false; - if (!object.Equals(Disconnected, other.Disconnected)) return false; - if (!object.Equals(Reconnecting, other.Reconnecting)) return false; - if (!object.Equals(Reconnected, other.Reconnected)) return false; - if (!object.Equals(E2EeStateChanged, other.E2EeStateChanged)) return false; - if (!object.Equals(Eos, other.Eos)) return false; - if (!object.Equals(DataPacketReceived, other.DataPacketReceived)) return false; - if (MessageCase != other.MessageCase) return false; + if (AutoSubscribe != other.AutoSubscribe) return false; + if (AdaptiveStream != other.AdaptiveStream) return false; + if (Dynacast != other.Dynacast) return false; + if (!object.Equals(E2Ee, other.E2Ee)) return false; + if (!object.Equals(RtcConfig, other.RtcConfig)) return false; + if (JoinRetries != other.JoinRetries) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10381,32 +10378,12 @@ public bool Equals(RoomEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) hash ^= ParticipantConnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) hash ^= ParticipantDisconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) hash ^= LocalTrackPublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) hash ^= LocalTrackUnpublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackPublished) hash ^= TrackPublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) hash ^= TrackUnpublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) hash ^= TrackSubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) hash ^= TrackUnsubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) hash ^= TrackSubscriptionFailed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackMuted) hash ^= TrackMuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) hash ^= TrackUnmuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) hash ^= ActiveSpeakersChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) hash ^= RoomMetadataChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) hash ^= RoomSidChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) hash ^= ParticipantMetadataChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) hash ^= ParticipantNameChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) hash ^= ConnectionStateChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.Disconnected) hash ^= Disconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnecting) hash ^= Reconnecting.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnected) hash ^= Reconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) hash ^= E2EeStateChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) hash ^= DataPacketReceived.GetHashCode(); - hash ^= (int) messageCase_; + if (AutoSubscribe != false) hash ^= AutoSubscribe.GetHashCode(); + if (AdaptiveStream != false) hash ^= AdaptiveStream.GetHashCode(); + if (Dynacast != false) hash ^= Dynacast.GetHashCode(); + if (e2Ee_ != null) hash ^= E2Ee.GetHashCode(); + if (rtcConfig_ != null) hash ^= RtcConfig.GetHashCode(); + if (JoinRetries != 0) hash ^= JoinRetries.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10425,105 +10402,29 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (AutoSubscribe != false) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteBool(AutoSubscribe); } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); + if (AdaptiveStream != false) { + output.WriteRawTag(16); + output.WriteBool(AdaptiveStream); } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); + if (Dynacast != false) { + output.WriteRawTag(24); + output.WriteBool(Dynacast); } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + if (e2Ee_ != null) { output.WriteRawTag(34); - output.WriteMessage(LocalTrackPublished); + output.WriteMessage(E2Ee); } - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + if (rtcConfig_ != null) { output.WriteRawTag(42); - output.WriteMessage(LocalTrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(50); - output.WriteMessage(TrackPublished); - } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(58); - output.WriteMessage(TrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(66); - output.WriteMessage(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(74); - output.WriteMessage(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - output.WriteRawTag(82); - output.WriteMessage(TrackSubscriptionFailed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(90); - output.WriteMessage(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(98); - output.WriteMessage(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - output.WriteRawTag(106); - output.WriteMessage(ActiveSpeakersChanged); - } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - output.WriteRawTag(114); - output.WriteMessage(RoomMetadataChanged); - } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - output.WriteRawTag(122); - output.WriteMessage(RoomSidChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - output.WriteRawTag(130, 1); - output.WriteMessage(ParticipantMetadataChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - output.WriteRawTag(138, 1); - output.WriteMessage(ParticipantNameChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(146, 1); - output.WriteMessage(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(154, 1); - output.WriteMessage(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(170, 1); - output.WriteMessage(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(178, 1); - output.WriteMessage(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(186, 1); - output.WriteMessage(Reconnected); - } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - output.WriteRawTag(194, 1); - output.WriteMessage(E2EeStateChanged); - } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(202, 1); - output.WriteMessage(Eos); + output.WriteMessage(RtcConfig); } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - output.WriteRawTag(210, 1); - output.WriteMessage(DataPacketReceived); + if (JoinRetries != 0) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10535,105 +10436,29 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RoomHandle != 0UL) { + if (AutoSubscribe != false) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteBool(AutoSubscribe); } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); + if (AdaptiveStream != false) { + output.WriteRawTag(16); + output.WriteBool(AdaptiveStream); } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); + if (Dynacast != false) { + output.WriteRawTag(24); + output.WriteBool(Dynacast); } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + if (e2Ee_ != null) { output.WriteRawTag(34); - output.WriteMessage(LocalTrackPublished); + output.WriteMessage(E2Ee); } - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + if (rtcConfig_ != null) { output.WriteRawTag(42); - output.WriteMessage(LocalTrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(50); - output.WriteMessage(TrackPublished); - } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(58); - output.WriteMessage(TrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(66); - output.WriteMessage(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(74); - output.WriteMessage(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - output.WriteRawTag(82); - output.WriteMessage(TrackSubscriptionFailed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(90); - output.WriteMessage(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(98); - output.WriteMessage(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - output.WriteRawTag(106); - output.WriteMessage(ActiveSpeakersChanged); - } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - output.WriteRawTag(114); - output.WriteMessage(RoomMetadataChanged); - } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - output.WriteRawTag(122); - output.WriteMessage(RoomSidChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - output.WriteRawTag(130, 1); - output.WriteMessage(ParticipantMetadataChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - output.WriteRawTag(138, 1); - output.WriteMessage(ParticipantNameChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(146, 1); - output.WriteMessage(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(154, 1); - output.WriteMessage(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(170, 1); - output.WriteMessage(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(178, 1); - output.WriteMessage(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(186, 1); - output.WriteMessage(Reconnected); - } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - output.WriteRawTag(194, 1); - output.WriteMessage(E2EeStateChanged); - } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(202, 1); - output.WriteMessage(Eos); + output.WriteMessage(RtcConfig); } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - output.WriteRawTag(210, 1); - output.WriteMessage(DataPacketReceived); + if (JoinRetries != 0) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10645,243 +10470,60 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RoomHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); - } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantConnected); + if (AutoSubscribe != false) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantDisconnected); + if (AdaptiveStream != false) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackPublished); + if (Dynacast != false) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackUnpublished); + if (e2Ee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); } - if (messageCase_ == MessageOneofCase.TrackPublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackPublished); + if (rtcConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RtcConfig); } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnpublished); + if (JoinRetries != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinRetries); } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscriptionFailed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveSpeakersChanged); - } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMetadataChanged); - } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomSidChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantMetadataChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantNameChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnected); - } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2EeStateChanged); - } - if (messageCase_ == MessageOneofCase.Eos) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Eos); - } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataPacketReceived); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomEvent other) { + public void MergeFrom(RoomOptions other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { - RoomHandle = other.RoomHandle; + if (other.AutoSubscribe != false) { + AutoSubscribe = other.AutoSubscribe; } - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - if (ParticipantConnected == null) { - ParticipantConnected = new global::LiveKit.Proto.ParticipantConnected(); - } - ParticipantConnected.MergeFrom(other.ParticipantConnected); - break; - case MessageOneofCase.ParticipantDisconnected: - if (ParticipantDisconnected == null) { - ParticipantDisconnected = new global::LiveKit.Proto.ParticipantDisconnected(); - } - ParticipantDisconnected.MergeFrom(other.ParticipantDisconnected); - break; - case MessageOneofCase.LocalTrackPublished: - if (LocalTrackPublished == null) { - LocalTrackPublished = new global::LiveKit.Proto.LocalTrackPublished(); - } - LocalTrackPublished.MergeFrom(other.LocalTrackPublished); - break; - case MessageOneofCase.LocalTrackUnpublished: - if (LocalTrackUnpublished == null) { - LocalTrackUnpublished = new global::LiveKit.Proto.LocalTrackUnpublished(); - } - LocalTrackUnpublished.MergeFrom(other.LocalTrackUnpublished); - break; - case MessageOneofCase.TrackPublished: - if (TrackPublished == null) { - TrackPublished = new global::LiveKit.Proto.TrackPublished(); - } - TrackPublished.MergeFrom(other.TrackPublished); - break; - case MessageOneofCase.TrackUnpublished: - if (TrackUnpublished == null) { - TrackUnpublished = new global::LiveKit.Proto.TrackUnpublished(); - } - TrackUnpublished.MergeFrom(other.TrackUnpublished); - break; - case MessageOneofCase.TrackSubscribed: - if (TrackSubscribed == null) { - TrackSubscribed = new global::LiveKit.Proto.TrackSubscribed(); - } - TrackSubscribed.MergeFrom(other.TrackSubscribed); - break; - case MessageOneofCase.TrackUnsubscribed: - if (TrackUnsubscribed == null) { - TrackUnsubscribed = new global::LiveKit.Proto.TrackUnsubscribed(); - } - TrackUnsubscribed.MergeFrom(other.TrackUnsubscribed); - break; - case MessageOneofCase.TrackSubscriptionFailed: - if (TrackSubscriptionFailed == null) { - TrackSubscriptionFailed = new global::LiveKit.Proto.TrackSubscriptionFailed(); - } - TrackSubscriptionFailed.MergeFrom(other.TrackSubscriptionFailed); - break; - case MessageOneofCase.TrackMuted: - if (TrackMuted == null) { - TrackMuted = new global::LiveKit.Proto.TrackMuted(); - } - TrackMuted.MergeFrom(other.TrackMuted); - break; - case MessageOneofCase.TrackUnmuted: - if (TrackUnmuted == null) { - TrackUnmuted = new global::LiveKit.Proto.TrackUnmuted(); - } - TrackUnmuted.MergeFrom(other.TrackUnmuted); - break; - case MessageOneofCase.ActiveSpeakersChanged: - if (ActiveSpeakersChanged == null) { - ActiveSpeakersChanged = new global::LiveKit.Proto.ActiveSpeakersChanged(); - } - ActiveSpeakersChanged.MergeFrom(other.ActiveSpeakersChanged); - break; - case MessageOneofCase.RoomMetadataChanged: - if (RoomMetadataChanged == null) { - RoomMetadataChanged = new global::LiveKit.Proto.RoomMetadataChanged(); - } - RoomMetadataChanged.MergeFrom(other.RoomMetadataChanged); - break; - case MessageOneofCase.RoomSidChanged: - if (RoomSidChanged == null) { - RoomSidChanged = new global::LiveKit.Proto.RoomSidChanged(); - } - RoomSidChanged.MergeFrom(other.RoomSidChanged); - break; - case MessageOneofCase.ParticipantMetadataChanged: - if (ParticipantMetadataChanged == null) { - ParticipantMetadataChanged = new global::LiveKit.Proto.ParticipantMetadataChanged(); - } - ParticipantMetadataChanged.MergeFrom(other.ParticipantMetadataChanged); - break; - case MessageOneofCase.ParticipantNameChanged: - if (ParticipantNameChanged == null) { - ParticipantNameChanged = new global::LiveKit.Proto.ParticipantNameChanged(); - } - ParticipantNameChanged.MergeFrom(other.ParticipantNameChanged); - break; - case MessageOneofCase.ConnectionQualityChanged: - if (ConnectionQualityChanged == null) { - ConnectionQualityChanged = new global::LiveKit.Proto.ConnectionQualityChanged(); - } - ConnectionQualityChanged.MergeFrom(other.ConnectionQualityChanged); - break; - case MessageOneofCase.ConnectionStateChanged: - if (ConnectionStateChanged == null) { - ConnectionStateChanged = new global::LiveKit.Proto.ConnectionStateChanged(); - } - ConnectionStateChanged.MergeFrom(other.ConnectionStateChanged); - break; - case MessageOneofCase.Disconnected: - if (Disconnected == null) { - Disconnected = new global::LiveKit.Proto.Disconnected(); - } - Disconnected.MergeFrom(other.Disconnected); - break; - case MessageOneofCase.Reconnecting: - if (Reconnecting == null) { - Reconnecting = new global::LiveKit.Proto.Reconnecting(); - } - Reconnecting.MergeFrom(other.Reconnecting); - break; - case MessageOneofCase.Reconnected: - if (Reconnected == null) { - Reconnected = new global::LiveKit.Proto.Reconnected(); - } - Reconnected.MergeFrom(other.Reconnected); - break; - case MessageOneofCase.E2EeStateChanged: - if (E2EeStateChanged == null) { - E2EeStateChanged = new global::LiveKit.Proto.E2eeStateChanged(); - } - E2EeStateChanged.MergeFrom(other.E2EeStateChanged); - break; - case MessageOneofCase.Eos: - if (Eos == null) { - Eos = new global::LiveKit.Proto.RoomEOS(); - } - Eos.MergeFrom(other.Eos); - break; - case MessageOneofCase.DataPacketReceived: - if (DataPacketReceived == null) { - DataPacketReceived = new global::LiveKit.Proto.DataPacketReceived(); - } - DataPacketReceived.MergeFrom(other.DataPacketReceived); - break; + if (other.AdaptiveStream != false) { + AdaptiveStream = other.AdaptiveStream; + } + if (other.Dynacast != false) { + Dynacast = other.Dynacast; + } + if (other.e2Ee_ != null) { + if (e2Ee_ == null) { + E2Ee = new global::LiveKit.Proto.E2eeOptions(); + } + E2Ee.MergeFrom(other.E2Ee); + } + if (other.rtcConfig_ != null) { + if (rtcConfig_ == null) { + RtcConfig = new global::LiveKit.Proto.RtcConfig(); + } + RtcConfig.MergeFrom(other.RtcConfig); + } + if (other.JoinRetries != 0) { + JoinRetries = other.JoinRetries; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10898,223 +10540,33 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AutoSubscribe = input.ReadBool(); break; } - case 18: { - global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - subBuilder.MergeFrom(ParticipantConnected); - } - input.ReadMessage(subBuilder); - ParticipantConnected = subBuilder; + case 16: { + AdaptiveStream = input.ReadBool(); break; } - case 26: { - global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - subBuilder.MergeFrom(ParticipantDisconnected); - } - input.ReadMessage(subBuilder); - ParticipantDisconnected = subBuilder; + case 24: { + Dynacast = input.ReadBool(); break; } case 34: { - global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - subBuilder.MergeFrom(LocalTrackPublished); + if (e2Ee_ == null) { + E2Ee = new global::LiveKit.Proto.E2eeOptions(); } - input.ReadMessage(subBuilder); - LocalTrackPublished = subBuilder; + input.ReadMessage(E2Ee); break; } case 42: { - global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - subBuilder.MergeFrom(LocalTrackUnpublished); + if (rtcConfig_ == null) { + RtcConfig = new global::LiveKit.Proto.RtcConfig(); } - input.ReadMessage(subBuilder); - LocalTrackUnpublished = subBuilder; - break; - } - case 50: { - global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); - if (messageCase_ == MessageOneofCase.TrackPublished) { - subBuilder.MergeFrom(TrackPublished); - } - input.ReadMessage(subBuilder); - TrackPublished = subBuilder; - break; - } - case 58: { - global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - subBuilder.MergeFrom(TrackUnpublished); - } - input.ReadMessage(subBuilder); - TrackUnpublished = subBuilder; - break; - } - case 66: { - global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - subBuilder.MergeFrom(TrackSubscribed); - } - input.ReadMessage(subBuilder); - TrackSubscribed = subBuilder; - break; - } - case 74: { - global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - subBuilder.MergeFrom(TrackUnsubscribed); - } - input.ReadMessage(subBuilder); - TrackUnsubscribed = subBuilder; - break; - } - case 82: { - global::LiveKit.Proto.TrackSubscriptionFailed subBuilder = new global::LiveKit.Proto.TrackSubscriptionFailed(); - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - subBuilder.MergeFrom(TrackSubscriptionFailed); - } - input.ReadMessage(subBuilder); - TrackSubscriptionFailed = subBuilder; - break; - } - case 90: { - global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); - if (messageCase_ == MessageOneofCase.TrackMuted) { - subBuilder.MergeFrom(TrackMuted); - } - input.ReadMessage(subBuilder); - TrackMuted = subBuilder; - break; - } - case 98: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); - } - input.ReadMessage(subBuilder); - TrackUnmuted = subBuilder; - break; - } - case 106: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - subBuilder.MergeFrom(ActiveSpeakersChanged); - } - input.ReadMessage(subBuilder); - ActiveSpeakersChanged = subBuilder; - break; - } - case 114: { - global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - subBuilder.MergeFrom(RoomMetadataChanged); - } - input.ReadMessage(subBuilder); - RoomMetadataChanged = subBuilder; - break; - } - case 122: { - global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - subBuilder.MergeFrom(RoomSidChanged); - } - input.ReadMessage(subBuilder); - RoomSidChanged = subBuilder; - break; - } - case 130: { - global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - subBuilder.MergeFrom(ParticipantMetadataChanged); - } - input.ReadMessage(subBuilder); - ParticipantMetadataChanged = subBuilder; - break; - } - case 138: { - global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - subBuilder.MergeFrom(ParticipantNameChanged); - } - input.ReadMessage(subBuilder); - ParticipantNameChanged = subBuilder; - break; - } - case 146: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); - } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; - break; - } - case 154: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); - } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; - break; - } - case 170: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); - } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; - break; - } - case 178: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); - } - input.ReadMessage(subBuilder); - Reconnecting = subBuilder; - break; - } - case 186: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); - } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; - break; - } - case 194: { - global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - subBuilder.MergeFrom(E2EeStateChanged); - } - input.ReadMessage(subBuilder); - E2EeStateChanged = subBuilder; - break; - } - case 202: { - global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); - if (messageCase_ == MessageOneofCase.Eos) { - subBuilder.MergeFrom(Eos); - } - input.ReadMessage(subBuilder); - Eos = subBuilder; + input.ReadMessage(RtcConfig); break; } - case 210: { - global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - subBuilder.MergeFrom(DataPacketReceived); - } - input.ReadMessage(subBuilder); - DataPacketReceived = subBuilder; + case 48: { + JoinRetries = input.ReadUInt32(); break; } } @@ -11133,223 +10585,3256 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AutoSubscribe = input.ReadBool(); break; } - case 18: { - global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - subBuilder.MergeFrom(ParticipantConnected); - } - input.ReadMessage(subBuilder); - ParticipantConnected = subBuilder; + case 16: { + AdaptiveStream = input.ReadBool(); break; } - case 26: { - global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - subBuilder.MergeFrom(ParticipantDisconnected); - } - input.ReadMessage(subBuilder); - ParticipantDisconnected = subBuilder; + case 24: { + Dynacast = input.ReadBool(); break; } case 34: { - global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - subBuilder.MergeFrom(LocalTrackPublished); + if (e2Ee_ == null) { + E2Ee = new global::LiveKit.Proto.E2eeOptions(); } - input.ReadMessage(subBuilder); - LocalTrackPublished = subBuilder; + input.ReadMessage(E2Ee); break; } case 42: { - global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - subBuilder.MergeFrom(LocalTrackUnpublished); - } - input.ReadMessage(subBuilder); - LocalTrackUnpublished = subBuilder; - break; - } - case 50: { - global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); - if (messageCase_ == MessageOneofCase.TrackPublished) { - subBuilder.MergeFrom(TrackPublished); - } - input.ReadMessage(subBuilder); - TrackPublished = subBuilder; - break; - } - case 58: { - global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - subBuilder.MergeFrom(TrackUnpublished); - } - input.ReadMessage(subBuilder); - TrackUnpublished = subBuilder; - break; - } - case 66: { - global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - subBuilder.MergeFrom(TrackSubscribed); + if (rtcConfig_ == null) { + RtcConfig = new global::LiveKit.Proto.RtcConfig(); } - input.ReadMessage(subBuilder); - TrackSubscribed = subBuilder; + input.ReadMessage(RtcConfig); break; } - case 74: { - global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - subBuilder.MergeFrom(TrackUnsubscribed); - } - input.ReadMessage(subBuilder); - TrackUnsubscribed = subBuilder; + case 48: { + JoinRetries = input.ReadUInt32(); break; } - case 82: { + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TranscriptionSegment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranscriptionSegment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment(TranscriptionSegment other) : this() { + id_ = other.id_; + text_ = other.text_; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + final_ = other.final_; + language_ = other.language_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment Clone() { + return new TranscriptionSegment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private string text_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private ulong startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong StartTime { + get { return startTime_; } + set { + startTime_ = value; + } + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private ulong endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong EndTime { + get { return endTime_; } + set { + endTime_ = value; + } + } + + /// Field number for the "final" field. + public const int FinalFieldNumber = 5; + private bool final_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Final { + get { return final_; } + set { + final_ = value; + } + } + + /// Field number for the "language" field. + public const int LanguageFieldNumber = 6; + private string language_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Language { + get { return language_; } + set { + language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TranscriptionSegment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TranscriptionSegment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + if (Final != other.Final) return false; + if (Language != other.Language) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (StartTime != 0UL) hash ^= StartTime.GetHashCode(); + if (EndTime != 0UL) hash ^= EndTime.GetHashCode(); + if (Final != false) hash ^= Final.GetHashCode(); + if (Language.Length != 0) hash ^= Language.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Text.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (StartTime != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(StartTime); + } + if (EndTime != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(EndTime); + } + if (Final != false) { + output.WriteRawTag(40); + output.WriteBool(Final); + } + if (Language.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Language); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (Text.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (StartTime != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(StartTime); + } + if (EndTime != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(EndTime); + } + if (Final != false) { + output.WriteRawTag(40); + output.WriteBool(Final); + } + if (Language.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Language); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (StartTime != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTime); + } + if (EndTime != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EndTime); + } + if (Final != false) { + size += 1 + 1; + } + if (Language.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TranscriptionSegment other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + if (other.StartTime != 0UL) { + StartTime = other.StartTime; + } + if (other.EndTime != 0UL) { + EndTime = other.EndTime; + } + if (other.Final != false) { + Final = other.Final; + } + if (other.Language.Length != 0) { + Language = other.Language; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + case 24: { + StartTime = input.ReadUInt64(); + break; + } + case 32: { + EndTime = input.ReadUInt64(); + break; + } + case 40: { + Final = input.ReadBool(); + break; + } + case 50: { + Language = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + case 24: { + StartTime = input.ReadUInt64(); + break; + } + case 32: { + EndTime = input.ReadUInt64(); + break; + } + case 40: { + Final = input.ReadBool(); + break; + } + case 50: { + Language = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BufferInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BufferInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BufferInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BufferInfo(BufferInfo other) : this() { + dataPtr_ = other.dataPtr_; + dataLen_ = other.dataLen_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BufferInfo Clone() { + return new BufferInfo(this); + } + + /// Field number for the "data_ptr" field. + public const int DataPtrFieldNumber = 1; + private ulong dataPtr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataPtr { + get { return dataPtr_; } + set { + dataPtr_ = value; + } + } + + /// Field number for the "data_len" field. + public const int DataLenFieldNumber = 2; + private ulong dataLen_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataLen { + get { return dataLen_; } + set { + dataLen_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BufferInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BufferInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataPtr != other.DataPtr) return false; + if (DataLen != other.DataLen) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); + if (DataLen != 0UL) hash ^= DataLen.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (DataPtr != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (DataLen != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(DataLen); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (DataPtr != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (DataLen != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(DataLen); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (DataPtr != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + } + if (DataLen != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataLen); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BufferInfo other) { + if (other == null) { + return; + } + if (other.DataPtr != 0UL) { + DataPtr = other.DataPtr; + } + if (other.DataLen != 0UL) { + DataLen = other.DataLen; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DataPtr = input.ReadUInt64(); + break; + } + case 16: { + DataLen = input.ReadUInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DataPtr = input.ReadUInt64(); + break; + } + case 16: { + DataLen = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedBuffer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedBuffer()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedBuffer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedBuffer(OwnedBuffer other) : this() { + handle_ = other.handle_ != null ? other.handle_.Clone() : null; + data_ = other.data_ != null ? other.data_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedBuffer Clone() { + return new OwnedBuffer(this); + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 1; + private global::LiveKit.Proto.FfiOwnedHandle handle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FfiOwnedHandle Handle { + get { return handle_; } + set { + handle_ = value; + } + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 2; + private global::LiveKit.Proto.BufferInfo data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.BufferInfo Data { + get { return data_; } + set { + data_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OwnedBuffer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedBuffer other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Handle, other.Handle)) return false; + if (!object.Equals(Data, other.Data)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (handle_ != null) hash ^= Handle.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); + } + if (data_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Data); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (handle_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); + } + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OwnedBuffer other) { + if (other == null) { + return; + } + if (other.handle_ != null) { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + Handle.MergeFrom(other.Handle); + } + if (other.data_ != null) { + if (data_ == null) { + Data = new global::LiveKit.Proto.BufferInfo(); + } + Data.MergeFrom(other.Data); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (data_ == null) { + Data = new global::LiveKit.Proto.BufferInfo(); + } + input.ReadMessage(Data); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (data_ == null) { + Data = new global::LiveKit.Proto.BufferInfo(); + } + input.ReadMessage(Data); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RoomEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomEvent()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomEvent(RoomEvent other) : this() { + roomHandle_ = other.roomHandle_; + switch (other.MessageCase) { + case MessageOneofCase.ParticipantConnected: + ParticipantConnected = other.ParticipantConnected.Clone(); + break; + case MessageOneofCase.ParticipantDisconnected: + ParticipantDisconnected = other.ParticipantDisconnected.Clone(); + break; + case MessageOneofCase.LocalTrackPublished: + LocalTrackPublished = other.LocalTrackPublished.Clone(); + break; + case MessageOneofCase.LocalTrackUnpublished: + LocalTrackUnpublished = other.LocalTrackUnpublished.Clone(); + break; + case MessageOneofCase.LocalTrackSubscribed: + LocalTrackSubscribed = other.LocalTrackSubscribed.Clone(); + break; + case MessageOneofCase.TrackPublished: + TrackPublished = other.TrackPublished.Clone(); + break; + case MessageOneofCase.TrackUnpublished: + TrackUnpublished = other.TrackUnpublished.Clone(); + break; + case MessageOneofCase.TrackSubscribed: + TrackSubscribed = other.TrackSubscribed.Clone(); + break; + case MessageOneofCase.TrackUnsubscribed: + TrackUnsubscribed = other.TrackUnsubscribed.Clone(); + break; + case MessageOneofCase.TrackSubscriptionFailed: + TrackSubscriptionFailed = other.TrackSubscriptionFailed.Clone(); + break; + case MessageOneofCase.TrackMuted: + TrackMuted = other.TrackMuted.Clone(); + break; + case MessageOneofCase.TrackUnmuted: + TrackUnmuted = other.TrackUnmuted.Clone(); + break; + case MessageOneofCase.ActiveSpeakersChanged: + ActiveSpeakersChanged = other.ActiveSpeakersChanged.Clone(); + break; + case MessageOneofCase.RoomMetadataChanged: + RoomMetadataChanged = other.RoomMetadataChanged.Clone(); + break; + case MessageOneofCase.RoomSidChanged: + RoomSidChanged = other.RoomSidChanged.Clone(); + break; + case MessageOneofCase.ParticipantMetadataChanged: + ParticipantMetadataChanged = other.ParticipantMetadataChanged.Clone(); + break; + case MessageOneofCase.ParticipantNameChanged: + ParticipantNameChanged = other.ParticipantNameChanged.Clone(); + break; + case MessageOneofCase.ParticipantAttributesChanged: + ParticipantAttributesChanged = other.ParticipantAttributesChanged.Clone(); + break; + case MessageOneofCase.ConnectionQualityChanged: + ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); + break; + case MessageOneofCase.ConnectionStateChanged: + ConnectionStateChanged = other.ConnectionStateChanged.Clone(); + break; + case MessageOneofCase.Disconnected: + Disconnected = other.Disconnected.Clone(); + break; + case MessageOneofCase.Reconnecting: + Reconnecting = other.Reconnecting.Clone(); + break; + case MessageOneofCase.Reconnected: + Reconnected = other.Reconnected.Clone(); + break; + case MessageOneofCase.E2EeStateChanged: + E2EeStateChanged = other.E2EeStateChanged.Clone(); + break; + case MessageOneofCase.Eos: + Eos = other.Eos.Clone(); + break; + case MessageOneofCase.DataPacketReceived: + DataPacketReceived = other.DataPacketReceived.Clone(); + break; + case MessageOneofCase.TranscriptionReceived: + TranscriptionReceived = other.TranscriptionReceived.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomEvent Clone() { + return new RoomEvent(this); + } + + /// Field number for the "room_handle" field. + public const int RoomHandleFieldNumber = 1; + private ulong roomHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoomHandle { + get { return roomHandle_; } + set { + roomHandle_ = value; + } + } + + /// Field number for the "participant_connected" field. + public const int ParticipantConnectedFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantConnected ParticipantConnected { + get { return messageCase_ == MessageOneofCase.ParticipantConnected ? (global::LiveKit.Proto.ParticipantConnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantConnected; + } + } + + /// Field number for the "participant_disconnected" field. + public const int ParticipantDisconnectedFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantDisconnected ParticipantDisconnected { + get { return messageCase_ == MessageOneofCase.ParticipantDisconnected ? (global::LiveKit.Proto.ParticipantDisconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantDisconnected; + } + } + + /// Field number for the "local_track_published" field. + public const int LocalTrackPublishedFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackPublished LocalTrackPublished { + get { return messageCase_ == MessageOneofCase.LocalTrackPublished ? (global::LiveKit.Proto.LocalTrackPublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackPublished; + } + } + + /// Field number for the "local_track_unpublished" field. + public const int LocalTrackUnpublishedFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackUnpublished LocalTrackUnpublished { + get { return messageCase_ == MessageOneofCase.LocalTrackUnpublished ? (global::LiveKit.Proto.LocalTrackUnpublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackUnpublished; + } + } + + /// Field number for the "local_track_subscribed" field. + public const int LocalTrackSubscribedFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackSubscribed LocalTrackSubscribed { + get { return messageCase_ == MessageOneofCase.LocalTrackSubscribed ? (global::LiveKit.Proto.LocalTrackSubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackSubscribed; + } + } + + /// Field number for the "track_published" field. + public const int TrackPublishedFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackPublished TrackPublished { + get { return messageCase_ == MessageOneofCase.TrackPublished ? (global::LiveKit.Proto.TrackPublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackPublished; + } + } + + /// Field number for the "track_unpublished" field. + public const int TrackUnpublishedFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnpublished TrackUnpublished { + get { return messageCase_ == MessageOneofCase.TrackUnpublished ? (global::LiveKit.Proto.TrackUnpublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnpublished; + } + } + + /// Field number for the "track_subscribed" field. + public const int TrackSubscribedFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSubscribed TrackSubscribed { + get { return messageCase_ == MessageOneofCase.TrackSubscribed ? (global::LiveKit.Proto.TrackSubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscribed; + } + } + + /// Field number for the "track_unsubscribed" field. + public const int TrackUnsubscribedFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnsubscribed TrackUnsubscribed { + get { return messageCase_ == MessageOneofCase.TrackUnsubscribed ? (global::LiveKit.Proto.TrackUnsubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnsubscribed; + } + } + + /// Field number for the "track_subscription_failed" field. + public const int TrackSubscriptionFailedFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSubscriptionFailed TrackSubscriptionFailed { + get { return messageCase_ == MessageOneofCase.TrackSubscriptionFailed ? (global::LiveKit.Proto.TrackSubscriptionFailed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscriptionFailed; + } + } + + /// Field number for the "track_muted" field. + public const int TrackMutedFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackMuted TrackMuted { + get { return messageCase_ == MessageOneofCase.TrackMuted ? (global::LiveKit.Proto.TrackMuted) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackMuted; + } + } + + /// Field number for the "track_unmuted" field. + public const int TrackUnmutedFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnmuted TrackUnmuted { + get { return messageCase_ == MessageOneofCase.TrackUnmuted ? (global::LiveKit.Proto.TrackUnmuted) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnmuted; + } + } + + /// Field number for the "active_speakers_changed" field. + public const int ActiveSpeakersChangedFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ActiveSpeakersChanged ActiveSpeakersChanged { + get { return messageCase_ == MessageOneofCase.ActiveSpeakersChanged ? (global::LiveKit.Proto.ActiveSpeakersChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ActiveSpeakersChanged; + } + } + + /// Field number for the "room_metadata_changed" field. + public const int RoomMetadataChangedFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomMetadataChanged RoomMetadataChanged { + get { return messageCase_ == MessageOneofCase.RoomMetadataChanged ? (global::LiveKit.Proto.RoomMetadataChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomMetadataChanged; + } + } + + /// Field number for the "room_sid_changed" field. + public const int RoomSidChangedFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomSidChanged RoomSidChanged { + get { return messageCase_ == MessageOneofCase.RoomSidChanged ? (global::LiveKit.Proto.RoomSidChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomSidChanged; + } + } + + /// Field number for the "participant_metadata_changed" field. + public const int ParticipantMetadataChangedFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantMetadataChanged ParticipantMetadataChanged { + get { return messageCase_ == MessageOneofCase.ParticipantMetadataChanged ? (global::LiveKit.Proto.ParticipantMetadataChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantMetadataChanged; + } + } + + /// Field number for the "participant_name_changed" field. + public const int ParticipantNameChangedFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantNameChanged ParticipantNameChanged { + get { return messageCase_ == MessageOneofCase.ParticipantNameChanged ? (global::LiveKit.Proto.ParticipantNameChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantNameChanged; + } + } + + /// Field number for the "participant_attributes_changed" field. + public const int ParticipantAttributesChangedFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantAttributesChanged ParticipantAttributesChanged { + get { return messageCase_ == MessageOneofCase.ParticipantAttributesChanged ? (global::LiveKit.Proto.ParticipantAttributesChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantAttributesChanged; + } + } + + /// Field number for the "connection_quality_changed" field. + public const int ConnectionQualityChangedFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ConnectionQualityChanged ConnectionQualityChanged { + get { return messageCase_ == MessageOneofCase.ConnectionQualityChanged ? (global::LiveKit.Proto.ConnectionQualityChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionQualityChanged; + } + } + + /// Field number for the "connection_state_changed" field. + public const int ConnectionStateChangedFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ConnectionStateChanged ConnectionStateChanged { + get { return messageCase_ == MessageOneofCase.ConnectionStateChanged ? (global::LiveKit.Proto.ConnectionStateChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionStateChanged; + } + } + + /// Field number for the "disconnected" field. + public const int DisconnectedFieldNumber = 22; + /// + /// Connected connected = 21; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Disconnected Disconnected { + get { return messageCase_ == MessageOneofCase.Disconnected ? (global::LiveKit.Proto.Disconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Disconnected; + } + } + + /// Field number for the "reconnecting" field. + public const int ReconnectingFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Reconnecting Reconnecting { + get { return messageCase_ == MessageOneofCase.Reconnecting ? (global::LiveKit.Proto.Reconnecting) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnecting; + } + } + + /// Field number for the "reconnected" field. + public const int ReconnectedFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Reconnected Reconnected { + get { return messageCase_ == MessageOneofCase.Reconnected ? (global::LiveKit.Proto.Reconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnected; + } + } + + /// Field number for the "e2ee_state_changed" field. + public const int E2EeStateChangedFieldNumber = 25; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeStateChanged E2EeStateChanged { + get { return messageCase_ == MessageOneofCase.E2EeStateChanged ? (global::LiveKit.Proto.E2eeStateChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.E2EeStateChanged; + } + } + + /// Field number for the "eos" field. + public const int EosFieldNumber = 26; + /// + /// The stream of room events has ended + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomEOS Eos { + get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.RoomEOS) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos; + } + } + + /// Field number for the "data_packet_received" field. + public const int DataPacketReceivedFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DataPacketReceived DataPacketReceived { + get { return messageCase_ == MessageOneofCase.DataPacketReceived ? (global::LiveKit.Proto.DataPacketReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataPacketReceived; + } + } + + /// Field number for the "transcription_received" field. + public const int TranscriptionReceivedFieldNumber = 28; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TranscriptionReceived TranscriptionReceived { + get { return messageCase_ == MessageOneofCase.TranscriptionReceived ? (global::LiveKit.Proto.TranscriptionReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TranscriptionReceived; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + ParticipantConnected = 2, + ParticipantDisconnected = 3, + LocalTrackPublished = 4, + LocalTrackUnpublished = 5, + LocalTrackSubscribed = 6, + TrackPublished = 7, + TrackUnpublished = 8, + TrackSubscribed = 9, + TrackUnsubscribed = 10, + TrackSubscriptionFailed = 11, + TrackMuted = 12, + TrackUnmuted = 13, + ActiveSpeakersChanged = 14, + RoomMetadataChanged = 15, + RoomSidChanged = 16, + ParticipantMetadataChanged = 17, + ParticipantNameChanged = 18, + ParticipantAttributesChanged = 19, + ConnectionQualityChanged = 20, + ConnectionStateChanged = 21, + Disconnected = 22, + Reconnecting = 23, + Reconnected = 24, + E2EeStateChanged = 25, + Eos = 26, + DataPacketReceived = 27, + TranscriptionReceived = 28, + } + private MessageOneofCase messageCase_ = MessageOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MessageOneofCase MessageCase { + get { return messageCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + messageCase_ = MessageOneofCase.None; + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoomEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoomEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomHandle != other.RoomHandle) return false; + if (!object.Equals(ParticipantConnected, other.ParticipantConnected)) return false; + if (!object.Equals(ParticipantDisconnected, other.ParticipantDisconnected)) return false; + if (!object.Equals(LocalTrackPublished, other.LocalTrackPublished)) return false; + if (!object.Equals(LocalTrackUnpublished, other.LocalTrackUnpublished)) return false; + if (!object.Equals(LocalTrackSubscribed, other.LocalTrackSubscribed)) return false; + if (!object.Equals(TrackPublished, other.TrackPublished)) return false; + if (!object.Equals(TrackUnpublished, other.TrackUnpublished)) return false; + if (!object.Equals(TrackSubscribed, other.TrackSubscribed)) return false; + if (!object.Equals(TrackUnsubscribed, other.TrackUnsubscribed)) return false; + if (!object.Equals(TrackSubscriptionFailed, other.TrackSubscriptionFailed)) return false; + if (!object.Equals(TrackMuted, other.TrackMuted)) return false; + if (!object.Equals(TrackUnmuted, other.TrackUnmuted)) return false; + if (!object.Equals(ActiveSpeakersChanged, other.ActiveSpeakersChanged)) return false; + if (!object.Equals(RoomMetadataChanged, other.RoomMetadataChanged)) return false; + if (!object.Equals(RoomSidChanged, other.RoomSidChanged)) return false; + if (!object.Equals(ParticipantMetadataChanged, other.ParticipantMetadataChanged)) return false; + if (!object.Equals(ParticipantNameChanged, other.ParticipantNameChanged)) return false; + if (!object.Equals(ParticipantAttributesChanged, other.ParticipantAttributesChanged)) return false; + if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; + if (!object.Equals(ConnectionStateChanged, other.ConnectionStateChanged)) return false; + if (!object.Equals(Disconnected, other.Disconnected)) return false; + if (!object.Equals(Reconnecting, other.Reconnecting)) return false; + if (!object.Equals(Reconnected, other.Reconnected)) return false; + if (!object.Equals(E2EeStateChanged, other.E2EeStateChanged)) return false; + if (!object.Equals(Eos, other.Eos)) return false; + if (!object.Equals(DataPacketReceived, other.DataPacketReceived)) return false; + if (!object.Equals(TranscriptionReceived, other.TranscriptionReceived)) return false; + if (MessageCase != other.MessageCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantConnected) hash ^= ParticipantConnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) hash ^= ParticipantDisconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackPublished) hash ^= LocalTrackPublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) hash ^= LocalTrackUnpublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) hash ^= LocalTrackSubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackPublished) hash ^= TrackPublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnpublished) hash ^= TrackUnpublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackSubscribed) hash ^= TrackSubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) hash ^= TrackUnsubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) hash ^= TrackSubscriptionFailed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackMuted) hash ^= TrackMuted.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) hash ^= TrackUnmuted.GetHashCode(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) hash ^= ActiveSpeakersChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) hash ^= RoomMetadataChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) hash ^= RoomSidChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) hash ^= ParticipantMetadataChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) hash ^= ParticipantNameChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) hash ^= ParticipantAttributesChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) hash ^= ConnectionStateChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.Disconnected) hash ^= Disconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.Reconnecting) hash ^= Reconnecting.GetHashCode(); + if (messageCase_ == MessageOneofCase.Reconnected) hash ^= Reconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) hash ^= E2EeStateChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) hash ^= DataPacketReceived.GetHashCode(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) hash ^= TranscriptionReceived.GetHashCode(); + hash ^= (int) messageCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + output.WriteRawTag(18); + output.WriteMessage(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + output.WriteRawTag(26); + output.WriteMessage(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + output.WriteRawTag(34); + output.WriteMessage(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + output.WriteRawTag(42); + output.WriteMessage(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + output.WriteRawTag(50); + output.WriteMessage(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + output.WriteRawTag(58); + output.WriteMessage(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + output.WriteRawTag(66); + output.WriteMessage(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + output.WriteRawTag(74); + output.WriteMessage(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + output.WriteRawTag(82); + output.WriteMessage(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + output.WriteRawTag(90); + output.WriteMessage(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + output.WriteRawTag(98); + output.WriteMessage(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + output.WriteRawTag(106); + output.WriteMessage(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + output.WriteRawTag(114); + output.WriteMessage(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(146, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + output.WriteRawTag(154, 1); + output.WriteMessage(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(162, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + output.WriteRawTag(170, 1); + output.WriteMessage(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + output.WriteRawTag(178, 1); + output.WriteMessage(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + output.WriteRawTag(186, 1); + output.WriteMessage(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + output.WriteRawTag(194, 1); + output.WriteMessage(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + output.WriteRawTag(202, 1); + output.WriteMessage(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(210, 1); + output.WriteMessage(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + output.WriteRawTag(218, 1); + output.WriteMessage(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + output.WriteRawTag(226, 1); + output.WriteMessage(TranscriptionReceived); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + output.WriteRawTag(18); + output.WriteMessage(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + output.WriteRawTag(26); + output.WriteMessage(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + output.WriteRawTag(34); + output.WriteMessage(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + output.WriteRawTag(42); + output.WriteMessage(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + output.WriteRawTag(50); + output.WriteMessage(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + output.WriteRawTag(58); + output.WriteMessage(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + output.WriteRawTag(66); + output.WriteMessage(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + output.WriteRawTag(74); + output.WriteMessage(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + output.WriteRawTag(82); + output.WriteMessage(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + output.WriteRawTag(90); + output.WriteMessage(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + output.WriteRawTag(98); + output.WriteMessage(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + output.WriteRawTag(106); + output.WriteMessage(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + output.WriteRawTag(114); + output.WriteMessage(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(146, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + output.WriteRawTag(154, 1); + output.WriteMessage(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(162, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + output.WriteRawTag(170, 1); + output.WriteMessage(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + output.WriteRawTag(178, 1); + output.WriteMessage(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + output.WriteRawTag(186, 1); + output.WriteMessage(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + output.WriteRawTag(194, 1); + output.WriteMessage(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + output.WriteRawTag(202, 1); + output.WriteMessage(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(210, 1); + output.WriteMessage(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + output.WriteRawTag(218, 1); + output.WriteMessage(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + output.WriteRawTag(226, 1); + output.WriteMessage(TranscriptionReceived); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RoomHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TranscriptionReceived); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoomEvent other) { + if (other == null) { + return; + } + if (other.RoomHandle != 0UL) { + RoomHandle = other.RoomHandle; + } + switch (other.MessageCase) { + case MessageOneofCase.ParticipantConnected: + if (ParticipantConnected == null) { + ParticipantConnected = new global::LiveKit.Proto.ParticipantConnected(); + } + ParticipantConnected.MergeFrom(other.ParticipantConnected); + break; + case MessageOneofCase.ParticipantDisconnected: + if (ParticipantDisconnected == null) { + ParticipantDisconnected = new global::LiveKit.Proto.ParticipantDisconnected(); + } + ParticipantDisconnected.MergeFrom(other.ParticipantDisconnected); + break; + case MessageOneofCase.LocalTrackPublished: + if (LocalTrackPublished == null) { + LocalTrackPublished = new global::LiveKit.Proto.LocalTrackPublished(); + } + LocalTrackPublished.MergeFrom(other.LocalTrackPublished); + break; + case MessageOneofCase.LocalTrackUnpublished: + if (LocalTrackUnpublished == null) { + LocalTrackUnpublished = new global::LiveKit.Proto.LocalTrackUnpublished(); + } + LocalTrackUnpublished.MergeFrom(other.LocalTrackUnpublished); + break; + case MessageOneofCase.LocalTrackSubscribed: + if (LocalTrackSubscribed == null) { + LocalTrackSubscribed = new global::LiveKit.Proto.LocalTrackSubscribed(); + } + LocalTrackSubscribed.MergeFrom(other.LocalTrackSubscribed); + break; + case MessageOneofCase.TrackPublished: + if (TrackPublished == null) { + TrackPublished = new global::LiveKit.Proto.TrackPublished(); + } + TrackPublished.MergeFrom(other.TrackPublished); + break; + case MessageOneofCase.TrackUnpublished: + if (TrackUnpublished == null) { + TrackUnpublished = new global::LiveKit.Proto.TrackUnpublished(); + } + TrackUnpublished.MergeFrom(other.TrackUnpublished); + break; + case MessageOneofCase.TrackSubscribed: + if (TrackSubscribed == null) { + TrackSubscribed = new global::LiveKit.Proto.TrackSubscribed(); + } + TrackSubscribed.MergeFrom(other.TrackSubscribed); + break; + case MessageOneofCase.TrackUnsubscribed: + if (TrackUnsubscribed == null) { + TrackUnsubscribed = new global::LiveKit.Proto.TrackUnsubscribed(); + } + TrackUnsubscribed.MergeFrom(other.TrackUnsubscribed); + break; + case MessageOneofCase.TrackSubscriptionFailed: + if (TrackSubscriptionFailed == null) { + TrackSubscriptionFailed = new global::LiveKit.Proto.TrackSubscriptionFailed(); + } + TrackSubscriptionFailed.MergeFrom(other.TrackSubscriptionFailed); + break; + case MessageOneofCase.TrackMuted: + if (TrackMuted == null) { + TrackMuted = new global::LiveKit.Proto.TrackMuted(); + } + TrackMuted.MergeFrom(other.TrackMuted); + break; + case MessageOneofCase.TrackUnmuted: + if (TrackUnmuted == null) { + TrackUnmuted = new global::LiveKit.Proto.TrackUnmuted(); + } + TrackUnmuted.MergeFrom(other.TrackUnmuted); + break; + case MessageOneofCase.ActiveSpeakersChanged: + if (ActiveSpeakersChanged == null) { + ActiveSpeakersChanged = new global::LiveKit.Proto.ActiveSpeakersChanged(); + } + ActiveSpeakersChanged.MergeFrom(other.ActiveSpeakersChanged); + break; + case MessageOneofCase.RoomMetadataChanged: + if (RoomMetadataChanged == null) { + RoomMetadataChanged = new global::LiveKit.Proto.RoomMetadataChanged(); + } + RoomMetadataChanged.MergeFrom(other.RoomMetadataChanged); + break; + case MessageOneofCase.RoomSidChanged: + if (RoomSidChanged == null) { + RoomSidChanged = new global::LiveKit.Proto.RoomSidChanged(); + } + RoomSidChanged.MergeFrom(other.RoomSidChanged); + break; + case MessageOneofCase.ParticipantMetadataChanged: + if (ParticipantMetadataChanged == null) { + ParticipantMetadataChanged = new global::LiveKit.Proto.ParticipantMetadataChanged(); + } + ParticipantMetadataChanged.MergeFrom(other.ParticipantMetadataChanged); + break; + case MessageOneofCase.ParticipantNameChanged: + if (ParticipantNameChanged == null) { + ParticipantNameChanged = new global::LiveKit.Proto.ParticipantNameChanged(); + } + ParticipantNameChanged.MergeFrom(other.ParticipantNameChanged); + break; + case MessageOneofCase.ParticipantAttributesChanged: + if (ParticipantAttributesChanged == null) { + ParticipantAttributesChanged = new global::LiveKit.Proto.ParticipantAttributesChanged(); + } + ParticipantAttributesChanged.MergeFrom(other.ParticipantAttributesChanged); + break; + case MessageOneofCase.ConnectionQualityChanged: + if (ConnectionQualityChanged == null) { + ConnectionQualityChanged = new global::LiveKit.Proto.ConnectionQualityChanged(); + } + ConnectionQualityChanged.MergeFrom(other.ConnectionQualityChanged); + break; + case MessageOneofCase.ConnectionStateChanged: + if (ConnectionStateChanged == null) { + ConnectionStateChanged = new global::LiveKit.Proto.ConnectionStateChanged(); + } + ConnectionStateChanged.MergeFrom(other.ConnectionStateChanged); + break; + case MessageOneofCase.Disconnected: + if (Disconnected == null) { + Disconnected = new global::LiveKit.Proto.Disconnected(); + } + Disconnected.MergeFrom(other.Disconnected); + break; + case MessageOneofCase.Reconnecting: + if (Reconnecting == null) { + Reconnecting = new global::LiveKit.Proto.Reconnecting(); + } + Reconnecting.MergeFrom(other.Reconnecting); + break; + case MessageOneofCase.Reconnected: + if (Reconnected == null) { + Reconnected = new global::LiveKit.Proto.Reconnected(); + } + Reconnected.MergeFrom(other.Reconnected); + break; + case MessageOneofCase.E2EeStateChanged: + if (E2EeStateChanged == null) { + E2EeStateChanged = new global::LiveKit.Proto.E2eeStateChanged(); + } + E2EeStateChanged.MergeFrom(other.E2EeStateChanged); + break; + case MessageOneofCase.Eos: + if (Eos == null) { + Eos = new global::LiveKit.Proto.RoomEOS(); + } + Eos.MergeFrom(other.Eos); + break; + case MessageOneofCase.DataPacketReceived: + if (DataPacketReceived == null) { + DataPacketReceived = new global::LiveKit.Proto.DataPacketReceived(); + } + DataPacketReceived.MergeFrom(other.DataPacketReceived); + break; + case MessageOneofCase.TranscriptionReceived: + if (TranscriptionReceived == null) { + TranscriptionReceived = new global::LiveKit.Proto.TranscriptionReceived(); + } + TranscriptionReceived.MergeFrom(other.TranscriptionReceived); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + subBuilder.MergeFrom(ParticipantConnected); + } + input.ReadMessage(subBuilder); + ParticipantConnected = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + subBuilder.MergeFrom(ParticipantDisconnected); + } + input.ReadMessage(subBuilder); + ParticipantDisconnected = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + subBuilder.MergeFrom(LocalTrackPublished); + } + input.ReadMessage(subBuilder); + LocalTrackPublished = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + subBuilder.MergeFrom(LocalTrackUnpublished); + } + input.ReadMessage(subBuilder); + LocalTrackUnpublished = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.LocalTrackSubscribed subBuilder = new global::LiveKit.Proto.LocalTrackSubscribed(); + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + subBuilder.MergeFrom(LocalTrackSubscribed); + } + input.ReadMessage(subBuilder); + LocalTrackSubscribed = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); + if (messageCase_ == MessageOneofCase.TrackPublished) { + subBuilder.MergeFrom(TrackPublished); + } + input.ReadMessage(subBuilder); + TrackPublished = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + subBuilder.MergeFrom(TrackUnpublished); + } + input.ReadMessage(subBuilder); + TrackUnpublished = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + subBuilder.MergeFrom(TrackSubscribed); + } + input.ReadMessage(subBuilder); + TrackSubscribed = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + subBuilder.MergeFrom(TrackUnsubscribed); + } + input.ReadMessage(subBuilder); + TrackUnsubscribed = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.TrackSubscriptionFailed subBuilder = new global::LiveKit.Proto.TrackSubscriptionFailed(); + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + subBuilder.MergeFrom(TrackSubscriptionFailed); + } + input.ReadMessage(subBuilder); + TrackSubscriptionFailed = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); + if (messageCase_ == MessageOneofCase.TrackMuted) { + subBuilder.MergeFrom(TrackMuted); + } + input.ReadMessage(subBuilder); + TrackMuted = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + subBuilder.MergeFrom(TrackUnmuted); + } + input.ReadMessage(subBuilder); + TrackUnmuted = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + subBuilder.MergeFrom(ActiveSpeakersChanged); + } + input.ReadMessage(subBuilder); + ActiveSpeakersChanged = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + subBuilder.MergeFrom(RoomMetadataChanged); + } + input.ReadMessage(subBuilder); + RoomMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + subBuilder.MergeFrom(RoomSidChanged); + } + input.ReadMessage(subBuilder); + RoomSidChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 154: { + global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + subBuilder.MergeFrom(ParticipantAttributesChanged); + } + input.ReadMessage(subBuilder); + ParticipantAttributesChanged = subBuilder; + break; + } + case 162: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 170: { + global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + subBuilder.MergeFrom(ConnectionStateChanged); + } + input.ReadMessage(subBuilder); + ConnectionStateChanged = subBuilder; + break; + } + case 178: { + global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); + if (messageCase_ == MessageOneofCase.Disconnected) { + subBuilder.MergeFrom(Disconnected); + } + input.ReadMessage(subBuilder); + Disconnected = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); + if (messageCase_ == MessageOneofCase.Reconnecting) { + subBuilder.MergeFrom(Reconnecting); + } + input.ReadMessage(subBuilder); + Reconnecting = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); + if (messageCase_ == MessageOneofCase.Reconnected) { + subBuilder.MergeFrom(Reconnected); + } + input.ReadMessage(subBuilder); + Reconnected = subBuilder; + break; + } + case 202: { + global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + subBuilder.MergeFrom(E2EeStateChanged); + } + input.ReadMessage(subBuilder); + E2EeStateChanged = subBuilder; + break; + } + case 210: { + global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = subBuilder; + break; + } + case 218: { + global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + subBuilder.MergeFrom(DataPacketReceived); + } + input.ReadMessage(subBuilder); + DataPacketReceived = subBuilder; + break; + } + case 226: { + global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + subBuilder.MergeFrom(TranscriptionReceived); + } + input.ReadMessage(subBuilder); + TranscriptionReceived = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoomHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + subBuilder.MergeFrom(ParticipantConnected); + } + input.ReadMessage(subBuilder); + ParticipantConnected = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + subBuilder.MergeFrom(ParticipantDisconnected); + } + input.ReadMessage(subBuilder); + ParticipantDisconnected = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + subBuilder.MergeFrom(LocalTrackPublished); + } + input.ReadMessage(subBuilder); + LocalTrackPublished = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + subBuilder.MergeFrom(LocalTrackUnpublished); + } + input.ReadMessage(subBuilder); + LocalTrackUnpublished = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.LocalTrackSubscribed subBuilder = new global::LiveKit.Proto.LocalTrackSubscribed(); + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + subBuilder.MergeFrom(LocalTrackSubscribed); + } + input.ReadMessage(subBuilder); + LocalTrackSubscribed = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); + if (messageCase_ == MessageOneofCase.TrackPublished) { + subBuilder.MergeFrom(TrackPublished); + } + input.ReadMessage(subBuilder); + TrackPublished = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + subBuilder.MergeFrom(TrackUnpublished); + } + input.ReadMessage(subBuilder); + TrackUnpublished = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + subBuilder.MergeFrom(TrackSubscribed); + } + input.ReadMessage(subBuilder); + TrackSubscribed = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + subBuilder.MergeFrom(TrackUnsubscribed); + } + input.ReadMessage(subBuilder); + TrackUnsubscribed = subBuilder; + break; + } + case 90: { global::LiveKit.Proto.TrackSubscriptionFailed subBuilder = new global::LiveKit.Proto.TrackSubscriptionFailed(); if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { subBuilder.MergeFrom(TrackSubscriptionFailed); } input.ReadMessage(subBuilder); - TrackSubscriptionFailed = subBuilder; + TrackSubscriptionFailed = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); + if (messageCase_ == MessageOneofCase.TrackMuted) { + subBuilder.MergeFrom(TrackMuted); + } + input.ReadMessage(subBuilder); + TrackMuted = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + subBuilder.MergeFrom(TrackUnmuted); + } + input.ReadMessage(subBuilder); + TrackUnmuted = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + subBuilder.MergeFrom(ActiveSpeakersChanged); + } + input.ReadMessage(subBuilder); + ActiveSpeakersChanged = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + subBuilder.MergeFrom(RoomMetadataChanged); + } + input.ReadMessage(subBuilder); + RoomMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + subBuilder.MergeFrom(RoomSidChanged); + } + input.ReadMessage(subBuilder); + RoomSidChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 154: { + global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + subBuilder.MergeFrom(ParticipantAttributesChanged); + } + input.ReadMessage(subBuilder); + ParticipantAttributesChanged = subBuilder; + break; + } + case 162: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 170: { + global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + subBuilder.MergeFrom(ConnectionStateChanged); + } + input.ReadMessage(subBuilder); + ConnectionStateChanged = subBuilder; + break; + } + case 178: { + global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); + if (messageCase_ == MessageOneofCase.Disconnected) { + subBuilder.MergeFrom(Disconnected); + } + input.ReadMessage(subBuilder); + Disconnected = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); + if (messageCase_ == MessageOneofCase.Reconnecting) { + subBuilder.MergeFrom(Reconnecting); + } + input.ReadMessage(subBuilder); + Reconnecting = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); + if (messageCase_ == MessageOneofCase.Reconnected) { + subBuilder.MergeFrom(Reconnected); + } + input.ReadMessage(subBuilder); + Reconnected = subBuilder; + break; + } + case 202: { + global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + subBuilder.MergeFrom(E2EeStateChanged); + } + input.ReadMessage(subBuilder); + E2EeStateChanged = subBuilder; break; } - case 90: { - global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); - if (messageCase_ == MessageOneofCase.TrackMuted) { - subBuilder.MergeFrom(TrackMuted); + case 210: { + global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); } input.ReadMessage(subBuilder); - TrackMuted = subBuilder; + Eos = subBuilder; + break; + } + case 218: { + global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + subBuilder.MergeFrom(DataPacketReceived); + } + input.ReadMessage(subBuilder); + DataPacketReceived = subBuilder; + break; + } + case 226: { + global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + subBuilder.MergeFrom(TranscriptionReceived); + } + input.ReadMessage(subBuilder); + TranscriptionReceived = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RoomInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo(RoomInfo other) : this() { + sid_ = other.sid_; + name_ = other.name_; + metadata_ = other.metadata_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo Clone() { + return new RoomInfo(this); + } + + /// Field number for the "sid" field. + public const int SidFieldNumber = 1; + private readonly static string SidDefaultValue = ""; + + private string sid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sid { + get { return sid_ ?? SidDefaultValue; } + set { + sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 3; + private string metadata_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Metadata { + get { return metadata_; } + set { + metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoomInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoomInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Sid != other.Sid) return false; + if (Name != other.Name) return false; + if (Metadata != other.Metadata) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSid) hash ^= Sid.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Metadata.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (Metadata.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoomInfo other) { + if (other == null) { + return; + } + if (other.HasSid) { + Sid = other.Sid; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Sid = input.ReadString(); break; } - case 98: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); - } - input.ReadMessage(subBuilder); - TrackUnmuted = subBuilder; + case 18: { + Name = input.ReadString(); break; } - case 106: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - subBuilder.MergeFrom(ActiveSpeakersChanged); - } - input.ReadMessage(subBuilder); - ActiveSpeakersChanged = subBuilder; + case 26: { + Metadata = input.ReadString(); break; } - case 114: { - global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - subBuilder.MergeFrom(RoomMetadataChanged); - } - input.ReadMessage(subBuilder); - RoomMetadataChanged = subBuilder; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Sid = input.ReadString(); break; } - case 122: { - global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - subBuilder.MergeFrom(RoomSidChanged); - } - input.ReadMessage(subBuilder); - RoomSidChanged = subBuilder; + case 18: { + Name = input.ReadString(); break; } - case 130: { - global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - subBuilder.MergeFrom(ParticipantMetadataChanged); - } - input.ReadMessage(subBuilder); - ParticipantMetadataChanged = subBuilder; + case 26: { + Metadata = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedRoom : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedRoom()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedRoom() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedRoom(OwnedRoom other) : this() { + handle_ = other.handle_ != null ? other.handle_.Clone() : null; + info_ = other.info_ != null ? other.info_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedRoom Clone() { + return new OwnedRoom(this); + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 1; + private global::LiveKit.Proto.FfiOwnedHandle handle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FfiOwnedHandle Handle { + get { return handle_; } + set { + handle_ = value; + } + } + + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.RoomInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomInfo Info { + get { return info_; } + set { + info_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OwnedRoom); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedRoom other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Handle, other.Handle)) return false; + if (!object.Equals(Info, other.Info)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (handle_ != null) hash ^= Handle.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); + } + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (handle_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); + } + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OwnedRoom other) { + if (other == null) { + return; + } + if (other.handle_ != null) { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + Handle.MergeFrom(other.Handle); + } + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); + } + Info.MergeFrom(other.Info); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 138: { - global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - subBuilder.MergeFrom(ParticipantNameChanged); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } - input.ReadMessage(subBuilder); - ParticipantNameChanged = subBuilder; + input.ReadMessage(Handle); break; } - case 146: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; + input.ReadMessage(Info); break; } - case 154: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); - } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 170: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; + input.ReadMessage(Handle); break; } - case 178: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); } - input.ReadMessage(subBuilder); - Reconnecting = subBuilder; + input.ReadMessage(Info); break; } - case 186: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); - } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ParticipantConnected : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantConnected()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantConnected() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantConnected(ParticipantConnected other) : this() { + info_ = other.info_ != null ? other.info_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantConnected Clone() { + return new ParticipantConnected(this); + } + + /// Field number for the "info" field. + public const int InfoFieldNumber = 1; + private global::LiveKit.Proto.OwnedParticipant info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedParticipant Info { + get { return info_; } + set { + info_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ParticipantConnected); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ParticipantConnected other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Info, other.Info)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (info_ != null) hash ^= Info.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (info_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Info); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (info_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Info); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ParticipantConnected other) { + if (other == null) { + return; + } + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + Info.MergeFrom(other.Info); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 194: { - global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - subBuilder.MergeFrom(E2EeStateChanged); + case 10: { + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); } - input.ReadMessage(subBuilder); - E2EeStateChanged = subBuilder; + input.ReadMessage(Info); break; } - case 202: { - global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); - if (messageCase_ == MessageOneofCase.Eos) { - subBuilder.MergeFrom(Eos); - } - input.ReadMessage(subBuilder); - Eos = subBuilder; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 210: { - global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - subBuilder.MergeFrom(DataPacketReceived); + case 10: { + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); } - input.ReadMessage(subBuilder); - DataPacketReceived = subBuilder; + input.ReadMessage(Info); break; } } @@ -11360,21 +13845,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomInfo : pb::IMessage + public sealed partial class ParticipantDisconnected : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantDisconnected()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[39]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11385,7 +13870,7 @@ public sealed partial class RoomInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo() { + public ParticipantDisconnected() { OnConstruction(); } @@ -11393,73 +13878,45 @@ public RoomInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo(RoomInfo other) : this() { - sid_ = other.sid_; - name_ = other.name_; - metadata_ = other.metadata_; + public ParticipantDisconnected(ParticipantDisconnected other) : this() { + participantIdentity_ = other.participantIdentity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo Clone() { - return new RoomInfo(this); - } - - /// Field number for the "sid" field. - public const int SidFieldNumber = 1; - private string sid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sid { - get { return sid_; } - set { - sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ParticipantDisconnected Clone() { + return new ParticipantDisconnected(this); } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 3; - private string metadata_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Metadata { - get { return metadata_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomInfo); + return Equals(other as ParticipantDisconnected); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomInfo other) { + public bool Equals(ParticipantDisconnected other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Sid != other.Sid) return false; - if (Name != other.Name) return false; - if (Metadata != other.Metadata) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11467,9 +13924,7 @@ public bool Equals(RoomInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11488,17 +13943,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Metadata); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11510,17 +13957,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Metadata); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11532,14 +13971,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Metadata.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11549,18 +13982,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomInfo other) { + public void MergeFrom(ParticipantDisconnected other) { if (other == null) { return; } - if (other.Sid.Length != 0) { - Sid = other.Sid; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Metadata.Length != 0) { - Metadata = other.Metadata; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11578,15 +14005,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Sid = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Metadata = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } } @@ -11605,15 +14024,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Sid = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Metadata = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } } @@ -11624,21 +14035,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class OwnedRoom : pb::IMessage + public sealed partial class LocalTrackPublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedRoom()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackPublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[40]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11649,7 +14060,7 @@ public sealed partial class OwnedRoom : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom() { + public LocalTrackPublished() { OnConstruction(); } @@ -11657,59 +14068,49 @@ public OwnedRoom() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom(OwnedRoom other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; - info_ = other.info_ != null ? other.info_.Clone() : null; + public LocalTrackPublished(LocalTrackPublished other) : this() { + trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom Clone() { - return new OwnedRoom(this); - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } - set { - handle_ = value; - } + public LocalTrackPublished Clone() { + return new LocalTrackPublished(this); } - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.RoomInfo info_; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 1; + private string trackSid_ = ""; + /// + /// The TrackPublicationInfo comes from the PublishTrack response + /// and the FfiClient musts wait for it before firing this event + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomInfo Info { - get { return info_; } + public string TrackSid { + get { return trackSid_; } set { - info_ = value; + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedRoom); + return Equals(other as LocalTrackPublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedRoom other) { + public bool Equals(LocalTrackPublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Info, other.Info)) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11717,8 +14118,7 @@ public bool Equals(OwnedRoom other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11737,13 +14137,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (TrackSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11755,13 +14151,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (handle_ != null) { + if (TrackSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11773,11 +14165,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (handle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); - } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11787,21 +14176,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedRoom other) { + public void MergeFrom(LocalTrackPublished other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - Handle.MergeFrom(other.Handle); - } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.RoomInfo(); - } - Info.MergeFrom(other.Info); + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11819,17 +14199,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - input.ReadMessage(Handle); - break; - } - case 18: { - if (info_ == null) { - Info = new global::LiveKit.Proto.RoomInfo(); - } - input.ReadMessage(Info); + TrackSid = input.ReadString(); break; } } @@ -11848,17 +14218,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - input.ReadMessage(Handle); - break; - } - case 18: { - if (info_ == null) { - Info = new global::LiveKit.Proto.RoomInfo(); - } - input.ReadMessage(Info); + TrackSid = input.ReadString(); break; } } @@ -11869,21 +14229,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantConnected : pb::IMessage + public sealed partial class LocalTrackUnpublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantConnected()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackUnpublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[41]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11894,7 +14254,7 @@ public sealed partial class ParticipantConnected : pb::IMessageField number for the "info" field. - public const int InfoFieldNumber = 1; - private global::LiveKit.Proto.OwnedParticipant info_; + /// Field number for the "publication_sid" field. + public const int PublicationSidFieldNumber = 1; + private string publicationSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedParticipant Info { - get { return info_; } + public string PublicationSid { + get { return publicationSid_; } set { - info_ = value; + publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantConnected); + return Equals(other as LocalTrackUnpublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantConnected other) { + public bool Equals(LocalTrackUnpublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Info, other.Info)) return false; + if (PublicationSid != other.PublicationSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11948,7 +14308,7 @@ public bool Equals(ParticipantConnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (info_ != null) hash ^= Info.GetHashCode(); + if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11967,9 +14327,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (info_ != null) { + if (PublicationSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11981,9 +14341,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (info_ != null) { + if (PublicationSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11995,8 +14355,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + if (PublicationSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12006,15 +14366,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantConnected other) { + public void MergeFrom(LocalTrackUnpublished other) { if (other == null) { return; } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.OwnedParticipant(); - } - Info.MergeFrom(other.Info); + if (other.PublicationSid.Length != 0) { + PublicationSid = other.PublicationSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12032,10 +14389,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (info_ == null) { - Info = new global::LiveKit.Proto.OwnedParticipant(); - } - input.ReadMessage(Info); + PublicationSid = input.ReadString(); break; } } @@ -12054,10 +14408,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (info_ == null) { - Info = new global::LiveKit.Proto.OwnedParticipant(); - } - input.ReadMessage(Info); + PublicationSid = input.ReadString(); break; } } @@ -12068,21 +14419,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantDisconnected : pb::IMessage + public sealed partial class LocalTrackSubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantDisconnected()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackSubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[42]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12093,7 +14444,7 @@ public sealed partial class ParticipantDisconnected : pb::IMessageField number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string TrackSid { + get { return trackSid_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantDisconnected); + return Equals(other as LocalTrackSubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantDisconnected other) { + public bool Equals(LocalTrackSubscribed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12147,7 +14498,7 @@ public bool Equals(ParticipantDisconnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12166,9 +14517,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ParticipantSid); + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12180,9 +14531,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ParticipantSid); + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12194,8 +14545,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12205,12 +14556,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantDisconnected other) { + public void MergeFrom(LocalTrackSubscribed other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12227,8 +14578,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - ParticipantSid = input.ReadString(); + case 18: { + TrackSid = input.ReadString(); break; } } @@ -12246,8 +14597,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - ParticipantSid = input.ReadString(); + case 18: { + TrackSid = input.ReadString(); break; } } @@ -12258,21 +14609,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LocalTrackPublished : pb::IMessage + public sealed partial class TrackPublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackPublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[43]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12283,7 +14634,7 @@ public sealed partial class LocalTrackPublished : pb::IMessageField number for the "track_sid" field. - public const int TrackSidFieldNumber = 1; - private string trackSid_ = ""; - /// - /// The TrackPublicationInfo comes from the PublishTrack response - /// and the FfiClient musts wait for it before firing this event - /// + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "publication" field. + public const int PublicationFieldNumber = 2; + private global::LiveKit.Proto.OwnedTrackPublication publication_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedTrackPublication Publication { + get { return publication_; } + set { + publication_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as LocalTrackPublished); + return Equals(other as TrackPublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalTrackPublished other) { + public bool Equals(TrackPublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (TrackSid != other.TrackSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (!object.Equals(Publication, other.Publication)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12341,7 +14702,8 @@ public bool Equals(LocalTrackPublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (publication_ != null) hash ^= Publication.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12360,9 +14722,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(TrackSid); + output.WriteString(ParticipantIdentity); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12374,9 +14740,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(TrackSid); + output.WriteString(ParticipantIdentity); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12388,8 +14758,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (publication_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12399,12 +14772,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalTrackPublished other) { + public void MergeFrom(TrackPublished other) { if (other == null) { return; } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.publication_ != null) { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + Publication.MergeFrom(other.Publication); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12422,7 +14801,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - TrackSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + input.ReadMessage(Publication); break; } } @@ -12441,7 +14827,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - TrackSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + input.ReadMessage(Publication); break; } } @@ -12452,21 +14845,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LocalTrackUnpublished : pb::IMessage + public sealed partial class TrackUnpublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackUnpublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnpublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[44]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12477,7 +14870,7 @@ public sealed partial class LocalTrackUnpublished : pb::IMessageField number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } /// Field number for the "publication_sid" field. - public const int PublicationSidFieldNumber = 1; + public const int PublicationSidFieldNumber = 2; private string publicationSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12511,18 +14917,19 @@ public string PublicationSid { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as LocalTrackUnpublished); + return Equals(other as TrackUnpublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalTrackUnpublished other) { + public bool Equals(TrackUnpublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (ParticipantIdentity != other.ParticipantIdentity) return false; if (PublicationSid != other.PublicationSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12531,6 +14938,7 @@ public bool Equals(LocalTrackUnpublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -12550,8 +14958,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PublicationSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (PublicationSid.Length != 0) { + output.WriteRawTag(18); output.WriteString(PublicationSid); } if (_unknownFields != null) { @@ -12564,8 +14976,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PublicationSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (PublicationSid.Length != 0) { + output.WriteRawTag(18); output.WriteString(PublicationSid); } if (_unknownFields != null) { @@ -12578,6 +14994,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } if (PublicationSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); } @@ -12589,10 +15008,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalTrackUnpublished other) { + public void MergeFrom(TrackUnpublished other) { if (other == null) { return; } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } if (other.PublicationSid.Length != 0) { PublicationSid = other.PublicationSid; } @@ -12612,6 +15034,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { PublicationSid = input.ReadString(); break; } @@ -12631,6 +15057,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { PublicationSid = input.ReadString(); break; } @@ -12641,22 +15071,26 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Publication isn't needed for subscription events on the FFI + /// The FFI will retrieve the publication using the Track sid + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackPublished : pb::IMessage + public sealed partial class TrackSubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[45]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12667,7 +15101,7 @@ public sealed partial class TrackPublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished() { + public TrackSubscribed() { OnConstruction(); } @@ -12675,59 +15109,59 @@ public TrackPublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished(TrackPublished other) : this() { - participantSid_ = other.participantSid_; - publication_ = other.publication_ != null ? other.publication_.Clone() : null; + public TrackSubscribed(TrackSubscribed other) : this() { + participantIdentity_ = other.participantIdentity_; + track_ = other.track_ != null ? other.track_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished Clone() { - return new TrackPublished(this); + public TrackSubscribed Clone() { + return new TrackSubscribed(this); } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "publication" field. - public const int PublicationFieldNumber = 2; - private global::LiveKit.Proto.OwnedTrackPublication publication_; + /// Field number for the "track" field. + public const int TrackFieldNumber = 2; + private global::LiveKit.Proto.OwnedTrack track_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedTrackPublication Publication { - get { return publication_; } + public global::LiveKit.Proto.OwnedTrack Track { + get { return track_; } set { - publication_ = value; + track_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackPublished); + return Equals(other as TrackSubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublished other) { + public bool Equals(TrackSubscribed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(Publication, other.Publication)) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (!object.Equals(Track, other.Track)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12735,8 +15169,8 @@ public bool Equals(TrackPublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (publication_ != null) hash ^= Publication.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (track_ != null) hash ^= Track.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12755,13 +15189,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (publication_ != null) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12773,13 +15207,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (publication_ != null) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12791,11 +15225,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (publication_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); + if (track_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12805,18 +15239,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublished other) { + public void MergeFrom(TrackSubscribed other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.publication_ != null) { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (other.track_ != null) { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - Publication.MergeFrom(other.Publication); + Track.MergeFrom(other.Track); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12834,14 +15268,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(Publication); + input.ReadMessage(Track); break; } } @@ -12860,14 +15294,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(Publication); + input.ReadMessage(Track); break; } } @@ -12878,21 +15312,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnpublished : pb::IMessage + public sealed partial class TrackUnsubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnpublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnsubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[46]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12903,7 +15337,7 @@ public sealed partial class TrackUnpublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished() { + public TrackUnsubscribed() { OnConstruction(); } @@ -12911,59 +15345,62 @@ public TrackUnpublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished(TrackUnpublished other) : this() { - participantSid_ = other.participantSid_; - publicationSid_ = other.publicationSid_; + public TrackUnsubscribed(TrackUnsubscribed other) : this() { + participantIdentity_ = other.participantIdentity_; + trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished Clone() { - return new TrackUnpublished(this); + public TrackUnsubscribed Clone() { + return new TrackUnsubscribed(this); } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; + /// + /// The FFI language can dispose/remove the VideoSink here + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "publication_sid" field. - public const int PublicationSidFieldNumber = 2; - private string publicationSid_ = ""; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PublicationSid { - get { return publicationSid_; } + public string TrackSid { + get { return trackSid_; } set { - publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackUnpublished); + return Equals(other as TrackUnsubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnpublished other) { + public bool Equals(TrackUnsubscribed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (PublicationSid != other.PublicationSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12971,8 +15408,8 @@ public bool Equals(TrackUnpublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12991,13 +15428,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (PublicationSid.Length != 0) { + if (TrackSid.Length != 0) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13009,13 +15446,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (PublicationSid.Length != 0) { + if (TrackSid.Length != 0) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13027,11 +15464,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (PublicationSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13041,15 +15478,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnpublished other) { + public void MergeFrom(TrackUnsubscribed other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.PublicationSid.Length != 0) { - PublicationSid = other.PublicationSid; + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13067,11 +15504,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - PublicationSid = input.ReadString(); + TrackSid = input.ReadString(); break; } } @@ -13090,11 +15527,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - PublicationSid = input.ReadString(); + TrackSid = input.ReadString(); break; } } @@ -13104,26 +15541,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Publication isn't needed for subscription events on the FFI - /// The FFI will retrieve the publication using the Track sid - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackSubscribed : pb::IMessage + public sealed partial class TrackSubscriptionFailed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscribed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscriptionFailed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[47]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13134,7 +15567,7 @@ public sealed partial class TrackSubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed() { + public TrackSubscriptionFailed() { OnConstruction(); } @@ -13142,59 +15575,73 @@ public TrackSubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed(TrackSubscribed other) : this() { - participantSid_ = other.participantSid_; - track_ = other.track_ != null ? other.track_.Clone() : null; + public TrackSubscriptionFailed(TrackSubscriptionFailed other) : this() { + participantIdentity_ = other.participantIdentity_; + trackSid_ = other.trackSid_; + error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed Clone() { - return new TrackSubscribed(this); + public TrackSubscriptionFailed Clone() { + return new TrackSubscriptionFailed(this); + } + + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string TrackSid { + get { return trackSid_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "track" field. - public const int TrackFieldNumber = 2; - private global::LiveKit.Proto.OwnedTrack track_; + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + private string error_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedTrack Track { - get { return track_; } + public string Error { + get { return error_; } set { - track_ = value; + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackSubscribed); + return Equals(other as TrackSubscriptionFailed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackSubscribed other) { + public bool Equals(TrackSubscriptionFailed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(Track, other.Track)) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (TrackSid != other.TrackSid) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13202,8 +15649,9 @@ public bool Equals(TrackSubscribed other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (track_ != null) hash ^= Track.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (Error.Length != 0) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13222,13 +15670,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (track_ != null) { + if (TrackSid.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Track); + output.WriteString(TrackSid); + } + if (Error.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13240,13 +15692,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (track_ != null) { + if (TrackSid.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Track); + output.WriteString(TrackSid); + } + if (Error.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13258,11 +15714,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (track_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + if (Error.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13272,18 +15731,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackSubscribed other) { + public void MergeFrom(TrackSubscriptionFailed other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.track_ != null) { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - Track.MergeFrom(other.Track); + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; + } + if (other.Error.Length != 0) { + Error = other.Error; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13301,14 +15760,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -13327,14 +15787,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -13345,21 +15806,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnsubscribed : pb::IMessage + public sealed partial class TrackMuted : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnsubscribed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackMuted()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[48]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13370,7 +15831,7 @@ public sealed partial class TrackUnsubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed() { + public TrackMuted() { OnConstruction(); } @@ -13378,30 +15839,27 @@ public TrackUnsubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed(TrackUnsubscribed other) : this() { - participantSid_ = other.participantSid_; + public TrackMuted(TrackMuted other) : this() { + participantIdentity_ = other.participantIdentity_; trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed Clone() { - return new TrackUnsubscribed(this); + public TrackMuted Clone() { + return new TrackMuted(this); } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; - /// - /// The FFI language can dispose/remove the VideoSink here - /// + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -13420,19 +15878,19 @@ public string TrackSid { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackUnsubscribed); + return Equals(other as TrackMuted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnsubscribed other) { + public bool Equals(TrackMuted other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13441,7 +15899,7 @@ public bool Equals(TrackUnsubscribed other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -13461,9 +15919,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } if (TrackSid.Length != 0) { output.WriteRawTag(18); @@ -13479,9 +15937,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } if (TrackSid.Length != 0) { output.WriteRawTag(18); @@ -13497,8 +15955,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (TrackSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); @@ -13511,12 +15969,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnsubscribed other) { + public void MergeFrom(TrackMuted other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } if (other.TrackSid.Length != 0) { TrackSid = other.TrackSid; @@ -13537,7 +15995,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { @@ -13560,7 +16018,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { @@ -13575,21 +16033,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackSubscriptionFailed : pb::IMessage + public sealed partial class TrackUnmuted : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscriptionFailed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnmuted()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[49]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13600,7 +16058,7 @@ public sealed partial class TrackSubscriptionFailed : pb::IMessageField number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -13645,36 +16102,23 @@ public string TrackSid { } } - /// Field number for the "error" field. - public const int ErrorFieldNumber = 3; - private string error_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackSubscriptionFailed); + return Equals(other as TrackUnmuted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackSubscriptionFailed other) { + public bool Equals(TrackUnmuted other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; if (TrackSid != other.TrackSid) return false; - if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13682,9 +16126,8 @@ public bool Equals(TrackSubscriptionFailed other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); - if (Error.Length != 0) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13703,18 +16146,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } if (TrackSid.Length != 0) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Error.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -13725,18 +16164,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } if (TrackSid.Length != 0) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Error.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -13747,15 +16182,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (TrackSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (Error.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -13764,19 +16196,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackSubscriptionFailed other) { + public void MergeFrom(TrackUnmuted other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } if (other.TrackSid.Length != 0) { TrackSid = other.TrackSid; } - if (other.Error.Length != 0) { - Error = other.Error; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13793,17 +16222,13 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { TrackSid = input.ReadString(); break; } - case 26: { - Error = input.ReadString(); - break; - } } } #endif @@ -13820,17 +16245,13 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { TrackSid = input.ReadString(); break; } - case 26: { - Error = input.ReadString(); - break; - } } } } @@ -13839,21 +16260,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackMuted : pb::IMessage + public sealed partial class E2eeStateChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackMuted()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeStateChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[50]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13864,7 +16285,7 @@ public sealed partial class TrackMuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted() { + public E2eeStateChanged() { OnConstruction(); } @@ -13872,59 +16293,62 @@ public TrackMuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted(TrackMuted other) : this() { - participantSid_ = other.participantSid_; - trackSid_ = other.trackSid_; + public E2eeStateChanged(E2eeStateChanged other) : this() { + participantIdentity_ = other.participantIdentity_; + state_ = other.state_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted Clone() { - return new TrackMuted(this); + public E2eeStateChanged Clone() { + return new E2eeStateChanged(this); } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; + /// + /// Using sid instead of identity for ffi communication + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private global::LiveKit.Proto.EncryptionState state_ = global::LiveKit.Proto.EncryptionState.New; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } + public global::LiveKit.Proto.EncryptionState State { + get { return state_; } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + state_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackMuted); + return Equals(other as E2eeStateChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackMuted other) { + public bool Equals(E2eeStateChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (TrackSid != other.TrackSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (State != other.State) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13932,8 +16356,8 @@ public bool Equals(TrackMuted other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (State != global::LiveKit.Proto.EncryptionState.New) hash ^= State.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13952,13 +16376,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); + if (State != global::LiveKit.Proto.EncryptionState.New) { + output.WriteRawTag(16); + output.WriteEnum((int) State); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13970,13 +16394,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); + if (State != global::LiveKit.Proto.EncryptionState.New) { + output.WriteRawTag(16); + output.WriteEnum((int) State); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13988,11 +16412,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (State != global::LiveKit.Proto.EncryptionState.New) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -14002,15 +16426,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackMuted other) { + public void MergeFrom(E2eeStateChanged other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.State != global::LiveKit.Proto.EncryptionState.New) { + State = other.State; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14028,11 +16452,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -14051,11 +16475,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -14066,21 +16490,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnmuted : pb::IMessage + public sealed partial class ActiveSpeakersChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnmuted()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveSpeakersChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[51]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14091,7 +16515,7 @@ public sealed partial class TrackUnmuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted() { + public ActiveSpeakersChanged() { OnConstruction(); } @@ -14099,59 +16523,44 @@ public TrackUnmuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted(TrackUnmuted other) : this() { - participantSid_ = other.participantSid_; - trackSid_ = other.trackSid_; + public ActiveSpeakersChanged(ActiveSpeakersChanged other) : this() { + participantIdentities_ = other.participantIdentities_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted Clone() { - return new TrackUnmuted(this); - } - - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } - set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ActiveSpeakersChanged Clone() { + return new ActiveSpeakersChanged(this); } - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + /// Field number for the "participant_identities" field. + public const int ParticipantIdentitiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_participantIdentities_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField participantIdentities_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } - set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField ParticipantIdentities { + get { return participantIdentities_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackUnmuted); + return Equals(other as ActiveSpeakersChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnmuted other) { + public bool Equals(ActiveSpeakersChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (TrackSid != other.TrackSid) return false; + if(!participantIdentities_.Equals(other.participantIdentities_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14159,8 +16568,7 @@ public bool Equals(TrackUnmuted other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + hash ^= participantIdentities_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14179,14 +16587,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); - } + participantIdentities_.WriteTo(output, _repeated_participantIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -14197,14 +16598,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); - } + participantIdentities_.WriteTo(ref output, _repeated_participantIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -14215,12 +16609,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); - } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); - } + size += participantIdentities_.CalculateSize(_repeated_participantIdentities_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -14229,16 +16618,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnmuted other) { + public void MergeFrom(ActiveSpeakersChanged other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; - } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; - } + participantIdentities_.Add(other.participantIdentities_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14255,11 +16639,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); - break; - } - case 18: { - TrackSid = input.ReadString(); + participantIdentities_.AddEntriesFrom(input, _repeated_participantIdentities_codec); break; } } @@ -14278,11 +16658,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); - break; - } - case 18: { - TrackSid = input.ReadString(); + participantIdentities_.AddEntriesFrom(ref input, _repeated_participantIdentities_codec); break; } } @@ -14293,21 +16669,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class E2eeStateChanged : pb::IMessage + public sealed partial class RoomMetadataChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeStateChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomMetadataChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[52]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14318,7 +16694,7 @@ public sealed partial class E2eeStateChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged() { + public RoomMetadataChanged() { OnConstruction(); } @@ -14326,62 +16702,45 @@ public E2eeStateChanged() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged(E2eeStateChanged other) : this() { - participantSid_ = other.participantSid_; - state_ = other.state_; + public RoomMetadataChanged(RoomMetadataChanged other) : this() { + metadata_ = other.metadata_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged Clone() { - return new E2eeStateChanged(this); - } - - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; - /// - /// Using sid instead of identity for ffi communication - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } - set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public RoomMetadataChanged Clone() { + return new RoomMetadataChanged(this); } - /// Field number for the "state" field. - public const int StateFieldNumber = 2; - private global::LiveKit.Proto.EncryptionState state_ = global::LiveKit.Proto.EncryptionState.New; + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 1; + private string metadata_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.EncryptionState State { - get { return state_; } + public string Metadata { + get { return metadata_; } set { - state_ = value; + metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as E2eeStateChanged); + return Equals(other as RoomMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(E2eeStateChanged other) { + public bool Equals(RoomMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (State != other.State) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14389,8 +16748,7 @@ public bool Equals(E2eeStateChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (State != global::LiveKit.Proto.EncryptionState.New) hash ^= State.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14409,13 +16767,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (Metadata.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - output.WriteRawTag(16); - output.WriteEnum((int) State); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -14427,13 +16781,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (Metadata.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - output.WriteRawTag(16); - output.WriteEnum((int) State); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -14445,11 +16795,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + if (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -14459,15 +16806,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(E2eeStateChanged other) { + public void MergeFrom(RoomMetadataChanged other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; - } - if (other.State != global::LiveKit.Proto.EncryptionState.New) { - State = other.State; + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14485,11 +16829,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); - break; - } - case 16: { - State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); + Metadata = input.ReadString(); break; } } @@ -14508,11 +16848,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); - break; - } - case 16: { - State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); + Metadata = input.ReadString(); break; } } @@ -14523,21 +16859,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ActiveSpeakersChanged : pb::IMessage + public sealed partial class RoomSidChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveSpeakersChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomSidChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[53]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14548,7 +16884,7 @@ public sealed partial class ActiveSpeakersChanged : pb::IMessageField number for the "participant_sids" field. - public const int ParticipantSidsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_participantSids_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField participantSids_ = new pbc::RepeatedField(); + /// Field number for the "sid" field. + public const int SidFieldNumber = 1; + private string sid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParticipantSids { - get { return participantSids_; } + public string Sid { + get { return sid_; } + set { + sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ActiveSpeakersChanged); + return Equals(other as RoomSidChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ActiveSpeakersChanged other) { + public bool Equals(RoomSidChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!participantSids_.Equals(other.participantSids_)) return false; + if (Sid != other.Sid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14601,7 +16938,7 @@ public bool Equals(ActiveSpeakersChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= participantSids_.GetHashCode(); + if (Sid.Length != 0) hash ^= Sid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14620,7 +16957,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - participantSids_.WriteTo(output, _repeated_participantSids_codec); + if (Sid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Sid); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -14631,7 +16971,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - participantSids_.WriteTo(ref output, _repeated_participantSids_codec); + if (Sid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Sid); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -14642,7 +16985,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += participantSids_.CalculateSize(_repeated_participantSids_codec); + if (Sid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -14651,11 +16996,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ActiveSpeakersChanged other) { + public void MergeFrom(RoomSidChanged other) { if (other == null) { return; } - participantSids_.Add(other.participantSids_); + if (other.Sid.Length != 0) { + Sid = other.Sid; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14672,7 +17019,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - participantSids_.AddEntriesFrom(input, _repeated_participantSids_codec); + Sid = input.ReadString(); break; } } @@ -14691,7 +17038,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - participantSids_.AddEntriesFrom(ref input, _repeated_participantSids_codec); + Sid = input.ReadString(); break; } } @@ -14702,21 +17049,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomMetadataChanged : pb::IMessage + public sealed partial class ParticipantMetadataChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomMetadataChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantMetadataChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[54]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[63]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14727,7 +17074,7 @@ public sealed partial class RoomMetadataChanged : pb::IMessageField number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 1; + public const int MetadataFieldNumber = 2; private string metadata_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -14761,18 +17121,19 @@ public string Metadata { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomMetadataChanged); + return Equals(other as ParticipantMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomMetadataChanged other) { + public bool Equals(ParticipantMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (ParticipantIdentity != other.ParticipantIdentity) return false; if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14781,6 +17142,7 @@ public bool Equals(RoomMetadataChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -14800,8 +17162,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Metadata.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (Metadata.Length != 0) { + output.WriteRawTag(18); output.WriteString(Metadata); } if (_unknownFields != null) { @@ -14814,8 +17180,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Metadata.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (Metadata.Length != 0) { + output.WriteRawTag(18); output.WriteString(Metadata); } if (_unknownFields != null) { @@ -14828,6 +17198,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } if (Metadata.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } @@ -14839,10 +17212,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomMetadataChanged other) { + public void MergeFrom(ParticipantMetadataChanged other) { if (other == null) { return; } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } if (other.Metadata.Length != 0) { Metadata = other.Metadata; } @@ -14862,6 +17238,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { Metadata = input.ReadString(); break; } @@ -14881,6 +17261,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { Metadata = input.ReadString(); break; } @@ -14892,21 +17276,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomSidChanged : pb::IMessage + public sealed partial class ParticipantAttributesChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomSidChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantAttributesChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[55]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[64]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14917,7 +17301,7 @@ public sealed partial class RoomSidChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged() { + public ParticipantAttributesChanged() { OnConstruction(); } @@ -14925,45 +17309,71 @@ public RoomSidChanged() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged(RoomSidChanged other) : this() { - sid_ = other.sid_; + public ParticipantAttributesChanged(ParticipantAttributesChanged other) : this() { + participantIdentity_ = other.participantIdentity_; + attributes_ = other.attributes_.Clone(); + changedAttributes_ = other.changedAttributes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged Clone() { - return new RoomSidChanged(this); + public ParticipantAttributesChanged Clone() { + return new ParticipantAttributesChanged(this); } - /// Field number for the "sid" field. - public const int SidFieldNumber = 1; - private string sid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sid { - get { return sid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_attributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); + private readonly pbc::MapField attributes_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Attributes { + get { return attributes_; } + } + + /// Field number for the "changed_attributes" field. + public const int ChangedAttributesFieldNumber = 3; + private static readonly pbc::MapField.Codec _map_changedAttributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); + private readonly pbc::MapField changedAttributes_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField ChangedAttributes { + get { return changedAttributes_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomSidChanged); + return Equals(other as ParticipantAttributesChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomSidChanged other) { + public bool Equals(ParticipantAttributesChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Sid != other.Sid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (!Attributes.Equals(other.Attributes)) return false; + if (!ChangedAttributes.Equals(other.ChangedAttributes)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14971,7 +17381,9 @@ public bool Equals(RoomSidChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + hash ^= Attributes.GetHashCode(); + hash ^= ChangedAttributes.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14990,10 +17402,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sid); + output.WriteString(ParticipantIdentity); } + attributes_.WriteTo(output, _map_attributes_codec); + changedAttributes_.WriteTo(output, _map_changedAttributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -15004,10 +17418,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sid); + output.WriteString(ParticipantIdentity); } + attributes_.WriteTo(ref output, _map_attributes_codec); + changedAttributes_.WriteTo(ref output, _map_changedAttributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -15018,9 +17434,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } + size += attributes_.CalculateSize(_map_attributes_codec); + size += changedAttributes_.CalculateSize(_map_changedAttributes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -15029,13 +17447,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomSidChanged other) { + public void MergeFrom(ParticipantAttributesChanged other) { if (other == null) { return; } - if (other.Sid.Length != 0) { - Sid = other.Sid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } + attributes_.MergeFrom(other.attributes_); + changedAttributes_.MergeFrom(other.changedAttributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15052,7 +17472,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Sid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + attributes_.AddEntriesFrom(input, _map_attributes_codec); + break; + } + case 26: { + changedAttributes_.AddEntriesFrom(input, _map_changedAttributes_codec); break; } } @@ -15071,7 +17499,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Sid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + attributes_.AddEntriesFrom(ref input, _map_attributes_codec); + break; + } + case 26: { + changedAttributes_.AddEntriesFrom(ref input, _map_changedAttributes_codec); break; } } @@ -15082,21 +17518,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantMetadataChanged : pb::IMessage + public sealed partial class ParticipantNameChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantMetadataChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantNameChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[56]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[65]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15107,7 +17543,7 @@ public sealed partial class ParticipantMetadataChanged : pb::IMessageField number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 2; - private string metadata_ = ""; + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Metadata { - get { return metadata_; } + public string Name { + get { return name_; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantMetadataChanged); + return Equals(other as ParticipantNameChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantMetadataChanged other) { + public bool Equals(ParticipantNameChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (Metadata != other.Metadata) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15175,8 +17611,8 @@ public bool Equals(ParticipantMetadataChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15195,13 +17631,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (Metadata.Length != 0) { + if (Name.Length != 0) { output.WriteRawTag(18); - output.WriteString(Metadata); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15213,13 +17649,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (Metadata.Length != 0) { + if (Name.Length != 0) { output.WriteRawTag(18); - output.WriteString(Metadata); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15231,11 +17667,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (Metadata.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15245,15 +17681,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantMetadataChanged other) { + public void MergeFrom(ParticipantNameChanged other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.Metadata.Length != 0) { - Metadata = other.Metadata; + if (other.Name.Length != 0) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15271,11 +17707,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - Metadata = input.ReadString(); + Name = input.ReadString(); break; } } @@ -15294,11 +17730,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } case 18: { - Metadata = input.ReadString(); + Name = input.ReadString(); break; } } @@ -15309,21 +17745,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantNameChanged : pb::IMessage + public sealed partial class ConnectionQualityChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantNameChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[57]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[66]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15334,7 +17770,7 @@ public sealed partial class ParticipantNameChanged : pb::IMessageField number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private string participantIdentity_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public string ParticipantIdentity { + get { return participantIdentity_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; + /// Field number for the "quality" field. + public const int QualityFieldNumber = 2; + private global::LiveKit.Proto.ConnectionQuality quality_ = global::LiveKit.Proto.ConnectionQuality.QualityPoor; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public global::LiveKit.Proto.ConnectionQuality Quality { + get { return quality_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + quality_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantNameChanged); + return Equals(other as ConnectionQualityChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantNameChanged other) { + public bool Equals(ConnectionQualityChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (Name != other.Name) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (Quality != other.Quality) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15402,8 +17838,8 @@ public bool Equals(ParticipantNameChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) hash ^= Quality.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15422,13 +17858,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15440,13 +17876,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteString(ParticipantIdentity); } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15458,11 +17894,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15472,15 +17908,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantNameChanged other) { + public void MergeFrom(ConnectionQualityChanged other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + Quality = other.Quality; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15498,11 +17934,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } - case 18: { - Name = input.ReadString(); + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -15521,11 +17957,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } - case 18: { - Name = input.ReadString(); + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -15536,21 +17972,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConnectionQualityChanged : pb::IMessage + public sealed partial class UserPacket : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserPacket()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[58]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[67]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15561,7 +17997,7 @@ public sealed partial class ConnectionQualityChanged : pb::IMessageField number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private global::LiveKit.Proto.OwnedBuffer data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public global::LiveKit.Proto.OwnedBuffer Data { + get { return data_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + data_ = value; } } - /// Field number for the "quality" field. - public const int QualityFieldNumber = 2; - private global::LiveKit.Proto.ConnectionQuality quality_ = global::LiveKit.Proto.ConnectionQuality.QualityPoor; + /// Field number for the "topic" field. + public const int TopicFieldNumber = 2; + private readonly static string TopicDefaultValue = ""; + + private string topic_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ConnectionQuality Quality { - get { return quality_; } + public string Topic { + get { return topic_ ?? TopicDefaultValue; } set { - quality_ = value; + topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "topic" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTopic { + get { return topic_ != null; } + } + /// Clears the value of the "topic" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTopic() { + topic_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ConnectionQualityChanged); + return Equals(other as UserPacket); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnectionQualityChanged other) { + public bool Equals(UserPacket other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (Quality != other.Quality) return false; + if (!object.Equals(Data, other.Data)) return false; + if (Topic != other.Topic) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15629,8 +18079,8 @@ public bool Equals(ConnectionQualityChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) hash ^= Quality.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (HasTopic) hash ^= Topic.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15649,13 +18099,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (data_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteMessage(Data); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - output.WriteRawTag(16); - output.WriteEnum((int) Quality); + if (HasTopic) { + output.WriteRawTag(18); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15667,13 +18117,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantSid.Length != 0) { + if (data_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteMessage(Data); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - output.WriteRawTag(16); - output.WriteEnum((int) Quality); + if (HasTopic) { + output.WriteRawTag(18); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15685,11 +18135,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + if (HasTopic) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15699,15 +18149,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnectionQualityChanged other) { + public void MergeFrom(UserPacket other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.data_ != null) { + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + Data.MergeFrom(other.Data); } - if (other.Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - Quality = other.Quality; + if (other.HasTopic) { + Topic = other.Topic; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15725,11 +18178,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); break; } - case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + case 18: { + Topic = input.ReadString(); break; } } @@ -15748,11 +18204,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); break; } - case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + case 18: { + Topic = input.ReadString(); break; } } @@ -15763,21 +18222,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UserPacket : pb::IMessage + public sealed partial class SipDTMF : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserPacket()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipDTMF()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[59]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[68]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15788,7 +18247,7 @@ public sealed partial class UserPacket : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket() { + public SipDTMF() { OnConstruction(); } @@ -15796,73 +18255,73 @@ public UserPacket() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket(UserPacket other) : this() { - data_ = other.data_ != null ? other.data_.Clone() : null; - topic_ = other.topic_; + public SipDTMF(SipDTMF other) : this() { + code_ = other.code_; + digit_ = other.digit_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket Clone() { - return new UserPacket(this); + public SipDTMF Clone() { + return new SipDTMF(this); } - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private global::LiveKit.Proto.OwnedBuffer data_; + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private uint code_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedBuffer Data { - get { return data_; } + public uint Code { + get { return code_; } set { - data_ = value; + code_ = value; } } - /// Field number for the "topic" field. - public const int TopicFieldNumber = 2; - private readonly static string TopicDefaultValue = ""; + /// Field number for the "digit" field. + public const int DigitFieldNumber = 2; + private readonly static string DigitDefaultValue = ""; - private string topic_; + private string digit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Topic { - get { return topic_ ?? TopicDefaultValue; } + public string Digit { + get { return digit_ ?? DigitDefaultValue; } set { - topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + digit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "topic" field is set + /// Gets whether the "digit" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTopic { - get { return topic_ != null; } + public bool HasDigit { + get { return digit_ != null; } } - /// Clears the value of the "topic" field + /// Clears the value of the "digit" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopic() { - topic_ = null; + public void ClearDigit() { + digit_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UserPacket); + return Equals(other as SipDTMF); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserPacket other) { + public bool Equals(SipDTMF other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Data, other.Data)) return false; - if (Topic != other.Topic) return false; + if (Code != other.Code) return false; + if (Digit != other.Digit) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15870,8 +18329,8 @@ public bool Equals(UserPacket other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (data_ != null) hash ^= Data.GetHashCode(); - if (HasTopic) hash ^= Topic.GetHashCode(); + if (Code != 0) hash ^= Code.GetHashCode(); + if (HasDigit) hash ^= Digit.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15890,13 +18349,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (data_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Data); + if (Code != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Code); } - if (HasTopic) { + if (HasDigit) { output.WriteRawTag(18); - output.WriteString(Topic); + output.WriteString(Digit); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15908,13 +18367,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (data_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Data); + if (Code != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Code); } - if (HasTopic) { + if (HasDigit) { output.WriteRawTag(18); - output.WriteString(Topic); + output.WriteString(Digit); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15926,11 +18385,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + if (Code != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); } - if (HasTopic) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); + if (HasDigit) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Digit); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15940,18 +18399,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserPacket other) { - if (other == null) { - return; - } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); - } - Data.MergeFrom(other.Data); + public void MergeFrom(SipDTMF other) { + if (other == null) { + return; } - if (other.HasTopic) { - Topic = other.Topic; + if (other.Code != 0) { + Code = other.Code; + } + if (other.HasDigit) { + Digit = other.Digit; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15968,15 +18424,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); - } - input.ReadMessage(Data); + case 8: { + Code = input.ReadUInt32(); break; } case 18: { - Topic = input.ReadString(); + Digit = input.ReadString(); break; } } @@ -15994,15 +18447,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); - } - input.ReadMessage(Data); + case 8: { + Code = input.ReadUInt32(); break; } case 18: { - Topic = input.ReadString(); + Digit = input.ReadString(); break; } } @@ -16013,21 +18463,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SipDTMF : pb::IMessage + public sealed partial class DataPacketReceived : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipDTMF()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataPacketReceived()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[60]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[69]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16038,7 +18488,7 @@ public sealed partial class SipDTMF : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SipDTMF() { + public DataPacketReceived() { OnConstruction(); } @@ -16046,73 +18496,119 @@ public SipDTMF() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SipDTMF(SipDTMF other) : this() { - code_ = other.code_; - digit_ = other.digit_; + public DataPacketReceived(DataPacketReceived other) : this() { + kind_ = other.kind_; + participantIdentity_ = other.participantIdentity_; + switch (other.ValueCase) { + case ValueOneofCase.User: + User = other.User.Clone(); + break; + case ValueOneofCase.SipDtmf: + SipDtmf = other.SipDtmf.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SipDTMF Clone() { - return new SipDTMF(this); + public DataPacketReceived Clone() { + return new DataPacketReceived(this); } - /// Field number for the "code" field. - public const int CodeFieldNumber = 1; - private uint code_; + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private global::LiveKit.Proto.DataPacketKind kind_ = global::LiveKit.Proto.DataPacketKind.KindLossy; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Code { - get { return code_; } + public global::LiveKit.Proto.DataPacketKind Kind { + get { return kind_; } set { - code_ = value; + kind_ = value; } } - /// Field number for the "digit" field. - public const int DigitFieldNumber = 2; - private readonly static string DigitDefaultValue = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 2; + private string participantIdentity_ = ""; + /// + /// Can be empty if the data is sent a server SDK + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - private string digit_; + /// Field number for the "user" field. + public const int UserFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Digit { - get { return digit_ ?? DigitDefaultValue; } + public global::LiveKit.Proto.UserPacket User { + get { return valueCase_ == ValueOneofCase.User ? (global::LiveKit.Proto.UserPacket) value_ : null; } set { - digit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.User; } } - /// Gets whether the "digit" field is set + + /// Field number for the "sip_dtmf" field. + public const int SipDtmfFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDigit { - get { return digit_ != null; } + public global::LiveKit.Proto.SipDTMF SipDtmf { + get { return valueCase_ == ValueOneofCase.SipDtmf ? (global::LiveKit.Proto.SipDTMF) value_ : null; } + set { + value_ = value; + valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SipDtmf; + } } - /// Clears the value of the "digit" field + + private object value_; + /// Enum of possible cases for the "value" oneof. + public enum ValueOneofCase { + None = 0, + User = 4, + SipDtmf = 5, + } + private ValueOneofCase valueCase_ = ValueOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDigit() { - digit_ = null; + public ValueOneofCase ValueCase { + get { return valueCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + valueCase_ = ValueOneofCase.None; + value_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SipDTMF); + return Equals(other as DataPacketReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SipDTMF other) { + public bool Equals(DataPacketReceived other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Code != other.Code) return false; - if (Digit != other.Digit) return false; + if (Kind != other.Kind) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (!object.Equals(User, other.User)) return false; + if (!object.Equals(SipDtmf, other.SipDtmf)) return false; + if (ValueCase != other.ValueCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16120,8 +18616,11 @@ public bool Equals(SipDTMF other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Code != 0) hash ^= Code.GetHashCode(); - if (HasDigit) hash ^= Digit.GetHashCode(); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) hash ^= Kind.GetHashCode(); + if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (valueCase_ == ValueOneofCase.User) hash ^= User.GetHashCode(); + if (valueCase_ == ValueOneofCase.SipDtmf) hash ^= SipDtmf.GetHashCode(); + hash ^= (int) valueCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16140,13 +18639,21 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Code != 0) { + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { output.WriteRawTag(8); - output.WriteUInt32(Code); + output.WriteEnum((int) Kind); } - if (HasDigit) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(18); - output.WriteString(Digit); + output.WriteString(ParticipantIdentity); + } + if (valueCase_ == ValueOneofCase.User) { + output.WriteRawTag(34); + output.WriteMessage(User); + } + if (valueCase_ == ValueOneofCase.SipDtmf) { + output.WriteRawTag(42); + output.WriteMessage(SipDtmf); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -16158,13 +18665,21 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Code != 0) { + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { output.WriteRawTag(8); - output.WriteUInt32(Code); + output.WriteEnum((int) Kind); } - if (HasDigit) { + if (ParticipantIdentity.Length != 0) { output.WriteRawTag(18); - output.WriteString(Digit); + output.WriteString(ParticipantIdentity); + } + if (valueCase_ == ValueOneofCase.User) { + output.WriteRawTag(34); + output.WriteMessage(User); + } + if (valueCase_ == ValueOneofCase.SipDtmf) { + output.WriteRawTag(42); + output.WriteMessage(SipDtmf); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -16176,11 +18691,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Code != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } - if (HasDigit) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Digit); + if (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (valueCase_ == ValueOneofCase.User) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (valueCase_ == ValueOneofCase.SipDtmf) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipDtmf); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -16190,16 +18711,31 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SipDTMF other) { + public void MergeFrom(DataPacketReceived other) { if (other == null) { return; } - if (other.Code != 0) { - Code = other.Code; + if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + Kind = other.Kind; } - if (other.HasDigit) { - Digit = other.Digit; + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + switch (other.ValueCase) { + case ValueOneofCase.User: + if (User == null) { + User = new global::LiveKit.Proto.UserPacket(); + } + User.MergeFrom(other.User); + break; + case ValueOneofCase.SipDtmf: + if (SipDtmf == null) { + SipDtmf = new global::LiveKit.Proto.SipDTMF(); + } + SipDtmf.MergeFrom(other.SipDtmf); + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -16216,11 +18752,29 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Code = input.ReadUInt32(); + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); break; } case 18: { - Digit = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 34: { + global::LiveKit.Proto.UserPacket subBuilder = new global::LiveKit.Proto.UserPacket(); + if (valueCase_ == ValueOneofCase.User) { + subBuilder.MergeFrom(User); + } + input.ReadMessage(subBuilder); + User = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.SipDTMF subBuilder = new global::LiveKit.Proto.SipDTMF(); + if (valueCase_ == ValueOneofCase.SipDtmf) { + subBuilder.MergeFrom(SipDtmf); + } + input.ReadMessage(subBuilder); + SipDtmf = subBuilder; break; } } @@ -16239,11 +18793,29 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Code = input.ReadUInt32(); + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); break; } case 18: { - Digit = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 34: { + global::LiveKit.Proto.UserPacket subBuilder = new global::LiveKit.Proto.UserPacket(); + if (valueCase_ == ValueOneofCase.User) { + subBuilder.MergeFrom(User); + } + input.ReadMessage(subBuilder); + User = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.SipDTMF subBuilder = new global::LiveKit.Proto.SipDTMF(); + if (valueCase_ == ValueOneofCase.SipDtmf) { + subBuilder.MergeFrom(SipDtmf); + } + input.ReadMessage(subBuilder); + SipDtmf = subBuilder; break; } } @@ -16254,21 +18826,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class DataPacketReceived : pb::IMessage + public sealed partial class TranscriptionReceived : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataPacketReceived()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranscriptionReceived()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[61]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[70]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16279,7 +18851,7 @@ public sealed partial class DataPacketReceived : pb::IMessageField number for the "kind" field. - public const int KindFieldNumber = 1; - private global::LiveKit.Proto.DataPacketKind kind_ = global::LiveKit.Proto.DataPacketKind.KindLossy; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.DataPacketKind Kind { - get { return kind_; } - set { - kind_ = value; - } + public TranscriptionReceived Clone() { + return new TranscriptionReceived(this); } /// Field number for the "participant_identity" field. - public const int ParticipantIdentityFieldNumber = 2; - private string participantIdentity_ = ""; - /// - /// Can be empty if the data is sent a server SDK - /// + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 3; - private readonly static string ParticipantSidDefaultValue = ""; - - private string participantSid_; - /// - /// Can be empty if the data is sent a server SDK - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_ ?? ParticipantSidDefaultValue; } - set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "participant_sid" field is set - [global::System.ObsoleteAttribute] + /// Gets whether the "participant_identity" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParticipantSid { - get { return participantSid_ != null; } + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } } - /// Clears the value of the "participant_sid" field - [global::System.ObsoleteAttribute] + /// Clears the value of the "participant_identity" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParticipantSid() { - participantSid_ = null; + public void ClearParticipantIdentity() { + participantIdentity_ = null; } - /// Field number for the "user" field. - public const int UserFieldNumber = 4; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.UserPacket User { - get { return valueCase_ == ValueOneofCase.User ? (global::LiveKit.Proto.UserPacket) value_ : null; } + public string TrackSid { + get { return trackSid_ ?? TrackSidDefaultValue; } set { - value_ = value; - valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.User; + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "sip_dtmf" field. - public const int SipDtmfFieldNumber = 5; + /// Gets whether the "track_sid" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.SipDTMF SipDtmf { - get { return valueCase_ == ValueOneofCase.SipDtmf ? (global::LiveKit.Proto.SipDTMF) value_ : null; } - set { - value_ = value; - valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.SipDtmf; - } - } - - private object value_; - /// Enum of possible cases for the "value" oneof. - public enum ValueOneofCase { - None = 0, - User = 4, - SipDtmf = 5, + public bool HasTrackSid { + get { return trackSid_ != null; } } - private ValueOneofCase valueCase_ = ValueOneofCase.None; + /// Clears the value of the "track_sid" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueOneofCase ValueCase { - get { return valueCase_; } + public void ClearTrackSid() { + trackSid_ = null; } + /// Field number for the "segments" field. + public const int SegmentsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_segments_codec + = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.TranscriptionSegment.Parser); + private readonly pbc::RepeatedField segments_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - valueCase_ = ValueOneofCase.None; - value_ = null; + public pbc::RepeatedField Segments { + get { return segments_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DataPacketReceived); + return Equals(other as TranscriptionReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DataPacketReceived other) { + public bool Equals(TranscriptionReceived other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Kind != other.Kind) return false; if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(User, other.User)) return false; - if (!object.Equals(SipDtmf, other.SipDtmf)) return false; - if (ValueCase != other.ValueCase) return false; + if (TrackSid != other.TrackSid) return false; + if(!segments_.Equals(other.segments_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16441,12 +18960,9 @@ public bool Equals(DataPacketReceived other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) hash ^= Kind.GetHashCode(); - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (HasParticipantSid) hash ^= ParticipantSid.GetHashCode(); - if (valueCase_ == ValueOneofCase.User) hash ^= User.GetHashCode(); - if (valueCase_ == ValueOneofCase.SipDtmf) hash ^= SipDtmf.GetHashCode(); - hash ^= (int) valueCase_; + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + hash ^= segments_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16465,26 +18981,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { - output.WriteRawTag(8); - output.WriteEnum((int) Kind); - } - if (ParticipantIdentity.Length != 0) { - output.WriteRawTag(18); + if (HasParticipantIdentity) { + output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (HasParticipantSid) { - output.WriteRawTag(26); - output.WriteString(ParticipantSid); - } - if (valueCase_ == ValueOneofCase.User) { - output.WriteRawTag(34); - output.WriteMessage(User); - } - if (valueCase_ == ValueOneofCase.SipDtmf) { - output.WriteRawTag(42); - output.WriteMessage(SipDtmf); + if (HasTrackSid) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } + segments_.WriteTo(output, _repeated_segments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -16495,26 +19000,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { - output.WriteRawTag(8); - output.WriteEnum((int) Kind); - } - if (ParticipantIdentity.Length != 0) { - output.WriteRawTag(18); + if (HasParticipantIdentity) { + output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (HasParticipantSid) { - output.WriteRawTag(26); - output.WriteString(ParticipantSid); - } - if (valueCase_ == ValueOneofCase.User) { - output.WriteRawTag(34); - output.WriteMessage(User); - } - if (valueCase_ == ValueOneofCase.SipDtmf) { - output.WriteRawTag(42); - output.WriteMessage(SipDtmf); + if (HasTrackSid) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } + segments_.WriteTo(ref output, _repeated_segments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -16525,21 +19019,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); - } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (HasParticipantSid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); - } - if (valueCase_ == ValueOneofCase.User) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (valueCase_ == ValueOneofCase.SipDtmf) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipDtmf); + if (HasTrackSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } + size += segments_.CalculateSize(_repeated_segments_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -16548,34 +19034,17 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DataPacketReceived other) { + public void MergeFrom(TranscriptionReceived other) { if (other == null) { return; } - if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { - Kind = other.Kind; - } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.HasParticipantSid) { - ParticipantSid = other.ParticipantSid; - } - switch (other.ValueCase) { - case ValueOneofCase.User: - if (User == null) { - User = new global::LiveKit.Proto.UserPacket(); - } - User.MergeFrom(other.User); - break; - case ValueOneofCase.SipDtmf: - if (SipDtmf == null) { - SipDtmf = new global::LiveKit.Proto.SipDTMF(); - } - SipDtmf.MergeFrom(other.SipDtmf); - break; + if (other.HasTrackSid) { + TrackSid = other.TrackSid; } - + segments_.Add(other.segments_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -16591,34 +19060,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + case 10: { + ParticipantIdentity = input.ReadString(); break; } case 18: { - ParticipantIdentity = input.ReadString(); + TrackSid = input.ReadString(); break; } case 26: { - ParticipantSid = input.ReadString(); - break; - } - case 34: { - global::LiveKit.Proto.UserPacket subBuilder = new global::LiveKit.Proto.UserPacket(); - if (valueCase_ == ValueOneofCase.User) { - subBuilder.MergeFrom(User); - } - input.ReadMessage(subBuilder); - User = subBuilder; - break; - } - case 42: { - global::LiveKit.Proto.SipDTMF subBuilder = new global::LiveKit.Proto.SipDTMF(); - if (valueCase_ == ValueOneofCase.SipDtmf) { - subBuilder.MergeFrom(SipDtmf); - } - input.ReadMessage(subBuilder); - SipDtmf = subBuilder; + segments_.AddEntriesFrom(input, _repeated_segments_codec); break; } } @@ -16636,34 +19087,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + case 10: { + ParticipantIdentity = input.ReadString(); break; } case 18: { - ParticipantIdentity = input.ReadString(); + TrackSid = input.ReadString(); break; } case 26: { - ParticipantSid = input.ReadString(); - break; - } - case 34: { - global::LiveKit.Proto.UserPacket subBuilder = new global::LiveKit.Proto.UserPacket(); - if (valueCase_ == ValueOneofCase.User) { - subBuilder.MergeFrom(User); - } - input.ReadMessage(subBuilder); - User = subBuilder; - break; - } - case 42: { - global::LiveKit.Proto.SipDTMF subBuilder = new global::LiveKit.Proto.SipDTMF(); - if (valueCase_ == ValueOneofCase.SipDtmf) { - subBuilder.MergeFrom(SipDtmf); - } - input.ReadMessage(subBuilder); - SipDtmf = subBuilder; + segments_.AddEntriesFrom(ref input, _repeated_segments_codec); break; } } @@ -16688,7 +19121,7 @@ public sealed partial class ConnectionStateChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[63]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[72]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17031,7 +19464,7 @@ public sealed partial class Disconnected : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[64]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[73]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17051,6 +19484,7 @@ public Disconnected() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Disconnected(Disconnected other) : this() { + reason_ = other.reason_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -17060,6 +19494,18 @@ public Disconnected Clone() { return new Disconnected(this); } + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 1; + private global::LiveKit.Proto.DisconnectReason reason_ = global::LiveKit.Proto.DisconnectReason.UnknownReason; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DisconnectReason Reason { + get { return reason_; } + set { + reason_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -17075,6 +19521,7 @@ public bool Equals(Disconnected other) { if (ReferenceEquals(other, this)) { return true; } + if (Reason != other.Reason) return false; return Equals(_unknownFields, other._unknownFields); } @@ -17082,6 +19529,7 @@ public bool Equals(Disconnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) hash ^= Reason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -17100,6 +19548,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + output.WriteRawTag(8); + output.WriteEnum((int) Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -17110,6 +19562,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + output.WriteRawTag(8); + output.WriteEnum((int) Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -17120,6 +19576,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -17132,6 +19591,9 @@ public void MergeFrom(Disconnected other) { if (other == null) { return; } + if (other.Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + Reason = other.Reason; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17147,6 +19609,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + Reason = (global::LiveKit.Proto.DisconnectReason) input.ReadEnum(); + break; + } } } #endif @@ -17162,6 +19628,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + Reason = (global::LiveKit.Proto.DisconnectReason) input.ReadEnum(); + break; + } } } } @@ -17184,7 +19654,7 @@ public sealed partial class Reconnecting : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[65]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[74]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17337,7 +19807,7 @@ public sealed partial class Reconnected : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[66]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[75]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17490,7 +19960,7 @@ public sealed partial class RoomEOS : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[67]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[76]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/Runtime/Scripts/Proto/Track.cs b/Runtime/Scripts/Proto/Track.cs index 6fc5b61..47ccd60 100644 --- a/Runtime/Scripts/Proto/Track.cs +++ b/Runtime/Scripts/Proto/Track.cs @@ -51,13 +51,18 @@ static TrackReflection() { "dGF0ZRINCgVtdXRlZBgFIAEoCBIOCgZyZW1vdGUYBiABKAgiYwoKT3duZWRU", "cmFjaxItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", "SGFuZGxlEiYKBGluZm8YAiABKAsyGC5saXZla2l0LnByb3RvLlRyYWNrSW5m", - "byo9CglUcmFja0tpbmQSEAoMS0lORF9VTktOT1dOEAASDgoKS0lORF9BVURJ", - "TxABEg4KCktJTkRfVklERU8QAiqBAQoLVHJhY2tTb3VyY2USEgoOU09VUkNF", - "X1VOS05PV04QABIRCg1TT1VSQ0VfQ0FNRVJBEAESFQoRU09VUkNFX01JQ1JP", - "UEhPTkUQAhIWChJTT1VSQ0VfU0NSRUVOU0hBUkUQAxIcChhTT1VSQ0VfU0NS", - "RUVOU0hBUkVfQVVESU8QBCpECgtTdHJlYW1TdGF0ZRIRCg1TVEFURV9VTktO", - "T1dOEAASEAoMU1RBVEVfQUNUSVZFEAESEAoMU1RBVEVfUEFVU0VEEAJCEKoC", - "DUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); + "byI7ChVMb2NhbFRyYWNrTXV0ZVJlcXVlc3QSFAoMdHJhY2tfaGFuZGxlGAEg", + "ASgEEgwKBG11dGUYAiABKAgiJwoWTG9jYWxUcmFja011dGVSZXNwb25zZRIN", + "CgVtdXRlZBgBIAEoCCJBChhFbmFibGVSZW1vdGVUcmFja1JlcXVlc3QSFAoM", + "dHJhY2tfaGFuZGxlGAEgASgEEg8KB2VuYWJsZWQYAiABKAgiLAoZRW5hYmxl", + "UmVtb3RlVHJhY2tSZXNwb25zZRIPCgdlbmFibGVkGAEgASgIKj0KCVRyYWNr", + "S2luZBIQCgxLSU5EX1VOS05PV04QABIOCgpLSU5EX0FVRElPEAESDgoKS0lO", + "RF9WSURFTxACKoEBCgtUcmFja1NvdXJjZRISCg5TT1VSQ0VfVU5LTk9XThAA", + "EhEKDVNPVVJDRV9DQU1FUkEQARIVChFTT1VSQ0VfTUlDUk9QSE9ORRACEhYK", + "ElNPVVJDRV9TQ1JFRU5TSEFSRRADEhwKGFNPVVJDRV9TQ1JFRU5TSEFSRV9B", + "VURJTxAEKkQKC1N0cmVhbVN0YXRlEhEKDVNUQVRFX1VOS05PV04QABIQCgxT", + "VEFURV9BQ1RJVkUQARIQCgxTVEFURV9QQVVTRUQQAkIQqgINTGl2ZUtpdC5Q", + "cm90b2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.E2EeReflection.Descriptor, global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.StatsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.TrackKind), typeof(global::LiveKit.Proto.TrackSource), typeof(global::LiveKit.Proto.StreamState), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -72,7 +77,11 @@ static TrackReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublicationInfo), global::LiveKit.Proto.TrackPublicationInfo.Parser, new[]{ "Sid", "Name", "Kind", "Source", "Simulcasted", "Width", "Height", "MimeType", "Muted", "Remote", "EncryptionType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedTrackPublication), global::LiveKit.Proto.OwnedTrackPublication.Parser, new[]{ "Handle", "Info" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackInfo), global::LiveKit.Proto.TrackInfo.Parser, new[]{ "Sid", "Name", "Kind", "StreamState", "Muted", "Remote" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedTrack), global::LiveKit.Proto.OwnedTrack.Parser, new[]{ "Handle", "Info" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedTrack), global::LiveKit.Proto.OwnedTrack.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LocalTrackMuteRequest), global::LiveKit.Proto.LocalTrackMuteRequest.Parser, new[]{ "TrackHandle", "Mute" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LocalTrackMuteResponse), global::LiveKit.Proto.LocalTrackMuteResponse.Parser, new[]{ "Muted" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.EnableRemoteTrackRequest), global::LiveKit.Proto.EnableRemoteTrackRequest.Parser, new[]{ "TrackHandle", "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.EnableRemoteTrackResponse), global::LiveKit.Proto.EnableRemoteTrackResponse.Parser, new[]{ "Enabled" }, null, null, null, null) })); } #endregion @@ -3185,6 +3194,846 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Mute/UnMute a track + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LocalTrackMuteRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackMuteRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.TrackReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteRequest(LocalTrackMuteRequest other) : this() { + trackHandle_ = other.trackHandle_; + mute_ = other.mute_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteRequest Clone() { + return new LocalTrackMuteRequest(this); + } + + /// Field number for the "track_handle" field. + public const int TrackHandleFieldNumber = 1; + private ulong trackHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TrackHandle { + get { return trackHandle_; } + set { + trackHandle_ = value; + } + } + + /// Field number for the "mute" field. + public const int MuteFieldNumber = 2; + private bool mute_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Mute { + get { return mute_; } + set { + mute_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LocalTrackMuteRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalTrackMuteRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackHandle != other.TrackHandle) return false; + if (Mute != other.Mute) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (Mute != false) hash ^= Mute.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Mute != false) { + output.WriteRawTag(16); + output.WriteBool(Mute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Mute != false) { + output.WriteRawTag(16); + output.WriteBool(Mute); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); + } + if (Mute != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalTrackMuteRequest other) { + if (other == null) { + return; + } + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; + } + if (other.Mute != false) { + Mute = other.Mute; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Mute = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Mute = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LocalTrackMuteResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackMuteResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.TrackReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteResponse(LocalTrackMuteResponse other) : this() { + muted_ = other.muted_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackMuteResponse Clone() { + return new LocalTrackMuteResponse(this); + } + + /// Field number for the "muted" field. + public const int MutedFieldNumber = 1; + private bool muted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Muted { + get { return muted_; } + set { + muted_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LocalTrackMuteResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalTrackMuteResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Muted != other.Muted) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Muted != false) hash ^= Muted.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Muted != false) { + output.WriteRawTag(8); + output.WriteBool(Muted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Muted != false) { + output.WriteRawTag(8); + output.WriteBool(Muted); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Muted != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalTrackMuteResponse other) { + if (other == null) { + return; + } + if (other.Muted != false) { + Muted = other.Muted; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Muted = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Muted = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Enable/Disable a remote track + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableRemoteTrackRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableRemoteTrackRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.TrackReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackRequest(EnableRemoteTrackRequest other) : this() { + trackHandle_ = other.trackHandle_; + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackRequest Clone() { + return new EnableRemoteTrackRequest(this); + } + + /// Field number for the "track_handle" field. + public const int TrackHandleFieldNumber = 1; + private ulong trackHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TrackHandle { + get { return trackHandle_; } + set { + trackHandle_ = value; + } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 2; + private bool enabled_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableRemoteTrackRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableRemoteTrackRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackHandle != other.TrackHandle) return false; + if (Enabled != other.Enabled) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Enabled != false) { + output.WriteRawTag(16); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); + } + if (Enabled != false) { + output.WriteRawTag(16); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); + } + if (Enabled != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableRemoteTrackRequest other) { + if (other == null) { + return; + } + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Enabled = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + TrackHandle = input.ReadUInt64(); + break; + } + case 16: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableRemoteTrackResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableRemoteTrackResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.TrackReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackResponse(EnableRemoteTrackResponse other) : this() { + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableRemoteTrackResponse Clone() { + return new EnableRemoteTrackResponse(this); + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableRemoteTrackResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableRemoteTrackResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Enabled != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableRemoteTrackResponse other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/Runtime/Scripts/Proto/VideoFrame.cs b/Runtime/Scripts/Proto/VideoFrame.cs index 1988de8..8cbd0f1 100644 --- a/Runtime/Scripts/Proto/VideoFrame.cs +++ b/Runtime/Scripts/Proto/VideoFrame.cs @@ -25,68 +25,78 @@ static VideoFrameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChF2aWRlb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", - "b3RvIrUBChVOZXdWaWRlb1N0cmVhbVJlcXVlc3QSFAoMdHJhY2tfaGFuZGxl", - "GAEgASgEEiwKBHR5cGUYAiABKA4yHi5saXZla2l0LnByb3RvLlZpZGVvU3Ry", - "ZWFtVHlwZRIzCgZmb3JtYXQYAyABKA4yHi5saXZla2l0LnByb3RvLlZpZGVv", - "QnVmZmVyVHlwZUgAiAEBEhgKEG5vcm1hbGl6ZV9zdHJpZGUYBCABKAhCCQoH", - "X2Zvcm1hdCJJChZOZXdWaWRlb1N0cmVhbVJlc3BvbnNlEi8KBnN0cmVhbRgB", - "IAEoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb1N0cmVhbSJ/ChVOZXdW", - "aWRlb1NvdXJjZVJlcXVlc3QSLAoEdHlwZRgBIAEoDjIeLmxpdmVraXQucHJv", - "dG8uVmlkZW9Tb3VyY2VUeXBlEjgKCnJlc29sdXRpb24YAiABKAsyJC5saXZl", - "a2l0LnByb3RvLlZpZGVvU291cmNlUmVzb2x1dGlvbiJJChZOZXdWaWRlb1Nv", - "dXJjZVJlc3BvbnNlEi8KBnNvdXJjZRgBIAEoCzIfLmxpdmVraXQucHJvdG8u", - "T3duZWRWaWRlb1NvdXJjZSKnAQoYQ2FwdHVyZVZpZGVvRnJhbWVSZXF1ZXN0", - "EhUKDXNvdXJjZV9oYW5kbGUYASABKAQSLgoGYnVmZmVyGAIgASgLMh4ubGl2", - "ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8SFAoMdGltZXN0YW1wX3VzGAMg", - "ASgDEi4KCHJvdGF0aW9uGAQgASgOMhwubGl2ZWtpdC5wcm90by5WaWRlb1Jv", - "dGF0aW9uIhsKGUNhcHR1cmVWaWRlb0ZyYW1lUmVzcG9uc2UihwEKE1ZpZGVv", - "Q29udmVydFJlcXVlc3QSDgoGZmxpcF95GAEgASgIEi4KBmJ1ZmZlchgCIAEo", - "CzIeLmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJJbmZvEjAKCGRzdF90eXBl", - "GAMgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGUiZQoUVmlk", - "ZW9Db252ZXJ0UmVzcG9uc2USEgoFZXJyb3IYASABKAlIAIgBARIvCgZidWZm", - "ZXIYAiABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlkZW9CdWZmZXJCCAoG", - "X2Vycm9yIkQKD1ZpZGVvUmVzb2x1dGlvbhINCgV3aWR0aBgBIAEoDRIOCgZo", - "ZWlnaHQYAiABKA0SEgoKZnJhbWVfcmF0ZRgDIAEoASKDAgoPVmlkZW9CdWZm", - "ZXJJbmZvEiwKBHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZpZGVvQnVm", - "ZmVyVHlwZRINCgV3aWR0aBgCIAEoDRIOCgZoZWlnaHQYAyABKA0SEAoIZGF0", - "YV9wdHIYBCABKAQSDgoGc3RyaWRlGAYgASgNEkAKCmNvbXBvbmVudHMYByAD", - "KAsyLC5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVySW5mby5Db21wb25lbnRJ", - "bmZvGj8KDUNvbXBvbmVudEluZm8SEAoIZGF0YV9wdHIYASABKAQSDgoGc3Ry", - "aWRlGAIgASgNEgwKBHNpemUYAyABKA0ibwoQT3duZWRWaWRlb0J1ZmZlchIt", - "CgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxl", - "EiwKBGluZm8YAiABKAsyHi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVySW5m", - "byI/Cg9WaWRlb1N0cmVhbUluZm8SLAoEdHlwZRgBIAEoDjIeLmxpdmVraXQu", - "cHJvdG8uVmlkZW9TdHJlYW1UeXBlIm8KEE93bmVkVmlkZW9TdHJlYW0SLQoG", - "aGFuZGxlGAEgASgLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIs", - "CgRpbmZvGAIgASgLMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbUluZm8i", - "nwEKEFZpZGVvU3RyZWFtRXZlbnQSFQoNc3RyZWFtX2hhbmRsZRgBIAEoBBI7", - "Cg5mcmFtZV9yZWNlaXZlZBgCIAEoCzIhLmxpdmVraXQucHJvdG8uVmlkZW9G", - "cmFtZVJlY2VpdmVkSAASLAoDZW9zGAMgASgLMh0ubGl2ZWtpdC5wcm90by5W", - "aWRlb1N0cmVhbUVPU0gAQgkKB21lc3NhZ2UiiwEKElZpZGVvRnJhbWVSZWNl", - "aXZlZBIvCgZidWZmZXIYASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlk", - "ZW9CdWZmZXISFAoMdGltZXN0YW1wX3VzGAIgASgDEi4KCHJvdGF0aW9uGAMg", - "ASgOMhwubGl2ZWtpdC5wcm90by5WaWRlb1JvdGF0aW9uIhAKDlZpZGVvU3Ry", - "ZWFtRU9TIjYKFVZpZGVvU291cmNlUmVzb2x1dGlvbhINCgV3aWR0aBgBIAEo", - "DRIOCgZoZWlnaHQYAiABKA0iPwoPVmlkZW9Tb3VyY2VJbmZvEiwKBHR5cGUY", - "ASABKA4yHi5saXZla2l0LnByb3RvLlZpZGVvU291cmNlVHlwZSJvChBPd25l", - "ZFZpZGVvU291cmNlEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8u", - "RmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQucHJvdG8u", - "VmlkZW9Tb3VyY2VJbmZvKjEKClZpZGVvQ29kZWMSBwoDVlA4EAASCAoESDI2", - "NBABEgcKA0FWMRACEgcKA1ZQORADKmwKDVZpZGVvUm90YXRpb24SFAoQVklE", - "RU9fUk9UQVRJT05fMBAAEhUKEVZJREVPX1JPVEFUSU9OXzkwEAESFgoSVklE", - "RU9fUk9UQVRJT05fMTgwEAISFgoSVklERU9fUk9UQVRJT05fMjcwEAMqgQEK", - "D1ZpZGVvQnVmZmVyVHlwZRIICgRSR0JBEAASCAoEQUJHUhABEggKBEFSR0IQ", - "AhIICgRCR1JBEAMSCQoFUkdCMjQQBBIICgRJNDIwEAUSCQoFSTQyMEEQBhII", - "CgRJNDIyEAcSCAoESTQ0NBAIEggKBEkwMTAQCRIICgROVjEyEAoqWQoPVmlk", - "ZW9TdHJlYW1UeXBlEhcKE1ZJREVPX1NUUkVBTV9OQVRJVkUQABIWChJWSURF", - "T19TVFJFQU1fV0VCR0wQARIVChFWSURFT19TVFJFQU1fSFRNTBACKioKD1Zp", - "ZGVvU291cmNlVHlwZRIXChNWSURFT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxp", - "dmVLaXQuUHJvdG9iBnByb3RvMw==")); + "b3RvGgt0cmFjay5wcm90byK1AQoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQK", + "DHRyYWNrX2hhbmRsZRgBIAEoBBIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5w", + "cm90by5WaWRlb1N0cmVhbVR5cGUSMwoGZm9ybWF0GAMgASgOMh4ubGl2ZWtp", + "dC5wcm90by5WaWRlb0J1ZmZlclR5cGVIAIgBARIYChBub3JtYWxpemVfc3Ry", + "aWRlGAQgASgIQgkKB19mb3JtYXQiSQoWTmV3VmlkZW9TdHJlYW1SZXNwb25z", + "ZRIvCgZzdHJlYW0YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlkZW9T", + "dHJlYW0i+QEKIVZpZGVvU3RyZWFtRnJvbVBhcnRpY2lwYW50UmVxdWVzdBIa", + "ChJwYXJ0aWNpcGFudF9oYW5kbGUYASABKAQSLAoEdHlwZRgCIAEoDjIeLmxp", + "dmVraXQucHJvdG8uVmlkZW9TdHJlYW1UeXBlEjAKDHRyYWNrX3NvdXJjZRgD", + "IAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tTb3VyY2USMwoGZm9ybWF0GAQg", + "ASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGVIAIgBARIYChBu", + "b3JtYWxpemVfc3RyaWRlGAUgASgIQgkKB19mb3JtYXQiVQoiVmlkZW9TdHJl", + "YW1Gcm9tUGFydGljaXBhbnRSZXNwb25zZRIvCgZzdHJlYW0YASABKAsyHy5s", + "aXZla2l0LnByb3RvLk93bmVkVmlkZW9TdHJlYW0ifwoVTmV3VmlkZW9Tb3Vy", + "Y2VSZXF1ZXN0EiwKBHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZpZGVv", + "U291cmNlVHlwZRI4CgpyZXNvbHV0aW9uGAIgASgLMiQubGl2ZWtpdC5wcm90", + "by5WaWRlb1NvdXJjZVJlc29sdXRpb24iSQoWTmV3VmlkZW9Tb3VyY2VSZXNw", + "b25zZRIvCgZzb3VyY2UYASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlk", + "ZW9Tb3VyY2UipwEKGENhcHR1cmVWaWRlb0ZyYW1lUmVxdWVzdBIVCg1zb3Vy", + "Y2VfaGFuZGxlGAEgASgEEi4KBmJ1ZmZlchgCIAEoCzIeLmxpdmVraXQucHJv", + "dG8uVmlkZW9CdWZmZXJJbmZvEhQKDHRpbWVzdGFtcF91cxgDIAEoAxIuCghy", + "b3RhdGlvbhgEIAEoDjIcLmxpdmVraXQucHJvdG8uVmlkZW9Sb3RhdGlvbiIb", + "ChlDYXB0dXJlVmlkZW9GcmFtZVJlc3BvbnNlIocBChNWaWRlb0NvbnZlcnRS", + "ZXF1ZXN0Eg4KBmZsaXBfeRgBIAEoCBIuCgZidWZmZXIYAiABKAsyHi5saXZl", + "a2l0LnByb3RvLlZpZGVvQnVmZmVySW5mbxIwCghkc3RfdHlwZRgDIAEoDjIe", + "LmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJUeXBlImUKFFZpZGVvQ29udmVy", + "dFJlc3BvbnNlEhIKBWVycm9yGAEgASgJSACIAQESLwoGYnVmZmVyGAIgASgL", + "Mh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvQnVmZmVyQggKBl9lcnJvciJE", + "Cg9WaWRlb1Jlc29sdXRpb24SDQoFd2lkdGgYASABKA0SDgoGaGVpZ2h0GAIg", + "ASgNEhIKCmZyYW1lX3JhdGUYAyABKAEigwIKD1ZpZGVvQnVmZmVySW5mbxIs", + "CgR0eXBlGAEgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGUS", + "DQoFd2lkdGgYAiABKA0SDgoGaGVpZ2h0GAMgASgNEhAKCGRhdGFfcHRyGAQg", + "ASgEEg4KBnN0cmlkZRgGIAEoDRJACgpjb21wb25lbnRzGAcgAygLMiwubGl2", + "ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8uQ29tcG9uZW50SW5mbxo/Cg1D", + "b21wb25lbnRJbmZvEhAKCGRhdGFfcHRyGAEgASgEEg4KBnN0cmlkZRgCIAEo", + "DRIMCgRzaXplGAMgASgNIm8KEE93bmVkVmlkZW9CdWZmZXISLQoGaGFuZGxl", + "GAEgASgLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZv", + "GAIgASgLMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8iPwoPVmlk", + "ZW9TdHJlYW1JbmZvEiwKBHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZp", + "ZGVvU3RyZWFtVHlwZSJvChBPd25lZFZpZGVvU3RyZWFtEi0KBmhhbmRsZRgB", + "IAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgC", + "IAEoCzIeLmxpdmVraXQucHJvdG8uVmlkZW9TdHJlYW1JbmZvIp8BChBWaWRl", + "b1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUYASABKAQSOwoOZnJhbWVf", + "cmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVSZWNl", + "aXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQucHJvdG8uVmlkZW9TdHJl", + "YW1FT1NIAEIJCgdtZXNzYWdlIosBChJWaWRlb0ZyYW1lUmVjZWl2ZWQSLwoG", + "YnVmZmVyGAEgASgLMh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvQnVmZmVy", + "EhQKDHRpbWVzdGFtcF91cxgCIAEoAxIuCghyb3RhdGlvbhgDIAEoDjIcLmxp", + "dmVraXQucHJvdG8uVmlkZW9Sb3RhdGlvbiIQCg5WaWRlb1N0cmVhbUVPUyI2", + "ChVWaWRlb1NvdXJjZVJlc29sdXRpb24SDQoFd2lkdGgYASABKA0SDgoGaGVp", + "Z2h0GAIgASgNIj8KD1ZpZGVvU291cmNlSW5mbxIsCgR0eXBlGAEgASgOMh4u", + "bGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVR5cGUibwoQT3duZWRWaWRlb1Nv", + "dXJjZRItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", + "SGFuZGxlEiwKBGluZm8YAiABKAsyHi5saXZla2l0LnByb3RvLlZpZGVvU291", + "cmNlSW5mbyoxCgpWaWRlb0NvZGVjEgcKA1ZQOBAAEggKBEgyNjQQARIHCgNB", + "VjEQAhIHCgNWUDkQAypsCg1WaWRlb1JvdGF0aW9uEhQKEFZJREVPX1JPVEFU", + "SU9OXzAQABIVChFWSURFT19ST1RBVElPTl85MBABEhYKElZJREVPX1JPVEFU", + "SU9OXzE4MBACEhYKElZJREVPX1JPVEFUSU9OXzI3MBADKoEBCg9WaWRlb0J1", + "ZmZlclR5cGUSCAoEUkdCQRAAEggKBEFCR1IQARIICgRBUkdCEAISCAoEQkdS", + "QRADEgkKBVJHQjI0EAQSCAoESTQyMBAFEgkKBUk0MjBBEAYSCAoESTQyMhAH", + "EggKBEk0NDQQCBIICgRJMDEwEAkSCAoETlYxMhAKKlkKD1ZpZGVvU3RyZWFt", + "VHlwZRIXChNWSURFT19TVFJFQU1fTkFUSVZFEAASFgoSVklERU9fU1RSRUFN", + "X1dFQkdMEAESFQoRVklERU9fU1RSRUFNX0hUTUwQAioqCg9WaWRlb1NvdXJj", + "ZVR5cGUSFwoTVklERU9fU09VUkNFX05BVElWRRAAQhCqAg1MaXZlS2l0LlBy", + "b3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.VideoCodec), typeof(global::LiveKit.Proto.VideoRotation), typeof(global::LiveKit.Proto.VideoBufferType), typeof(global::LiveKit.Proto.VideoStreamType), typeof(global::LiveKit.Proto.VideoSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamRequest), global::LiveKit.Proto.NewVideoStreamRequest.Parser, new[]{ "TrackHandle", "Type", "Format", "NormalizeStride" }, new[]{ "Format" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamResponse), global::LiveKit.Proto.NewVideoStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamFromParticipantRequest), global::LiveKit.Proto.VideoStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "Format", "NormalizeStride" }, new[]{ "Format" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamFromParticipantResponse), global::LiveKit.Proto.VideoStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoSourceRequest), global::LiveKit.Proto.NewVideoSourceRequest.Parser, new[]{ "Type", "Resolution" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoSourceResponse), global::LiveKit.Proto.NewVideoSourceResponse.Parser, new[]{ "Source" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureVideoFrameRequest), global::LiveKit.Proto.CaptureVideoFrameRequest.Parser, new[]{ "SourceHandle", "Buffer", "TimestampUs", "Rotation" }, null, null, null, null), @@ -678,6 +688,563 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Request a video stream from a participant + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoStreamFromParticipantRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoStreamFromParticipantRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantRequest(VideoStreamFromParticipantRequest other) : this() { + _hasBits0 = other._hasBits0; + participantHandle_ = other.participantHandle_; + type_ = other.type_; + trackSource_ = other.trackSource_; + format_ = other.format_; + normalizeStride_ = other.normalizeStride_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantRequest Clone() { + return new VideoStreamFromParticipantRequest(this); + } + + /// Field number for the "participant_handle" field. + public const int ParticipantHandleFieldNumber = 1; + private ulong participantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ParticipantHandle { + get { return participantHandle_; } + set { + participantHandle_ = value; + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private global::LiveKit.Proto.VideoStreamType type_ = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoStreamType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "track_source" field. + public const int TrackSourceFieldNumber = 3; + private global::LiveKit.Proto.TrackSource trackSource_ = global::LiveKit.Proto.TrackSource.SourceUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSource TrackSource { + get { return trackSource_; } + set { + trackSource_ = value; + } + } + + /// Field number for the "format" field. + public const int FormatFieldNumber = 4; + private readonly static global::LiveKit.Proto.VideoBufferType FormatDefaultValue = global::LiveKit.Proto.VideoBufferType.Rgba; + + private global::LiveKit.Proto.VideoBufferType format_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoBufferType Format { + get { if ((_hasBits0 & 1) != 0) { return format_; } else { return FormatDefaultValue; } } + set { + _hasBits0 |= 1; + format_ = value; + } + } + /// Gets whether the "format" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFormat { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "format" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFormat() { + _hasBits0 &= ~1; + } + + /// Field number for the "normalize_stride" field. + public const int NormalizeStrideFieldNumber = 5; + private bool normalizeStride_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NormalizeStride { + get { return normalizeStride_; } + set { + normalizeStride_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoStreamFromParticipantRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoStreamFromParticipantRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantHandle != other.ParticipantHandle) return false; + if (Type != other.Type) return false; + if (TrackSource != other.TrackSource) return false; + if (Format != other.Format) return false; + if (NormalizeStride != other.NormalizeStride) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ParticipantHandle != 0UL) hash ^= ParticipantHandle.GetHashCode(); + if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); + if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= TrackSource.GetHashCode(); + if (HasFormat) hash ^= Format.GetHashCode(); + if (NormalizeStride != false) hash ^= NormalizeStride.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ParticipantHandle); + } + if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + output.WriteRawTag(24); + output.WriteEnum((int) TrackSource); + } + if (HasFormat) { + output.WriteRawTag(32); + output.WriteEnum((int) Format); + } + if (NormalizeStride != false) { + output.WriteRawTag(40); + output.WriteBool(NormalizeStride); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ParticipantHandle); + } + if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + output.WriteRawTag(24); + output.WriteEnum((int) TrackSource); + } + if (HasFormat) { + output.WriteRawTag(32); + output.WriteEnum((int) Format); + } + if (NormalizeStride != false) { + output.WriteRawTag(40); + output.WriteBool(NormalizeStride); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ParticipantHandle); + } + if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackSource); + } + if (HasFormat) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Format); + } + if (NormalizeStride != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoStreamFromParticipantRequest other) { + if (other == null) { + return; + } + if (other.ParticipantHandle != 0UL) { + ParticipantHandle = other.ParticipantHandle; + } + if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + Type = other.Type; + } + if (other.TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + TrackSource = other.TrackSource; + } + if (other.HasFormat) { + Format = other.Format; + } + if (other.NormalizeStride != false) { + NormalizeStride = other.NormalizeStride; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); + break; + } + case 24: { + TrackSource = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 32: { + Format = (global::LiveKit.Proto.VideoBufferType) input.ReadEnum(); + break; + } + case 40: { + NormalizeStride = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); + break; + } + case 24: { + TrackSource = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 32: { + Format = (global::LiveKit.Proto.VideoBufferType) input.ReadEnum(); + break; + } + case 40: { + NormalizeStride = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoStreamFromParticipantResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoStreamFromParticipantResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantResponse(VideoStreamFromParticipantResponse other) : this() { + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamFromParticipantResponse Clone() { + return new VideoStreamFromParticipantResponse(this); + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 1; + private global::LiveKit.Proto.OwnedVideoStream stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedVideoStream Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoStreamFromParticipantResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoStreamFromParticipantResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Stream, other.Stream)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (stream_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (stream_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Stream); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoStreamFromParticipantResponse other) { + if (other == null) { + return; + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedVideoStream(); + } + Stream.MergeFrom(other.Stream); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedVideoStream(); + } + input.ReadMessage(Stream); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.OwnedVideoStream(); + } + input.ReadMessage(Stream); + break; + } + } + } + } + #endif + + } + /// /// Create a new VideoSource /// VideoSource is used to send video frame to a track @@ -697,7 +1264,7 @@ public sealed partial class NewVideoSourceRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[8]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2392,7 +2959,7 @@ public sealed partial class VideoBufferInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[9]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3031,7 +3598,7 @@ public sealed partial class OwnedVideoBuffer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[10]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3276,7 +3843,7 @@ public sealed partial class VideoStreamInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[11]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3466,7 +4033,7 @@ public sealed partial class OwnedVideoStream : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[12]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3711,7 +4278,7 @@ public sealed partial class VideoStreamEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[13]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4034,7 +4601,7 @@ public sealed partial class VideoFrameReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[15]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4463,7 +5030,7 @@ public sealed partial class VideoSourceResolution : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[17]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4880,7 +5447,7 @@ public sealed partial class OwnedVideoSource : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[18]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/Runtime/Scripts/Room.cs b/Runtime/Scripts/Room.cs index 73cbf17..8a92141 100644 --- a/Runtime/Scripts/Room.cs +++ b/Runtime/Scripts/Room.cs @@ -200,21 +200,21 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.ParticipantMetadataChanged: { - var participant = GetParticipant(e.ParticipantMetadataChanged.ParticipantSid); + var participant = GetParticipant(e.ParticipantMetadataChanged.ParticipantIdentity); if (participant != null) { ParticipantMetadataChanged?.Invoke(participant); participant.SetMeta(e.ParticipantMetadataChanged.Metadata); } - else Utils.Debug("Unable to find participant: " + e.ParticipantMetadataChanged.ParticipantSid + " in Meta data Change Event"); + else Utils.Debug("Unable to find participant: " + e.ParticipantMetadataChanged.ParticipantIdentity + " in Meta data Change Event"); } break; case RoomEvent.MessageOneofCase.ParticipantNameChanged: { - var participant = GetParticipant(e.ParticipantNameChanged.ParticipantSid); + var participant = GetParticipant(e.ParticipantNameChanged.ParticipantIdentity); participant.SetName(e.ParticipantNameChanged.Name); if (participant != null) ParticipantNameChanged?.Invoke(participant); - else Utils.Debug("Unable to find participant: " + e.ParticipantNameChanged.ParticipantSid + " in Meta data Change Event"); + else Utils.Debug("Unable to find participant: " + e.ParticipantNameChanged.ParticipantIdentity + " in Meta data Change Event"); } break; case RoomEvent.MessageOneofCase.ParticipantConnected: @@ -225,7 +225,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.ParticipantDisconnected: { - var sid = e.ParticipantDisconnected.ParticipantSid; + var sid = e.ParticipantDisconnected.ParticipantIdentity; var participant = RemoteParticipants[sid]; _participants.Remove(sid); ParticipantDisconnected?.Invoke(participant); @@ -233,7 +233,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackPublished: { - var participant = RemoteParticipants[e.TrackPublished.ParticipantSid]; + var participant = RemoteParticipants[e.TrackPublished.ParticipantIdentity]; var publication = new RemoteTrackPublication(e.TrackPublished.Publication.Info, FfiHandle.FromOwnedHandle(e.TrackPublished.Publication.Handle)); participant._tracks.Add(publication.Sid, publication); participant.OnTrackPublished(publication); @@ -242,7 +242,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackUnpublished: { - var participant = RemoteParticipants[e.TrackUnpublished.ParticipantSid]; + var participant = RemoteParticipants[e.TrackUnpublished.ParticipantIdentity]; var publication = participant.Tracks[e.TrackUnpublished.PublicationSid]; participant._tracks.Remove(publication.Sid); participant.OnTrackUnpublished(publication); @@ -253,7 +253,7 @@ internal void OnEventReceived(RoomEvent e) { var track = e.TrackSubscribed.Track; var info = track.Info; - var participant = RemoteParticipants[e.TrackSubscribed.ParticipantSid]; + var participant = RemoteParticipants[e.TrackSubscribed.ParticipantIdentity]; var publication = participant.Tracks[info.Sid]; if(publication == null) @@ -277,7 +277,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackUnsubscribed: { - var participant = RemoteParticipants[e.TrackUnsubscribed.ParticipantSid]; + var participant = RemoteParticipants[e.TrackUnsubscribed.ParticipantIdentity]; var publication = participant.Tracks[e.TrackUnsubscribed.TrackSid]; var track = publication.Track; publication.UpdateTrack(null); @@ -312,7 +312,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackMuted: { - var participant = GetParticipant(e.TrackMuted.ParticipantSid); + var participant = GetParticipant(e.TrackMuted.ParticipantIdentity); var publication = participant.Tracks[e.TrackMuted.TrackSid]; publication.UpdateMuted(true); TrackMuted?.Invoke(publication, participant); @@ -320,7 +320,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackUnmuted: { - var participant = GetParticipant(e.TrackUnmuted.ParticipantSid); + var participant = GetParticipant(e.TrackUnmuted.ParticipantIdentity); var publication = participant.Tracks[e.TrackUnmuted.TrackSid]; publication.UpdateMuted(false); TrackUnmuted?.Invoke(publication, participant); @@ -328,18 +328,18 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.ActiveSpeakersChanged: { - var sids = e.ActiveSpeakersChanged.ParticipantSids; - var speakers = new List(sids.Count); + var identities = e.ActiveSpeakersChanged.ParticipantIdentities; + var speakers = new List(identities.Count); - foreach (var sid in sids) - speakers.Add(GetParticipant(sid)); + foreach (var id in identities) + speakers.Add(GetParticipant(id)); ActiveSpeakersChanged?.Invoke(speakers); } break; case RoomEvent.MessageOneofCase.ConnectionQualityChanged: { - var participant = GetParticipant(e.ConnectionQualityChanged.ParticipantSid); + var participant = GetParticipant(e.ConnectionQualityChanged.ParticipantIdentity); var quality = e.ConnectionQualityChanged.Quality; participant.ConnectionQuality = quality; ConnectionQualityChanged?.Invoke(quality, participant); @@ -359,7 +359,7 @@ internal void OnEventReceived(RoomEvent e) var data = new byte[dataInfo.Data.Data.DataLen]; Marshal.Copy((IntPtr)dataInfo.Data.Data.DataPtr, data, 0, data.Length); #pragma warning disable CS0612 // Type or member is obsolete - var participant = GetParticipant(e.DataPacketReceived.ParticipantSid); + var participant = GetParticipant(e.DataPacketReceived.ParticipantIdentity); #pragma warning restore CS0612 // Type or member is obsolete DataReceived?.Invoke(data, participant, e.DataPacketReceived.Kind, dataInfo.Topic); } @@ -368,7 +368,7 @@ internal void OnEventReceived(RoomEvent e) { var dtmfInfo = e.DataPacketReceived.SipDtmf; #pragma warning disable CS0612 // Type or member is obsolete - var participant = GetParticipant(e.DataPacketReceived.ParticipantSid); + var participant = GetParticipant(e.DataPacketReceived.ParticipantIdentity); #pragma warning restore CS0612 // Type or member is obsolete SipDtmfReceived?.Invoke(participant, dtmfInfo.Code, dtmfInfo.Digit); } @@ -392,7 +392,7 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.E2EeStateChanged: { - var participant = GetParticipant(e.E2EeStateChanged.ParticipantSid); + var participant = GetParticipant(e.E2EeStateChanged.ParticipantIdentity); E2EeStateChanged?.Invoke(participant, e.E2EeStateChanged.State); } break; @@ -431,7 +431,7 @@ internal RemoteParticipant CreateRemoteParticipantWithTracks(ConnectCallback.Typ var participant = item.Participant; var publications = item.Publications; var newParticipant = new RemoteParticipant(participant, this); - _participants.Add(participant.Info.Sid, newParticipant); + _participants.Add(participant.Info.Identity, newParticipant); foreach (var pub in publications) { var publication = new RemoteTrackPublication(pub.Info, FfiHandle.FromOwnedHandle(pub.Handle)); @@ -444,16 +444,16 @@ internal RemoteParticipant CreateRemoteParticipantWithTracks(ConnectCallback.Typ internal RemoteParticipant CreateRemoteParticipant(OwnedParticipant participant) { var newParticipant = new RemoteParticipant(participant, this); - _participants.Add(participant.Info.Sid, newParticipant); + _participants.Add(participant.Info.Identity, newParticipant); return newParticipant; } - internal Participant GetParticipant(string sid) + internal Participant GetParticipant(string identity) { - if (sid == LocalParticipant.Sid) + if (identity == LocalParticipant.Identity) return LocalParticipant; - RemoteParticipants.TryGetValue(sid, out var remoteParticipant); + RemoteParticipants.TryGetValue(identity, out var remoteParticipant); return remoteParticipant; } } diff --git a/Runtime/Scripts/RtcSource.cs b/Runtime/Scripts/RtcSource.cs new file mode 100644 index 0000000..0a82efe --- /dev/null +++ b/Runtime/Scripts/RtcSource.cs @@ -0,0 +1,11 @@ + + +namespace LiveKit +{ + public abstract class IRtcSource + { + public abstract void SetMute(bool muted); + + public abstract bool Muted { get; } + } +} \ No newline at end of file diff --git a/Runtime/Scripts/RtcSource.cs.meta b/Runtime/Scripts/RtcSource.cs.meta new file mode 100644 index 0000000..ac64f2a --- /dev/null +++ b/Runtime/Scripts/RtcSource.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e09f1f7df5c5f49999a3eb239cbcadfd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Scripts/RtcVideoSource.cs b/Runtime/Scripts/RtcVideoSource.cs index 99a80cd..ceb71d4 100644 --- a/Runtime/Scripts/RtcVideoSource.cs +++ b/Runtime/Scripts/RtcVideoSource.cs @@ -11,7 +11,7 @@ namespace LiveKit { - public abstract class RtcVideoSource + public abstract class RtcVideoSource : IRtcSource { public enum VideoStreamSource { @@ -40,6 +40,8 @@ public enum VideoStreamSource protected bool isDisposed = true; protected bool _playing = false; private Texture2D _texture2D = null; + private bool _muted = false; + public override bool Muted => _muted; internal RtcVideoSource(VideoStreamSource sourceType, VideoBufferType bufferType) { @@ -128,12 +130,26 @@ public virtual void Stop() private void LoadToTexture2D(Texture2D tex, RenderTexture rTex) { + if (tex == null || rTex == null) + { + return; + } + var old_rt = RenderTexture.active; RenderTexture.active = rTex; - tex.ReadPixels(new Rect(0, 0, rTex.width, rTex.height), 0, 0); - tex.Apply(); +#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX + // Flip the texture for OSX + var pixels = tex.GetPixels(); + var flippedPixels = new Color[pixels.Length]; + for (int i = 0; i < rTex.height; i++) + { + Array.Copy(pixels, i * rTex.width, flippedPixels, (rTex.height - i - 1) * rTex.width, rTex.width); + } + tex.SetPixels(flippedPixels); +#endif + tex.Apply(); RenderTexture.active = old_rt; } @@ -160,13 +176,21 @@ public IEnumerator Update() { LoadToTexture2D(_texture2D, _dest as RenderTexture); } - + if(_muted) + { + continue; + } SendFrame(); } yield break; } + public override void SetMute(bool muted) + { + _muted = muted; + } + public virtual void Dispose() { if (!isDisposed) diff --git a/Runtime/Scripts/Track.cs b/Runtime/Scripts/Track.cs index 34e4f0b..4c6c4d9 100644 --- a/Runtime/Scripts/Track.cs +++ b/Runtime/Scripts/Track.cs @@ -19,14 +19,35 @@ public interface ITrack public interface ILocalTrack : ITrack { + IRtcSource source { get; } + public void UpdateSid (string sid) { Sid = sid; } + + public void SetMute(bool muted) + { + using var request = FFIBridge.Instance.NewRequest(); + var createTrack = request.request; + createTrack.Mute = muted; + createTrack.TrackHandle = (ulong)TrackHandle.DangerousGetHandle(); + using var resp = request.Send(); + FfiResponse res = resp; + source.SetMute(muted); + } } public interface IRemoteTrack : ITrack { - + public void SetEnabled(bool enabled) + { + using var request = FFIBridge.Instance.NewRequest(); + var req = request.request; + req.Enabled = enabled; + req.TrackHandle = (ulong)TrackHandle.DangerousGetHandle(); + using var resp = request.Send(); + FfiResponse res = resp; + } } public interface IAudioTrack : ITrack @@ -80,7 +101,13 @@ internal void UpdateMuted(bool muted) public sealed class LocalAudioTrack : Track, ILocalTrack, IAudioTrack { - internal LocalAudioTrack(OwnedTrack track, Room room) : base(track, room, room?.LocalParticipant) { } + RtcAudioSource _source; + + IRtcSource ILocalTrack.source { get => _source; } + + internal LocalAudioTrack(OwnedTrack track, Room room, RtcAudioSource source) : base(track, room, room?.LocalParticipant) { + _source = source; + } public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource source, Room room) { @@ -92,14 +119,20 @@ public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource sourc using var resp = request.Send(); FfiResponse res = resp; var trackInfo = res.CreateAudioTrack.Track; - var track = new LocalAudioTrack(trackInfo, room); + var track = new LocalAudioTrack(trackInfo, room, source); return track; } } public sealed class LocalVideoTrack : Track, ILocalTrack, IVideoTrack { - internal LocalVideoTrack(OwnedTrack track, Room room) : base(track, room, room?.LocalParticipant) { } + RtcVideoSource _source; + + IRtcSource ILocalTrack.source { get => _source; } + + internal LocalVideoTrack(OwnedTrack track, Room room, RtcVideoSource source) : base(track, room, room?.LocalParticipant) { + _source = source; + } public static LocalVideoTrack CreateVideoTrack(string name, RtcVideoSource source, Room room) { @@ -110,7 +143,7 @@ public static LocalVideoTrack CreateVideoTrack(string name, RtcVideoSource sourc using var response = request.Send(); FfiResponse res = response; var trackInfo = res.CreateVideoTrack.Track; - var track = new LocalVideoTrack(trackInfo, room); + var track = new LocalVideoTrack(trackInfo, room, source); return track; } } diff --git a/client-sdk-rust~ b/client-sdk-rust~ index 4865f37..170bb3a 160000 --- a/client-sdk-rust~ +++ b/client-sdk-rust~ @@ -1 +1 @@ -Subproject commit 4865f375463c0c0b6c6e5a080c36b4c31e2480e4 +Subproject commit 170bb3a2a9cd8b09e3f81b835fdc2a966e9b9b07 diff --git a/install.py b/install.py index b26fc5b..635d1c3 100644 --- a/install.py +++ b/install.py @@ -7,7 +7,7 @@ def show_progress(block_num, block_size, total_size): print(round(block_num * block_size / total_size *100,2), end="\r") -platforms = ['android', 'ios', 'macos', 'linux', 'windows'] +platforms = ['ios', 'macos', 'linux', 'windows'] download_dir = 'downloads~' def main(): diff --git a/version.ini b/version.ini index 8e35973..c3e4773 100644 --- a/version.ini +++ b/version.ini @@ -1,3 +1,3 @@ [ffi] -version = v0.6.1 +version = v0.9.0 url = https://github.com/livekit/rust-sdks/releases/download \ No newline at end of file