From 40110dbee4719a3c955aeb6c978481e7bc638417 Mon Sep 17 00:00:00 2001 From: Ashkan Saeidi Mazdeh Date: Fri, 15 Dec 2023 13:09:09 +0330 Subject: [PATCH] saving track for local Participant (+27 squashed commits) Squashed commits: [0e29f5f] log cleanup [c537528] handler fix [9bb1de9] try off frame [be7bf95] resample log check [d89b17d] remix fix [fe7d015] streaming fixes [0c6946d] track handle fix [8161ace] track handle fix temp logs to confirm [77ed7ae] fixing early subscription [da86881] subscription change [4cf717e] ensure channels and rate match [768fb01] Multithread refactor (#13) * disconnect support * Fix name * To handle better connection and disconnection from room * change to avoid using of Coroutines, using async methods instead * async OnAudioRead * Cleaning logs * Cancel tokens * Cancel token * remove Task.Run, since usually SendRequest is called from other task * getting rid of use YieldInstruction * adding audio filter in main thread * passing CancellationToken instead of CancellationTokenSource * added check for cancellation at beginning * Cleaning handles * fix await * remove cruft * Cancellation token cleanup * Factory async method * basic handling of remaining events * more async * wip * Compile pass * formatting * fix pending check * revert async changes * prep audio filter for threads * loggin * logs to debug publishing track * minor cleanup * added some methods to handle localtrack and SetSubscribed, Clenaing code * Cleaning up * fixes for yield instructions * macro for verbose logs * Audio data and pointer fix Still says samplerate and num of channels are incorrect * remove possibility of null * todo ref buffering * minor cleanup * cruft * todo object pooling * remove redundant Task usages on separated threads --------- Co-authored-by: cdga777 Co-authored-by: nickkhalow [a400ec9] enable nullables [a5a63c4] minor cleanup [892407a] to prevent null reference [511ef58] Hack for now Room Ids are different [6456edc] Test sending data [eca1cb5] new initialize call [830ebd1] modification trying to fix compiler errors [496618c] Added metas. [2cf59c3] Updated FFIClient with the correct FfiRequest class name based on updated proto file generated classes. [c8e3906] updated protobuf messages to latest to be able to publish data. [bb762d2] Updated dll [80d3dcd] Fixed the last error regarding the leak fix [7320b31] Fixed a compile error on the distructor [561282f] Fixed a memory leak [db871de] Fixed building issue. --- .vs/VSWorkspaceState.json | 7 + .vs/client-sdk-unity/v17/.wsuo | Bin 0 -> 15872 bytes README.md.meta | 7 + Runtime/Plugins/x86_64/livekit_ffi.dll | 4 +- Runtime/Scripts/AudioFrame.cs | 19 +- Runtime/Scripts/AudioSource.cs | 145 +- Runtime/Scripts/AudioStream.cs | 112 +- Runtime/Scripts/Internal/AudioFilter.cs | 2 +- Runtime/Scripts/Internal/AudioResampler.cs | 29 +- Runtime/Scripts/Internal/Constants.cs | 10 + Runtime/Scripts/Internal/Constants.cs.meta | 11 + Runtime/Scripts/Internal/FFIClient.cs | 119 +- Runtime/Scripts/Internal/NativeMethods.cs | 5 + Runtime/Scripts/Internal/YieldInstruction.cs | 25 +- Runtime/Scripts/Participant.cs | 62 +- Runtime/Scripts/Proto/AudioFrame.cs | 3096 +++- Runtime/Scripts/Proto/E2Ee.cs | 6425 +++++++ Runtime/Scripts/Proto/E2Ee.cs.meta | 11 + Runtime/Scripts/Proto/Ffi.cs | 2726 ++- Runtime/Scripts/Proto/Handle.cs | 234 +- Runtime/Scripts/Proto/Participant.cs | 391 +- Runtime/Scripts/Proto/Room.cs | 11493 +++++++++--- Runtime/Scripts/Proto/Stats.cs | 15708 +++++++++++++++++ Runtime/Scripts/Proto/Stats.cs.meta | 11 + Runtime/Scripts/Proto/Track.cs | 1873 +- Runtime/Scripts/Proto/VideoFrame.cs | 2496 ++- Runtime/Scripts/Room.cs | 239 +- Runtime/Scripts/Track.cs | 37 +- Runtime/Scripts/TrackPublication.cs | 13 + Runtime/Scripts/VideoFrame.cs | 26 +- Runtime/Scripts/VideoSource.cs | 162 +- Runtime/Scripts/VideoStream.cs | 115 +- Runtime/csc.rsp | 1 + Runtime/csc.rsp.meta | 3 + 34 files changed, 39715 insertions(+), 5902 deletions(-) create mode 100644 .vs/VSWorkspaceState.json create mode 100644 .vs/client-sdk-unity/v17/.wsuo create mode 100644 README.md.meta create mode 100644 Runtime/Scripts/Internal/Constants.cs create mode 100644 Runtime/Scripts/Internal/Constants.cs.meta create mode 100644 Runtime/Scripts/Proto/E2Ee.cs create mode 100644 Runtime/Scripts/Proto/E2Ee.cs.meta create mode 100644 Runtime/Scripts/Proto/Stats.cs create mode 100644 Runtime/Scripts/Proto/Stats.cs.meta create mode 100644 Runtime/csc.rsp create mode 100644 Runtime/csc.rsp.meta diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..0b60073 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "" + ], + "SelectedNode": "\\C:\\Users\\ashka\\Source\\Repos\\client-sdk-unity", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/client-sdk-unity/v17/.wsuo b/.vs/client-sdk-unity/v17/.wsuo new file mode 100644 index 0000000000000000000000000000000000000000..42b597601882a5f3bfca3b6ffcb0a5d06c7bcc43 GIT binary patch literal 15872 zcmeI3TW=dh6vxLcl=~eD6bhjfC>OW3lO}0^UXmuXfZI@~DH1`*v7N>=iG!UMDujf@ zr{Iwuv zH&->3v0=BleSOSt-{Py)>t|j$a_G<0z0~{ZQLpke6l>;Va~kRkq$bU0TeQ;rdbioJ zPG4ege%m^Cj$+i;f}=0Gt7eHF)J+8}Ad4bc@$0pF>^D17!QpOKFIaw(%q73ztho%8 zB~yie;l%*ula$nhAGSz~{%w@+0ORt1hPrNEKTi7ZAOobI_SN5C=gb?^=FO)$vsiBNtrls`@WZSb8?d9V$olL`eqo+aypR7tIv3H!T% z=W&tJy7hs)Hwd5wyoUdw_22Q|qROVCwOO7xT=GO4X4a0NSFhdg zKIls~WvkSOcJ+egQ)J{X2`1pa2rW^oLiy88z3}R_`^EoS=RGcc>5FUcBsAxd^hN&U zcV4g(FPTMh4Oc1RInV|D3EK0QUlXQ3P9G}t;S%0(&3dG3<}J!<^l`OCk8)kmABVoi zOAv>ClpGE){#whme#Mplaq2FDf-rr>0VO1`iUxXmA4OfZs`K$b23_@6(2Bk{1IqNG zY~!J*{tUyvZ0jRnT>g(zw;lZ{JLYAg5RG`<%7W@`0sd2p2NVayrLXvJUOzyX{|)+A z%`!7X)+q|Qk$=?u%Omw=s45P=;LDVqqfdggg~ zz^^c4t?woCF5HRh0y9&buc3L0jN8fGwXgVhCmH!0ap}KHU8nz=@0xFQ4~ z8^-MnROrcC+f`w#3;8$eU(Is53{9J`k6a?wz zk$|M&twaam`LZ388rre32ArXWdh3nMQTTUpeO&s|7k~Q4raxo#bO{Mno7N#GfBBSg z>5Feizku{h{#ak3ZCTwq9%k4tI*5kW;Jj=#;j$eowFCc_u4oHXwiTSEg44fF=*v%8 zW5&uWTcOvBv~#=*`qO;p=6@D%d5AW%cx2;v%V~adq%)+l{GBBA(fVB2Y#k(j`T2?& z}iJHcP@X$wvPWPbAmNCgA68VKMU7`--#awaaubAHPUqIhw`K3)-Wu#%}D3i}2d-NVQKr=$Vabw*| z(|`}7jK5+$(H6M!sAtgrMcJQesIKrQKWNHo{f6Cf?RPW&;@!zVivFzSe2ulbh$rG! zD1A{zGK27Z&{JvFQv5$Oa zf#e{2+%5F_z53A$eaTVZZ?v&`oNR39wf~d(Dd)kI_E!a1yD73-*oxB)I;2?p%mK?6%E z4|2fz(3hF3^4jL?YMSGB&Uy~Zv?uRDzWi0nW+|P+!pI9>qD8e|@Jq9-N(WhwM(yt) ztCH5HIlk5EuU#8?D|7Vv$AtF0WUe3waqx3OIap@QG#2$lk3$1pl*JV~=S%z^yJWjhAHBxDwcIVfR$Wm7$!;&wtp`Ka2}V%UzwuL;-zlAFYO{JmJ~Nhv01u} zv_!8L;9_IlbNQt6;c=JT@!0H>qgpW_6^LA8RNquZdl|ieVoyoki+j#vZ?)SatE=6{ zMNR~Yq=TnHb9R47r-P~`-&cD>+AB&^Qs#?vQ-l-UJMD#iU_Okl6!BL5?*()grOCq>tQE<-Ytmct}GX; zD^vBacYXiW-s?|(JN`xU+pTkB)9Fuo`F?8({TjDY0@{m>gZ=wI&G&{{$;|BmC+XQg z|4sb)Z>pE`-#n}NdAn!Xd=D(R=NV;xy19R$`?p$cZx#gS+s$gTlXj9!Ki>JP^CbG` zzv2H1(fPN|pq>V$2XXY~CZGS>yV~8J|Ay}$ZQQ?#egDh;Kgc%T|FZX=20D;`@ccQ< zf1X(8|8)QB8gi5V?q8^shqFWT#dLPGTuBdQGL`iFLb;sI%$G+hhlh&A`O=^bitKeS zzA)9}hM;2nP+?{)n;RX=jD4QX4wrMeBe`^CaHO0b%9hIMVrFC{U70VIilw2_XsI;x zh5x~k4nG*o#Qs2Qi=v%4@c!@aCTg78o9pc7zD)BCx(2K1tPK;hoZIOxNfh)Nzq+=& zjo-rh-@pIc@%`V9?_VBc(A@p6u>9S9#1(tCd+YE2_8R|du6cJ4`CpIz{(+m0iFy7D D3CZ4S literal 0 HcmV?d00001 diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 0000000..ac4f7ec --- /dev/null +++ b/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8e02b2c343acee545beb7cc63d3045c8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Plugins/x86_64/livekit_ffi.dll b/Runtime/Plugins/x86_64/livekit_ffi.dll index f45d93b..c4f99c3 100644 --- a/Runtime/Plugins/x86_64/livekit_ffi.dll +++ b/Runtime/Plugins/x86_64/livekit_ffi.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cc73de2fa06dd1789639d25e38dda341a6b4e1d4d33da17dbf550462b4e25589 -size 20041216 +oid sha256:805b42c11d40d7d58bd7860c0549f07a33eafbfe88e8ec196644450ac381e7cf +size 24250880 diff --git a/Runtime/Scripts/AudioFrame.cs b/Runtime/Scripts/AudioFrame.cs index 3d388c0..11226eb 100644 --- a/Runtime/Scripts/AudioFrame.cs +++ b/Runtime/Scripts/AudioFrame.cs @@ -7,9 +7,10 @@ namespace LiveKit public class AudioFrame : IDisposable { private AudioFrameBufferInfo _info; - - internal readonly FfiHandle Handle; private bool _disposed = false; + private FfiHandle _handle; + + internal FfiHandle Handle => _handle; public uint NumChannels => _info.NumChannels; public uint SampleRate => _info.SampleRate; @@ -20,7 +21,7 @@ public class AudioFrame : IDisposable internal AudioFrame(FfiHandle handle, AudioFrameBufferInfo info) { - Handle = handle; + _handle = handle; _info = info; } @@ -30,14 +31,20 @@ internal AudioFrame(int sampleRate, int numChannels, int samplesPerChannel) { alloc.NumChannels = (uint) numChannels; alloc.SamplesPerChannel = (uint) samplesPerChannel; - var request = new FFIRequest(); + var request = new FfiRequest(); request.AllocAudioBuffer = alloc; + Init(request); + } + + private void Init(FfiRequest request) + { var res = FfiClient.SendRequest(request); - var bufferInfo = res.AllocAudioBuffer.Buffer; + var bufferInfo = res.AllocAudioBuffer.Buffer.Info; - Handle = new FfiHandle((IntPtr)bufferInfo.Handle.Id); + _handle = new FfiHandle((IntPtr)res.AllocAudioBuffer.Buffer.Handle.Id); _info = bufferInfo; + } ~AudioFrame() diff --git a/Runtime/Scripts/AudioSource.cs b/Runtime/Scripts/AudioSource.cs index bad8d26..51e4ed9 100644 --- a/Runtime/Scripts/AudioSource.cs +++ b/Runtime/Scripts/AudioSource.cs @@ -6,6 +6,8 @@ using UnityEngine.Rendering; using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; +using System.Threading.Tasks; +using System.Threading; namespace LiveKit { @@ -14,74 +16,133 @@ public class RtcAudioSource private AudioSource _audioSource; private AudioFilter _audioFilter; - internal readonly FfiHandle Handle; + private FfiHandle _handle; + + internal FfiHandle Handle => _handle; + protected AudioSourceInfo _info; // Used on the AudioThread private AudioFrame _frame; - - public RtcAudioSource(AudioSource source) + private Thread _readAudioThread; + private object _lock = new object(); + private float[] _data; + private int _channels; + private int _sampleRate; + private volatile bool _pending = false; + + public RtcAudioSource(AudioSource source, AudioFilter audioFilter) { var newAudioSource = new NewAudioSourceRequest(); newAudioSource.Type = AudioSourceType.AudioSourceNative; + newAudioSource.NumChannels = 2; + newAudioSource.SampleRate = 48000; - var request = new FFIRequest(); + var request = new FfiRequest(); request.NewAudioSource = newAudioSource; var resp = FfiClient.SendRequest(request); - _info = resp.NewAudioSource.Source; - Handle = new FfiHandle((IntPtr)_info.Handle.Id); - UpdateSource(source); + _info = resp.NewAudioSource.Source.Info; + _handle = new FfiHandle((IntPtr)resp.NewAudioSource.Source.Handle.Id); + UpdateSource(source, audioFilter); } - private void UpdateSource(AudioSource source) + public void Start() { - _audioSource = source; - _audioFilter = source.gameObject.AddComponent(); - //_audioFilter.hideFlags = HideFlags.HideInInspector; - _audioFilter.AudioRead += OnAudioRead; - source.Play(); + Stop(); + _readAudioThread = new Thread(Update); + _readAudioThread.Start(); } + public void Stop() + { + _readAudioThread?.Abort(); + } - private void OnAudioRead(float[] data, int channels, int sampleRate) + private void Update() { - var samplesPerChannel = data.Length / channels; - if (_frame == null || _frame.NumChannels != channels - || _frame.SampleRate != sampleRate - || _frame.SamplesPerChannel != samplesPerChannel) + while (true) { - _frame = new AudioFrame(sampleRate, channels, samplesPerChannel); + Thread.Sleep(Constants.TASK_DELAY); + if (_pending) + { + ReadAudio(); + } } + } - static short FloatToS16(float v) { - v *= 32768f; - v = Math.Min(v, 32767f); - v = Math.Max(v, -32768f); - return (short)(v + Math.Sign(v) * 0.5f); - } + private void ReadAudio() + { + _pending = false; + lock (_lock) + { + var samplesPerChannel = _data.Length / _channels; + if (_frame == null + || _frame.NumChannels != _channels + || _frame.SampleRate != _sampleRate + || _frame.SamplesPerChannel != samplesPerChannel) + { + _frame = new AudioFrame(_sampleRate, _channels, samplesPerChannel); + } - unsafe { - var frameData = new Span(_frame.Data.ToPointer(), _frame.Length / sizeof(short)); - for (int i = 0; i < data.Length; i++) + try { - frameData[i] = FloatToS16(data[i]); + static short FloatToS16(float v) + { + v *= 32768f; + v = Math.Min(v, 32767f); + v = Math.Max(v, -32768f); + return (short)(v + Math.Sign(v) * 0.5f); + } + + unsafe + { + var frameData = new Span(_frame.Data.ToPointer(), _frame.Length / sizeof(short)); + for (int i = 0; i < _data.Length; i++) + { + frameData[i] = FloatToS16(_data[i]); + } + + var pushFrame = new CaptureAudioFrameRequest(); + pushFrame.SourceHandle = (ulong)Handle.DangerousGetHandle(); + pushFrame.Buffer = new AudioFrameBufferInfo() + { + DataPtr = (ulong)_frame.Data, + NumChannels = _frame.NumChannels, + SampleRate = _frame.SampleRate, + SamplesPerChannel = _frame.SamplesPerChannel + }; + Debug.Log($"Num Channels {_frame.NumChannels} Sample {_frame.SampleRate} and {_frame.SamplesPerChannel}"); + var request = new FfiRequest(); + request.CaptureAudioFrame = pushFrame; + FfiClient.SendRequest(request); + } + } + catch (Exception e) + { + Utils.Error("Audio Framedata error: " + e.Message); } } + } - // Don't play the audio locally - Array.Clear(data, 0, data.Length); - - var pushFrame = new CaptureAudioFrameRequest(); - pushFrame.SourceHandle = new FFIHandleId { Id = (ulong)Handle.DangerousGetHandle() }; - pushFrame.BufferHandle = new FFIHandleId { Id = (ulong)_frame.Handle.DangerousGetHandle() }; - - var request = new FFIRequest(); - request.CaptureAudioFrame = pushFrame; - - FfiClient.SendRequest(request); + private void UpdateSource(AudioSource source, AudioFilter audioFilter) + { + _audioSource = source; + _audioFilter = audioFilter; + _audioFilter.AudioRead += OnAudioRead; + _audioSource.Play(); + } - Debug.Log($"Pushed audio frame with {data.Length} samples"); + private void OnAudioRead(float[] data, int channels, int sampleRate) + { + lock (_lock) + { + _data = data; + _channels = channels; + _sampleRate = sampleRate; + _pending = true; + } } + } -} +} \ No newline at end of file diff --git a/Runtime/Scripts/AudioStream.cs b/Runtime/Scripts/AudioStream.cs index 949d856..5fe7bcc 100644 --- a/Runtime/Scripts/AudioStream.cs +++ b/Runtime/Scripts/AudioStream.cs @@ -3,12 +3,19 @@ using LiveKit.Internal; using LiveKit.Proto; using System.Runtime.InteropServices; +using System.Threading.Tasks; +using System.Threading; namespace LiveKit { public class AudioStream { - internal readonly FfiHandle Handle; + //internal readonly FfiHandle Handle; + private FfiHandle _handle; + internal FfiHandle Handle + { + get { return _handle; } + } private AudioSource _audioSource; private AudioFilter _audioFilter; private RingBuffer _buffer; @@ -18,6 +25,14 @@ public class AudioStream private AudioResampler _resampler = new AudioResampler(); private object _lock = new object(); + + private Thread _readAudioThread; + private bool _pending = false; + + private float[] _data; + private int _channels; + private int _pendingSampleRate; + public AudioStream(IAudioTrack audioTrack, AudioSource source) { if (!audioTrack.Room.TryGetTarget(out var room)) @@ -27,18 +42,15 @@ public AudioStream(IAudioTrack audioTrack, AudioSource source) throw new InvalidOperationException("audiotrack's participant is invalid"); var newAudioStream = new NewAudioStreamRequest(); - newAudioStream.RoomHandle = new FFIHandleId { Id = (ulong)room.Handle.DangerousGetHandle() }; - newAudioStream.ParticipantSid = participant.Sid; - newAudioStream.TrackSid = audioTrack.Sid; + newAudioStream.TrackHandle = (ulong)audioTrack.Handle.DangerousGetHandle(); newAudioStream.Type = AudioStreamType.AudioStreamNative; - var request = new FFIRequest(); + var request = new FfiRequest(); request.NewAudioStream = newAudioStream; - var resp = FfiClient.SendRequest(request); var streamInfo = resp.NewAudioStream.Stream; - Handle = new FfiHandle((IntPtr)streamInfo.Handle.Id); + _handle = new FfiHandle((IntPtr)streamInfo.Handle.Id); FfiClient.Instance.AudioStreamEventReceived += OnAudioStreamEvent; UpdateSource(source); @@ -46,6 +58,7 @@ public AudioStream(IAudioTrack audioTrack, AudioSource source) private void UpdateSource(AudioSource source) { + _audioSource = source; _audioFilter = source.gameObject.AddComponent(); //_audioFilter.hideFlags = HideFlags.HideInInspector; @@ -58,51 +71,87 @@ private void OnAudioRead(float[] data, int channels, int sampleRate) { lock (_lock) { - if (_buffer == null || channels != _numChannels || sampleRate != _sampleRate || data.Length != _tempBuffer.Length) - { - int size = (int)(channels * sampleRate * 0.2); - _buffer = new RingBuffer(size * sizeof(short)); - _tempBuffer = new short[data.Length]; - _numChannels = (uint)channels; - _sampleRate = (uint)sampleRate; - } - + _data = data; + _channels = channels; + _pendingSampleRate = sampleRate; + _pending = true; + } + } - static float S16ToFloat(short v) - { - return v / 32768f; - } + public void Start() + { + Stop(); + _readAudioThread = new Thread(() => Update()); + _readAudioThread.Start(); + } - // "Send" the data to Unity - var temp = MemoryMarshal.Cast(_tempBuffer.AsSpan().Slice(0, data.Length)); - int read = _buffer.Read(temp); + public void Stop() + { + if (_readAudioThread != null) _readAudioThread.Abort(); + } - Array.Clear(data, 0, data.Length); - for (int i = 0; i < data.Length; i++) - { - data[i] = S16ToFloat(_tempBuffer[i]); + private Task Update() + { + while (true) + { + Thread.Sleep(Constants.TASK_DELAY); + + if (_pending) + { + lock (_lock) + { + _pending = false; + if (_buffer == null || _channels != _numChannels || _pendingSampleRate != _sampleRate || _data.Length != _tempBuffer.Length) + { + int size = (int)(_channels * _sampleRate * 0.2); + _buffer = new RingBuffer(size * sizeof(short)); + _tempBuffer = new short[_data.Length]; + _numChannels = (uint)_channels; + _sampleRate = (uint)_pendingSampleRate; + } + + + static float S16ToFloat(short v) + { + return v / 32768f; + } + + // "Send" the data to Unity + var temp = MemoryMarshal.Cast(_tempBuffer.AsSpan().Slice(0, _data.Length)); + int read = _buffer.Read(temp); + + Array.Clear(_data, 0, _data.Length); + for (int i = 0; i < _data.Length; i++) + { + _data[i] = S16ToFloat(_tempBuffer[i]); + } + } } } } + // Called on the MainThread (See FfiClient) private void OnAudioStreamEvent(AudioStreamEvent e) { - if (e.Handle.Id != (ulong)Handle.DangerousGetHandle()) + if (e.StreamHandle != (ulong)Handle.DangerousGetHandle()) return; if (e.MessageCase != AudioStreamEvent.MessageOneofCase.FrameReceived) return; - var info = e.FrameReceived.Frame; - var handle = new FfiHandle((IntPtr)info.Handle.Id); + var info = e.FrameReceived.Frame.Info; + + //Debug.Log("Stream Event Start "+e.FrameReceived.Frame.Info.ToString() +" : "+e.FrameReceived.Frame.Info.SamplesPerChannel); + var handle = new FfiHandle((IntPtr)e.FrameReceived.Frame.Handle.Id); var frame = new AudioFrame(handle, info); lock (_lock) - { + { if (_numChannels == 0) return; + unsafe { var uFrame = _resampler.RemixAndResample(frame, _numChannels, _sampleRate); @@ -110,6 +159,7 @@ private void OnAudioStreamEvent(AudioStreamEvent e) _buffer?.Write(data); } } + } } } diff --git a/Runtime/Scripts/Internal/AudioFilter.cs b/Runtime/Scripts/Internal/AudioFilter.cs index 8042339..5c7e36f 100644 --- a/Runtime/Scripts/Internal/AudioFilter.cs +++ b/Runtime/Scripts/Internal/AudioFilter.cs @@ -5,7 +5,7 @@ namespace LiveKit { // from https://github.com/Unity-Technologies/com.unity.webrtc - internal class AudioFilter : MonoBehaviour + public class AudioFilter : MonoBehaviour { public delegate void OnAudioDelegate(float[] data, int channels, int sampleRate); // Event is called from the Unity audio thread diff --git a/Runtime/Scripts/Internal/AudioResampler.cs b/Runtime/Scripts/Internal/AudioResampler.cs index 5297ca6..e1c8207 100644 --- a/Runtime/Scripts/Internal/AudioResampler.cs +++ b/Runtime/Scripts/Internal/AudioResampler.cs @@ -1,37 +1,50 @@ using System; +using System.Threading; +using System.Threading.Tasks; using LiveKit.Internal; using LiveKit.Proto; +using UnityEngine; namespace LiveKit { public class AudioResampler { - internal readonly FfiHandle Handle; + private FfiHandle _handle; + internal FfiHandle Handle + { + get { return _handle; } + } public AudioResampler() { var newResampler = new NewAudioResamplerRequest(); - var request = new FFIRequest(); + var request = new FfiRequest(); request.NewAudioResampler = newResampler; - var res = FfiClient.SendRequest(request); - Handle = new FfiHandle((IntPtr)res.NewAudioResampler.Handle.Id); + _handle = new FfiHandle((IntPtr)res.NewAudioResampler.Resampler.Handle.Id); } public AudioFrame RemixAndResample(AudioFrame frame, uint numChannels, uint sampleRate) { + Debug.Log("R AND R"); + Debug.Log("Remix And Resample: " + numChannels + " and sample " + sampleRate + " vs frame :" + frame.NumChannels + " and frame sample : " + sampleRate +" per chan "+ frame.SamplesPerChannel); var remix = new RemixAndResampleRequest(); - remix.ResamplerHandle = new FFIHandleId { Id = (ulong) Handle.DangerousGetHandle()}; - remix.BufferHandle = new FFIHandleId { Id = (ulong) frame.Handle.DangerousGetHandle()}; + remix.ResamplerHandle = (ulong) Handle.DangerousGetHandle(); + remix.Buffer = new AudioFrameBufferInfo() { + DataPtr = (ulong)frame.Data, + NumChannels = frame.NumChannels, + SampleRate = frame.SampleRate, + SamplesPerChannel = frame.SamplesPerChannel + }; remix.NumChannels = numChannels; remix.SampleRate = sampleRate; - var request = new FFIRequest(); + var request = new FfiRequest(); request.RemixAndResample = remix; var res = FfiClient.SendRequest(request); var bufferInfo = res.RemixAndResample.Buffer; var handle = new FfiHandle((IntPtr)bufferInfo.Handle.Id); - return new AudioFrame(handle, bufferInfo); + return new AudioFrame(handle, remix.Buffer); } } } diff --git a/Runtime/Scripts/Internal/Constants.cs b/Runtime/Scripts/Internal/Constants.cs new file mode 100644 index 0000000..15246ce --- /dev/null +++ b/Runtime/Scripts/Internal/Constants.cs @@ -0,0 +1,10 @@ +using System.Diagnostics; +using UnityEngine; + +namespace LiveKit.Internal +{ + internal static class Constants + { + internal const int TASK_DELAY = 5; + } +} diff --git a/Runtime/Scripts/Internal/Constants.cs.meta b/Runtime/Scripts/Internal/Constants.cs.meta new file mode 100644 index 0000000..83b1f9f --- /dev/null +++ b/Runtime/Scripts/Internal/Constants.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fd27ede8e471b7a4c8156e972f3439c9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Scripts/Internal/FFIClient.cs b/Runtime/Scripts/Internal/FFIClient.cs index d20ec84..68ecb16 100644 --- a/Runtime/Scripts/Internal/FFIClient.cs +++ b/Runtime/Scripts/Internal/FFIClient.cs @@ -4,6 +4,7 @@ using UnityEngine; using Google.Protobuf; using System.Threading; +using System.Threading.Tasks; #if UNITY_EDITOR using UnityEditor; @@ -17,11 +18,12 @@ namespace LiveKit.Internal // Callbacks internal delegate void PublishTrackDelegate(PublishTrackCallback e); internal delegate void ConnectReceivedDelegate(ConnectCallback e); + internal delegate void DisconnectReceivedDelegate(DisconnectCallback e); // Events internal delegate void RoomEventReceivedDelegate(RoomEvent e); internal delegate void TrackEventReceivedDelegate(TrackEvent e); - internal delegate void ParticipantEventReceivedDelegate(ParticipantEvent e); + internal delegate void ParticipantEventReceivedDelegate(OwnedParticipant e); internal delegate void VideoStreamEventReceivedDelegate(VideoStreamEvent e); internal delegate void AudioStreamEventReceivedDelegate(AudioStreamEvent e); @@ -37,9 +39,10 @@ internal sealed class FfiClient public event PublishTrackDelegate PublishTrackReceived; public event ConnectReceivedDelegate ConnectReceived; + public event DisconnectReceivedDelegate DisconnectReceived; public event RoomEventReceivedDelegate RoomEventReceived; public event TrackEventReceivedDelegate TrackEventReceived; - public event ParticipantEventReceivedDelegate ParticipantEventReceived; + // participant events are not allowed in the fii protocol public event ParticipantEventReceivedDelegate ParticipantEventReceived; public event VideoStreamEventReceivedDelegate VideoStreamEventReceived; public event AudioStreamEventReceivedDelegate AudioStreamEventReceived; @@ -66,11 +69,11 @@ static void OnAfterAssemblyReload() static void Init() { Application.quitting += Quit; - Instance.Initialize(); + FfiClient.Initialize(); } #endif - static void Quit() + private static void Quit() { #if UNITY_EDITOR AssemblyReloadEvents.beforeAssemblyReload -= OnBeforeAssemblyReload; @@ -84,18 +87,17 @@ static void GetMainContext() { // https://github.com/Unity-Technologies/UnityCsReference/blob/master/Runtime/Export/Scripting/UnitySynchronizationContext.cs Instance._context = SynchronizationContext.Current; + Utils.Debug("Main Context created"); } static void Initialize() { FFICallbackDelegate callback = FFICallback; - - var initReq = new InitializeRequest(); - initReq.EventCallbackPtr = (ulong)Marshal.GetFunctionPointerForDelegate(callback); - - var request = new FFIRequest(); - request.Initialize = initReq; - SendRequest(request); +#if LK_VERBOSE + NativeMethods.LiveKitInitialize(callback, true); +#else + NativeMethods.LiveKitInitialize(callback, false); +#endif Utils.Debug("FFIServer - Initialized"); } @@ -105,64 +107,81 @@ static void Dispose() // The rust lk implementation should also correctly dispose WebRTC var disposeReq = new DisposeRequest(); - var request = new FFIRequest(); + //TODO: object pool + var request = new FfiRequest(); request.Dispose = disposeReq; SendRequest(request); Utils.Debug("FFIServer - Disposed"); } - internal static FFIResponse SendRequest(FFIRequest request) + internal static FfiResponse SendRequest(FfiRequest request) { var data = request.ToByteArray(); // TODO(theomonnom): Avoid more allocations - FFIResponse response; unsafe { - var handle = NativeMethods.FfiNewRequest(data, data.Length, out byte* dataPtr, out int dataLen); - response = FFIResponse.Parser.ParseFrom(new Span(dataPtr, dataLen)); - handle.Dispose(); + try + { + var handle = NativeMethods.FfiNewRequest(data, data.Length, out byte* dataPtr, out int dataLen); + var response = FfiResponse.Parser.ParseFrom(new Span(dataPtr, dataLen)); + handle.Dispose(); + return response; + } + catch (Exception e) + { + // Since we are in a thread I want to make sure we catch and log + Utils.Error(e); + // But we aren't actually handling this exception so we should re-throw here + throw e; + } } - - return response; } - [AOT.MonoPInvokeCallback(typeof(FFICallbackDelegate))] static unsafe void FFICallback(IntPtr data, int size) { var respData = new Span(data.ToPointer(), size); - var response = FFIEvent.Parser.ParseFrom(respData); + var response = FfiEvent.Parser.ParseFrom(respData); // Run on the main thread, the order of execution is guaranteed by Unity // It uses a Queue internally - Instance._context.Post((resp) => - { - var response = resp as FFIEvent; - switch (response.MessageCase) - { - case FFIEvent.MessageOneofCase.Connect: - Instance.ConnectReceived?.Invoke(response.Connect); - break; - case FFIEvent.MessageOneofCase.PublishTrack: - Instance.PublishTrackReceived?.Invoke(response.PublishTrack); - break; - case FFIEvent.MessageOneofCase.RoomEvent: - Instance.RoomEventReceived?.Invoke(response.RoomEvent); - break; - case FFIEvent.MessageOneofCase.TrackEvent: - Instance.TrackEventReceived?.Invoke(response.TrackEvent); - break; - case FFIEvent.MessageOneofCase.ParticipantEvent: - Instance.ParticipantEventReceived?.Invoke(response.ParticipantEvent); - break; - case FFIEvent.MessageOneofCase.VideoStreamEvent: - Instance.VideoStreamEventReceived?.Invoke(response.VideoStreamEvent); - break; - case FFIEvent.MessageOneofCase.AudioStreamEvent: - Instance.AudioStreamEventReceived?.Invoke(response.AudioStreamEvent); - break; - - } - }, response); + if(Instance != null && Instance._context!=null) Instance._context.Post((resp) => + { + var response = resp as FfiEvent; + if(response.MessageCase != FfiEvent.MessageOneofCase.Logs && response.MessageCase != FfiEvent.MessageOneofCase.CaptureAudioFrame) Utils.Debug("Callback: " + response.MessageCase); + switch (response.MessageCase) + { + case FfiEvent.MessageOneofCase.PublishData: + break; + case FfiEvent.MessageOneofCase.Connect: + Instance.ConnectReceived?.Invoke(response.Connect); + break; + case FfiEvent.MessageOneofCase.PublishTrack: + Instance.PublishTrackReceived?.Invoke(response.PublishTrack); + break; + case FfiEvent.MessageOneofCase.RoomEvent: + Utils.Debug("Call back on room event: " + response.RoomEvent.MessageCase); + Instance.RoomEventReceived?.Invoke(response.RoomEvent); + break; + case FfiEvent.MessageOneofCase.TrackEvent: + Instance.TrackEventReceived?.Invoke(response.TrackEvent); + break; + case FfiEvent.MessageOneofCase.Disconnect: + Instance.DisconnectReceived?.Invoke(response.Disconnect); + break; + /*case FfiEvent.MessageOneofCase. ParticipantEvent: + Instance.ParticipantEventReceived?.Invoke(response.ParticipantEvent); + break;*/ + case FfiEvent.MessageOneofCase.VideoStreamEvent: + Instance.VideoStreamEventReceived?.Invoke(response.VideoStreamEvent); + break; + case FfiEvent.MessageOneofCase.AudioStreamEvent: + Instance.AudioStreamEventReceived?.Invoke(response.AudioStreamEvent); + break; + case FfiEvent.MessageOneofCase.CaptureAudioFrame: + //Utils.Debug("Capture Audio Frame: "+response.CaptureAudioFrame); + break; + } + }, response); } } } diff --git a/Runtime/Scripts/Internal/NativeMethods.cs b/Runtime/Scripts/Internal/NativeMethods.cs index fb4e52e..089c495 100644 --- a/Runtime/Scripts/Internal/NativeMethods.cs +++ b/Runtime/Scripts/Internal/NativeMethods.cs @@ -20,5 +20,10 @@ internal static class NativeMethods [DllImport(Lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "livekit_ffi_request")] internal static extern unsafe FfiHandle FfiNewRequest(byte[] data, int len, out byte* dataPtr, out int dataLen); + + [DllImport(Lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "livekit_ffi_initialize")] + internal static extern unsafe FfiHandle LiveKitInitialize(FFICallbackDelegate cb, bool capture_logs); + + } } diff --git a/Runtime/Scripts/Internal/YieldInstruction.cs b/Runtime/Scripts/Internal/YieldInstruction.cs index 2afa855..66b7f95 100644 --- a/Runtime/Scripts/Internal/YieldInstruction.cs +++ b/Runtime/Scripts/Internal/YieldInstruction.cs @@ -1,12 +1,33 @@ +using LiveKit.Internal; +using System.Threading; +using System.Threading.Tasks; using UnityEngine; namespace LiveKit { - public class YieldInstruction : CustomYieldInstruction + public class AsyncInstruction { public bool IsDone { protected set; get; } public bool IsError { protected set; get; } - public override bool keepWaiting => !IsDone; + public bool keepWaiting => !IsDone; + + private CancellationToken _token; + protected CancellationToken Token => _token; + + + internal AsyncInstruction(CancellationToken token) + { + _token = token; + } + + public async Task AwaitCompletion() + { + while (!IsDone) + { + _token.ThrowIfCancellationRequested(); + await Task.Delay(Constants.TASK_DELAY); + } + } } } diff --git a/Runtime/Scripts/Participant.cs b/Runtime/Scripts/Participant.cs index 32fecfa..ea782a5 100644 --- a/Runtime/Scripts/Participant.cs +++ b/Runtime/Scripts/Participant.cs @@ -1,8 +1,8 @@ -using System; using System.Linq; using System.Collections.Generic; using LiveKit.Internal; using LiveKit.Proto; +using System.Threading; namespace LiveKit { @@ -10,12 +10,25 @@ public class Participant { public delegate void PublishDelegate(RemoteTrackPublication publication); + private ParticipantInfo _info; public string Sid => _info.Sid; public string Identity => _info.Identity; public string Name => _info.Name; public string Metadata => _info.Metadata; + public void SetMeta(string meta) + { + _info.Metadata = meta; + } + + private FfiHandle _handle; + + internal FfiHandle Handle + { + get { return _handle; } + } + public bool Speaking { private set; get; } public float AudioLevel { private set; get; } public ConnectionQuality ConnectionQuality { private set; get; } @@ -23,13 +36,15 @@ public class Participant public event PublishDelegate TrackPublished; public event PublishDelegate TrackUnpublished; - public readonly WeakReference Room; + public Room Room { get; } + public IReadOnlyDictionary Tracks => _tracks; internal readonly Dictionary _tracks = new(); - protected Participant(ParticipantInfo info, Room room) + protected Participant(ParticipantInfo info, Room room, FfiHandle handle) { - Room = new WeakReference(room); + Room = room; + _handle = handle; UpdateInfo(info); } @@ -55,25 +70,25 @@ public sealed class LocalParticipant : Participant public new IReadOnlyDictionary Tracks => base.Tracks.ToDictionary(p => p.Key, p => (LocalTrackPublication)p.Value); - internal LocalParticipant(ParticipantInfo info, Room room) : base(info, room) { } - - public PublishTrackInstruction PublishTrack(ILocalTrack localTrack, TrackPublishOptions options) + internal LocalParticipant(ParticipantInfo info, Room room, FfiHandle handle) : base(info, room, handle) { - if (!Room.TryGetTarget(out var room)) - throw new Exception("room is invalid"); + } + public PublishTrackInstruction PublishTrack( + ILocalTrack localTrack, + TrackPublishOptions options, + CancellationToken token) + { var track = (Track)localTrack; - var publish = new PublishTrackRequest(); - publish.RoomHandle = new FFIHandleId { Id = (ulong)room.Handle.DangerousGetHandle() }; - publish.TrackHandle = new FFIHandleId { Id = (ulong)track.Handle.DangerousGetHandle() }; + publish.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); + publish.TrackHandle = (ulong)track.Handle.DangerousGetHandle(); publish.Options = options; - var request = new FFIRequest(); + var request = new FfiRequest(); request.PublishTrack = publish; - var resp = FfiClient.SendRequest(request); - return new PublishTrackInstruction(resp.PublishTrack.AsyncId.Id); + return new PublishTrackInstruction(resp.PublishTrack.AsyncId, Room, token); } } @@ -82,27 +97,34 @@ public sealed class RemoteParticipant : Participant public new IReadOnlyDictionary Tracks => base.Tracks.ToDictionary(p => p.Key, p => (RemoteTrackPublication)p.Value); - internal RemoteParticipant(ParticipantInfo info, Room room) : base(info, room) { } + internal RemoteParticipant(ParticipantInfo info, Room room, FfiHandle handle) : base(info, room, handle) + { + } } - public sealed class PublishTrackInstruction : YieldInstruction + public sealed class PublishTrackInstruction : AsyncInstruction { private ulong _asyncId; + private Room _room; + - internal PublishTrackInstruction(ulong asyncId) + internal PublishTrackInstruction(ulong asyncId, Room room, CancellationToken token) : base(token) { _asyncId = asyncId; + _room = room; FfiClient.Instance.PublishTrackReceived += OnPublish; } void OnPublish(PublishTrackCallback e) { - if (e.AsyncId.Id != _asyncId) + if (e.AsyncId != _asyncId) return; IsError = !string.IsNullOrEmpty(e.Error); IsDone = true; + if (!IsError) + _room.OnLocalTrackPublished(e.Publication); FfiClient.Instance.PublishTrackReceived -= OnPublish; } } -} +} \ No newline at end of file diff --git a/Runtime/Scripts/Proto/AudioFrame.cs b/Runtime/Scripts/Proto/AudioFrame.cs index 363931f..8a748a3 100644 --- a/Runtime/Scripts/Proto/AudioFrame.cs +++ b/Runtime/Scripts/Proto/AudioFrame.cs @@ -24,65 +24,89 @@ public static partial class AudioFrameReflection { static AudioFrameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChFhdWRpb19mcmFtZS5wcm90bxIHbGl2ZWtpdBoMaGFuZGxlLnByb3RvImEK", - "F0FsbG9jQXVkaW9CdWZmZXJSZXF1ZXN0EhMKC3NhbXBsZV9yYXRlGAEgASgN", - "EhQKDG51bV9jaGFubmVscxgCIAEoDRIbChNzYW1wbGVzX3Blcl9jaGFubmVs", - "GAMgASgNIkkKGEFsbG9jQXVkaW9CdWZmZXJSZXNwb25zZRItCgZidWZmZXIY", - "ASABKAsyHS5saXZla2l0LkF1ZGlvRnJhbWVCdWZmZXJJbmZvIpYBChVOZXdB", - "dWRpb1N0cmVhbVJlcXVlc3QSKQoLcm9vbV9oYW5kbGUYASABKAsyFC5saXZl", - "a2l0LkZGSUhhbmRsZUlkEhcKD3BhcnRpY2lwYW50X3NpZBgCIAEoCRIRCgl0", - "cmFja19zaWQYAyABKAkSJgoEdHlwZRgEIAEoDjIYLmxpdmVraXQuQXVkaW9T", - "dHJlYW1UeXBlIkIKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2USKAoGc3RyZWFt", - "GAEgASgLMhgubGl2ZWtpdC5BdWRpb1N0cmVhbUluZm8iPwoVTmV3QXVkaW9T", - "b3VyY2VSZXF1ZXN0EiYKBHR5cGUYASABKA4yGC5saXZla2l0LkF1ZGlvU291", - "cmNlVHlwZSJCChZOZXdBdWRpb1NvdXJjZVJlc3BvbnNlEigKBnNvdXJjZRgB", - "IAEoCzIYLmxpdmVraXQuQXVkaW9Tb3VyY2VJbmZvInQKGENhcHR1cmVBdWRp", - "b0ZyYW1lUmVxdWVzdBIrCg1zb3VyY2VfaGFuZGxlGAEgASgLMhQubGl2ZWtp", - "dC5GRklIYW5kbGVJZBIrCg1idWZmZXJfaGFuZGxlGAIgASgLMhQubGl2ZWtp", - "dC5GRklIYW5kbGVJZCIbChlDYXB0dXJlQXVkaW9GcmFtZVJlc3BvbnNlIhoK", - "GE5ld0F1ZGlvUmVzYW1wbGVyUmVxdWVzdCJBChlOZXdBdWRpb1Jlc2FtcGxl", - "clJlc3BvbnNlEiQKBmhhbmRsZRgBIAEoCzIULmxpdmVraXQuRkZJSGFuZGxl", - "SWQioQEKF1JlbWl4QW5kUmVzYW1wbGVSZXF1ZXN0Ei4KEHJlc2FtcGxlcl9o", - "YW5kbGUYASABKAsyFC5saXZla2l0LkZGSUhhbmRsZUlkEisKDWJ1ZmZlcl9o", - "YW5kbGUYAiABKAsyFC5saXZla2l0LkZGSUhhbmRsZUlkEhQKDG51bV9jaGFu", - "bmVscxgDIAEoDRITCgtzYW1wbGVfcmF0ZRgEIAEoDSJJChhSZW1peEFuZFJl", - "c2FtcGxlUmVzcG9uc2USLQoGYnVmZmVyGAEgASgLMh0ubGl2ZWtpdC5BdWRp", - "b0ZyYW1lQnVmZmVySW5mbyKWAQoUQXVkaW9GcmFtZUJ1ZmZlckluZm8SJAoG", - "aGFuZGxlGAEgASgLMhQubGl2ZWtpdC5GRklIYW5kbGVJZBIQCghkYXRhX3B0", - "chgCIAEoBBIUCgxudW1fY2hhbm5lbHMYAyABKA0SEwoLc2FtcGxlX3JhdGUY", - "BCABKA0SGwoTc2FtcGxlc19wZXJfY2hhbm5lbBgFIAEoDSJyCg9BdWRpb1N0", - "cmVhbUluZm8SJAoGaGFuZGxlGAEgASgLMhQubGl2ZWtpdC5GRklIYW5kbGVJ", - "ZBImCgR0eXBlGAIgASgOMhgubGl2ZWtpdC5BdWRpb1N0cmVhbVR5cGUSEQoJ", - "dHJhY2tfc2lkGAMgASgJInoKEEF1ZGlvU3RyZWFtRXZlbnQSJAoGaGFuZGxl", - "GAEgASgLMhQubGl2ZWtpdC5GRklIYW5kbGVJZBI1Cg5mcmFtZV9yZWNlaXZl", - "ZBgCIAEoCzIbLmxpdmVraXQuQXVkaW9GcmFtZVJlY2VpdmVkSABCCQoHbWVz", - "c2FnZSJCChJBdWRpb0ZyYW1lUmVjZWl2ZWQSLAoFZnJhbWUYASABKAsyHS5s", - "aXZla2l0LkF1ZGlvRnJhbWVCdWZmZXJJbmZvIl8KD0F1ZGlvU291cmNlSW5m", - "bxIkCgZoYW5kbGUYASABKAsyFC5saXZla2l0LkZGSUhhbmRsZUlkEiYKBHR5", - "cGUYAiABKA4yGC5saXZla2l0LkF1ZGlvU291cmNlVHlwZSpBCg9BdWRpb1N0", - "cmVhbVR5cGUSFwoTQVVESU9fU1RSRUFNX05BVElWRRAAEhUKEUFVRElPX1NU", - "UkVBTV9IVE1MEAEqKgoPQXVkaW9Tb3VyY2VUeXBlEhcKE0FVRElPX1NPVVJD", - "RV9OQVRJVkUQAEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", + "b3RvImEKF0FsbG9jQXVkaW9CdWZmZXJSZXF1ZXN0EhMKC3NhbXBsZV9yYXRl", + "GAEgASgNEhQKDG51bV9jaGFubmVscxgCIAEoDRIbChNzYW1wbGVzX3Blcl9j", + "aGFubmVsGAMgASgNIlAKGEFsbG9jQXVkaW9CdWZmZXJSZXNwb25zZRI0CgZi", + "dWZmZXIYASABKAsyJC5saXZla2l0LnByb3RvLk93bmVkQXVkaW9GcmFtZUJ1", + "ZmZlciJbChVOZXdBdWRpb1N0cmVhbVJlcXVlc3QSFAoMdHJhY2tfaGFuZGxl", + "GAEgASgEEiwKBHR5cGUYAiABKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3Ry", + "ZWFtVHlwZSJJChZOZXdBdWRpb1N0cmVhbVJlc3BvbnNlEi8KBnN0cmVhbRgB", + "IAEoCzIfLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK1AQoVTmV3", + "QXVkaW9Tb3VyY2VSZXF1ZXN0EiwKBHR5cGUYASABKA4yHi5saXZla2l0LnBy", + "b3RvLkF1ZGlvU291cmNlVHlwZRI3CgdvcHRpb25zGAIgASgLMiEubGl2ZWtp", + "dC5wcm90by5BdWRpb1NvdXJjZU9wdGlvbnNIAIgBARITCgtzYW1wbGVfcmF0", + "ZRgDIAEoDRIUCgxudW1fY2hhbm5lbHMYBCABKA1CCgoIX29wdGlvbnMiSQoW", + "TmV3QXVkaW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASABKAsyHy5saXZl", + "a2l0LnByb3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVyZUF1ZGlvRnJh", + "bWVSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASABKAQSMwoGYnVmZmVyGAIg", + "ASgLMiMubGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyItChlD", + "YXB0dXJlQXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgASgEIksK", + "GUNhcHR1cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASABKAQS", + "EgoFZXJyb3IYAiABKAlIAIgBAUIICgZfZXJyb3IiGgoYTmV3QXVkaW9SZXNh", + "bXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVyUmVzcG9uc2USNQoJ", + "cmVzYW1wbGVyGAEgASgLMiIubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvUmVz", + "YW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVzdBIYChByZXNhbXBs", + "ZXJfaGFuZGxlGAEgASgEEjMKBmJ1ZmZlchgCIAEoCzIjLmxpdmVraXQucHJv", + "dG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2NoYW5uZWxzGAMgASgN", + "EhMKC3NhbXBsZV9yYXRlGAQgASgNIlAKGFJlbWl4QW5kUmVzYW1wbGVSZXNw", + "b25zZRI0CgZidWZmZXIYASABKAsyJC5saXZla2l0LnByb3RvLk93bmVkQXVk", + "aW9GcmFtZUJ1ZmZlciJwChRBdWRpb0ZyYW1lQnVmZmVySW5mbxIQCghkYXRh", + "X3B0chgBIAEoBBIUCgxudW1fY2hhbm5lbHMYAiABKA0SEwoLc2FtcGxlX3Jh", + "dGUYAyABKA0SGwoTc2FtcGxlc19wZXJfY2hhbm5lbBgEIAEoDSJ5ChVPd25l", + "ZEF1ZGlvRnJhbWVCdWZmZXISLQoGaGFuZGxlGAEgASgLMh0ubGl2ZWtpdC5w", + "cm90by5GZmlPd25lZEhhbmRsZRIxCgRpbmZvGAIgASgLMiMubGl2ZWtpdC5w", + "cm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyI/Cg9BdWRpb1N0cmVhbUluZm8S", + "LAoEdHlwZRgBIAEoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1UeXBl", + "Im8KEE93bmVkQXVkaW9TdHJlYW0SLQoGaGFuZGxlGAEgASgLMh0ubGl2ZWtp", + "dC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgASgLMh4ubGl2ZWtp", + "dC5wcm90by5BdWRpb1N0cmVhbUluZm8inwEKEEF1ZGlvU3RyZWFtRXZlbnQS", + "FQoNc3RyZWFtX2hhbmRsZRgBIAEoBBI7Cg5mcmFtZV9yZWNlaXZlZBgCIAEo", + "CzIhLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZVJlY2VpdmVkSAASLAoDZW9z", + "GAMgASgLMh0ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUVPU0gAQgkKB21l", + "c3NhZ2UiSQoSQXVkaW9GcmFtZVJlY2VpdmVkEjMKBWZyYW1lGAEgASgLMiQu", + "bGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvRnJhbWVCdWZmZXIiEAoOQXVkaW9T", + "dHJlYW1FT1MiZQoSQXVkaW9Tb3VyY2VPcHRpb25zEhkKEWVjaG9fY2FuY2Vs", + "bGF0aW9uGAEgASgIEhkKEW5vaXNlX3N1cHByZXNzaW9uGAIgASgIEhkKEWF1", + "dG9fZ2Fpbl9jb250cm9sGAMgASgIIj8KD0F1ZGlvU291cmNlSW5mbxIsCgR0", + "eXBlGAIgASgOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVR5cGUibwoQ", + "T3duZWRBdWRpb1NvdXJjZRItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnBy", + "b3RvLkZmaU93bmVkSGFuZGxlEiwKBGluZm8YAiABKAsyHi5saXZla2l0LnBy", + "b3RvLkF1ZGlvU291cmNlSW5mbyIUChJBdWRpb1Jlc2FtcGxlckluZm8idQoT", + "T3duZWRBdWRpb1Jlc2FtcGxlchItCgZoYW5kbGUYASABKAsyHS5saXZla2l0", + "LnByb3RvLkZmaU93bmVkSGFuZGxlEi8KBGluZm8YAiABKAsyIS5saXZla2l0", + "LnByb3RvLkF1ZGlvUmVzYW1wbGVySW5mbypBCg9BdWRpb1N0cmVhbVR5cGUS", + "FwoTQVVESU9fU1RSRUFNX05BVElWRRAAEhUKEUFVRElPX1NUUkVBTV9IVE1M", + "EAEqKgoPQXVkaW9Tb3VyY2VUeXBlEhcKE0FVRElPX1NPVVJDRV9OQVRJVkUQ", + "AEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.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.AllocAudioBufferRequest), global::LiveKit.Proto.AllocAudioBufferRequest.Parser, new[]{ "SampleRate", "NumChannels", "SamplesPerChannel" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AllocAudioBufferResponse), global::LiveKit.Proto.AllocAudioBufferResponse.Parser, new[]{ "Buffer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "RoomHandle", "ParticipantSid", "TrackSid", "Type" }, null, null, null, null), + 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.NewAudioStreamResponse), global::LiveKit.Proto.NewAudioStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels" }, new[]{ "Options" }, 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", "BufferHandle" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameResponse), global::LiveKit.Proto.CaptureAudioFrameResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameRequest), global::LiveKit.Proto.CaptureAudioFrameRequest.Parser, new[]{ "SourceHandle", "Buffer" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameResponse), global::LiveKit.Proto.CaptureAudioFrameResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameCallback), global::LiveKit.Proto.CaptureAudioFrameCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioResamplerRequest), global::LiveKit.Proto.NewAudioResamplerRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioResamplerResponse), global::LiveKit.Proto.NewAudioResamplerResponse.Parser, new[]{ "Handle" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleRequest), global::LiveKit.Proto.RemixAndResampleRequest.Parser, new[]{ "ResamplerHandle", "BufferHandle", "NumChannels", "SampleRate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioResamplerResponse), global::LiveKit.Proto.NewAudioResamplerResponse.Parser, new[]{ "Resampler" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleRequest), global::LiveKit.Proto.RemixAndResampleRequest.Parser, new[]{ "ResamplerHandle", "Buffer", "NumChannels", "SampleRate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleResponse), global::LiveKit.Proto.RemixAndResampleResponse.Parser, new[]{ "Buffer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioFrameBufferInfo), global::LiveKit.Proto.AudioFrameBufferInfo.Parser, new[]{ "Handle", "DataPtr", "NumChannels", "SampleRate", "SamplesPerChannel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamInfo), global::LiveKit.Proto.AudioStreamInfo.Parser, new[]{ "Handle", "Type", "TrackSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamEvent), global::LiveKit.Proto.AudioStreamEvent.Parser, new[]{ "Handle", "FrameReceived" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioFrameBufferInfo), global::LiveKit.Proto.AudioFrameBufferInfo.Parser, new[]{ "DataPtr", "NumChannels", "SampleRate", "SamplesPerChannel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioFrameBuffer), global::LiveKit.Proto.OwnedAudioFrameBuffer.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamInfo), global::LiveKit.Proto.AudioStreamInfo.Parser, new[]{ "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioStream), global::LiveKit.Proto.OwnedAudioStream.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamEvent), global::LiveKit.Proto.AudioStreamEvent.Parser, new[]{ "StreamHandle", "FrameReceived", "Eos" }, new[]{ "Message" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioFrameReceived), global::LiveKit.Proto.AudioFrameReceived.Parser, new[]{ "Frame" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioSourceInfo), global::LiveKit.Proto.AudioSourceInfo.Parser, new[]{ "Handle", "Type" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamEOS), global::LiveKit.Proto.AudioStreamEOS.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioSourceOptions), global::LiveKit.Proto.AudioSourceOptions.Parser, new[]{ "EchoCancellation", "NoiseSuppression", "AutoGainControl" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioSourceInfo), global::LiveKit.Proto.AudioSourceInfo.Parser, new[]{ "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioSource), global::LiveKit.Proto.OwnedAudioSource.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioResamplerInfo), global::LiveKit.Proto.AudioResamplerInfo.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioResampler), global::LiveKit.Proto.OwnedAudioResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } #endregion @@ -106,6 +130,7 @@ public enum AudioSourceType { /// This is not necessary required because the data structure is fairly simple /// But keep the API consistent with VideoFrame /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AllocAudioBufferRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -369,6 +394,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AllocAudioBufferResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -415,10 +441,10 @@ public AllocAudioBufferResponse Clone() { /// Field number for the "buffer" field. public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.AudioFrameBufferInfo buffer_; + private global::LiveKit.Proto.OwnedAudioFrameBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioFrameBufferInfo Buffer { + public global::LiveKit.Proto.OwnedAudioFrameBuffer Buffer { get { return buffer_; } set { buffer_ = value; @@ -512,7 +538,7 @@ public void MergeFrom(AllocAudioBufferResponse other) { } if (other.buffer_ != null) { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } Buffer.MergeFrom(other.Buffer); } @@ -533,7 +559,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -555,7 +581,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -571,6 +597,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// Create a new AudioStream /// AudioStream is used to receive audio frames from a track /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewAudioStreamRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -605,9 +632,7 @@ public NewAudioStreamRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewAudioStreamRequest(NewAudioStreamRequest other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; - participantSid_ = other.participantSid_; - trackSid_ = other.trackSid_; + trackHandle_ = other.trackHandle_; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -618,44 +643,20 @@ public NewAudioStreamRequest Clone() { return new NewAudioStreamRequest(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId roomHandle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId RoomHandle { - get { return roomHandle_; } - set { - roomHandle_ = value; - } - } - - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 2; - 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"); - } - } - - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 3; - private string trackSid_ = ""; + /// 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 string TrackSid { - get { return trackSid_; } + public ulong TrackHandle { + get { return trackHandle_; } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackHandle_ = value; } } /// Field number for the "type" field. - public const int TypeFieldNumber = 4; + 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)] @@ -681,9 +682,7 @@ public bool Equals(NewAudioStreamRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; - if (ParticipantSid != other.ParticipantSid) return false; - if (TrackSid != other.TrackSid) return false; + if (TrackHandle != other.TrackHandle) return false; if (Type != other.Type) return false; return Equals(_unknownFields, other._unknownFields); } @@ -692,9 +691,7 @@ public bool Equals(NewAudioStreamRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -714,20 +711,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); - } - if (ParticipantSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { - output.WriteRawTag(32); + output.WriteRawTag(16); output.WriteEnum((int) Type); } if (_unknownFields != null) { @@ -740,20 +729,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 (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); - } - if (ParticipantSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { - output.WriteRawTag(32); + output.WriteRawTag(16); output.WriteEnum((int) Type); } if (_unknownFields != null) { @@ -766,14 +747,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); - } - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); - } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); @@ -790,17 +765,8 @@ public void MergeFrom(NewAudioStreamRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); - } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; - } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; } if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { Type = other.Type; @@ -820,22 +786,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); - break; - } - case 18: { - ParticipantSid = input.ReadString(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 8: { + TrackHandle = input.ReadUInt64(); break; } - case 32: { + case 16: { Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); break; } @@ -854,22 +809,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); - break; - } - case 18: { - ParticipantSid = input.ReadString(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 8: { + TrackHandle = input.ReadUInt64(); break; } - case 32: { + case 16: { Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); break; } @@ -880,6 +824,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewAudioStreamResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -926,10 +871,10 @@ public NewAudioStreamResponse Clone() { /// Field number for the "stream" field. public const int StreamFieldNumber = 1; - private global::LiveKit.Proto.AudioStreamInfo stream_; + private global::LiveKit.Proto.OwnedAudioStream stream_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioStreamInfo Stream { + public global::LiveKit.Proto.OwnedAudioStream Stream { get { return stream_; } set { stream_ = value; @@ -1023,7 +968,7 @@ public void MergeFrom(NewAudioStreamResponse other) { } if (other.stream_ != null) { if (stream_ == null) { - Stream = new global::LiveKit.Proto.AudioStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedAudioStream(); } Stream.MergeFrom(other.Stream); } @@ -1044,7 +989,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (stream_ == null) { - Stream = new global::LiveKit.Proto.AudioStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedAudioStream(); } input.ReadMessage(Stream); break; @@ -1066,7 +1011,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (stream_ == null) { - Stream = new global::LiveKit.Proto.AudioStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedAudioStream(); } input.ReadMessage(Stream); break; @@ -1081,6 +1026,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Create a new AudioSource /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewAudioSourceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1116,6 +1062,9 @@ public NewAudioSourceRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewAudioSourceRequest(NewAudioSourceRequest other) : this() { type_ = other.type_; + options_ = other.options_ != null ? other.options_.Clone() : null; + sampleRate_ = other.sampleRate_; + numChannels_ = other.numChannels_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1137,6 +1086,42 @@ public NewAudioSourceRequest Clone() { } } + /// Field number for the "options" field. + public const int OptionsFieldNumber = 2; + private global::LiveKit.Proto.AudioSourceOptions options_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioSourceOptions Options { + get { return options_; } + set { + options_ = 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) { @@ -1153,6 +1138,9 @@ public bool Equals(NewAudioSourceRequest other) { return true; } if (Type != other.Type) return false; + if (!object.Equals(Options, other.Options)) return false; + if (SampleRate != other.SampleRate) return false; + if (NumChannels != other.NumChannels) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1161,6 +1149,9 @@ public bool Equals(NewAudioSourceRequest other) { public override int GetHashCode() { int hash = 1; if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) hash ^= Type.GetHashCode(); + if (options_ != null) hash ^= Options.GetHashCode(); + if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); + if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1183,6 +1174,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteEnum((int) Type); } + if (options_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + if (SampleRate != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SampleRate); + } + if (NumChannels != 0) { + output.WriteRawTag(32); + output.WriteUInt32(NumChannels); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1197,6 +1200,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteEnum((int) Type); } + if (options_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Options); + } + 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); } @@ -1210,6 +1225,15 @@ public int CalculateSize() { if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } + if (options_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); + } + if (SampleRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); + } + if (NumChannels != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1225,6 +1249,18 @@ public void MergeFrom(NewAudioSourceRequest other) { if (other.Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { Type = other.Type; } + if (other.options_ != null) { + if (options_ == null) { + Options = new global::LiveKit.Proto.AudioSourceOptions(); + } + Options.MergeFrom(other.Options); + } + if (other.SampleRate != 0) { + SampleRate = other.SampleRate; + } + if (other.NumChannels != 0) { + NumChannels = other.NumChannels; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1244,6 +1280,21 @@ public void MergeFrom(pb::CodedInputStream input) { Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); break; } + case 18: { + if (options_ == null) { + Options = new global::LiveKit.Proto.AudioSourceOptions(); + } + input.ReadMessage(Options); + break; + } + case 24: { + SampleRate = input.ReadUInt32(); + break; + } + case 32: { + NumChannels = input.ReadUInt32(); + break; + } } } #endif @@ -1263,6 +1314,21 @@ public void MergeFrom(pb::CodedInputStream input) { Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); break; } + case 18: { + if (options_ == null) { + Options = new global::LiveKit.Proto.AudioSourceOptions(); + } + input.ReadMessage(Options); + break; + } + case 24: { + SampleRate = input.ReadUInt32(); + break; + } + case 32: { + NumChannels = input.ReadUInt32(); + break; + } } } } @@ -1270,6 +1336,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewAudioSourceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1316,10 +1383,10 @@ public NewAudioSourceResponse Clone() { /// Field number for the "source" field. public const int SourceFieldNumber = 1; - private global::LiveKit.Proto.AudioSourceInfo source_; + private global::LiveKit.Proto.OwnedAudioSource source_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioSourceInfo Source { + public global::LiveKit.Proto.OwnedAudioSource Source { get { return source_; } set { source_ = value; @@ -1413,7 +1480,7 @@ public void MergeFrom(NewAudioSourceResponse other) { } if (other.source_ != null) { if (source_ == null) { - Source = new global::LiveKit.Proto.AudioSourceInfo(); + Source = new global::LiveKit.Proto.OwnedAudioSource(); } Source.MergeFrom(other.Source); } @@ -1434,7 +1501,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (source_ == null) { - Source = new global::LiveKit.Proto.AudioSourceInfo(); + Source = new global::LiveKit.Proto.OwnedAudioSource(); } input.ReadMessage(Source); break; @@ -1456,7 +1523,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (source_ == null) { - Source = new global::LiveKit.Proto.AudioSourceInfo(); + Source = new global::LiveKit.Proto.OwnedAudioSource(); } input.ReadMessage(Source); break; @@ -1470,7 +1537,9 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Push a frame to an AudioSource + /// The data provided must be available as long as the client receive the callback. /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CaptureAudioFrameRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1505,8 +1574,8 @@ public CaptureAudioFrameRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureAudioFrameRequest(CaptureAudioFrameRequest other) : this() { - sourceHandle_ = other.sourceHandle_ != null ? other.sourceHandle_.Clone() : null; - bufferHandle_ = other.bufferHandle_ != null ? other.bufferHandle_.Clone() : null; + sourceHandle_ = other.sourceHandle_; + buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1518,25 +1587,25 @@ public CaptureAudioFrameRequest Clone() { /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId sourceHandle_; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId SourceHandle { + public ulong SourceHandle { get { return sourceHandle_; } set { sourceHandle_ = value; } } - /// Field number for the "buffer_handle" field. - public const int BufferHandleFieldNumber = 2; - private global::LiveKit.Proto.FFIHandleId bufferHandle_; + /// Field number for the "buffer" field. + public const int BufferFieldNumber = 2; + private global::LiveKit.Proto.AudioFrameBufferInfo buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId BufferHandle { - get { return bufferHandle_; } + public global::LiveKit.Proto.AudioFrameBufferInfo Buffer { + get { return buffer_; } set { - bufferHandle_ = value; + buffer_ = value; } } @@ -1555,8 +1624,8 @@ public bool Equals(CaptureAudioFrameRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(SourceHandle, other.SourceHandle)) return false; - if (!object.Equals(BufferHandle, other.BufferHandle)) return false; + if (SourceHandle != other.SourceHandle) return false; + if (!object.Equals(Buffer, other.Buffer)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1564,8 +1633,8 @@ public bool Equals(CaptureAudioFrameRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (sourceHandle_ != null) hash ^= SourceHandle.GetHashCode(); - if (bufferHandle_ != null) hash ^= BufferHandle.GetHashCode(); + if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); + if (buffer_ != null) hash ^= Buffer.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1584,13 +1653,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (sourceHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); } - if (bufferHandle_ != null) { + if (buffer_ != null) { output.WriteRawTag(18); - output.WriteMessage(BufferHandle); + output.WriteMessage(Buffer); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1602,13 +1671,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 (sourceHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); } - if (bufferHandle_ != null) { + if (buffer_ != null) { output.WriteRawTag(18); - output.WriteMessage(BufferHandle); + output.WriteMessage(Buffer); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1620,11 +1689,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (sourceHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceHandle); + if (SourceHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } - if (bufferHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BufferHandle); + if (buffer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1638,17 +1707,14 @@ public void MergeFrom(CaptureAudioFrameRequest other) { if (other == null) { return; } - if (other.sourceHandle_ != null) { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - SourceHandle.MergeFrom(other.SourceHandle); + if (other.SourceHandle != 0UL) { + SourceHandle = other.SourceHandle; } - if (other.bufferHandle_ != null) { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (other.buffer_ != null) { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - BufferHandle.MergeFrom(other.BufferHandle); + Buffer.MergeFrom(other.Buffer); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1665,18 +1731,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + SourceHandle = input.ReadUInt64(); break; } case 18: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - input.ReadMessage(BufferHandle); + input.ReadMessage(Buffer); break; } } @@ -1694,18 +1757,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + SourceHandle = input.ReadUInt64(); break; } case 18: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - input.ReadMessage(BufferHandle); + input.ReadMessage(Buffer); break; } } @@ -1715,6 +1775,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CaptureAudioFrameResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1749,6 +1810,7 @@ public CaptureAudioFrameResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureAudioFrameResponse(CaptureAudioFrameResponse other) : this() { + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1758,6 +1820,18 @@ public CaptureAudioFrameResponse Clone() { return new CaptureAudioFrameResponse(this); } + /// 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 AsyncId { + get { return asyncId_; } + set { + asyncId_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1773,6 +1847,7 @@ public bool Equals(CaptureAudioFrameResponse other) { if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1780,6 +1855,7 @@ public bool Equals(CaptureAudioFrameResponse 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(); } @@ -1798,6 +1874,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); } @@ -1808,6 +1888,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); } @@ -1818,6 +1902,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(); } @@ -1830,6 +1917,9 @@ public void MergeFrom(CaptureAudioFrameResponse other) { if (other == null) { return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1845,6 +1935,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } #endif @@ -1860,6 +1954,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } } @@ -1867,19 +1965,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Create a new AudioResampler - /// - public sealed partial class NewAudioResamplerRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CaptureAudioFrameCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioResamplerRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaptureAudioFrameCallback()); 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)] @@ -1895,7 +1991,7 @@ public sealed partial class NewAudioResamplerRequest : 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; + } + } + + /// 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 NewAudioResamplerRequest); + return Equals(other as CaptureAudioFrameCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NewAudioResamplerRequest other) { + public bool Equals(CaptureAudioFrameCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1935,6 +2073,8 @@ public bool Equals(NewAudioResamplerRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1953,6 +2093,14 @@ 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 (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1963,6 +2111,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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1973,6 +2129,12 @@ 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 (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1981,10 +2143,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NewAudioResamplerRequest other) { + public void MergeFrom(CaptureAudioFrameCallback 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); } @@ -2000,11 +2168,183 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - } - #endif - } - + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = 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 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Create a new AudioResampler + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class NewAudioResamplerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioResamplerRequest()); + 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[9]; } + } + + [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 NewAudioResamplerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioResamplerRequest(NewAudioResamplerRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NewAudioResamplerRequest Clone() { + return new NewAudioResamplerRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NewAudioResamplerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NewAudioResamplerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NewAudioResamplerRequest other) { + if (other == null) { + return; + } + _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; + } + } + #endif + } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2022,6 +2362,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewAudioResamplerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2036,7 +2377,7 @@ public sealed partial class NewAudioResamplerResponse : pb::IMessageField number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; + /// Field number for the "resampler" field. + public const int ResamplerFieldNumber = 1; + private global::LiveKit.Proto.OwnedAudioResampler resampler_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } + public global::LiveKit.Proto.OwnedAudioResampler Resampler { + get { return resampler_; } set { - handle_ = value; + resampler_ = value; } } @@ -2093,7 +2434,7 @@ public bool Equals(NewAudioResamplerResponse other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; + if (!object.Equals(Resampler, other.Resampler)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2101,7 +2442,7 @@ public bool Equals(NewAudioResamplerResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); + if (resampler_ != null) hash ^= Resampler.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2120,9 +2461,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (resampler_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteMessage(Resampler); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2134,9 +2475,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 (resampler_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteMessage(Resampler); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2148,8 +2489,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 (resampler_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2163,11 +2504,11 @@ public void MergeFrom(NewAudioResamplerResponse other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + if (other.resampler_ != null) { + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - Handle.MergeFrom(other.Handle); + Resampler.MergeFrom(other.Resampler); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2185,10 +2526,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - input.ReadMessage(Handle); + input.ReadMessage(Resampler); break; } } @@ -2207,10 +2548,10 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - input.ReadMessage(Handle); + input.ReadMessage(Resampler); break; } } @@ -2223,6 +2564,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Remix and resample an audio frame /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class RemixAndResampleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2237,7 +2579,7 @@ public sealed partial class RemixAndResampleRequest : pb::IMessageField number for the "resampler_handle" field. public const int ResamplerHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId resamplerHandle_; + private ulong resamplerHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId ResamplerHandle { + public ulong ResamplerHandle { get { return resamplerHandle_; } set { resamplerHandle_ = value; } } - /// Field number for the "buffer_handle" field. - public const int BufferHandleFieldNumber = 2; - private global::LiveKit.Proto.FFIHandleId bufferHandle_; + /// Field number for the "buffer" field. + public const int BufferFieldNumber = 2; + private global::LiveKit.Proto.AudioFrameBufferInfo buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId BufferHandle { - get { return bufferHandle_; } + public global::LiveKit.Proto.AudioFrameBufferInfo Buffer { + get { return buffer_; } set { - bufferHandle_ = value; + buffer_ = value; } } @@ -2333,8 +2675,8 @@ public bool Equals(RemixAndResampleRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(ResamplerHandle, other.ResamplerHandle)) return false; - if (!object.Equals(BufferHandle, other.BufferHandle)) return false; + if (ResamplerHandle != other.ResamplerHandle) return false; + if (!object.Equals(Buffer, other.Buffer)) return false; if (NumChannels != other.NumChannels) return false; if (SampleRate != other.SampleRate) return false; return Equals(_unknownFields, other._unknownFields); @@ -2344,8 +2686,8 @@ public bool Equals(RemixAndResampleRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (resamplerHandle_ != null) hash ^= ResamplerHandle.GetHashCode(); - if (bufferHandle_ != null) hash ^= BufferHandle.GetHashCode(); + if (ResamplerHandle != 0UL) hash ^= ResamplerHandle.GetHashCode(); + if (buffer_ != null) hash ^= Buffer.GetHashCode(); if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); if (_unknownFields != null) { @@ -2366,13 +2708,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (resamplerHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ResamplerHandle); + if (ResamplerHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); } - if (bufferHandle_ != null) { + if (buffer_ != null) { output.WriteRawTag(18); - output.WriteMessage(BufferHandle); + output.WriteMessage(Buffer); } if (NumChannels != 0) { output.WriteRawTag(24); @@ -2392,13 +2734,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 (resamplerHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ResamplerHandle); + if (ResamplerHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); } - if (bufferHandle_ != null) { + if (buffer_ != null) { output.WriteRawTag(18); - output.WriteMessage(BufferHandle); + output.WriteMessage(Buffer); } if (NumChannels != 0) { output.WriteRawTag(24); @@ -2418,11 +2760,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (resamplerHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResamplerHandle); + if (ResamplerHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle); } - if (bufferHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BufferHandle); + if (buffer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } if (NumChannels != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); @@ -2442,17 +2784,14 @@ public void MergeFrom(RemixAndResampleRequest other) { if (other == null) { return; } - if (other.resamplerHandle_ != null) { - if (resamplerHandle_ == null) { - ResamplerHandle = new global::LiveKit.Proto.FFIHandleId(); - } - ResamplerHandle.MergeFrom(other.ResamplerHandle); + if (other.ResamplerHandle != 0UL) { + ResamplerHandle = other.ResamplerHandle; } - if (other.bufferHandle_ != null) { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (other.buffer_ != null) { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - BufferHandle.MergeFrom(other.BufferHandle); + Buffer.MergeFrom(other.Buffer); } if (other.NumChannels != 0) { NumChannels = other.NumChannels; @@ -2475,18 +2814,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (resamplerHandle_ == null) { - ResamplerHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(ResamplerHandle); + case 8: { + ResamplerHandle = input.ReadUInt64(); break; } case 18: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - input.ReadMessage(BufferHandle); + input.ReadMessage(Buffer); break; } case 24: { @@ -2512,18 +2848,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (resamplerHandle_ == null) { - ResamplerHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(ResamplerHandle); + case 8: { + ResamplerHandle = input.ReadUInt64(); break; } case 18: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); } - input.ReadMessage(BufferHandle); + input.ReadMessage(Buffer); break; } case 24: { @@ -2541,6 +2874,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class RemixAndResampleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2555,7 +2889,7 @@ public sealed partial class RemixAndResampleResponse : pb::IMessageField number for the "buffer" field. public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.AudioFrameBufferInfo buffer_; + private global::LiveKit.Proto.OwnedAudioFrameBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioFrameBufferInfo Buffer { + public global::LiveKit.Proto.OwnedAudioFrameBuffer Buffer { get { return buffer_; } set { buffer_ = value; @@ -2684,7 +3018,7 @@ public void MergeFrom(RemixAndResampleResponse other) { } if (other.buffer_ != null) { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } Buffer.MergeFrom(other.Buffer); } @@ -2705,7 +3039,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -2727,7 +3061,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -2739,6 +3073,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AudioFrameBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2753,7 +3088,7 @@ public sealed partial class AudioFrameBufferInfo : pb::IMessageField number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } - } - /// Field number for the "data_ptr" field. - public const int DataPtrFieldNumber = 2; + public const int DataPtrFieldNumber = 1; private ulong dataPtr_; /// /// *const i16 @@ -2815,7 +3137,7 @@ public ulong DataPtr { } /// Field number for the "num_channels" field. - public const int NumChannelsFieldNumber = 3; + public const int NumChannelsFieldNumber = 2; private uint numChannels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2827,7 +3149,7 @@ public uint NumChannels { } /// Field number for the "sample_rate" field. - public const int SampleRateFieldNumber = 4; + public const int SampleRateFieldNumber = 3; private uint sampleRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2839,7 +3161,7 @@ public uint SampleRate { } /// Field number for the "samples_per_channel" field. - public const int SamplesPerChannelFieldNumber = 5; + public const int SamplesPerChannelFieldNumber = 4; private uint samplesPerChannel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2865,7 +3187,6 @@ public bool Equals(AudioFrameBufferInfo other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; if (DataPtr != other.DataPtr) return false; if (NumChannels != other.NumChannels) return false; if (SampleRate != other.SampleRate) return false; @@ -2877,7 +3198,6 @@ public bool Equals(AudioFrameBufferInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); @@ -2900,24 +3220,20 @@ 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 (DataPtr != 0UL) { - output.WriteRawTag(16); + output.WriteRawTag(8); output.WriteUInt64(DataPtr); } if (NumChannels != 0) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt32(NumChannels); } if (SampleRate != 0) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteUInt32(SampleRate); } if (SamplesPerChannel != 0) { - output.WriteRawTag(40); + output.WriteRawTag(32); output.WriteUInt32(SamplesPerChannel); } if (_unknownFields != null) { @@ -2930,24 +3246,20 @@ 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 (DataPtr != 0UL) { - output.WriteRawTag(16); + output.WriteRawTag(8); output.WriteUInt64(DataPtr); } if (NumChannels != 0) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt32(NumChannels); } if (SampleRate != 0) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteUInt32(SampleRate); } if (SamplesPerChannel != 0) { - output.WriteRawTag(40); + output.WriteRawTag(32); output.WriteUInt32(SamplesPerChannel); } if (_unknownFields != null) { @@ -2960,9 +3272,6 @@ 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 (DataPtr != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); } @@ -2987,12 +3296,6 @@ public void MergeFrom(AudioFrameBufferInfo other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); - } if (other.DataPtr != 0UL) { DataPtr = other.DataPtr; } @@ -3020,65 +3323,296 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); + case 8: { + DataPtr = input.ReadUInt64(); break; } case 16: { - DataPtr = input.ReadUInt64(); + NumChannels = input.ReadUInt32(); break; } case 24: { - NumChannels = input.ReadUInt32(); + SampleRate = input.ReadUInt32(); break; } case 32: { + SamplesPerChannel = 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: { + DataPtr = input.ReadUInt64(); + break; + } + case 16: { + NumChannels = input.ReadUInt32(); + break; + } + case 24: { SampleRate = input.ReadUInt32(); break; } - case 40: { + case 32: { SamplesPerChannel = input.ReadUInt32(); break; } } } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedAudioFrameBuffer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer()); + 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[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 OwnedAudioFrameBuffer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedAudioFrameBuffer(OwnedAudioFrameBuffer 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 OwnedAudioFrameBuffer Clone() { + return new OwnedAudioFrameBuffer(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.AudioFrameBufferInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioFrameBufferInfo 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 OwnedAudioFrameBuffer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedAudioFrameBuffer 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.InternalMergeFrom(ref pb::ParseContext input) { + 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(OwnedAudioFrameBuffer 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.AudioFrameBufferInfo(); + } + 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, ref input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - DataPtr = input.ReadUInt64(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioFrameBufferInfo(); + } + input.ReadMessage(Info); break; } - case 24: { - NumChannels = input.ReadUInt32(); + } + } + #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 32: { - SampleRate = input.ReadUInt32(); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); break; } - case 40: { - SamplesPerChannel = input.ReadUInt32(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioFrameBufferInfo(); + } + input.ReadMessage(Info); break; } } @@ -3088,6 +3622,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AudioStreamInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3102,7 +3637,1381 @@ public sealed partial class AudioStreamInfo : 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] + [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 AudioStreamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamInfo(AudioStreamInfo other) : this() { + type_ = other.type_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamInfo Clone() { + return new AudioStreamInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + 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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioStreamInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioStreamInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) 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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + 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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + 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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioStreamInfo other) { + if (other == null) { + return; + } + if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + Type = other.Type; + } + _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: { + Type = (global::LiveKit.Proto.AudioStreamType) 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 8: { + Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedAudioStream : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioStream()); + 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[16]; } + } + + [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 OwnedAudioStream() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedAudioStream(OwnedAudioStream 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 OwnedAudioStream Clone() { + return new OwnedAudioStream(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.AudioStreamInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamInfo 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 OwnedAudioStream); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedAudioStream 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(OwnedAudioStream 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.AudioStreamInfo(); + } + 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 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioStreamInfo(); + } + input.ReadMessage(Info); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.AudioStreamInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioStreamEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent()); + 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[17]; } + } + + [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 AudioStreamEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamEvent(AudioStreamEvent other) : this() { + streamHandle_ = other.streamHandle_; + switch (other.MessageCase) { + case MessageOneofCase.FrameReceived: + FrameReceived = other.FrameReceived.Clone(); + break; + case MessageOneofCase.Eos: + Eos = other.Eos.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamEvent Clone() { + return new AudioStreamEvent(this); + } + + /// Field number for the "stream_handle" field. + public const int StreamHandleFieldNumber = 1; + private ulong streamHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong StreamHandle { + get { return streamHandle_; } + set { + streamHandle_ = value; + } + } + + /// Field number for the "frame_received" field. + public const int FrameReceivedFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioFrameReceived FrameReceived { + get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived; + } + } + + /// Field number for the "eos" field. + public const int EosFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamEOS Eos { + get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.AudioStreamEOS) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + FrameReceived = 2, + Eos = 3, + } + 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 AudioStreamEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioStreamEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamHandle != other.StreamHandle) return false; + if (!object.Equals(FrameReceived, other.FrameReceived)) return false; + if (!object.Equals(Eos, other.Eos)) 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 (StreamHandle != 0UL) hash ^= StreamHandle.GetHashCode(); + if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode(); + if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.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 (StreamHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + output.WriteRawTag(18); + output.WriteMessage(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(26); + output.WriteMessage(Eos); + } + 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 (StreamHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + output.WriteRawTag(18); + output.WriteMessage(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(26); + output.WriteMessage(Eos); + } + 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 (StreamHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioStreamEvent other) { + if (other == null) { + return; + } + if (other.StreamHandle != 0UL) { + StreamHandle = other.StreamHandle; + } + switch (other.MessageCase) { + case MessageOneofCase.FrameReceived: + if (FrameReceived == null) { + FrameReceived = new global::LiveKit.Proto.AudioFrameReceived(); + } + FrameReceived.MergeFrom(other.FrameReceived); + break; + case MessageOneofCase.Eos: + if (Eos == null) { + Eos = new global::LiveKit.Proto.AudioStreamEOS(); + } + Eos.MergeFrom(other.Eos); + 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: { + StreamHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived(); + if (messageCase_ == MessageOneofCase.FrameReceived) { + subBuilder.MergeFrom(FrameReceived); + } + input.ReadMessage(subBuilder); + FrameReceived = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = 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: { + StreamHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived(); + if (messageCase_ == MessageOneofCase.FrameReceived) { + subBuilder.MergeFrom(FrameReceived); + } + input.ReadMessage(subBuilder); + FrameReceived = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioFrameReceived : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived()); + 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[18]; } + } + + [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 AudioFrameReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioFrameReceived(AudioFrameReceived other) : this() { + frame_ = other.frame_ != null ? other.frame_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioFrameReceived Clone() { + return new AudioFrameReceived(this); + } + + /// Field number for the "frame" field. + public const int FrameFieldNumber = 1; + private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame { + get { return frame_; } + set { + frame_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioFrameReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioFrameReceived other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Frame, other.Frame)) 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 (frame_ != null) hash ^= Frame.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 (frame_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Frame); + } + 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 (frame_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Frame); + } + 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 (frame_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioFrameReceived other) { + if (other == null) { + return; + } + if (other.frame_ != null) { + if (frame_ == null) { + Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + } + Frame.MergeFrom(other.Frame); + } + _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 (frame_ == null) { + Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + } + input.ReadMessage(Frame); + 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 (frame_ == null) { + Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + } + input.ReadMessage(Frame); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioStreamEOS : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEOS()); + 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[19]; } + } + + [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 AudioStreamEOS() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamEOS(AudioStreamEOS other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamEOS Clone() { + return new AudioStreamEOS(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioStreamEOS); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioStreamEOS other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioStreamEOS other) { + if (other == null) { + return; + } + _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; + } + } + #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 AudioSourceOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions()); + 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[20]; } + } + + [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 AudioSourceOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioSourceOptions(AudioSourceOptions other) : this() { + echoCancellation_ = other.echoCancellation_; + noiseSuppression_ = other.noiseSuppression_; + autoGainControl_ = other.autoGainControl_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioSourceOptions Clone() { + return new AudioSourceOptions(this); + } + + /// Field number for the "echo_cancellation" field. + public const int EchoCancellationFieldNumber = 1; + private bool echoCancellation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EchoCancellation { + get { return echoCancellation_; } + set { + echoCancellation_ = value; + } + } + + /// Field number for the "noise_suppression" field. + public const int NoiseSuppressionFieldNumber = 2; + private bool noiseSuppression_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NoiseSuppression { + get { return noiseSuppression_; } + set { + noiseSuppression_ = value; + } + } + + /// Field number for the "auto_gain_control" field. + public const int AutoGainControlFieldNumber = 3; + private bool autoGainControl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoGainControl { + get { return autoGainControl_; } + set { + autoGainControl_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioSourceOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioSourceOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EchoCancellation != other.EchoCancellation) return false; + if (NoiseSuppression != other.NoiseSuppression) return false; + if (AutoGainControl != other.AutoGainControl) 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 (EchoCancellation != false) hash ^= EchoCancellation.GetHashCode(); + if (NoiseSuppression != false) hash ^= NoiseSuppression.GetHashCode(); + if (AutoGainControl != false) hash ^= AutoGainControl.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 (EchoCancellation != false) { + output.WriteRawTag(8); + output.WriteBool(EchoCancellation); + } + if (NoiseSuppression != false) { + output.WriteRawTag(16); + output.WriteBool(NoiseSuppression); + } + if (AutoGainControl != false) { + output.WriteRawTag(24); + output.WriteBool(AutoGainControl); + } + 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 (EchoCancellation != false) { + output.WriteRawTag(8); + output.WriteBool(EchoCancellation); + } + if (NoiseSuppression != false) { + output.WriteRawTag(16); + output.WriteBool(NoiseSuppression); + } + if (AutoGainControl != false) { + output.WriteRawTag(24); + output.WriteBool(AutoGainControl); + } + 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 (EchoCancellation != false) { + size += 1 + 1; + } + if (NoiseSuppression != false) { + size += 1 + 1; + } + if (AutoGainControl != 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(AudioSourceOptions other) { + if (other == null) { + return; + } + if (other.EchoCancellation != false) { + EchoCancellation = other.EchoCancellation; + } + if (other.NoiseSuppression != false) { + NoiseSuppression = other.NoiseSuppression; + } + if (other.AutoGainControl != false) { + AutoGainControl = other.AutoGainControl; + } + _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: { + EchoCancellation = input.ReadBool(); + break; + } + case 16: { + NoiseSuppression = input.ReadBool(); + break; + } + case 24: { + AutoGainControl = 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: { + EchoCancellation = input.ReadBool(); + break; + } + case 16: { + NoiseSuppression = input.ReadBool(); + break; + } + case 24: { + AutoGainControl = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioSourceInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo()); + 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[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3113,7 +5022,7 @@ public sealed partial class AudioStreamInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo() { + public AudioSourceInfo() { OnConstruction(); } @@ -3121,73 +5030,45 @@ public AudioStreamInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo(AudioStreamInfo other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; + public AudioSourceInfo(AudioSourceInfo other) : this() { type_ = other.type_; - trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo Clone() { - return new AudioStreamInfo(this); - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } + public AudioSourceInfo Clone() { + return new AudioSourceInfo(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.AudioStreamType type_ = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + private global::LiveKit.Proto.AudioSourceType type_ = global::LiveKit.Proto.AudioSourceType.AudioSourceNative; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioStreamType Type { + public global::LiveKit.Proto.AudioSourceType Type { get { return type_; } set { type_ = value; } } - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 3; - private string trackSid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } - set { - 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 AudioStreamInfo); + return Equals(other as AudioSourceInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioStreamInfo other) { + public bool Equals(AudioSourceInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; if (Type != other.Type) return false; - if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3195,9 +5076,7 @@ public bool Equals(AudioStreamInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3216,18 +5095,10 @@ 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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3238,18 +5109,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 (handle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3260,15 +5123,9 @@ 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 (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3277,22 +5134,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioStreamInfo other) { + public void MergeFrom(AudioSourceInfo other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); - } - if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (other.Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { Type = other.Type; } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3308,19 +5156,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } case 16: { - Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); - break; - } - case 26: { - TrackSid = input.ReadString(); + Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); break; } } @@ -3338,19 +5175,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } case 16: { - Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum(); - break; - } - case 26: { - TrackSid = input.ReadString(); + Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); break; } } @@ -3360,21 +5186,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class AudioStreamEvent : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedAudioSource : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioSource()); 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[14]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3385,7 +5212,7 @@ public sealed partial class AudioStreamEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEvent() { + public OwnedAudioSource() { OnConstruction(); } @@ -3393,76 +5220,51 @@ public AudioStreamEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEvent(AudioStreamEvent other) : this() { + public OwnedAudioSource(OwnedAudioSource other) : this() { handle_ = other.handle_ != null ? other.handle_.Clone() : null; - switch (other.MessageCase) { - case MessageOneofCase.FrameReceived: - FrameReceived = other.FrameReceived.Clone(); - break; - } - + 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 AudioStreamEvent Clone() { - return new AudioStreamEvent(this); + public OwnedAudioSource Clone() { + return new OwnedAudioSource(this); } /// Field number for the "handle" field. public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; + private global::LiveKit.Proto.FfiOwnedHandle handle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { + public global::LiveKit.Proto.FfiOwnedHandle Handle { get { return handle_; } set { handle_ = value; } } - /// Field number for the "frame_received" field. - public const int FrameReceivedFieldNumber = 2; + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.AudioSourceInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioFrameReceived FrameReceived { - get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; } + public global::LiveKit.Proto.AudioSourceInfo Info { + get { return info_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived; + info_ = value; } } - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - FrameReceived = 2, - } - 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 AudioStreamEvent); + return Equals(other as OwnedAudioSource); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioStreamEvent other) { + public bool Equals(OwnedAudioSource other) { if (ReferenceEquals(other, null)) { return false; } @@ -3470,8 +5272,7 @@ public bool Equals(AudioStreamEvent other) { return true; } if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(FrameReceived, other.FrameReceived)) return false; - if (MessageCase != other.MessageCase) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3480,8 +5281,7 @@ public bool Equals(AudioStreamEvent other) { public override int GetHashCode() { int hash = 1; if (handle_ != null) hash ^= Handle.GetHashCode(); - if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode(); - hash ^= (int) messageCase_; + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3504,9 +5304,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (messageCase_ == MessageOneofCase.FrameReceived) { + if (info_ != null) { output.WriteRawTag(18); - output.WriteMessage(FrameReceived); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3522,9 +5322,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (messageCase_ == MessageOneofCase.FrameReceived) { + if (info_ != null) { output.WriteRawTag(18); - output.WriteMessage(FrameReceived); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3539,8 +5339,8 @@ public int CalculateSize() { if (handle_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (messageCase_ == MessageOneofCase.FrameReceived) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3550,25 +5350,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioStreamEvent other) { + public void MergeFrom(OwnedAudioSource other) { if (other == null) { return; } if (other.handle_ != null) { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } Handle.MergeFrom(other.Handle); } - switch (other.MessageCase) { - case MessageOneofCase.FrameReceived: - if (FrameReceived == null) { - FrameReceived = new global::LiveKit.Proto.AudioFrameReceived(); - } - FrameReceived.MergeFrom(other.FrameReceived); - break; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); + } + Info.MergeFrom(other.Info); } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3586,18 +5383,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } case 18: { - global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived(); - if (messageCase_ == MessageOneofCase.FrameReceived) { - subBuilder.MergeFrom(FrameReceived); + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); } - input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + input.ReadMessage(Info); break; } } @@ -3617,18 +5412,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } case 18: { - global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived(); - if (messageCase_ == MessageOneofCase.FrameReceived) { - subBuilder.MergeFrom(FrameReceived); + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); } - input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + input.ReadMessage(Info); break; } } @@ -3638,21 +5431,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class AudioFrameReceived : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioResamplerInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo()); 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[15]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3663,7 +5457,7 @@ public sealed partial class AudioFrameReceived : pb::IMessageField number for the "frame" field. - public const int FrameFieldNumber = 1; - private global::LiveKit.Proto.AudioFrameBufferInfo frame_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioFrameBufferInfo Frame { - get { return frame_; } - set { - frame_ = value; - } + public AudioResamplerInfo Clone() { + return new AudioResamplerInfo(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioFrameReceived); + return Equals(other as AudioResamplerInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioFrameReceived other) { + public bool Equals(AudioResamplerInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Frame, other.Frame)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3717,7 +5497,6 @@ public bool Equals(AudioFrameReceived other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (frame_ != null) hash ^= Frame.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3736,10 +5515,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (frame_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Frame); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3750,10 +5525,6 @@ 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 (frame_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Frame); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3764,9 +5535,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (frame_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3775,16 +5543,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioFrameReceived other) { + public void MergeFrom(AudioResamplerInfo other) { if (other == null) { return; } - if (other.frame_ != null) { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - Frame.MergeFrom(other.Frame); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3800,13 +5562,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - input.ReadMessage(Frame); - break; - } } } #endif @@ -3822,13 +5577,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - input.ReadMessage(Frame); - break; - } } } } @@ -3836,21 +5584,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class AudioSourceInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedAudioResampler : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler()); 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[16]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3861,7 +5610,7 @@ public sealed partial class AudioSourceInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSourceInfo() { + public OwnedAudioResampler() { OnConstruction(); } @@ -3869,51 +5618,51 @@ public AudioSourceInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSourceInfo(AudioSourceInfo other) : this() { + public OwnedAudioResampler(OwnedAudioResampler other) : this() { handle_ = other.handle_ != null ? other.handle_.Clone() : null; - type_ = other.type_; + 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 AudioSourceInfo Clone() { - return new AudioSourceInfo(this); + public OwnedAudioResampler Clone() { + return new OwnedAudioResampler(this); } /// Field number for the "handle" field. public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; + private global::LiveKit.Proto.FfiOwnedHandle handle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { + public global::LiveKit.Proto.FfiOwnedHandle Handle { get { return handle_; } set { handle_ = value; } } - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.AudioSourceType type_ = global::LiveKit.Proto.AudioSourceType.AudioSourceNative; + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.AudioResamplerInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioSourceType Type { - get { return type_; } + public global::LiveKit.Proto.AudioResamplerInfo Info { + get { return info_; } set { - type_ = value; + info_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioSourceInfo); + return Equals(other as OwnedAudioResampler); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioSourceInfo other) { + public bool Equals(OwnedAudioResampler other) { if (ReferenceEquals(other, null)) { return false; } @@ -3921,7 +5670,7 @@ public bool Equals(AudioSourceInfo other) { return true; } if (!object.Equals(Handle, other.Handle)) return false; - if (Type != other.Type) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3930,7 +5679,7 @@ public bool Equals(AudioSourceInfo other) { public override int GetHashCode() { int hash = 1; if (handle_ != null) hash ^= Handle.GetHashCode(); - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) hash ^= Type.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3953,9 +5702,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3971,9 +5720,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3988,8 +5737,8 @@ public int CalculateSize() { if (handle_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3999,18 +5748,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioSourceInfo other) { + public void MergeFrom(OwnedAudioResampler other) { if (other == null) { return; } if (other.handle_ != null) { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } Handle.MergeFrom(other.Handle); } - if (other.Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - Type = other.Type; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioResamplerInfo(); + } + Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4029,13 +5781,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioResamplerInfo(); + } + input.ReadMessage(Info); break; } } @@ -4055,13 +5810,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioResamplerInfo(); + } + input.ReadMessage(Info); break; } } diff --git a/Runtime/Scripts/Proto/E2Ee.cs b/Runtime/Scripts/Proto/E2Ee.cs new file mode 100644 index 0000000..f03e60c --- /dev/null +++ b/Runtime/Scripts/Proto/E2Ee.cs @@ -0,0 +1,6425 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: e2ee.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace LiveKit.Proto { + + /// Holder for reflection information generated from e2ee.proto + public static partial class E2EeReflection { + + #region Descriptor + /// File descriptor for e2ee.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static E2EeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgplMmVlLnByb3RvEg1saXZla2l0LnByb3RvImMKDEZyYW1lQ3J5cHRvchIc", + "ChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRIRCgl0cmFja19zaWQYAiAB", + "KAkSEQoJa2V5X2luZGV4GAMgASgFEg8KB2VuYWJsZWQYBCABKAgiigEKEktl", + "eVByb3ZpZGVyT3B0aW9ucxIXCgpzaGFyZWRfa2V5GAEgASgMSACIAQESGwoT", + "cmF0Y2hldF93aW5kb3dfc2l6ZRgCIAEoBRIUCgxyYXRjaGV0X3NhbHQYAyAB", + "KAwSGQoRZmFpbHVyZV90b2xlcmFuY2UYBCABKAVCDQoLX3NoYXJlZF9rZXki", + "hgEKC0UyZWVPcHRpb25zEjYKD2VuY3J5cHRpb25fdHlwZRgBIAEoDjIdLmxp", + "dmVraXQucHJvdG8uRW5jcnlwdGlvblR5cGUSPwoUa2V5X3Byb3ZpZGVyX29w", + "dGlvbnMYAiABKAsyIS5saXZla2l0LnByb3RvLktleVByb3ZpZGVyT3B0aW9u", + "cyIvChxFMmVlTWFuYWdlclNldEVuYWJsZWRSZXF1ZXN0Eg8KB2VuYWJsZWQY", + "ASABKAgiHwodRTJlZU1hbmFnZXJTZXRFbmFibGVkUmVzcG9uc2UiJAoiRTJl", + "ZU1hbmFnZXJHZXRGcmFtZUNyeXB0b3JzUmVxdWVzdCJaCiNFMmVlTWFuYWdl", + "ckdldEZyYW1lQ3J5cHRvcnNSZXNwb25zZRIzCg5mcmFtZV9jcnlwdG9ycxgB", + "IAMoCzIbLmxpdmVraXQucHJvdG8uRnJhbWVDcnlwdG9yImEKHUZyYW1lQ3J5", + "cHRvclNldEVuYWJsZWRSZXF1ZXN0EhwKFHBhcnRpY2lwYW50X2lkZW50aXR5", + "GAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCRIPCgdlbmFibGVkGAMgASgIIiAK", + "HkZyYW1lQ3J5cHRvclNldEVuYWJsZWRSZXNwb25zZSJkCh5GcmFtZUNyeXB0", + "b3JTZXRLZXlJbmRleFJlcXVlc3QSHAoUcGFydGljaXBhbnRfaWRlbnRpdHkY", + "ASABKAkSEQoJdHJhY2tfc2lkGAIgASgJEhEKCWtleV9pbmRleBgDIAEoBSIh", + "Ch9GcmFtZUNyeXB0b3JTZXRLZXlJbmRleFJlc3BvbnNlIjwKE1NldFNoYXJl", + "ZEtleVJlcXVlc3QSEgoKc2hhcmVkX2tleRgBIAEoDBIRCglrZXlfaW5kZXgY", + "AiABKAUiFgoUU2V0U2hhcmVkS2V5UmVzcG9uc2UiLAoXUmF0Y2hldFNoYXJl", + "ZEtleVJlcXVlc3QSEQoJa2V5X2luZGV4GAEgASgFIjwKGFJhdGNoZXRTaGFy", + "ZWRLZXlSZXNwb25zZRIUCgduZXdfa2V5GAEgASgMSACIAQFCCgoIX25ld19r", + "ZXkiKAoTR2V0U2hhcmVkS2V5UmVxdWVzdBIRCglrZXlfaW5kZXgYASABKAUi", + "MAoUR2V0U2hhcmVkS2V5UmVzcG9uc2USEAoDa2V5GAEgASgMSACIAQFCBgoE", + "X2tleSJNCg1TZXRLZXlSZXF1ZXN0EhwKFHBhcnRpY2lwYW50X2lkZW50aXR5", + "GAEgASgJEgsKA2tleRgCIAEoDBIRCglrZXlfaW5kZXgYAyABKAUiEAoOU2V0", + "S2V5UmVzcG9uc2UiRAoRUmF0Y2hldEtleVJlcXVlc3QSHAoUcGFydGljaXBh", + "bnRfaWRlbnRpdHkYASABKAkSEQoJa2V5X2luZGV4GAIgASgFIjYKElJhdGNo", + "ZXRLZXlSZXNwb25zZRIUCgduZXdfa2V5GAEgASgMSACIAQFCCgoIX25ld19r", + "ZXkiQAoNR2V0S2V5UmVxdWVzdBIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgB", + "IAEoCRIRCglrZXlfaW5kZXgYAiABKAUiKgoOR2V0S2V5UmVzcG9uc2USEAoD", + "a2V5GAEgASgMSACIAQFCBgoEX2tleSLMBQoLRTJlZVJlcXVlc3QSEwoLcm9v", + "bV9oYW5kbGUYASABKAQSSgoTbWFuYWdlcl9zZXRfZW5hYmxlZBgCIAEoCzIr", + "LmxpdmVraXQucHJvdG8uRTJlZU1hbmFnZXJTZXRFbmFibGVkUmVxdWVzdEgA", + "ElcKGm1hbmFnZXJfZ2V0X2ZyYW1lX2NyeXB0b3JzGAMgASgLMjEubGl2ZWtp", + "dC5wcm90by5FMmVlTWFuYWdlckdldEZyYW1lQ3J5cHRvcnNSZXF1ZXN0SAAS", + "SwoTY3J5cHRvcl9zZXRfZW5hYmxlZBgEIAEoCzIsLmxpdmVraXQucHJvdG8u", + "RnJhbWVDcnlwdG9yU2V0RW5hYmxlZFJlcXVlc3RIABJOChVjcnlwdG9yX3Nl", + "dF9rZXlfaW5kZXgYBSABKAsyLS5saXZla2l0LnByb3RvLkZyYW1lQ3J5cHRv", + "clNldEtleUluZGV4UmVxdWVzdEgAEjwKDnNldF9zaGFyZWRfa2V5GAYgASgL", + "MiIubGl2ZWtpdC5wcm90by5TZXRTaGFyZWRLZXlSZXF1ZXN0SAASRAoScmF0", + "Y2hldF9zaGFyZWRfa2V5GAcgASgLMiYubGl2ZWtpdC5wcm90by5SYXRjaGV0", + "U2hhcmVkS2V5UmVxdWVzdEgAEjwKDmdldF9zaGFyZWRfa2V5GAggASgLMiIu", + "bGl2ZWtpdC5wcm90by5HZXRTaGFyZWRLZXlSZXF1ZXN0SAASLwoHc2V0X2tl", + "eRgJIAEoCzIcLmxpdmVraXQucHJvdG8uU2V0S2V5UmVxdWVzdEgAEjcKC3Jh", + "dGNoZXRfa2V5GAogASgLMiAubGl2ZWtpdC5wcm90by5SYXRjaGV0S2V5UmVx", + "dWVzdEgAEi8KB2dldF9rZXkYCyABKAsyHC5saXZla2l0LnByb3RvLkdldEtl", + "eVJlcXVlc3RIAEIJCgdtZXNzYWdlIsIFCgxFMmVlUmVzcG9uc2USSwoTbWFu", + "YWdlcl9zZXRfZW5hYmxlZBgBIAEoCzIsLmxpdmVraXQucHJvdG8uRTJlZU1h", + "bmFnZXJTZXRFbmFibGVkUmVzcG9uc2VIABJYChptYW5hZ2VyX2dldF9mcmFt", + "ZV9jcnlwdG9ycxgCIAEoCzIyLmxpdmVraXQucHJvdG8uRTJlZU1hbmFnZXJH", + "ZXRGcmFtZUNyeXB0b3JzUmVzcG9uc2VIABJMChNjcnlwdG9yX3NldF9lbmFi", + "bGVkGAMgASgLMi0ubGl2ZWtpdC5wcm90by5GcmFtZUNyeXB0b3JTZXRFbmFi", + "bGVkUmVzcG9uc2VIABJPChVjcnlwdG9yX3NldF9rZXlfaW5kZXgYBCABKAsy", + "Li5saXZla2l0LnByb3RvLkZyYW1lQ3J5cHRvclNldEtleUluZGV4UmVzcG9u", + "c2VIABI9Cg5zZXRfc2hhcmVkX2tleRgFIAEoCzIjLmxpdmVraXQucHJvdG8u", + "U2V0U2hhcmVkS2V5UmVzcG9uc2VIABJFChJyYXRjaGV0X3NoYXJlZF9rZXkY", + "BiABKAsyJy5saXZla2l0LnByb3RvLlJhdGNoZXRTaGFyZWRLZXlSZXNwb25z", + "ZUgAEj0KDmdldF9zaGFyZWRfa2V5GAcgASgLMiMubGl2ZWtpdC5wcm90by5H", + "ZXRTaGFyZWRLZXlSZXNwb25zZUgAEjAKB3NldF9rZXkYCCABKAsyHS5saXZl", + "a2l0LnByb3RvLlNldEtleVJlc3BvbnNlSAASOAoLcmF0Y2hldF9rZXkYCSAB", + "KAsyIS5saXZla2l0LnByb3RvLlJhdGNoZXRLZXlSZXNwb25zZUgAEjAKB2dl", + "dF9rZXkYCiABKAsyHS5saXZla2l0LnByb3RvLkdldEtleVJlc3BvbnNlSABC", + "CQoHbWVzc2FnZSovCg5FbmNyeXB0aW9uVHlwZRIICgROT05FEAASBwoDR0NN", + "EAESCgoGQ1VTVE9NEAIqiAEKD0VuY3J5cHRpb25TdGF0ZRIHCgNORVcQABIG", + "CgJPSxABEhUKEUVOQ1JZUFRJT05fRkFJTEVEEAISFQoRREVDUllQVElPTl9G", + "QUlMRUQQAxIPCgtNSVNTSU5HX0tFWRAEEhEKDUtFWV9SQVRDSEVURUQQBRIS", + "Cg5JTlRFUk5BTF9FUlJPUhAGQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.EncryptionType), typeof(global::LiveKit.Proto.EncryptionState), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FrameCryptor), global::LiveKit.Proto.FrameCryptor.Parser, new[]{ "ParticipantIdentity", "TrackSid", "KeyIndex", "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.KeyProviderOptions), global::LiveKit.Proto.KeyProviderOptions.Parser, new[]{ "SharedKey", "RatchetWindowSize", "RatchetSalt", "FailureTolerance" }, new[]{ "SharedKey" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeOptions), global::LiveKit.Proto.E2eeOptions.Parser, new[]{ "EncryptionType", "KeyProviderOptions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeManagerSetEnabledRequest), global::LiveKit.Proto.E2eeManagerSetEnabledRequest.Parser, new[]{ "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeManagerSetEnabledResponse), global::LiveKit.Proto.E2eeManagerSetEnabledResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest), global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse), global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse.Parser, new[]{ "FrameCryptors" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FrameCryptorSetEnabledRequest), global::LiveKit.Proto.FrameCryptorSetEnabledRequest.Parser, new[]{ "ParticipantIdentity", "TrackSid", "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FrameCryptorSetEnabledResponse), global::LiveKit.Proto.FrameCryptorSetEnabledResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest), global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest.Parser, new[]{ "ParticipantIdentity", "TrackSid", "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse), global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetSharedKeyRequest), global::LiveKit.Proto.SetSharedKeyRequest.Parser, new[]{ "SharedKey", "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetSharedKeyResponse), global::LiveKit.Proto.SetSharedKeyResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RatchetSharedKeyRequest), global::LiveKit.Proto.RatchetSharedKeyRequest.Parser, new[]{ "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RatchetSharedKeyResponse), global::LiveKit.Proto.RatchetSharedKeyResponse.Parser, new[]{ "NewKey" }, new[]{ "NewKey" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSharedKeyRequest), global::LiveKit.Proto.GetSharedKeyRequest.Parser, new[]{ "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSharedKeyResponse), global::LiveKit.Proto.GetSharedKeyResponse.Parser, new[]{ "Key" }, new[]{ "Key" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetKeyRequest), global::LiveKit.Proto.SetKeyRequest.Parser, new[]{ "ParticipantIdentity", "Key", "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetKeyResponse), global::LiveKit.Proto.SetKeyResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RatchetKeyRequest), global::LiveKit.Proto.RatchetKeyRequest.Parser, new[]{ "ParticipantIdentity", "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RatchetKeyResponse), global::LiveKit.Proto.RatchetKeyResponse.Parser, new[]{ "NewKey" }, new[]{ "NewKey" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetKeyRequest), global::LiveKit.Proto.GetKeyRequest.Parser, new[]{ "ParticipantIdentity", "KeyIndex" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetKeyResponse), global::LiveKit.Proto.GetKeyResponse.Parser, new[]{ "Key" }, new[]{ "Key" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeRequest), global::LiveKit.Proto.E2eeRequest.Parser, new[]{ "RoomHandle", "ManagerSetEnabled", "ManagerGetFrameCryptors", "CryptorSetEnabled", "CryptorSetKeyIndex", "SetSharedKey", "RatchetSharedKey", "GetSharedKey", "SetKey", "RatchetKey", "GetKey" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.E2eeResponse), global::LiveKit.Proto.E2eeResponse.Parser, new[]{ "ManagerSetEnabled", "ManagerGetFrameCryptors", "CryptorSetEnabled", "CryptorSetKeyIndex", "SetSharedKey", "RatchetSharedKey", "GetSharedKey", "SetKey", "RatchetKey", "GetKey" }, new[]{ "Message" }, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum EncryptionType { + [pbr::OriginalName("NONE")] None = 0, + [pbr::OriginalName("GCM")] Gcm = 1, + [pbr::OriginalName("CUSTOM")] Custom = 2, + } + + public enum EncryptionState { + [pbr::OriginalName("NEW")] New = 0, + [pbr::OriginalName("OK")] Ok = 1, + [pbr::OriginalName("ENCRYPTION_FAILED")] EncryptionFailed = 2, + [pbr::OriginalName("DECRYPTION_FAILED")] DecryptionFailed = 3, + [pbr::OriginalName("MISSING_KEY")] MissingKey = 4, + [pbr::OriginalName("KEY_RATCHETED")] KeyRatcheted = 5, + [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 6, + } + + #endregion + + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FrameCryptor : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptor()); + 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.E2EeReflection.Descriptor.MessageTypes[0]; } + } + + [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 FrameCryptor() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptor(FrameCryptor other) : this() { + participantIdentity_ = other.participantIdentity_; + trackSid_ = other.trackSid_; + keyIndex_ = other.keyIndex_; + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptor Clone() { + return new FrameCryptor(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 "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackSid { + get { return trackSid_; } + set { + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 3; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 4; + 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 FrameCryptor); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameCryptor other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (TrackSid != other.TrackSid) return false; + if (KeyIndex != other.KeyIndex) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + if (Enabled != false) { + output.WriteRawTag(32); + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + if (Enabled != false) { + output.WriteRawTag(32); + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + 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(FrameCryptor other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + 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 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + break; + } + case 32: { + 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 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + break; + } + case 32: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class KeyProviderOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyProviderOptions()); + 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.E2EeReflection.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 KeyProviderOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyProviderOptions(KeyProviderOptions other) : this() { + sharedKey_ = other.sharedKey_; + ratchetWindowSize_ = other.ratchetWindowSize_; + ratchetSalt_ = other.ratchetSalt_; + failureTolerance_ = other.failureTolerance_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public KeyProviderOptions Clone() { + return new KeyProviderOptions(this); + } + + /// Field number for the "shared_key" field. + public const int SharedKeyFieldNumber = 1; + private readonly static pb::ByteString SharedKeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString sharedKey_; + /// + /// Only specify if you want to use a shared_key + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString SharedKey { + get { return sharedKey_ ?? SharedKeyDefaultValue; } + set { + sharedKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "shared_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSharedKey { + get { return sharedKey_ != null; } + } + /// Clears the value of the "shared_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSharedKey() { + sharedKey_ = null; + } + + /// Field number for the "ratchet_window_size" field. + public const int RatchetWindowSizeFieldNumber = 2; + private int ratchetWindowSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RatchetWindowSize { + get { return ratchetWindowSize_; } + set { + ratchetWindowSize_ = value; + } + } + + /// Field number for the "ratchet_salt" field. + public const int RatchetSaltFieldNumber = 3; + private pb::ByteString ratchetSalt_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RatchetSalt { + get { return ratchetSalt_; } + set { + ratchetSalt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "failure_tolerance" field. + public const int FailureToleranceFieldNumber = 4; + private int failureTolerance_; + /// + /// -1 = no tolerence + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FailureTolerance { + get { return failureTolerance_; } + set { + failureTolerance_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as KeyProviderOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(KeyProviderOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SharedKey != other.SharedKey) return false; + if (RatchetWindowSize != other.RatchetWindowSize) return false; + if (RatchetSalt != other.RatchetSalt) return false; + if (FailureTolerance != other.FailureTolerance) 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 (HasSharedKey) hash ^= SharedKey.GetHashCode(); + if (RatchetWindowSize != 0) hash ^= RatchetWindowSize.GetHashCode(); + if (RatchetSalt.Length != 0) hash ^= RatchetSalt.GetHashCode(); + if (FailureTolerance != 0) hash ^= FailureTolerance.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 (HasSharedKey) { + output.WriteRawTag(10); + output.WriteBytes(SharedKey); + } + if (RatchetWindowSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(RatchetWindowSize); + } + if (RatchetSalt.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(RatchetSalt); + } + if (FailureTolerance != 0) { + output.WriteRawTag(32); + output.WriteInt32(FailureTolerance); + } + 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 (HasSharedKey) { + output.WriteRawTag(10); + output.WriteBytes(SharedKey); + } + if (RatchetWindowSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(RatchetWindowSize); + } + if (RatchetSalt.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(RatchetSalt); + } + if (FailureTolerance != 0) { + output.WriteRawTag(32); + output.WriteInt32(FailureTolerance); + } + 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 (HasSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SharedKey); + } + if (RatchetWindowSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RatchetWindowSize); + } + if (RatchetSalt.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RatchetSalt); + } + if (FailureTolerance != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FailureTolerance); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(KeyProviderOptions other) { + if (other == null) { + return; + } + if (other.HasSharedKey) { + SharedKey = other.SharedKey; + } + if (other.RatchetWindowSize != 0) { + RatchetWindowSize = other.RatchetWindowSize; + } + if (other.RatchetSalt.Length != 0) { + RatchetSalt = other.RatchetSalt; + } + if (other.FailureTolerance != 0) { + FailureTolerance = other.FailureTolerance; + } + _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: { + SharedKey = input.ReadBytes(); + break; + } + case 16: { + RatchetWindowSize = input.ReadInt32(); + break; + } + case 26: { + RatchetSalt = input.ReadBytes(); + break; + } + case 32: { + FailureTolerance = input.ReadInt32(); + 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: { + SharedKey = input.ReadBytes(); + break; + } + case 16: { + RatchetWindowSize = input.ReadInt32(); + break; + } + case 26: { + RatchetSalt = input.ReadBytes(); + break; + } + case 32: { + FailureTolerance = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class E2eeOptions : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeOptions()); + 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.E2EeReflection.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 E2eeOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeOptions(E2eeOptions other) : this() { + encryptionType_ = other.encryptionType_; + keyProviderOptions_ = other.keyProviderOptions_ != null ? other.keyProviderOptions_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeOptions Clone() { + return new E2eeOptions(this); + } + + /// Field number for the "encryption_type" field. + public const int EncryptionTypeFieldNumber = 1; + private global::LiveKit.Proto.EncryptionType encryptionType_ = global::LiveKit.Proto.EncryptionType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.EncryptionType EncryptionType { + get { return encryptionType_; } + set { + encryptionType_ = value; + } + } + + /// Field number for the "key_provider_options" field. + public const int KeyProviderOptionsFieldNumber = 2; + private global::LiveKit.Proto.KeyProviderOptions keyProviderOptions_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.KeyProviderOptions KeyProviderOptions { + get { return keyProviderOptions_; } + set { + keyProviderOptions_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as E2eeOptions); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeOptions other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EncryptionType != other.EncryptionType) return false; + if (!object.Equals(KeyProviderOptions, other.KeyProviderOptions)) 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 (EncryptionType != global::LiveKit.Proto.EncryptionType.None) hash ^= EncryptionType.GetHashCode(); + if (keyProviderOptions_ != null) hash ^= KeyProviderOptions.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 (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) EncryptionType); + } + if (keyProviderOptions_ != null) { + output.WriteRawTag(18); + output.WriteMessage(KeyProviderOptions); + } + 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 (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + output.WriteRawTag(8); + output.WriteEnum((int) EncryptionType); + } + if (keyProviderOptions_ != null) { + output.WriteRawTag(18); + output.WriteMessage(KeyProviderOptions); + } + 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 (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); + } + if (keyProviderOptions_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyProviderOptions); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeOptions other) { + if (other == null) { + return; + } + if (other.EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + EncryptionType = other.EncryptionType; + } + if (other.keyProviderOptions_ != null) { + if (keyProviderOptions_ == null) { + KeyProviderOptions = new global::LiveKit.Proto.KeyProviderOptions(); + } + KeyProviderOptions.MergeFrom(other.KeyProviderOptions); + } + _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: { + EncryptionType = (global::LiveKit.Proto.EncryptionType) input.ReadEnum(); + break; + } + case 18: { + if (keyProviderOptions_ == null) { + KeyProviderOptions = new global::LiveKit.Proto.KeyProviderOptions(); + } + input.ReadMessage(KeyProviderOptions); + 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: { + EncryptionType = (global::LiveKit.Proto.EncryptionType) input.ReadEnum(); + break; + } + case 18: { + if (keyProviderOptions_ == null) { + KeyProviderOptions = new global::LiveKit.Proto.KeyProviderOptions(); + } + input.ReadMessage(KeyProviderOptions); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class E2eeManagerSetEnabledRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeManagerSetEnabledRequest()); + 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.E2EeReflection.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 E2eeManagerSetEnabledRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerSetEnabledRequest(E2eeManagerSetEnabledRequest other) : this() { + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerSetEnabledRequest Clone() { + return new E2eeManagerSetEnabledRequest(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 E2eeManagerSetEnabledRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeManagerSetEnabledRequest 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(E2eeManagerSetEnabledRequest 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 + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class E2eeManagerSetEnabledResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeManagerSetEnabledResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[4]; } + } + + [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 E2eeManagerSetEnabledResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerSetEnabledResponse(E2eeManagerSetEnabledResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerSetEnabledResponse Clone() { + return new E2eeManagerSetEnabledResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as E2eeManagerSetEnabledResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeManagerSetEnabledResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeManagerSetEnabledResponse other) { + if (other == null) { + return; + } + _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; + } + } + #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 E2eeManagerGetFrameCryptorsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeManagerGetFrameCryptorsRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[5]; } + } + + [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 E2eeManagerGetFrameCryptorsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerGetFrameCryptorsRequest(E2eeManagerGetFrameCryptorsRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerGetFrameCryptorsRequest Clone() { + return new E2eeManagerGetFrameCryptorsRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as E2eeManagerGetFrameCryptorsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeManagerGetFrameCryptorsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeManagerGetFrameCryptorsRequest other) { + if (other == null) { + return; + } + _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; + } + } + #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 E2eeManagerGetFrameCryptorsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeManagerGetFrameCryptorsResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[6]; } + } + + [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 E2eeManagerGetFrameCryptorsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerGetFrameCryptorsResponse(E2eeManagerGetFrameCryptorsResponse other) : this() { + frameCryptors_ = other.frameCryptors_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeManagerGetFrameCryptorsResponse Clone() { + return new E2eeManagerGetFrameCryptorsResponse(this); + } + + /// Field number for the "frame_cryptors" field. + public const int FrameCryptorsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_frameCryptors_codec + = pb::FieldCodec.ForMessage(10, global::LiveKit.Proto.FrameCryptor.Parser); + private readonly pbc::RepeatedField frameCryptors_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField FrameCryptors { + get { return frameCryptors_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as E2eeManagerGetFrameCryptorsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeManagerGetFrameCryptorsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!frameCryptors_.Equals(other.frameCryptors_)) 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; + hash ^= frameCryptors_.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 + frameCryptors_.WriteTo(output, _repeated_frameCryptors_codec); + 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) { + frameCryptors_.WriteTo(ref output, _repeated_frameCryptors_codec); + 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; + size += frameCryptors_.CalculateSize(_repeated_frameCryptors_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeManagerGetFrameCryptorsResponse other) { + if (other == null) { + return; + } + frameCryptors_.Add(other.frameCryptors_); + _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: { + frameCryptors_.AddEntriesFrom(input, _repeated_frameCryptors_codec); + 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: { + frameCryptors_.AddEntriesFrom(ref input, _repeated_frameCryptors_codec); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FrameCryptorSetEnabledRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptorSetEnabledRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[7]; } + } + + [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 FrameCryptorSetEnabledRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetEnabledRequest(FrameCryptorSetEnabledRequest other) : this() { + participantIdentity_ = other.participantIdentity_; + trackSid_ = other.trackSid_; + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetEnabledRequest Clone() { + return new FrameCryptorSetEnabledRequest(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 "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackSid { + get { return trackSid_; } + set { + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 3; + 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 FrameCryptorSetEnabledRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameCryptorSetEnabledRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (TrackSid != other.TrackSid) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (Enabled != false) { + output.WriteRawTag(24); + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (Enabled != false) { + output.WriteRawTag(24); + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + 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(FrameCryptorSetEnabledRequest other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; + } + 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 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + 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 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FrameCryptorSetEnabledResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptorSetEnabledResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[8]; } + } + + [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 FrameCryptorSetEnabledResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetEnabledResponse(FrameCryptorSetEnabledResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetEnabledResponse Clone() { + return new FrameCryptorSetEnabledResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FrameCryptorSetEnabledResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameCryptorSetEnabledResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FrameCryptorSetEnabledResponse other) { + if (other == null) { + return; + } + _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; + } + } + #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 FrameCryptorSetKeyIndexRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptorSetKeyIndexRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[9]; } + } + + [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 FrameCryptorSetKeyIndexRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetKeyIndexRequest(FrameCryptorSetKeyIndexRequest other) : this() { + participantIdentity_ = other.participantIdentity_; + trackSid_ = other.trackSid_; + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetKeyIndexRequest Clone() { + return new FrameCryptorSetKeyIndexRequest(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 "track_sid" field. + public const int TrackSidFieldNumber = 2; + private string trackSid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackSid { + get { return trackSid_; } + set { + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 3; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FrameCryptorSetKeyIndexRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameCryptorSetKeyIndexRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (TrackSid != other.TrackSid) return false; + if (KeyIndex != other.KeyIndex) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FrameCryptorSetKeyIndexRequest other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + 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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + TrackSid = input.ReadString(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FrameCryptorSetKeyIndexResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptorSetKeyIndexResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[10]; } + } + + [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 FrameCryptorSetKeyIndexResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetKeyIndexResponse(FrameCryptorSetKeyIndexResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FrameCryptorSetKeyIndexResponse Clone() { + return new FrameCryptorSetKeyIndexResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FrameCryptorSetKeyIndexResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FrameCryptorSetKeyIndexResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FrameCryptorSetKeyIndexResponse other) { + if (other == null) { + return; + } + _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; + } + } + #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 SetSharedKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSharedKeyRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[11]; } + } + + [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 SetSharedKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSharedKeyRequest(SetSharedKeyRequest other) : this() { + sharedKey_ = other.sharedKey_; + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSharedKeyRequest Clone() { + return new SetSharedKeyRequest(this); + } + + /// Field number for the "shared_key" field. + public const int SharedKeyFieldNumber = 1; + private pb::ByteString sharedKey_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString SharedKey { + get { return sharedKey_; } + set { + sharedKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 2; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetSharedKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSharedKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SharedKey != other.SharedKey) return false; + if (KeyIndex != other.KeyIndex) 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 (SharedKey.Length != 0) hash ^= SharedKey.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (SharedKey.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(SharedKey); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (SharedKey.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(SharedKey); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (SharedKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(SharedKey); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSharedKeyRequest other) { + if (other == null) { + return; + } + if (other.SharedKey.Length != 0) { + SharedKey = other.SharedKey; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + SharedKey = input.ReadBytes(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + 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: { + SharedKey = input.ReadBytes(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetSharedKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSharedKeyResponse()); + 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.E2EeReflection.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 SetSharedKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSharedKeyResponse(SetSharedKeyResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSharedKeyResponse Clone() { + return new SetSharedKeyResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetSharedKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSharedKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSharedKeyResponse other) { + if (other == null) { + return; + } + _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; + } + } + #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 RatchetSharedKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RatchetSharedKeyRequest()); + 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.E2EeReflection.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 RatchetSharedKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetSharedKeyRequest(RatchetSharedKeyRequest other) : this() { + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetSharedKeyRequest Clone() { + return new RatchetSharedKeyRequest(this); + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 1; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RatchetSharedKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RatchetSharedKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyIndex != other.KeyIndex) 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 (KeyIndex != 0) hash ^= KeyIndex.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 (KeyIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(KeyIndex); + } + 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 (KeyIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(KeyIndex); + } + 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 (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RatchetSharedKeyRequest other) { + if (other == null) { + return; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + KeyIndex = input.ReadInt32(); + 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: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RatchetSharedKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RatchetSharedKeyResponse()); + 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.E2EeReflection.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 RatchetSharedKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetSharedKeyResponse(RatchetSharedKeyResponse other) : this() { + newKey_ = other.newKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetSharedKeyResponse Clone() { + return new RatchetSharedKeyResponse(this); + } + + /// Field number for the "new_key" field. + public const int NewKeyFieldNumber = 1; + private readonly static pb::ByteString NewKeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString newKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NewKey { + get { return newKey_ ?? NewKeyDefaultValue; } + set { + newKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "new_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNewKey { + get { return newKey_ != null; } + } + /// Clears the value of the "new_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNewKey() { + newKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RatchetSharedKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RatchetSharedKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NewKey != other.NewKey) 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 (HasNewKey) hash ^= NewKey.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 (HasNewKey) { + output.WriteRawTag(10); + output.WriteBytes(NewKey); + } + 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 (HasNewKey) { + output.WriteRawTag(10); + output.WriteBytes(NewKey); + } + 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 (HasNewKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NewKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RatchetSharedKeyResponse other) { + if (other == null) { + return; + } + if (other.HasNewKey) { + NewKey = other.NewKey; + } + _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: { + NewKey = input.ReadBytes(); + 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: { + NewKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSharedKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSharedKeyRequest()); + 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.E2EeReflection.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 GetSharedKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSharedKeyRequest(GetSharedKeyRequest other) : this() { + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSharedKeyRequest Clone() { + return new GetSharedKeyRequest(this); + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 1; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSharedKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSharedKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyIndex != other.KeyIndex) 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 (KeyIndex != 0) hash ^= KeyIndex.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 (KeyIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(KeyIndex); + } + 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 (KeyIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(KeyIndex); + } + 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 (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSharedKeyRequest other) { + if (other == null) { + return; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + KeyIndex = input.ReadInt32(); + 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: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSharedKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSharedKeyResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[16]; } + } + + [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 GetSharedKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSharedKeyResponse(GetSharedKeyResponse other) : this() { + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSharedKeyResponse Clone() { + return new GetSharedKeyResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private readonly static pb::ByteString KeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSharedKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSharedKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) 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 (HasKey) hash ^= Key.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 (HasKey) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + 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 (HasKey) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + 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 (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSharedKeyResponse other) { + if (other == null) { + return; + } + if (other.HasKey) { + Key = other.Key; + } + _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: { + Key = input.ReadBytes(); + 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: { + Key = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetKeyRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[17]; } + } + + [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 SetKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetKeyRequest(SetKeyRequest other) : this() { + participantIdentity_ = other.participantIdentity_; + key_ = other.key_; + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetKeyRequest Clone() { + return new SetKeyRequest(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 "key" field. + public const int KeyFieldNumber = 2; + private pb::ByteString key_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Key { + get { return key_; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "key_index" field. + public const int KeyIndexFieldNumber = 3; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (Key != other.Key) return false; + if (KeyIndex != other.KeyIndex) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (Key.Length != 0) hash ^= Key.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Key); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (Key.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Key); + } + if (KeyIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (Key.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetKeyRequest other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.Key.Length != 0) { + Key = other.Key; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + Key = input.ReadBytes(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + 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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + Key = input.ReadBytes(); + break; + } + case 24: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SetKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetKeyResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[18]; } + } + + [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 SetKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetKeyResponse(SetKeyResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetKeyResponse Clone() { + return new SetKeyResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetKeyResponse other) { + if (other == null) { + return; + } + _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; + } + } + #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 RatchetKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RatchetKeyRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[19]; } + } + + [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 RatchetKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetKeyRequest(RatchetKeyRequest other) : this() { + participantIdentity_ = other.participantIdentity_; + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetKeyRequest Clone() { + return new RatchetKeyRequest(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 "key_index" field. + public const int KeyIndexFieldNumber = 2; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RatchetKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RatchetKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (KeyIndex != other.KeyIndex) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RatchetKeyRequest other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + 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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RatchetKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RatchetKeyResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[20]; } + } + + [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 RatchetKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetKeyResponse(RatchetKeyResponse other) : this() { + newKey_ = other.newKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RatchetKeyResponse Clone() { + return new RatchetKeyResponse(this); + } + + /// Field number for the "new_key" field. + public const int NewKeyFieldNumber = 1; + private readonly static pb::ByteString NewKeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString newKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString NewKey { + get { return newKey_ ?? NewKeyDefaultValue; } + set { + newKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "new_key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNewKey { + get { return newKey_ != null; } + } + /// Clears the value of the "new_key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNewKey() { + newKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RatchetKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RatchetKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NewKey != other.NewKey) 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 (HasNewKey) hash ^= NewKey.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 (HasNewKey) { + output.WriteRawTag(10); + output.WriteBytes(NewKey); + } + 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 (HasNewKey) { + output.WriteRawTag(10); + output.WriteBytes(NewKey); + } + 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 (HasNewKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(NewKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RatchetKeyResponse other) { + if (other == null) { + return; + } + if (other.HasNewKey) { + NewKey = other.NewKey; + } + _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: { + NewKey = input.ReadBytes(); + 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: { + NewKey = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetKeyRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[21]; } + } + + [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 GetKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetKeyRequest(GetKeyRequest other) : this() { + participantIdentity_ = other.participantIdentity_; + keyIndex_ = other.keyIndex_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetKeyRequest Clone() { + return new GetKeyRequest(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 "key_index" field. + public const int KeyIndexFieldNumber = 2; + private int keyIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int KeyIndex { + get { return keyIndex_; } + set { + keyIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (KeyIndex != other.KeyIndex) 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 (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (KeyIndex != 0) hash ^= KeyIndex.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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (KeyIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(KeyIndex); + } + 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 (ParticipantIdentity.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (KeyIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetKeyRequest other) { + if (other == null) { + return; + } + if (other.ParticipantIdentity.Length != 0) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.KeyIndex != 0) { + KeyIndex = other.KeyIndex; + } + _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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + 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: { + ParticipantIdentity = input.ReadString(); + break; + } + case 16: { + KeyIndex = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetKeyResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[22]; } + } + + [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 GetKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetKeyResponse(GetKeyResponse other) : this() { + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetKeyResponse Clone() { + return new GetKeyResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private readonly static pb::ByteString KeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Key { + get { return key_ ?? KeyDefaultValue; } + set { + key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "key" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKey { + get { return key_ != null; } + } + /// Clears the value of the "key" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKey() { + key_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) 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 (HasKey) hash ^= Key.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 (HasKey) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + 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 (HasKey) { + output.WriteRawTag(10); + output.WriteBytes(Key); + } + 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 (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetKeyResponse other) { + if (other == null) { + return; + } + if (other.HasKey) { + Key = other.Key; + } + _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: { + Key = input.ReadBytes(); + 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: { + Key = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class E2eeRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeRequest()); + 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.E2EeReflection.Descriptor.MessageTypes[23]; } + } + + [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 E2eeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeRequest(E2eeRequest other) : this() { + roomHandle_ = other.roomHandle_; + switch (other.MessageCase) { + case MessageOneofCase.ManagerSetEnabled: + ManagerSetEnabled = other.ManagerSetEnabled.Clone(); + break; + case MessageOneofCase.ManagerGetFrameCryptors: + ManagerGetFrameCryptors = other.ManagerGetFrameCryptors.Clone(); + break; + case MessageOneofCase.CryptorSetEnabled: + CryptorSetEnabled = other.CryptorSetEnabled.Clone(); + break; + case MessageOneofCase.CryptorSetKeyIndex: + CryptorSetKeyIndex = other.CryptorSetKeyIndex.Clone(); + break; + case MessageOneofCase.SetSharedKey: + SetSharedKey = other.SetSharedKey.Clone(); + break; + case MessageOneofCase.RatchetSharedKey: + RatchetSharedKey = other.RatchetSharedKey.Clone(); + break; + case MessageOneofCase.GetSharedKey: + GetSharedKey = other.GetSharedKey.Clone(); + break; + case MessageOneofCase.SetKey: + SetKey = other.SetKey.Clone(); + break; + case MessageOneofCase.RatchetKey: + RatchetKey = other.RatchetKey.Clone(); + break; + case MessageOneofCase.GetKey: + GetKey = other.GetKey.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeRequest Clone() { + return new E2eeRequest(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 "manager_set_enabled" field. + public const int ManagerSetEnabledFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeManagerSetEnabledRequest ManagerSetEnabled { + get { return messageCase_ == MessageOneofCase.ManagerSetEnabled ? (global::LiveKit.Proto.E2eeManagerSetEnabledRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ManagerSetEnabled; + } + } + + /// Field number for the "manager_get_frame_cryptors" field. + public const int ManagerGetFrameCryptorsFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest ManagerGetFrameCryptors { + get { return messageCase_ == MessageOneofCase.ManagerGetFrameCryptors ? (global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ManagerGetFrameCryptors; + } + } + + /// Field number for the "cryptor_set_enabled" field. + public const int CryptorSetEnabledFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FrameCryptorSetEnabledRequest CryptorSetEnabled { + get { return messageCase_ == MessageOneofCase.CryptorSetEnabled ? (global::LiveKit.Proto.FrameCryptorSetEnabledRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.CryptorSetEnabled; + } + } + + /// Field number for the "cryptor_set_key_index" field. + public const int CryptorSetKeyIndexFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest CryptorSetKeyIndex { + get { return messageCase_ == MessageOneofCase.CryptorSetKeyIndex ? (global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.CryptorSetKeyIndex; + } + } + + /// Field number for the "set_shared_key" field. + public const int SetSharedKeyFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetSharedKeyRequest SetSharedKey { + get { return messageCase_ == MessageOneofCase.SetSharedKey ? (global::LiveKit.Proto.SetSharedKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetSharedKey; + } + } + + /// Field number for the "ratchet_shared_key" field. + public const int RatchetSharedKeyFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RatchetSharedKeyRequest RatchetSharedKey { + get { return messageCase_ == MessageOneofCase.RatchetSharedKey ? (global::LiveKit.Proto.RatchetSharedKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RatchetSharedKey; + } + } + + /// Field number for the "get_shared_key" field. + public const int GetSharedKeyFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetSharedKeyRequest GetSharedKey { + get { return messageCase_ == MessageOneofCase.GetSharedKey ? (global::LiveKit.Proto.GetSharedKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetSharedKey; + } + } + + /// Field number for the "set_key" field. + public const int SetKeyFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetKeyRequest SetKey { + get { return messageCase_ == MessageOneofCase.SetKey ? (global::LiveKit.Proto.SetKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetKey; + } + } + + /// Field number for the "ratchet_key" field. + public const int RatchetKeyFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RatchetKeyRequest RatchetKey { + get { return messageCase_ == MessageOneofCase.RatchetKey ? (global::LiveKit.Proto.RatchetKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RatchetKey; + } + } + + /// Field number for the "get_key" field. + public const int GetKeyFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetKeyRequest GetKey { + get { return messageCase_ == MessageOneofCase.GetKey ? (global::LiveKit.Proto.GetKeyRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetKey; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + ManagerSetEnabled = 2, + ManagerGetFrameCryptors = 3, + CryptorSetEnabled = 4, + CryptorSetKeyIndex = 5, + SetSharedKey = 6, + RatchetSharedKey = 7, + GetSharedKey = 8, + SetKey = 9, + RatchetKey = 10, + GetKey = 11, + } + 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 E2eeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomHandle != other.RoomHandle) return false; + if (!object.Equals(ManagerSetEnabled, other.ManagerSetEnabled)) return false; + if (!object.Equals(ManagerGetFrameCryptors, other.ManagerGetFrameCryptors)) return false; + if (!object.Equals(CryptorSetEnabled, other.CryptorSetEnabled)) return false; + if (!object.Equals(CryptorSetKeyIndex, other.CryptorSetKeyIndex)) return false; + if (!object.Equals(SetSharedKey, other.SetSharedKey)) return false; + if (!object.Equals(RatchetSharedKey, other.RatchetSharedKey)) return false; + if (!object.Equals(GetSharedKey, other.GetSharedKey)) return false; + if (!object.Equals(SetKey, other.SetKey)) return false; + if (!object.Equals(RatchetKey, other.RatchetKey)) return false; + if (!object.Equals(GetKey, other.GetKey)) 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.ManagerSetEnabled) hash ^= ManagerSetEnabled.GetHashCode(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) hash ^= ManagerGetFrameCryptors.GetHashCode(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) hash ^= CryptorSetEnabled.GetHashCode(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) hash ^= CryptorSetKeyIndex.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetSharedKey) hash ^= SetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) hash ^= RatchetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetSharedKey) hash ^= GetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetKey) hash ^= SetKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.RatchetKey) hash ^= RatchetKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetKey) hash ^= GetKey.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.ManagerSetEnabled) { + output.WriteRawTag(18); + output.WriteMessage(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + output.WriteRawTag(26); + output.WriteMessage(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + output.WriteRawTag(34); + output.WriteMessage(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + output.WriteRawTag(42); + output.WriteMessage(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + output.WriteRawTag(50); + output.WriteMessage(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + output.WriteRawTag(58); + output.WriteMessage(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + output.WriteRawTag(66); + output.WriteMessage(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + output.WriteRawTag(74); + output.WriteMessage(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + output.WriteRawTag(82); + output.WriteMessage(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + output.WriteRawTag(90); + output.WriteMessage(GetKey); + } + 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.ManagerSetEnabled) { + output.WriteRawTag(18); + output.WriteMessage(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + output.WriteRawTag(26); + output.WriteMessage(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + output.WriteRawTag(34); + output.WriteMessage(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + output.WriteRawTag(42); + output.WriteMessage(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + output.WriteRawTag(50); + output.WriteMessage(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + output.WriteRawTag(58); + output.WriteMessage(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + output.WriteRawTag(66); + output.WriteMessage(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + output.WriteRawTag(74); + output.WriteMessage(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + output.WriteRawTag(82); + output.WriteMessage(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + output.WriteRawTag(90); + output.WriteMessage(GetKey); + } + 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.ManagerSetEnabled) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeRequest other) { + if (other == null) { + return; + } + if (other.RoomHandle != 0UL) { + RoomHandle = other.RoomHandle; + } + switch (other.MessageCase) { + case MessageOneofCase.ManagerSetEnabled: + if (ManagerSetEnabled == null) { + ManagerSetEnabled = new global::LiveKit.Proto.E2eeManagerSetEnabledRequest(); + } + ManagerSetEnabled.MergeFrom(other.ManagerSetEnabled); + break; + case MessageOneofCase.ManagerGetFrameCryptors: + if (ManagerGetFrameCryptors == null) { + ManagerGetFrameCryptors = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest(); + } + ManagerGetFrameCryptors.MergeFrom(other.ManagerGetFrameCryptors); + break; + case MessageOneofCase.CryptorSetEnabled: + if (CryptorSetEnabled == null) { + CryptorSetEnabled = new global::LiveKit.Proto.FrameCryptorSetEnabledRequest(); + } + CryptorSetEnabled.MergeFrom(other.CryptorSetEnabled); + break; + case MessageOneofCase.CryptorSetKeyIndex: + if (CryptorSetKeyIndex == null) { + CryptorSetKeyIndex = new global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest(); + } + CryptorSetKeyIndex.MergeFrom(other.CryptorSetKeyIndex); + break; + case MessageOneofCase.SetSharedKey: + if (SetSharedKey == null) { + SetSharedKey = new global::LiveKit.Proto.SetSharedKeyRequest(); + } + SetSharedKey.MergeFrom(other.SetSharedKey); + break; + case MessageOneofCase.RatchetSharedKey: + if (RatchetSharedKey == null) { + RatchetSharedKey = new global::LiveKit.Proto.RatchetSharedKeyRequest(); + } + RatchetSharedKey.MergeFrom(other.RatchetSharedKey); + break; + case MessageOneofCase.GetSharedKey: + if (GetSharedKey == null) { + GetSharedKey = new global::LiveKit.Proto.GetSharedKeyRequest(); + } + GetSharedKey.MergeFrom(other.GetSharedKey); + break; + case MessageOneofCase.SetKey: + if (SetKey == null) { + SetKey = new global::LiveKit.Proto.SetKeyRequest(); + } + SetKey.MergeFrom(other.SetKey); + break; + case MessageOneofCase.RatchetKey: + if (RatchetKey == null) { + RatchetKey = new global::LiveKit.Proto.RatchetKeyRequest(); + } + RatchetKey.MergeFrom(other.RatchetKey); + break; + case MessageOneofCase.GetKey: + if (GetKey == null) { + GetKey = new global::LiveKit.Proto.GetKeyRequest(); + } + GetKey.MergeFrom(other.GetKey); + 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.E2eeManagerSetEnabledRequest subBuilder = new global::LiveKit.Proto.E2eeManagerSetEnabledRequest(); + if (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + subBuilder.MergeFrom(ManagerSetEnabled); + } + input.ReadMessage(subBuilder); + ManagerSetEnabled = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest subBuilder = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + subBuilder.MergeFrom(ManagerGetFrameCryptors); + } + input.ReadMessage(subBuilder); + ManagerGetFrameCryptors = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.FrameCryptorSetEnabledRequest subBuilder = new global::LiveKit.Proto.FrameCryptorSetEnabledRequest(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + subBuilder.MergeFrom(CryptorSetEnabled); + } + input.ReadMessage(subBuilder); + CryptorSetEnabled = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest subBuilder = new global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + subBuilder.MergeFrom(CryptorSetKeyIndex); + } + input.ReadMessage(subBuilder); + CryptorSetKeyIndex = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.SetSharedKeyRequest subBuilder = new global::LiveKit.Proto.SetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.SetSharedKey) { + subBuilder.MergeFrom(SetSharedKey); + } + input.ReadMessage(subBuilder); + SetSharedKey = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.RatchetSharedKeyRequest subBuilder = new global::LiveKit.Proto.RatchetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + subBuilder.MergeFrom(RatchetSharedKey); + } + input.ReadMessage(subBuilder); + RatchetSharedKey = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.GetSharedKeyRequest subBuilder = new global::LiveKit.Proto.GetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.GetSharedKey) { + subBuilder.MergeFrom(GetSharedKey); + } + input.ReadMessage(subBuilder); + GetSharedKey = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.SetKeyRequest subBuilder = new global::LiveKit.Proto.SetKeyRequest(); + if (messageCase_ == MessageOneofCase.SetKey) { + subBuilder.MergeFrom(SetKey); + } + input.ReadMessage(subBuilder); + SetKey = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.RatchetKeyRequest subBuilder = new global::LiveKit.Proto.RatchetKeyRequest(); + if (messageCase_ == MessageOneofCase.RatchetKey) { + subBuilder.MergeFrom(RatchetKey); + } + input.ReadMessage(subBuilder); + RatchetKey = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.GetKeyRequest subBuilder = new global::LiveKit.Proto.GetKeyRequest(); + if (messageCase_ == MessageOneofCase.GetKey) { + subBuilder.MergeFrom(GetKey); + } + input.ReadMessage(subBuilder); + GetKey = 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.E2eeManagerSetEnabledRequest subBuilder = new global::LiveKit.Proto.E2eeManagerSetEnabledRequest(); + if (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + subBuilder.MergeFrom(ManagerSetEnabled); + } + input.ReadMessage(subBuilder); + ManagerSetEnabled = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest subBuilder = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsRequest(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + subBuilder.MergeFrom(ManagerGetFrameCryptors); + } + input.ReadMessage(subBuilder); + ManagerGetFrameCryptors = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.FrameCryptorSetEnabledRequest subBuilder = new global::LiveKit.Proto.FrameCryptorSetEnabledRequest(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + subBuilder.MergeFrom(CryptorSetEnabled); + } + input.ReadMessage(subBuilder); + CryptorSetEnabled = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest subBuilder = new global::LiveKit.Proto.FrameCryptorSetKeyIndexRequest(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + subBuilder.MergeFrom(CryptorSetKeyIndex); + } + input.ReadMessage(subBuilder); + CryptorSetKeyIndex = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.SetSharedKeyRequest subBuilder = new global::LiveKit.Proto.SetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.SetSharedKey) { + subBuilder.MergeFrom(SetSharedKey); + } + input.ReadMessage(subBuilder); + SetSharedKey = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.RatchetSharedKeyRequest subBuilder = new global::LiveKit.Proto.RatchetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + subBuilder.MergeFrom(RatchetSharedKey); + } + input.ReadMessage(subBuilder); + RatchetSharedKey = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.GetSharedKeyRequest subBuilder = new global::LiveKit.Proto.GetSharedKeyRequest(); + if (messageCase_ == MessageOneofCase.GetSharedKey) { + subBuilder.MergeFrom(GetSharedKey); + } + input.ReadMessage(subBuilder); + GetSharedKey = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.SetKeyRequest subBuilder = new global::LiveKit.Proto.SetKeyRequest(); + if (messageCase_ == MessageOneofCase.SetKey) { + subBuilder.MergeFrom(SetKey); + } + input.ReadMessage(subBuilder); + SetKey = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.RatchetKeyRequest subBuilder = new global::LiveKit.Proto.RatchetKeyRequest(); + if (messageCase_ == MessageOneofCase.RatchetKey) { + subBuilder.MergeFrom(RatchetKey); + } + input.ReadMessage(subBuilder); + RatchetKey = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.GetKeyRequest subBuilder = new global::LiveKit.Proto.GetKeyRequest(); + if (messageCase_ == MessageOneofCase.GetKey) { + subBuilder.MergeFrom(GetKey); + } + input.ReadMessage(subBuilder); + GetKey = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class E2eeResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeResponse()); + 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.E2EeReflection.Descriptor.MessageTypes[24]; } + } + + [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 E2eeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeResponse(E2eeResponse other) : this() { + switch (other.MessageCase) { + case MessageOneofCase.ManagerSetEnabled: + ManagerSetEnabled = other.ManagerSetEnabled.Clone(); + break; + case MessageOneofCase.ManagerGetFrameCryptors: + ManagerGetFrameCryptors = other.ManagerGetFrameCryptors.Clone(); + break; + case MessageOneofCase.CryptorSetEnabled: + CryptorSetEnabled = other.CryptorSetEnabled.Clone(); + break; + case MessageOneofCase.CryptorSetKeyIndex: + CryptorSetKeyIndex = other.CryptorSetKeyIndex.Clone(); + break; + case MessageOneofCase.SetSharedKey: + SetSharedKey = other.SetSharedKey.Clone(); + break; + case MessageOneofCase.RatchetSharedKey: + RatchetSharedKey = other.RatchetSharedKey.Clone(); + break; + case MessageOneofCase.GetSharedKey: + GetSharedKey = other.GetSharedKey.Clone(); + break; + case MessageOneofCase.SetKey: + SetKey = other.SetKey.Clone(); + break; + case MessageOneofCase.RatchetKey: + RatchetKey = other.RatchetKey.Clone(); + break; + case MessageOneofCase.GetKey: + GetKey = other.GetKey.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public E2eeResponse Clone() { + return new E2eeResponse(this); + } + + /// Field number for the "manager_set_enabled" field. + public const int ManagerSetEnabledFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeManagerSetEnabledResponse ManagerSetEnabled { + get { return messageCase_ == MessageOneofCase.ManagerSetEnabled ? (global::LiveKit.Proto.E2eeManagerSetEnabledResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ManagerSetEnabled; + } + } + + /// Field number for the "manager_get_frame_cryptors" field. + public const int ManagerGetFrameCryptorsFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse ManagerGetFrameCryptors { + get { return messageCase_ == MessageOneofCase.ManagerGetFrameCryptors ? (global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ManagerGetFrameCryptors; + } + } + + /// Field number for the "cryptor_set_enabled" field. + public const int CryptorSetEnabledFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FrameCryptorSetEnabledResponse CryptorSetEnabled { + get { return messageCase_ == MessageOneofCase.CryptorSetEnabled ? (global::LiveKit.Proto.FrameCryptorSetEnabledResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.CryptorSetEnabled; + } + } + + /// Field number for the "cryptor_set_key_index" field. + public const int CryptorSetKeyIndexFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse CryptorSetKeyIndex { + get { return messageCase_ == MessageOneofCase.CryptorSetKeyIndex ? (global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.CryptorSetKeyIndex; + } + } + + /// Field number for the "set_shared_key" field. + public const int SetSharedKeyFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetSharedKeyResponse SetSharedKey { + get { return messageCase_ == MessageOneofCase.SetSharedKey ? (global::LiveKit.Proto.SetSharedKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetSharedKey; + } + } + + /// Field number for the "ratchet_shared_key" field. + public const int RatchetSharedKeyFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RatchetSharedKeyResponse RatchetSharedKey { + get { return messageCase_ == MessageOneofCase.RatchetSharedKey ? (global::LiveKit.Proto.RatchetSharedKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RatchetSharedKey; + } + } + + /// Field number for the "get_shared_key" field. + public const int GetSharedKeyFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetSharedKeyResponse GetSharedKey { + get { return messageCase_ == MessageOneofCase.GetSharedKey ? (global::LiveKit.Proto.GetSharedKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetSharedKey; + } + } + + /// Field number for the "set_key" field. + public const int SetKeyFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetKeyResponse SetKey { + get { return messageCase_ == MessageOneofCase.SetKey ? (global::LiveKit.Proto.SetKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetKey; + } + } + + /// Field number for the "ratchet_key" field. + public const int RatchetKeyFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RatchetKeyResponse RatchetKey { + get { return messageCase_ == MessageOneofCase.RatchetKey ? (global::LiveKit.Proto.RatchetKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RatchetKey; + } + } + + /// Field number for the "get_key" field. + public const int GetKeyFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetKeyResponse GetKey { + get { return messageCase_ == MessageOneofCase.GetKey ? (global::LiveKit.Proto.GetKeyResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetKey; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + ManagerSetEnabled = 1, + ManagerGetFrameCryptors = 2, + CryptorSetEnabled = 3, + CryptorSetKeyIndex = 4, + SetSharedKey = 5, + RatchetSharedKey = 6, + GetSharedKey = 7, + SetKey = 8, + RatchetKey = 9, + GetKey = 10, + } + 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 E2eeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(E2eeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ManagerSetEnabled, other.ManagerSetEnabled)) return false; + if (!object.Equals(ManagerGetFrameCryptors, other.ManagerGetFrameCryptors)) return false; + if (!object.Equals(CryptorSetEnabled, other.CryptorSetEnabled)) return false; + if (!object.Equals(CryptorSetKeyIndex, other.CryptorSetKeyIndex)) return false; + if (!object.Equals(SetSharedKey, other.SetSharedKey)) return false; + if (!object.Equals(RatchetSharedKey, other.RatchetSharedKey)) return false; + if (!object.Equals(GetSharedKey, other.GetSharedKey)) return false; + if (!object.Equals(SetKey, other.SetKey)) return false; + if (!object.Equals(RatchetKey, other.RatchetKey)) return false; + if (!object.Equals(GetKey, other.GetKey)) 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 (messageCase_ == MessageOneofCase.ManagerSetEnabled) hash ^= ManagerSetEnabled.GetHashCode(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) hash ^= ManagerGetFrameCryptors.GetHashCode(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) hash ^= CryptorSetEnabled.GetHashCode(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) hash ^= CryptorSetKeyIndex.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetSharedKey) hash ^= SetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) hash ^= RatchetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetSharedKey) hash ^= GetSharedKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.SetKey) hash ^= SetKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.RatchetKey) hash ^= RatchetKey.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetKey) hash ^= GetKey.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 (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + output.WriteRawTag(10); + output.WriteMessage(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + output.WriteRawTag(18); + output.WriteMessage(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + output.WriteRawTag(26); + output.WriteMessage(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + output.WriteRawTag(34); + output.WriteMessage(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + output.WriteRawTag(42); + output.WriteMessage(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + output.WriteRawTag(50); + output.WriteMessage(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + output.WriteRawTag(58); + output.WriteMessage(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + output.WriteRawTag(66); + output.WriteMessage(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + output.WriteRawTag(74); + output.WriteMessage(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + output.WriteRawTag(82); + output.WriteMessage(GetKey); + } + 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 (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + output.WriteRawTag(10); + output.WriteMessage(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + output.WriteRawTag(18); + output.WriteMessage(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + output.WriteRawTag(26); + output.WriteMessage(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + output.WriteRawTag(34); + output.WriteMessage(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + output.WriteRawTag(42); + output.WriteMessage(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + output.WriteRawTag(50); + output.WriteMessage(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + output.WriteRawTag(58); + output.WriteMessage(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + output.WriteRawTag(66); + output.WriteMessage(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + output.WriteRawTag(74); + output.WriteMessage(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + output.WriteRawTag(82); + output.WriteMessage(GetKey); + } + 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 (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ManagerSetEnabled); + } + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ManagerGetFrameCryptors); + } + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CryptorSetEnabled); + } + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CryptorSetKeyIndex); + } + if (messageCase_ == MessageOneofCase.SetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSharedKey); + } + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RatchetSharedKey); + } + if (messageCase_ == MessageOneofCase.GetSharedKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSharedKey); + } + if (messageCase_ == MessageOneofCase.SetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetKey); + } + if (messageCase_ == MessageOneofCase.RatchetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RatchetKey); + } + if (messageCase_ == MessageOneofCase.GetKey) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(E2eeResponse other) { + if (other == null) { + return; + } + switch (other.MessageCase) { + case MessageOneofCase.ManagerSetEnabled: + if (ManagerSetEnabled == null) { + ManagerSetEnabled = new global::LiveKit.Proto.E2eeManagerSetEnabledResponse(); + } + ManagerSetEnabled.MergeFrom(other.ManagerSetEnabled); + break; + case MessageOneofCase.ManagerGetFrameCryptors: + if (ManagerGetFrameCryptors == null) { + ManagerGetFrameCryptors = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse(); + } + ManagerGetFrameCryptors.MergeFrom(other.ManagerGetFrameCryptors); + break; + case MessageOneofCase.CryptorSetEnabled: + if (CryptorSetEnabled == null) { + CryptorSetEnabled = new global::LiveKit.Proto.FrameCryptorSetEnabledResponse(); + } + CryptorSetEnabled.MergeFrom(other.CryptorSetEnabled); + break; + case MessageOneofCase.CryptorSetKeyIndex: + if (CryptorSetKeyIndex == null) { + CryptorSetKeyIndex = new global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse(); + } + CryptorSetKeyIndex.MergeFrom(other.CryptorSetKeyIndex); + break; + case MessageOneofCase.SetSharedKey: + if (SetSharedKey == null) { + SetSharedKey = new global::LiveKit.Proto.SetSharedKeyResponse(); + } + SetSharedKey.MergeFrom(other.SetSharedKey); + break; + case MessageOneofCase.RatchetSharedKey: + if (RatchetSharedKey == null) { + RatchetSharedKey = new global::LiveKit.Proto.RatchetSharedKeyResponse(); + } + RatchetSharedKey.MergeFrom(other.RatchetSharedKey); + break; + case MessageOneofCase.GetSharedKey: + if (GetSharedKey == null) { + GetSharedKey = new global::LiveKit.Proto.GetSharedKeyResponse(); + } + GetSharedKey.MergeFrom(other.GetSharedKey); + break; + case MessageOneofCase.SetKey: + if (SetKey == null) { + SetKey = new global::LiveKit.Proto.SetKeyResponse(); + } + SetKey.MergeFrom(other.SetKey); + break; + case MessageOneofCase.RatchetKey: + if (RatchetKey == null) { + RatchetKey = new global::LiveKit.Proto.RatchetKeyResponse(); + } + RatchetKey.MergeFrom(other.RatchetKey); + break; + case MessageOneofCase.GetKey: + if (GetKey == null) { + GetKey = new global::LiveKit.Proto.GetKeyResponse(); + } + GetKey.MergeFrom(other.GetKey); + 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 10: { + global::LiveKit.Proto.E2eeManagerSetEnabledResponse subBuilder = new global::LiveKit.Proto.E2eeManagerSetEnabledResponse(); + if (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + subBuilder.MergeFrom(ManagerSetEnabled); + } + input.ReadMessage(subBuilder); + ManagerSetEnabled = subBuilder; + break; + } + case 18: { + global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse subBuilder = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + subBuilder.MergeFrom(ManagerGetFrameCryptors); + } + input.ReadMessage(subBuilder); + ManagerGetFrameCryptors = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.FrameCryptorSetEnabledResponse subBuilder = new global::LiveKit.Proto.FrameCryptorSetEnabledResponse(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + subBuilder.MergeFrom(CryptorSetEnabled); + } + input.ReadMessage(subBuilder); + CryptorSetEnabled = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse subBuilder = new global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + subBuilder.MergeFrom(CryptorSetKeyIndex); + } + input.ReadMessage(subBuilder); + CryptorSetKeyIndex = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.SetSharedKeyResponse subBuilder = new global::LiveKit.Proto.SetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.SetSharedKey) { + subBuilder.MergeFrom(SetSharedKey); + } + input.ReadMessage(subBuilder); + SetSharedKey = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.RatchetSharedKeyResponse subBuilder = new global::LiveKit.Proto.RatchetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + subBuilder.MergeFrom(RatchetSharedKey); + } + input.ReadMessage(subBuilder); + RatchetSharedKey = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.GetSharedKeyResponse subBuilder = new global::LiveKit.Proto.GetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.GetSharedKey) { + subBuilder.MergeFrom(GetSharedKey); + } + input.ReadMessage(subBuilder); + GetSharedKey = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.SetKeyResponse subBuilder = new global::LiveKit.Proto.SetKeyResponse(); + if (messageCase_ == MessageOneofCase.SetKey) { + subBuilder.MergeFrom(SetKey); + } + input.ReadMessage(subBuilder); + SetKey = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.RatchetKeyResponse subBuilder = new global::LiveKit.Proto.RatchetKeyResponse(); + if (messageCase_ == MessageOneofCase.RatchetKey) { + subBuilder.MergeFrom(RatchetKey); + } + input.ReadMessage(subBuilder); + RatchetKey = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.GetKeyResponse subBuilder = new global::LiveKit.Proto.GetKeyResponse(); + if (messageCase_ == MessageOneofCase.GetKey) { + subBuilder.MergeFrom(GetKey); + } + input.ReadMessage(subBuilder); + GetKey = 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 10: { + global::LiveKit.Proto.E2eeManagerSetEnabledResponse subBuilder = new global::LiveKit.Proto.E2eeManagerSetEnabledResponse(); + if (messageCase_ == MessageOneofCase.ManagerSetEnabled) { + subBuilder.MergeFrom(ManagerSetEnabled); + } + input.ReadMessage(subBuilder); + ManagerSetEnabled = subBuilder; + break; + } + case 18: { + global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse subBuilder = new global::LiveKit.Proto.E2eeManagerGetFrameCryptorsResponse(); + if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) { + subBuilder.MergeFrom(ManagerGetFrameCryptors); + } + input.ReadMessage(subBuilder); + ManagerGetFrameCryptors = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.FrameCryptorSetEnabledResponse subBuilder = new global::LiveKit.Proto.FrameCryptorSetEnabledResponse(); + if (messageCase_ == MessageOneofCase.CryptorSetEnabled) { + subBuilder.MergeFrom(CryptorSetEnabled); + } + input.ReadMessage(subBuilder); + CryptorSetEnabled = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse subBuilder = new global::LiveKit.Proto.FrameCryptorSetKeyIndexResponse(); + if (messageCase_ == MessageOneofCase.CryptorSetKeyIndex) { + subBuilder.MergeFrom(CryptorSetKeyIndex); + } + input.ReadMessage(subBuilder); + CryptorSetKeyIndex = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.SetSharedKeyResponse subBuilder = new global::LiveKit.Proto.SetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.SetSharedKey) { + subBuilder.MergeFrom(SetSharedKey); + } + input.ReadMessage(subBuilder); + SetSharedKey = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.RatchetSharedKeyResponse subBuilder = new global::LiveKit.Proto.RatchetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.RatchetSharedKey) { + subBuilder.MergeFrom(RatchetSharedKey); + } + input.ReadMessage(subBuilder); + RatchetSharedKey = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.GetSharedKeyResponse subBuilder = new global::LiveKit.Proto.GetSharedKeyResponse(); + if (messageCase_ == MessageOneofCase.GetSharedKey) { + subBuilder.MergeFrom(GetSharedKey); + } + input.ReadMessage(subBuilder); + GetSharedKey = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.SetKeyResponse subBuilder = new global::LiveKit.Proto.SetKeyResponse(); + if (messageCase_ == MessageOneofCase.SetKey) { + subBuilder.MergeFrom(SetKey); + } + input.ReadMessage(subBuilder); + SetKey = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.RatchetKeyResponse subBuilder = new global::LiveKit.Proto.RatchetKeyResponse(); + if (messageCase_ == MessageOneofCase.RatchetKey) { + subBuilder.MergeFrom(RatchetKey); + } + input.ReadMessage(subBuilder); + RatchetKey = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.GetKeyResponse subBuilder = new global::LiveKit.Proto.GetKeyResponse(); + if (messageCase_ == MessageOneofCase.GetKey) { + subBuilder.MergeFrom(GetKey); + } + input.ReadMessage(subBuilder); + GetKey = subBuilder; + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Runtime/Scripts/Proto/E2Ee.cs.meta b/Runtime/Scripts/Proto/E2Ee.cs.meta new file mode 100644 index 0000000..a51e3fc --- /dev/null +++ b/Runtime/Scripts/Proto/E2Ee.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3cc694437be331a439e6a932ab0c7025 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Scripts/Proto/Ffi.cs b/Runtime/Scripts/Proto/Ffi.cs index 766673d..c657048 100644 --- a/Runtime/Scripts/Proto/Ffi.cs +++ b/Runtime/Scripts/Proto/Ffi.cs @@ -24,108 +24,159 @@ public static partial class FfiReflection { static FfiReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "CglmZmkucHJvdG8SB2xpdmVraXQaDGhhbmRsZS5wcm90bxoLdHJhY2sucHJv", - "dG8aCnJvb20ucHJvdG8aEXBhcnRpY2lwYW50LnByb3RvGhF2aWRlb19mcmFt", - "ZS5wcm90bxoRYXVkaW9fZnJhbWUucHJvdG8ikQkKCkZGSVJlcXVlc3QSMAoK", - "aW5pdGlhbGl6ZRgBIAEoCzIaLmxpdmVraXQuSW5pdGlhbGl6ZVJlcXVlc3RI", - "ABIqCgdkaXNwb3NlGAIgASgLMhcubGl2ZWtpdC5EaXNwb3NlUmVxdWVzdEgA", - "EioKB2Nvbm5lY3QYAyABKAsyFy5saXZla2l0LkNvbm5lY3RSZXF1ZXN0SAAS", - "MAoKZGlzY29ubmVjdBgEIAEoCzIaLmxpdmVraXQuRGlzY29ubmVjdFJlcXVl", - "c3RIABI1Cg1wdWJsaXNoX3RyYWNrGAUgASgLMhwubGl2ZWtpdC5QdWJsaXNo", - "VHJhY2tSZXF1ZXN0SAASOQoPdW5wdWJsaXNoX3RyYWNrGAYgASgLMh4ubGl2", - "ZWtpdC5VbnB1Ymxpc2hUcmFja1JlcXVlc3RIABI+ChJjcmVhdGVfdmlkZW9f", - "dHJhY2sYByABKAsyIC5saXZla2l0LkNyZWF0ZVZpZGVvVHJhY2tSZXF1ZXN0", - "SAASPgoSY3JlYXRlX2F1ZGlvX3RyYWNrGAggASgLMiAubGl2ZWtpdC5DcmVh", - "dGVBdWRpb1RyYWNrUmVxdWVzdEgAEj4KEmFsbG9jX3ZpZGVvX2J1ZmZlchgJ", - "IAEoCzIgLmxpdmVraXQuQWxsb2NWaWRlb0J1ZmZlclJlcXVlc3RIABI6ChBu", - "ZXdfdmlkZW9fc3RyZWFtGAogASgLMh4ubGl2ZWtpdC5OZXdWaWRlb1N0cmVh", - "bVJlcXVlc3RIABI6ChBuZXdfdmlkZW9fc291cmNlGAsgASgLMh4ubGl2ZWtp", - "dC5OZXdWaWRlb1NvdXJjZVJlcXVlc3RIABJAChNjYXB0dXJlX3ZpZGVvX2Zy", - "YW1lGAwgASgLMiEubGl2ZWtpdC5DYXB0dXJlVmlkZW9GcmFtZVJlcXVlc3RI", - "ABIpCgd0b19pNDIwGA0gASgLMhYubGl2ZWtpdC5Ub0k0MjBSZXF1ZXN0SAAS", - "KQoHdG9fYXJnYhgOIAEoCzIWLmxpdmVraXQuVG9BUkdCUmVxdWVzdEgAEj4K", - "EmFsbG9jX2F1ZGlvX2J1ZmZlchgPIAEoCzIgLmxpdmVraXQuQWxsb2NBdWRp", - "b0J1ZmZlclJlcXVlc3RIABI6ChBuZXdfYXVkaW9fc3RyZWFtGBAgASgLMh4u", - "bGl2ZWtpdC5OZXdBdWRpb1N0cmVhbVJlcXVlc3RIABI6ChBuZXdfYXVkaW9f", - "c291cmNlGBEgASgLMh4ubGl2ZWtpdC5OZXdBdWRpb1NvdXJjZVJlcXVlc3RI", - "ABJAChNjYXB0dXJlX2F1ZGlvX2ZyYW1lGBIgASgLMiEubGl2ZWtpdC5DYXB0", - "dXJlQXVkaW9GcmFtZVJlcXVlc3RIABJAChNuZXdfYXVkaW9fcmVzYW1wbGVy", - "GBMgASgLMiEubGl2ZWtpdC5OZXdBdWRpb1Jlc2FtcGxlclJlcXVlc3RIABI+", - "ChJyZW1peF9hbmRfcmVzYW1wbGUYFCABKAsyIC5saXZla2l0LlJlbWl4QW5k", - "UmVzYW1wbGVSZXF1ZXN0SABCCQoHbWVzc2FnZSKmCQoLRkZJUmVzcG9uc2US", - "MQoKaW5pdGlhbGl6ZRgBIAEoCzIbLmxpdmVraXQuSW5pdGlhbGl6ZVJlc3Bv", - "bnNlSAASKwoHZGlzcG9zZRgCIAEoCzIYLmxpdmVraXQuRGlzcG9zZVJlc3Bv", - "bnNlSAASKwoHY29ubmVjdBgDIAEoCzIYLmxpdmVraXQuQ29ubmVjdFJlc3Bv", - "bnNlSAASMQoKZGlzY29ubmVjdBgEIAEoCzIbLmxpdmVraXQuRGlzY29ubmVj", - "dFJlc3BvbnNlSAASNgoNcHVibGlzaF90cmFjaxgFIAEoCzIdLmxpdmVraXQu", - "UHVibGlzaFRyYWNrUmVzcG9uc2VIABI6Cg91bnB1Ymxpc2hfdHJhY2sYBiAB", - "KAsyHy5saXZla2l0LlVucHVibGlzaFRyYWNrUmVzcG9uc2VIABI/ChJjcmVh", - "dGVfdmlkZW9fdHJhY2sYByABKAsyIS5saXZla2l0LkNyZWF0ZVZpZGVvVHJh", - "Y2tSZXNwb25zZUgAEj8KEmNyZWF0ZV9hdWRpb190cmFjaxgIIAEoCzIhLmxp", - "dmVraXQuQ3JlYXRlQXVkaW9UcmFja1Jlc3BvbnNlSAASPwoSYWxsb2Nfdmlk", - "ZW9fYnVmZmVyGAkgASgLMiEubGl2ZWtpdC5BbGxvY1ZpZGVvQnVmZmVyUmVz", - "cG9uc2VIABI7ChBuZXdfdmlkZW9fc3RyZWFtGAogASgLMh8ubGl2ZWtpdC5O", - "ZXdWaWRlb1N0cmVhbVJlc3BvbnNlSAASOwoQbmV3X3ZpZGVvX3NvdXJjZRgL", - "IAEoCzIfLmxpdmVraXQuTmV3VmlkZW9Tb3VyY2VSZXNwb25zZUgAEkEKE2Nh", - "cHR1cmVfdmlkZW9fZnJhbWUYDCABKAsyIi5saXZla2l0LkNhcHR1cmVWaWRl", - "b0ZyYW1lUmVzcG9uc2VIABIqCgd0b19pNDIwGA0gASgLMhcubGl2ZWtpdC5U", - "b0k0MjBSZXNwb25zZUgAEioKB3RvX2FyZ2IYDiABKAsyFy5saXZla2l0LlRv", - "QVJHQlJlc3BvbnNlSAASPwoSYWxsb2NfYXVkaW9fYnVmZmVyGA8gASgLMiEu", - "bGl2ZWtpdC5BbGxvY0F1ZGlvQnVmZmVyUmVzcG9uc2VIABI7ChBuZXdfYXVk", - "aW9fc3RyZWFtGBAgASgLMh8ubGl2ZWtpdC5OZXdBdWRpb1N0cmVhbVJlc3Bv", - "bnNlSAASOwoQbmV3X2F1ZGlvX3NvdXJjZRgRIAEoCzIfLmxpdmVraXQuTmV3", - "QXVkaW9Tb3VyY2VSZXNwb25zZUgAEkEKE2NhcHR1cmVfYXVkaW9fZnJhbWUY", - "EiABKAsyIi5saXZla2l0LkNhcHR1cmVBdWRpb0ZyYW1lUmVzcG9uc2VIABJB", - "ChNuZXdfYXVkaW9fcmVzYW1wbGVyGBMgASgLMiIubGl2ZWtpdC5OZXdBdWRp", - "b1Jlc2FtcGxlclJlc3BvbnNlSAASPwoScmVtaXhfYW5kX3Jlc2FtcGxlGBQg", - "ASgLMiEubGl2ZWtpdC5SZW1peEFuZFJlc2FtcGxlUmVzcG9uc2VIAEIJCgdt", - "ZXNzYWdlIqcDCghGRklFdmVudBIoCgpyb29tX2V2ZW50GAEgASgLMhIubGl2", - "ZWtpdC5Sb29tRXZlbnRIABIqCgt0cmFja19ldmVudBgCIAEoCzITLmxpdmVr", - "aXQuVHJhY2tFdmVudEgAEjYKEXBhcnRpY2lwYW50X2V2ZW50GAMgASgLMhku", - "bGl2ZWtpdC5QYXJ0aWNpcGFudEV2ZW50SAASNwoSdmlkZW9fc3RyZWFtX2V2", - "ZW50GAQgASgLMhkubGl2ZWtpdC5WaWRlb1N0cmVhbUV2ZW50SAASNwoSYXVk", - "aW9fc3RyZWFtX2V2ZW50GAUgASgLMhkubGl2ZWtpdC5BdWRpb1N0cmVhbUV2", - "ZW50SAASKwoHY29ubmVjdBgGIAEoCzIYLmxpdmVraXQuQ29ubmVjdENhbGxi", - "YWNrSAASKwoHZGlzcG9zZRgHIAEoCzIYLmxpdmVraXQuRGlzcG9zZUNhbGxi", - "YWNrSAASNgoNcHVibGlzaF90cmFjaxgIIAEoCzIdLmxpdmVraXQuUHVibGlz", - "aFRyYWNrQ2FsbGJhY2tIAEIJCgdtZXNzYWdlIi8KEUluaXRpYWxpemVSZXF1", - "ZXN0EhoKEmV2ZW50X2NhbGxiYWNrX3B0chgBIAEoBCIUChJJbml0aWFsaXpl", - "UmVzcG9uc2UiHwoORGlzcG9zZVJlcXVlc3QSDQoFYXN5bmMYASABKAgiSgoP", - "RGlzcG9zZVJlc3BvbnNlEioKCGFzeW5jX2lkGAEgASgLMhMubGl2ZWtpdC5G", - "RklBc3luY0lkSACIAQFCCwoJX2FzeW5jX2lkIjgKD0Rpc3Bvc2VDYWxsYmFj", - "axIlCghhc3luY19pZBgBIAEoCzITLmxpdmVraXQuRkZJQXN5bmNJZEIQqgIN", - "TGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "CglmZmkucHJvdG8SDWxpdmVraXQucHJvdG8aCmUyZWUucHJvdG8aC3RyYWNr", + "LnByb3RvGgpyb29tLnByb3RvGhF2aWRlb19mcmFtZS5wcm90bxoRYXVkaW9f", + "ZnJhbWUucHJvdG8igA0KCkZmaVJlcXVlc3QSMAoHZGlzcG9zZRgCIAEoCzId", + "LmxpdmVraXQucHJvdG8uRGlzcG9zZVJlcXVlc3RIABIwCgdjb25uZWN0GAMg", + "ASgLMh0ubGl2ZWtpdC5wcm90by5Db25uZWN0UmVxdWVzdEgAEjYKCmRpc2Nv", + "bm5lY3QYBCABKAsyIC5saXZla2l0LnByb3RvLkRpc2Nvbm5lY3RSZXF1ZXN0", + "SAASOwoNcHVibGlzaF90cmFjaxgFIAEoCzIiLmxpdmVraXQucHJvdG8uUHVi", + "bGlzaFRyYWNrUmVxdWVzdEgAEj8KD3VucHVibGlzaF90cmFjaxgGIAEoCzIk", + "LmxpdmVraXQucHJvdG8uVW5wdWJsaXNoVHJhY2tSZXF1ZXN0SAASOQoMcHVi", + "bGlzaF9kYXRhGAcgASgLMiEubGl2ZWtpdC5wcm90by5QdWJsaXNoRGF0YVJl", + "cXVlc3RIABI9Cg5zZXRfc3Vic2NyaWJlZBgIIAEoCzIjLmxpdmVraXQucHJv", + "dG8uU2V0U3Vic2NyaWJlZFJlcXVlc3RIABJKChV1cGRhdGVfbG9jYWxfbWV0", + "YWRhdGEYCSABKAsyKS5saXZla2l0LnByb3RvLlVwZGF0ZUxvY2FsTWV0YWRh", + "dGFSZXF1ZXN0SAASQgoRdXBkYXRlX2xvY2FsX25hbWUYCiABKAsyJS5saXZl", + "a2l0LnByb3RvLlVwZGF0ZUxvY2FsTmFtZVJlcXVlc3RIABJCChFnZXRfc2Vz", + "c2lvbl9zdGF0cxgLIAEoCzIlLmxpdmVraXQucHJvdG8uR2V0U2Vzc2lvblN0", + "YXRzUmVxdWVzdEgAEkQKEmNyZWF0ZV92aWRlb190cmFjaxgMIAEoCzImLmxp", + "dmVraXQucHJvdG8uQ3JlYXRlVmlkZW9UcmFja1JlcXVlc3RIABJEChJjcmVh", + "dGVfYXVkaW9fdHJhY2sYDSABKAsyJi5saXZla2l0LnByb3RvLkNyZWF0ZUF1", + "ZGlvVHJhY2tSZXF1ZXN0SAASMwoJZ2V0X3N0YXRzGA4gASgLMh4ubGl2ZWtp", + "dC5wcm90by5HZXRTdGF0c1JlcXVlc3RIABJEChJhbGxvY192aWRlb19idWZm", + "ZXIYDyABKAsyJi5saXZla2l0LnByb3RvLkFsbG9jVmlkZW9CdWZmZXJSZXF1", + "ZXN0SAASQAoQbmV3X3ZpZGVvX3N0cmVhbRgQIAEoCzIkLmxpdmVraXQucHJv", + "dG8uTmV3VmlkZW9TdHJlYW1SZXF1ZXN0SAASQAoQbmV3X3ZpZGVvX3NvdXJj", + "ZRgRIAEoCzIkLmxpdmVraXQucHJvdG8uTmV3VmlkZW9Tb3VyY2VSZXF1ZXN0", + "SAASRgoTY2FwdHVyZV92aWRlb19mcmFtZRgSIAEoCzInLmxpdmVraXQucHJv", + "dG8uQ2FwdHVyZVZpZGVvRnJhbWVSZXF1ZXN0SAASLwoHdG9faTQyMBgTIAEo", + "CzIcLmxpdmVraXQucHJvdG8uVG9JNDIwUmVxdWVzdEgAEi8KB3RvX2FyZ2IY", + "FCABKAsyHC5saXZla2l0LnByb3RvLlRvQXJnYlJlcXVlc3RIABJEChJhbGxv", + "Y19hdWRpb19idWZmZXIYFSABKAsyJi5saXZla2l0LnByb3RvLkFsbG9jQXVk", + "aW9CdWZmZXJSZXF1ZXN0SAASQAoQbmV3X2F1ZGlvX3N0cmVhbRgWIAEoCzIk", + "LmxpdmVraXQucHJvdG8uTmV3QXVkaW9TdHJlYW1SZXF1ZXN0SAASQAoQbmV3", + "X2F1ZGlvX3NvdXJjZRgXIAEoCzIkLmxpdmVraXQucHJvdG8uTmV3QXVkaW9T", + "b3VyY2VSZXF1ZXN0SAASRgoTY2FwdHVyZV9hdWRpb19mcmFtZRgYIAEoCzIn", + "LmxpdmVraXQucHJvdG8uQ2FwdHVyZUF1ZGlvRnJhbWVSZXF1ZXN0SAASRgoT", + "bmV3X2F1ZGlvX3Jlc2FtcGxlchgZIAEoCzInLmxpdmVraXQucHJvdG8uTmV3", + "QXVkaW9SZXNhbXBsZXJSZXF1ZXN0SAASRAoScmVtaXhfYW5kX3Jlc2FtcGxl", + "GBogASgLMiYubGl2ZWtpdC5wcm90by5SZW1peEFuZFJlc2FtcGxlUmVxdWVz", + "dEgAEioKBGUyZWUYGyABKAsyGi5saXZla2l0LnByb3RvLkUyZWVSZXF1ZXN0", + "SABCCQoHbWVzc2FnZSKbDQoLRmZpUmVzcG9uc2USMQoHZGlzcG9zZRgCIAEo", + "CzIeLmxpdmVraXQucHJvdG8uRGlzcG9zZVJlc3BvbnNlSAASMQoHY29ubmVj", + "dBgDIAEoCzIeLmxpdmVraXQucHJvdG8uQ29ubmVjdFJlc3BvbnNlSAASNwoK", + "ZGlzY29ubmVjdBgEIAEoCzIhLmxpdmVraXQucHJvdG8uRGlzY29ubmVjdFJl", + "c3BvbnNlSAASPAoNcHVibGlzaF90cmFjaxgFIAEoCzIjLmxpdmVraXQucHJv", + "dG8uUHVibGlzaFRyYWNrUmVzcG9uc2VIABJACg91bnB1Ymxpc2hfdHJhY2sY", + "BiABKAsyJS5saXZla2l0LnByb3RvLlVucHVibGlzaFRyYWNrUmVzcG9uc2VI", + "ABI6CgxwdWJsaXNoX2RhdGEYByABKAsyIi5saXZla2l0LnByb3RvLlB1Ymxp", + "c2hEYXRhUmVzcG9uc2VIABI+Cg5zZXRfc3Vic2NyaWJlZBgIIAEoCzIkLmxp", + "dmVraXQucHJvdG8uU2V0U3Vic2NyaWJlZFJlc3BvbnNlSAASSwoVdXBkYXRl", + "X2xvY2FsX21ldGFkYXRhGAkgASgLMioubGl2ZWtpdC5wcm90by5VcGRhdGVM", + "b2NhbE1ldGFkYXRhUmVzcG9uc2VIABJDChF1cGRhdGVfbG9jYWxfbmFtZRgK", + "IAEoCzImLmxpdmVraXQucHJvdG8uVXBkYXRlTG9jYWxOYW1lUmVzcG9uc2VI", + "ABJDChFnZXRfc2Vzc2lvbl9zdGF0cxgLIAEoCzImLmxpdmVraXQucHJvdG8u", + "R2V0U2Vzc2lvblN0YXRzUmVzcG9uc2VIABJFChJjcmVhdGVfdmlkZW9fdHJh", + "Y2sYDCABKAsyJy5saXZla2l0LnByb3RvLkNyZWF0ZVZpZGVvVHJhY2tSZXNw", + "b25zZUgAEkUKEmNyZWF0ZV9hdWRpb190cmFjaxgNIAEoCzInLmxpdmVraXQu", + "cHJvdG8uQ3JlYXRlQXVkaW9UcmFja1Jlc3BvbnNlSAASNAoJZ2V0X3N0YXRz", + "GA4gASgLMh8ubGl2ZWtpdC5wcm90by5HZXRTdGF0c1Jlc3BvbnNlSAASRQoS", + "YWxsb2NfdmlkZW9fYnVmZmVyGA8gASgLMicubGl2ZWtpdC5wcm90by5BbGxv", + "Y1ZpZGVvQnVmZmVyUmVzcG9uc2VIABJBChBuZXdfdmlkZW9fc3RyZWFtGBAg", + "ASgLMiUubGl2ZWtpdC5wcm90by5OZXdWaWRlb1N0cmVhbVJlc3BvbnNlSAAS", + "QQoQbmV3X3ZpZGVvX3NvdXJjZRgRIAEoCzIlLmxpdmVraXQucHJvdG8uTmV3", + "VmlkZW9Tb3VyY2VSZXNwb25zZUgAEkcKE2NhcHR1cmVfdmlkZW9fZnJhbWUY", + "EiABKAsyKC5saXZla2l0LnByb3RvLkNhcHR1cmVWaWRlb0ZyYW1lUmVzcG9u", + "c2VIABIwCgd0b19pNDIwGBMgASgLMh0ubGl2ZWtpdC5wcm90by5Ub0k0MjBS", + "ZXNwb25zZUgAEjAKB3RvX2FyZ2IYFCABKAsyHS5saXZla2l0LnByb3RvLlRv", + "QXJnYlJlc3BvbnNlSAASRQoSYWxsb2NfYXVkaW9fYnVmZmVyGBUgASgLMicu", + "bGl2ZWtpdC5wcm90by5BbGxvY0F1ZGlvQnVmZmVyUmVzcG9uc2VIABJBChBu", + "ZXdfYXVkaW9fc3RyZWFtGBYgASgLMiUubGl2ZWtpdC5wcm90by5OZXdBdWRp", + "b1N0cmVhbVJlc3BvbnNlSAASQQoQbmV3X2F1ZGlvX3NvdXJjZRgXIAEoCzIl", + "LmxpdmVraXQucHJvdG8uTmV3QXVkaW9Tb3VyY2VSZXNwb25zZUgAEkcKE2Nh", + "cHR1cmVfYXVkaW9fZnJhbWUYGCABKAsyKC5saXZla2l0LnByb3RvLkNhcHR1", + "cmVBdWRpb0ZyYW1lUmVzcG9uc2VIABJHChNuZXdfYXVkaW9fcmVzYW1wbGVy", + "GBkgASgLMigubGl2ZWtpdC5wcm90by5OZXdBdWRpb1Jlc2FtcGxlclJlc3Bv", + "bnNlSAASRQoScmVtaXhfYW5kX3Jlc2FtcGxlGBogASgLMicubGl2ZWtpdC5w", + "cm90by5SZW1peEFuZFJlc2FtcGxlUmVzcG9uc2VIABIrCgRlMmVlGBsgASgL", + "MhsubGl2ZWtpdC5wcm90by5FMmVlUmVzcG9uc2VIAEIJCgdtZXNzYWdlIs8H", + "CghGZmlFdmVudBIuCgpyb29tX2V2ZW50GAEgASgLMhgubGl2ZWtpdC5wcm90", + "by5Sb29tRXZlbnRIABIwCgt0cmFja19ldmVudBgCIAEoCzIZLmxpdmVraXQu", + "cHJvdG8uVHJhY2tFdmVudEgAEj0KEnZpZGVvX3N0cmVhbV9ldmVudBgDIAEo", + "CzIfLmxpdmVraXQucHJvdG8uVmlkZW9TdHJlYW1FdmVudEgAEj0KEmF1ZGlv", + "X3N0cmVhbV9ldmVudBgEIAEoCzIfLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl", + "YW1FdmVudEgAEjEKB2Nvbm5lY3QYBSABKAsyHi5saXZla2l0LnByb3RvLkNv", + "bm5lY3RDYWxsYmFja0gAEjcKCmRpc2Nvbm5lY3QYBiABKAsyIS5saXZla2l0", + "LnByb3RvLkRpc2Nvbm5lY3RDYWxsYmFja0gAEjEKB2Rpc3Bvc2UYByABKAsy", + "Hi5saXZla2l0LnByb3RvLkRpc3Bvc2VDYWxsYmFja0gAEjwKDXB1Ymxpc2hf", + "dHJhY2sYCCABKAsyIy5saXZla2l0LnByb3RvLlB1Ymxpc2hUcmFja0NhbGxi", + "YWNrSAASQAoPdW5wdWJsaXNoX3RyYWNrGAkgASgLMiUubGl2ZWtpdC5wcm90", + "by5VbnB1Ymxpc2hUcmFja0NhbGxiYWNrSAASOgoMcHVibGlzaF9kYXRhGAog", + "ASgLMiIubGl2ZWtpdC5wcm90by5QdWJsaXNoRGF0YUNhbGxiYWNrSAASRwoT", + "Y2FwdHVyZV9hdWRpb19mcmFtZRgLIAEoCzIoLmxpdmVraXQucHJvdG8uQ2Fw", + "dHVyZUF1ZGlvRnJhbWVDYWxsYmFja0gAEksKFXVwZGF0ZV9sb2NhbF9tZXRh", + "ZGF0YRgMIAEoCzIqLmxpdmVraXQucHJvdG8uVXBkYXRlTG9jYWxNZXRhZGF0", + "YUNhbGxiYWNrSAASQwoRdXBkYXRlX2xvY2FsX25hbWUYDSABKAsyJi5saXZl", + "a2l0LnByb3RvLlVwZGF0ZUxvY2FsTmFtZUNhbGxiYWNrSAASNAoJZ2V0X3N0", + "YXRzGA4gASgLMh8ubGl2ZWtpdC5wcm90by5HZXRTdGF0c0NhbGxiYWNrSAAS", + "JwoEbG9ncxgPIAEoCzIXLmxpdmVraXQucHJvdG8uTG9nQmF0Y2hIABJDChFn", + "ZXRfc2Vzc2lvbl9zdGF0cxgQIAEoCzImLmxpdmVraXQucHJvdG8uR2V0U2Vz", + "c2lvblN0YXRzQ2FsbGJhY2tIAEIJCgdtZXNzYWdlIh8KDkRpc3Bvc2VSZXF1", + "ZXN0Eg0KBWFzeW5jGAEgASgIIjUKD0Rpc3Bvc2VSZXNwb25zZRIVCghhc3lu", + "Y19pZBgBIAEoBEgAiAEBQgsKCV9hc3luY19pZCIjCg9EaXNwb3NlQ2FsbGJh", + "Y2sSEAoIYXN5bmNfaWQYASABKAQitgEKCUxvZ1JlY29yZBImCgVsZXZlbBgB", + "IAEoDjIXLmxpdmVraXQucHJvdG8uTG9nTGV2ZWwSDgoGdGFyZ2V0GAIgASgJ", + "EhgKC21vZHVsZV9wYXRoGAMgASgJSACIAQESEQoEZmlsZRgEIAEoCUgBiAEB", + "EhEKBGxpbmUYBSABKA1IAogBARIPCgdtZXNzYWdlGAYgASgJQg4KDF9tb2R1", + "bGVfcGF0aEIHCgVfZmlsZUIHCgVfbGluZSI1CghMb2dCYXRjaBIpCgdyZWNv", + "cmRzGAEgAygLMhgubGl2ZWtpdC5wcm90by5Mb2dSZWNvcmQqUwoITG9nTGV2", + "ZWwSDQoJTE9HX0VSUk9SEAASDAoITE9HX1dBUk4QARIMCghMT0dfSU5GTxAC", + "Eg0KCUxPR19ERUJVRxADEg0KCUxPR19UUkFDRRAEQhCqAg1MaXZlS2l0LlBy", + "b3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, global::LiveKit.Proto.RoomReflection.Descriptor, global::LiveKit.Proto.ParticipantReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, global::LiveKit.Proto.AudioFrameReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FFIRequest), global::LiveKit.Proto.FFIRequest.Parser, new[]{ "Initialize", "Dispose", "Connect", "Disconnect", "PublishTrack", "UnpublishTrack", "CreateVideoTrack", "CreateAudioTrack", "AllocVideoBuffer", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "ToI420", "ToArgb", "AllocAudioBuffer", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FFIResponse), global::LiveKit.Proto.FFIResponse.Parser, new[]{ "Initialize", "Dispose", "Connect", "Disconnect", "PublishTrack", "UnpublishTrack", "CreateVideoTrack", "CreateAudioTrack", "AllocVideoBuffer", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "ToI420", "ToArgb", "AllocAudioBuffer", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FFIEvent), global::LiveKit.Proto.FFIEvent.Parser, new[]{ "RoomEvent", "TrackEvent", "ParticipantEvent", "VideoStreamEvent", "AudioStreamEvent", "Connect", "Dispose", "PublishTrack" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.InitializeRequest), global::LiveKit.Proto.InitializeRequest.Parser, new[]{ "EventCallbackPtr" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.InitializeResponse), global::LiveKit.Proto.InitializeResponse.Parser, null, null, null, null, null), + new pbr::FileDescriptor[] { global::LiveKit.Proto.E2EeReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, global::LiveKit.Proto.RoomReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, global::LiveKit.Proto.AudioFrameReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.LogLevel), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FfiRequest), global::LiveKit.Proto.FfiRequest.Parser, new[]{ "Dispose", "Connect", "Disconnect", "PublishTrack", "UnpublishTrack", "PublishData", "SetSubscribed", "UpdateLocalMetadata", "UpdateLocalName", "GetSessionStats", "CreateVideoTrack", "CreateAudioTrack", "GetStats", "AllocVideoBuffer", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "ToI420", "ToArgb", "AllocAudioBuffer", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample", "E2Ee" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FfiResponse), global::LiveKit.Proto.FfiResponse.Parser, new[]{ "Dispose", "Connect", "Disconnect", "PublishTrack", "UnpublishTrack", "PublishData", "SetSubscribed", "UpdateLocalMetadata", "UpdateLocalName", "GetSessionStats", "CreateVideoTrack", "CreateAudioTrack", "GetStats", "AllocVideoBuffer", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "ToI420", "ToArgb", "AllocAudioBuffer", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample", "E2Ee" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FfiEvent), global::LiveKit.Proto.FfiEvent.Parser, new[]{ "RoomEvent", "TrackEvent", "VideoStreamEvent", "AudioStreamEvent", "Connect", "Disconnect", "Dispose", "PublishTrack", "UnpublishTrack", "PublishData", "CaptureAudioFrame", "UpdateLocalMetadata", "UpdateLocalName", "GetStats", "Logs", "GetSessionStats" }, new[]{ "Message" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisposeRequest), global::LiveKit.Proto.DisposeRequest.Parser, new[]{ "Async" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisposeResponse), global::LiveKit.Proto.DisposeResponse.Parser, new[]{ "AsyncId" }, new[]{ "AsyncId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisposeCallback), global::LiveKit.Proto.DisposeCallback.Parser, new[]{ "AsyncId" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisposeCallback), global::LiveKit.Proto.DisposeCallback.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LogRecord), global::LiveKit.Proto.LogRecord.Parser, new[]{ "Level", "Target", "ModulePath", "File", "Line", "Message" }, new[]{ "ModulePath", "File", "Line" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LogBatch), global::LiveKit.Proto.LogBatch.Parser, new[]{ "Records" }, null, null, null, null) })); } #endregion } + #region Enums + public enum LogLevel { + [pbr::OriginalName("LOG_ERROR")] LogError = 0, + [pbr::OriginalName("LOG_WARN")] LogWarn = 1, + [pbr::OriginalName("LOG_INFO")] LogInfo = 2, + [pbr::OriginalName("LOG_DEBUG")] LogDebug = 3, + [pbr::OriginalName("LOG_TRACE")] LogTrace = 4, + } + + #endregion + #region Messages /// - //// This is the input of livekit_ffi_request function - //// We always expect a response (FFIResponse) + /// This is the input of livekit_ffi_request function + /// We always expect a response (FFIResponse, even if it's empty) /// - public sealed partial class FFIRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FfiRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FFIRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FfiRequest()); 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)] @@ -141,7 +192,7 @@ public sealed partial class FFIRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIRequest() { + public FfiRequest() { OnConstruction(); } @@ -149,11 +200,8 @@ public FFIRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIRequest(FFIRequest other) : this() { + public FfiRequest(FfiRequest other) : this() { switch (other.MessageCase) { - case MessageOneofCase.Initialize: - Initialize = other.Initialize.Clone(); - break; case MessageOneofCase.Dispose: Dispose = other.Dispose.Clone(); break; @@ -169,12 +217,30 @@ public FFIRequest(FFIRequest other) : this() { case MessageOneofCase.UnpublishTrack: UnpublishTrack = other.UnpublishTrack.Clone(); break; + case MessageOneofCase.PublishData: + PublishData = other.PublishData.Clone(); + break; + case MessageOneofCase.SetSubscribed: + SetSubscribed = other.SetSubscribed.Clone(); + break; + case MessageOneofCase.UpdateLocalMetadata: + UpdateLocalMetadata = other.UpdateLocalMetadata.Clone(); + break; + case MessageOneofCase.UpdateLocalName: + UpdateLocalName = other.UpdateLocalName.Clone(); + break; + case MessageOneofCase.GetSessionStats: + GetSessionStats = other.GetSessionStats.Clone(); + break; case MessageOneofCase.CreateVideoTrack: CreateVideoTrack = other.CreateVideoTrack.Clone(); break; case MessageOneofCase.CreateAudioTrack: CreateAudioTrack = other.CreateAudioTrack.Clone(); break; + case MessageOneofCase.GetStats: + GetStats = other.GetStats.Clone(); + break; case MessageOneofCase.AllocVideoBuffer: AllocVideoBuffer = other.AllocVideoBuffer.Clone(); break; @@ -211,6 +277,9 @@ public FFIRequest(FFIRequest other) : this() { case MessageOneofCase.RemixAndResample: RemixAndResample = other.RemixAndResample.Clone(); break; + case MessageOneofCase.E2Ee: + E2Ee = other.E2Ee.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -218,20 +287,8 @@ public FFIRequest(FFIRequest other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIRequest Clone() { - return new FFIRequest(this); - } - - /// Field number for the "initialize" field. - public const int InitializeFieldNumber = 1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.InitializeRequest Initialize { - get { return messageCase_ == MessageOneofCase.Initialize ? (global::LiveKit.Proto.InitializeRequest) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Initialize; - } + public FfiRequest Clone() { + return new FfiRequest(this); } /// Field number for the "dispose" field. @@ -297,8 +354,68 @@ public FFIRequest Clone() { } } + /// Field number for the "publish_data" field. + public const int PublishDataFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishDataRequest PublishData { + get { return messageCase_ == MessageOneofCase.PublishData ? (global::LiveKit.Proto.PublishDataRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishData; + } + } + + /// Field number for the "set_subscribed" field. + public const int SetSubscribedFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetSubscribedRequest SetSubscribed { + get { return messageCase_ == MessageOneofCase.SetSubscribed ? (global::LiveKit.Proto.SetSubscribedRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetSubscribed; + } + } + + /// Field number for the "update_local_metadata" field. + public const int UpdateLocalMetadataFieldNumber = 9; + [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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + } + } + + /// Field number for the "update_local_name" field. + public const int UpdateLocalNameFieldNumber = 10; + [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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + } + } + + /// Field number for the "get_session_stats" field. + public const int GetSessionStatsFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetSessionStatsRequest GetSessionStats { + get { return messageCase_ == MessageOneofCase.GetSessionStats ? (global::LiveKit.Proto.GetSessionStatsRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetSessionStats; + } + } + /// Field number for the "create_video_track" field. - public const int CreateVideoTrackFieldNumber = 7; + public const int CreateVideoTrackFieldNumber = 12; /// /// Track /// @@ -313,7 +430,7 @@ public FFIRequest Clone() { } /// Field number for the "create_audio_track" field. - public const int CreateAudioTrackFieldNumber = 8; + public const int CreateAudioTrackFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CreateAudioTrackRequest CreateAudioTrack { @@ -324,8 +441,20 @@ public FFIRequest Clone() { } } + /// Field number for the "get_stats" field. + public const int GetStatsFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetStatsRequest GetStats { + get { return messageCase_ == MessageOneofCase.GetStats ? (global::LiveKit.Proto.GetStatsRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetStats; + } + } + /// Field number for the "alloc_video_buffer" field. - public const int AllocVideoBufferFieldNumber = 9; + public const int AllocVideoBufferFieldNumber = 15; /// /// Video /// @@ -340,7 +469,7 @@ public FFIRequest Clone() { } /// Field number for the "new_video_stream" field. - public const int NewVideoStreamFieldNumber = 10; + public const int NewVideoStreamFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoStreamRequest NewVideoStream { @@ -352,7 +481,7 @@ public FFIRequest Clone() { } /// Field number for the "new_video_source" field. - public const int NewVideoSourceFieldNumber = 11; + public const int NewVideoSourceFieldNumber = 17; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoSourceRequest NewVideoSource { @@ -364,7 +493,7 @@ public FFIRequest Clone() { } /// Field number for the "capture_video_frame" field. - public const int CaptureVideoFrameFieldNumber = 12; + public const int CaptureVideoFrameFieldNumber = 18; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureVideoFrameRequest CaptureVideoFrame { @@ -376,7 +505,7 @@ public FFIRequest Clone() { } /// Field number for the "to_i420" field. - public const int ToI420FieldNumber = 13; + public const int ToI420FieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.ToI420Request ToI420 { @@ -388,11 +517,11 @@ public FFIRequest Clone() { } /// Field number for the "to_argb" field. - public const int ToArgbFieldNumber = 14; + public const int ToArgbFieldNumber = 20; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ToARGBRequest ToArgb { - get { return messageCase_ == MessageOneofCase.ToArgb ? (global::LiveKit.Proto.ToARGBRequest) message_ : null; } + public global::LiveKit.Proto.ToArgbRequest ToArgb { + get { return messageCase_ == MessageOneofCase.ToArgb ? (global::LiveKit.Proto.ToArgbRequest) message_ : null; } set { message_ = value; messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ToArgb; @@ -400,7 +529,7 @@ public FFIRequest Clone() { } /// Field number for the "alloc_audio_buffer" field. - public const int AllocAudioBufferFieldNumber = 15; + public const int AllocAudioBufferFieldNumber = 21; /// /// Audio /// @@ -415,7 +544,7 @@ public FFIRequest Clone() { } /// Field number for the "new_audio_stream" field. - public const int NewAudioStreamFieldNumber = 16; + public const int NewAudioStreamFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioStreamRequest NewAudioStream { @@ -427,7 +556,7 @@ public FFIRequest Clone() { } /// Field number for the "new_audio_source" field. - public const int NewAudioSourceFieldNumber = 17; + public const int NewAudioSourceFieldNumber = 23; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioSourceRequest NewAudioSource { @@ -439,7 +568,7 @@ public FFIRequest Clone() { } /// Field number for the "capture_audio_frame" field. - public const int CaptureAudioFrameFieldNumber = 18; + public const int CaptureAudioFrameFieldNumber = 24; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureAudioFrameRequest CaptureAudioFrame { @@ -451,7 +580,7 @@ public FFIRequest Clone() { } /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 19; + public const int NewAudioResamplerFieldNumber = 25; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerRequest NewAudioResampler { @@ -463,7 +592,7 @@ public FFIRequest Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 20; + public const int RemixAndResampleFieldNumber = 26; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleRequest RemixAndResample { @@ -474,30 +603,48 @@ public FFIRequest Clone() { } } + /// Field number for the "e2ee" field. + public const int E2EeFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeRequest E2Ee { + get { return messageCase_ == MessageOneofCase.E2Ee ? (global::LiveKit.Proto.E2eeRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.E2Ee; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { None = 0, - Initialize = 1, Dispose = 2, Connect = 3, Disconnect = 4, PublishTrack = 5, UnpublishTrack = 6, - CreateVideoTrack = 7, - CreateAudioTrack = 8, - AllocVideoBuffer = 9, - NewVideoStream = 10, - NewVideoSource = 11, - CaptureVideoFrame = 12, - ToI420 = 13, - ToArgb = 14, - AllocAudioBuffer = 15, - NewAudioStream = 16, - NewAudioSource = 17, - CaptureAudioFrame = 18, - NewAudioResampler = 19, - RemixAndResample = 20, + PublishData = 7, + SetSubscribed = 8, + UpdateLocalMetadata = 9, + UpdateLocalName = 10, + GetSessionStats = 11, + CreateVideoTrack = 12, + CreateAudioTrack = 13, + GetStats = 14, + AllocVideoBuffer = 15, + NewVideoStream = 16, + NewVideoSource = 17, + CaptureVideoFrame = 18, + ToI420 = 19, + ToArgb = 20, + AllocAudioBuffer = 21, + NewAudioStream = 22, + NewAudioSource = 23, + CaptureAudioFrame = 24, + NewAudioResampler = 25, + RemixAndResample = 26, + E2Ee = 27, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -516,26 +663,31 @@ public void ClearMessage() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FFIRequest); + return Equals(other as FfiRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FFIRequest other) { + public bool Equals(FfiRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Initialize, other.Initialize)) return false; if (!object.Equals(Dispose, other.Dispose)) return false; if (!object.Equals(Connect, other.Connect)) return false; if (!object.Equals(Disconnect, other.Disconnect)) return false; if (!object.Equals(PublishTrack, other.PublishTrack)) return false; 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(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(CreateVideoTrack, other.CreateVideoTrack)) return false; if (!object.Equals(CreateAudioTrack, other.CreateAudioTrack)) return false; + if (!object.Equals(GetStats, other.GetStats)) return false; if (!object.Equals(AllocVideoBuffer, other.AllocVideoBuffer)) return false; if (!object.Equals(NewVideoStream, other.NewVideoStream)) return false; if (!object.Equals(NewVideoSource, other.NewVideoSource)) return false; @@ -548,6 +700,7 @@ public bool Equals(FFIRequest other) { 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 (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -556,14 +709,19 @@ public bool Equals(FFIRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (messageCase_ == MessageOneofCase.Initialize) hash ^= Initialize.GetHashCode(); if (messageCase_ == MessageOneofCase.Dispose) hash ^= Dispose.GetHashCode(); if (messageCase_ == MessageOneofCase.Connect) hash ^= Connect.GetHashCode(); if (messageCase_ == MessageOneofCase.Disconnect) hash ^= Disconnect.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTrack) hash ^= PublishTrack.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.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) hash ^= CreateVideoTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) hash ^= CreateAudioTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetStats) hash ^= GetStats.GetHashCode(); if (messageCase_ == MessageOneofCase.AllocVideoBuffer) hash ^= AllocVideoBuffer.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoStream) hash ^= NewVideoStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoSource) hash ^= NewVideoSource.GetHashCode(); @@ -576,6 +734,7 @@ public override int 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(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -595,10 +754,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (messageCase_ == MessageOneofCase.Initialize) { - output.WriteRawTag(10); - output.WriteMessage(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(18); output.WriteMessage(Dispose); @@ -619,62 +774,90 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(UnpublishTrack); } - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + if (messageCase_ == MessageOneofCase.PublishData) { output.WriteRawTag(58); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + output.WriteRawTag(66); + output.WriteMessage(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(74); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(82); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(90); + output.WriteMessage(GetSessionStats); + } + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + output.WriteRawTag(98); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(66); + output.WriteRawTag(106); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - output.WriteRawTag(74); + output.WriteRawTag(122); output.WriteMessage(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(82); + output.WriteRawTag(130, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(90); + output.WriteRawTag(138, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(98); + output.WriteRawTag(146, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - output.WriteRawTag(106); + output.WriteRawTag(154, 1); output.WriteMessage(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - output.WriteRawTag(114); + output.WriteRawTag(162, 1); output.WriteMessage(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - output.WriteRawTag(122); + output.WriteRawTag(170, 1); output.WriteMessage(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(178, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(186, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(194, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(154, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(162, 1); + output.WriteRawTag(210, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + output.WriteRawTag(218, 1); + output.WriteMessage(E2Ee); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -685,10 +868,6 @@ 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 (messageCase_ == MessageOneofCase.Initialize) { - output.WriteRawTag(10); - output.WriteMessage(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(18); output.WriteMessage(Dispose); @@ -709,62 +888,90 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(UnpublishTrack); } - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + if (messageCase_ == MessageOneofCase.PublishData) { output.WriteRawTag(58); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + output.WriteRawTag(66); + output.WriteMessage(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(74); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(82); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(90); + output.WriteMessage(GetSessionStats); + } + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + output.WriteRawTag(98); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(66); + output.WriteRawTag(106); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - output.WriteRawTag(74); + output.WriteRawTag(122); output.WriteMessage(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(82); + output.WriteRawTag(130, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(90); + output.WriteRawTag(138, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(98); + output.WriteRawTag(146, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - output.WriteRawTag(106); + output.WriteRawTag(154, 1); output.WriteMessage(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - output.WriteRawTag(114); + output.WriteRawTag(162, 1); output.WriteMessage(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - output.WriteRawTag(122); + output.WriteRawTag(170, 1); output.WriteMessage(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(178, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(186, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(194, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(154, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(162, 1); + output.WriteRawTag(210, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + output.WriteRawTag(218, 1); + output.WriteMessage(E2Ee); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -775,9 +982,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (messageCase_ == MessageOneofCase.Initialize) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dispose); } @@ -793,32 +997,50 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.UnpublishTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnpublishTrack); } + if (messageCase_ == MessageOneofCase.PublishData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSessionStats); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewVideoSource); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptureVideoFrame); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToI420); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToArgb); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllocAudioBuffer); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioStream); @@ -835,6 +1057,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.RemixAndResample) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -843,17 +1068,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FFIRequest other) { + public void MergeFrom(FfiRequest other) { if (other == null) { return; } switch (other.MessageCase) { - case MessageOneofCase.Initialize: - if (Initialize == null) { - Initialize = new global::LiveKit.Proto.InitializeRequest(); - } - Initialize.MergeFrom(other.Initialize); - break; case MessageOneofCase.Dispose: if (Dispose == null) { Dispose = new global::LiveKit.Proto.DisposeRequest(); @@ -884,6 +1103,36 @@ public void MergeFrom(FFIRequest other) { } UnpublishTrack.MergeFrom(other.UnpublishTrack); break; + case MessageOneofCase.PublishData: + if (PublishData == null) { + PublishData = new global::LiveKit.Proto.PublishDataRequest(); + } + PublishData.MergeFrom(other.PublishData); + break; + case MessageOneofCase.SetSubscribed: + if (SetSubscribed == null) { + SetSubscribed = new global::LiveKit.Proto.SetSubscribedRequest(); + } + SetSubscribed.MergeFrom(other.SetSubscribed); + break; + case MessageOneofCase.UpdateLocalMetadata: + if (UpdateLocalMetadata == null) { + UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); + } + UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + break; + case MessageOneofCase.UpdateLocalName: + if (UpdateLocalName == null) { + UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameRequest(); + } + UpdateLocalName.MergeFrom(other.UpdateLocalName); + break; + case MessageOneofCase.GetSessionStats: + if (GetSessionStats == null) { + GetSessionStats = new global::LiveKit.Proto.GetSessionStatsRequest(); + } + GetSessionStats.MergeFrom(other.GetSessionStats); + break; case MessageOneofCase.CreateVideoTrack: if (CreateVideoTrack == null) { CreateVideoTrack = new global::LiveKit.Proto.CreateVideoTrackRequest(); @@ -896,6 +1145,12 @@ public void MergeFrom(FFIRequest other) { } CreateAudioTrack.MergeFrom(other.CreateAudioTrack); break; + case MessageOneofCase.GetStats: + if (GetStats == null) { + GetStats = new global::LiveKit.Proto.GetStatsRequest(); + } + GetStats.MergeFrom(other.GetStats); + break; case MessageOneofCase.AllocVideoBuffer: if (AllocVideoBuffer == null) { AllocVideoBuffer = new global::LiveKit.Proto.AllocVideoBufferRequest(); @@ -928,7 +1183,7 @@ public void MergeFrom(FFIRequest other) { break; case MessageOneofCase.ToArgb: if (ToArgb == null) { - ToArgb = new global::LiveKit.Proto.ToARGBRequest(); + ToArgb = new global::LiveKit.Proto.ToArgbRequest(); } ToArgb.MergeFrom(other.ToArgb); break; @@ -968,6 +1223,12 @@ public void MergeFrom(FFIRequest other) { } RemixAndResample.MergeFrom(other.RemixAndResample); break; + case MessageOneofCase.E2Ee: + if (E2Ee == null) { + E2Ee = new global::LiveKit.Proto.E2eeRequest(); + } + E2Ee.MergeFrom(other.E2Ee); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -985,15 +1246,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - global::LiveKit.Proto.InitializeRequest subBuilder = new global::LiveKit.Proto.InitializeRequest(); - if (messageCase_ == MessageOneofCase.Initialize) { - subBuilder.MergeFrom(Initialize); - } - input.ReadMessage(subBuilder); - Initialize = subBuilder; - break; - } case 18: { global::LiveKit.Proto.DisposeRequest subBuilder = new global::LiveKit.Proto.DisposeRequest(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -1040,6 +1292,51 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 58: { + global::LiveKit.Proto.PublishDataRequest subBuilder = new global::LiveKit.Proto.PublishDataRequest(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); + } + input.ReadMessage(subBuilder); + PublishData = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.SetSubscribedRequest subBuilder = new global::LiveKit.Proto.SetSubscribedRequest(); + if (messageCase_ == MessageOneofCase.SetSubscribed) { + subBuilder.MergeFrom(SetSubscribed); + } + input.ReadMessage(subBuilder); + SetSubscribed = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.UpdateLocalMetadataRequest subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); + } + input.ReadMessage(subBuilder); + UpdateLocalMetadata = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.UpdateLocalNameRequest subBuilder = new global::LiveKit.Proto.UpdateLocalNameRequest(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); + } + input.ReadMessage(subBuilder); + UpdateLocalName = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.GetSessionStatsRequest subBuilder = new global::LiveKit.Proto.GetSessionStatsRequest(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); + } + input.ReadMessage(subBuilder); + GetSessionStats = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.CreateVideoTrackRequest subBuilder = new global::LiveKit.Proto.CreateVideoTrackRequest(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -1048,7 +1345,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 66: { + case 106: { global::LiveKit.Proto.CreateAudioTrackRequest subBuilder = new global::LiveKit.Proto.CreateAudioTrackRequest(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -1057,7 +1354,16 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 74: { + case 114: { + global::LiveKit.Proto.GetStatsRequest subBuilder = new global::LiveKit.Proto.GetStatsRequest(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.AllocVideoBufferRequest subBuilder = new global::LiveKit.Proto.AllocVideoBufferRequest(); if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { subBuilder.MergeFrom(AllocVideoBuffer); @@ -1066,7 +1372,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocVideoBuffer = subBuilder; break; } - case 82: { + case 130: { global::LiveKit.Proto.NewVideoStreamRequest subBuilder = new global::LiveKit.Proto.NewVideoStreamRequest(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -1075,7 +1381,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 90: { + case 138: { global::LiveKit.Proto.NewVideoSourceRequest subBuilder = new global::LiveKit.Proto.NewVideoSourceRequest(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -1084,7 +1390,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 98: { + case 146: { global::LiveKit.Proto.CaptureVideoFrameRequest subBuilder = new global::LiveKit.Proto.CaptureVideoFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -1093,7 +1399,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 106: { + case 154: { global::LiveKit.Proto.ToI420Request subBuilder = new global::LiveKit.Proto.ToI420Request(); if (messageCase_ == MessageOneofCase.ToI420) { subBuilder.MergeFrom(ToI420); @@ -1102,8 +1408,8 @@ public void MergeFrom(pb::CodedInputStream input) { ToI420 = subBuilder; break; } - case 114: { - global::LiveKit.Proto.ToARGBRequest subBuilder = new global::LiveKit.Proto.ToARGBRequest(); + case 162: { + global::LiveKit.Proto.ToArgbRequest subBuilder = new global::LiveKit.Proto.ToArgbRequest(); if (messageCase_ == MessageOneofCase.ToArgb) { subBuilder.MergeFrom(ToArgb); } @@ -1111,7 +1417,7 @@ public void MergeFrom(pb::CodedInputStream input) { ToArgb = subBuilder; break; } - case 122: { + case 170: { global::LiveKit.Proto.AllocAudioBufferRequest subBuilder = new global::LiveKit.Proto.AllocAudioBufferRequest(); if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { subBuilder.MergeFrom(AllocAudioBuffer); @@ -1120,7 +1426,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocAudioBuffer = subBuilder; break; } - case 130: { + case 178: { global::LiveKit.Proto.NewAudioStreamRequest subBuilder = new global::LiveKit.Proto.NewAudioStreamRequest(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -1129,7 +1435,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 138: { + case 186: { global::LiveKit.Proto.NewAudioSourceRequest subBuilder = new global::LiveKit.Proto.NewAudioSourceRequest(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -1138,7 +1444,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 146: { + case 194: { global::LiveKit.Proto.CaptureAudioFrameRequest subBuilder = new global::LiveKit.Proto.CaptureAudioFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -1147,7 +1453,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 154: { + case 202: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1156,7 +1462,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 162: { + case 210: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1165,6 +1471,15 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } + case 218: { + global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); + if (messageCase_ == MessageOneofCase.E2Ee) { + subBuilder.MergeFrom(E2Ee); + } + input.ReadMessage(subBuilder); + E2Ee = subBuilder; + break; + } } } #endif @@ -1180,15 +1495,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - global::LiveKit.Proto.InitializeRequest subBuilder = new global::LiveKit.Proto.InitializeRequest(); - if (messageCase_ == MessageOneofCase.Initialize) { - subBuilder.MergeFrom(Initialize); - } - input.ReadMessage(subBuilder); - Initialize = subBuilder; - break; - } case 18: { global::LiveKit.Proto.DisposeRequest subBuilder = new global::LiveKit.Proto.DisposeRequest(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -1235,60 +1541,114 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 58: { - global::LiveKit.Proto.CreateVideoTrackRequest subBuilder = new global::LiveKit.Proto.CreateVideoTrackRequest(); - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - subBuilder.MergeFrom(CreateVideoTrack); + global::LiveKit.Proto.PublishDataRequest subBuilder = new global::LiveKit.Proto.PublishDataRequest(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); } input.ReadMessage(subBuilder); - CreateVideoTrack = subBuilder; + PublishData = subBuilder; break; } case 66: { - global::LiveKit.Proto.CreateAudioTrackRequest subBuilder = new global::LiveKit.Proto.CreateAudioTrackRequest(); - if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - subBuilder.MergeFrom(CreateAudioTrack); + global::LiveKit.Proto.SetSubscribedRequest subBuilder = new global::LiveKit.Proto.SetSubscribedRequest(); + if (messageCase_ == MessageOneofCase.SetSubscribed) { + subBuilder.MergeFrom(SetSubscribed); } input.ReadMessage(subBuilder); - CreateAudioTrack = subBuilder; + SetSubscribed = subBuilder; break; } case 74: { - global::LiveKit.Proto.AllocVideoBufferRequest subBuilder = new global::LiveKit.Proto.AllocVideoBufferRequest(); - if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - subBuilder.MergeFrom(AllocVideoBuffer); + global::LiveKit.Proto.UpdateLocalMetadataRequest subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataRequest(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); } input.ReadMessage(subBuilder); - AllocVideoBuffer = subBuilder; + UpdateLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.NewVideoStreamRequest subBuilder = new global::LiveKit.Proto.NewVideoStreamRequest(); - if (messageCase_ == MessageOneofCase.NewVideoStream) { - subBuilder.MergeFrom(NewVideoStream); + global::LiveKit.Proto.UpdateLocalNameRequest subBuilder = new global::LiveKit.Proto.UpdateLocalNameRequest(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); } input.ReadMessage(subBuilder); - NewVideoStream = subBuilder; + UpdateLocalName = subBuilder; break; } case 90: { - global::LiveKit.Proto.NewVideoSourceRequest subBuilder = new global::LiveKit.Proto.NewVideoSourceRequest(); - if (messageCase_ == MessageOneofCase.NewVideoSource) { - subBuilder.MergeFrom(NewVideoSource); + global::LiveKit.Proto.GetSessionStatsRequest subBuilder = new global::LiveKit.Proto.GetSessionStatsRequest(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); } input.ReadMessage(subBuilder); - NewVideoSource = subBuilder; + GetSessionStats = subBuilder; break; } case 98: { - global::LiveKit.Proto.CaptureVideoFrameRequest subBuilder = new global::LiveKit.Proto.CaptureVideoFrameRequest(); - if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - subBuilder.MergeFrom(CaptureVideoFrame); + global::LiveKit.Proto.CreateVideoTrackRequest subBuilder = new global::LiveKit.Proto.CreateVideoTrackRequest(); + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + subBuilder.MergeFrom(CreateVideoTrack); } input.ReadMessage(subBuilder); - CaptureVideoFrame = subBuilder; + CreateVideoTrack = subBuilder; break; } case 106: { + global::LiveKit.Proto.CreateAudioTrackRequest subBuilder = new global::LiveKit.Proto.CreateAudioTrackRequest(); + if (messageCase_ == MessageOneofCase.CreateAudioTrack) { + subBuilder.MergeFrom(CreateAudioTrack); + } + input.ReadMessage(subBuilder); + CreateAudioTrack = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.GetStatsRequest subBuilder = new global::LiveKit.Proto.GetStatsRequest(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.AllocVideoBufferRequest subBuilder = new global::LiveKit.Proto.AllocVideoBufferRequest(); + if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { + subBuilder.MergeFrom(AllocVideoBuffer); + } + input.ReadMessage(subBuilder); + AllocVideoBuffer = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.NewVideoStreamRequest subBuilder = new global::LiveKit.Proto.NewVideoStreamRequest(); + if (messageCase_ == MessageOneofCase.NewVideoStream) { + subBuilder.MergeFrom(NewVideoStream); + } + input.ReadMessage(subBuilder); + NewVideoStream = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.NewVideoSourceRequest subBuilder = new global::LiveKit.Proto.NewVideoSourceRequest(); + if (messageCase_ == MessageOneofCase.NewVideoSource) { + subBuilder.MergeFrom(NewVideoSource); + } + input.ReadMessage(subBuilder); + NewVideoSource = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.CaptureVideoFrameRequest subBuilder = new global::LiveKit.Proto.CaptureVideoFrameRequest(); + if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { + subBuilder.MergeFrom(CaptureVideoFrame); + } + input.ReadMessage(subBuilder); + CaptureVideoFrame = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.ToI420Request subBuilder = new global::LiveKit.Proto.ToI420Request(); if (messageCase_ == MessageOneofCase.ToI420) { subBuilder.MergeFrom(ToI420); @@ -1297,8 +1657,8 @@ public void MergeFrom(pb::CodedInputStream input) { ToI420 = subBuilder; break; } - case 114: { - global::LiveKit.Proto.ToARGBRequest subBuilder = new global::LiveKit.Proto.ToARGBRequest(); + case 162: { + global::LiveKit.Proto.ToArgbRequest subBuilder = new global::LiveKit.Proto.ToArgbRequest(); if (messageCase_ == MessageOneofCase.ToArgb) { subBuilder.MergeFrom(ToArgb); } @@ -1306,7 +1666,7 @@ public void MergeFrom(pb::CodedInputStream input) { ToArgb = subBuilder; break; } - case 122: { + case 170: { global::LiveKit.Proto.AllocAudioBufferRequest subBuilder = new global::LiveKit.Proto.AllocAudioBufferRequest(); if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { subBuilder.MergeFrom(AllocAudioBuffer); @@ -1315,7 +1675,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocAudioBuffer = subBuilder; break; } - case 130: { + case 178: { global::LiveKit.Proto.NewAudioStreamRequest subBuilder = new global::LiveKit.Proto.NewAudioStreamRequest(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -1324,7 +1684,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 138: { + case 186: { global::LiveKit.Proto.NewAudioSourceRequest subBuilder = new global::LiveKit.Proto.NewAudioSourceRequest(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -1333,7 +1693,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 146: { + case 194: { global::LiveKit.Proto.CaptureAudioFrameRequest subBuilder = new global::LiveKit.Proto.CaptureAudioFrameRequest(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -1342,7 +1702,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 154: { + case 202: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1351,7 +1711,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 162: { + case 210: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1360,6 +1720,15 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } + case 218: { + global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); + if (messageCase_ == MessageOneofCase.E2Ee) { + subBuilder.MergeFrom(E2Ee); + } + input.ReadMessage(subBuilder); + E2Ee = subBuilder; + break; + } } } } @@ -1368,18 +1737,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - //// This is the output of livekit_ffi_request function. + /// This is the output of livekit_ffi_request function. /// - public sealed partial class FFIResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FfiResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FFIResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FfiResponse()); 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)] @@ -1395,7 +1765,7 @@ public sealed partial class FFIResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIResponse() { + public FfiResponse() { OnConstruction(); } @@ -1403,11 +1773,8 @@ public FFIResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIResponse(FFIResponse other) : this() { + public FfiResponse(FfiResponse other) : this() { switch (other.MessageCase) { - case MessageOneofCase.Initialize: - Initialize = other.Initialize.Clone(); - break; case MessageOneofCase.Dispose: Dispose = other.Dispose.Clone(); break; @@ -1423,12 +1790,30 @@ public FFIResponse(FFIResponse other) : this() { case MessageOneofCase.UnpublishTrack: UnpublishTrack = other.UnpublishTrack.Clone(); break; + case MessageOneofCase.PublishData: + PublishData = other.PublishData.Clone(); + break; + case MessageOneofCase.SetSubscribed: + SetSubscribed = other.SetSubscribed.Clone(); + break; + case MessageOneofCase.UpdateLocalMetadata: + UpdateLocalMetadata = other.UpdateLocalMetadata.Clone(); + break; + case MessageOneofCase.UpdateLocalName: + UpdateLocalName = other.UpdateLocalName.Clone(); + break; + case MessageOneofCase.GetSessionStats: + GetSessionStats = other.GetSessionStats.Clone(); + break; case MessageOneofCase.CreateVideoTrack: CreateVideoTrack = other.CreateVideoTrack.Clone(); break; case MessageOneofCase.CreateAudioTrack: CreateAudioTrack = other.CreateAudioTrack.Clone(); break; + case MessageOneofCase.GetStats: + GetStats = other.GetStats.Clone(); + break; case MessageOneofCase.AllocVideoBuffer: AllocVideoBuffer = other.AllocVideoBuffer.Clone(); break; @@ -1465,6 +1850,9 @@ public FFIResponse(FFIResponse other) : this() { case MessageOneofCase.RemixAndResample: RemixAndResample = other.RemixAndResample.Clone(); break; + case MessageOneofCase.E2Ee: + E2Ee = other.E2Ee.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -1472,20 +1860,8 @@ public FFIResponse(FFIResponse other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIResponse Clone() { - return new FFIResponse(this); - } - - /// Field number for the "initialize" field. - public const int InitializeFieldNumber = 1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.InitializeResponse Initialize { - get { return messageCase_ == MessageOneofCase.Initialize ? (global::LiveKit.Proto.InitializeResponse) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Initialize; - } + public FfiResponse Clone() { + return new FfiResponse(this); } /// Field number for the "dispose" field. @@ -1551,8 +1927,68 @@ public FFIResponse Clone() { } } + /// Field number for the "publish_data" field. + public const int PublishDataFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishDataResponse PublishData { + get { return messageCase_ == MessageOneofCase.PublishData ? (global::LiveKit.Proto.PublishDataResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishData; + } + } + + /// Field number for the "set_subscribed" field. + public const int SetSubscribedFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SetSubscribedResponse SetSubscribed { + get { return messageCase_ == MessageOneofCase.SetSubscribed ? (global::LiveKit.Proto.SetSubscribedResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SetSubscribed; + } + } + + /// Field number for the "update_local_metadata" field. + public const int UpdateLocalMetadataFieldNumber = 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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + } + } + + /// Field number for the "update_local_name" field. + public const int UpdateLocalNameFieldNumber = 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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + } + } + + /// Field number for the "get_session_stats" field. + public const int GetSessionStatsFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetSessionStatsResponse GetSessionStats { + get { return messageCase_ == MessageOneofCase.GetSessionStats ? (global::LiveKit.Proto.GetSessionStatsResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetSessionStats; + } + } + /// Field number for the "create_video_track" field. - public const int CreateVideoTrackFieldNumber = 7; + public const int CreateVideoTrackFieldNumber = 12; /// /// Track /// @@ -1567,7 +2003,7 @@ public FFIResponse Clone() { } /// Field number for the "create_audio_track" field. - public const int CreateAudioTrackFieldNumber = 8; + public const int CreateAudioTrackFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CreateAudioTrackResponse CreateAudioTrack { @@ -1578,8 +2014,20 @@ public FFIResponse Clone() { } } + /// Field number for the "get_stats" field. + public const int GetStatsFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetStatsResponse GetStats { + get { return messageCase_ == MessageOneofCase.GetStats ? (global::LiveKit.Proto.GetStatsResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetStats; + } + } + /// Field number for the "alloc_video_buffer" field. - public const int AllocVideoBufferFieldNumber = 9; + public const int AllocVideoBufferFieldNumber = 15; /// /// Video /// @@ -1594,7 +2042,7 @@ public FFIResponse Clone() { } /// Field number for the "new_video_stream" field. - public const int NewVideoStreamFieldNumber = 10; + public const int NewVideoStreamFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoStreamResponse NewVideoStream { @@ -1606,7 +2054,7 @@ public FFIResponse Clone() { } /// Field number for the "new_video_source" field. - public const int NewVideoSourceFieldNumber = 11; + public const int NewVideoSourceFieldNumber = 17; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewVideoSourceResponse NewVideoSource { @@ -1618,7 +2066,7 @@ public FFIResponse Clone() { } /// Field number for the "capture_video_frame" field. - public const int CaptureVideoFrameFieldNumber = 12; + public const int CaptureVideoFrameFieldNumber = 18; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureVideoFrameResponse CaptureVideoFrame { @@ -1630,7 +2078,7 @@ public FFIResponse Clone() { } /// Field number for the "to_i420" field. - public const int ToI420FieldNumber = 13; + public const int ToI420FieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.ToI420Response ToI420 { @@ -1642,11 +2090,11 @@ public FFIResponse Clone() { } /// Field number for the "to_argb" field. - public const int ToArgbFieldNumber = 14; + public const int ToArgbFieldNumber = 20; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ToARGBResponse ToArgb { - get { return messageCase_ == MessageOneofCase.ToArgb ? (global::LiveKit.Proto.ToARGBResponse) message_ : null; } + public global::LiveKit.Proto.ToArgbResponse ToArgb { + get { return messageCase_ == MessageOneofCase.ToArgb ? (global::LiveKit.Proto.ToArgbResponse) message_ : null; } set { message_ = value; messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ToArgb; @@ -1654,7 +2102,7 @@ public FFIResponse Clone() { } /// Field number for the "alloc_audio_buffer" field. - public const int AllocAudioBufferFieldNumber = 15; + public const int AllocAudioBufferFieldNumber = 21; /// /// Audio /// @@ -1669,7 +2117,7 @@ public FFIResponse Clone() { } /// Field number for the "new_audio_stream" field. - public const int NewAudioStreamFieldNumber = 16; + public const int NewAudioStreamFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioStreamResponse NewAudioStream { @@ -1681,7 +2129,7 @@ public FFIResponse Clone() { } /// Field number for the "new_audio_source" field. - public const int NewAudioSourceFieldNumber = 17; + public const int NewAudioSourceFieldNumber = 23; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioSourceResponse NewAudioSource { @@ -1693,7 +2141,7 @@ public FFIResponse Clone() { } /// Field number for the "capture_audio_frame" field. - public const int CaptureAudioFrameFieldNumber = 18; + public const int CaptureAudioFrameFieldNumber = 24; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.CaptureAudioFrameResponse CaptureAudioFrame { @@ -1705,7 +2153,7 @@ public FFIResponse Clone() { } /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 19; + public const int NewAudioResamplerFieldNumber = 25; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerResponse NewAudioResampler { @@ -1717,7 +2165,7 @@ public FFIResponse Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 20; + public const int RemixAndResampleFieldNumber = 26; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleResponse RemixAndResample { @@ -1728,30 +2176,48 @@ public FFIResponse Clone() { } } + /// Field number for the "e2ee" field. + public const int E2EeFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeResponse E2Ee { + get { return messageCase_ == MessageOneofCase.E2Ee ? (global::LiveKit.Proto.E2eeResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.E2Ee; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { None = 0, - Initialize = 1, Dispose = 2, Connect = 3, Disconnect = 4, PublishTrack = 5, UnpublishTrack = 6, - CreateVideoTrack = 7, - CreateAudioTrack = 8, - AllocVideoBuffer = 9, - NewVideoStream = 10, - NewVideoSource = 11, - CaptureVideoFrame = 12, - ToI420 = 13, - ToArgb = 14, - AllocAudioBuffer = 15, - NewAudioStream = 16, - NewAudioSource = 17, - CaptureAudioFrame = 18, - NewAudioResampler = 19, - RemixAndResample = 20, + PublishData = 7, + SetSubscribed = 8, + UpdateLocalMetadata = 9, + UpdateLocalName = 10, + GetSessionStats = 11, + CreateVideoTrack = 12, + CreateAudioTrack = 13, + GetStats = 14, + AllocVideoBuffer = 15, + NewVideoStream = 16, + NewVideoSource = 17, + CaptureVideoFrame = 18, + ToI420 = 19, + ToArgb = 20, + AllocAudioBuffer = 21, + NewAudioStream = 22, + NewAudioSource = 23, + CaptureAudioFrame = 24, + NewAudioResampler = 25, + RemixAndResample = 26, + E2Ee = 27, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1770,26 +2236,31 @@ public void ClearMessage() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FFIResponse); + return Equals(other as FfiResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FFIResponse other) { + public bool Equals(FfiResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Initialize, other.Initialize)) return false; if (!object.Equals(Dispose, other.Dispose)) return false; if (!object.Equals(Connect, other.Connect)) return false; if (!object.Equals(Disconnect, other.Disconnect)) return false; if (!object.Equals(PublishTrack, other.PublishTrack)) return false; 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(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(CreateVideoTrack, other.CreateVideoTrack)) return false; if (!object.Equals(CreateAudioTrack, other.CreateAudioTrack)) return false; + if (!object.Equals(GetStats, other.GetStats)) return false; if (!object.Equals(AllocVideoBuffer, other.AllocVideoBuffer)) return false; if (!object.Equals(NewVideoStream, other.NewVideoStream)) return false; if (!object.Equals(NewVideoSource, other.NewVideoSource)) return false; @@ -1802,6 +2273,7 @@ public bool Equals(FFIResponse other) { 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 (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1810,14 +2282,19 @@ public bool Equals(FFIResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (messageCase_ == MessageOneofCase.Initialize) hash ^= Initialize.GetHashCode(); if (messageCase_ == MessageOneofCase.Dispose) hash ^= Dispose.GetHashCode(); if (messageCase_ == MessageOneofCase.Connect) hash ^= Connect.GetHashCode(); if (messageCase_ == MessageOneofCase.Disconnect) hash ^= Disconnect.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTrack) hash ^= PublishTrack.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.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) hash ^= CreateVideoTrack.GetHashCode(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) hash ^= CreateAudioTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetStats) hash ^= GetStats.GetHashCode(); if (messageCase_ == MessageOneofCase.AllocVideoBuffer) hash ^= AllocVideoBuffer.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoStream) hash ^= NewVideoStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewVideoSource) hash ^= NewVideoSource.GetHashCode(); @@ -1830,6 +2307,7 @@ public override int 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(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1849,10 +2327,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (messageCase_ == MessageOneofCase.Initialize) { - output.WriteRawTag(10); - output.WriteMessage(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(18); output.WriteMessage(Dispose); @@ -1873,62 +2347,90 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(UnpublishTrack); } - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + if (messageCase_ == MessageOneofCase.PublishData) { output.WriteRawTag(58); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + output.WriteRawTag(66); + output.WriteMessage(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(74); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(82); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(90); + output.WriteMessage(GetSessionStats); + } + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + output.WriteRawTag(98); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(66); + output.WriteRawTag(106); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - output.WriteRawTag(74); + output.WriteRawTag(122); output.WriteMessage(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(82); + output.WriteRawTag(130, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(90); + output.WriteRawTag(138, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(98); + output.WriteRawTag(146, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - output.WriteRawTag(106); + output.WriteRawTag(154, 1); output.WriteMessage(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - output.WriteRawTag(114); + output.WriteRawTag(162, 1); output.WriteMessage(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - output.WriteRawTag(122); + output.WriteRawTag(170, 1); output.WriteMessage(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(178, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(186, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(194, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(154, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(162, 1); + output.WriteRawTag(210, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + output.WriteRawTag(218, 1); + output.WriteMessage(E2Ee); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1939,10 +2441,6 @@ 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 (messageCase_ == MessageOneofCase.Initialize) { - output.WriteRawTag(10); - output.WriteMessage(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(18); output.WriteMessage(Dispose); @@ -1963,62 +2461,90 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteMessage(UnpublishTrack); } - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + if (messageCase_ == MessageOneofCase.PublishData) { output.WriteRawTag(58); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + output.WriteRawTag(66); + output.WriteMessage(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(74); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(82); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(90); + output.WriteMessage(GetSessionStats); + } + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + output.WriteRawTag(98); output.WriteMessage(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - output.WriteRawTag(66); + output.WriteRawTag(106); output.WriteMessage(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - output.WriteRawTag(74); + output.WriteRawTag(122); output.WriteMessage(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - output.WriteRawTag(82); + output.WriteRawTag(130, 1); output.WriteMessage(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - output.WriteRawTag(90); + output.WriteRawTag(138, 1); output.WriteMessage(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - output.WriteRawTag(98); + output.WriteRawTag(146, 1); output.WriteMessage(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - output.WriteRawTag(106); + output.WriteRawTag(154, 1); output.WriteMessage(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - output.WriteRawTag(114); + output.WriteRawTag(162, 1); output.WriteMessage(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - output.WriteRawTag(122); + output.WriteRawTag(170, 1); output.WriteMessage(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { - output.WriteRawTag(130, 1); + output.WriteRawTag(178, 1); output.WriteMessage(NewAudioStream); } if (messageCase_ == MessageOneofCase.NewAudioSource) { - output.WriteRawTag(138, 1); + output.WriteRawTag(186, 1); output.WriteMessage(NewAudioSource); } if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - output.WriteRawTag(146, 1); + output.WriteRawTag(194, 1); output.WriteMessage(CaptureAudioFrame); } if (messageCase_ == MessageOneofCase.NewAudioResampler) { - output.WriteRawTag(154, 1); + output.WriteRawTag(202, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(162, 1); + output.WriteRawTag(210, 1); output.WriteMessage(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + output.WriteRawTag(218, 1); + output.WriteMessage(E2Ee); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2029,9 +2555,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (messageCase_ == MessageOneofCase.Initialize) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Initialize); - } if (messageCase_ == MessageOneofCase.Dispose) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dispose); } @@ -2047,32 +2570,50 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.UnpublishTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnpublishTrack); } + if (messageCase_ == MessageOneofCase.PublishData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishData); + } + if (messageCase_ == MessageOneofCase.SetSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetSubscribed); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetSessionStats); + } if (messageCase_ == MessageOneofCase.CreateVideoTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateVideoTrack); } if (messageCase_ == MessageOneofCase.CreateAudioTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateAudioTrack); } + if (messageCase_ == MessageOneofCase.GetStats) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + } if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllocVideoBuffer); } if (messageCase_ == MessageOneofCase.NewVideoStream) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoStream); } if (messageCase_ == MessageOneofCase.NewVideoSource) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewVideoSource); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewVideoSource); } if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptureVideoFrame); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaptureVideoFrame); } if (messageCase_ == MessageOneofCase.ToI420) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToI420); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ToI420); } if (messageCase_ == MessageOneofCase.ToArgb) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToArgb); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ToArgb); } if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllocAudioBuffer); + size += 2 + pb::CodedOutputStream.ComputeMessageSize(AllocAudioBuffer); } if (messageCase_ == MessageOneofCase.NewAudioStream) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioStream); @@ -2089,6 +2630,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.RemixAndResample) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemixAndResample); } + if (messageCase_ == MessageOneofCase.E2Ee) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2097,17 +2641,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FFIResponse other) { + public void MergeFrom(FfiResponse other) { if (other == null) { return; } switch (other.MessageCase) { - case MessageOneofCase.Initialize: - if (Initialize == null) { - Initialize = new global::LiveKit.Proto.InitializeResponse(); - } - Initialize.MergeFrom(other.Initialize); - break; case MessageOneofCase.Dispose: if (Dispose == null) { Dispose = new global::LiveKit.Proto.DisposeResponse(); @@ -2138,6 +2676,36 @@ public void MergeFrom(FFIResponse other) { } UnpublishTrack.MergeFrom(other.UnpublishTrack); break; + case MessageOneofCase.PublishData: + if (PublishData == null) { + PublishData = new global::LiveKit.Proto.PublishDataResponse(); + } + PublishData.MergeFrom(other.PublishData); + break; + case MessageOneofCase.SetSubscribed: + if (SetSubscribed == null) { + SetSubscribed = new global::LiveKit.Proto.SetSubscribedResponse(); + } + SetSubscribed.MergeFrom(other.SetSubscribed); + break; + case MessageOneofCase.UpdateLocalMetadata: + if (UpdateLocalMetadata == null) { + UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); + } + UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + break; + case MessageOneofCase.UpdateLocalName: + if (UpdateLocalName == null) { + UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameResponse(); + } + UpdateLocalName.MergeFrom(other.UpdateLocalName); + break; + case MessageOneofCase.GetSessionStats: + if (GetSessionStats == null) { + GetSessionStats = new global::LiveKit.Proto.GetSessionStatsResponse(); + } + GetSessionStats.MergeFrom(other.GetSessionStats); + break; case MessageOneofCase.CreateVideoTrack: if (CreateVideoTrack == null) { CreateVideoTrack = new global::LiveKit.Proto.CreateVideoTrackResponse(); @@ -2150,6 +2718,12 @@ public void MergeFrom(FFIResponse other) { } CreateAudioTrack.MergeFrom(other.CreateAudioTrack); break; + case MessageOneofCase.GetStats: + if (GetStats == null) { + GetStats = new global::LiveKit.Proto.GetStatsResponse(); + } + GetStats.MergeFrom(other.GetStats); + break; case MessageOneofCase.AllocVideoBuffer: if (AllocVideoBuffer == null) { AllocVideoBuffer = new global::LiveKit.Proto.AllocVideoBufferResponse(); @@ -2182,7 +2756,7 @@ public void MergeFrom(FFIResponse other) { break; case MessageOneofCase.ToArgb: if (ToArgb == null) { - ToArgb = new global::LiveKit.Proto.ToARGBResponse(); + ToArgb = new global::LiveKit.Proto.ToArgbResponse(); } ToArgb.MergeFrom(other.ToArgb); break; @@ -2222,6 +2796,12 @@ public void MergeFrom(FFIResponse other) { } RemixAndResample.MergeFrom(other.RemixAndResample); break; + case MessageOneofCase.E2Ee: + if (E2Ee == null) { + E2Ee = new global::LiveKit.Proto.E2eeResponse(); + } + E2Ee.MergeFrom(other.E2Ee); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2239,15 +2819,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - global::LiveKit.Proto.InitializeResponse subBuilder = new global::LiveKit.Proto.InitializeResponse(); - if (messageCase_ == MessageOneofCase.Initialize) { - subBuilder.MergeFrom(Initialize); - } - input.ReadMessage(subBuilder); - Initialize = subBuilder; - break; - } case 18: { global::LiveKit.Proto.DisposeResponse subBuilder = new global::LiveKit.Proto.DisposeResponse(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -2294,60 +2865,114 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 58: { - global::LiveKit.Proto.CreateVideoTrackResponse subBuilder = new global::LiveKit.Proto.CreateVideoTrackResponse(); - if (messageCase_ == MessageOneofCase.CreateVideoTrack) { - subBuilder.MergeFrom(CreateVideoTrack); + global::LiveKit.Proto.PublishDataResponse subBuilder = new global::LiveKit.Proto.PublishDataResponse(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); } input.ReadMessage(subBuilder); - CreateVideoTrack = subBuilder; + PublishData = subBuilder; break; } case 66: { - global::LiveKit.Proto.CreateAudioTrackResponse subBuilder = new global::LiveKit.Proto.CreateAudioTrackResponse(); - if (messageCase_ == MessageOneofCase.CreateAudioTrack) { - subBuilder.MergeFrom(CreateAudioTrack); + global::LiveKit.Proto.SetSubscribedResponse subBuilder = new global::LiveKit.Proto.SetSubscribedResponse(); + if (messageCase_ == MessageOneofCase.SetSubscribed) { + subBuilder.MergeFrom(SetSubscribed); } input.ReadMessage(subBuilder); - CreateAudioTrack = subBuilder; + SetSubscribed = subBuilder; break; } case 74: { - global::LiveKit.Proto.AllocVideoBufferResponse subBuilder = new global::LiveKit.Proto.AllocVideoBufferResponse(); - if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { - subBuilder.MergeFrom(AllocVideoBuffer); + global::LiveKit.Proto.UpdateLocalMetadataResponse subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); } input.ReadMessage(subBuilder); - AllocVideoBuffer = subBuilder; + UpdateLocalMetadata = subBuilder; break; } case 82: { - global::LiveKit.Proto.NewVideoStreamResponse subBuilder = new global::LiveKit.Proto.NewVideoStreamResponse(); - if (messageCase_ == MessageOneofCase.NewVideoStream) { - subBuilder.MergeFrom(NewVideoStream); + global::LiveKit.Proto.UpdateLocalNameResponse subBuilder = new global::LiveKit.Proto.UpdateLocalNameResponse(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); } input.ReadMessage(subBuilder); - NewVideoStream = subBuilder; + UpdateLocalName = subBuilder; break; } case 90: { - global::LiveKit.Proto.NewVideoSourceResponse subBuilder = new global::LiveKit.Proto.NewVideoSourceResponse(); - if (messageCase_ == MessageOneofCase.NewVideoSource) { - subBuilder.MergeFrom(NewVideoSource); + global::LiveKit.Proto.GetSessionStatsResponse subBuilder = new global::LiveKit.Proto.GetSessionStatsResponse(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); } input.ReadMessage(subBuilder); - NewVideoSource = subBuilder; + GetSessionStats = subBuilder; break; } case 98: { - global::LiveKit.Proto.CaptureVideoFrameResponse subBuilder = new global::LiveKit.Proto.CaptureVideoFrameResponse(); - if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { - subBuilder.MergeFrom(CaptureVideoFrame); - } - input.ReadMessage(subBuilder); - CaptureVideoFrame = subBuilder; + global::LiveKit.Proto.CreateVideoTrackResponse subBuilder = new global::LiveKit.Proto.CreateVideoTrackResponse(); + if (messageCase_ == MessageOneofCase.CreateVideoTrack) { + subBuilder.MergeFrom(CreateVideoTrack); + } + input.ReadMessage(subBuilder); + CreateVideoTrack = subBuilder; break; } case 106: { + global::LiveKit.Proto.CreateAudioTrackResponse subBuilder = new global::LiveKit.Proto.CreateAudioTrackResponse(); + if (messageCase_ == MessageOneofCase.CreateAudioTrack) { + subBuilder.MergeFrom(CreateAudioTrack); + } + input.ReadMessage(subBuilder); + CreateAudioTrack = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.GetStatsResponse subBuilder = new global::LiveKit.Proto.GetStatsResponse(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.AllocVideoBufferResponse subBuilder = new global::LiveKit.Proto.AllocVideoBufferResponse(); + if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { + subBuilder.MergeFrom(AllocVideoBuffer); + } + input.ReadMessage(subBuilder); + AllocVideoBuffer = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.NewVideoStreamResponse subBuilder = new global::LiveKit.Proto.NewVideoStreamResponse(); + if (messageCase_ == MessageOneofCase.NewVideoStream) { + subBuilder.MergeFrom(NewVideoStream); + } + input.ReadMessage(subBuilder); + NewVideoStream = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.NewVideoSourceResponse subBuilder = new global::LiveKit.Proto.NewVideoSourceResponse(); + if (messageCase_ == MessageOneofCase.NewVideoSource) { + subBuilder.MergeFrom(NewVideoSource); + } + input.ReadMessage(subBuilder); + NewVideoSource = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.CaptureVideoFrameResponse subBuilder = new global::LiveKit.Proto.CaptureVideoFrameResponse(); + if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { + subBuilder.MergeFrom(CaptureVideoFrame); + } + input.ReadMessage(subBuilder); + CaptureVideoFrame = subBuilder; + break; + } + case 154: { global::LiveKit.Proto.ToI420Response subBuilder = new global::LiveKit.Proto.ToI420Response(); if (messageCase_ == MessageOneofCase.ToI420) { subBuilder.MergeFrom(ToI420); @@ -2356,8 +2981,8 @@ public void MergeFrom(pb::CodedInputStream input) { ToI420 = subBuilder; break; } - case 114: { - global::LiveKit.Proto.ToARGBResponse subBuilder = new global::LiveKit.Proto.ToARGBResponse(); + case 162: { + global::LiveKit.Proto.ToArgbResponse subBuilder = new global::LiveKit.Proto.ToArgbResponse(); if (messageCase_ == MessageOneofCase.ToArgb) { subBuilder.MergeFrom(ToArgb); } @@ -2365,7 +2990,7 @@ public void MergeFrom(pb::CodedInputStream input) { ToArgb = subBuilder; break; } - case 122: { + case 170: { global::LiveKit.Proto.AllocAudioBufferResponse subBuilder = new global::LiveKit.Proto.AllocAudioBufferResponse(); if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { subBuilder.MergeFrom(AllocAudioBuffer); @@ -2374,7 +2999,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocAudioBuffer = subBuilder; break; } - case 130: { + case 178: { global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -2383,7 +3008,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 138: { + case 186: { global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -2392,7 +3017,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 146: { + case 194: { global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -2401,7 +3026,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 154: { + case 202: { global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -2410,7 +3035,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 162: { + case 210: { global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -2419,6 +3044,15 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } + case 218: { + global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); + if (messageCase_ == MessageOneofCase.E2Ee) { + subBuilder.MergeFrom(E2Ee); + } + input.ReadMessage(subBuilder); + E2Ee = subBuilder; + break; + } } } #endif @@ -2434,15 +3068,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - global::LiveKit.Proto.InitializeResponse subBuilder = new global::LiveKit.Proto.InitializeResponse(); - if (messageCase_ == MessageOneofCase.Initialize) { - subBuilder.MergeFrom(Initialize); - } - input.ReadMessage(subBuilder); - Initialize = subBuilder; - break; - } case 18: { global::LiveKit.Proto.DisposeResponse subBuilder = new global::LiveKit.Proto.DisposeResponse(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -2489,6 +3114,51 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 58: { + global::LiveKit.Proto.PublishDataResponse subBuilder = new global::LiveKit.Proto.PublishDataResponse(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); + } + input.ReadMessage(subBuilder); + PublishData = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.SetSubscribedResponse subBuilder = new global::LiveKit.Proto.SetSubscribedResponse(); + if (messageCase_ == MessageOneofCase.SetSubscribed) { + subBuilder.MergeFrom(SetSubscribed); + } + input.ReadMessage(subBuilder); + SetSubscribed = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.UpdateLocalMetadataResponse subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataResponse(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); + } + input.ReadMessage(subBuilder); + UpdateLocalMetadata = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.UpdateLocalNameResponse subBuilder = new global::LiveKit.Proto.UpdateLocalNameResponse(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); + } + input.ReadMessage(subBuilder); + UpdateLocalName = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.GetSessionStatsResponse subBuilder = new global::LiveKit.Proto.GetSessionStatsResponse(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); + } + input.ReadMessage(subBuilder); + GetSessionStats = subBuilder; + break; + } + case 98: { global::LiveKit.Proto.CreateVideoTrackResponse subBuilder = new global::LiveKit.Proto.CreateVideoTrackResponse(); if (messageCase_ == MessageOneofCase.CreateVideoTrack) { subBuilder.MergeFrom(CreateVideoTrack); @@ -2497,7 +3167,7 @@ public void MergeFrom(pb::CodedInputStream input) { CreateVideoTrack = subBuilder; break; } - case 66: { + case 106: { global::LiveKit.Proto.CreateAudioTrackResponse subBuilder = new global::LiveKit.Proto.CreateAudioTrackResponse(); if (messageCase_ == MessageOneofCase.CreateAudioTrack) { subBuilder.MergeFrom(CreateAudioTrack); @@ -2506,7 +3176,16 @@ public void MergeFrom(pb::CodedInputStream input) { CreateAudioTrack = subBuilder; break; } - case 74: { + case 114: { + global::LiveKit.Proto.GetStatsResponse subBuilder = new global::LiveKit.Proto.GetStatsResponse(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { global::LiveKit.Proto.AllocVideoBufferResponse subBuilder = new global::LiveKit.Proto.AllocVideoBufferResponse(); if (messageCase_ == MessageOneofCase.AllocVideoBuffer) { subBuilder.MergeFrom(AllocVideoBuffer); @@ -2515,7 +3194,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocVideoBuffer = subBuilder; break; } - case 82: { + case 130: { global::LiveKit.Proto.NewVideoStreamResponse subBuilder = new global::LiveKit.Proto.NewVideoStreamResponse(); if (messageCase_ == MessageOneofCase.NewVideoStream) { subBuilder.MergeFrom(NewVideoStream); @@ -2524,7 +3203,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoStream = subBuilder; break; } - case 90: { + case 138: { global::LiveKit.Proto.NewVideoSourceResponse subBuilder = new global::LiveKit.Proto.NewVideoSourceResponse(); if (messageCase_ == MessageOneofCase.NewVideoSource) { subBuilder.MergeFrom(NewVideoSource); @@ -2533,7 +3212,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewVideoSource = subBuilder; break; } - case 98: { + case 146: { global::LiveKit.Proto.CaptureVideoFrameResponse subBuilder = new global::LiveKit.Proto.CaptureVideoFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureVideoFrame) { subBuilder.MergeFrom(CaptureVideoFrame); @@ -2542,7 +3221,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureVideoFrame = subBuilder; break; } - case 106: { + case 154: { global::LiveKit.Proto.ToI420Response subBuilder = new global::LiveKit.Proto.ToI420Response(); if (messageCase_ == MessageOneofCase.ToI420) { subBuilder.MergeFrom(ToI420); @@ -2551,8 +3230,8 @@ public void MergeFrom(pb::CodedInputStream input) { ToI420 = subBuilder; break; } - case 114: { - global::LiveKit.Proto.ToARGBResponse subBuilder = new global::LiveKit.Proto.ToARGBResponse(); + case 162: { + global::LiveKit.Proto.ToArgbResponse subBuilder = new global::LiveKit.Proto.ToArgbResponse(); if (messageCase_ == MessageOneofCase.ToArgb) { subBuilder.MergeFrom(ToArgb); } @@ -2560,7 +3239,7 @@ public void MergeFrom(pb::CodedInputStream input) { ToArgb = subBuilder; break; } - case 122: { + case 170: { global::LiveKit.Proto.AllocAudioBufferResponse subBuilder = new global::LiveKit.Proto.AllocAudioBufferResponse(); if (messageCase_ == MessageOneofCase.AllocAudioBuffer) { subBuilder.MergeFrom(AllocAudioBuffer); @@ -2569,7 +3248,7 @@ public void MergeFrom(pb::CodedInputStream input) { AllocAudioBuffer = subBuilder; break; } - case 130: { + case 178: { global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); if (messageCase_ == MessageOneofCase.NewAudioStream) { subBuilder.MergeFrom(NewAudioStream); @@ -2578,7 +3257,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioStream = subBuilder; break; } - case 138: { + case 186: { global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); if (messageCase_ == MessageOneofCase.NewAudioSource) { subBuilder.MergeFrom(NewAudioSource); @@ -2587,7 +3266,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioSource = subBuilder; break; } - case 146: { + case 194: { global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { subBuilder.MergeFrom(CaptureAudioFrame); @@ -2596,7 +3275,7 @@ public void MergeFrom(pb::CodedInputStream input) { CaptureAudioFrame = subBuilder; break; } - case 154: { + case 202: { global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -2605,7 +3284,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 162: { + case 210: { global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -2614,6 +3293,15 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } + case 218: { + global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); + if (messageCase_ == MessageOneofCase.E2Ee) { + subBuilder.MergeFrom(E2Ee); + } + input.ReadMessage(subBuilder); + E2Ee = subBuilder; + break; + } } } } @@ -2621,16 +3309,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class FFIEvent : pb::IMessage + /// + /// To minimize complexity, participant events are not included in the protocol. + /// It is easily deducible from the room events and it turned out that is is easier to implement + /// on the ffi client side. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FfiEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FFIEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FfiEvent()); 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)] @@ -2646,7 +3340,7 @@ public sealed partial class FFIEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIEvent() { + public FfiEvent() { OnConstruction(); } @@ -2654,7 +3348,7 @@ public FFIEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIEvent(FFIEvent other) : this() { + public FfiEvent(FfiEvent other) : this() { switch (other.MessageCase) { case MessageOneofCase.RoomEvent: RoomEvent = other.RoomEvent.Clone(); @@ -2662,9 +3356,6 @@ public FFIEvent(FFIEvent other) : this() { case MessageOneofCase.TrackEvent: TrackEvent = other.TrackEvent.Clone(); break; - case MessageOneofCase.ParticipantEvent: - ParticipantEvent = other.ParticipantEvent.Clone(); - break; case MessageOneofCase.VideoStreamEvent: VideoStreamEvent = other.VideoStreamEvent.Clone(); break; @@ -2674,12 +3365,39 @@ public FFIEvent(FFIEvent other) : this() { case MessageOneofCase.Connect: Connect = other.Connect.Clone(); break; + case MessageOneofCase.Disconnect: + Disconnect = other.Disconnect.Clone(); + break; case MessageOneofCase.Dispose: Dispose = other.Dispose.Clone(); break; case MessageOneofCase.PublishTrack: PublishTrack = other.PublishTrack.Clone(); break; + case MessageOneofCase.UnpublishTrack: + UnpublishTrack = other.UnpublishTrack.Clone(); + break; + case MessageOneofCase.PublishData: + PublishData = other.PublishData.Clone(); + break; + case MessageOneofCase.CaptureAudioFrame: + CaptureAudioFrame = other.CaptureAudioFrame.Clone(); + break; + case MessageOneofCase.UpdateLocalMetadata: + UpdateLocalMetadata = other.UpdateLocalMetadata.Clone(); + break; + case MessageOneofCase.UpdateLocalName: + UpdateLocalName = other.UpdateLocalName.Clone(); + break; + case MessageOneofCase.GetStats: + GetStats = other.GetStats.Clone(); + break; + case MessageOneofCase.Logs: + Logs = other.Logs.Clone(); + break; + case MessageOneofCase.GetSessionStats: + GetSessionStats = other.GetSessionStats.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2687,8 +3405,8 @@ public FFIEvent(FFIEvent other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIEvent Clone() { - return new FFIEvent(this); + public FfiEvent Clone() { + return new FfiEvent(this); } /// Field number for the "room_event" field. @@ -2715,20 +3433,8 @@ public FFIEvent Clone() { } } - /// Field number for the "participant_event" field. - public const int ParticipantEventFieldNumber = 3; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantEvent ParticipantEvent { - get { return messageCase_ == MessageOneofCase.ParticipantEvent ? (global::LiveKit.Proto.ParticipantEvent) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantEvent; - } - } - /// Field number for the "video_stream_event" field. - public const int VideoStreamEventFieldNumber = 4; + public const int VideoStreamEventFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoStreamEvent VideoStreamEvent { @@ -2740,7 +3446,7 @@ public FFIEvent Clone() { } /// Field number for the "audio_stream_event" field. - public const int AudioStreamEventFieldNumber = 5; + public const int AudioStreamEventFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioStreamEvent AudioStreamEvent { @@ -2752,7 +3458,7 @@ public FFIEvent Clone() { } /// Field number for the "connect" field. - public const int ConnectFieldNumber = 6; + public const int ConnectFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.ConnectCallback Connect { @@ -2763,6 +3469,18 @@ public FFIEvent Clone() { } } + /// Field number for the "disconnect" field. + public const int DisconnectFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DisconnectCallback Disconnect { + get { return messageCase_ == MessageOneofCase.Disconnect ? (global::LiveKit.Proto.DisconnectCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Disconnect; + } + } + /// Field number for the "dispose" field. public const int DisposeFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2787,18 +3505,122 @@ public FFIEvent Clone() { } } + /// Field number for the "unpublish_track" field. + public const int UnpublishTrackFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.UnpublishTrackCallback UnpublishTrack { + get { return messageCase_ == MessageOneofCase.UnpublishTrack ? (global::LiveKit.Proto.UnpublishTrackCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UnpublishTrack; + } + } + + /// Field number for the "publish_data" field. + public const int PublishDataFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PublishDataCallback PublishData { + get { return messageCase_ == MessageOneofCase.PublishData ? (global::LiveKit.Proto.PublishDataCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PublishData; + } + } + + /// Field number for the "capture_audio_frame" field. + public const int CaptureAudioFrameFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.CaptureAudioFrameCallback CaptureAudioFrame { + get { return messageCase_ == MessageOneofCase.CaptureAudioFrame ? (global::LiveKit.Proto.CaptureAudioFrameCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.CaptureAudioFrame; + } + } + + /// Field number for the "update_local_metadata" field. + public const int UpdateLocalMetadataFieldNumber = 12; + [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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalMetadata; + } + } + + /// Field number for the "update_local_name" field. + public const int UpdateLocalNameFieldNumber = 13; + [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; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UpdateLocalName; + } + } + + /// Field number for the "get_stats" field. + public const int GetStatsFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetStatsCallback GetStats { + get { return messageCase_ == MessageOneofCase.GetStats ? (global::LiveKit.Proto.GetStatsCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetStats; + } + } + + /// Field number for the "logs" field. + public const int LogsFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LogBatch Logs { + get { return messageCase_ == MessageOneofCase.Logs ? (global::LiveKit.Proto.LogBatch) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Logs; + } + } + + /// Field number for the "get_session_stats" field. + public const int GetSessionStatsFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.GetSessionStatsCallback GetSessionStats { + get { return messageCase_ == MessageOneofCase.GetSessionStats ? (global::LiveKit.Proto.GetSessionStatsCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.GetSessionStats; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { None = 0, RoomEvent = 1, TrackEvent = 2, - ParticipantEvent = 3, - VideoStreamEvent = 4, - AudioStreamEvent = 5, - Connect = 6, + VideoStreamEvent = 3, + AudioStreamEvent = 4, + Connect = 5, + Disconnect = 6, Dispose = 7, PublishTrack = 8, + UnpublishTrack = 9, + PublishData = 10, + CaptureAudioFrame = 11, + UpdateLocalMetadata = 12, + UpdateLocalName = 13, + GetStats = 14, + Logs = 15, + GetSessionStats = 16, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2817,12 +3639,12 @@ public void ClearMessage() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FFIEvent); + return Equals(other as FfiEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FFIEvent other) { + public bool Equals(FfiEvent other) { if (ReferenceEquals(other, null)) { return false; } @@ -2831,12 +3653,20 @@ public bool Equals(FFIEvent other) { } if (!object.Equals(RoomEvent, other.RoomEvent)) return false; if (!object.Equals(TrackEvent, other.TrackEvent)) return false; - if (!object.Equals(ParticipantEvent, other.ParticipantEvent)) return false; if (!object.Equals(VideoStreamEvent, other.VideoStreamEvent)) return false; if (!object.Equals(AudioStreamEvent, other.AudioStreamEvent)) return false; if (!object.Equals(Connect, other.Connect)) return false; + if (!object.Equals(Disconnect, other.Disconnect)) return false; if (!object.Equals(Dispose, other.Dispose)) return false; if (!object.Equals(PublishTrack, other.PublishTrack)) return false; + if (!object.Equals(UnpublishTrack, other.UnpublishTrack)) return false; + if (!object.Equals(PublishData, other.PublishData)) 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(GetStats, other.GetStats)) return false; + if (!object.Equals(Logs, other.Logs)) return false; + if (!object.Equals(GetSessionStats, other.GetSessionStats)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2847,12 +3677,20 @@ public override int GetHashCode() { int hash = 1; if (messageCase_ == MessageOneofCase.RoomEvent) hash ^= RoomEvent.GetHashCode(); if (messageCase_ == MessageOneofCase.TrackEvent) hash ^= TrackEvent.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantEvent) hash ^= ParticipantEvent.GetHashCode(); if (messageCase_ == MessageOneofCase.VideoStreamEvent) hash ^= VideoStreamEvent.GetHashCode(); if (messageCase_ == MessageOneofCase.AudioStreamEvent) hash ^= AudioStreamEvent.GetHashCode(); if (messageCase_ == MessageOneofCase.Connect) hash ^= Connect.GetHashCode(); + if (messageCase_ == MessageOneofCase.Disconnect) hash ^= Disconnect.GetHashCode(); if (messageCase_ == MessageOneofCase.Dispose) hash ^= Dispose.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishTrack) hash ^= PublishTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.UnpublishTrack) hash ^= UnpublishTrack.GetHashCode(); + if (messageCase_ == MessageOneofCase.PublishData) hash ^= PublishData.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.GetStats) hash ^= GetStats.GetHashCode(); + if (messageCase_ == MessageOneofCase.Logs) hash ^= Logs.GetHashCode(); + if (messageCase_ == MessageOneofCase.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2880,22 +3718,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(TrackEvent); } - if (messageCase_ == MessageOneofCase.ParticipantEvent) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantEvent); - } if (messageCase_ == MessageOneofCase.VideoStreamEvent) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteMessage(VideoStreamEvent); } if (messageCase_ == MessageOneofCase.AudioStreamEvent) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteMessage(AudioStreamEvent); } if (messageCase_ == MessageOneofCase.Connect) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteMessage(Connect); } + if (messageCase_ == MessageOneofCase.Disconnect) { + output.WriteRawTag(50); + output.WriteMessage(Disconnect); + } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(58); output.WriteMessage(Dispose); @@ -2904,6 +3742,38 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(PublishTrack); } + if (messageCase_ == MessageOneofCase.UnpublishTrack) { + output.WriteRawTag(74); + output.WriteMessage(UnpublishTrack); + } + if (messageCase_ == MessageOneofCase.PublishData) { + output.WriteRawTag(82); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + output.WriteRawTag(90); + output.WriteMessage(CaptureAudioFrame); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(98); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(106); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } + if (messageCase_ == MessageOneofCase.Logs) { + output.WriteRawTag(122); + output.WriteMessage(Logs); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(130, 1); + output.WriteMessage(GetSessionStats); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2922,22 +3792,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(TrackEvent); } - if (messageCase_ == MessageOneofCase.ParticipantEvent) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantEvent); - } if (messageCase_ == MessageOneofCase.VideoStreamEvent) { - output.WriteRawTag(34); + output.WriteRawTag(26); output.WriteMessage(VideoStreamEvent); } if (messageCase_ == MessageOneofCase.AudioStreamEvent) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteMessage(AudioStreamEvent); } if (messageCase_ == MessageOneofCase.Connect) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteMessage(Connect); } + if (messageCase_ == MessageOneofCase.Disconnect) { + output.WriteRawTag(50); + output.WriteMessage(Disconnect); + } if (messageCase_ == MessageOneofCase.Dispose) { output.WriteRawTag(58); output.WriteMessage(Dispose); @@ -2946,6 +3816,38 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(66); output.WriteMessage(PublishTrack); } + if (messageCase_ == MessageOneofCase.UnpublishTrack) { + output.WriteRawTag(74); + output.WriteMessage(UnpublishTrack); + } + if (messageCase_ == MessageOneofCase.PublishData) { + output.WriteRawTag(82); + output.WriteMessage(PublishData); + } + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + output.WriteRawTag(90); + output.WriteMessage(CaptureAudioFrame); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + output.WriteRawTag(98); + output.WriteMessage(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + output.WriteRawTag(106); + output.WriteMessage(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetStats) { + output.WriteRawTag(114); + output.WriteMessage(GetStats); + } + if (messageCase_ == MessageOneofCase.Logs) { + output.WriteRawTag(122); + output.WriteMessage(Logs); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + output.WriteRawTag(130, 1); + output.WriteMessage(GetSessionStats); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2962,9 +3864,6 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.TrackEvent) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackEvent); } - if (messageCase_ == MessageOneofCase.ParticipantEvent) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantEvent); - } if (messageCase_ == MessageOneofCase.VideoStreamEvent) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoStreamEvent); } @@ -2974,12 +3873,39 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.Connect) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Connect); } + if (messageCase_ == MessageOneofCase.Disconnect) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Disconnect); + } if (messageCase_ == MessageOneofCase.Dispose) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dispose); } if (messageCase_ == MessageOneofCase.PublishTrack) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishTrack); } + if (messageCase_ == MessageOneofCase.UnpublishTrack) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnpublishTrack); + } + if (messageCase_ == MessageOneofCase.PublishData) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublishData); + } + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptureAudioFrame); + } + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalMetadata); + } + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateLocalName); + } + if (messageCase_ == MessageOneofCase.GetStats) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetStats); + } + if (messageCase_ == MessageOneofCase.Logs) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Logs); + } + if (messageCase_ == MessageOneofCase.GetSessionStats) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetSessionStats); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2988,7 +3914,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FFIEvent other) { + public void MergeFrom(FfiEvent other) { if (other == null) { return; } @@ -3005,12 +3931,6 @@ public void MergeFrom(FFIEvent other) { } TrackEvent.MergeFrom(other.TrackEvent); break; - case MessageOneofCase.ParticipantEvent: - if (ParticipantEvent == null) { - ParticipantEvent = new global::LiveKit.Proto.ParticipantEvent(); - } - ParticipantEvent.MergeFrom(other.ParticipantEvent); - break; case MessageOneofCase.VideoStreamEvent: if (VideoStreamEvent == null) { VideoStreamEvent = new global::LiveKit.Proto.VideoStreamEvent(); @@ -3029,6 +3949,12 @@ public void MergeFrom(FFIEvent other) { } Connect.MergeFrom(other.Connect); break; + case MessageOneofCase.Disconnect: + if (Disconnect == null) { + Disconnect = new global::LiveKit.Proto.DisconnectCallback(); + } + Disconnect.MergeFrom(other.Disconnect); + break; case MessageOneofCase.Dispose: if (Dispose == null) { Dispose = new global::LiveKit.Proto.DisposeCallback(); @@ -3041,6 +3967,54 @@ public void MergeFrom(FFIEvent other) { } PublishTrack.MergeFrom(other.PublishTrack); break; + case MessageOneofCase.UnpublishTrack: + if (UnpublishTrack == null) { + UnpublishTrack = new global::LiveKit.Proto.UnpublishTrackCallback(); + } + UnpublishTrack.MergeFrom(other.UnpublishTrack); + break; + case MessageOneofCase.PublishData: + if (PublishData == null) { + PublishData = new global::LiveKit.Proto.PublishDataCallback(); + } + PublishData.MergeFrom(other.PublishData); + break; + case MessageOneofCase.CaptureAudioFrame: + if (CaptureAudioFrame == null) { + CaptureAudioFrame = new global::LiveKit.Proto.CaptureAudioFrameCallback(); + } + CaptureAudioFrame.MergeFrom(other.CaptureAudioFrame); + break; + case MessageOneofCase.UpdateLocalMetadata: + if (UpdateLocalMetadata == null) { + UpdateLocalMetadata = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); + } + UpdateLocalMetadata.MergeFrom(other.UpdateLocalMetadata); + break; + case MessageOneofCase.UpdateLocalName: + if (UpdateLocalName == null) { + UpdateLocalName = new global::LiveKit.Proto.UpdateLocalNameCallback(); + } + UpdateLocalName.MergeFrom(other.UpdateLocalName); + break; + case MessageOneofCase.GetStats: + if (GetStats == null) { + GetStats = new global::LiveKit.Proto.GetStatsCallback(); + } + GetStats.MergeFrom(other.GetStats); + break; + case MessageOneofCase.Logs: + if (Logs == null) { + Logs = new global::LiveKit.Proto.LogBatch(); + } + Logs.MergeFrom(other.Logs); + break; + case MessageOneofCase.GetSessionStats: + if (GetSessionStats == null) { + GetSessionStats = new global::LiveKit.Proto.GetSessionStatsCallback(); + } + GetSessionStats.MergeFrom(other.GetSessionStats); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3077,15 +4051,6 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - global::LiveKit.Proto.ParticipantEvent subBuilder = new global::LiveKit.Proto.ParticipantEvent(); - if (messageCase_ == MessageOneofCase.ParticipantEvent) { - subBuilder.MergeFrom(ParticipantEvent); - } - input.ReadMessage(subBuilder); - ParticipantEvent = subBuilder; - break; - } - case 34: { global::LiveKit.Proto.VideoStreamEvent subBuilder = new global::LiveKit.Proto.VideoStreamEvent(); if (messageCase_ == MessageOneofCase.VideoStreamEvent) { subBuilder.MergeFrom(VideoStreamEvent); @@ -3094,7 +4059,7 @@ public void MergeFrom(pb::CodedInputStream input) { VideoStreamEvent = subBuilder; break; } - case 42: { + case 34: { global::LiveKit.Proto.AudioStreamEvent subBuilder = new global::LiveKit.Proto.AudioStreamEvent(); if (messageCase_ == MessageOneofCase.AudioStreamEvent) { subBuilder.MergeFrom(AudioStreamEvent); @@ -3103,7 +4068,7 @@ public void MergeFrom(pb::CodedInputStream input) { AudioStreamEvent = subBuilder; break; } - case 50: { + case 42: { global::LiveKit.Proto.ConnectCallback subBuilder = new global::LiveKit.Proto.ConnectCallback(); if (messageCase_ == MessageOneofCase.Connect) { subBuilder.MergeFrom(Connect); @@ -3112,6 +4077,15 @@ public void MergeFrom(pb::CodedInputStream input) { Connect = subBuilder; break; } + case 50: { + global::LiveKit.Proto.DisconnectCallback subBuilder = new global::LiveKit.Proto.DisconnectCallback(); + if (messageCase_ == MessageOneofCase.Disconnect) { + subBuilder.MergeFrom(Disconnect); + } + input.ReadMessage(subBuilder); + Disconnect = subBuilder; + break; + } case 58: { global::LiveKit.Proto.DisposeCallback subBuilder = new global::LiveKit.Proto.DisposeCallback(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -3130,6 +4104,78 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTrack = subBuilder; break; } + case 74: { + global::LiveKit.Proto.UnpublishTrackCallback subBuilder = new global::LiveKit.Proto.UnpublishTrackCallback(); + if (messageCase_ == MessageOneofCase.UnpublishTrack) { + subBuilder.MergeFrom(UnpublishTrack); + } + input.ReadMessage(subBuilder); + UnpublishTrack = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.PublishDataCallback subBuilder = new global::LiveKit.Proto.PublishDataCallback(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); + } + input.ReadMessage(subBuilder); + PublishData = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.CaptureAudioFrameCallback subBuilder = new global::LiveKit.Proto.CaptureAudioFrameCallback(); + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + subBuilder.MergeFrom(CaptureAudioFrame); + } + input.ReadMessage(subBuilder); + CaptureAudioFrame = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.UpdateLocalMetadataCallback subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); + } + input.ReadMessage(subBuilder); + UpdateLocalMetadata = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.UpdateLocalNameCallback subBuilder = new global::LiveKit.Proto.UpdateLocalNameCallback(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); + } + input.ReadMessage(subBuilder); + UpdateLocalName = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.GetStatsCallback subBuilder = new global::LiveKit.Proto.GetStatsCallback(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.LogBatch subBuilder = new global::LiveKit.Proto.LogBatch(); + if (messageCase_ == MessageOneofCase.Logs) { + subBuilder.MergeFrom(Logs); + } + input.ReadMessage(subBuilder); + Logs = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.GetSessionStatsCallback subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); + } + input.ReadMessage(subBuilder); + GetSessionStats = subBuilder; + break; + } } } #endif @@ -3164,15 +4210,6 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - global::LiveKit.Proto.ParticipantEvent subBuilder = new global::LiveKit.Proto.ParticipantEvent(); - if (messageCase_ == MessageOneofCase.ParticipantEvent) { - subBuilder.MergeFrom(ParticipantEvent); - } - input.ReadMessage(subBuilder); - ParticipantEvent = subBuilder; - break; - } - case 34: { global::LiveKit.Proto.VideoStreamEvent subBuilder = new global::LiveKit.Proto.VideoStreamEvent(); if (messageCase_ == MessageOneofCase.VideoStreamEvent) { subBuilder.MergeFrom(VideoStreamEvent); @@ -3181,7 +4218,7 @@ public void MergeFrom(pb::CodedInputStream input) { VideoStreamEvent = subBuilder; break; } - case 42: { + case 34: { global::LiveKit.Proto.AudioStreamEvent subBuilder = new global::LiveKit.Proto.AudioStreamEvent(); if (messageCase_ == MessageOneofCase.AudioStreamEvent) { subBuilder.MergeFrom(AudioStreamEvent); @@ -3190,7 +4227,7 @@ public void MergeFrom(pb::CodedInputStream input) { AudioStreamEvent = subBuilder; break; } - case 50: { + case 42: { global::LiveKit.Proto.ConnectCallback subBuilder = new global::LiveKit.Proto.ConnectCallback(); if (messageCase_ == MessageOneofCase.Connect) { subBuilder.MergeFrom(Connect); @@ -3199,6 +4236,15 @@ public void MergeFrom(pb::CodedInputStream input) { Connect = subBuilder; break; } + case 50: { + global::LiveKit.Proto.DisconnectCallback subBuilder = new global::LiveKit.Proto.DisconnectCallback(); + if (messageCase_ == MessageOneofCase.Disconnect) { + subBuilder.MergeFrom(Disconnect); + } + input.ReadMessage(subBuilder); + Disconnect = subBuilder; + break; + } case 58: { global::LiveKit.Proto.DisposeCallback subBuilder = new global::LiveKit.Proto.DisposeCallback(); if (messageCase_ == MessageOneofCase.Dispose) { @@ -3217,6 +4263,78 @@ public void MergeFrom(pb::CodedInputStream input) { PublishTrack = subBuilder; break; } + case 74: { + global::LiveKit.Proto.UnpublishTrackCallback subBuilder = new global::LiveKit.Proto.UnpublishTrackCallback(); + if (messageCase_ == MessageOneofCase.UnpublishTrack) { + subBuilder.MergeFrom(UnpublishTrack); + } + input.ReadMessage(subBuilder); + UnpublishTrack = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.PublishDataCallback subBuilder = new global::LiveKit.Proto.PublishDataCallback(); + if (messageCase_ == MessageOneofCase.PublishData) { + subBuilder.MergeFrom(PublishData); + } + input.ReadMessage(subBuilder); + PublishData = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.CaptureAudioFrameCallback subBuilder = new global::LiveKit.Proto.CaptureAudioFrameCallback(); + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + subBuilder.MergeFrom(CaptureAudioFrame); + } + input.ReadMessage(subBuilder); + CaptureAudioFrame = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.UpdateLocalMetadataCallback subBuilder = new global::LiveKit.Proto.UpdateLocalMetadataCallback(); + if (messageCase_ == MessageOneofCase.UpdateLocalMetadata) { + subBuilder.MergeFrom(UpdateLocalMetadata); + } + input.ReadMessage(subBuilder); + UpdateLocalMetadata = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.UpdateLocalNameCallback subBuilder = new global::LiveKit.Proto.UpdateLocalNameCallback(); + if (messageCase_ == MessageOneofCase.UpdateLocalName) { + subBuilder.MergeFrom(UpdateLocalName); + } + input.ReadMessage(subBuilder); + UpdateLocalName = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.GetStatsCallback subBuilder = new global::LiveKit.Proto.GetStatsCallback(); + if (messageCase_ == MessageOneofCase.GetStats) { + subBuilder.MergeFrom(GetStats); + } + input.ReadMessage(subBuilder); + GetStats = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.LogBatch subBuilder = new global::LiveKit.Proto.LogBatch(); + if (messageCase_ == MessageOneofCase.Logs) { + subBuilder.MergeFrom(Logs); + } + input.ReadMessage(subBuilder); + Logs = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.GetSessionStatsCallback subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback(); + if (messageCase_ == MessageOneofCase.GetSessionStats) { + subBuilder.MergeFrom(GetSessionStats); + } + input.ReadMessage(subBuilder); + GetSessionStats = subBuilder; + break; + } } } } @@ -3225,19 +4343,21 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Setup the callback where the foreign language can receive events - /// and responses to asynchronous requests + /// Stop all rooms synchronously (Do we need async here?). + /// e.g: This is used for the Unity Editor after each assemblies reload. + /// TODO(theomonnom): Implement a debug mode where we can find all leaked handles? /// - public sealed partial class InitializeRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisposeRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeRequest()); 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)] @@ -3253,7 +4373,7 @@ public sealed partial class InitializeRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitializeRequest() { + public DisposeRequest() { OnConstruction(); } @@ -3261,45 +4381,45 @@ public InitializeRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitializeRequest(InitializeRequest other) : this() { - eventCallbackPtr_ = other.eventCallbackPtr_; + public DisposeRequest(DisposeRequest other) : this() { + async_ = other.async_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitializeRequest Clone() { - return new InitializeRequest(this); + public DisposeRequest Clone() { + return new DisposeRequest(this); } - /// Field number for the "event_callback_ptr" field. - public const int EventCallbackPtrFieldNumber = 1; - private ulong eventCallbackPtr_; + /// Field number for the "async" field. + public const int AsyncFieldNumber = 1; + private bool async_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong EventCallbackPtr { - get { return eventCallbackPtr_; } + public bool Async { + get { return async_; } set { - eventCallbackPtr_ = value; + async_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as InitializeRequest); + return Equals(other as DisposeRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InitializeRequest other) { + public bool Equals(DisposeRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (EventCallbackPtr != other.EventCallbackPtr) return false; + if (Async != other.Async) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3307,7 +4427,7 @@ public bool Equals(InitializeRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (EventCallbackPtr != 0UL) hash ^= EventCallbackPtr.GetHashCode(); + if (Async != false) hash ^= Async.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3326,9 +4446,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (EventCallbackPtr != 0UL) { + if (Async != false) { output.WriteRawTag(8); - output.WriteUInt64(EventCallbackPtr); + output.WriteBool(Async); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3340,9 +4460,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 (EventCallbackPtr != 0UL) { + if (Async != false) { output.WriteRawTag(8); - output.WriteUInt64(EventCallbackPtr); + output.WriteBool(Async); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3354,8 +4474,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (EventCallbackPtr != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EventCallbackPtr); + if (Async != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3365,12 +4485,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InitializeRequest other) { + public void MergeFrom(DisposeRequest other) { if (other == null) { return; } - if (other.EventCallbackPtr != 0UL) { - EventCallbackPtr = other.EventCallbackPtr; + if (other.Async != false) { + Async = other.Async; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3388,7 +4508,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - EventCallbackPtr = input.ReadUInt64(); + Async = input.ReadBool(); break; } } @@ -3407,7 +4527,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - EventCallbackPtr = input.ReadUInt64(); + Async = input.ReadBool(); break; } } @@ -3417,16 +4537,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class InitializeResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisposeResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeResponse()); 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)] @@ -3442,7 +4564,7 @@ public sealed partial class InitializeResponse : pb::IMessageField number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; + /// + /// None if sync + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AsyncId { + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } + set { + _hasBits0 |= 1; + asyncId_ = value; + } + } + /// Gets whether the "async_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAsyncId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "async_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAsyncId() { + _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as InitializeResponse); + return Equals(other as DisposeResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InitializeResponse other) { + public bool Equals(DisposeResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3482,6 +4637,7 @@ public bool Equals(InitializeResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3500,6 +4656,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3510,6 +4670,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 (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3520,6 +4684,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3528,10 +4695,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InitializeResponse other) { + public void MergeFrom(DisposeResponse other) { if (other == null) { return; } + if (other.HasAsyncId) { + AsyncId = other.AsyncId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3547,6 +4717,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } #endif @@ -3562,6 +4736,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } } @@ -3569,20 +4747,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Stop all rooms synchronously (Do we need async here?). - /// e.g: This is used for the Unity Editor after each assemblies reload. - /// - public sealed partial class DisposeRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisposeCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeCallback()); 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)] @@ -3598,7 +4773,7 @@ public sealed partial class DisposeRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeRequest() { + public DisposeCallback() { OnConstruction(); } @@ -3606,45 +4781,45 @@ public DisposeRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeRequest(DisposeRequest other) : this() { - async_ = other.async_; + public DisposeCallback(DisposeCallback other) : this() { + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeRequest Clone() { - return new DisposeRequest(this); + public DisposeCallback Clone() { + return new DisposeCallback(this); } - /// Field number for the "async" field. - public const int AsyncFieldNumber = 1; - private bool async_; + /// 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 bool Async { - get { return async_; } + public ulong AsyncId { + get { return asyncId_; } set { - async_ = value; + asyncId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DisposeRequest); + return Equals(other as DisposeCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisposeRequest other) { + public bool Equals(DisposeCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Async != other.Async) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3652,7 +4827,7 @@ public bool Equals(DisposeRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Async != false) hash ^= Async.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3671,9 +4846,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Async != false) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteBool(Async); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3685,9 +4860,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 (Async != false) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteBool(Async); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3699,8 +4874,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Async != false) { - size += 1 + 1; + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3710,12 +4885,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisposeRequest other) { + public void MergeFrom(DisposeCallback other) { if (other == null) { return; } - if (other.Async != false) { - Async = other.Async; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3733,7 +4908,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Async = input.ReadBool(); + AsyncId = input.ReadUInt64(); break; } } @@ -3752,7 +4927,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Async = input.ReadBool(); + AsyncId = input.ReadUInt64(); break; } } @@ -3762,16 +4937,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DisposeResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LogRecord : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogRecord()); 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)] @@ -3787,7 +4964,7 @@ public sealed partial class DisposeResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeResponse() { + public LogRecord() { OnConstruction(); } @@ -3795,48 +4972,162 @@ public DisposeResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeResponse(DisposeResponse other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + public LogRecord(LogRecord other) : this() { + _hasBits0 = other._hasBits0; + level_ = other.level_; + target_ = other.target_; + modulePath_ = other.modulePath_; + file_ = other.file_; + line_ = other.line_; + message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeResponse Clone() { - return new DisposeResponse(this); + public LogRecord Clone() { + return new LogRecord(this); } - /// Field number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + /// Field number for the "level" field. + public const int LevelFieldNumber = 1; + private global::LiveKit.Proto.LogLevel level_ = global::LiveKit.Proto.LogLevel.LogError; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LogLevel Level { + get { return level_; } + set { + level_ = value; + } + } + + /// Field number for the "target" field. + public const int TargetFieldNumber = 2; + private string target_ = ""; /// - /// None if sync + /// e.g "livekit", "libwebrtc", "tokio-tungstenite", etc... /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { - get { return asyncId_; } + public string Target { + get { return target_; } set { - asyncId_ = value; + target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "module_path" field. + public const int ModulePathFieldNumber = 3; + private readonly static string ModulePathDefaultValue = ""; + + private string modulePath_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModulePath { + get { return modulePath_ ?? ModulePathDefaultValue; } + set { + modulePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "module_path" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasModulePath { + get { return modulePath_ != null; } + } + /// Clears the value of the "module_path" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearModulePath() { + modulePath_ = null; + } + + /// Field number for the "file" field. + public const int FileFieldNumber = 4; + private readonly static string FileDefaultValue = ""; + + private string file_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string File { + get { return file_ ?? FileDefaultValue; } + set { + file_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "file" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFile { + get { return file_ != null; } + } + /// Clears the value of the "file" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFile() { + file_ = null; + } + + /// Field number for the "line" field. + public const int LineFieldNumber = 5; + private readonly static uint LineDefaultValue = 0; + + private uint line_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Line { + get { if ((_hasBits0 & 1) != 0) { return line_; } else { return LineDefaultValue; } } + set { + _hasBits0 |= 1; + line_ = value; + } + } + /// Gets whether the "line" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLine { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "line" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLine() { + _hasBits0 &= ~1; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 6; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = 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 DisposeResponse); + return Equals(other as LogRecord); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisposeResponse other) { + public bool Equals(LogRecord other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (Level != other.Level) return false; + if (Target != other.Target) return false; + if (ModulePath != other.ModulePath) return false; + if (File != other.File) return false; + if (Line != other.Line) return false; + if (Message != other.Message) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3844,7 +5135,12 @@ public bool Equals(DisposeResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (Level != global::LiveKit.Proto.LogLevel.LogError) hash ^= Level.GetHashCode(); + if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (HasModulePath) hash ^= ModulePath.GetHashCode(); + if (HasFile) hash ^= File.GetHashCode(); + if (HasLine) hash ^= Line.GetHashCode(); + if (Message.Length != 0) hash ^= Message.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3863,9 +5159,29 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (Level != global::LiveKit.Proto.LogLevel.LogError) { + output.WriteRawTag(8); + output.WriteEnum((int) Level); + } + if (Target.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Target); + } + if (HasModulePath) { + output.WriteRawTag(26); + output.WriteString(ModulePath); + } + if (HasFile) { + output.WriteRawTag(34); + output.WriteString(File); + } + if (HasLine) { + output.WriteRawTag(40); + output.WriteUInt32(Line); + } + if (Message.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3877,9 +5193,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (Level != global::LiveKit.Proto.LogLevel.LogError) { + output.WriteRawTag(8); + output.WriteEnum((int) Level); + } + if (Target.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Target); + } + if (HasModulePath) { + output.WriteRawTag(26); + output.WriteString(ModulePath); + } + if (HasFile) { + output.WriteRawTag(34); + output.WriteString(File); + } + if (HasLine) { + output.WriteRawTag(40); + output.WriteUInt32(Line); + } + if (Message.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3891,8 +5227,23 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (Level != global::LiveKit.Proto.LogLevel.LogError) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); + } + if (Target.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Target); + } + if (HasModulePath) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModulePath); + } + if (HasFile) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(File); + } + if (HasLine) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Line); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3902,15 +5253,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisposeResponse other) { + public void MergeFrom(LogRecord other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.Level != global::LiveKit.Proto.LogLevel.LogError) { + Level = other.Level; + } + if (other.Target.Length != 0) { + Target = other.Target; + } + if (other.HasModulePath) { + ModulePath = other.ModulePath; + } + if (other.HasFile) { + File = other.File; + } + if (other.HasLine) { + Line = other.Line; + } + if (other.Message.Length != 0) { + Message = other.Message; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3927,11 +5290,28 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + Level = (global::LiveKit.Proto.LogLevel) input.ReadEnum(); + break; + } + case 18: { + Target = input.ReadString(); + break; + } + case 26: { + ModulePath = input.ReadString(); + break; + } + case 34: { + File = input.ReadString(); + break; + } + case 40: { + Line = input.ReadUInt32(); + break; + } + case 50: { + Message = input.ReadString(); break; } } @@ -3949,11 +5329,28 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + Level = (global::LiveKit.Proto.LogLevel) input.ReadEnum(); + break; + } + case 18: { + Target = input.ReadString(); + break; + } + case 26: { + ModulePath = input.ReadString(); + break; + } + case 34: { + File = input.ReadString(); + break; + } + case 40: { + Line = input.ReadUInt32(); + break; + } + case 50: { + Message = input.ReadString(); break; } } @@ -3963,16 +5360,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DisposeCallback : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LogBatch : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogBatch()); 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)] @@ -3988,7 +5386,7 @@ public sealed partial class DisposeCallback : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeCallback() { + public LogBatch() { OnConstruction(); } @@ -3996,45 +5394,44 @@ public DisposeCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeCallback(DisposeCallback other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + public LogBatch(LogBatch other) : this() { + records_ = other.records_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisposeCallback Clone() { - return new DisposeCallback(this); + public LogBatch Clone() { + return new LogBatch(this); } - /// Field number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + /// Field number for the "records" field. + public const int RecordsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_records_codec + = pb::FieldCodec.ForMessage(10, global::LiveKit.Proto.LogRecord.Parser); + private readonly pbc::RepeatedField records_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { - get { return asyncId_; } - set { - asyncId_ = value; - } + public pbc::RepeatedField Records { + get { return records_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DisposeCallback); + return Equals(other as LogBatch); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisposeCallback other) { + public bool Equals(LogBatch other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if(!records_.Equals(other.records_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4042,7 +5439,7 @@ public bool Equals(DisposeCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + hash ^= records_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4061,10 +5458,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); - } + records_.WriteTo(output, _repeated_records_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4075,10 +5469,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); - } + records_.WriteTo(ref output, _repeated_records_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4089,9 +5480,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); - } + size += records_.CalculateSize(_repeated_records_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4100,16 +5489,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisposeCallback other) { + public void MergeFrom(LogBatch other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); - } + records_.Add(other.records_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4126,10 +5510,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + records_.AddEntriesFrom(input, _repeated_records_codec); break; } } @@ -4148,10 +5529,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + records_.AddEntriesFrom(ref input, _repeated_records_codec); break; } } diff --git a/Runtime/Scripts/Proto/Handle.cs b/Runtime/Scripts/Proto/Handle.cs index a4c63ea..9f19e10 100644 --- a/Runtime/Scripts/Proto/Handle.cs +++ b/Runtime/Scripts/Proto/Handle.cs @@ -24,14 +24,12 @@ public static partial class HandleReflection { static HandleReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "CgxoYW5kbGUucHJvdG8SB2xpdmVraXQiGQoLRkZJSGFuZGxlSWQSCgoCaWQY", - "ASABKAQiGAoKRkZJQXN5bmNJZBIKCgJpZBgBIAEoBEIQqgINTGl2ZUtpdC5Q", - "cm90b2IGcHJvdG8z")); + "CgxoYW5kbGUucHJvdG8SDWxpdmVraXQucHJvdG8iHAoORmZpT3duZWRIYW5k", + "bGUSCgoCaWQYASABKARCEKoCDUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FFIHandleId), global::LiveKit.Proto.FFIHandleId.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FFIAsyncId), global::LiveKit.Proto.FFIAsyncId.Parser, new[]{ "Id" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FfiOwnedHandle), global::LiveKit.Proto.FfiOwnedHandle.Parser, new[]{ "Id" }, null, null, null, null) })); } #endregion @@ -39,21 +37,27 @@ static HandleReflection() { } #region Messages /// - //// # Safety - //// The foreign language is responsable for disposing handles - //// Forgetting to dispose the handle may lead to memory leaks - //// Messages in this file can contain an FFIHandle + /// # Safety + /// The foreign language is responsable for disposing handles + /// Forgetting to dispose the handle may lead to memory leaks + /// + /// Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used + /// on the FfiServer (Atomic reference counting) + /// + /// When refering to a handle without owning it, we just use a uint32 without this message. + /// (the variable name is suffixed with "_handle") /// - public sealed partial class FFIHandleId : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FfiOwnedHandle : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FFIHandleId()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FfiOwnedHandle()); 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)] @@ -69,7 +73,7 @@ public sealed partial class FFIHandleId : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIHandleId() { + public FfiOwnedHandle() { OnConstruction(); } @@ -77,15 +81,15 @@ public FFIHandleId() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIHandleId(FFIHandleId other) : this() { + public FfiOwnedHandle(FfiOwnedHandle other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIHandleId Clone() { - return new FFIHandleId(this); + public FfiOwnedHandle Clone() { + return new FfiOwnedHandle(this); } /// Field number for the "id" field. @@ -103,12 +107,12 @@ public ulong Id { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FFIHandleId); + return Equals(other as FfiOwnedHandle); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FFIHandleId other) { + public bool Equals(FfiOwnedHandle other) { if (ReferenceEquals(other, null)) { return false; } @@ -181,199 +185,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FFIHandleId other) { - if (other == null) { - return; - } - if (other.Id != 0UL) { - Id = other.Id; - } - _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: { - Id = 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: { - Id = input.ReadUInt64(); - break; - } - } - } - } - #endif - - } - - /// - //// Link the request/response of an asynchronous call - /// - public sealed partial class FFIAsyncId : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FFIAsyncId()); - 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.HandleReflection.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 FFIAsyncId() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIAsyncId(FFIAsyncId other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FFIAsyncId Clone() { - return new FFIAsyncId(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private ulong id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Id { - get { return id_; } - set { - id_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FFIAsyncId); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FFIAsyncId other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) 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 != 0UL) hash ^= Id.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 != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(Id); - } - 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 != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(Id); - } - 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 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FFIAsyncId other) { + public void MergeFrom(FfiOwnedHandle other) { if (other == null) { return; } diff --git a/Runtime/Scripts/Proto/Participant.cs b/Runtime/Scripts/Proto/Participant.cs index 10f73ad..15c3001 100644 --- a/Runtime/Scripts/Proto/Participant.cs +++ b/Runtime/Scripts/Proto/Participant.cs @@ -24,26 +24,24 @@ public static partial class ParticipantReflection { static ParticipantReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChFwYXJ0aWNpcGFudC5wcm90bxIHbGl2ZWtpdBoLdHJhY2sucHJvdG8ihQEK", - "D1BhcnRpY2lwYW50SW5mbxILCgNzaWQYASABKAkSDAoEbmFtZRgCIAEoCRIQ", - "CghpZGVudGl0eRgDIAEoCRIQCghtZXRhZGF0YRgEIAEoCRIzCgxwdWJsaWNh", - "dGlvbnMYBSADKAsyHS5saXZla2l0LlRyYWNrUHVibGljYXRpb25JbmZvIm4K", - "EFBhcnRpY2lwYW50RXZlbnQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJEjYK", - "EHNwZWFraW5nX2NoYW5nZWQYAiABKAsyGi5saXZla2l0LklzU3BlYWtpbmdD", - "aGFuZ2VkSABCCQoHbWVzc2FnZSIlChFJc1NwZWFraW5nQ2hhbmdlZBIQCghz", - "cGVha2luZxgBIAEoCEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", + "b3RvIlAKD1BhcnRpY2lwYW50SW5mbxILCgNzaWQYASABKAkSDAoEbmFtZRgC", + "IAEoCRIQCghpZGVudGl0eRgDIAEoCRIQCghtZXRhZGF0YRgEIAEoCSJvChBP", + "d25lZFBhcnRpY2lwYW50Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJv", + "dG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQucHJv", + "dG8uUGFydGljaXBhbnRJbmZvQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.TrackReflection.Descriptor, }, + 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", "Publications" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantEvent), global::LiveKit.Proto.ParticipantEvent.Parser, new[]{ "ParticipantSid", "SpeakingChanged" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.IsSpeakingChanged), global::LiveKit.Proto.IsSpeakingChanged.Parser, new[]{ "Speaking" }, null, null, null, null) + 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.OwnedParticipant), global::LiveKit.Proto.OwnedParticipant.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } #endregion } #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ParticipantInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -82,7 +80,6 @@ public ParticipantInfo(ParticipantInfo other) : this() { name_ = other.name_; identity_ = other.identity_; metadata_ = other.metadata_; - publications_ = other.publications_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -140,17 +137,6 @@ public string Metadata { } } - /// Field number for the "publications" field. - public const int PublicationsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_publications_codec - = pb::FieldCodec.ForMessage(42, global::LiveKit.Proto.TrackPublicationInfo.Parser); - private readonly pbc::RepeatedField publications_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Publications { - get { return publications_; } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -170,7 +156,6 @@ public bool Equals(ParticipantInfo other) { if (Name != other.Name) return false; if (Identity != other.Identity) return false; if (Metadata != other.Metadata) return false; - if(!publications_.Equals(other.publications_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -182,7 +167,6 @@ 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 ^= publications_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -217,7 +201,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Metadata); } - publications_.WriteTo(output, _repeated_publications_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -244,7 +227,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Metadata); } - publications_.WriteTo(ref output, _repeated_publications_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -267,7 +249,6 @@ public int CalculateSize() { if (Metadata.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } - size += publications_.CalculateSize(_repeated_publications_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -292,7 +273,6 @@ public void MergeFrom(ParticipantInfo other) { if (other.Metadata.Length != 0) { Metadata = other.Metadata; } - publications_.Add(other.publications_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -324,10 +304,6 @@ public void MergeFrom(pb::CodedInputStream input) { Metadata = input.ReadString(); break; } - case 42: { - publications_.AddEntriesFrom(input, _repeated_publications_codec); - break; - } } } #endif @@ -359,10 +335,6 @@ public void MergeFrom(pb::CodedInputStream input) { Metadata = input.ReadString(); break; } - case 42: { - publications_.AddEntriesFrom(ref input, _repeated_publications_codec); - break; - } } } } @@ -370,16 +342,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ParticipantEvent : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedParticipant : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedParticipant()); 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)] @@ -395,7 +368,7 @@ public sealed partial class ParticipantEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantEvent() { + public OwnedParticipant() { OnConstruction(); } @@ -403,85 +376,59 @@ public ParticipantEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantEvent(ParticipantEvent other) : this() { - participantSid_ = other.participantSid_; - switch (other.MessageCase) { - case MessageOneofCase.SpeakingChanged: - SpeakingChanged = other.SpeakingChanged.Clone(); - break; - } - + public OwnedParticipant(OwnedParticipant 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 ParticipantEvent Clone() { - return new ParticipantEvent(this); + public OwnedParticipant Clone() { + return new OwnedParticipant(this); } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// 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 string ParticipantSid { - get { return participantSid_; } + public global::LiveKit.Proto.FfiOwnedHandle Handle { + get { return handle_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + handle_ = value; } } - /// Field number for the "speaking_changed" field. - public const int SpeakingChangedFieldNumber = 2; + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.ParticipantInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.IsSpeakingChanged SpeakingChanged { - get { return messageCase_ == MessageOneofCase.SpeakingChanged ? (global::LiveKit.Proto.IsSpeakingChanged) message_ : null; } + public global::LiveKit.Proto.ParticipantInfo Info { + get { return info_; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SpeakingChanged; + info_ = value; } } - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - SpeakingChanged = 2, - } - 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 ParticipantEvent); + return Equals(other as OwnedParticipant); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantEvent other) { + public bool Equals(OwnedParticipant other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(SpeakingChanged, other.SpeakingChanged)) return false; - if (MessageCase != other.MessageCase) return false; + if (!object.Equals(Handle, other.Handle)) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -489,9 +436,8 @@ public bool Equals(ParticipantEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (messageCase_ == MessageOneofCase.SpeakingChanged) hash ^= SpeakingChanged.GetHashCode(); - hash ^= (int) messageCase_; + if (handle_ != null) hash ^= Handle.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -510,13 +456,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantSid.Length != 0) { + if (handle_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteMessage(Handle); } - if (messageCase_ == MessageOneofCase.SpeakingChanged) { + if (info_ != null) { output.WriteRawTag(18); - output.WriteMessage(SpeakingChanged); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -528,13 +474,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 (handle_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantSid); + output.WriteMessage(Handle); } - if (messageCase_ == MessageOneofCase.SpeakingChanged) { + if (info_ != null) { output.WriteRawTag(18); - output.WriteMessage(SpeakingChanged); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -546,11 +492,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 (handle_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (messageCase_ == MessageOneofCase.SpeakingChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpeakingChanged); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -560,22 +506,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantEvent other) { + public void MergeFrom(OwnedParticipant other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; + if (other.handle_ != null) { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + Handle.MergeFrom(other.Handle); } - switch (other.MessageCase) { - case MessageOneofCase.SpeakingChanged: - if (SpeakingChanged == null) { - SpeakingChanged = new global::LiveKit.Proto.IsSpeakingChanged(); - } - SpeakingChanged.MergeFrom(other.SpeakingChanged); - break; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.ParticipantInfo(); + } + Info.MergeFrom(other.Info); } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -592,16 +538,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantSid = input.ReadString(); + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); break; } case 18: { - global::LiveKit.Proto.IsSpeakingChanged subBuilder = new global::LiveKit.Proto.IsSpeakingChanged(); - if (messageCase_ == MessageOneofCase.SpeakingChanged) { - subBuilder.MergeFrom(SpeakingChanged); + if (info_ == null) { + Info = new global::LiveKit.Proto.ParticipantInfo(); } - input.ReadMessage(subBuilder); - SpeakingChanged = subBuilder; + input.ReadMessage(Info); break; } } @@ -620,205 +567,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantSid = input.ReadString(); + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); break; } case 18: { - global::LiveKit.Proto.IsSpeakingChanged subBuilder = new global::LiveKit.Proto.IsSpeakingChanged(); - if (messageCase_ == MessageOneofCase.SpeakingChanged) { - subBuilder.MergeFrom(SpeakingChanged); + if (info_ == null) { + Info = new global::LiveKit.Proto.ParticipantInfo(); } - input.ReadMessage(subBuilder); - SpeakingChanged = subBuilder; - break; - } - } - } - } - #endif - - } - - public sealed partial class IsSpeakingChanged : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsSpeakingChanged()); - 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.ParticipantReflection.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 IsSpeakingChanged() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IsSpeakingChanged(IsSpeakingChanged other) : this() { - speaking_ = other.speaking_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IsSpeakingChanged Clone() { - return new IsSpeakingChanged(this); - } - - /// Field number for the "speaking" field. - public const int SpeakingFieldNumber = 1; - private bool speaking_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Speaking { - get { return speaking_; } - set { - speaking_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IsSpeakingChanged); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IsSpeakingChanged other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Speaking != other.Speaking) 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 (Speaking != false) hash ^= Speaking.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 (Speaking != false) { - output.WriteRawTag(8); - output.WriteBool(Speaking); - } - 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 (Speaking != false) { - output.WriteRawTag(8); - output.WriteBool(Speaking); - } - 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 (Speaking != 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(IsSpeakingChanged other) { - if (other == null) { - return; - } - if (other.Speaking != false) { - Speaking = other.Speaking; - } - _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: { - Speaking = 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: { - Speaking = input.ReadBool(); + input.ReadMessage(Info); break; } } diff --git a/Runtime/Scripts/Proto/Room.cs b/Runtime/Scripts/Proto/Room.cs index 37675e3..5965275 100644 --- a/Runtime/Scripts/Proto/Room.cs +++ b/Runtime/Scripts/Proto/Room.cs @@ -24,152 +24,257 @@ public static partial class RoomReflection { static RoomReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgpyb29tLnByb3RvEgdsaXZla2l0GgxoYW5kbGUucHJvdG8aEXBhcnRpY2lw", - "YW50LnByb3RvGgt0cmFjay5wcm90bxoRdmlkZW9fZnJhbWUucHJvdG8iUwoO", - "Q29ubmVjdFJlcXVlc3QSCwoDdXJsGAEgASgJEg0KBXRva2VuGAIgASgJEiUK", - "B29wdGlvbnMYAyABKAsyFC5saXZla2l0LlJvb21PcHRpb25zIjgKD0Nvbm5l", - "Y3RSZXNwb25zZRIlCghhc3luY19pZBgBIAEoCzITLmxpdmVraXQuRkZJQXN5", - "bmNJZCJ3Cg9Db25uZWN0Q2FsbGJhY2sSJQoIYXN5bmNfaWQYASABKAsyEy5s", - "aXZla2l0LkZGSUFzeW5jSWQSEgoFZXJyb3IYAiABKAlIAIgBARIfCgRyb29t", - "GAMgASgLMhEubGl2ZWtpdC5Sb29tSW5mb0IICgZfZXJyb3IiPgoRRGlzY29u", - "bmVjdFJlcXVlc3QSKQoLcm9vbV9oYW5kbGUYASABKAsyFC5saXZla2l0LkZG", - "SUhhbmRsZUlkIjsKEkRpc2Nvbm5lY3RSZXNwb25zZRIlCghhc3luY19pZBgB", - "IAEoCzITLmxpdmVraXQuRkZJQXN5bmNJZCIUChJEaXNjb25uZWN0Q2FsbGJh", - "Y2simwEKE1B1Ymxpc2hUcmFja1JlcXVlc3QSKQoLcm9vbV9oYW5kbGUYASAB", - "KAsyFC5saXZla2l0LkZGSUhhbmRsZUlkEioKDHRyYWNrX2hhbmRsZRgCIAEo", - "CzIULmxpdmVraXQuRkZJSGFuZGxlSWQSLQoHb3B0aW9ucxgDIAEoCzIcLmxp", - "dmVraXQuVHJhY2tQdWJsaXNoT3B0aW9ucyI9ChRQdWJsaXNoVHJhY2tSZXNw", - "b25zZRIlCghhc3luY19pZBgBIAEoCzITLmxpdmVraXQuRkZJQXN5bmNJZCKP", - "AQoUUHVibGlzaFRyYWNrQ2FsbGJhY2sSJQoIYXN5bmNfaWQYASABKAsyEy5s", - "aXZla2l0LkZGSUFzeW5jSWQSEgoFZXJyb3IYAiABKAlIAIgBARIyCgtwdWJs", - "aWNhdGlvbhgDIAEoCzIdLmxpdmVraXQuVHJhY2tQdWJsaWNhdGlvbkluZm9C", - "CAoGX2Vycm9yInAKFVVucHVibGlzaFRyYWNrUmVxdWVzdBIpCgtyb29tX2hh", - "bmRsZRgBIAEoCzIULmxpdmVraXQuRkZJSGFuZGxlSWQSEQoJdHJhY2tfc2lk", - "GAIgASgJEhkKEXN0b3Bfb25fdW5wdWJsaXNoGAMgASgIIj8KFlVucHVibGlz", - "aFRyYWNrUmVzcG9uc2USJQoIYXN5bmNfaWQYASABKAsyEy5saXZla2l0LkZG", - "SUFzeW5jSWQiNgoWVW5wdWJsaXNoVHJhY2tDYWxsYmFjaxISCgVlcnJvchgB", - "IAEoCUgAiAEBQggKBl9lcnJvciI7Cg1WaWRlb0VuY29kaW5nEhMKC21heF9i", - "aXRyYXRlGAEgASgEEhUKDW1heF9mcmFtZXJhdGUYAiABKAEiJAoNQXVkaW9F", - "bmNvZGluZxITCgttYXhfYml0cmF0ZRgBIAEoBCKAAgoTVHJhY2tQdWJsaXNo", - "T3B0aW9ucxIuCg52aWRlb19lbmNvZGluZxgBIAEoCzIWLmxpdmVraXQuVmlk", - "ZW9FbmNvZGluZxIuCg5hdWRpb19lbmNvZGluZxgCIAEoCzIWLmxpdmVraXQu", - "QXVkaW9FbmNvZGluZxIoCgt2aWRlb19jb2RlYxgDIAEoDjITLmxpdmVraXQu", + "Cgpyb29tLnByb3RvEg1saXZla2l0LnByb3RvGgplMmVlLnByb3RvGgxoYW5k", + "bGUucHJvdG8aEXBhcnRpY2lwYW50LnByb3RvGgt0cmFjay5wcm90bxoRdmlk", + "ZW9fZnJhbWUucHJvdG8aC3N0YXRzLnByb3RvIlkKDkNvbm5lY3RSZXF1ZXN0", + "EgsKA3VybBgBIAEoCRINCgV0b2tlbhgCIAEoCRIrCgdvcHRpb25zGAMgASgL", + "MhoubGl2ZWtpdC5wcm90by5Sb29tT3B0aW9ucyIjCg9Db25uZWN0UmVzcG9u", + "c2USEAoIYXN5bmNfaWQYASABKAQi/QIKD0Nvbm5lY3RDYWxsYmFjaxIQCghh", + "c3luY19pZBgBIAEoBBISCgVlcnJvchgCIAEoCUgAiAEBEiYKBHJvb20YAyAB", + "KAsyGC5saXZla2l0LnByb3RvLk93bmVkUm9vbRI6ChFsb2NhbF9wYXJ0aWNp", + "cGFudBgEIAEoCzIfLmxpdmVraXQucHJvdG8uT3duZWRQYXJ0aWNpcGFudBJK", + "CgxwYXJ0aWNpcGFudHMYBSADKAsyNC5saXZla2l0LnByb3RvLkNvbm5lY3RD", + "YWxsYmFjay5QYXJ0aWNpcGFudFdpdGhUcmFja3MaiQEKFVBhcnRpY2lwYW50", + "V2l0aFRyYWNrcxI0CgtwYXJ0aWNpcGFudBgBIAEoCzIfLmxpdmVraXQucHJv", + "dG8uT3duZWRQYXJ0aWNpcGFudBI6CgxwdWJsaWNhdGlvbnMYAiADKAsyJC5s", + "aXZla2l0LnByb3RvLk93bmVkVHJhY2tQdWJsaWNhdGlvbkIICgZfZXJyb3Ii", + "KAoRRGlzY29ubmVjdFJlcXVlc3QSEwoLcm9vbV9oYW5kbGUYASABKAQiJgoS", + "RGlzY29ubmVjdFJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgASgEIiYKEkRpc2Nv", + "bm5lY3RDYWxsYmFjaxIQCghhc3luY19pZBgBIAEoBCKCAQoTUHVibGlzaFRy", + "YWNrUmVxdWVzdBIgChhsb2NhbF9wYXJ0aWNpcGFudF9oYW5kbGUYASABKAQS", + "FAoMdHJhY2tfaGFuZGxlGAIgASgEEjMKB29wdGlvbnMYAyABKAsyIi5saXZl", + "a2l0LnByb3RvLlRyYWNrUHVibGlzaE9wdGlvbnMiKAoUUHVibGlzaFRyYWNr", + "UmVzcG9uc2USEAoIYXN5bmNfaWQYASABKAQigQEKFFB1Ymxpc2hUcmFja0Nh", + "bGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQES", + "OQoLcHVibGljYXRpb24YAyABKAsyJC5saXZla2l0LnByb3RvLk93bmVkVHJh", + "Y2tQdWJsaWNhdGlvbkIICgZfZXJyb3IiZwoVVW5wdWJsaXNoVHJhY2tSZXF1", + "ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAEoBBIRCgl0cmFj", + "a19zaWQYAiABKAkSGQoRc3RvcF9vbl91bnB1Ymxpc2gYAyABKAgiKgoWVW5w", + "dWJsaXNoVHJhY2tSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJIChZVbnB1", + "Ymxpc2hUcmFja0NhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9y", + "GAIgASgJSACIAQFCCAoGX2Vycm9yIr8BChJQdWJsaXNoRGF0YVJlcXVlc3QS", + "IAoYbG9jYWxfcGFydGljaXBhbnRfaGFuZGxlGAEgASgEEhAKCGRhdGFfcHRy", + "GAIgASgEEhAKCGRhdGFfbGVuGAMgASgEEisKBGtpbmQYBCABKA4yHS5saXZl", + "a2l0LnByb3RvLkRhdGFQYWNrZXRLaW5kEhgKEGRlc3RpbmF0aW9uX3NpZHMY", + "BSADKAkSEgoFdG9waWMYBiABKAlIAIgBAUIICgZfdG9waWMiJwoTUHVibGlz", + "aERhdGFSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJFChNQdWJsaXNoRGF0", + "YUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACI", + "AQFCCAoGX2Vycm9yIlAKGlVwZGF0ZUxvY2FsTWV0YWRhdGFSZXF1ZXN0EiAK", + "GGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAEoBBIQCghtZXRhZGF0YRgC", + "IAEoCSIvChtVcGRhdGVMb2NhbE1ldGFkYXRhUmVzcG9uc2USEAoIYXN5bmNf", + "aWQYASABKAQiLwobVXBkYXRlTG9jYWxNZXRhZGF0YUNhbGxiYWNrEhAKCGFz", + "eW5jX2lkGAEgASgEIkgKFlVwZGF0ZUxvY2FsTmFtZVJlcXVlc3QSIAoYbG9j", + "YWxfcGFydGljaXBhbnRfaGFuZGxlGAEgASgEEgwKBG5hbWUYAiABKAkiKwoX", + "VXBkYXRlTG9jYWxOYW1lUmVzcG9uc2USEAoIYXN5bmNfaWQYASABKAQiKwoX", + "VXBkYXRlTG9jYWxOYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASABKAQiRQoU", + "U2V0U3Vic2NyaWJlZFJlcXVlc3QSEQoJc3Vic2NyaWJlGAEgASgIEhoKEnB1", + "YmxpY2F0aW9uX2hhbmRsZRgCIAEoBCIXChVTZXRTdWJzY3JpYmVkUmVzcG9u", + "c2UiLQoWR2V0U2Vzc2lvblN0YXRzUmVxdWVzdBITCgtyb29tX2hhbmRsZRgB", + "IAEoBCIrChdHZXRTZXNzaW9uU3RhdHNSZXNwb25zZRIQCghhc3luY19pZBgB", + "IAEoBCKuAQoXR2V0U2Vzc2lvblN0YXRzQ2FsbGJhY2sSEAoIYXN5bmNfaWQY", + "ASABKAQSEgoFZXJyb3IYAiABKAlIAIgBARIwCg9wdWJsaXNoZXJfc3RhdHMY", + "AyADKAsyFy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzEjEKEHN1YnNjcmliZXJf", + "c3RhdHMYBCADKAsyFy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzQggKBl9lcnJv", + "ciI7Cg1WaWRlb0VuY29kaW5nEhMKC21heF9iaXRyYXRlGAEgASgEEhUKDW1h", + "eF9mcmFtZXJhdGUYAiABKAEiJAoNQXVkaW9FbmNvZGluZxITCgttYXhfYml0", + "cmF0ZRgBIAEoBCKKAgoTVHJhY2tQdWJsaXNoT3B0aW9ucxI0Cg52aWRlb19l", + "bmNvZGluZxgBIAEoCzIcLmxpdmVraXQucHJvdG8uVmlkZW9FbmNvZGluZxI0", + "Cg5hdWRpb19lbmNvZGluZxgCIAEoCzIcLmxpdmVraXQucHJvdG8uQXVkaW9F", + "bmNvZGluZxIuCgt2aWRlb19jb2RlYxgDIAEoDjIZLmxpdmVraXQucHJvdG8u", "VmlkZW9Db2RlYxILCgNkdHgYBCABKAgSCwoDcmVkGAUgASgIEhEKCXNpbXVs", - "Y2FzdBgGIAEoCBIMCgRuYW1lGAcgASgJEiQKBnNvdXJjZRgIIAEoDjIULmxp", - "dmVraXQuVHJhY2tTb3VyY2UiPgoLUm9vbU9wdGlvbnMSFgoOYXV0b19zdWJz", - "Y3JpYmUYASABKAgSFwoPYWRhcHRpdmVfc3RyZWFtGAIgASgIIq0HCglSb29t", - "RXZlbnQSKQoLcm9vbV9oYW5kbGUYASABKAsyFC5saXZla2l0LkZGSUhhbmRs", - "ZUlkEj4KFXBhcnRpY2lwYW50X2Nvbm5lY3RlZBgCIAEoCzIdLmxpdmVraXQu", - "UGFydGljaXBhbnRDb25uZWN0ZWRIABJEChhwYXJ0aWNpcGFudF9kaXNjb25u", - "ZWN0ZWQYAyABKAsyIC5saXZla2l0LlBhcnRpY2lwYW50RGlzY29ubmVjdGVk", - "SAASMgoPdHJhY2tfcHVibGlzaGVkGAQgASgLMhcubGl2ZWtpdC5UcmFja1B1", - "Ymxpc2hlZEgAEjYKEXRyYWNrX3VucHVibGlzaGVkGAUgASgLMhkubGl2ZWtp", - "dC5UcmFja1VucHVibGlzaGVkSAASNAoQdHJhY2tfc3Vic2NyaWJlZBgGIAEo", - "CzIYLmxpdmVraXQuVHJhY2tTdWJzY3JpYmVkSAASOAoSdHJhY2tfdW5zdWJz", - "Y3JpYmVkGAcgASgLMhoubGl2ZWtpdC5UcmFja1Vuc3Vic2NyaWJlZEgAEioK", - "C3RyYWNrX211dGVkGAggASgLMhMubGl2ZWtpdC5UcmFja011dGVkSAASLgoN", - "dHJhY2tfdW5tdXRlZBgJIAEoCzIVLmxpdmVraXQuVHJhY2tVbm11dGVkSAAS", - "OgoQc3BlYWtlcnNfY2hhbmdlZBgKIAEoCzIeLmxpdmVraXQuQWN0aXZlU3Bl", - "YWtlcnNDaGFuZ2VkSAASRwoaY29ubmVjdGlvbl9xdWFsaXR5X2NoYW5nZWQY", - "CyABKAsyIS5saXZla2l0LkNvbm5lY3Rpb25RdWFsaXR5Q2hhbmdlZEgAEi4K", - "DWRhdGFfcmVjZWl2ZWQYDCABKAsyFS5saXZla2l0LkRhdGFSZWNlaXZlZEgA", - "EkMKGGNvbm5lY3Rpb25fc3RhdGVfY2hhbmdlZBgNIAEoCzIfLmxpdmVraXQu", - "Q29ubmVjdGlvblN0YXRlQ2hhbmdlZEgAEicKCWNvbm5lY3RlZBgOIAEoCzIS", - "LmxpdmVraXQuQ29ubmVjdGVkSAASLQoMZGlzY29ubmVjdGVkGA8gASgLMhUu", - "bGl2ZWtpdC5EaXNjb25uZWN0ZWRIABItCgxyZWNvbm5lY3RpbmcYECABKAsy", - "FS5saXZla2l0LlJlY29ubmVjdGluZ0gAEisKC3JlY29ubmVjdGVkGBEgASgL", - "MhQubGl2ZWtpdC5SZWNvbm5lY3RlZEgAQgkKB21lc3NhZ2UiwgEKCFJvb21J", - "bmZvEiQKBmhhbmRsZRgBIAEoCzIULmxpdmVraXQuRkZJSGFuZGxlSWQSCwoD", - "c2lkGAIgASgJEgwKBG5hbWUYAyABKAkSEAoIbWV0YWRhdGEYBCABKAkSMwoR", - "bG9jYWxfcGFydGljaXBhbnQYBSABKAsyGC5saXZla2l0LlBhcnRpY2lwYW50", - "SW5mbxIuCgxwYXJ0aWNpcGFudHMYBiADKAsyGC5saXZla2l0LlBhcnRpY2lw", - "YW50SW5mbyKyAQoMRGF0YVJlY2VpdmVkEiQKBmhhbmRsZRgBIAEoCzIULmxp", - "dmVraXQuRkZJSGFuZGxlSWQSHAoPcGFydGljaXBhbnRfc2lkGAIgASgJSACI", - "AQESEAoIZGF0YV9wdHIYAyABKAQSEQoJZGF0YV9zaXplGAQgASgEEiUKBGtp", - "bmQYBSABKA4yFy5saXZla2l0LkRhdGFQYWNrZXRLaW5kQhIKEF9wYXJ0aWNp", - "cGFudF9zaWQiTQoPVHJhY2tTdWJzY3JpYmVkEhcKD3BhcnRpY2lwYW50X3Np", - "ZBgBIAEoCRIhCgV0cmFjaxgCIAEoCzISLmxpdmVraXQuVHJhY2tJbmZvIj8K", - "EVRyYWNrVW5zdWJzY3JpYmVkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEoCRIR", - "Cgl0cmFja19zaWQYAiABKAkiOAoKVHJhY2tNdXRlZBIXCg9wYXJ0aWNpcGFu", - "dF9zaWQYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJIjoKDFRyYWNrVW5tdXRl", - "ZBIXCg9wYXJ0aWNpcGFudF9zaWQYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJ", - "Ij4KFFBhcnRpY2lwYW50Q29ubmVjdGVkEiYKBGluZm8YASABKAsyGC5saXZl", - "a2l0LlBhcnRpY2lwYW50SW5mbyJBChdQYXJ0aWNpcGFudERpc2Nvbm5lY3Rl", - "ZBImCgRpbmZvGAEgASgLMhgubGl2ZWtpdC5QYXJ0aWNpcGFudEluZm8iXQoO", - "VHJhY2tQdWJsaXNoZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJEjIKC3B1", - "YmxpY2F0aW9uGAIgASgLMh0ubGl2ZWtpdC5UcmFja1B1YmxpY2F0aW9uSW5m", - "byJEChBUcmFja1VucHVibGlzaGVkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEo", - "CRIXCg9wdWJsaWNhdGlvbl9zaWQYAiABKAkiMQoVQWN0aXZlU3BlYWtlcnND", - "aGFuZ2VkEhgKEHBhcnRpY2lwYW50X3NpZHMYASADKAkiYAoYQ29ubmVjdGlv", - "blF1YWxpdHlDaGFuZ2VkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEoCRIrCgdx", - "dWFsaXR5GAIgASgOMhoubGl2ZWtpdC5Db25uZWN0aW9uUXVhbGl0eSJBChZD", - "b25uZWN0aW9uU3RhdGVDaGFuZ2VkEicKBXN0YXRlGAEgASgOMhgubGl2ZWtp", - "dC5Db25uZWN0aW9uU3RhdGUiCwoJQ29ubmVjdGVkIg4KDERpc2Nvbm5lY3Rl", - "ZCIOCgxSZWNvbm5lY3RpbmciDQoLUmVjb25uZWN0ZWQqTgoRQ29ubmVjdGlv", - "blF1YWxpdHkSEAoMUVVBTElUWV9QT09SEAASEAoMUVVBTElUWV9HT09EEAES", - "FQoRUVVBTElUWV9FWENFTExFTlQQAiplCg9Db25uZWN0aW9uU3RhdGUSFQoR", - "Q09OTl9ESVNDT05ORUNURUQQABISCg5DT05OX0NPTk5FQ1RFRBABEhUKEUNP", - "Tk5fUkVDT05ORUNUSU5HEAISEAoMQ09OTl9VTktOT1dOEAMqOAoORGF0YVBh", - "Y2tldEtpbmQSEwoPS0lORF9VTlJFTElBQkxFEAASEQoNS0lORF9SRUxJQUJM", - "RRABQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); + "Y2FzdBgGIAEoCBIqCgZzb3VyY2UYByABKA4yGi5saXZla2l0LnByb3RvLlRy", + "YWNrU291cmNlIj0KCUljZVNlcnZlchIMCgR1cmxzGAEgAygJEhAKCHVzZXJu", + "YW1lGAIgASgJEhAKCHBhc3N3b3JkGAMgASgJIoQCCglSdGNDb25maWcSQAoS", + "aWNlX3RyYW5zcG9ydF90eXBlGAEgASgOMh8ubGl2ZWtpdC5wcm90by5JY2VU", + "cmFuc3BvcnRUeXBlSACIAQESUAoaY29udGludWFsX2dhdGhlcmluZ19wb2xp", + "Y3kYAiABKA4yJy5saXZla2l0LnByb3RvLkNvbnRpbnVhbEdhdGhlcmluZ1Bv", + "bGljeUgBiAEBEi0KC2ljZV9zZXJ2ZXJzGAMgAygLMhgubGl2ZWtpdC5wcm90", + "by5JY2VTZXJ2ZXJCFQoTX2ljZV90cmFuc3BvcnRfdHlwZUIdChtfY29udGlu", + "dWFsX2dhdGhlcmluZ19wb2xpY3ki4AEKC1Jvb21PcHRpb25zEhYKDmF1dG9f", + "c3Vic2NyaWJlGAEgASgIEhcKD2FkYXB0aXZlX3N0cmVhbRgCIAEoCBIQCghk", + "eW5hY2FzdBgDIAEoCBItCgRlMmVlGAQgASgLMhoubGl2ZWtpdC5wcm90by5F", + "MmVlT3B0aW9uc0gAiAEBEjEKCnJ0Y19jb25maWcYBSABKAsyGC5saXZla2l0", + "LnByb3RvLlJ0Y0NvbmZpZ0gBiAEBEhQKDGpvaW5fcmV0cmllcxgGIAEoDUIH", + "CgVfZTJlZUINCgtfcnRjX2NvbmZpZyIwCgpCdWZmZXJJbmZvEhAKCGRhdGFf", + "cHRyGAEgASgEEhAKCGRhdGFfbGVuGAIgASgEImUKC093bmVkQnVmZmVyEi0K", + "BmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUS", + "JwoEZGF0YRgCIAEoCzIZLmxpdmVraXQucHJvdG8uQnVmZmVySW5mbyLzCwoJ", + "Um9vbUV2ZW50EhMKC3Jvb21faGFuZGxlGAEgASgEEkQKFXBhcnRpY2lwYW50", + "X2Nvbm5lY3RlZBgCIAEoCzIjLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRD", + "b25uZWN0ZWRIABJKChhwYXJ0aWNpcGFudF9kaXNjb25uZWN0ZWQYAyABKAsy", + "Ji5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50RGlzY29ubmVjdGVkSAASQwoV", + "bG9jYWxfdHJhY2tfcHVibGlzaGVkGAQgASgLMiIubGl2ZWtpdC5wcm90by5M", + "b2NhbFRyYWNrUHVibGlzaGVkSAASRwoXbG9jYWxfdHJhY2tfdW5wdWJsaXNo", + "ZWQYBSABKAsyJC5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tVbnB1Ymxpc2hl", + "ZEgAEjgKD3RyYWNrX3B1Ymxpc2hlZBgGIAEoCzIdLmxpdmVraXQucHJvdG8u", + "VHJhY2tQdWJsaXNoZWRIABI8ChF0cmFja191bnB1Ymxpc2hlZBgHIAEoCzIf", + "LmxpdmVraXQucHJvdG8uVHJhY2tVbnB1Ymxpc2hlZEgAEjoKEHRyYWNrX3N1", + "YnNjcmliZWQYCCABKAsyHi5saXZla2l0LnByb3RvLlRyYWNrU3Vic2NyaWJl", + "ZEgAEj4KEnRyYWNrX3Vuc3Vic2NyaWJlZBgJIAEoCzIgLmxpdmVraXQucHJv", + "dG8uVHJhY2tVbnN1YnNjcmliZWRIABJLChl0cmFja19zdWJzY3JpcHRpb25f", + "ZmFpbGVkGAogASgLMiYubGl2ZWtpdC5wcm90by5UcmFja1N1YnNjcmlwdGlv", + "bkZhaWxlZEgAEjAKC3RyYWNrX211dGVkGAsgASgLMhkubGl2ZWtpdC5wcm90", + "by5UcmFja011dGVkSAASNAoNdHJhY2tfdW5tdXRlZBgMIAEoCzIbLmxpdmVr", + "aXQucHJvdG8uVHJhY2tVbm11dGVkSAASRwoXYWN0aXZlX3NwZWFrZXJzX2No", + "YW5nZWQYDSABKAsyJC5saXZla2l0LnByb3RvLkFjdGl2ZVNwZWFrZXJzQ2hh", + "bmdlZEgAEkMKFXJvb21fbWV0YWRhdGFfY2hhbmdlZBgOIAEoCzIiLmxpdmVr", + "aXQucHJvdG8uUm9vbU1ldGFkYXRhQ2hhbmdlZEgAElEKHHBhcnRpY2lwYW50", + "X21ldGFkYXRhX2NoYW5nZWQYDyABKAsyKS5saXZla2l0LnByb3RvLlBhcnRp", + "Y2lwYW50TWV0YWRhdGFDaGFuZ2VkSAASSQoYcGFydGljaXBhbnRfbmFtZV9j", + "aGFuZ2VkGBAgASgLMiUubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudE5hbWVD", + "aGFuZ2VkSAASTQoaY29ubmVjdGlvbl9xdWFsaXR5X2NoYW5nZWQYESABKAsy", + "Jy5saXZla2l0LnByb3RvLkNvbm5lY3Rpb25RdWFsaXR5Q2hhbmdlZEgAEjQK", + "DWRhdGFfcmVjZWl2ZWQYEiABKAsyGy5saXZla2l0LnByb3RvLkRhdGFSZWNl", + "aXZlZEgAEkkKGGNvbm5lY3Rpb25fc3RhdGVfY2hhbmdlZBgTIAEoCzIlLmxp", + "dmVraXQucHJvdG8uQ29ubmVjdGlvblN0YXRlQ2hhbmdlZEgAEjMKDGRpc2Nv", + "bm5lY3RlZBgVIAEoCzIbLmxpdmVraXQucHJvdG8uRGlzY29ubmVjdGVkSAAS", + "MwoMcmVjb25uZWN0aW5nGBYgASgLMhsubGl2ZWtpdC5wcm90by5SZWNvbm5l", + "Y3RpbmdIABIxCgtyZWNvbm5lY3RlZBgXIAEoCzIaLmxpdmVraXQucHJvdG8u", + "UmVjb25uZWN0ZWRIABI9ChJlMmVlX3N0YXRlX2NoYW5nZWQYGCABKAsyHy5s", + "aXZla2l0LnByb3RvLkUyZWVTdGF0ZUNoYW5nZWRIABIlCgNlb3MYGSABKAsy", + "Fi5saXZla2l0LnByb3RvLlJvb21FT1NIAEIJCgdtZXNzYWdlIjcKCFJvb21J", + "bmZvEgsKA3NpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhAKCG1ldGFkYXRhGAMg", + "ASgJImEKCU93bmVkUm9vbRItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnBy", + "b3RvLkZmaU93bmVkSGFuZGxlEiUKBGluZm8YAiABKAsyFy5saXZla2l0LnBy", + "b3RvLlJvb21JbmZvIkUKFFBhcnRpY2lwYW50Q29ubmVjdGVkEi0KBGluZm8Y", + "ASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBhbnQiMgoXUGFy", + "dGljaXBhbnREaXNjb25uZWN0ZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJ", + "IigKE0xvY2FsVHJhY2tQdWJsaXNoZWQSEQoJdHJhY2tfc2lkGAEgASgJIjAK", + "FUxvY2FsVHJhY2tVbnB1Ymxpc2hlZBIXCg9wdWJsaWNhdGlvbl9zaWQYASAB", + "KAkiZAoOVHJhY2tQdWJsaXNoZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJ", + "EjkKC3B1YmxpY2F0aW9uGAIgASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZFRy", + "YWNrUHVibGljYXRpb24iRAoQVHJhY2tVbnB1Ymxpc2hlZBIXCg9wYXJ0aWNp", + "cGFudF9zaWQYASABKAkSFwoPcHVibGljYXRpb25fc2lkGAIgASgJIlQKD1Ry", + "YWNrU3Vic2NyaWJlZBIXCg9wYXJ0aWNpcGFudF9zaWQYASABKAkSKAoFdHJh", + "Y2sYAiABKAsyGS5saXZla2l0LnByb3RvLk93bmVkVHJhY2siPwoRVHJhY2tV", + "bnN1YnNjcmliZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJEhEKCXRyYWNr", + "X3NpZBgCIAEoCSJUChdUcmFja1N1YnNjcmlwdGlvbkZhaWxlZBIXCg9wYXJ0", + "aWNpcGFudF9zaWQYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJEg0KBWVycm9y", + "GAMgASgJIjgKClRyYWNrTXV0ZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJ", + "EhEKCXRyYWNrX3NpZBgCIAEoCSI6CgxUcmFja1VubXV0ZWQSFwoPcGFydGlj", + "aXBhbnRfc2lkGAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCSJaChBFMmVlU3Rh", + "dGVDaGFuZ2VkEhcKD3BhcnRpY2lwYW50X3NpZBgBIAEoCRItCgVzdGF0ZRgC", + "IAEoDjIeLmxpdmVraXQucHJvdG8uRW5jcnlwdGlvblN0YXRlIjEKFUFjdGl2", + "ZVNwZWFrZXJzQ2hhbmdlZBIYChBwYXJ0aWNpcGFudF9zaWRzGAEgAygJIicK", + "E1Jvb21NZXRhZGF0YUNoYW5nZWQSEAoIbWV0YWRhdGEYASABKAkiRwoaUGFy", + "dGljaXBhbnRNZXRhZGF0YUNoYW5nZWQSFwoPcGFydGljaXBhbnRfc2lkGAEg", + "ASgJEhAKCG1ldGFkYXRhGAIgASgJIj8KFlBhcnRpY2lwYW50TmFtZUNoYW5n", + "ZWQSFwoPcGFydGljaXBhbnRfc2lkGAEgASgJEgwKBG5hbWUYAiABKAkiZgoY", + "Q29ubmVjdGlvblF1YWxpdHlDaGFuZ2VkEhcKD3BhcnRpY2lwYW50X3NpZBgB", + "IAEoCRIxCgdxdWFsaXR5GAIgASgOMiAubGl2ZWtpdC5wcm90by5Db25uZWN0", + "aW9uUXVhbGl0eSK1AQoMRGF0YVJlY2VpdmVkEigKBGRhdGEYASABKAsyGi5s", + "aXZla2l0LnByb3RvLk93bmVkQnVmZmVyEhwKD3BhcnRpY2lwYW50X3NpZBgC", + "IAEoCUgAiAEBEisKBGtpbmQYAyABKA4yHS5saXZla2l0LnByb3RvLkRhdGFQ", + "YWNrZXRLaW5kEhIKBXRvcGljGAQgASgJSAGIAQFCEgoQX3BhcnRpY2lwYW50", + "X3NpZEIICgZfdG9waWMiRwoWQ29ubmVjdGlvblN0YXRlQ2hhbmdlZBItCgVz", + "dGF0ZRgBIAEoDjIeLmxpdmVraXQucHJvdG8uQ29ubmVjdGlvblN0YXRlIgsK", + "CUNvbm5lY3RlZCIOCgxEaXNjb25uZWN0ZWQiDgoMUmVjb25uZWN0aW5nIg0K", + "C1JlY29ubmVjdGVkIgkKB1Jvb21FT1MqUAoQSWNlVHJhbnNwb3J0VHlwZRIT", + "Cg9UUkFOU1BPUlRfUkVMQVkQABIUChBUUkFOU1BPUlRfTk9IT1NUEAESEQoN", + "VFJBTlNQT1JUX0FMTBACKkMKGENvbnRpbnVhbEdhdGhlcmluZ1BvbGljeRIP", + "CgtHQVRIRVJfT05DRRAAEhYKEkdBVEhFUl9DT05USU5VQUxMWRABKmAKEUNv", + "bm5lY3Rpb25RdWFsaXR5EhAKDFFVQUxJVFlfUE9PUhAAEhAKDFFVQUxJVFlf", + "R09PRBABEhUKEVFVQUxJVFlfRVhDRUxMRU5UEAISEAoMUVVBTElUWV9MT1NU", + "EAMqUwoPQ29ubmVjdGlvblN0YXRlEhUKEUNPTk5fRElTQ09OTkVDVEVEEAAS", + "EgoOQ09OTl9DT05ORUNURUQQARIVChFDT05OX1JFQ09OTkVDVElORxACKjMK", + "DkRhdGFQYWNrZXRLaW5kEg4KCktJTkRfTE9TU1kQABIRCg1LSU5EX1JFTElB", + "QkxFEAFCEKoCDUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.ParticipantReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.ConnectionQuality), typeof(global::LiveKit.Proto.ConnectionState), typeof(global::LiveKit.Proto.DataPacketKind), }, null, new pbr::GeneratedClrTypeInfo[] { + 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(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" }, new[]{ "Error" }, 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)}), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisconnectRequest), global::LiveKit.Proto.DisconnectRequest.Parser, new[]{ "RoomHandle" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisconnectResponse), global::LiveKit.Proto.DisconnectResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisconnectCallback), global::LiveKit.Proto.DisconnectCallback.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTrackRequest), global::LiveKit.Proto.PublishTrackRequest.Parser, new[]{ "RoomHandle", "TrackHandle", "Options" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DisconnectCallback), global::LiveKit.Proto.DisconnectCallback.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTrackRequest), global::LiveKit.Proto.PublishTrackRequest.Parser, new[]{ "LocalParticipantHandle", "TrackHandle", "Options" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTrackResponse), global::LiveKit.Proto.PublishTrackResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTrackCallback), global::LiveKit.Proto.PublishTrackCallback.Parser, new[]{ "AsyncId", "Error", "Publication" }, new[]{ "Error" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackRequest), global::LiveKit.Proto.UnpublishTrackRequest.Parser, new[]{ "RoomHandle", "TrackSid", "StopOnUnpublish" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackRequest), global::LiveKit.Proto.UnpublishTrackRequest.Parser, new[]{ "LocalParticipantHandle", "TrackSid", "StopOnUnpublish" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackResponse), global::LiveKit.Proto.UnpublishTrackResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackCallback), global::LiveKit.Proto.UnpublishTrackCallback.Parser, new[]{ "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackCallback), global::LiveKit.Proto.UnpublishTrackCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishDataRequest), global::LiveKit.Proto.PublishDataRequest.Parser, new[]{ "LocalParticipantHandle", "DataPtr", "DataLen", "Kind", "DestinationSids", "Topic" }, new[]{ "Topic" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishDataResponse), global::LiveKit.Proto.PublishDataResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishDataCallback), global::LiveKit.Proto.PublishDataCallback.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.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), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSessionStatsResponse), global::LiveKit.Proto.GetSessionStatsResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + 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", "Name", "Source" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomOptions), global::LiveKit.Proto.RoomOptions.Parser, new[]{ "AutoSubscribe", "AdaptiveStream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEvent), global::LiveKit.Proto.RoomEvent.Parser, new[]{ "RoomHandle", "ParticipantConnected", "ParticipantDisconnected", "TrackPublished", "TrackUnpublished", "TrackSubscribed", "TrackUnsubscribed", "TrackMuted", "TrackUnmuted", "SpeakersChanged", "ConnectionQualityChanged", "DataReceived", "ConnectionStateChanged", "Connected", "Disconnected", "Reconnecting", "Reconnected" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomInfo), global::LiveKit.Proto.RoomInfo.Parser, new[]{ "Handle", "Sid", "Name", "Metadata", "LocalParticipant", "Participants" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DataReceived), global::LiveKit.Proto.DataReceived.Parser, new[]{ "Handle", "ParticipantSid", "DataPtr", "DataSize", "Kind" }, new[]{ "ParticipantSid" }, 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.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.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", "ParticipantMetadataChanged", "ParticipantNameChanged", "ConnectionQualityChanged", "DataReceived", "ConnectionStateChanged", "Disconnected", "Reconnecting", "Reconnected", "E2EeStateChanged", "Eos" }, 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.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.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.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[]{ "Info" }, 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.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.RoomMetadataChanged), global::LiveKit.Proto.RoomMetadataChanged.Parser, new[]{ "Metadata" }, 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.DataReceived), global::LiveKit.Proto.DataReceived.Parser, new[]{ "Data", "ParticipantSid", "Kind", "Topic" }, new[]{ "ParticipantSid", "Topic" }, 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.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.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) })); } #endregion } #region Enums + public enum IceTransportType { + [pbr::OriginalName("TRANSPORT_RELAY")] TransportRelay = 0, + [pbr::OriginalName("TRANSPORT_NOHOST")] TransportNohost = 1, + [pbr::OriginalName("TRANSPORT_ALL")] TransportAll = 2, + } + + public enum ContinualGatheringPolicy { + [pbr::OriginalName("GATHER_ONCE")] GatherOnce = 0, + [pbr::OriginalName("GATHER_CONTINUALLY")] GatherContinually = 1, + } + public enum ConnectionQuality { [pbr::OriginalName("QUALITY_POOR")] QualityPoor = 0, [pbr::OriginalName("QUALITY_GOOD")] QualityGood = 1, [pbr::OriginalName("QUALITY_EXCELLENT")] QualityExcellent = 2, + [pbr::OriginalName("QUALITY_LOST")] QualityLost = 3, } public enum ConnectionState { [pbr::OriginalName("CONN_DISCONNECTED")] ConnDisconnected = 0, [pbr::OriginalName("CONN_CONNECTED")] ConnConnected = 1, [pbr::OriginalName("CONN_RECONNECTING")] ConnReconnecting = 2, - [pbr::OriginalName("CONN_UNKNOWN")] ConnUnknown = 3, } public enum DataPacketKind { - [pbr::OriginalName("KIND_UNRELIABLE")] KindUnreliable = 0, + [pbr::OriginalName("KIND_LOSSY")] KindLossy = 0, [pbr::OriginalName("KIND_RELIABLE")] KindReliable = 1, } @@ -179,6 +284,7 @@ public enum DataPacketKind { /// /// Connect to a new LiveKit room /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ConnectRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -451,6 +557,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ConnectResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -485,7 +592,7 @@ public ConnectResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConnectResponse(ConnectResponse other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -497,10 +604,10 @@ public ConnectResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -522,7 +629,7 @@ public bool Equals(ConnectResponse other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -530,7 +637,7 @@ public bool Equals(ConnectResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -549,9 +656,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -563,9 +670,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -577,8 +684,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -592,11 +699,8 @@ public void MergeFrom(ConnectResponse other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -613,11 +717,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -635,11 +736,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -649,6 +747,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ConnectCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -683,9 +782,11 @@ public ConnectCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConnectCallback(ConnectCallback other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; error_ = other.error_; room_ = other.room_ != null ? other.room_.Clone() : null; + localParticipant_ = other.localParticipant_ != null ? other.localParticipant_.Clone() : null; + participants_ = other.participants_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -697,10 +798,10 @@ public ConnectCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -709,11 +810,13 @@ public ConnectCallback Clone() { /// 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_ ?? ""; } + get { return error_ ?? ErrorDefaultValue; } set { error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } @@ -733,16 +836,39 @@ public void ClearError() { /// Field number for the "room" field. public const int RoomFieldNumber = 3; - private global::LiveKit.Proto.RoomInfo room_; + private global::LiveKit.Proto.OwnedRoom room_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomInfo Room { + public global::LiveKit.Proto.OwnedRoom Room { get { return room_; } set { room_ = value; } } + /// Field number for the "local_participant" field. + public const int LocalParticipantFieldNumber = 4; + private global::LiveKit.Proto.OwnedParticipant localParticipant_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedParticipant LocalParticipant { + get { return localParticipant_; } + set { + localParticipant_ = value; + } + } + + /// Field number for the "participants" field. + public const int ParticipantsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_participants_codec + = pb::FieldCodec.ForMessage(42, global::LiveKit.Proto.ConnectCallback.Types.ParticipantWithTracks.Parser); + private readonly pbc::RepeatedField participants_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Participants { + get { return participants_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -758,9 +884,11 @@ public bool Equals(ConnectCallback other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; if (Error != other.Error) return false; if (!object.Equals(Room, other.Room)) return false; + if (!object.Equals(LocalParticipant, other.LocalParticipant)) return false; + if(!participants_.Equals(other.participants_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -768,9 +896,11 @@ public bool Equals(ConnectCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (room_ != null) hash ^= Room.GetHashCode(); + if (localParticipant_ != null) hash ^= LocalParticipant.GetHashCode(); + hash ^= participants_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -789,9 +919,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (HasError) { output.WriteRawTag(18); @@ -801,6 +931,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Room); } + if (localParticipant_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LocalParticipant); + } + participants_.WriteTo(output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -811,9 +946,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (HasError) { output.WriteRawTag(18); @@ -823,6 +958,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Room); } + if (localParticipant_ != null) { + output.WriteRawTag(34); + output.WriteMessage(LocalParticipant); + } + participants_.WriteTo(ref output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -833,8 +973,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); @@ -842,6 +982,10 @@ public int CalculateSize() { if (room_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Room); } + if (localParticipant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalParticipant); + } + size += participants_.CalculateSize(_repeated_participants_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -854,21 +998,25 @@ public void MergeFrom(ConnectCallback other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } if (other.HasError) { Error = other.Error; } if (other.room_ != null) { if (room_ == null) { - Room = new global::LiveKit.Proto.RoomInfo(); + Room = new global::LiveKit.Proto.OwnedRoom(); } Room.MergeFrom(other.Room); } + if (other.localParticipant_ != null) { + if (localParticipant_ == null) { + LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + } + LocalParticipant.MergeFrom(other.LocalParticipant); + } + participants_.Add(other.participants_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -884,11 +1032,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } case 18: { @@ -897,11 +1042,22 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (room_ == null) { - Room = new global::LiveKit.Proto.RoomInfo(); + Room = new global::LiveKit.Proto.OwnedRoom(); } input.ReadMessage(Room); break; } + case 34: { + if (localParticipant_ == null) { + LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(LocalParticipant); + break; + } + case 42: { + participants_.AddEntriesFrom(input, _repeated_participants_codec); + break; + } } } #endif @@ -917,11 +1073,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } case 18: { @@ -930,21 +1083,270 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (room_ == null) { - Room = new global::LiveKit.Proto.RoomInfo(); + Room = new global::LiveKit.Proto.OwnedRoom(); } input.ReadMessage(Room); break; } + case 34: { + if (localParticipant_ == null) { + LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(LocalParticipant); + break; + } + case 42: { + participants_.AddEntriesFrom(ref input, _repeated_participants_codec); + break; + } } } } #endif + #region Nested types + /// Container for nested types declared in the ConnectCallback message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ParticipantWithTracks : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantWithTracks()); + 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.ConnectCallback.Descriptor.NestedTypes[0]; } + } + + [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 ParticipantWithTracks() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantWithTracks(ParticipantWithTracks other) : this() { + participant_ = other.participant_ != null ? other.participant_.Clone() : null; + publications_ = other.publications_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantWithTracks Clone() { + return new ParticipantWithTracks(this); + } + + /// Field number for the "participant" field. + public const int ParticipantFieldNumber = 1; + private global::LiveKit.Proto.OwnedParticipant participant_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedParticipant Participant { + get { return participant_; } + set { + participant_ = value; + } + } + + /// Field number for the "publications" field. + public const int PublicationsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_publications_codec + = pb::FieldCodec.ForMessage(18, global::LiveKit.Proto.OwnedTrackPublication.Parser); + private readonly pbc::RepeatedField publications_ = new pbc::RepeatedField(); + /// + /// TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send + /// a TrackSubscribed event + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Publications { + get { return publications_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ParticipantWithTracks); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ParticipantWithTracks other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Participant, other.Participant)) return false; + if(!publications_.Equals(other.publications_)) 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 (participant_ != null) hash ^= Participant.GetHashCode(); + hash ^= publications_.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 (participant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Participant); + } + publications_.WriteTo(output, _repeated_publications_codec); + 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 (participant_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Participant); + } + publications_.WriteTo(ref output, _repeated_publications_codec); + 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 (participant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Participant); + } + size += publications_.CalculateSize(_repeated_publications_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ParticipantWithTracks other) { + if (other == null) { + return; + } + if (other.participant_ != null) { + if (participant_ == null) { + Participant = new global::LiveKit.Proto.OwnedParticipant(); + } + Participant.MergeFrom(other.Participant); + } + publications_.Add(other.publications_); + _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 (participant_ == null) { + Participant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Participant); + break; + } + case 18: { + publications_.AddEntriesFrom(input, _repeated_publications_codec); + 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 (participant_ == null) { + Participant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Participant); + break; + } + case 18: { + publications_.AddEntriesFrom(ref input, _repeated_publications_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + } /// /// Disconnect from the a room /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class DisconnectRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -979,7 +1381,7 @@ public DisconnectRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisconnectRequest(DisconnectRequest other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; + roomHandle_ = other.roomHandle_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -991,10 +1393,10 @@ public DisconnectRequest Clone() { /// Field number for the "room_handle" field. public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId roomHandle_; + private ulong roomHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId RoomHandle { + public ulong RoomHandle { get { return roomHandle_; } set { roomHandle_ = value; @@ -1016,7 +1418,7 @@ public bool Equals(DisconnectRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; + if (RoomHandle != other.RoomHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1024,7 +1426,7 @@ public bool Equals(DisconnectRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); + if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1043,9 +1445,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1057,9 +1459,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 (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (RoomHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1071,8 +1473,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); + if (RoomHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1086,11 +1488,8 @@ public void MergeFrom(DisconnectRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); + if (other.RoomHandle != 0UL) { + RoomHandle = other.RoomHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1107,11 +1506,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + RoomHandle = input.ReadUInt64(); break; } } @@ -1129,11 +1525,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + RoomHandle = input.ReadUInt64(); break; } } @@ -1143,6 +1536,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class DisconnectResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1177,7 +1571,7 @@ public DisconnectResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisconnectResponse(DisconnectResponse other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1189,10 +1583,10 @@ public DisconnectResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -1214,7 +1608,7 @@ public bool Equals(DisconnectResponse other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1222,7 +1616,7 @@ public bool Equals(DisconnectResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1241,9 +1635,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1255,9 +1649,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1269,8 +1663,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1284,11 +1678,8 @@ public void MergeFrom(DisconnectResponse other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1305,11 +1696,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1327,11 +1715,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1341,6 +1726,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class DisconnectCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1375,6 +1761,7 @@ public DisconnectCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisconnectCallback(DisconnectCallback other) : this() { + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1384,6 +1771,18 @@ public DisconnectCallback Clone() { return new DisconnectCallback(this); } + /// 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 AsyncId { + get { return asyncId_; } + set { + asyncId_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1399,6 +1798,7 @@ public bool Equals(DisconnectCallback other) { if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1406,6 +1806,7 @@ public bool Equals(DisconnectCallback 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(); } @@ -1424,6 +1825,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); } @@ -1434,6 +1839,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); } @@ -1444,6 +1853,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(); } @@ -1456,6 +1868,9 @@ public void MergeFrom(DisconnectCallback other) { if (other == null) { return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1471,6 +1886,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } #endif @@ -1486,6 +1905,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } } } } @@ -1496,6 +1919,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Publish a track to the room /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class PublishTrackRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1530,8 +1954,8 @@ public PublishTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackRequest(PublishTrackRequest other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; - trackHandle_ = other.trackHandle_ != null ? other.trackHandle_.Clone() : null; + localParticipantHandle_ = other.localParticipantHandle_; + trackHandle_ = other.trackHandle_; options_ = other.options_ != null ? other.options_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1542,24 +1966,24 @@ public PublishTrackRequest Clone() { return new PublishTrackRequest(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId roomHandle_; + /// 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 global::LiveKit.Proto.FFIHandleId RoomHandle { - get { return roomHandle_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - roomHandle_ = value; + localParticipantHandle_ = value; } } /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 2; - private global::LiveKit.Proto.FFIHandleId trackHandle_; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId TrackHandle { + public ulong TrackHandle { get { return trackHandle_; } set { trackHandle_ = value; @@ -1593,8 +2017,8 @@ public bool Equals(PublishTrackRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; - if (!object.Equals(TrackHandle, other.TrackHandle)) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (TrackHandle != other.TrackHandle) return false; if (!object.Equals(Options, other.Options)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1603,8 +2027,8 @@ public bool Equals(PublishTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); - if (trackHandle_ != null) hash ^= TrackHandle.GetHashCode(); + if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); if (options_ != null) hash ^= Options.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1624,13 +2048,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); } - if (trackHandle_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TrackHandle); + if (TrackHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(TrackHandle); } if (options_ != null) { output.WriteRawTag(26); @@ -1646,13 +2070,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_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); } - if (trackHandle_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TrackHandle); + if (TrackHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(TrackHandle); } if (options_ != null) { output.WriteRawTag(26); @@ -1668,11 +2092,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); + if (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (trackHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackHandle); + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (options_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); @@ -1689,17 +2113,11 @@ public void MergeFrom(PublishTrackRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.trackHandle_ != null) { - if (trackHandle_ == null) { - TrackHandle = new global::LiveKit.Proto.FFIHandleId(); - } - TrackHandle.MergeFrom(other.TrackHandle); + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; } if (other.options_ != null) { if (options_ == null) { @@ -1722,18 +2140,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + LocalParticipantHandle = input.ReadUInt64(); break; } - case 18: { - if (trackHandle_ == null) { - TrackHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(TrackHandle); + case 16: { + TrackHandle = input.ReadUInt64(); break; } case 26: { @@ -1758,18 +2170,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + LocalParticipantHandle = input.ReadUInt64(); break; } - case 18: { - if (trackHandle_ == null) { - TrackHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(TrackHandle); + case 16: { + TrackHandle = input.ReadUInt64(); break; } case 26: { @@ -1786,6 +2192,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class PublishTrackResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1820,7 +2227,7 @@ public PublishTrackResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackResponse(PublishTrackResponse other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1832,10 +2239,10 @@ public PublishTrackResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -1857,7 +2264,7 @@ public bool Equals(PublishTrackResponse other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1865,7 +2272,7 @@ public bool Equals(PublishTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1884,9 +2291,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1898,9 +2305,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1912,8 +2319,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1927,11 +2334,8 @@ public void MergeFrom(PublishTrackResponse other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1948,11 +2352,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1970,11 +2371,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1984,6 +2382,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class PublishTrackCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2018,7 +2417,7 @@ public PublishTrackCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackCallback(PublishTrackCallback other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; error_ = other.error_; publication_ = other.publication_ != null ? other.publication_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2032,10 +2431,10 @@ public PublishTrackCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -2044,11 +2443,13 @@ public PublishTrackCallback Clone() { /// 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_ ?? ""; } + get { return error_ ?? ErrorDefaultValue; } set { error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } @@ -2068,10 +2469,10 @@ public void ClearError() { /// Field number for the "publication" field. public const int PublicationFieldNumber = 3; - private global::LiveKit.Proto.TrackPublicationInfo publication_; + private global::LiveKit.Proto.OwnedTrackPublication publication_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackPublicationInfo Publication { + public global::LiveKit.Proto.OwnedTrackPublication Publication { get { return publication_; } set { publication_ = value; @@ -2093,7 +2494,7 @@ public bool Equals(PublishTrackCallback other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; if (Error != other.Error) return false; if (!object.Equals(Publication, other.Publication)) return false; return Equals(_unknownFields, other._unknownFields); @@ -2103,7 +2504,7 @@ public bool Equals(PublishTrackCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (publication_ != null) hash ^= Publication.GetHashCode(); if (_unknownFields != null) { @@ -2124,9 +2525,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (HasError) { output.WriteRawTag(18); @@ -2146,9 +2547,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (HasError) { output.WriteRawTag(18); @@ -2168,8 +2569,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); @@ -2189,18 +2590,15 @@ public void MergeFrom(PublishTrackCallback other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } if (other.HasError) { Error = other.Error; } if (other.publication_ != null) { if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); } Publication.MergeFrom(other.Publication); } @@ -2219,11 +2617,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } case 18: { @@ -2232,7 +2627,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); } input.ReadMessage(Publication); break; @@ -2252,11 +2647,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } case 18: { @@ -2265,7 +2657,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 26: { if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); } input.ReadMessage(Publication); break; @@ -2280,6 +2672,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Unpublish a track from the room /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnpublishTrackRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2314,7 +2707,7 @@ public UnpublishTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackRequest(UnpublishTrackRequest other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; + localParticipantHandle_ = other.localParticipantHandle_; trackSid_ = other.trackSid_; stopOnUnpublish_ = other.stopOnUnpublish_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2326,15 +2719,15 @@ public UnpublishTrackRequest Clone() { return new UnpublishTrackRequest(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId roomHandle_; + /// 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 global::LiveKit.Proto.FFIHandleId RoomHandle { - get { return roomHandle_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - roomHandle_ = value; + localParticipantHandle_ = value; } } @@ -2377,7 +2770,7 @@ public bool Equals(UnpublishTrackRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; if (TrackSid != other.TrackSid) return false; if (StopOnUnpublish != other.StopOnUnpublish) return false; return Equals(_unknownFields, other._unknownFields); @@ -2387,7 +2780,7 @@ public bool Equals(UnpublishTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); + if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (StopOnUnpublish != false) hash ^= StopOnUnpublish.GetHashCode(); if (_unknownFields != null) { @@ -2408,9 +2801,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); } if (TrackSid.Length != 0) { output.WriteRawTag(18); @@ -2430,9 +2823,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 (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); } if (TrackSid.Length != 0) { output.WriteRawTag(18); @@ -2452,8 +2845,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); + if (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } if (TrackSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); @@ -2473,11 +2866,8 @@ public void MergeFrom(UnpublishTrackRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } if (other.TrackSid.Length != 0) { TrackSid = other.TrackSid; @@ -2500,11 +2890,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + LocalParticipantHandle = input.ReadUInt64(); break; } case 18: { @@ -2530,11 +2917,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + LocalParticipantHandle = input.ReadUInt64(); break; } case 18: { @@ -2552,6 +2936,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnpublishTrackResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2586,7 +2971,7 @@ public UnpublishTrackResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackResponse(UnpublishTrackResponse other) : this() { - asyncId_ = other.asyncId_ != null ? other.asyncId_.Clone() : null; + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2598,10 +2983,10 @@ public UnpublishTrackResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; - private global::LiveKit.Proto.FFIAsyncId asyncId_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIAsyncId AsyncId { + public ulong AsyncId { get { return asyncId_; } set { asyncId_ = value; @@ -2623,7 +3008,7 @@ public bool Equals(UnpublishTrackResponse other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AsyncId, other.AsyncId)) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2631,7 +3016,7 @@ public bool Equals(UnpublishTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (asyncId_ != null) hash ^= AsyncId.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2650,9 +3035,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2664,9 +3049,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 (asyncId_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AsyncId); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2678,8 +3063,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (asyncId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncId); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2693,11 +3078,8 @@ public void MergeFrom(UnpublishTrackResponse other) { if (other == null) { return; } - if (other.asyncId_ != null) { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - AsyncId.MergeFrom(other.AsyncId); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2714,11 +3096,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -2736,11 +3115,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (asyncId_ == null) { - AsyncId = new global::LiveKit.Proto.FFIAsyncId(); - } - input.ReadMessage(AsyncId); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -2750,6 +3126,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnpublishTrackCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2784,6 +3161,7 @@ public UnpublishTrackCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackCallback(UnpublishTrackCallback other) : this() { + asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2794,13 +3172,27 @@ public UnpublishTrackCallback Clone() { return new UnpublishTrackCallback(this); } + /// 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 AsyncId { + get { return asyncId_; } + set { + asyncId_ = value; + } + } + /// Field number for the "error" field. - public const int ErrorFieldNumber = 1; + 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_ ?? ""; } + get { return error_ ?? ErrorDefaultValue; } set { error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } @@ -2833,6 +3225,7 @@ public bool Equals(UnpublishTrackCallback other) { if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2841,6 +3234,7 @@ public bool Equals(UnpublishTrackCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2860,8 +3254,12 @@ 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 (HasError) { - output.WriteRawTag(10); + output.WriteRawTag(18); output.WriteString(Error); } if (_unknownFields != null) { @@ -2874,8 +3272,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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } if (HasError) { - output.WriteRawTag(10); + output.WriteRawTag(18); output.WriteString(Error); } if (_unknownFields != null) { @@ -2888,6 +3290,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 (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } @@ -2903,6 +3308,9 @@ public void MergeFrom(UnpublishTrackCallback other) { if (other == null) { return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } if (other.HasError) { Error = other.Error; } @@ -2921,7 +3329,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { Error = input.ReadString(); break; } @@ -2940,7 +3352,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { Error = input.ReadString(); break; } @@ -2951,16 +3367,20 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class VideoEncoding : pb::IMessage + /// + /// Publish data to other participants + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PublishDataRequest : 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 PublishDataRequest()); 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)] @@ -2976,7 +3396,7 @@ public sealed partial class VideoEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoEncoding() { + public PublishDataRequest() { OnConstruction(); } @@ -2984,59 +3404,131 @@ 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 PublishDataRequest(PublishDataRequest other) : this() { + localParticipantHandle_ = other.localParticipantHandle_; + dataPtr_ = other.dataPtr_; + dataLen_ = other.dataLen_; + kind_ = other.kind_; + destinationSids_ = other.destinationSids_.Clone(); + topic_ = other.topic_; _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 PublishDataRequest Clone() { + return new PublishDataRequest(this); } - /// Field number for the "max_bitrate" field. - public const int MaxBitrateFieldNumber = 1; - private ulong maxBitrate_; + /// 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 MaxBitrate { - get { return maxBitrate_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - maxBitrate_ = value; + localParticipantHandle_ = value; } } - /// Field number for the "max_framerate" field. - public const int MaxFramerateFieldNumber = 2; - private double maxFramerate_; + /// Field number for the "data_ptr" field. + public const int DataPtrFieldNumber = 2; + private ulong dataPtr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double MaxFramerate { - get { return maxFramerate_; } + public ulong DataPtr { + get { return dataPtr_; } set { - maxFramerate_ = value; + dataPtr_ = value; + } + } + + /// Field number for the "data_len" field. + public const int DataLenFieldNumber = 3; + private ulong dataLen_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataLen { + get { return dataLen_; } + set { + dataLen_ = value; + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 4; + 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; + } + } + + /// Field number for the "destination_sids" field. + public const int DestinationSidsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_destinationSids_codec + = pb::FieldCodec.ForString(42); + private readonly pbc::RepeatedField destinationSids_ = new pbc::RepeatedField(); + /// + /// destination + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DestinationSids { + get { return destinationSids_; } + } + + /// Field number for the "topic" field. + public const int TopicFieldNumber = 6; + private readonly static string TopicDefaultValue = ""; + + private string topic_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Topic { + get { return topic_ ?? TopicDefaultValue; } + set { + 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 VideoEncoding); + return Equals(other as PublishDataRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoEncoding other) { + public bool Equals(PublishDataRequest 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 (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (DataPtr != other.DataPtr) return false; + if (DataLen != other.DataLen) return false; + if (Kind != other.Kind) return false; + if(!destinationSids_.Equals(other.destinationSids_)) return false; + if (Topic != other.Topic) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3044,8 +3536,12 @@ 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 (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); + if (DataLen != 0UL) hash ^= DataLen.GetHashCode(); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) hash ^= Kind.GetHashCode(); + hash ^= destinationSids_.GetHashCode(); + if (HasTopic) hash ^= Topic.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3064,13 +3560,26 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (MaxBitrate != 0UL) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteUInt64(LocalParticipantHandle); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (DataPtr != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(DataPtr); + } + if (DataLen != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(DataLen); + } + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + output.WriteRawTag(32); + output.WriteEnum((int) Kind); + } + destinationSids_.WriteTo(output, _repeated_destinationSids_codec); + if (HasTopic) { + output.WriteRawTag(50); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3082,13 +3591,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 (MaxBitrate != 0UL) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteUInt64(LocalParticipantHandle); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (DataPtr != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(DataPtr); + } + if (DataLen != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(DataLen); + } + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + output.WriteRawTag(32); + output.WriteEnum((int) Kind); + } + destinationSids_.WriteTo(ref output, _repeated_destinationSids_codec); + if (HasTopic) { + output.WriteRawTag(50); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3100,11 +3622,21 @@ 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 (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (MaxFramerate != 0D) { - size += 1 + 8; + if (DataPtr != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + } + if (DataLen != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataLen); + } + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + size += destinationSids_.CalculateSize(_repeated_destinationSids_codec); + if (HasTopic) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3114,15 +3646,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoEncoding other) { + public void MergeFrom(PublishDataRequest other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.MaxFramerate != 0D) { - MaxFramerate = other.MaxFramerate; + if (other.DataPtr != 0UL) { + DataPtr = other.DataPtr; + } + if (other.DataLen != 0UL) { + DataLen = other.DataLen; + } + if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + Kind = other.Kind; + } + destinationSids_.Add(other.destinationSids_); + if (other.HasTopic) { + Topic = other.Topic; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3140,11 +3682,27 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 16: { + DataPtr = input.ReadUInt64(); + break; + } + case 24: { + DataLen = input.ReadUInt64(); + break; + } + case 32: { + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + break; + } + case 42: { + destinationSids_.AddEntriesFrom(input, _repeated_destinationSids_codec); + break; + } + case 50: { + Topic = input.ReadString(); break; } } @@ -3163,11 +3721,27 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 16: { + DataPtr = input.ReadUInt64(); + break; + } + case 24: { + DataLen = input.ReadUInt64(); + break; + } + case 32: { + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + break; + } + case 42: { + destinationSids_.AddEntriesFrom(ref input, _repeated_destinationSids_codec); + break; + } + case 50: { + Topic = input.ReadString(); break; } } @@ -3177,16 +3751,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class AudioEncoding : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PublishDataResponse : 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 PublishDataResponse()); 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)] @@ -3202,7 +3777,7 @@ public sealed partial class AudioEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding() { + public PublishDataResponse() { OnConstruction(); } @@ -3210,45 +3785,45 @@ public AudioEncoding() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding(AudioEncoding other) : this() { - maxBitrate_ = other.maxBitrate_; + public PublishDataResponse(PublishDataResponse other) : this() { + asyncId_ = other.asyncId_; _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 PublishDataResponse Clone() { + return new PublishDataResponse(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; } } [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 PublishDataResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioEncoding other) { + public bool Equals(PublishDataResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (MaxBitrate != other.MaxBitrate) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3256,7 +3831,7 @@ 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 (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3275,9 +3850,9 @@ 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 (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3289,9 +3864,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 (MaxBitrate != 0UL) { + if (AsyncId != 0UL) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3303,8 +3878,8 @@ 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 (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3314,12 +3889,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioEncoding other) { + public void MergeFrom(PublishDataResponse other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3337,7 +3912,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } } @@ -3356,7 +3931,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } } @@ -3366,16 +3941,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackPublishOptions : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PublishDataCallback : 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 PublishDataCallback()); 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)] @@ -3391,7 +3967,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; - } - } - - /// 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; - } - } - - /// 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 PublishDataCallback Clone() { + return new PublishDataCallback(this); } - /// Field number for the "dtx" field. - public const int DtxFieldNumber = 4; - private bool dtx_; + /// 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 bool Dtx { - get { return dtx_; } + public ulong AsyncId { + get { return asyncId_; } set { - dtx_ = value; + asyncId_ = 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 "error" field. + public const int ErrorFieldNumber = 2; + private readonly static string ErrorDefaultValue = ""; - /// Field number for the "simulcast" field. - public const int SimulcastFieldNumber = 6; - private bool simulcast_; + private string error_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Simulcast { - get { return simulcast_; } + public string Error { + get { return error_ ?? ErrorDefaultValue; } set { - simulcast_ = value; + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "name" field. - public const int NameFieldNumber = 7; - private string name_ = ""; + /// Gets whether the "error" field is set [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 bool HasError { + get { return error_ != null; } } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 8; - private global::LiveKit.Proto.TrackSource source_ = global::LiveKit.Proto.TrackSource.SourceUnknown; + /// Clears the value of the "error" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSource Source { - get { return source_; } - set { - source_ = value; - } + 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 TrackPublishOptions); + return Equals(other as PublishDataCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublishOptions other) { + public bool Equals(PublishDataCallback 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 (Name != other.Name) return false; - if (Source != other.Source) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3546,14 +4049,8 @@ 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 (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= Source.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3572,37 +4069,13 @@ 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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } - if (audioEncoding_ != null) { + if (HasError) { 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 (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(64); - output.WriteEnum((int) Source); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3614,37 +4087,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 (videoEncoding_ != null) { - output.WriteRawTag(10); - output.WriteMessage(VideoEncoding); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } - if (audioEncoding_ != null) { + if (HasError) { 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 (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(64); - output.WriteEnum((int) Source); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3656,29 +4105,11 @@ 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 (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3688,39 +4119,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublishOptions other) { + public void MergeFrom(PublishDataCallback 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.Name.Length != 0) { - Name = other.Name; + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } - if (other.Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - Source = other.Source; + if (other.HasError) { + Error = other.Error; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3737,42 +4144,12 @@ 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: { + AsyncId = input.ReadUInt64(); 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 58: { - Name = input.ReadString(); - break; - } - case 64: { - Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + Error = input.ReadString(); break; } } @@ -3790,42 +4167,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (videoEncoding_ == null) { - VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); - } - input.ReadMessage(VideoEncoding); + case 8: { + AsyncId = input.ReadUInt64(); 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 58: { - Name = input.ReadString(); - break; - } - case 64: { - Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + Error = input.ReadString(); break; } } @@ -3835,16 +4182,20 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RoomOptions : pb::IMessage + /// + /// Change the local participant's metadata + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalMetadataRequest : 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 UpdateLocalMetadataRequest()); 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)] @@ -3860,7 +4211,7 @@ public sealed partial class RoomOptions : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions() { + public UpdateLocalMetadataRequest() { OnConstruction(); } @@ -3868,59 +4219,59 @@ public RoomOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions(RoomOptions other) : this() { - autoSubscribe_ = other.autoSubscribe_; - adaptiveStream_ = other.adaptiveStream_; + public UpdateLocalMetadataRequest(UpdateLocalMetadataRequest other) : this() { + localParticipantHandle_ = other.localParticipantHandle_; + metadata_ = other.metadata_; _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 UpdateLocalMetadataRequest Clone() { + return new UpdateLocalMetadataRequest(this); } - /// Field number for the "auto_subscribe" field. - public const int AutoSubscribeFieldNumber = 1; - private bool autoSubscribe_; + /// 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 AutoSubscribe { - get { return autoSubscribe_; } + public ulong LocalParticipantHandle { + get { return localParticipantHandle_; } set { - autoSubscribe_ = value; + localParticipantHandle_ = value; } } - /// Field number for the "adaptive_stream" field. - public const int AdaptiveStreamFieldNumber = 2; - private bool adaptiveStream_; + /// 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 bool AdaptiveStream { - get { return adaptiveStream_; } + public string Metadata { + get { return metadata_; } set { - adaptiveStream_ = 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 RoomOptions); + return Equals(other as UpdateLocalMetadataRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomOptions other) { + public bool Equals(UpdateLocalMetadataRequest 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 (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3928,8 +4279,8 @@ public bool Equals(RoomOptions other) { [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 (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3948,13 +4299,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AutoSubscribe != false) { + if (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); + output.WriteUInt64(LocalParticipantHandle); } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); + if (Metadata.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3966,13 +4317,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 (LocalParticipantHandle != 0UL) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); + output.WriteUInt64(LocalParticipantHandle); } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); + if (Metadata.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3984,11 +4335,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 (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (AdaptiveStream != false) { - size += 1 + 1; + if (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3998,15 +4349,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomOptions other) { + public void MergeFrom(UpdateLocalMetadataRequest other) { if (other == null) { return; } - if (other.AutoSubscribe != false) { - AutoSubscribe = other.AutoSubscribe; + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.AdaptiveStream != false) { - AdaptiveStream = other.AdaptiveStream; + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4024,11 +4375,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - AutoSubscribe = input.ReadBool(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 16: { - AdaptiveStream = input.ReadBool(); + case 18: { + Metadata = input.ReadString(); break; } } @@ -4047,11 +4398,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - AutoSubscribe = input.ReadBool(); + LocalParticipantHandle = input.ReadUInt64(); break; } - case 16: { - AdaptiveStream = input.ReadBool(); + case 18: { + Metadata = input.ReadString(); break; } } @@ -4061,16 +4412,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RoomEvent : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalMetadataResponse : 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 UpdateLocalMetadataResponse()); 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)] @@ -4086,7 +4438,7 @@ public sealed partial class RoomEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent() { + public UpdateLocalMetadataResponse() { OnConstruction(); } @@ -4094,340 +4446,235 @@ public RoomEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent(RoomEvent other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - ParticipantConnected = other.ParticipantConnected.Clone(); - break; - case MessageOneofCase.ParticipantDisconnected: - ParticipantDisconnected = other.ParticipantDisconnected.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.TrackMuted: - TrackMuted = other.TrackMuted.Clone(); - break; - case MessageOneofCase.TrackUnmuted: - TrackUnmuted = other.TrackUnmuted.Clone(); - break; - case MessageOneofCase.SpeakersChanged: - SpeakersChanged = other.SpeakersChanged.Clone(); - break; - case MessageOneofCase.ConnectionQualityChanged: - ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); - break; - case MessageOneofCase.DataReceived: - DataReceived = other.DataReceived.Clone(); - break; - case MessageOneofCase.ConnectionStateChanged: - ConnectionStateChanged = other.ConnectionStateChanged.Clone(); - break; - case MessageOneofCase.Connected: - Connected = other.Connected.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; - } - + public UpdateLocalMetadataResponse(UpdateLocalMetadataResponse other) : this() { + asyncId_ = other.asyncId_; _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 UpdateLocalMetadataResponse Clone() { + return new UpdateLocalMetadataResponse(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId 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 global::LiveKit.Proto.FFIHandleId RoomHandle { - get { return roomHandle_; } + public ulong AsyncId { + get { return asyncId_; } set { - roomHandle_ = value; + asyncId_ = 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; - } + public override bool Equals(object other) { + return Equals(other as UpdateLocalMetadataResponse); } - /// 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; + public bool Equals(UpdateLocalMetadataResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } + if (AsyncId != other.AsyncId) return false; + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "track_published" field. - public const int TrackPublishedFieldNumber = 4; [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 override int GetHashCode() { + int hash = 1; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "track_unpublished" field. - public const int TrackUnpublishedFieldNumber = 5; [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 override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "track_subscribed" field. - public const int TrackSubscribedFieldNumber = 6; [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 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); } + #endif } - /// Field number for the "track_unsubscribed" field. - public const int TrackUnsubscribedFieldNumber = 7; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [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; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "track_muted" field. - public const int TrackMutedFieldNumber = 8; [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 int CalculateSize() { + int size = 0; + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - } - - /// Field number for the "track_unmuted" field. - public const int TrackUnmutedFieldNumber = 9; - [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; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "speakers_changed" field. - public const int SpeakersChangedFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ActiveSpeakersChanged SpeakersChanged { - get { return messageCase_ == MessageOneofCase.SpeakersChanged ? (global::LiveKit.Proto.ActiveSpeakersChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SpeakersChanged; + public void MergeFrom(UpdateLocalMetadataResponse other) { + if (other == null) { + return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// Field number for the "connection_quality_changed" field. - public const int ConnectionQualityChangedFieldNumber = 11; [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; + 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: { + AsyncId = input.ReadUInt64(); + break; + } + } } + #endif } - /// Field number for the "data_received" field. - public const int DataReceivedFieldNumber = 12; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.DataReceived DataReceived { - get { return messageCase_ == MessageOneofCase.DataReceived ? (global::LiveKit.Proto.DataReceived) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataReceived; + 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: { + AsyncId = input.ReadUInt64(); + break; + } + } } } + #endif - /// Field number for the "connection_state_changed" field. - public const int ConnectionStateChangedFieldNumber = 13; + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalMetadataCallback : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalMetadataCallback()); + 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; } } - /// Field number for the "connected" field. - public const int ConnectedFieldNumber = 14; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Connected Connected { - get { return messageCase_ == MessageOneofCase.Connected ? (global::LiveKit.Proto.Connected) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Connected; - } + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[17]; } } - /// Field number for the "disconnected" field. - public const int DisconnectedFieldNumber = 15; [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 = 16; [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 UpdateLocalMetadataCallback() { + OnConstruction(); } - /// Field number for the "reconnected" field. - public const int ReconnectedFieldNumber = 17; + 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; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnected; - } + public UpdateLocalMetadataCallback(UpdateLocalMetadataCallback other) : this() { + asyncId_ = other.asyncId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - ParticipantConnected = 2, - ParticipantDisconnected = 3, - TrackPublished = 4, - TrackUnpublished = 5, - TrackSubscribed = 6, - TrackUnsubscribed = 7, - TrackMuted = 8, - TrackUnmuted = 9, - SpeakersChanged = 10, - ConnectionQualityChanged = 11, - DataReceived = 12, - ConnectionStateChanged = 13, - Connected = 14, - Disconnected = 15, - Reconnecting = 16, - Reconnected = 17, - } - private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageOneofCase MessageCase { - get { return messageCase_; } + public UpdateLocalMetadataCallback Clone() { + return new UpdateLocalMetadataCallback(this); } + /// 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 void ClearMessage() { - messageCase_ = MessageOneofCase.None; - message_ = 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 RoomEvent); + return Equals(other as UpdateLocalMetadataCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomEvent other) { + public bool Equals(UpdateLocalMetadataCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; - if (!object.Equals(ParticipantConnected, other.ParticipantConnected)) return false; - if (!object.Equals(ParticipantDisconnected, other.ParticipantDisconnected)) 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(TrackMuted, other.TrackMuted)) return false; - if (!object.Equals(TrackUnmuted, other.TrackUnmuted)) return false; - if (!object.Equals(SpeakersChanged, other.SpeakersChanged)) return false; - if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; - if (!object.Equals(DataReceived, other.DataReceived)) return false; - if (!object.Equals(ConnectionStateChanged, other.ConnectionStateChanged)) return false; - if (!object.Equals(Connected, other.Connected)) 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 (MessageCase != other.MessageCase) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4435,24 +4682,7 @@ public bool Equals(RoomEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) hash ^= ParticipantConnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) hash ^= ParticipantDisconnected.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.TrackMuted) hash ^= TrackMuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) hash ^= TrackUnmuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.SpeakersChanged) hash ^= SpeakersChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.DataReceived) hash ^= DataReceived.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) hash ^= ConnectionStateChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.Connected) hash ^= Connected.GetHashCode(); - if (messageCase_ == MessageOneofCase.Disconnected) hash ^= Disconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnecting) hash ^= Reconnecting.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnected) hash ^= Reconnected.GetHashCode(); - hash ^= (int) messageCase_; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4471,73 +4701,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); - } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); - } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); - } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(34); - output.WriteMessage(TrackPublished); - } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(42); - output.WriteMessage(TrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(50); - output.WriteMessage(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(58); - output.WriteMessage(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(66); - output.WriteMessage(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(74); - output.WriteMessage(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.SpeakersChanged) { - output.WriteRawTag(82); - output.WriteMessage(SpeakersChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(90); - output.WriteMessage(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.DataReceived) { - output.WriteRawTag(98); - output.WriteMessage(DataReceived); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(106); - output.WriteMessage(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Connected) { - output.WriteRawTag(114); - output.WriteMessage(Connected); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(122); - output.WriteMessage(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(130, 1); - output.WriteMessage(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(138, 1); - output.WriteMessage(Reconnected); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4549,73 +4715,225 @@ 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_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(34); - output.WriteMessage(TrackPublished); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(42); - output.WriteMessage(TrackUnpublished); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateLocalMetadataCallback other) { + if (other == null) { + return; } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(50); - output.WriteMessage(TrackSubscribed); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(58); - output.WriteMessage(TrackUnsubscribed); + _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: { + AsyncId = input.ReadUInt64(); + break; + } + } } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(66); - output.WriteMessage(TrackMuted); + #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: { + AsyncId = input.ReadUInt64(); + break; + } + } } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(74); - output.WriteMessage(TrackUnmuted); + } + #endif + + } + + /// + /// Change the local participant's name + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalNameRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameRequest()); + 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[18]; } + } + + [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 UpdateLocalNameRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameRequest(UpdateLocalNameRequest other) : this() { + localParticipantHandle_ = other.localParticipantHandle_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameRequest Clone() { + return new UpdateLocalNameRequest(this); + } + + /// 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 LocalParticipantHandle { + get { return localParticipantHandle_; } + set { + localParticipantHandle_ = value; } - if (messageCase_ == MessageOneofCase.SpeakersChanged) { - output.WriteRawTag(82); - output.WriteMessage(SpeakersChanged); + } + + /// 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"); } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(90); - output.WriteMessage(ConnectionQualityChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateLocalNameRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateLocalNameRequest other) { + if (ReferenceEquals(other, null)) { + return false; } - if (messageCase_ == MessageOneofCase.DataReceived) { - output.WriteRawTag(98); - output.WriteMessage(DataReceived); + if (ReferenceEquals(other, this)) { + return true; } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(106); - output.WriteMessage(ConnectionStateChanged); + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Name != other.Name) 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 (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } - if (messageCase_ == MessageOneofCase.Connected) { - output.WriteRawTag(114); - output.WriteMessage(Connected); + 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 (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(122); - output.WriteMessage(Disconnected); + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(130, 1); - output.WriteMessage(Reconnecting); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(138, 1); - output.WriteMessage(Reconnected); + #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 (LocalParticipantHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (Name.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4627,56 +4945,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); - } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantConnected); - } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantDisconnected); - } - if (messageCase_ == MessageOneofCase.TrackPublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackPublished); - } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnpublished); + if (LocalParticipantHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.SpeakersChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpeakersChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.DataReceived) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataReceived); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Connected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Connected); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - size += 1 + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4686,115 +4959,214 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomEvent other) { + public void MergeFrom(UpdateLocalNameRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); + if (other.LocalParticipantHandle != 0UL) { + LocalParticipantHandle = other.LocalParticipantHandle; } - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - if (ParticipantConnected == null) { - ParticipantConnected = new global::LiveKit.Proto.ParticipantConnected(); + if (other.Name.Length != 0) { + Name = other.Name; + } + _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: { + LocalParticipantHandle = input.ReadUInt64(); + break; } - ParticipantConnected.MergeFrom(other.ParticipantConnected); - break; - case MessageOneofCase.ParticipantDisconnected: - if (ParticipantDisconnected == null) { - ParticipantDisconnected = new global::LiveKit.Proto.ParticipantDisconnected(); + case 18: { + Name = input.ReadString(); + break; } - ParticipantDisconnected.MergeFrom(other.ParticipantDisconnected); - 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.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.SpeakersChanged: - if (SpeakersChanged == null) { - SpeakersChanged = new global::LiveKit.Proto.ActiveSpeakersChanged(); - } - SpeakersChanged.MergeFrom(other.SpeakersChanged); - break; - case MessageOneofCase.ConnectionQualityChanged: - if (ConnectionQualityChanged == null) { - ConnectionQualityChanged = new global::LiveKit.Proto.ConnectionQualityChanged(); - } - ConnectionQualityChanged.MergeFrom(other.ConnectionQualityChanged); - break; - case MessageOneofCase.DataReceived: - if (DataReceived == null) { - DataReceived = new global::LiveKit.Proto.DataReceived(); - } - DataReceived.MergeFrom(other.DataReceived); - break; - case MessageOneofCase.ConnectionStateChanged: - if (ConnectionStateChanged == null) { - ConnectionStateChanged = new global::LiveKit.Proto.ConnectionStateChanged(); - } - ConnectionStateChanged.MergeFrom(other.ConnectionStateChanged); - break; - case MessageOneofCase.Connected: - if (Connected == null) { - Connected = new global::LiveKit.Proto.Connected(); - } - Connected.MergeFrom(other.Connected); - 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(); + } + } + #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: { + LocalParticipantHandle = input.ReadUInt64(); + break; } - Reconnecting.MergeFrom(other.Reconnecting); - break; - case MessageOneofCase.Reconnected: - if (Reconnected == null) { - Reconnected = new global::LiveKit.Proto.Reconnected(); + case 18: { + Name = input.ReadString(); + break; } - Reconnected.MergeFrom(other.Reconnected); - break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalNameResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameResponse()); + 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[19]; } + } + + [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 UpdateLocalNameResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameResponse(UpdateLocalNameResponse other) : this() { + asyncId_ = other.asyncId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameResponse Clone() { + return new UpdateLocalNameResponse(this); + } + + /// 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 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 UpdateLocalNameResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateLocalNameResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AsyncId != other.AsyncId) 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 (AsyncId != 0UL) hash ^= AsyncId.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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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 (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateLocalNameResponse other) { + if (other == null) { + return; + } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4810,321 +5182,6719 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + AsyncId = 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; + } + } + #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 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.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); - if (messageCase_ == MessageOneofCase.TrackPublished) { - subBuilder.MergeFrom(TrackPublished); - } - input.ReadMessage(subBuilder); - TrackPublished = subBuilder; - break; - } - case 42: { - global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - subBuilder.MergeFrom(TrackUnpublished); - } - input.ReadMessage(subBuilder); - TrackUnpublished = subBuilder; - break; - } - case 50: { - global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - subBuilder.MergeFrom(TrackSubscribed); - } - input.ReadMessage(subBuilder); - TrackSubscribed = subBuilder; - break; - } - case 58: { - global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - subBuilder.MergeFrom(TrackUnsubscribed); - } - input.ReadMessage(subBuilder); - TrackUnsubscribed = subBuilder; - break; - } - case 66: { - global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); - if (messageCase_ == MessageOneofCase.TrackMuted) { - subBuilder.MergeFrom(TrackMuted); - } - input.ReadMessage(subBuilder); - TrackMuted = subBuilder; - break; - } - case 74: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); - } - input.ReadMessage(subBuilder); - TrackUnmuted = subBuilder; - break; - } - case 82: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.SpeakersChanged) { - subBuilder.MergeFrom(SpeakersChanged); - } - input.ReadMessage(subBuilder); - SpeakersChanged = subBuilder; - break; - } - case 90: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); - } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; - break; - } - case 98: { - global::LiveKit.Proto.DataReceived subBuilder = new global::LiveKit.Proto.DataReceived(); - if (messageCase_ == MessageOneofCase.DataReceived) { - subBuilder.MergeFrom(DataReceived); - } - input.ReadMessage(subBuilder); - DataReceived = subBuilder; - break; - } - case 106: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); - } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; - break; - } - case 114: { - global::LiveKit.Proto.Connected subBuilder = new global::LiveKit.Proto.Connected(); - if (messageCase_ == MessageOneofCase.Connected) { - subBuilder.MergeFrom(Connected); - } - input.ReadMessage(subBuilder); - Connected = subBuilder; - break; - } - case 122: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); - } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; - break; - } - case 130: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); - } - input.ReadMessage(subBuilder); - Reconnecting = subBuilder; - break; - } - case 138: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); - } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; + case 8: { + AsyncId = input.ReadUInt64(); break; } } } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateLocalNameCallback : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateLocalNameCallback()); + 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[20]; } + } + + [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 UpdateLocalNameCallback() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameCallback(UpdateLocalNameCallback other) : this() { + asyncId_ = other.asyncId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateLocalNameCallback Clone() { + return new UpdateLocalNameCallback(this); + } + + /// 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 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 UpdateLocalNameCallback); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateLocalNameCallback other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AsyncId != other.AsyncId) 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 (AsyncId != 0UL) hash ^= AsyncId.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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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 (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateLocalNameCallback other) { + if (other == null) { + return; + } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } + _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, ref input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); + case 8: { + AsyncId = 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.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); - if (messageCase_ == MessageOneofCase.TrackPublished) { - subBuilder.MergeFrom(TrackPublished); - } - input.ReadMessage(subBuilder); - TrackPublished = 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 42: { - global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - subBuilder.MergeFrom(TrackUnpublished); - } - input.ReadMessage(subBuilder); - TrackUnpublished = subBuilder; + case 8: { + AsyncId = input.ReadUInt64(); break; } - case 50: { - global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - subBuilder.MergeFrom(TrackSubscribed); - } - input.ReadMessage(subBuilder); - TrackSubscribed = subBuilder; + } + } + } + #endif + + } + + /// + /// Change the "desire" to subs2ribe to a track + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 SetSubscribedRequest()); + 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[21]; } + } + + [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 SetSubscribedRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 SetSubscribedRequest Clone() { + return new SetSubscribedRequest(this); + } + + /// 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 bool Subscribe { + get { return subscribe_; } + set { + 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 SetSubscribedRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSubscribedRequest 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (Subscribe != false) { + output.WriteRawTag(8); + output.WriteBool(Subscribe); + } + if (PublicationHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); + } + 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 (Subscribe != false) { + output.WriteRawTag(8); + output.WriteBool(Subscribe); + } + if (PublicationHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); + } + 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 (Subscribe != false) { + size += 1 + 1; + } + if (PublicationHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PublicationHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSubscribedRequest other) { + if (other == null) { + return; + } + if (other.Subscribe != false) { + Subscribe = other.Subscribe; + } + if (other.PublicationHandle != 0UL) { + PublicationHandle = other.PublicationHandle; + } + _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 58: { - global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - subBuilder.MergeFrom(TrackUnsubscribed); - } - input.ReadMessage(subBuilder); - TrackUnsubscribed = subBuilder; + case 8: { + Subscribe = input.ReadBool(); break; } - case 66: { - global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); - if (messageCase_ == MessageOneofCase.TrackMuted) { - subBuilder.MergeFrom(TrackMuted); - } - input.ReadMessage(subBuilder); - TrackMuted = subBuilder; + case 16: { + PublicationHandle = input.ReadUInt64(); break; } - case 74: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); - } - input.ReadMessage(subBuilder); - TrackUnmuted = 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 82: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.SpeakersChanged) { - subBuilder.MergeFrom(SpeakersChanged); - } - input.ReadMessage(subBuilder); - SpeakersChanged = subBuilder; + case 8: { + Subscribe = input.ReadBool(); break; } - case 90: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); - } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; + case 16: { + PublicationHandle = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 SetSubscribedResponse()); + 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[22]; } + } + + [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 SetSubscribedResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSubscribedResponse(SetSubscribedResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSubscribedResponse Clone() { + return new SetSubscribedResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetSubscribedResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSubscribedResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 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[23]; } + } + + [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); + } + + [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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSessionStatsRequest other) { + if (other == null) { + return; + } + if (other.RoomHandle != 0UL) { + RoomHandle = other.RoomHandle; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 GetSessionStatsResponse()); + 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[24]; } + } + + [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 GetSessionStatsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 GetSessionStatsResponse Clone() { + return new GetSessionStatsResponse(this); + } + + /// 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 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 GetSessionStatsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSessionStatsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AsyncId != other.AsyncId) 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 (AsyncId != 0UL) hash ^= AsyncId.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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + 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 (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSessionStatsResponse other) { + if (other == null) { + return; + } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } + _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: { + AsyncId = 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: { + AsyncId = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 GetSessionStatsCallback()); + 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[25]; } + } + + [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 GetSessionStatsCallback() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 GetSessionStatsCallback Clone() { + return new GetSessionStatsCallback(this); + } + + /// 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 AsyncId { + get { return asyncId_; } + set { + 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; + } + + /// 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSessionStatsCallback other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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(); + } + 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 (AsyncId != 0UL) { + 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); + } + #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 (AsyncId != 0UL) { + 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); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + 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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSessionStatsCallback 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); + } + + [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: { + 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 + } + + #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: { + 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; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 VideoEncoding()); + 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[26]; } + } + + [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 VideoEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 VideoEncoding Clone() { + return new VideoEncoding(this); + } + + /// 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 ulong MaxBitrate { + get { return maxBitrate_; } + set { + maxBitrate_ = value; + } + } + + /// 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 double MaxFramerate { + get { return maxFramerate_; } + set { + maxFramerate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoEncoding 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); + } + if (MaxFramerate != 0D) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); + } + 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 (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); + } + if (MaxFramerate != 0D) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); + } + 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 (MaxBitrate != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); + } + if (MaxFramerate != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoEncoding other) { + if (other == null) { + return; + } + if (other.MaxBitrate != 0UL) { + MaxBitrate = other.MaxBitrate; + } + if (other.MaxFramerate != 0D) { + MaxFramerate = other.MaxFramerate; + } + _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: { + MaxBitrate = input.ReadUInt64(); + break; + } + case 17: { + MaxFramerate = input.ReadDouble(); + 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: { + MaxBitrate = input.ReadUInt64(); + break; + } + case 17: { + MaxFramerate = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 AudioEncoding()); + 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[27]; } + } + + [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 AudioEncoding() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioEncoding(AudioEncoding other) : this() { + maxBitrate_ = other.maxBitrate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioEncoding Clone() { + return new AudioEncoding(this); + } + + /// 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 ulong MaxBitrate { + get { return maxBitrate_; } + set { + maxBitrate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioEncoding); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioEncoding other) { + if (ReferenceEquals(other, null)) { + return false; + } + 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 (MaxBitrate != 0UL) hash ^= MaxBitrate.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 (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); + } + 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 (MaxBitrate != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); + } + 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 (MaxBitrate != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioEncoding other) { + if (other == null) { + return; + } + if (other.MaxBitrate != 0UL) { + MaxBitrate = other.MaxBitrate; + } + _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: { + MaxBitrate = 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: { + MaxBitrate = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackPublishOptions()); + 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[28]; } + } + + [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 TrackPublishOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublishOptions Clone() { + return new TrackPublishOptions(this); + } + + /// 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 global::LiveKit.Proto.VideoEncoding VideoEncoding { + get { return videoEncoding_; } + set { + videoEncoding_ = value; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + [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 (!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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (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 (_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 (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 (_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 (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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrackPublishOptions 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; + } + _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 (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(); + 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(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 IceServer()); + 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[29]; } + } + + [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 IceServer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [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_; + _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"); + } + } + + /// 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 string Password { + get { return password_; } + set { + 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 IceServer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IceServer 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 + 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 (_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) { + 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 (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IceServer 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; + } + _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: { + urls_.AddEntriesFrom(input, _repeated_urls_codec); + break; + } + case 18: { + Username = input.ReadString(); + break; + } + case 26: { + Password = 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: { + urls_.AddEntriesFrom(ref input, _repeated_urls_codec); + break; + } + case 18: { + Username = input.ReadString(); + break; + } + case 26: { + Password = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 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; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[30]; } + } + + [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 RtcConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [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(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtcConfig Clone() { + return new RtcConfig(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_; + [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; } } + set { + _hasBits0 |= 1; + iceTransportType_ = value; + } + } + /// Gets whether the "ice_transport_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIceTransportType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "ice_transport_type" field + [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; + } + } + /// Gets whether the "continual_gathering_policy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasContinualGatheringPolicy { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "continual_gathering_policy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearContinualGatheringPolicy() { + _hasBits0 &= ~2; + } + + /// 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 pbc::RepeatedField IceServers { + get { return iceServers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RtcConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (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 + } + + #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 (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 + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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); + } + + [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: { + 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)] + 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 + + } + + [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 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[31]; } + } + + [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 RoomOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [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_; + _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 { + autoSubscribe_ = value; + } + } + + /// 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 bool AdaptiveStream { + get { return adaptiveStream_; } + set { + adaptiveStream_ = 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + [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); + } + + [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 (AutoSubscribe != false) { + 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); + } + if (JoinRetries != 0) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); + } + 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 (AutoSubscribe != false) { + 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); + } + if (JoinRetries != 0) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); + } + 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 (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 (JoinRetries != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinRetries); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoomOptions 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.JoinRetries != 0) { + JoinRetries = other.JoinRetries; + } + _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: { + 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); + break; + } + case 48: { + JoinRetries = 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: { + 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); + break; + } + case 48: { + JoinRetries = input.ReadUInt32(); + 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[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 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[33]; } + } + + [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[34]; } + } + + [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.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.ParticipantMetadataChanged: + ParticipantMetadataChanged = other.ParticipantMetadataChanged.Clone(); + break; + case MessageOneofCase.ParticipantNameChanged: + ParticipantNameChanged = other.ParticipantNameChanged.Clone(); + break; + case MessageOneofCase.ConnectionQualityChanged: + ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); + break; + case MessageOneofCase.DataReceived: + DataReceived = other.DataReceived.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; + } + + _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 "track_published" field. + public const int TrackPublishedFieldNumber = 6; + [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 = 7; + [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 = 8; + [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 = 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// 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; + } + } + + /// Field number for the "room_metadata_changed" field. + public const int RoomMetadataChangedFieldNumber = 14; + [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 "participant_metadata_changed" field. + public const int ParticipantMetadataChangedFieldNumber = 15; + [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 = 16; + [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 = 17; + [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 "data_received" field. + public const int DataReceivedFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DataReceived DataReceived { + get { return messageCase_ == MessageOneofCase.DataReceived ? (global::LiveKit.Proto.DataReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataReceived; + } + } + + /// Field number for the "connection_state_changed" field. + public const int ConnectionStateChangedFieldNumber = 19; + [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 = 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; + } + } + + /// 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; + } + } + + /// Field number for the "reconnected" field. + public const int ReconnectedFieldNumber = 23; + [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 = 24; + [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 = 25; + /// + /// 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; + } + } + + 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, + ParticipantMetadataChanged = 15, + ParticipantNameChanged = 16, + ConnectionQualityChanged = 17, + DataReceived = 18, + ConnectionStateChanged = 19, + Disconnected = 21, + Reconnecting = 22, + Reconnected = 23, + E2EeStateChanged = 24, + Eos = 25, + } + 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(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(ParticipantMetadataChanged, other.ParticipantMetadataChanged)) return false; + if (!object.Equals(ParticipantNameChanged, other.ParticipantNameChanged)) return false; + if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; + if (!object.Equals(DataReceived, other.DataReceived)) 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 (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.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.ParticipantMetadataChanged) hash ^= ParticipantMetadataChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) hash ^= ParticipantNameChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.DataReceived) hash ^= DataReceived.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(); + 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.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.ParticipantMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.DataReceived) { + output.WriteRawTag(146, 1); + output.WriteMessage(DataReceived); + } + 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); + } + 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.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.ParticipantMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.DataReceived) { + output.WriteRawTag(146, 1); + output.WriteMessage(DataReceived); + } + 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); + } + 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.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.ParticipantMetadataChanged) { + size += 1 + 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.DataReceived) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataReceived); + } + 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 (_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.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.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.DataReceived: + if (DataReceived == null) { + DataReceived = new global::LiveKit.Proto.DataReceived(); + } + DataReceived.MergeFrom(other.DataReceived); + 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; + } + + _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.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.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.DataReceived subBuilder = new global::LiveKit.Proto.DataReceived(); + if (messageCase_ == MessageOneofCase.DataReceived) { + subBuilder.MergeFrom(DataReceived); + } + input.ReadMessage(subBuilder); + DataReceived = 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; + 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.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.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 146: { global::LiveKit.Proto.DataReceived subBuilder = new global::LiveKit.Proto.DataReceived(); if (messageCase_ == MessageOneofCase.DataReceived) { subBuilder.MergeFrom(DataReceived); } - input.ReadMessage(subBuilder); - DataReceived = subBuilder; + input.ReadMessage(subBuilder); + DataReceived = 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; + 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[35]; } + } + + [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 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"); + } + } + + /// 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 (Sid.Length != 0) 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 (Sid.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); + } + 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 (Sid.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); + } + 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 (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 (_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.Sid.Length != 0) { + 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 18: { + Name = input.ReadString(); + break; + } + case 26: { + Metadata = 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: { + Sid = input.ReadString(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + 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[36]; } + } + + [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 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); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #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[37]; } + } + + [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 10: { + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Info); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 ParticipantDisconnected()); + 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[38]; } + } + + [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 ParticipantDisconnected() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantDisconnected(ParticipantDisconnected other) : this() { + participantSid_ = other.participantSid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ParticipantDisconnected Clone() { + return new ParticipantDisconnected(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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ParticipantDisconnected); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ParticipantDisconnected other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ParticipantSid != other.ParticipantSid) 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 (ParticipantSid.Length != 0) hash ^= ParticipantSid.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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + 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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + 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 (ParticipantSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ParticipantDisconnected other) { + if (other == null) { + return; + } + if (other.ParticipantSid.Length != 0) { + ParticipantSid = other.ParticipantSid; + } + _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: { + ParticipantSid = 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: { + ParticipantSid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 LocalTrackPublished()); + 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[39]; } + } + + [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 LocalTrackPublished() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", 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 LocalTrackPublished Clone() { + return new LocalTrackPublished(this); + } + + /// 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 string TrackSid { + get { return trackSid_; } + set { + 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 LocalTrackPublished); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalTrackPublished other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackSid != other.TrackSid) 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 (TrackSid.Length != 0) hash ^= TrackSid.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 (TrackSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackSid); + } + 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 (TrackSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackSid); + } + 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 (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalTrackPublished other) { + if (other == null) { + return; + } + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; + } + _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: { + TrackSid = 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: { + TrackSid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 LocalTrackUnpublished()); + 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[40]; } + } + + [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 LocalTrackUnpublished() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackUnpublished(LocalTrackUnpublished other) : this() { + publicationSid_ = other.publicationSid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalTrackUnpublished Clone() { + return new LocalTrackUnpublished(this); + } + + /// 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 string PublicationSid { + get { return publicationSid_; } + set { + 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 LocalTrackUnpublished); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalTrackUnpublished other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PublicationSid != other.PublicationSid) 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 (PublicationSid.Length != 0) hash ^= PublicationSid.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 (PublicationSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PublicationSid); + } + 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 (PublicationSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(PublicationSid); + } + 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 (PublicationSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalTrackUnpublished other) { + if (other == null) { + return; + } + if (other.PublicationSid.Length != 0) { + PublicationSid = other.PublicationSid; + } + _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: { + PublicationSid = 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: { + PublicationSid = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackPublished()); + 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 TrackPublished() { + OnConstruction(); + } + + partial void OnConstruction(); + + [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; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublished Clone() { + return new TrackPublished(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"); + } + } + + /// 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 TrackPublished); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrackPublished 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); + } + 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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); + } + 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 (ParticipantSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + } + if (publication_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrackPublished other) { + if (other == null) { + return; + } + if (other.ParticipantSid.Length != 0) { + ParticipantSid = other.ParticipantSid; + } + if (other.publication_ != null) { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + Publication.MergeFrom(other.Publication); + } + _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: { + ParticipantSid = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + input.ReadMessage(Publication); break; } - case 106: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); + } + } + #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: { + ParticipantSid = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; + input.ReadMessage(Publication); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackUnpublished()); + 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 TrackUnpublished() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackUnpublished(TrackUnpublished other) : this() { + participantSid_ = other.participantSid_; + publicationSid_ = other.publicationSid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackUnpublished Clone() { + return new TrackUnpublished(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"); + } + } + + /// Field number for the "publication_sid" field. + public const int PublicationSidFieldNumber = 2; + private string publicationSid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PublicationSid { + get { return publicationSid_; } + set { + 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 TrackUnpublished); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrackUnpublished 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (PublicationSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PublicationSid); + } + 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 (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (PublicationSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PublicationSid); + } + 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 (ParticipantSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + } + if (PublicationSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrackUnpublished other) { + if (other == null) { + return; + } + if (other.ParticipantSid.Length != 0) { + ParticipantSid = other.ParticipantSid; + } + if (other.PublicationSid.Length != 0) { + PublicationSid = other.PublicationSid; + } + _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 114: { - global::LiveKit.Proto.Connected subBuilder = new global::LiveKit.Proto.Connected(); - if (messageCase_ == MessageOneofCase.Connected) { - subBuilder.MergeFrom(Connected); - } - input.ReadMessage(subBuilder); - Connected = subBuilder; + case 10: { + ParticipantSid = input.ReadString(); break; } - case 122: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); - } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; + case 18: { + PublicationSid = input.ReadString(); break; } - case 130: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); - } - input.ReadMessage(subBuilder); - Reconnecting = 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: { + ParticipantSid = input.ReadString(); break; } - case 138: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); - } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; + case 18: { + PublicationSid = input.ReadString(); break; } } @@ -5134,21 +11904,26 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class RoomInfo : pb::IMessage + /// + /// 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 #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 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[17]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5159,7 +11934,7 @@ public sealed partial class RoomInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo() { + public TrackSubscribed() { OnConstruction(); } @@ -5167,114 +11942,59 @@ public RoomInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo(RoomInfo other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; - sid_ = other.sid_; - name_ = other.name_; - metadata_ = other.metadata_; - localParticipant_ = other.localParticipant_ != null ? other.localParticipant_.Clone() : null; - participants_ = other.participants_.Clone(); + public TrackSubscribed(TrackSubscribed other) : this() { + participantSid_ = other.participantSid_; + 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 RoomInfo Clone() { - return new RoomInfo(this); - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } - } - - /// Field number for the "sid" field. - public const int SidFieldNumber = 2; - 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 = 3; - 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 TrackSubscribed Clone() { + return new TrackSubscribed(this); } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 4; - private string metadata_ = ""; + /// 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 Metadata { - get { return metadata_; } + public string ParticipantSid { + get { return participantSid_; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "local_participant" field. - public const int LocalParticipantFieldNumber = 5; - private global::LiveKit.Proto.ParticipantInfo localParticipant_; + /// 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.ParticipantInfo LocalParticipant { - get { return localParticipant_; } + public global::LiveKit.Proto.OwnedTrack Track { + get { return track_; } set { - localParticipant_ = value; + track_ = value; } } - /// Field number for the "participants" field. - public const int ParticipantsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_participants_codec - = pb::FieldCodec.ForMessage(50, global::LiveKit.Proto.ParticipantInfo.Parser); - private readonly pbc::RepeatedField participants_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Participants { - get { return participants_; } - } - [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 TrackSubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomInfo other) { + public bool Equals(TrackSubscribed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (Sid != other.Sid) return false; - if (Name != other.Name) return false; - if (Metadata != other.Metadata) return false; - if (!object.Equals(LocalParticipant, other.LocalParticipant)) return false; - if(!participants_.Equals(other.participants_)) return false; + if (ParticipantSid != other.ParticipantSid) return false; + if (!object.Equals(Track, other.Track)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5282,12 +12002,8 @@ public bool Equals(RoomInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); - if (localParticipant_ != null) hash ^= LocalParticipant.GetHashCode(); - hash ^= participants_.GetHashCode(); + if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (track_ != null) hash ^= Track.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5306,27 +12022,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (ParticipantSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteString(ParticipantSid); } - if (Sid.Length != 0) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Metadata); - } - if (localParticipant_ != null) { - output.WriteRawTag(42); - output.WriteMessage(LocalParticipant); + output.WriteMessage(Track); } - participants_.WriteTo(output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5337,27 +12040,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) { + if (ParticipantSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteString(ParticipantSid); } - if (Sid.Length != 0) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Metadata); - } - if (localParticipant_ != null) { - output.WriteRawTag(42); - output.WriteMessage(LocalParticipant); + output.WriteMessage(Track); } - participants_.WriteTo(ref output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5368,22 +12058,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); - } - 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 (ParticipantSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - if (localParticipant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalParticipant); + if (track_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); } - size += participants_.CalculateSize(_repeated_participants_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5392,32 +12072,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomInfo other) { + public void MergeFrom(TrackSubscribed other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); - } - 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.ParticipantSid.Length != 0) { + ParticipantSid = other.ParticipantSid; } - if (other.localParticipant_ != null) { - if (localParticipant_ == null) { - LocalParticipant = new global::LiveKit.Proto.ParticipantInfo(); + if (other.track_ != null) { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - LocalParticipant.MergeFrom(other.LocalParticipant); + Track.MergeFrom(other.Track); } - participants_.Add(other.participants_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5433,34 +12100,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } - case 18: { - Sid = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Metadata = input.ReadString(); + case 10: { + ParticipantSid = input.ReadString(); break; } - case 42: { - if (localParticipant_ == null) { - LocalParticipant = new global::LiveKit.Proto.ParticipantInfo(); + case 18: { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(LocalParticipant); - break; - } - case 50: { - participants_.AddEntriesFrom(input, _repeated_participants_codec); + input.ReadMessage(Track); break; } } @@ -5479,33 +12127,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); + ParticipantSid = input.ReadString(); break; } case 18: { - Sid = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Metadata = input.ReadString(); - break; - } - case 42: { - if (localParticipant_ == null) { - LocalParticipant = new global::LiveKit.Proto.ParticipantInfo(); + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(LocalParticipant); - break; - } - case 50: { - participants_.AddEntriesFrom(ref input, _repeated_participants_codec); + input.ReadMessage(Track); break; } } @@ -5515,21 +12144,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DataReceived : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 DataReceived()); + 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[18]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5540,7 +12170,7 @@ public sealed partial class DataReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataReceived() { + public TrackUnsubscribed() { OnConstruction(); } @@ -5548,113 +12178,62 @@ public DataReceived() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataReceived(DataReceived other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; + public TrackUnsubscribed(TrackUnsubscribed other) : this() { participantSid_ = other.participantSid_; - dataPtr_ = other.dataPtr_; - dataSize_ = other.dataSize_; - kind_ = other.kind_; + trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataReceived Clone() { - return new DataReceived(this); - } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } + public TrackUnsubscribed Clone() { + return new TrackUnsubscribed(this); } /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 2; - private string participantSid_; + public const int ParticipantSidFieldNumber = 1; + private string participantSid_ = ""; + /// + /// 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_ ?? ""; } + get { return participantSid_; } set { participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "participant_sid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParticipantSid { - get { return participantSid_ != null; } - } - /// Clears the value of the "participant_sid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParticipantSid() { - participantSid_ = null; - } - - /// Field number for the "data_ptr" field. - public const int DataPtrFieldNumber = 3; - 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_size" field. - public const int DataSizeFieldNumber = 4; - private ulong dataSize_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataSize { - get { return dataSize_; } - set { - dataSize_ = value; - } - } - - /// Field number for the "kind" field. - public const int KindFieldNumber = 5; - private global::LiveKit.Proto.DataPacketKind kind_ = global::LiveKit.Proto.DataPacketKind.KindUnreliable; + /// 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 global::LiveKit.Proto.DataPacketKind Kind { - get { return kind_; } + public string TrackSid { + get { return trackSid_; } set { - kind_ = 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 DataReceived); + return Equals(other as TrackUnsubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DataReceived other) { + public bool Equals(TrackUnsubscribed other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; if (ParticipantSid != other.ParticipantSid) return false; - if (DataPtr != other.DataPtr) return false; - if (DataSize != other.DataSize) return false; - if (Kind != other.Kind) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5662,11 +12241,8 @@ public bool Equals(DataReceived other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (HasParticipantSid) hash ^= ParticipantSid.GetHashCode(); - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (DataSize != 0UL) hash ^= DataSize.GetHashCode(); - if (Kind != global::LiveKit.Proto.DataPacketKind.KindUnreliable) hash ^= Kind.GetHashCode(); + if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5685,25 +12261,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (ParticipantSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (HasParticipantSid) { - output.WriteRawTag(18); output.WriteString(ParticipantSid); } - if (DataPtr != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(DataPtr); - } - if (DataSize != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(DataSize); - } - if (Kind != global::LiveKit.Proto.DataPacketKind.KindUnreliable) { - output.WriteRawTag(40); - output.WriteEnum((int) Kind); + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5715,25 +12279,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 (handle_ != null) { + if (ParticipantSid.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (HasParticipantSid) { - output.WriteRawTag(18); output.WriteString(ParticipantSid); } - if (DataPtr != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(DataPtr); - } - if (DataSize != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(DataSize); - } - if (Kind != global::LiveKit.Proto.DataPacketKind.KindUnreliable) { - output.WriteRawTag(40); - output.WriteEnum((int) Kind); + if (TrackSid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5745,20 +12297,11 @@ 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 (HasParticipantSid) { + if (ParticipantSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - if (DataPtr != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); - } - if (DataSize != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataSize); - } - if (Kind != global::LiveKit.Proto.DataPacketKind.KindUnreliable) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + if (TrackSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5768,27 +12311,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DataReceived other) { + public void MergeFrom(TrackUnsubscribed other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); - } - if (other.HasParticipantSid) { + if (other.ParticipantSid.Length != 0) { ParticipantSid = other.ParticipantSid; } - if (other.DataPtr != 0UL) { - DataPtr = other.DataPtr; - } - if (other.DataSize != 0UL) { - DataSize = other.DataSize; - } - if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindUnreliable) { - Kind = other.Kind; + if (other.TrackSid.Length != 0) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5806,26 +12337,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } - case 18: { ParticipantSid = input.ReadString(); break; } - case 24: { - DataPtr = input.ReadUInt64(); - break; - } - case 32: { - DataSize = input.ReadUInt64(); - break; - } - case 40: { - Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + case 18: { + TrackSid = input.ReadString(); break; } } @@ -5844,26 +12360,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } - case 18: { ParticipantSid = input.ReadString(); break; } - case 24: { - DataPtr = input.ReadUInt64(); - break; - } - case 32: { - DataSize = input.ReadUInt64(); - break; - } - case 40: { - Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + case 18: { + TrackSid = input.ReadString(); break; } } @@ -5873,25 +12374,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 - /// - public sealed partial class TrackSubscribed : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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[19]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5902,7 +12400,7 @@ public sealed partial class TrackSubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed() { + public TrackSubscriptionFailed() { OnConstruction(); } @@ -5910,16 +12408,17 @@ public TrackSubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed(TrackSubscribed other) : this() { + public TrackSubscriptionFailed(TrackSubscriptionFailed other) : this() { participantSid_ = other.participantSid_; - track_ = other.track_ != null ? other.track_.Clone() : null; + 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_sid" field. @@ -5934,27 +12433,39 @@ public string ParticipantSid { } } - /// Field number for the "track" field. - public const int TrackFieldNumber = 2; - private global::LiveKit.Proto.TrackInfo track_; + /// 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 global::LiveKit.Proto.TrackInfo Track { - get { return track_; } + public string TrackSid { + get { return trackSid_; } set { - track_ = value; + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// 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 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; } @@ -5962,7 +12473,8 @@ public bool Equals(TrackSubscribed other) { return true; } if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(Track, other.Track)) return false; + if (TrackSid != other.TrackSid) return false; + if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5971,7 +12483,8 @@ public bool Equals(TrackSubscribed other) { public override int GetHashCode() { int hash = 1; if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (track_ != null) hash ^= Track.GetHashCode(); + if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (Error.Length != 0) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5994,9 +12507,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - 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); @@ -6012,9 +12529,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - 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); @@ -6029,8 +12550,11 @@ public int CalculateSize() { if (ParticipantSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - 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(); @@ -6040,18 +12564,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.track_ != null) { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - 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); } @@ -6073,10 +12597,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -6099,10 +12624,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -6112,21 +12638,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackUnsubscribed : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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[20]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6137,7 +12664,7 @@ public sealed partial class TrackUnsubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed() { + public TrackMuted() { OnConstruction(); } @@ -6145,7 +12672,7 @@ public TrackUnsubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed(TrackUnsubscribed other) : this() { + public TrackMuted(TrackMuted other) : this() { participantSid_ = other.participantSid_; trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -6153,16 +12680,13 @@ public TrackUnsubscribed(TrackUnsubscribed other) : this() { [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 - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantSid { @@ -6187,12 +12711,12 @@ 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; } @@ -6278,7 +12802,7 @@ 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; } @@ -6341,21 +12865,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackMuted : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackMuted()); + 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[21]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6366,7 +12891,7 @@ public sealed partial class TrackMuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted() { + public TrackUnmuted() { OnConstruction(); } @@ -6374,7 +12899,7 @@ public TrackMuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted(TrackMuted other) : this() { + public TrackUnmuted(TrackUnmuted other) : this() { participantSid_ = other.participantSid_; trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -6382,8 +12907,8 @@ public TrackMuted(TrackMuted other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted Clone() { - return new TrackMuted(this); + public TrackUnmuted Clone() { + return new TrackUnmuted(this); } /// Field number for the "participant_sid" field. @@ -6413,12 +12938,12 @@ public string TrackSid { [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 TrackUnmuted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackMuted other) { + public bool Equals(TrackUnmuted other) { if (ReferenceEquals(other, null)) { return false; } @@ -6504,7 +13029,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackMuted other) { + public void MergeFrom(TrackUnmuted other) { if (other == null) { return; } @@ -6567,21 +13092,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackUnmuted : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackUnmuted()); + 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[22]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6592,7 +13118,7 @@ public sealed partial class TrackUnmuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted() { + public E2eeStateChanged() { OnConstruction(); } @@ -6600,21 +13126,24 @@ public TrackUnmuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted(TrackUnmuted other) : this() { + public E2eeStateChanged(E2eeStateChanged other) : this() { participantSid_ = other.participantSid_; - trackSid_ = other.trackSid_; + state_ = other.state_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted Clone() { - return new TrackUnmuted(this); + 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 { @@ -6624,27 +13153,27 @@ public string ParticipantSid { } } - /// 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 TrackUnmuted); + return Equals(other as E2eeStateChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnmuted other) { + public bool Equals(E2eeStateChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -6652,7 +13181,7 @@ public bool Equals(TrackUnmuted other) { return true; } if (ParticipantSid != other.ParticipantSid) return false; - if (TrackSid != other.TrackSid) return false; + if (State != other.State) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6661,7 +13190,7 @@ public bool Equals(TrackUnmuted other) { public override int GetHashCode() { int hash = 1; if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (State != global::LiveKit.Proto.EncryptionState.New) hash ^= State.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6684,9 +13213,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - 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); @@ -6702,9 +13231,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - 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); @@ -6719,8 +13248,8 @@ public int CalculateSize() { if (ParticipantSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - 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(); @@ -6730,15 +13259,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnmuted other) { + public void MergeFrom(E2eeStateChanged other) { if (other == null) { return; } if (other.ParticipantSid.Length != 0) { ParticipantSid = other.ParticipantSid; } - 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); } @@ -6759,8 +13288,8 @@ public void MergeFrom(pb::CodedInputStream input) { ParticipantSid = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -6782,8 +13311,8 @@ public void MergeFrom(pb::CodedInputStream input) { ParticipantSid = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -6793,21 +13322,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ParticipantConnected : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 ParticipantConnected()); + 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[23]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6818,7 +13348,7 @@ public sealed partial class ParticipantConnected : pb::IMessageField number for the "info" field. - public const int InfoFieldNumber = 1; - private global::LiveKit.Proto.ParticipantInfo info_; + /// Field 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(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantInfo Info { - get { return info_; } - set { - info_ = value; - } + public pbc::RepeatedField ParticipantSids { + get { return participantSids_; } } [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 ActiveSpeakersChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantConnected other) { + public bool Equals(ActiveSpeakersChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Info, other.Info)) return false; + if(!participantSids_.Equals(other.participantSids_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6872,7 +13401,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(); + hash ^= participantSids_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6891,10 +13420,7 @@ 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); - } + participantSids_.WriteTo(output, _repeated_participantSids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6905,10 +13431,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 (info_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Info); - } + participantSids_.WriteTo(ref output, _repeated_participantSids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6919,9 +13442,7 @@ 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); - } + size += participantSids_.CalculateSize(_repeated_participantSids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6930,16 +13451,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantConnected other) { + public void MergeFrom(ActiveSpeakersChanged other) { if (other == null) { return; } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.ParticipantInfo(); - } - Info.MergeFrom(other.Info); - } + participantSids_.Add(other.participantSids_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6956,10 +13472,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (info_ == null) { - Info = new global::LiveKit.Proto.ParticipantInfo(); - } - input.ReadMessage(Info); + participantSids_.AddEntriesFrom(input, _repeated_participantSids_codec); break; } } @@ -6978,10 +13491,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.ParticipantInfo(); - } - input.ReadMessage(Info); + participantSids_.AddEntriesFrom(ref input, _repeated_participantSids_codec); break; } } @@ -6991,21 +13501,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ParticipantDisconnected : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 ParticipantDisconnected()); + 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[24]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7016,7 +13527,7 @@ public sealed partial class ParticipantDisconnected : pb::IMessageField number for the "info" field. - public const int InfoFieldNumber = 1; - private global::LiveKit.Proto.ParticipantInfo info_; + /// 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.ParticipantInfo Info { - get { return info_; } + public string Metadata { + get { return metadata_; } set { - info_ = 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 ParticipantDisconnected); + return Equals(other as RoomMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantDisconnected other) { + public bool Equals(RoomMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Info, other.Info)) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7070,7 +13581,7 @@ public bool Equals(ParticipantDisconnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (info_ != null) hash ^= Info.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7089,9 +13600,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (info_ != null) { + if (Metadata.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7103,9 +13614,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 (Metadata.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7117,8 +13628,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 (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7128,16 +13639,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantDisconnected other) { + public void MergeFrom(RoomMetadataChanged other) { if (other == null) { return; } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.ParticipantInfo(); - } - Info.MergeFrom(other.Info); - } + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7154,10 +13662,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (info_ == null) { - Info = new global::LiveKit.Proto.ParticipantInfo(); - } - input.ReadMessage(Info); + Metadata = input.ReadString(); break; } } @@ -7176,10 +13681,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.ParticipantInfo(); - } - input.ReadMessage(Info); + Metadata = input.ReadString(); break; } } @@ -7189,21 +13691,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackPublished : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackPublished()); + 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[25]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7214,7 +13717,7 @@ public sealed partial class TrackPublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished() { + public ParticipantMetadataChanged() { OnConstruction(); } @@ -7222,16 +13725,16 @@ public TrackPublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished(TrackPublished other) : this() { + public ParticipantMetadataChanged(ParticipantMetadataChanged other) : this() { participantSid_ = other.participantSid_; - publication_ = other.publication_ != null ? other.publication_.Clone() : null; + metadata_ = other.metadata_; _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 ParticipantMetadataChanged Clone() { + return new ParticipantMetadataChanged(this); } /// Field number for the "participant_sid" field. @@ -7246,27 +13749,27 @@ public string ParticipantSid { } } - /// Field number for the "publication" field. - public const int PublicationFieldNumber = 2; - private global::LiveKit.Proto.TrackPublicationInfo publication_; + /// 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 global::LiveKit.Proto.TrackPublicationInfo Publication { - get { return publication_; } + public string Metadata { + get { return metadata_; } set { - publication_ = 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 TrackPublished); + return Equals(other as ParticipantMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublished other) { + public bool Equals(ParticipantMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -7274,7 +13777,7 @@ public bool Equals(TrackPublished other) { return true; } if (ParticipantSid != other.ParticipantSid) return false; - if (!object.Equals(Publication, other.Publication)) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7283,7 +13786,7 @@ public bool Equals(TrackPublished other) { public override int GetHashCode() { int hash = 1; if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (publication_ != null) hash ^= Publication.GetHashCode(); + if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7306,9 +13809,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - if (publication_ != null) { + if (Metadata.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7324,9 +13827,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - if (publication_ != null) { + if (Metadata.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7341,8 +13844,8 @@ public int CalculateSize() { if (ParticipantSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - if (publication_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); + if (Metadata.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7352,18 +13855,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublished other) { + public void MergeFrom(ParticipantMetadataChanged other) { if (other == null) { return; } if (other.ParticipantSid.Length != 0) { ParticipantSid = other.ParticipantSid; } - if (other.publication_ != null) { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); - } - Publication.MergeFrom(other.Publication); + if (other.Metadata.Length != 0) { + Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7385,10 +13885,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); - } - input.ReadMessage(Publication); + Metadata = input.ReadString(); break; } } @@ -7411,10 +13908,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.TrackPublicationInfo(); - } - input.ReadMessage(Publication); + Metadata = input.ReadString(); break; } } @@ -7424,21 +13918,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackUnpublished : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 TrackUnpublished()); + 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[26]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7449,7 +13944,7 @@ public sealed partial class TrackUnpublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished() { + public ParticipantNameChanged() { OnConstruction(); } @@ -7457,16 +13952,16 @@ public TrackUnpublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished(TrackUnpublished other) : this() { + public ParticipantNameChanged(ParticipantNameChanged other) : this() { participantSid_ = other.participantSid_; - publicationSid_ = other.publicationSid_; + name_ = other.name_; _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 ParticipantNameChanged Clone() { + return new ParticipantNameChanged(this); } /// Field number for the "participant_sid" field. @@ -7481,27 +13976,27 @@ public string ParticipantSid { } } - /// Field number for the "publication_sid" field. - public const int PublicationSidFieldNumber = 2; - private string publicationSid_ = ""; + /// 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 PublicationSid { - get { return publicationSid_; } + public string Name { + get { return name_; } set { - publicationSid_ = 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 TrackUnpublished); + return Equals(other as ParticipantNameChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnpublished other) { + public bool Equals(ParticipantNameChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -7509,7 +14004,7 @@ public bool Equals(TrackUnpublished other) { return true; } if (ParticipantSid != other.ParticipantSid) return false; - if (PublicationSid != other.PublicationSid) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7518,7 +14013,7 @@ public bool Equals(TrackUnpublished other) { public override int GetHashCode() { int hash = 1; if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7541,9 +14036,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - if (PublicationSid.Length != 0) { + if (Name.Length != 0) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7559,9 +14054,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ParticipantSid); } - if (PublicationSid.Length != 0) { + if (Name.Length != 0) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7576,8 +14071,8 @@ public int CalculateSize() { if (ParticipantSid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - if (PublicationSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7587,15 +14082,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnpublished other) { + public void MergeFrom(ParticipantNameChanged other) { if (other == null) { return; } if (other.ParticipantSid.Length != 0) { ParticipantSid = other.ParticipantSid; } - if (other.PublicationSid.Length != 0) { - PublicationSid = other.PublicationSid; + if (other.Name.Length != 0) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7617,7 +14112,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - PublicationSid = input.ReadString(); + Name = input.ReadString(); break; } } @@ -7640,7 +14135,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - PublicationSid = input.ReadString(); + Name = input.ReadString(); break; } } @@ -7650,21 +14145,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ActiveSpeakersChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + 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 ActiveSpeakersChanged()); + 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[27]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7675,7 +14171,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 "participant_sid" field. + public const int ParticipantSidFieldNumber = 1; + private string participantSid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParticipantSids { - get { return participantSids_; } + public string ParticipantSid { + get { return participantSid_; } + set { + participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// 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 global::LiveKit.Proto.ConnectionQuality Quality { + get { return quality_; } + set { + quality_ = 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 ConnectionQualityChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ActiveSpeakersChanged other) { + public bool Equals(ConnectionQualityChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!participantSids_.Equals(other.participantSids_)) return false; + if (ParticipantSid != other.ParticipantSid) return false; + if (Quality != other.Quality) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7728,7 +14239,8 @@ public bool Equals(ActiveSpeakersChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= participantSids_.GetHashCode(); + if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) hash ^= Quality.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7747,7 +14259,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - participantSids_.WriteTo(output, _repeated_participantSids_codec); + if (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7758,7 +14277,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) { - participantSids_.WriteTo(ref output, _repeated_participantSids_codec); + if (ParticipantSid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ParticipantSid); + } + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7769,7 +14295,12 @@ 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 (ParticipantSid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); + } + if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7778,11 +14309,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ActiveSpeakersChanged other) { + public void MergeFrom(ConnectionQualityChanged other) { if (other == null) { return; } - participantSids_.Add(other.participantSids_); + if (other.ParticipantSid.Length != 0) { + ParticipantSid = other.ParticipantSid; + } + if (other.Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + Quality = other.Quality; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7799,7 +14335,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - participantSids_.AddEntriesFrom(input, _repeated_participantSids_codec); + ParticipantSid = input.ReadString(); + break; + } + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -7818,7 +14358,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - participantSids_.AddEntriesFrom(ref input, _repeated_participantSids_codec); + ParticipantSid = input.ReadString(); + break; + } + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -7828,21 +14372,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ConnectionQualityChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataReceived : 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 DataReceived()); 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[28]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7853,67 +14398,126 @@ public sealed partial class ConnectionQualityChanged : pb::IMessageField 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 global::LiveKit.Proto.OwnedBuffer Data { + get { return data_; } + set { + data_ = value; + } + } + + /// Field number for the "participant_sid" field. + public const int ParticipantSidFieldNumber = 2; + private readonly static string ParticipantSidDefaultValue = ""; + + private string participantSid_; + /// + /// Can be empty if the data is sent a server SDK + /// + [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.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConnectionQualityChanged(ConnectionQualityChanged other) : this() { - participantSid_ = other.participantSid_; - quality_ = other.quality_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + public bool HasParticipantSid { + get { return participantSid_ != null; } } - + /// Clears the value of the "participant_sid" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConnectionQualityChanged Clone() { - return new ConnectionQualityChanged(this); + public void ClearParticipantSid() { + participantSid_ = null; } - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 1; - private string participantSid_ = ""; + /// Field number for the "kind" field. + public const int KindFieldNumber = 3; + private global::LiveKit.Proto.DataPacketKind kind_ = global::LiveKit.Proto.DataPacketKind.KindLossy; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantSid { - get { return participantSid_; } + public global::LiveKit.Proto.DataPacketKind Kind { + get { return kind_; } set { - participantSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + kind_ = 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 = 4; + 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 DataReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnectionQualityChanged other) { + public bool Equals(DataReceived other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(Data, other.Data)) return false; if (ParticipantSid != other.ParticipantSid) return false; - if (Quality != other.Quality) return false; + if (Kind != other.Kind) return false; + if (Topic != other.Topic) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7921,8 +14525,10 @@ 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 (HasParticipantSid) hash ^= ParticipantSid.GetHashCode(); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) hash ^= Kind.GetHashCode(); + if (HasTopic) hash ^= Topic.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7941,13 +14547,21 @@ 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.WriteMessage(Data); + } + if (HasParticipantSid) { + output.WriteRawTag(18); output.WriteString(ParticipantSid); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - output.WriteRawTag(16); - output.WriteEnum((int) Quality); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (HasTopic) { + output.WriteRawTag(34); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7959,13 +14573,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 (ParticipantSid.Length != 0) { + if (data_ != null) { output.WriteRawTag(10); + output.WriteMessage(Data); + } + if (HasParticipantSid) { + output.WriteRawTag(18); output.WriteString(ParticipantSid); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - output.WriteRawTag(16); - output.WriteEnum((int) Quality); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + output.WriteRawTag(24); + output.WriteEnum((int) Kind); + } + if (HasTopic) { + output.WriteRawTag(34); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7977,11 +14599,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantSid.Length != 0) { + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + } + if (HasParticipantSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } + if (HasTopic) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7991,15 +14619,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnectionQualityChanged other) { + public void MergeFrom(DataReceived other) { if (other == null) { return; } - if (other.ParticipantSid.Length != 0) { + if (other.data_ != null) { + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + Data.MergeFrom(other.Data); + } + if (other.HasParticipantSid) { ParticipantSid = other.ParticipantSid; } - if (other.Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - Quality = other.Quality; + if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + Kind = other.Kind; + } + if (other.HasTopic) { + Topic = other.Topic; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8017,11 +14654,22 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); + break; + } + case 18: { ParticipantSid = input.ReadString(); break; } - case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + case 24: { + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + break; + } + case 34: { + Topic = input.ReadString(); break; } } @@ -8040,11 +14688,22 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); + break; + } + case 18: { ParticipantSid = input.ReadString(); break; } - case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + case 24: { + Kind = (global::LiveKit.Proto.DataPacketKind) input.ReadEnum(); + break; + } + case 34: { + Topic = input.ReadString(); break; } } @@ -8054,6 +14713,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ConnectionStateChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8068,7 +14728,7 @@ public sealed partial class ConnectionStateChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8257,7 +14918,7 @@ public sealed partial class Connected : 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[30]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8395,6 +15056,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Disconnected : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8409,7 +15071,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[31]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8547,6 +15209,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Reconnecting : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8561,7 +15224,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[32]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8699,6 +15362,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Reconnected : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8713,7 +15377,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[33]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8851,6 +15515,159 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RoomEOS : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomEOS()); + 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[60]; } + } + + [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 RoomEOS() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomEOS(RoomEOS other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomEOS Clone() { + return new RoomEOS(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoomEOS); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoomEOS other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoomEOS other) { + if (other == null) { + return; + } + _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; + } + } + #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 + + } + #endregion } diff --git a/Runtime/Scripts/Proto/Stats.cs b/Runtime/Scripts/Proto/Stats.cs new file mode 100644 index 0000000..494de7b --- /dev/null +++ b/Runtime/Scripts/Proto/Stats.cs @@ -0,0 +1,15708 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stats.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace LiveKit.Proto { + + /// Holder for reflection information generated from stats.proto + public static partial class StatsReflection { + + #region Descriptor + /// File descriptor for stats.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StatsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgtzdGF0cy5wcm90bxINbGl2ZWtpdC5wcm90byLZFwoIUnRjU3RhdHMSLgoF", + "Y29kZWMYAyABKAsyHS5saXZla2l0LnByb3RvLlJ0Y1N0YXRzLkNvZGVjSAAS", + "OQoLaW5ib3VuZF9ydHAYBCABKAsyIi5saXZla2l0LnByb3RvLlJ0Y1N0YXRz", + "LkluYm91bmRSdHBIABI7CgxvdXRib3VuZF9ydHAYBSABKAsyIy5saXZla2l0", + "LnByb3RvLlJ0Y1N0YXRzLk91dGJvdW5kUnRwSAASRgoScmVtb3RlX2luYm91", + "bmRfcnRwGAYgASgLMigubGl2ZWtpdC5wcm90by5SdGNTdGF0cy5SZW1vdGVJ", + "bmJvdW5kUnRwSAASSAoTcmVtb3RlX291dGJvdW5kX3J0cBgHIAEoCzIpLmxp", + "dmVraXQucHJvdG8uUnRjU3RhdHMuUmVtb3RlT3V0Ym91bmRSdHBIABI7Cgxt", + "ZWRpYV9zb3VyY2UYCCABKAsyIy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzLk1l", + "ZGlhU291cmNlSAASPQoNbWVkaWFfcGxheW91dBgJIAEoCzIkLmxpdmVraXQu", + "cHJvdG8uUnRjU3RhdHMuTWVkaWFQbGF5b3V0SAASQQoPcGVlcl9jb25uZWN0", + "aW9uGAogASgLMiYubGl2ZWtpdC5wcm90by5SdGNTdGF0cy5QZWVyQ29ubmVj", + "dGlvbkgAEjsKDGRhdGFfY2hhbm5lbBgLIAEoCzIjLmxpdmVraXQucHJvdG8u", + "UnRjU3RhdHMuRGF0YUNoYW5uZWxIABI2Cgl0cmFuc3BvcnQYDCABKAsyIS5s", + "aXZla2l0LnByb3RvLlJ0Y1N0YXRzLlRyYW5zcG9ydEgAEj8KDmNhbmRpZGF0", + "ZV9wYWlyGA0gASgLMiUubGl2ZWtpdC5wcm90by5SdGNTdGF0cy5DYW5kaWRh", + "dGVQYWlySAASQQoPbG9jYWxfY2FuZGlkYXRlGA4gASgLMiYubGl2ZWtpdC5w", + "cm90by5SdGNTdGF0cy5Mb2NhbENhbmRpZGF0ZUgAEkMKEHJlbW90ZV9jYW5k", + "aWRhdGUYDyABKAsyJy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzLlJlbW90ZUNh", + "bmRpZGF0ZUgAEjoKC2NlcnRpZmljYXRlGBAgASgLMiMubGl2ZWtpdC5wcm90", + "by5SdGNTdGF0cy5DZXJ0aWZpY2F0ZUgAEi4KBXRyYWNrGBEgASgLMh0ubGl2", + "ZWtpdC5wcm90by5SdGNTdGF0cy5UcmFja0gAGlsKBUNvZGVjEigKA3J0YxgB", + "IAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEigKBWNvZGVjGAIg", + "ASgLMhkubGl2ZWtpdC5wcm90by5Db2RlY1N0YXRzGtUBCgpJbmJvdW5kUnRw", + "EigKA3J0YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0K", + "BnN0cmVhbRgCIAEoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMS", + "NwoIcmVjZWl2ZWQYAyABKAsyJS5saXZla2l0LnByb3RvLlJlY2VpdmVkUnRw", + "U3RyZWFtU3RhdHMSNQoHaW5ib3VuZBgEIAEoCzIkLmxpdmVraXQucHJvdG8u", + "SW5ib3VuZFJ0cFN0cmVhbVN0YXRzGtABCgtPdXRib3VuZFJ0cBIoCgNydGMY", + "ASABKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0Y", + "AiABKAsyHS5saXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEi8KBHNlbnQY", + "AyABKAsyIS5saXZla2l0LnByb3RvLlNlbnRSdHBTdHJlYW1TdGF0cxI3Cghv", + "dXRib3VuZBgEIAEoCzIlLmxpdmVraXQucHJvdG8uT3V0Ym91bmRSdHBTdHJl", + "YW1TdGF0cxroAQoQUmVtb3RlSW5ib3VuZFJ0cBIoCgNydGMYASABKAsyGy5s", + "aXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0YAiABKAsyHS5s", + "aXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEjcKCHJlY2VpdmVkGAMgASgL", + "MiUubGl2ZWtpdC5wcm90by5SZWNlaXZlZFJ0cFN0cmVhbVN0YXRzEkIKDnJl", + "bW90ZV9pbmJvdW5kGAQgASgLMioubGl2ZWtpdC5wcm90by5SZW1vdGVJbmJv", + "dW5kUnRwU3RyZWFtU3RhdHMa4wEKEVJlbW90ZU91dGJvdW5kUnRwEigKA3J0", + "YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0KBnN0cmVh", + "bRgCIAEoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMSLwoEc2Vu", + "dBgDIAEoCzIhLmxpdmVraXQucHJvdG8uU2VudFJ0cFN0cmVhbVN0YXRzEkQK", + "D3JlbW90ZV9vdXRib3VuZBgEIAEoCzIrLmxpdmVraXQucHJvdG8uUmVtb3Rl", + "T3V0Ym91bmRSdHBTdHJlYW1TdGF0cxrIAQoLTWVkaWFTb3VyY2USKAoDcnRj", + "GAEgASgLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESLwoGc291cmNl", + "GAIgASgLMh8ubGl2ZWtpdC5wcm90by5NZWRpYVNvdXJjZVN0YXRzEi4KBWF1", + "ZGlvGAMgASgLMh8ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVN0YXRzEi4K", + "BXZpZGVvGAQgASgLMh8ubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVN0YXRz", + "GnEKDE1lZGlhUGxheW91dBIoCgNydGMYASABKAsyGy5saXZla2l0LnByb3Rv", + "LlJ0Y1N0YXRzRGF0YRI3Cg1hdWRpb19wbGF5b3V0GAIgASgLMiAubGl2ZWtp", + "dC5wcm90by5BdWRpb1BsYXlvdXRTdGF0cxpqCg5QZWVyQ29ubmVjdGlvbhIo", + "CgNydGMYASABKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRIuCgJw", + "YxgCIAEoCzIiLmxpdmVraXQucHJvdG8uUGVlckNvbm5lY3Rpb25TdGF0cxpk", + "CgtEYXRhQ2hhbm5lbBIoCgNydGMYASABKAsyGy5saXZla2l0LnByb3RvLlJ0", + "Y1N0YXRzRGF0YRIrCgJkYxgCIAEoCzIfLmxpdmVraXQucHJvdG8uRGF0YUNo", + "YW5uZWxTdGF0cxpnCglUcmFuc3BvcnQSKAoDcnRjGAEgASgLMhsubGl2ZWtp", + "dC5wcm90by5SdGNTdGF0c0RhdGESMAoJdHJhbnNwb3J0GAIgASgLMh0ubGl2", + "ZWtpdC5wcm90by5UcmFuc3BvcnRTdGF0cxp0Cg1DYW5kaWRhdGVQYWlyEigK", + "A3J0YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEjkKDmNh", + "bmRpZGF0ZV9wYWlyGAIgASgLMiEubGl2ZWtpdC5wcm90by5DYW5kaWRhdGVQ", + "YWlyU3RhdHMabwoOTG9jYWxDYW5kaWRhdGUSKAoDcnRjGAEgASgLMhsubGl2", + "ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESMwoJY2FuZGlkYXRlGAIgASgLMiAu", + "bGl2ZWtpdC5wcm90by5JY2VDYW5kaWRhdGVTdGF0cxpwCg9SZW1vdGVDYW5k", + "aWRhdGUSKAoDcnRjGAEgASgLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0Rh", + "dGESMwoJY2FuZGlkYXRlGAIgASgLMiAubGl2ZWtpdC5wcm90by5JY2VDYW5k", + "aWRhdGVTdGF0cxptCgtDZXJ0aWZpY2F0ZRIoCgNydGMYASABKAsyGy5saXZl", + "a2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRI0CgtjZXJ0aWZpY2F0ZRgCIAEoCzIf", + "LmxpdmVraXQucHJvdG8uQ2VydGlmaWNhdGVTdGF0cxoHCgVUcmFja0IHCgVz", + "dGF0cyItCgxSdGNTdGF0c0RhdGESCgoCaWQYASABKAkSEQoJdGltZXN0YW1w", + "GAIgASgDIogBCgpDb2RlY1N0YXRzEhQKDHBheWxvYWRfdHlwZRgBIAEoDRIU", + "Cgx0cmFuc3BvcnRfaWQYAiABKAkSEQoJbWltZV90eXBlGAMgASgJEhIKCmNs", + "b2NrX3JhdGUYBCABKA0SEAoIY2hhbm5lbHMYBSABKA0SFQoNc2RwX2ZtdHBf", + "bGluZRgGIAEoCSJUCg5SdHBTdHJlYW1TdGF0cxIMCgRzc3JjGAEgASgNEgwK", + "BGtpbmQYAiABKAkSFAoMdHJhbnNwb3J0X2lkGAMgASgJEhAKCGNvZGVjX2lk", + "GAQgASgJIlgKFlJlY2VpdmVkUnRwU3RyZWFtU3RhdHMSGAoQcGFja2V0c19y", + "ZWNlaXZlZBgBIAEoBBIUCgxwYWNrZXRzX2xvc3QYAiABKAMSDgoGaml0dGVy", + "GAMgASgBIoIMChVJbmJvdW5kUnRwU3RyZWFtU3RhdHMSGAoQdHJhY2tfaWRl", + "bnRpZmllchgBIAEoCRILCgNtaWQYAiABKAkSEQoJcmVtb3RlX2lkGAMgASgJ", + "EhYKDmZyYW1lc19kZWNvZGVkGAQgASgNEhoKEmtleV9mcmFtZXNfZGVjb2Rl", + "ZBgFIAEoDRIXCg9mcmFtZXNfcmVuZGVyZWQYBiABKA0SFgoOZnJhbWVzX2Ry", + "b3BwZWQYByABKA0SEwoLZnJhbWVfd2lkdGgYCCABKA0SFAoMZnJhbWVfaGVp", + "Z2h0GAkgASgNEhkKEWZyYW1lc19wZXJfc2Vjb25kGAogASgBEg4KBnFwX3N1", + "bRgLIAEoBBIZChF0b3RhbF9kZWNvZGVfdGltZRgMIAEoARIfChd0b3RhbF9p", + "bnRlcl9mcmFtZV9kZWxheRgNIAEoARInCh90b3RhbF9zcXVhcmVkX2ludGVy", + "X2ZyYW1lX2RlbGF5GA4gASgBEhMKC3BhdXNlX2NvdW50GA8gASgNEhwKFHRv", + "dGFsX3BhdXNlX2R1cmF0aW9uGBAgASgBEhQKDGZyZWV6ZV9jb3VudBgRIAEo", + "DRIdChV0b3RhbF9mcmVlemVfZHVyYXRpb24YEiABKAESJgoebGFzdF9wYWNr", + "ZXRfcmVjZWl2ZWRfdGltZXN0YW1wGBMgASgBEh0KFWhlYWRlcl9ieXRlc19y", + "ZWNlaXZlZBgUIAEoBBIZChFwYWNrZXRzX2Rpc2NhcmRlZBgVIAEoBBIaChJm", + "ZWNfYnl0ZXNfcmVjZWl2ZWQYFiABKAQSHAoUZmVjX3BhY2tldHNfcmVjZWl2", + "ZWQYFyABKAQSHQoVZmVjX3BhY2tldHNfZGlzY2FyZGVkGBggASgEEhYKDmJ5", + "dGVzX3JlY2VpdmVkGBkgASgEEhIKCm5hY2tfY291bnQYGiABKA0SEQoJZmly", + "X2NvdW50GBsgASgNEhEKCXBsaV9jb3VudBgcIAEoDRIeChZ0b3RhbF9wcm9j", + "ZXNzaW5nX2RlbGF5GB0gASgBEiMKG2VzdGltYXRlZF9wbGF5b3V0X3RpbWVz", + "dGFtcBgeIAEoARIbChNqaXR0ZXJfYnVmZmVyX2RlbGF5GB8gASgBEiIKGmpp", + "dHRlcl9idWZmZXJfdGFyZ2V0X2RlbGF5GCAgASgBEiMKG2ppdHRlcl9idWZm", + "ZXJfZW1pdHRlZF9jb3VudBghIAEoBBIjChtqaXR0ZXJfYnVmZmVyX21pbmlt", + "dW1fZGVsYXkYIiABKAESHgoWdG90YWxfc2FtcGxlc19yZWNlaXZlZBgjIAEo", + "BBIZChFjb25jZWFsZWRfc2FtcGxlcxgkIAEoBBIgChhzaWxlbnRfY29uY2Vh", + "bGVkX3NhbXBsZXMYJSABKAQSGgoSY29uY2VhbG1lbnRfZXZlbnRzGCYgASgE", + "EikKIWluc2VydGVkX3NhbXBsZXNfZm9yX2RlY2VsZXJhdGlvbhgnIAEoBBIo", + "CiByZW1vdmVkX3NhbXBsZXNfZm9yX2FjY2VsZXJhdGlvbhgoIAEoBBITCgth", + "dWRpb19sZXZlbBgpIAEoARIaChJ0b3RhbF9hdWRpb19lbmVyZ3kYKiABKAES", + "HgoWdG90YWxfc2FtcGxlc19kdXJhdGlvbhgrIAEoARIXCg9mcmFtZXNfcmVj", + "ZWl2ZWQYLCABKAQSHgoWZGVjb2Rlcl9pbXBsZW1lbnRhdGlvbhgtIAEoCRIS", + "CgpwbGF5b3V0X2lkGC4gASgJEh8KF3Bvd2VyX2VmZmljaWVudF9kZWNvZGVy", + "GC8gASgIEi4KJmZyYW1lc19hc3NlbWJsZWRfZnJvbV9tdWx0aXBsZV9wYWNr", + "ZXRzGDAgASgEEhsKE3RvdGFsX2Fzc2VtYmx5X3RpbWUYMSABKAESJgoecmV0", + "cmFuc21pdHRlZF9wYWNrZXRzX3JlY2VpdmVkGDIgASgEEiQKHHJldHJhbnNt", + "aXR0ZWRfYnl0ZXNfcmVjZWl2ZWQYMyABKAQSEAoIcnR4X3NzcmMYNCABKA0S", + "EAoIZmVjX3NzcmMYNSABKA0iPgoSU2VudFJ0cFN0cmVhbVN0YXRzEhQKDHBh", + "Y2tldHNfc2VudBgBIAEoBBISCgpieXRlc19zZW50GAIgASgEItEHChZPdXRi", + "b3VuZFJ0cFN0cmVhbVN0YXRzEgsKA21pZBgBIAEoCRIXCg9tZWRpYV9zb3Vy", + "Y2VfaWQYAiABKAkSEQoJcmVtb3RlX2lkGAMgASgJEgsKA3JpZBgEIAEoCRIZ", + "ChFoZWFkZXJfYnl0ZXNfc2VudBgFIAEoBBIiChpyZXRyYW5zbWl0dGVkX3Bh", + "Y2tldHNfc2VudBgGIAEoBBIgChhyZXRyYW5zbWl0dGVkX2J5dGVzX3NlbnQY", + "ByABKAQSEAoIcnR4X3NzcmMYCCABKA0SFgoOdGFyZ2V0X2JpdHJhdGUYCSAB", + "KAESIgoadG90YWxfZW5jb2RlZF9ieXRlc190YXJnZXQYCiABKAQSEwoLZnJh", + "bWVfd2lkdGgYCyABKA0SFAoMZnJhbWVfaGVpZ2h0GAwgASgNEhkKEWZyYW1l", + "c19wZXJfc2Vjb25kGA0gASgBEhMKC2ZyYW1lc19zZW50GA4gASgNEhgKEGh1", + "Z2VfZnJhbWVzX3NlbnQYDyABKA0SFgoOZnJhbWVzX2VuY29kZWQYECABKA0S", + "GgoSa2V5X2ZyYW1lc19lbmNvZGVkGBEgASgNEg4KBnFwX3N1bRgSIAEoBBIZ", + "ChF0b3RhbF9lbmNvZGVfdGltZRgTIAEoARIfChd0b3RhbF9wYWNrZXRfc2Vu", + "ZF9kZWxheRgUIAEoARJJChlxdWFsaXR5X2xpbWl0YXRpb25fcmVhc29uGBUg", + "ASgOMiYubGl2ZWtpdC5wcm90by5RdWFsaXR5TGltaXRhdGlvblJlYXNvbhJr", + "ChxxdWFsaXR5X2xpbWl0YXRpb25fZHVyYXRpb25zGBYgAygLMkUubGl2ZWtp", + "dC5wcm90by5PdXRib3VuZFJ0cFN0cmVhbVN0YXRzLlF1YWxpdHlMaW1pdGF0", + "aW9uRHVyYXRpb25zRW50cnkSLQolcXVhbGl0eV9saW1pdGF0aW9uX3Jlc29s", + "dXRpb25fY2hhbmdlcxgXIAEoDRISCgpuYWNrX2NvdW50GBggASgNEhEKCWZp", + "cl9jb3VudBgZIAEoDRIRCglwbGlfY291bnQYGiABKA0SHgoWZW5jb2Rlcl9p", + "bXBsZW1lbnRhdGlvbhgbIAEoCRIfChdwb3dlcl9lZmZpY2llbnRfZW5jb2Rl", + "chgcIAEoCBIOCgZhY3RpdmUYHSABKAgSGAoQc2NhbGliaWxpdHlfbW9kZRge", + "IAEoCRpBCh9RdWFsaXR5TGltaXRhdGlvbkR1cmF0aW9uc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoAToCOAEipAEKG1JlbW90ZUluYm91bmRS", + "dHBTdHJlYW1TdGF0cxIQCghsb2NhbF9pZBgBIAEoCRIXCg9yb3VuZF90cmlw", + "X3RpbWUYAiABKAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAMgASgBEhUK", + "DWZyYWN0aW9uX2xvc3QYBCABKAESJAoccm91bmRfdHJpcF90aW1lX21lYXN1", + "cmVtZW50cxgFIAEoBCK+AQocUmVtb3RlT3V0Ym91bmRSdHBTdHJlYW1TdGF0", + "cxIQCghsb2NhbF9pZBgBIAEoCRIYChByZW1vdGVfdGltZXN0YW1wGAIgASgB", + "EhQKDHJlcG9ydHNfc2VudBgDIAEoBBIXCg9yb3VuZF90cmlwX3RpbWUYBCAB", + "KAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAUgASgBEiQKHHJvdW5kX3Ry", + "aXBfdGltZV9tZWFzdXJlbWVudHMYBiABKAQiOgoQTWVkaWFTb3VyY2VTdGF0", + "cxIYChB0cmFja19pZGVudGlmaWVyGAEgASgJEgwKBGtpbmQYAiABKAkiogIK", + "EEF1ZGlvU291cmNlU3RhdHMSEwoLYXVkaW9fbGV2ZWwYASABKAESGgoSdG90", + "YWxfYXVkaW9fZW5lcmd5GAIgASgBEh4KFnRvdGFsX3NhbXBsZXNfZHVyYXRp", + "b24YAyABKAESGAoQZWNob19yZXR1cm5fbG9zcxgEIAEoARIkChxlY2hvX3Jl", + "dHVybl9sb3NzX2VuaGFuY2VtZW50GAUgASgBEiAKGGRyb3BwZWRfc2FtcGxl", + "c19kdXJhdGlvbhgGIAEoARIeChZkcm9wcGVkX3NhbXBsZXNfZXZlbnRzGAcg", + "ASgNEhsKE3RvdGFsX2NhcHR1cmVfZGVsYXkYCCABKAESHgoWdG90YWxfc2Ft", + "cGxlc19jYXB0dXJlZBgJIAEoBCJcChBWaWRlb1NvdXJjZVN0YXRzEg0KBXdp", + "ZHRoGAEgASgNEg4KBmhlaWdodBgCIAEoDRIOCgZmcmFtZXMYAyABKA0SGQoR", + "ZnJhbWVzX3Blcl9zZWNvbmQYBCABKAEixQEKEUF1ZGlvUGxheW91dFN0YXRz", + "EgwKBGtpbmQYASABKAkSJAocc3ludGhlc2l6ZWRfc2FtcGxlc19kdXJhdGlv", + "bhgCIAEoARIiChpzeW50aGVzaXplZF9zYW1wbGVzX2V2ZW50cxgDIAEoDRIe", + "ChZ0b3RhbF9zYW1wbGVzX2R1cmF0aW9uGAQgASgBEhsKE3RvdGFsX3BsYXlv", + "dXRfZGVsYXkYBSABKAESGwoTdG90YWxfc2FtcGxlc19jb3VudBgGIAEoBCJR", + "ChNQZWVyQ29ubmVjdGlvblN0YXRzEhwKFGRhdGFfY2hhbm5lbHNfb3BlbmVk", + "GAEgASgNEhwKFGRhdGFfY2hhbm5lbHNfY2xvc2VkGAIgASgNIvEBChBEYXRh", + "Q2hhbm5lbFN0YXRzEg0KBWxhYmVsGAEgASgJEhAKCHByb3RvY29sGAIgASgJ", + "Eh8KF2RhdGFfY2hhbm5lbF9pZGVudGlmaWVyGAMgASgFEjMKBXN0YXRlGAQg", + "ASgOMh8ubGl2ZWtpdC5wcm90by5EYXRhQ2hhbm5lbFN0YXRlSACIAQESFQoN", + "bWVzc2FnZXNfc2VudBgFIAEoDRISCgpieXRlc19zZW50GAYgASgEEhkKEW1l", + "c3NhZ2VzX3JlY2VpdmVkGAcgASgNEhYKDmJ5dGVzX3JlY2VpdmVkGAggASgE", + "QggKBl9zdGF0ZSLDBAoOVHJhbnNwb3J0U3RhdHMSFAoMcGFja2V0c19zZW50", + "GAEgASgEEhgKEHBhY2tldHNfcmVjZWl2ZWQYAiABKAQSEgoKYnl0ZXNfc2Vu", + "dBgDIAEoBBIWCg5ieXRlc19yZWNlaXZlZBgEIAEoBBIoCghpY2Vfcm9sZRgF", + "IAEoDjIWLmxpdmVraXQucHJvdG8uSWNlUm9sZRIjChtpY2VfbG9jYWxfdXNl", + "cm5hbWVfZnJhZ21lbnQYBiABKAkSOgoKZHRsc19zdGF0ZRgHIAEoDjIhLmxp", + "dmVraXQucHJvdG8uRHRsc1RyYW5zcG9ydFN0YXRlSACIAQESOAoJaWNlX3N0", + "YXRlGAggASgOMiAubGl2ZWtpdC5wcm90by5JY2VUcmFuc3BvcnRTdGF0ZUgB", + "iAEBEiIKGnNlbGVjdGVkX2NhbmRpZGF0ZV9wYWlyX2lkGAkgASgJEhwKFGxv", + "Y2FsX2NlcnRpZmljYXRlX2lkGAogASgJEh0KFXJlbW90ZV9jZXJ0aWZpY2F0", + "ZV9pZBgLIAEoCRITCgt0bHNfdmVyc2lvbhgMIAEoCRITCgtkdGxzX2NpcGhl", + "chgNIAEoCRIqCglkdGxzX3JvbGUYDiABKA4yFy5saXZla2l0LnByb3RvLkR0", + "bHNSb2xlEhMKC3NydHBfY2lwaGVyGA8gASgJEicKH3NlbGVjdGVkX2NhbmRp", + "ZGF0ZV9wYWlyX2NoYW5nZXMYECABKA1CDQoLX2R0bHNfc3RhdGVCDAoKX2lj", + "ZV9zdGF0ZSKzBQoSQ2FuZGlkYXRlUGFpclN0YXRzEhQKDHRyYW5zcG9ydF9p", + "ZBgBIAEoCRIaChJsb2NhbF9jYW5kaWRhdGVfaWQYAiABKAkSGwoTcmVtb3Rl", + "X2NhbmRpZGF0ZV9pZBgDIAEoCRI4CgVzdGF0ZRgEIAEoDjIkLmxpdmVraXQu", + "cHJvdG8uSWNlQ2FuZGlkYXRlUGFpclN0YXRlSACIAQESEQoJbm9taW5hdGVk", + "GAUgASgIEhQKDHBhY2tldHNfc2VudBgGIAEoBBIYChBwYWNrZXRzX3JlY2Vp", + "dmVkGAcgASgEEhIKCmJ5dGVzX3NlbnQYCCABKAQSFgoOYnl0ZXNfcmVjZWl2", + "ZWQYCSABKAQSIgoabGFzdF9wYWNrZXRfc2VudF90aW1lc3RhbXAYCiABKAES", + "JgoebGFzdF9wYWNrZXRfcmVjZWl2ZWRfdGltZXN0YW1wGAsgASgBEh0KFXRv", + "dGFsX3JvdW5kX3RyaXBfdGltZRgMIAEoARIfChdjdXJyZW50X3JvdW5kX3Ry", + "aXBfdGltZRgNIAEoARIiChphdmFpbGFibGVfb3V0Z29pbmdfYml0cmF0ZRgO", + "IAEoARIiChphdmFpbGFibGVfaW5jb21pbmdfYml0cmF0ZRgPIAEoARIZChFy", + "ZXF1ZXN0c19yZWNlaXZlZBgQIAEoBBIVCg1yZXF1ZXN0c19zZW50GBEgASgE", + "EhoKEnJlc3BvbnNlc19yZWNlaXZlZBgSIAEoBBIWCg5yZXNwb25zZXNfc2Vu", + "dBgTIAEoBBIdChVjb25zZW50X3JlcXVlc3RzX3NlbnQYFCABKAQSIQoZcGFj", + "a2V0c19kaXNjYXJkZWRfb25fc2VuZBgVIAEoDRIfChdieXRlc19kaXNjYXJk", + "ZWRfb25fc2VuZBgWIAEoBEIICgZfc3RhdGUiywMKEUljZUNhbmRpZGF0ZVN0", + "YXRzEhQKDHRyYW5zcG9ydF9pZBgBIAEoCRIPCgdhZGRyZXNzGAIgASgJEgwK", + "BHBvcnQYAyABKAUSEAoIcHJvdG9jb2wYBCABKAkSPAoOY2FuZGlkYXRlX3R5", + "cGUYBSABKA4yHy5saXZla2l0LnByb3RvLkljZUNhbmRpZGF0ZVR5cGVIAIgB", + "ARIQCghwcmlvcml0eRgGIAEoBRILCgN1cmwYByABKAkSRgoOcmVsYXlfcHJv", + "dG9jb2wYCCABKA4yKS5saXZla2l0LnByb3RvLkljZVNlcnZlclRyYW5zcG9y", + "dFByb3RvY29sSAGIAQESEgoKZm91bmRhdGlvbhgJIAEoCRIXCg9yZWxhdGVk", + "X2FkZHJlc3MYCiABKAkSFAoMcmVsYXRlZF9wb3J0GAsgASgFEhkKEXVzZXJu", + "YW1lX2ZyYWdtZW50GAwgASgJEjkKCHRjcF90eXBlGA0gASgOMiIubGl2ZWtp", + "dC5wcm90by5JY2VUY3BDYW5kaWRhdGVUeXBlSAKIAQFCEQoPX2NhbmRpZGF0", + "ZV90eXBlQhEKD19yZWxheV9wcm90b2NvbEILCglfdGNwX3R5cGUigQEKEENl", + "cnRpZmljYXRlU3RhdHMSEwoLZmluZ2VycHJpbnQYASABKAkSHQoVZmluZ2Vy", + "cHJpbnRfYWxnb3JpdGhtGAIgASgJEhoKEmJhc2U2NF9jZXJ0aWZpY2F0ZRgD", + "IAEoCRIdChVpc3N1ZXJfY2VydGlmaWNhdGVfaWQYBCABKAkqUQoQRGF0YUNo", + "YW5uZWxTdGF0ZRIRCg1EQ19DT05ORUNUSU5HEAASCwoHRENfT1BFThABEg4K", + "CkRDX0NMT1NJTkcQAhINCglEQ19DTE9TRUQQAypyChdRdWFsaXR5TGltaXRh", + "dGlvblJlYXNvbhITCg9MSU1JVEFUSU9OX05PTkUQABISCg5MSU1JVEFUSU9O", + "X0NQVRABEhgKFExJTUlUQVRJT05fQkFORFdJRFRIEAISFAoQTElNSVRBVElP", + "Tl9PVEhFUhADKkMKB0ljZVJvbGUSDwoLSUNFX1VOS05PV04QABITCg9JQ0Vf", + "Q09OVFJPTExJTkcQARISCg5JQ0VfQ09OVFJPTExFRBACKp8BChJEdGxzVHJh", + "bnNwb3J0U3RhdGUSFgoSRFRMU19UUkFOU1BPUlRfTkVXEAASHQoZRFRMU19U", + "UkFOU1BPUlRfQ09OTkVDVElORxABEhwKGERUTFNfVFJBTlNQT1JUX0NPTk5F", + "Q1RFRBACEhkKFURUTFNfVFJBTlNQT1JUX0NMT1NFRBADEhkKFURUTFNfVFJB", + "TlNQT1JUX0ZBSUxFRBAEKtQBChFJY2VUcmFuc3BvcnRTdGF0ZRIVChFJQ0Vf", + "VFJBTlNQT1JUX05FVxAAEhoKFklDRV9UUkFOU1BPUlRfQ0hFQ0tJTkcQARIb", + "ChdJQ0VfVFJBTlNQT1JUX0NPTk5FQ1RFRBACEhsKF0lDRV9UUkFOU1BPUlRf", + "Q09NUExFVEVEEAMSHgoaSUNFX1RSQU5TUE9SVF9ESVNDT05ORUNURUQQBBIY", + "ChRJQ0VfVFJBTlNQT1JUX0ZBSUxFRBAFEhgKFElDRV9UUkFOU1BPUlRfQ0xP", + "U0VEEAYqPgoIRHRsc1JvbGUSDwoLRFRMU19DTElFTlQQABIPCgtEVExTX1NF", + "UlZFUhABEhAKDERUTFNfVU5LTk9XThACKnUKFUljZUNhbmRpZGF0ZVBhaXJT", + "dGF0ZRIPCgtQQUlSX0ZST1pFThAAEhAKDFBBSVJfV0FJVElORxABEhQKEFBB", + "SVJfSU5fUFJPR1JFU1MQAhIPCgtQQUlSX0ZBSUxFRBADEhIKDlBBSVJfU1VD", + "Q0VFREVEEAQqPQoQSWNlQ2FuZGlkYXRlVHlwZRIICgRIT1NUEAASCQoFU1JG", + "TFgQARIJCgVQUkZMWBACEgkKBVJFTEFZEAMqVQoaSWNlU2VydmVyVHJhbnNw", + "b3J0UHJvdG9jb2wSEQoNVFJBTlNQT1JUX1VEUBAAEhEKDVRSQU5TUE9SVF9U", + "Q1AQARIRCg1UUkFOU1BPUlRfVExTEAIqVAoTSWNlVGNwQ2FuZGlkYXRlVHlw", + "ZRIUChBDQU5ESURBVEVfQUNUSVZFEAASFQoRQ0FORElEQVRFX1BBU1NJVkUQ", + "ARIQCgxDQU5ESURBVEVfU08QAkIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.DataChannelState), typeof(global::LiveKit.Proto.QualityLimitationReason), typeof(global::LiveKit.Proto.IceRole), typeof(global::LiveKit.Proto.DtlsTransportState), typeof(global::LiveKit.Proto.IceTransportState), typeof(global::LiveKit.Proto.DtlsRole), typeof(global::LiveKit.Proto.IceCandidatePairState), typeof(global::LiveKit.Proto.IceCandidateType), typeof(global::LiveKit.Proto.IceServerTransportProtocol), typeof(global::LiveKit.Proto.IceTcpCandidateType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats), global::LiveKit.Proto.RtcStats.Parser, new[]{ "Codec", "InboundRtp", "OutboundRtp", "RemoteInboundRtp", "RemoteOutboundRtp", "MediaSource", "MediaPlayout", "PeerConnection", "DataChannel", "Transport", "CandidatePair", "LocalCandidate", "RemoteCandidate", "Certificate", "Track" }, new[]{ "Stats" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.Codec), global::LiveKit.Proto.RtcStats.Types.Codec.Parser, new[]{ "Rtc", "Codec_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.InboundRtp), global::LiveKit.Proto.RtcStats.Types.InboundRtp.Parser, new[]{ "Rtc", "Stream", "Received", "Inbound" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.OutboundRtp), global::LiveKit.Proto.RtcStats.Types.OutboundRtp.Parser, new[]{ "Rtc", "Stream", "Sent", "Outbound" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp), global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp.Parser, new[]{ "Rtc", "Stream", "Received", "RemoteInbound" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp), global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp.Parser, new[]{ "Rtc", "Stream", "Sent", "RemoteOutbound" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.MediaSource), global::LiveKit.Proto.RtcStats.Types.MediaSource.Parser, new[]{ "Rtc", "Source", "Audio", "Video" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.MediaPlayout), global::LiveKit.Proto.RtcStats.Types.MediaPlayout.Parser, new[]{ "Rtc", "AudioPlayout" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.PeerConnection), global::LiveKit.Proto.RtcStats.Types.PeerConnection.Parser, new[]{ "Rtc", "Pc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.DataChannel), global::LiveKit.Proto.RtcStats.Types.DataChannel.Parser, new[]{ "Rtc", "Dc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.Transport), global::LiveKit.Proto.RtcStats.Types.Transport.Parser, new[]{ "Rtc", "Transport_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.CandidatePair), global::LiveKit.Proto.RtcStats.Types.CandidatePair.Parser, new[]{ "Rtc", "CandidatePair_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.LocalCandidate), global::LiveKit.Proto.RtcStats.Types.LocalCandidate.Parser, new[]{ "Rtc", "Candidate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.RemoteCandidate), global::LiveKit.Proto.RtcStats.Types.RemoteCandidate.Parser, new[]{ "Rtc", "Candidate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.Certificate), global::LiveKit.Proto.RtcStats.Types.Certificate.Parser, new[]{ "Rtc", "Certificate_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStats.Types.Track), global::LiveKit.Proto.RtcStats.Types.Track.Parser, null, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcStatsData), global::LiveKit.Proto.RtcStatsData.Parser, new[]{ "Id", "Timestamp" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CodecStats), global::LiveKit.Proto.CodecStats.Parser, new[]{ "PayloadType", "TransportId", "MimeType", "ClockRate", "Channels", "SdpFmtpLine" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtpStreamStats), global::LiveKit.Proto.RtpStreamStats.Parser, new[]{ "Ssrc", "Kind", "TransportId", "CodecId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ReceivedRtpStreamStats), global::LiveKit.Proto.ReceivedRtpStreamStats.Parser, new[]{ "PacketsReceived", "PacketsLost", "Jitter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.InboundRtpStreamStats), global::LiveKit.Proto.InboundRtpStreamStats.Parser, new[]{ "TrackIdentifier", "Mid", "RemoteId", "FramesDecoded", "KeyFramesDecoded", "FramesRendered", "FramesDropped", "FrameWidth", "FrameHeight", "FramesPerSecond", "QpSum", "TotalDecodeTime", "TotalInterFrameDelay", "TotalSquaredInterFrameDelay", "PauseCount", "TotalPauseDuration", "FreezeCount", "TotalFreezeDuration", "LastPacketReceivedTimestamp", "HeaderBytesReceived", "PacketsDiscarded", "FecBytesReceived", "FecPacketsReceived", "FecPacketsDiscarded", "BytesReceived", "NackCount", "FirCount", "PliCount", "TotalProcessingDelay", "EstimatedPlayoutTimestamp", "JitterBufferDelay", "JitterBufferTargetDelay", "JitterBufferEmittedCount", "JitterBufferMinimumDelay", "TotalSamplesReceived", "ConcealedSamples", "SilentConcealedSamples", "ConcealmentEvents", "InsertedSamplesForDeceleration", "RemovedSamplesForAcceleration", "AudioLevel", "TotalAudioEnergy", "TotalSamplesDuration", "FramesReceived", "DecoderImplementation", "PlayoutId", "PowerEfficientDecoder", "FramesAssembledFromMultiplePackets", "TotalAssemblyTime", "RetransmittedPacketsReceived", "RetransmittedBytesReceived", "RtxSsrc", "FecSsrc" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SentRtpStreamStats), global::LiveKit.Proto.SentRtpStreamStats.Parser, new[]{ "PacketsSent", "BytesSent" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OutboundRtpStreamStats), global::LiveKit.Proto.OutboundRtpStreamStats.Parser, new[]{ "Mid", "MediaSourceId", "RemoteId", "Rid", "HeaderBytesSent", "RetransmittedPacketsSent", "RetransmittedBytesSent", "RtxSsrc", "TargetBitrate", "TotalEncodedBytesTarget", "FrameWidth", "FrameHeight", "FramesPerSecond", "FramesSent", "HugeFramesSent", "FramesEncoded", "KeyFramesEncoded", "QpSum", "TotalEncodeTime", "TotalPacketSendDelay", "QualityLimitationReason", "QualityLimitationDurations", "QualityLimitationResolutionChanges", "NackCount", "FirCount", "PliCount", "EncoderImplementation", "PowerEfficientEncoder", "Active", "ScalibilityMode" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemoteInboundRtpStreamStats), global::LiveKit.Proto.RemoteInboundRtpStreamStats.Parser, new[]{ "LocalId", "RoundTripTime", "TotalRoundTripTime", "FractionLost", "RoundTripTimeMeasurements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemoteOutboundRtpStreamStats), global::LiveKit.Proto.RemoteOutboundRtpStreamStats.Parser, new[]{ "LocalId", "RemoteTimestamp", "ReportsSent", "RoundTripTime", "TotalRoundTripTime", "RoundTripTimeMeasurements" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.MediaSourceStats), global::LiveKit.Proto.MediaSourceStats.Parser, new[]{ "TrackIdentifier", "Kind" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioSourceStats), global::LiveKit.Proto.AudioSourceStats.Parser, new[]{ "AudioLevel", "TotalAudioEnergy", "TotalSamplesDuration", "EchoReturnLoss", "EchoReturnLossEnhancement", "DroppedSamplesDuration", "DroppedSamplesEvents", "TotalCaptureDelay", "TotalSamplesCaptured" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoSourceStats), global::LiveKit.Proto.VideoSourceStats.Parser, new[]{ "Width", "Height", "Frames", "FramesPerSecond" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioPlayoutStats), global::LiveKit.Proto.AudioPlayoutStats.Parser, new[]{ "Kind", "SynthesizedSamplesDuration", "SynthesizedSamplesEvents", "TotalSamplesDuration", "TotalPlayoutDelay", "TotalSamplesCount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PeerConnectionStats), global::LiveKit.Proto.PeerConnectionStats.Parser, new[]{ "DataChannelsOpened", "DataChannelsClosed" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DataChannelStats), global::LiveKit.Proto.DataChannelStats.Parser, new[]{ "Label", "Protocol", "DataChannelIdentifier", "State", "MessagesSent", "BytesSent", "MessagesReceived", "BytesReceived" }, new[]{ "State" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TransportStats), global::LiveKit.Proto.TransportStats.Parser, new[]{ "PacketsSent", "PacketsReceived", "BytesSent", "BytesReceived", "IceRole", "IceLocalUsernameFragment", "DtlsState", "IceState", "SelectedCandidatePairId", "LocalCertificateId", "RemoteCertificateId", "TlsVersion", "DtlsCipher", "DtlsRole", "SrtpCipher", "SelectedCandidatePairChanges" }, new[]{ "DtlsState", "IceState" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CandidatePairStats), global::LiveKit.Proto.CandidatePairStats.Parser, new[]{ "TransportId", "LocalCandidateId", "RemoteCandidateId", "State", "Nominated", "PacketsSent", "PacketsReceived", "BytesSent", "BytesReceived", "LastPacketSentTimestamp", "LastPacketReceivedTimestamp", "TotalRoundTripTime", "CurrentRoundTripTime", "AvailableOutgoingBitrate", "AvailableIncomingBitrate", "RequestsReceived", "RequestsSent", "ResponsesReceived", "ResponsesSent", "ConsentRequestsSent", "PacketsDiscardedOnSend", "BytesDiscardedOnSend" }, new[]{ "State" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.IceCandidateStats), global::LiveKit.Proto.IceCandidateStats.Parser, new[]{ "TransportId", "Address", "Port", "Protocol", "CandidateType", "Priority", "Url", "RelayProtocol", "Foundation", "RelatedAddress", "RelatedPort", "UsernameFragment", "TcpType" }, new[]{ "CandidateType", "RelayProtocol", "TcpType" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CertificateStats), global::LiveKit.Proto.CertificateStats.Parser, new[]{ "Fingerprint", "FingerprintAlgorithm", "Base64Certificate", "IssuerCertificateId" }, null, null, null, null) + })); + } + #endregion + + } + #region Enums + public enum DataChannelState { + [pbr::OriginalName("DC_CONNECTING")] DcConnecting = 0, + [pbr::OriginalName("DC_OPEN")] DcOpen = 1, + [pbr::OriginalName("DC_CLOSING")] DcClosing = 2, + [pbr::OriginalName("DC_CLOSED")] DcClosed = 3, + } + + public enum QualityLimitationReason { + [pbr::OriginalName("LIMITATION_NONE")] LimitationNone = 0, + [pbr::OriginalName("LIMITATION_CPU")] LimitationCpu = 1, + [pbr::OriginalName("LIMITATION_BANDWIDTH")] LimitationBandwidth = 2, + [pbr::OriginalName("LIMITATION_OTHER")] LimitationOther = 3, + } + + public enum IceRole { + [pbr::OriginalName("ICE_UNKNOWN")] IceUnknown = 0, + [pbr::OriginalName("ICE_CONTROLLING")] IceControlling = 1, + [pbr::OriginalName("ICE_CONTROLLED")] IceControlled = 2, + } + + public enum DtlsTransportState { + [pbr::OriginalName("DTLS_TRANSPORT_NEW")] DtlsTransportNew = 0, + [pbr::OriginalName("DTLS_TRANSPORT_CONNECTING")] DtlsTransportConnecting = 1, + [pbr::OriginalName("DTLS_TRANSPORT_CONNECTED")] DtlsTransportConnected = 2, + [pbr::OriginalName("DTLS_TRANSPORT_CLOSED")] DtlsTransportClosed = 3, + [pbr::OriginalName("DTLS_TRANSPORT_FAILED")] DtlsTransportFailed = 4, + } + + public enum IceTransportState { + [pbr::OriginalName("ICE_TRANSPORT_NEW")] IceTransportNew = 0, + [pbr::OriginalName("ICE_TRANSPORT_CHECKING")] IceTransportChecking = 1, + [pbr::OriginalName("ICE_TRANSPORT_CONNECTED")] IceTransportConnected = 2, + [pbr::OriginalName("ICE_TRANSPORT_COMPLETED")] IceTransportCompleted = 3, + [pbr::OriginalName("ICE_TRANSPORT_DISCONNECTED")] IceTransportDisconnected = 4, + [pbr::OriginalName("ICE_TRANSPORT_FAILED")] IceTransportFailed = 5, + [pbr::OriginalName("ICE_TRANSPORT_CLOSED")] IceTransportClosed = 6, + } + + public enum DtlsRole { + [pbr::OriginalName("DTLS_CLIENT")] DtlsClient = 0, + [pbr::OriginalName("DTLS_SERVER")] DtlsServer = 1, + [pbr::OriginalName("DTLS_UNKNOWN")] DtlsUnknown = 2, + } + + public enum IceCandidatePairState { + [pbr::OriginalName("PAIR_FROZEN")] PairFrozen = 0, + [pbr::OriginalName("PAIR_WAITING")] PairWaiting = 1, + [pbr::OriginalName("PAIR_IN_PROGRESS")] PairInProgress = 2, + [pbr::OriginalName("PAIR_FAILED")] PairFailed = 3, + [pbr::OriginalName("PAIR_SUCCEEDED")] PairSucceeded = 4, + } + + public enum IceCandidateType { + [pbr::OriginalName("HOST")] Host = 0, + [pbr::OriginalName("SRFLX")] Srflx = 1, + [pbr::OriginalName("PRFLX")] Prflx = 2, + [pbr::OriginalName("RELAY")] Relay = 3, + } + + public enum IceServerTransportProtocol { + [pbr::OriginalName("TRANSPORT_UDP")] TransportUdp = 0, + [pbr::OriginalName("TRANSPORT_TCP")] TransportTcp = 1, + [pbr::OriginalName("TRANSPORT_TLS")] TransportTls = 2, + } + + public enum IceTcpCandidateType { + [pbr::OriginalName("CANDIDATE_ACTIVE")] CandidateActive = 0, + [pbr::OriginalName("CANDIDATE_PASSIVE")] CandidatePassive = 1, + [pbr::OriginalName("CANDIDATE_SO")] CandidateSo = 2, + } + + #endregion + + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RtcStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcStats()); + 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.StatsReflection.Descriptor.MessageTypes[0]; } + } + + [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 RtcStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtcStats(RtcStats other) : this() { + switch (other.StatsCase) { + case StatsOneofCase.Codec: + Codec = other.Codec.Clone(); + break; + case StatsOneofCase.InboundRtp: + InboundRtp = other.InboundRtp.Clone(); + break; + case StatsOneofCase.OutboundRtp: + OutboundRtp = other.OutboundRtp.Clone(); + break; + case StatsOneofCase.RemoteInboundRtp: + RemoteInboundRtp = other.RemoteInboundRtp.Clone(); + break; + case StatsOneofCase.RemoteOutboundRtp: + RemoteOutboundRtp = other.RemoteOutboundRtp.Clone(); + break; + case StatsOneofCase.MediaSource: + MediaSource = other.MediaSource.Clone(); + break; + case StatsOneofCase.MediaPlayout: + MediaPlayout = other.MediaPlayout.Clone(); + break; + case StatsOneofCase.PeerConnection: + PeerConnection = other.PeerConnection.Clone(); + break; + case StatsOneofCase.DataChannel: + DataChannel = other.DataChannel.Clone(); + break; + case StatsOneofCase.Transport: + Transport = other.Transport.Clone(); + break; + case StatsOneofCase.CandidatePair: + CandidatePair = other.CandidatePair.Clone(); + break; + case StatsOneofCase.LocalCandidate: + LocalCandidate = other.LocalCandidate.Clone(); + break; + case StatsOneofCase.RemoteCandidate: + RemoteCandidate = other.RemoteCandidate.Clone(); + break; + case StatsOneofCase.Certificate: + Certificate = other.Certificate.Clone(); + break; + case StatsOneofCase.Track: + Track = other.Track.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtcStats Clone() { + return new RtcStats(this); + } + + /// Field number for the "codec" field. + public const int CodecFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.Codec Codec { + get { return statsCase_ == StatsOneofCase.Codec ? (global::LiveKit.Proto.RtcStats.Types.Codec) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.Codec; + } + } + + /// Field number for the "inbound_rtp" field. + public const int InboundRtpFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.InboundRtp InboundRtp { + get { return statsCase_ == StatsOneofCase.InboundRtp ? (global::LiveKit.Proto.RtcStats.Types.InboundRtp) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.InboundRtp; + } + } + + /// Field number for the "outbound_rtp" field. + public const int OutboundRtpFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.OutboundRtp OutboundRtp { + get { return statsCase_ == StatsOneofCase.OutboundRtp ? (global::LiveKit.Proto.RtcStats.Types.OutboundRtp) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.OutboundRtp; + } + } + + /// Field number for the "remote_inbound_rtp" field. + public const int RemoteInboundRtpFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp RemoteInboundRtp { + get { return statsCase_ == StatsOneofCase.RemoteInboundRtp ? (global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.RemoteInboundRtp; + } + } + + /// Field number for the "remote_outbound_rtp" field. + public const int RemoteOutboundRtpFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp RemoteOutboundRtp { + get { return statsCase_ == StatsOneofCase.RemoteOutboundRtp ? (global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.RemoteOutboundRtp; + } + } + + /// Field number for the "media_source" field. + public const int MediaSourceFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.MediaSource MediaSource { + get { return statsCase_ == StatsOneofCase.MediaSource ? (global::LiveKit.Proto.RtcStats.Types.MediaSource) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.MediaSource; + } + } + + /// Field number for the "media_playout" field. + public const int MediaPlayoutFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.MediaPlayout MediaPlayout { + get { return statsCase_ == StatsOneofCase.MediaPlayout ? (global::LiveKit.Proto.RtcStats.Types.MediaPlayout) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.MediaPlayout; + } + } + + /// Field number for the "peer_connection" field. + public const int PeerConnectionFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.PeerConnection PeerConnection { + get { return statsCase_ == StatsOneofCase.PeerConnection ? (global::LiveKit.Proto.RtcStats.Types.PeerConnection) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.PeerConnection; + } + } + + /// Field number for the "data_channel" field. + public const int DataChannelFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.DataChannel DataChannel { + get { return statsCase_ == StatsOneofCase.DataChannel ? (global::LiveKit.Proto.RtcStats.Types.DataChannel) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.DataChannel; + } + } + + /// Field number for the "transport" field. + public const int TransportFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.Transport Transport { + get { return statsCase_ == StatsOneofCase.Transport ? (global::LiveKit.Proto.RtcStats.Types.Transport) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.Transport; + } + } + + /// Field number for the "candidate_pair" field. + public const int CandidatePairFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.CandidatePair CandidatePair { + get { return statsCase_ == StatsOneofCase.CandidatePair ? (global::LiveKit.Proto.RtcStats.Types.CandidatePair) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.CandidatePair; + } + } + + /// Field number for the "local_candidate" field. + public const int LocalCandidateFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.LocalCandidate LocalCandidate { + get { return statsCase_ == StatsOneofCase.LocalCandidate ? (global::LiveKit.Proto.RtcStats.Types.LocalCandidate) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.LocalCandidate; + } + } + + /// Field number for the "remote_candidate" field. + public const int RemoteCandidateFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.RemoteCandidate RemoteCandidate { + get { return statsCase_ == StatsOneofCase.RemoteCandidate ? (global::LiveKit.Proto.RtcStats.Types.RemoteCandidate) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.RemoteCandidate; + } + } + + /// Field number for the "certificate" field. + public const int CertificateFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.Certificate Certificate { + get { return statsCase_ == StatsOneofCase.Certificate ? (global::LiveKit.Proto.RtcStats.Types.Certificate) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.Certificate; + } + } + + /// Field number for the "track" field. + public const int TrackFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStats.Types.Track Track { + get { return statsCase_ == StatsOneofCase.Track ? (global::LiveKit.Proto.RtcStats.Types.Track) stats_ : null; } + set { + stats_ = value; + statsCase_ = value == null ? StatsOneofCase.None : StatsOneofCase.Track; + } + } + + private object stats_; + /// Enum of possible cases for the "stats" oneof. + public enum StatsOneofCase { + None = 0, + Codec = 3, + InboundRtp = 4, + OutboundRtp = 5, + RemoteInboundRtp = 6, + RemoteOutboundRtp = 7, + MediaSource = 8, + MediaPlayout = 9, + PeerConnection = 10, + DataChannel = 11, + Transport = 12, + CandidatePair = 13, + LocalCandidate = 14, + RemoteCandidate = 15, + Certificate = 16, + Track = 17, + } + private StatsOneofCase statsCase_ = StatsOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StatsOneofCase StatsCase { + get { return statsCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStats() { + statsCase_ = StatsOneofCase.None; + stats_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RtcStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RtcStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Codec, other.Codec)) return false; + if (!object.Equals(InboundRtp, other.InboundRtp)) return false; + if (!object.Equals(OutboundRtp, other.OutboundRtp)) return false; + if (!object.Equals(RemoteInboundRtp, other.RemoteInboundRtp)) return false; + if (!object.Equals(RemoteOutboundRtp, other.RemoteOutboundRtp)) return false; + if (!object.Equals(MediaSource, other.MediaSource)) return false; + if (!object.Equals(MediaPlayout, other.MediaPlayout)) return false; + if (!object.Equals(PeerConnection, other.PeerConnection)) return false; + if (!object.Equals(DataChannel, other.DataChannel)) return false; + if (!object.Equals(Transport, other.Transport)) return false; + if (!object.Equals(CandidatePair, other.CandidatePair)) return false; + if (!object.Equals(LocalCandidate, other.LocalCandidate)) return false; + if (!object.Equals(RemoteCandidate, other.RemoteCandidate)) return false; + if (!object.Equals(Certificate, other.Certificate)) return false; + if (!object.Equals(Track, other.Track)) return false; + if (StatsCase != other.StatsCase) 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 (statsCase_ == StatsOneofCase.Codec) hash ^= Codec.GetHashCode(); + if (statsCase_ == StatsOneofCase.InboundRtp) hash ^= InboundRtp.GetHashCode(); + if (statsCase_ == StatsOneofCase.OutboundRtp) hash ^= OutboundRtp.GetHashCode(); + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) hash ^= RemoteInboundRtp.GetHashCode(); + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) hash ^= RemoteOutboundRtp.GetHashCode(); + if (statsCase_ == StatsOneofCase.MediaSource) hash ^= MediaSource.GetHashCode(); + if (statsCase_ == StatsOneofCase.MediaPlayout) hash ^= MediaPlayout.GetHashCode(); + if (statsCase_ == StatsOneofCase.PeerConnection) hash ^= PeerConnection.GetHashCode(); + if (statsCase_ == StatsOneofCase.DataChannel) hash ^= DataChannel.GetHashCode(); + if (statsCase_ == StatsOneofCase.Transport) hash ^= Transport.GetHashCode(); + if (statsCase_ == StatsOneofCase.CandidatePair) hash ^= CandidatePair.GetHashCode(); + if (statsCase_ == StatsOneofCase.LocalCandidate) hash ^= LocalCandidate.GetHashCode(); + if (statsCase_ == StatsOneofCase.RemoteCandidate) hash ^= RemoteCandidate.GetHashCode(); + if (statsCase_ == StatsOneofCase.Certificate) hash ^= Certificate.GetHashCode(); + if (statsCase_ == StatsOneofCase.Track) hash ^= Track.GetHashCode(); + hash ^= (int) statsCase_; + 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 (statsCase_ == StatsOneofCase.Codec) { + output.WriteRawTag(26); + output.WriteMessage(Codec); + } + if (statsCase_ == StatsOneofCase.InboundRtp) { + output.WriteRawTag(34); + output.WriteMessage(InboundRtp); + } + if (statsCase_ == StatsOneofCase.OutboundRtp) { + output.WriteRawTag(42); + output.WriteMessage(OutboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) { + output.WriteRawTag(50); + output.WriteMessage(RemoteInboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) { + output.WriteRawTag(58); + output.WriteMessage(RemoteOutboundRtp); + } + if (statsCase_ == StatsOneofCase.MediaSource) { + output.WriteRawTag(66); + output.WriteMessage(MediaSource); + } + if (statsCase_ == StatsOneofCase.MediaPlayout) { + output.WriteRawTag(74); + output.WriteMessage(MediaPlayout); + } + if (statsCase_ == StatsOneofCase.PeerConnection) { + output.WriteRawTag(82); + output.WriteMessage(PeerConnection); + } + if (statsCase_ == StatsOneofCase.DataChannel) { + output.WriteRawTag(90); + output.WriteMessage(DataChannel); + } + if (statsCase_ == StatsOneofCase.Transport) { + output.WriteRawTag(98); + output.WriteMessage(Transport); + } + if (statsCase_ == StatsOneofCase.CandidatePair) { + output.WriteRawTag(106); + output.WriteMessage(CandidatePair); + } + if (statsCase_ == StatsOneofCase.LocalCandidate) { + output.WriteRawTag(114); + output.WriteMessage(LocalCandidate); + } + if (statsCase_ == StatsOneofCase.RemoteCandidate) { + output.WriteRawTag(122); + output.WriteMessage(RemoteCandidate); + } + if (statsCase_ == StatsOneofCase.Certificate) { + output.WriteRawTag(130, 1); + output.WriteMessage(Certificate); + } + if (statsCase_ == StatsOneofCase.Track) { + output.WriteRawTag(138, 1); + output.WriteMessage(Track); + } + 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 (statsCase_ == StatsOneofCase.Codec) { + output.WriteRawTag(26); + output.WriteMessage(Codec); + } + if (statsCase_ == StatsOneofCase.InboundRtp) { + output.WriteRawTag(34); + output.WriteMessage(InboundRtp); + } + if (statsCase_ == StatsOneofCase.OutboundRtp) { + output.WriteRawTag(42); + output.WriteMessage(OutboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) { + output.WriteRawTag(50); + output.WriteMessage(RemoteInboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) { + output.WriteRawTag(58); + output.WriteMessage(RemoteOutboundRtp); + } + if (statsCase_ == StatsOneofCase.MediaSource) { + output.WriteRawTag(66); + output.WriteMessage(MediaSource); + } + if (statsCase_ == StatsOneofCase.MediaPlayout) { + output.WriteRawTag(74); + output.WriteMessage(MediaPlayout); + } + if (statsCase_ == StatsOneofCase.PeerConnection) { + output.WriteRawTag(82); + output.WriteMessage(PeerConnection); + } + if (statsCase_ == StatsOneofCase.DataChannel) { + output.WriteRawTag(90); + output.WriteMessage(DataChannel); + } + if (statsCase_ == StatsOneofCase.Transport) { + output.WriteRawTag(98); + output.WriteMessage(Transport); + } + if (statsCase_ == StatsOneofCase.CandidatePair) { + output.WriteRawTag(106); + output.WriteMessage(CandidatePair); + } + if (statsCase_ == StatsOneofCase.LocalCandidate) { + output.WriteRawTag(114); + output.WriteMessage(LocalCandidate); + } + if (statsCase_ == StatsOneofCase.RemoteCandidate) { + output.WriteRawTag(122); + output.WriteMessage(RemoteCandidate); + } + if (statsCase_ == StatsOneofCase.Certificate) { + output.WriteRawTag(130, 1); + output.WriteMessage(Certificate); + } + if (statsCase_ == StatsOneofCase.Track) { + output.WriteRawTag(138, 1); + output.WriteMessage(Track); + } + 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 (statsCase_ == StatsOneofCase.Codec) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); + } + if (statsCase_ == StatsOneofCase.InboundRtp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(InboundRtp); + } + if (statsCase_ == StatsOneofCase.OutboundRtp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OutboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoteInboundRtp); + } + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoteOutboundRtp); + } + if (statsCase_ == StatsOneofCase.MediaSource) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaSource); + } + if (statsCase_ == StatsOneofCase.MediaPlayout) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaPlayout); + } + if (statsCase_ == StatsOneofCase.PeerConnection) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PeerConnection); + } + if (statsCase_ == StatsOneofCase.DataChannel) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataChannel); + } + if (statsCase_ == StatsOneofCase.Transport) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Transport); + } + if (statsCase_ == StatsOneofCase.CandidatePair) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CandidatePair); + } + if (statsCase_ == StatsOneofCase.LocalCandidate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalCandidate); + } + if (statsCase_ == StatsOneofCase.RemoteCandidate) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoteCandidate); + } + if (statsCase_ == StatsOneofCase.Certificate) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Certificate); + } + if (statsCase_ == StatsOneofCase.Track) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Track); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RtcStats other) { + if (other == null) { + return; + } + switch (other.StatsCase) { + case StatsOneofCase.Codec: + if (Codec == null) { + Codec = new global::LiveKit.Proto.RtcStats.Types.Codec(); + } + Codec.MergeFrom(other.Codec); + break; + case StatsOneofCase.InboundRtp: + if (InboundRtp == null) { + InboundRtp = new global::LiveKit.Proto.RtcStats.Types.InboundRtp(); + } + InboundRtp.MergeFrom(other.InboundRtp); + break; + case StatsOneofCase.OutboundRtp: + if (OutboundRtp == null) { + OutboundRtp = new global::LiveKit.Proto.RtcStats.Types.OutboundRtp(); + } + OutboundRtp.MergeFrom(other.OutboundRtp); + break; + case StatsOneofCase.RemoteInboundRtp: + if (RemoteInboundRtp == null) { + RemoteInboundRtp = new global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp(); + } + RemoteInboundRtp.MergeFrom(other.RemoteInboundRtp); + break; + case StatsOneofCase.RemoteOutboundRtp: + if (RemoteOutboundRtp == null) { + RemoteOutboundRtp = new global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp(); + } + RemoteOutboundRtp.MergeFrom(other.RemoteOutboundRtp); + break; + case StatsOneofCase.MediaSource: + if (MediaSource == null) { + MediaSource = new global::LiveKit.Proto.RtcStats.Types.MediaSource(); + } + MediaSource.MergeFrom(other.MediaSource); + break; + case StatsOneofCase.MediaPlayout: + if (MediaPlayout == null) { + MediaPlayout = new global::LiveKit.Proto.RtcStats.Types.MediaPlayout(); + } + MediaPlayout.MergeFrom(other.MediaPlayout); + break; + case StatsOneofCase.PeerConnection: + if (PeerConnection == null) { + PeerConnection = new global::LiveKit.Proto.RtcStats.Types.PeerConnection(); + } + PeerConnection.MergeFrom(other.PeerConnection); + break; + case StatsOneofCase.DataChannel: + if (DataChannel == null) { + DataChannel = new global::LiveKit.Proto.RtcStats.Types.DataChannel(); + } + DataChannel.MergeFrom(other.DataChannel); + break; + case StatsOneofCase.Transport: + if (Transport == null) { + Transport = new global::LiveKit.Proto.RtcStats.Types.Transport(); + } + Transport.MergeFrom(other.Transport); + break; + case StatsOneofCase.CandidatePair: + if (CandidatePair == null) { + CandidatePair = new global::LiveKit.Proto.RtcStats.Types.CandidatePair(); + } + CandidatePair.MergeFrom(other.CandidatePair); + break; + case StatsOneofCase.LocalCandidate: + if (LocalCandidate == null) { + LocalCandidate = new global::LiveKit.Proto.RtcStats.Types.LocalCandidate(); + } + LocalCandidate.MergeFrom(other.LocalCandidate); + break; + case StatsOneofCase.RemoteCandidate: + if (RemoteCandidate == null) { + RemoteCandidate = new global::LiveKit.Proto.RtcStats.Types.RemoteCandidate(); + } + RemoteCandidate.MergeFrom(other.RemoteCandidate); + break; + case StatsOneofCase.Certificate: + if (Certificate == null) { + Certificate = new global::LiveKit.Proto.RtcStats.Types.Certificate(); + } + Certificate.MergeFrom(other.Certificate); + break; + case StatsOneofCase.Track: + if (Track == null) { + Track = new global::LiveKit.Proto.RtcStats.Types.Track(); + } + Track.MergeFrom(other.Track); + 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 26: { + global::LiveKit.Proto.RtcStats.Types.Codec subBuilder = new global::LiveKit.Proto.RtcStats.Types.Codec(); + if (statsCase_ == StatsOneofCase.Codec) { + subBuilder.MergeFrom(Codec); + } + input.ReadMessage(subBuilder); + Codec = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.RtcStats.Types.InboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.InboundRtp(); + if (statsCase_ == StatsOneofCase.InboundRtp) { + subBuilder.MergeFrom(InboundRtp); + } + input.ReadMessage(subBuilder); + InboundRtp = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.RtcStats.Types.OutboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.OutboundRtp(); + if (statsCase_ == StatsOneofCase.OutboundRtp) { + subBuilder.MergeFrom(OutboundRtp); + } + input.ReadMessage(subBuilder); + OutboundRtp = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp(); + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) { + subBuilder.MergeFrom(RemoteInboundRtp); + } + input.ReadMessage(subBuilder); + RemoteInboundRtp = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp(); + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) { + subBuilder.MergeFrom(RemoteOutboundRtp); + } + input.ReadMessage(subBuilder); + RemoteOutboundRtp = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.RtcStats.Types.MediaSource subBuilder = new global::LiveKit.Proto.RtcStats.Types.MediaSource(); + if (statsCase_ == StatsOneofCase.MediaSource) { + subBuilder.MergeFrom(MediaSource); + } + input.ReadMessage(subBuilder); + MediaSource = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.RtcStats.Types.MediaPlayout subBuilder = new global::LiveKit.Proto.RtcStats.Types.MediaPlayout(); + if (statsCase_ == StatsOneofCase.MediaPlayout) { + subBuilder.MergeFrom(MediaPlayout); + } + input.ReadMessage(subBuilder); + MediaPlayout = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.RtcStats.Types.PeerConnection subBuilder = new global::LiveKit.Proto.RtcStats.Types.PeerConnection(); + if (statsCase_ == StatsOneofCase.PeerConnection) { + subBuilder.MergeFrom(PeerConnection); + } + input.ReadMessage(subBuilder); + PeerConnection = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.RtcStats.Types.DataChannel subBuilder = new global::LiveKit.Proto.RtcStats.Types.DataChannel(); + if (statsCase_ == StatsOneofCase.DataChannel) { + subBuilder.MergeFrom(DataChannel); + } + input.ReadMessage(subBuilder); + DataChannel = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.RtcStats.Types.Transport subBuilder = new global::LiveKit.Proto.RtcStats.Types.Transport(); + if (statsCase_ == StatsOneofCase.Transport) { + subBuilder.MergeFrom(Transport); + } + input.ReadMessage(subBuilder); + Transport = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.RtcStats.Types.CandidatePair subBuilder = new global::LiveKit.Proto.RtcStats.Types.CandidatePair(); + if (statsCase_ == StatsOneofCase.CandidatePair) { + subBuilder.MergeFrom(CandidatePair); + } + input.ReadMessage(subBuilder); + CandidatePair = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.RtcStats.Types.LocalCandidate subBuilder = new global::LiveKit.Proto.RtcStats.Types.LocalCandidate(); + if (statsCase_ == StatsOneofCase.LocalCandidate) { + subBuilder.MergeFrom(LocalCandidate); + } + input.ReadMessage(subBuilder); + LocalCandidate = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RtcStats.Types.RemoteCandidate subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteCandidate(); + if (statsCase_ == StatsOneofCase.RemoteCandidate) { + subBuilder.MergeFrom(RemoteCandidate); + } + input.ReadMessage(subBuilder); + RemoteCandidate = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RtcStats.Types.Certificate subBuilder = new global::LiveKit.Proto.RtcStats.Types.Certificate(); + if (statsCase_ == StatsOneofCase.Certificate) { + subBuilder.MergeFrom(Certificate); + } + input.ReadMessage(subBuilder); + Certificate = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.RtcStats.Types.Track subBuilder = new global::LiveKit.Proto.RtcStats.Types.Track(); + if (statsCase_ == StatsOneofCase.Track) { + subBuilder.MergeFrom(Track); + } + input.ReadMessage(subBuilder); + Track = 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 26: { + global::LiveKit.Proto.RtcStats.Types.Codec subBuilder = new global::LiveKit.Proto.RtcStats.Types.Codec(); + if (statsCase_ == StatsOneofCase.Codec) { + subBuilder.MergeFrom(Codec); + } + input.ReadMessage(subBuilder); + Codec = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.RtcStats.Types.InboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.InboundRtp(); + if (statsCase_ == StatsOneofCase.InboundRtp) { + subBuilder.MergeFrom(InboundRtp); + } + input.ReadMessage(subBuilder); + InboundRtp = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.RtcStats.Types.OutboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.OutboundRtp(); + if (statsCase_ == StatsOneofCase.OutboundRtp) { + subBuilder.MergeFrom(OutboundRtp); + } + input.ReadMessage(subBuilder); + OutboundRtp = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteInboundRtp(); + if (statsCase_ == StatsOneofCase.RemoteInboundRtp) { + subBuilder.MergeFrom(RemoteInboundRtp); + } + input.ReadMessage(subBuilder); + RemoteInboundRtp = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteOutboundRtp(); + if (statsCase_ == StatsOneofCase.RemoteOutboundRtp) { + subBuilder.MergeFrom(RemoteOutboundRtp); + } + input.ReadMessage(subBuilder); + RemoteOutboundRtp = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.RtcStats.Types.MediaSource subBuilder = new global::LiveKit.Proto.RtcStats.Types.MediaSource(); + if (statsCase_ == StatsOneofCase.MediaSource) { + subBuilder.MergeFrom(MediaSource); + } + input.ReadMessage(subBuilder); + MediaSource = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.RtcStats.Types.MediaPlayout subBuilder = new global::LiveKit.Proto.RtcStats.Types.MediaPlayout(); + if (statsCase_ == StatsOneofCase.MediaPlayout) { + subBuilder.MergeFrom(MediaPlayout); + } + input.ReadMessage(subBuilder); + MediaPlayout = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.RtcStats.Types.PeerConnection subBuilder = new global::LiveKit.Proto.RtcStats.Types.PeerConnection(); + if (statsCase_ == StatsOneofCase.PeerConnection) { + subBuilder.MergeFrom(PeerConnection); + } + input.ReadMessage(subBuilder); + PeerConnection = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.RtcStats.Types.DataChannel subBuilder = new global::LiveKit.Proto.RtcStats.Types.DataChannel(); + if (statsCase_ == StatsOneofCase.DataChannel) { + subBuilder.MergeFrom(DataChannel); + } + input.ReadMessage(subBuilder); + DataChannel = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.RtcStats.Types.Transport subBuilder = new global::LiveKit.Proto.RtcStats.Types.Transport(); + if (statsCase_ == StatsOneofCase.Transport) { + subBuilder.MergeFrom(Transport); + } + input.ReadMessage(subBuilder); + Transport = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.RtcStats.Types.CandidatePair subBuilder = new global::LiveKit.Proto.RtcStats.Types.CandidatePair(); + if (statsCase_ == StatsOneofCase.CandidatePair) { + subBuilder.MergeFrom(CandidatePair); + } + input.ReadMessage(subBuilder); + CandidatePair = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.RtcStats.Types.LocalCandidate subBuilder = new global::LiveKit.Proto.RtcStats.Types.LocalCandidate(); + if (statsCase_ == StatsOneofCase.LocalCandidate) { + subBuilder.MergeFrom(LocalCandidate); + } + input.ReadMessage(subBuilder); + LocalCandidate = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RtcStats.Types.RemoteCandidate subBuilder = new global::LiveKit.Proto.RtcStats.Types.RemoteCandidate(); + if (statsCase_ == StatsOneofCase.RemoteCandidate) { + subBuilder.MergeFrom(RemoteCandidate); + } + input.ReadMessage(subBuilder); + RemoteCandidate = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RtcStats.Types.Certificate subBuilder = new global::LiveKit.Proto.RtcStats.Types.Certificate(); + if (statsCase_ == StatsOneofCase.Certificate) { + subBuilder.MergeFrom(Certificate); + } + input.ReadMessage(subBuilder); + Certificate = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.RtcStats.Types.Track subBuilder = new global::LiveKit.Proto.RtcStats.Types.Track(); + if (statsCase_ == StatsOneofCase.Track) { + subBuilder.MergeFrom(Track); + } + input.ReadMessage(subBuilder); + Track = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the RtcStats message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Codec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Codec()); + 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.RtcStats.Descriptor.NestedTypes[0]; } + } + + [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 Codec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Codec(Codec other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + codec_ = other.codec_ != null ? other.codec_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Codec Clone() { + return new Codec(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "codec" field. + public const int Codec_FieldNumber = 2; + private global::LiveKit.Proto.CodecStats codec_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.CodecStats Codec_ { + get { return codec_; } + set { + codec_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Codec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Codec_, other.Codec_)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (codec_ != null) hash ^= Codec_.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (codec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Codec_); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (codec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Codec_); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (codec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Codec other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.codec_ != null) { + if (codec_ == null) { + Codec_ = new global::LiveKit.Proto.CodecStats(); + } + Codec_.MergeFrom(other.Codec_); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (codec_ == null) { + Codec_ = new global::LiveKit.Proto.CodecStats(); + } + input.ReadMessage(Codec_); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (codec_ == null) { + Codec_ = new global::LiveKit.Proto.CodecStats(); + } + input.ReadMessage(Codec_); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InboundRtp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InboundRtp()); + 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.RtcStats.Descriptor.NestedTypes[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 InboundRtp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InboundRtp(InboundRtp other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + received_ = other.received_ != null ? other.received_.Clone() : null; + inbound_ = other.inbound_ != null ? other.inbound_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InboundRtp Clone() { + return new InboundRtp(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 2; + private global::LiveKit.Proto.RtpStreamStats stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtpStreamStats Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + /// Field number for the "received" field. + public const int ReceivedFieldNumber = 3; + private global::LiveKit.Proto.ReceivedRtpStreamStats received_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ReceivedRtpStreamStats Received { + get { return received_; } + set { + received_ = value; + } + } + + /// Field number for the "inbound" field. + public const int InboundFieldNumber = 4; + private global::LiveKit.Proto.InboundRtpStreamStats inbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.InboundRtpStreamStats Inbound { + get { return inbound_; } + set { + inbound_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InboundRtp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InboundRtp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + if (!object.Equals(Received, other.Received)) return false; + if (!object.Equals(Inbound, other.Inbound)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (received_ != null) hash ^= Received.GetHashCode(); + if (inbound_ != null) hash ^= Inbound.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (received_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Received); + } + if (inbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Inbound); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (received_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Received); + } + if (inbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Inbound); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (received_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Received); + } + if (inbound_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Inbound); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InboundRtp other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + Stream.MergeFrom(other.Stream); + } + if (other.received_ != null) { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + Received.MergeFrom(other.Received); + } + if (other.inbound_ != null) { + if (inbound_ == null) { + Inbound = new global::LiveKit.Proto.InboundRtpStreamStats(); + } + Inbound.MergeFrom(other.Inbound); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + input.ReadMessage(Received); + break; + } + case 34: { + if (inbound_ == null) { + Inbound = new global::LiveKit.Proto.InboundRtpStreamStats(); + } + input.ReadMessage(Inbound); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + input.ReadMessage(Received); + break; + } + case 34: { + if (inbound_ == null) { + Inbound = new global::LiveKit.Proto.InboundRtpStreamStats(); + } + input.ReadMessage(Inbound); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OutboundRtp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutboundRtp()); + 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.RtcStats.Descriptor.NestedTypes[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 OutboundRtp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutboundRtp(OutboundRtp other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + sent_ = other.sent_ != null ? other.sent_.Clone() : null; + outbound_ = other.outbound_ != null ? other.outbound_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutboundRtp Clone() { + return new OutboundRtp(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 2; + private global::LiveKit.Proto.RtpStreamStats stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtpStreamStats Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + /// Field number for the "sent" field. + public const int SentFieldNumber = 3; + private global::LiveKit.Proto.SentRtpStreamStats sent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SentRtpStreamStats Sent { + get { return sent_; } + set { + sent_ = value; + } + } + + /// Field number for the "outbound" field. + public const int OutboundFieldNumber = 4; + private global::LiveKit.Proto.OutboundRtpStreamStats outbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OutboundRtpStreamStats Outbound { + get { return outbound_; } + set { + outbound_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as OutboundRtp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OutboundRtp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + if (!object.Equals(Sent, other.Sent)) return false; + if (!object.Equals(Outbound, other.Outbound)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (sent_ != null) hash ^= Sent.GetHashCode(); + if (outbound_ != null) hash ^= Outbound.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (sent_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Sent); + } + if (outbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Outbound); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (sent_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Sent); + } + if (outbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Outbound); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (sent_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sent); + } + if (outbound_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outbound); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OutboundRtp other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + Stream.MergeFrom(other.Stream); + } + if (other.sent_ != null) { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + Sent.MergeFrom(other.Sent); + } + if (other.outbound_ != null) { + if (outbound_ == null) { + Outbound = new global::LiveKit.Proto.OutboundRtpStreamStats(); + } + Outbound.MergeFrom(other.Outbound); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + input.ReadMessage(Sent); + break; + } + case 34: { + if (outbound_ == null) { + Outbound = new global::LiveKit.Proto.OutboundRtpStreamStats(); + } + input.ReadMessage(Outbound); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + input.ReadMessage(Sent); + break; + } + case 34: { + if (outbound_ == null) { + Outbound = new global::LiveKit.Proto.OutboundRtpStreamStats(); + } + input.ReadMessage(Outbound); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoteInboundRtp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteInboundRtp()); + 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.RtcStats.Descriptor.NestedTypes[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 RemoteInboundRtp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteInboundRtp(RemoteInboundRtp other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + received_ = other.received_ != null ? other.received_.Clone() : null; + remoteInbound_ = other.remoteInbound_ != null ? other.remoteInbound_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteInboundRtp Clone() { + return new RemoteInboundRtp(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 2; + private global::LiveKit.Proto.RtpStreamStats stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtpStreamStats Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + /// Field number for the "received" field. + public const int ReceivedFieldNumber = 3; + private global::LiveKit.Proto.ReceivedRtpStreamStats received_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ReceivedRtpStreamStats Received { + get { return received_; } + set { + received_ = value; + } + } + + /// Field number for the "remote_inbound" field. + public const int RemoteInboundFieldNumber = 4; + private global::LiveKit.Proto.RemoteInboundRtpStreamStats remoteInbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RemoteInboundRtpStreamStats RemoteInbound { + get { return remoteInbound_; } + set { + remoteInbound_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoteInboundRtp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoteInboundRtp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + if (!object.Equals(Received, other.Received)) return false; + if (!object.Equals(RemoteInbound, other.RemoteInbound)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (received_ != null) hash ^= Received.GetHashCode(); + if (remoteInbound_ != null) hash ^= RemoteInbound.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (received_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Received); + } + if (remoteInbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemoteInbound); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (received_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Received); + } + if (remoteInbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemoteInbound); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (received_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Received); + } + if (remoteInbound_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoteInbound); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoteInboundRtp other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + Stream.MergeFrom(other.Stream); + } + if (other.received_ != null) { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + Received.MergeFrom(other.Received); + } + if (other.remoteInbound_ != null) { + if (remoteInbound_ == null) { + RemoteInbound = new global::LiveKit.Proto.RemoteInboundRtpStreamStats(); + } + RemoteInbound.MergeFrom(other.RemoteInbound); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + input.ReadMessage(Received); + break; + } + case 34: { + if (remoteInbound_ == null) { + RemoteInbound = new global::LiveKit.Proto.RemoteInboundRtpStreamStats(); + } + input.ReadMessage(RemoteInbound); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (received_ == null) { + Received = new global::LiveKit.Proto.ReceivedRtpStreamStats(); + } + input.ReadMessage(Received); + break; + } + case 34: { + if (remoteInbound_ == null) { + RemoteInbound = new global::LiveKit.Proto.RemoteInboundRtpStreamStats(); + } + input.ReadMessage(RemoteInbound); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoteOutboundRtp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteOutboundRtp()); + 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.RtcStats.Descriptor.NestedTypes[4]; } + } + + [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 RemoteOutboundRtp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteOutboundRtp(RemoteOutboundRtp other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + stream_ = other.stream_ != null ? other.stream_.Clone() : null; + sent_ = other.sent_ != null ? other.sent_.Clone() : null; + remoteOutbound_ = other.remoteOutbound_ != null ? other.remoteOutbound_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteOutboundRtp Clone() { + return new RemoteOutboundRtp(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "stream" field. + public const int StreamFieldNumber = 2; + private global::LiveKit.Proto.RtpStreamStats stream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtpStreamStats Stream { + get { return stream_; } + set { + stream_ = value; + } + } + + /// Field number for the "sent" field. + public const int SentFieldNumber = 3; + private global::LiveKit.Proto.SentRtpStreamStats sent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SentRtpStreamStats Sent { + get { return sent_; } + set { + sent_ = value; + } + } + + /// Field number for the "remote_outbound" field. + public const int RemoteOutboundFieldNumber = 4; + private global::LiveKit.Proto.RemoteOutboundRtpStreamStats remoteOutbound_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RemoteOutboundRtpStreamStats RemoteOutbound { + get { return remoteOutbound_; } + set { + remoteOutbound_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoteOutboundRtp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoteOutboundRtp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Stream, other.Stream)) return false; + if (!object.Equals(Sent, other.Sent)) return false; + if (!object.Equals(RemoteOutbound, other.RemoteOutbound)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (stream_ != null) hash ^= Stream.GetHashCode(); + if (sent_ != null) hash ^= Sent.GetHashCode(); + if (remoteOutbound_ != null) hash ^= RemoteOutbound.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (sent_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Sent); + } + if (remoteOutbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemoteOutbound); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (stream_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Stream); + } + if (sent_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Sent); + } + if (remoteOutbound_ != null) { + output.WriteRawTag(34); + output.WriteMessage(RemoteOutbound); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (stream_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stream); + } + if (sent_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sent); + } + if (remoteOutbound_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoteOutbound); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoteOutboundRtp other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.stream_ != null) { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + Stream.MergeFrom(other.Stream); + } + if (other.sent_ != null) { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + Sent.MergeFrom(other.Sent); + } + if (other.remoteOutbound_ != null) { + if (remoteOutbound_ == null) { + RemoteOutbound = new global::LiveKit.Proto.RemoteOutboundRtpStreamStats(); + } + RemoteOutbound.MergeFrom(other.RemoteOutbound); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + input.ReadMessage(Sent); + break; + } + case 34: { + if (remoteOutbound_ == null) { + RemoteOutbound = new global::LiveKit.Proto.RemoteOutboundRtpStreamStats(); + } + input.ReadMessage(RemoteOutbound); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (stream_ == null) { + Stream = new global::LiveKit.Proto.RtpStreamStats(); + } + input.ReadMessage(Stream); + break; + } + case 26: { + if (sent_ == null) { + Sent = new global::LiveKit.Proto.SentRtpStreamStats(); + } + input.ReadMessage(Sent); + break; + } + case 34: { + if (remoteOutbound_ == null) { + RemoteOutbound = new global::LiveKit.Proto.RemoteOutboundRtpStreamStats(); + } + input.ReadMessage(RemoteOutbound); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MediaSource : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MediaSource()); + 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.RtcStats.Descriptor.NestedTypes[5]; } + } + + [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 MediaSource() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaSource(MediaSource other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + source_ = other.source_ != null ? other.source_.Clone() : null; + audio_ = other.audio_ != null ? other.audio_.Clone() : null; + video_ = other.video_ != null ? other.video_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaSource Clone() { + return new MediaSource(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 2; + private global::LiveKit.Proto.MediaSourceStats source_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.MediaSourceStats Source { + get { return source_; } + set { + source_ = value; + } + } + + /// Field number for the "audio" field. + public const int AudioFieldNumber = 3; + private global::LiveKit.Proto.AudioSourceStats audio_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioSourceStats Audio { + get { return audio_; } + set { + audio_ = value; + } + } + + /// Field number for the "video" field. + public const int VideoFieldNumber = 4; + private global::LiveKit.Proto.VideoSourceStats video_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoSourceStats Video { + get { return video_; } + set { + video_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MediaSource); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MediaSource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Source, other.Source)) return false; + if (!object.Equals(Audio, other.Audio)) return false; + if (!object.Equals(Video, other.Video)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (source_ != null) hash ^= Source.GetHashCode(); + if (audio_ != null) hash ^= Audio.GetHashCode(); + if (video_ != null) hash ^= Video.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (audio_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Audio); + } + if (video_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Video); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (source_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Source); + } + if (audio_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Audio); + } + if (video_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Video); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (source_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source); + } + if (audio_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audio); + } + if (video_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Video); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MediaSource other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.source_ != null) { + if (source_ == null) { + Source = new global::LiveKit.Proto.MediaSourceStats(); + } + Source.MergeFrom(other.Source); + } + if (other.audio_ != null) { + if (audio_ == null) { + Audio = new global::LiveKit.Proto.AudioSourceStats(); + } + Audio.MergeFrom(other.Audio); + } + if (other.video_ != null) { + if (video_ == null) { + Video = new global::LiveKit.Proto.VideoSourceStats(); + } + Video.MergeFrom(other.Video); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (source_ == null) { + Source = new global::LiveKit.Proto.MediaSourceStats(); + } + input.ReadMessage(Source); + break; + } + case 26: { + if (audio_ == null) { + Audio = new global::LiveKit.Proto.AudioSourceStats(); + } + input.ReadMessage(Audio); + break; + } + case 34: { + if (video_ == null) { + Video = new global::LiveKit.Proto.VideoSourceStats(); + } + input.ReadMessage(Video); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (source_ == null) { + Source = new global::LiveKit.Proto.MediaSourceStats(); + } + input.ReadMessage(Source); + break; + } + case 26: { + if (audio_ == null) { + Audio = new global::LiveKit.Proto.AudioSourceStats(); + } + input.ReadMessage(Audio); + break; + } + case 34: { + if (video_ == null) { + Video = new global::LiveKit.Proto.VideoSourceStats(); + } + input.ReadMessage(Video); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MediaPlayout : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MediaPlayout()); + 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.RtcStats.Descriptor.NestedTypes[6]; } + } + + [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 MediaPlayout() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaPlayout(MediaPlayout other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + audioPlayout_ = other.audioPlayout_ != null ? other.audioPlayout_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaPlayout Clone() { + return new MediaPlayout(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "audio_playout" field. + public const int AudioPlayoutFieldNumber = 2; + private global::LiveKit.Proto.AudioPlayoutStats audioPlayout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioPlayoutStats AudioPlayout { + get { return audioPlayout_; } + set { + audioPlayout_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MediaPlayout); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MediaPlayout other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(AudioPlayout, other.AudioPlayout)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (audioPlayout_ != null) hash ^= AudioPlayout.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (audioPlayout_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AudioPlayout); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (audioPlayout_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AudioPlayout); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (audioPlayout_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioPlayout); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MediaPlayout other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.audioPlayout_ != null) { + if (audioPlayout_ == null) { + AudioPlayout = new global::LiveKit.Proto.AudioPlayoutStats(); + } + AudioPlayout.MergeFrom(other.AudioPlayout); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (audioPlayout_ == null) { + AudioPlayout = new global::LiveKit.Proto.AudioPlayoutStats(); + } + input.ReadMessage(AudioPlayout); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (audioPlayout_ == null) { + AudioPlayout = new global::LiveKit.Proto.AudioPlayoutStats(); + } + input.ReadMessage(AudioPlayout); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PeerConnection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PeerConnection()); + 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.RtcStats.Descriptor.NestedTypes[7]; } + } + + [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 PeerConnection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeerConnection(PeerConnection other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + pc_ = other.pc_ != null ? other.pc_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeerConnection Clone() { + return new PeerConnection(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "pc" field. + public const int PcFieldNumber = 2; + private global::LiveKit.Proto.PeerConnectionStats pc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PeerConnectionStats Pc { + get { return pc_; } + set { + pc_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PeerConnection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PeerConnection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Pc, other.Pc)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (pc_ != null) hash ^= Pc.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (pc_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Pc); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (pc_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Pc); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (pc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PeerConnection other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.pc_ != null) { + if (pc_ == null) { + Pc = new global::LiveKit.Proto.PeerConnectionStats(); + } + Pc.MergeFrom(other.Pc); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (pc_ == null) { + Pc = new global::LiveKit.Proto.PeerConnectionStats(); + } + input.ReadMessage(Pc); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (pc_ == null) { + Pc = new global::LiveKit.Proto.PeerConnectionStats(); + } + input.ReadMessage(Pc); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataChannel : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataChannel()); + 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.RtcStats.Descriptor.NestedTypes[8]; } + } + + [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 DataChannel() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataChannel(DataChannel other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + dc_ = other.dc_ != null ? other.dc_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataChannel Clone() { + return new DataChannel(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "dc" field. + public const int DcFieldNumber = 2; + private global::LiveKit.Proto.DataChannelStats dc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DataChannelStats Dc { + get { return dc_; } + set { + dc_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataChannel); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataChannel other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Dc, other.Dc)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (dc_ != null) hash ^= Dc.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (dc_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Dc); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (dc_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Dc); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (dc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Dc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataChannel other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.dc_ != null) { + if (dc_ == null) { + Dc = new global::LiveKit.Proto.DataChannelStats(); + } + Dc.MergeFrom(other.Dc); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (dc_ == null) { + Dc = new global::LiveKit.Proto.DataChannelStats(); + } + input.ReadMessage(Dc); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (dc_ == null) { + Dc = new global::LiveKit.Proto.DataChannelStats(); + } + input.ReadMessage(Dc); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Transport : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transport()); + 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.RtcStats.Descriptor.NestedTypes[9]; } + } + + [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 Transport() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transport(Transport other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + transport_ = other.transport_ != null ? other.transport_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transport Clone() { + return new Transport(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "transport" field. + public const int Transport_FieldNumber = 2; + private global::LiveKit.Proto.TransportStats transport_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TransportStats Transport_ { + get { return transport_; } + set { + transport_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Transport); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Transport other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Transport_, other.Transport_)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (transport_ != null) hash ^= Transport_.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (transport_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Transport_); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (transport_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Transport_); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (transport_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Transport_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Transport other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.transport_ != null) { + if (transport_ == null) { + Transport_ = new global::LiveKit.Proto.TransportStats(); + } + Transport_.MergeFrom(other.Transport_); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (transport_ == null) { + Transport_ = new global::LiveKit.Proto.TransportStats(); + } + input.ReadMessage(Transport_); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (transport_ == null) { + Transport_ = new global::LiveKit.Proto.TransportStats(); + } + input.ReadMessage(Transport_); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CandidatePair : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CandidatePair()); + 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.RtcStats.Descriptor.NestedTypes[10]; } + } + + [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 CandidatePair() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CandidatePair(CandidatePair other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + candidatePair_ = other.candidatePair_ != null ? other.candidatePair_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CandidatePair Clone() { + return new CandidatePair(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "candidate_pair" field. + public const int CandidatePair_FieldNumber = 2; + private global::LiveKit.Proto.CandidatePairStats candidatePair_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.CandidatePairStats CandidatePair_ { + get { return candidatePair_; } + set { + candidatePair_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CandidatePair); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CandidatePair other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(CandidatePair_, other.CandidatePair_)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (candidatePair_ != null) hash ^= CandidatePair_.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidatePair_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CandidatePair_); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidatePair_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CandidatePair_); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (candidatePair_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CandidatePair_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CandidatePair other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.candidatePair_ != null) { + if (candidatePair_ == null) { + CandidatePair_ = new global::LiveKit.Proto.CandidatePairStats(); + } + CandidatePair_.MergeFrom(other.CandidatePair_); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidatePair_ == null) { + CandidatePair_ = new global::LiveKit.Proto.CandidatePairStats(); + } + input.ReadMessage(CandidatePair_); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidatePair_ == null) { + CandidatePair_ = new global::LiveKit.Proto.CandidatePairStats(); + } + input.ReadMessage(CandidatePair_); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class LocalCandidate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalCandidate()); + 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.RtcStats.Descriptor.NestedTypes[11]; } + } + + [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 LocalCandidate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalCandidate(LocalCandidate other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + candidate_ = other.candidate_ != null ? other.candidate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LocalCandidate Clone() { + return new LocalCandidate(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "candidate" field. + public const int CandidateFieldNumber = 2; + private global::LiveKit.Proto.IceCandidateStats candidate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceCandidateStats Candidate { + get { return candidate_; } + set { + candidate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LocalCandidate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LocalCandidate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Candidate, other.Candidate)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (candidate_ != null) hash ^= Candidate.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Candidate); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Candidate); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (candidate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Candidate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LocalCandidate other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.candidate_ != null) { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + Candidate.MergeFrom(other.Candidate); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + input.ReadMessage(Candidate); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + input.ReadMessage(Candidate); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoteCandidate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteCandidate()); + 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.RtcStats.Descriptor.NestedTypes[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 RemoteCandidate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteCandidate(RemoteCandidate other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + candidate_ = other.candidate_ != null ? other.candidate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteCandidate Clone() { + return new RemoteCandidate(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "candidate" field. + public const int CandidateFieldNumber = 2; + private global::LiveKit.Proto.IceCandidateStats candidate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceCandidateStats Candidate { + get { return candidate_; } + set { + candidate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoteCandidate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoteCandidate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Candidate, other.Candidate)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (candidate_ != null) hash ^= Candidate.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Candidate); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (candidate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Candidate); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (candidate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Candidate); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoteCandidate other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.candidate_ != null) { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + Candidate.MergeFrom(other.Candidate); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + input.ReadMessage(Candidate); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (candidate_ == null) { + Candidate = new global::LiveKit.Proto.IceCandidateStats(); + } + input.ReadMessage(Candidate); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Certificate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Certificate()); + 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.RtcStats.Descriptor.NestedTypes[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 Certificate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Certificate(Certificate other) : this() { + rtc_ = other.rtc_ != null ? other.rtc_.Clone() : null; + certificate_ = other.certificate_ != null ? other.certificate_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Certificate Clone() { + return new Certificate(this); + } + + /// Field number for the "rtc" field. + public const int RtcFieldNumber = 1; + private global::LiveKit.Proto.RtcStatsData rtc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcStatsData Rtc { + get { return rtc_; } + set { + rtc_ = value; + } + } + + /// Field number for the "certificate" field. + public const int Certificate_FieldNumber = 2; + private global::LiveKit.Proto.CertificateStats certificate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.CertificateStats Certificate_ { + get { return certificate_; } + set { + certificate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Certificate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Certificate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Rtc, other.Rtc)) return false; + if (!object.Equals(Certificate_, other.Certificate_)) 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 (rtc_ != null) hash ^= Rtc.GetHashCode(); + if (certificate_ != null) hash ^= Certificate_.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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (certificate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Certificate_); + } + 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 (rtc_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Rtc); + } + if (certificate_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Certificate_); + } + 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 (rtc_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtc); + } + if (certificate_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Certificate_); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Certificate other) { + if (other == null) { + return; + } + if (other.rtc_ != null) { + if (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + Rtc.MergeFrom(other.Rtc); + } + if (other.certificate_ != null) { + if (certificate_ == null) { + Certificate_ = new global::LiveKit.Proto.CertificateStats(); + } + Certificate_.MergeFrom(other.Certificate_); + } + _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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (certificate_ == null) { + Certificate_ = new global::LiveKit.Proto.CertificateStats(); + } + input.ReadMessage(Certificate_); + 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 (rtc_ == null) { + Rtc = new global::LiveKit.Proto.RtcStatsData(); + } + input.ReadMessage(Rtc); + break; + } + case 18: { + if (certificate_ == null) { + Certificate_ = new global::LiveKit.Proto.CertificateStats(); + } + input.ReadMessage(Certificate_); + break; + } + } + } + } + #endif + + } + + /// + /// Deprecated + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Track : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Track()); + 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.RtcStats.Descriptor.NestedTypes[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 Track() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Track(Track other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Track Clone() { + return new Track(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Track); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Track other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Track other) { + if (other == null) { + return; + } + _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; + } + } + #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 + + } + + } + #endregion + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RtcStatsData : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcStatsData()); + 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.StatsReflection.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 RtcStatsData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtcStatsData(RtcStatsData other) : this() { + id_ = other.id_; + timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtcStatsData Clone() { + return new RtcStatsData(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 "timestamp" field. + public const int TimestampFieldNumber = 2; + private long timestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RtcStatsData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RtcStatsData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Timestamp != other.Timestamp) 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 (Timestamp != 0L) hash ^= Timestamp.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 (Timestamp != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Timestamp); + } + 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 (Timestamp != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Timestamp); + } + 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 (Timestamp != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RtcStatsData other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.Timestamp != 0L) { + Timestamp = other.Timestamp; + } + _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 16: { + Timestamp = input.ReadInt64(); + 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 16: { + Timestamp = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CodecStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodecStats()); + 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.StatsReflection.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 CodecStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CodecStats(CodecStats other) : this() { + payloadType_ = other.payloadType_; + transportId_ = other.transportId_; + mimeType_ = other.mimeType_; + clockRate_ = other.clockRate_; + channels_ = other.channels_; + sdpFmtpLine_ = other.sdpFmtpLine_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CodecStats Clone() { + return new CodecStats(this); + } + + /// Field number for the "payload_type" field. + public const int PayloadTypeFieldNumber = 1; + private uint payloadType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PayloadType { + get { return payloadType_; } + set { + payloadType_ = value; + } + } + + /// Field number for the "transport_id" field. + public const int TransportIdFieldNumber = 2; + private string transportId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TransportId { + get { return transportId_; } + set { + transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mime_type" field. + public const int MimeTypeFieldNumber = 3; + private string mimeType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MimeType { + get { return mimeType_; } + set { + mimeType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "clock_rate" field. + public const int ClockRateFieldNumber = 4; + private uint clockRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ClockRate { + get { return clockRate_; } + set { + clockRate_ = value; + } + } + + /// Field number for the "channels" field. + public const int ChannelsFieldNumber = 5; + private uint channels_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Channels { + get { return channels_; } + set { + channels_ = value; + } + } + + /// Field number for the "sdp_fmtp_line" field. + public const int SdpFmtpLineFieldNumber = 6; + private string sdpFmtpLine_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SdpFmtpLine { + get { return sdpFmtpLine_; } + set { + sdpFmtpLine_ = 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 CodecStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CodecStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PayloadType != other.PayloadType) return false; + if (TransportId != other.TransportId) return false; + if (MimeType != other.MimeType) return false; + if (ClockRate != other.ClockRate) return false; + if (Channels != other.Channels) return false; + if (SdpFmtpLine != other.SdpFmtpLine) 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 (PayloadType != 0) hash ^= PayloadType.GetHashCode(); + if (TransportId.Length != 0) hash ^= TransportId.GetHashCode(); + if (MimeType.Length != 0) hash ^= MimeType.GetHashCode(); + if (ClockRate != 0) hash ^= ClockRate.GetHashCode(); + if (Channels != 0) hash ^= Channels.GetHashCode(); + if (SdpFmtpLine.Length != 0) hash ^= SdpFmtpLine.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 (PayloadType != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadType); + } + if (TransportId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TransportId); + } + if (MimeType.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MimeType); + } + if (ClockRate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ClockRate); + } + if (Channels != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Channels); + } + if (SdpFmtpLine.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SdpFmtpLine); + } + 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 (PayloadType != 0) { + output.WriteRawTag(8); + output.WriteUInt32(PayloadType); + } + if (TransportId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TransportId); + } + if (MimeType.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MimeType); + } + if (ClockRate != 0) { + output.WriteRawTag(32); + output.WriteUInt32(ClockRate); + } + if (Channels != 0) { + output.WriteRawTag(40); + output.WriteUInt32(Channels); + } + if (SdpFmtpLine.Length != 0) { + output.WriteRawTag(50); + output.WriteString(SdpFmtpLine); + } + 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 (PayloadType != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PayloadType); + } + if (TransportId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); + } + if (MimeType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MimeType); + } + if (ClockRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClockRate); + } + if (Channels != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channels); + } + if (SdpFmtpLine.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SdpFmtpLine); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CodecStats other) { + if (other == null) { + return; + } + if (other.PayloadType != 0) { + PayloadType = other.PayloadType; + } + if (other.TransportId.Length != 0) { + TransportId = other.TransportId; + } + if (other.MimeType.Length != 0) { + MimeType = other.MimeType; + } + if (other.ClockRate != 0) { + ClockRate = other.ClockRate; + } + if (other.Channels != 0) { + Channels = other.Channels; + } + if (other.SdpFmtpLine.Length != 0) { + SdpFmtpLine = other.SdpFmtpLine; + } + _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: { + PayloadType = input.ReadUInt32(); + break; + } + case 18: { + TransportId = input.ReadString(); + break; + } + case 26: { + MimeType = input.ReadString(); + break; + } + case 32: { + ClockRate = input.ReadUInt32(); + break; + } + case 40: { + Channels = input.ReadUInt32(); + break; + } + case 50: { + SdpFmtpLine = 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 8: { + PayloadType = input.ReadUInt32(); + break; + } + case 18: { + TransportId = input.ReadString(); + break; + } + case 26: { + MimeType = input.ReadString(); + break; + } + case 32: { + ClockRate = input.ReadUInt32(); + break; + } + case 40: { + Channels = input.ReadUInt32(); + break; + } + case 50: { + SdpFmtpLine = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtpStreamStats()); + 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.StatsReflection.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 RtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtpStreamStats(RtpStreamStats other) : this() { + ssrc_ = other.ssrc_; + kind_ = other.kind_; + transportId_ = other.transportId_; + codecId_ = other.codecId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RtpStreamStats Clone() { + return new RtpStreamStats(this); + } + + /// Field number for the "ssrc" field. + public const int SsrcFieldNumber = 1; + private uint ssrc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Ssrc { + get { return ssrc_; } + set { + ssrc_ = value; + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 2; + private string kind_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "transport_id" field. + public const int TransportIdFieldNumber = 3; + private string transportId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TransportId { + get { return transportId_; } + set { + transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "codec_id" field. + public const int CodecIdFieldNumber = 4; + private string codecId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CodecId { + get { return codecId_; } + set { + codecId_ = 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 RtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Ssrc != other.Ssrc) return false; + if (Kind != other.Kind) return false; + if (TransportId != other.TransportId) return false; + if (CodecId != other.CodecId) 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 (Ssrc != 0) hash ^= Ssrc.GetHashCode(); + if (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (TransportId.Length != 0) hash ^= TransportId.GetHashCode(); + if (CodecId.Length != 0) hash ^= CodecId.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 (Ssrc != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Ssrc); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + if (TransportId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TransportId); + } + if (CodecId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CodecId); + } + 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 (Ssrc != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Ssrc); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + if (TransportId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(TransportId); + } + if (CodecId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(CodecId); + } + 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 (Ssrc != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Ssrc); + } + if (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (TransportId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); + } + if (CodecId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CodecId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RtpStreamStats other) { + if (other == null) { + return; + } + if (other.Ssrc != 0) { + Ssrc = other.Ssrc; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + if (other.TransportId.Length != 0) { + TransportId = other.TransportId; + } + if (other.CodecId.Length != 0) { + CodecId = other.CodecId; + } + _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: { + Ssrc = input.ReadUInt32(); + break; + } + case 18: { + Kind = input.ReadString(); + break; + } + case 26: { + TransportId = input.ReadString(); + break; + } + case 34: { + CodecId = 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 8: { + Ssrc = input.ReadUInt32(); + break; + } + case 18: { + Kind = input.ReadString(); + break; + } + case 26: { + TransportId = input.ReadString(); + break; + } + case 34: { + CodecId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReceivedRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReceivedRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[4]; } + } + + [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 ReceivedRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceivedRtpStreamStats(ReceivedRtpStreamStats other) : this() { + packetsReceived_ = other.packetsReceived_; + packetsLost_ = other.packetsLost_; + jitter_ = other.jitter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReceivedRtpStreamStats Clone() { + return new ReceivedRtpStreamStats(this); + } + + /// Field number for the "packets_received" field. + public const int PacketsReceivedFieldNumber = 1; + private ulong packetsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsReceived { + get { return packetsReceived_; } + set { + packetsReceived_ = value; + } + } + + /// Field number for the "packets_lost" field. + public const int PacketsLostFieldNumber = 2; + private long packetsLost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long PacketsLost { + get { return packetsLost_; } + set { + packetsLost_ = value; + } + } + + /// Field number for the "jitter" field. + public const int JitterFieldNumber = 3; + private double jitter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double Jitter { + get { return jitter_; } + set { + jitter_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReceivedRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReceivedRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PacketsReceived != other.PacketsReceived) return false; + if (PacketsLost != other.PacketsLost) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Jitter, other.Jitter)) 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 (PacketsReceived != 0UL) hash ^= PacketsReceived.GetHashCode(); + if (PacketsLost != 0L) hash ^= PacketsLost.GetHashCode(); + if (Jitter != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Jitter); + 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 (PacketsReceived != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsReceived); + } + if (PacketsLost != 0L) { + output.WriteRawTag(16); + output.WriteInt64(PacketsLost); + } + if (Jitter != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Jitter); + } + 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 (PacketsReceived != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsReceived); + } + if (PacketsLost != 0L) { + output.WriteRawTag(16); + output.WriteInt64(PacketsLost); + } + if (Jitter != 0D) { + output.WriteRawTag(25); + output.WriteDouble(Jitter); + } + 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 (PacketsReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); + } + if (PacketsLost != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(PacketsLost); + } + if (Jitter != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReceivedRtpStreamStats other) { + if (other == null) { + return; + } + if (other.PacketsReceived != 0UL) { + PacketsReceived = other.PacketsReceived; + } + if (other.PacketsLost != 0L) { + PacketsLost = other.PacketsLost; + } + if (other.Jitter != 0D) { + Jitter = other.Jitter; + } + _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: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 16: { + PacketsLost = input.ReadInt64(); + break; + } + case 25: { + Jitter = input.ReadDouble(); + 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: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 16: { + PacketsLost = input.ReadInt64(); + break; + } + case 25: { + Jitter = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class InboundRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InboundRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[5]; } + } + + [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 InboundRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InboundRtpStreamStats(InboundRtpStreamStats other) : this() { + trackIdentifier_ = other.trackIdentifier_; + mid_ = other.mid_; + remoteId_ = other.remoteId_; + framesDecoded_ = other.framesDecoded_; + keyFramesDecoded_ = other.keyFramesDecoded_; + framesRendered_ = other.framesRendered_; + framesDropped_ = other.framesDropped_; + frameWidth_ = other.frameWidth_; + frameHeight_ = other.frameHeight_; + framesPerSecond_ = other.framesPerSecond_; + qpSum_ = other.qpSum_; + totalDecodeTime_ = other.totalDecodeTime_; + totalInterFrameDelay_ = other.totalInterFrameDelay_; + totalSquaredInterFrameDelay_ = other.totalSquaredInterFrameDelay_; + pauseCount_ = other.pauseCount_; + totalPauseDuration_ = other.totalPauseDuration_; + freezeCount_ = other.freezeCount_; + totalFreezeDuration_ = other.totalFreezeDuration_; + lastPacketReceivedTimestamp_ = other.lastPacketReceivedTimestamp_; + headerBytesReceived_ = other.headerBytesReceived_; + packetsDiscarded_ = other.packetsDiscarded_; + fecBytesReceived_ = other.fecBytesReceived_; + fecPacketsReceived_ = other.fecPacketsReceived_; + fecPacketsDiscarded_ = other.fecPacketsDiscarded_; + bytesReceived_ = other.bytesReceived_; + nackCount_ = other.nackCount_; + firCount_ = other.firCount_; + pliCount_ = other.pliCount_; + totalProcessingDelay_ = other.totalProcessingDelay_; + estimatedPlayoutTimestamp_ = other.estimatedPlayoutTimestamp_; + jitterBufferDelay_ = other.jitterBufferDelay_; + jitterBufferTargetDelay_ = other.jitterBufferTargetDelay_; + jitterBufferEmittedCount_ = other.jitterBufferEmittedCount_; + jitterBufferMinimumDelay_ = other.jitterBufferMinimumDelay_; + totalSamplesReceived_ = other.totalSamplesReceived_; + concealedSamples_ = other.concealedSamples_; + silentConcealedSamples_ = other.silentConcealedSamples_; + concealmentEvents_ = other.concealmentEvents_; + insertedSamplesForDeceleration_ = other.insertedSamplesForDeceleration_; + removedSamplesForAcceleration_ = other.removedSamplesForAcceleration_; + audioLevel_ = other.audioLevel_; + totalAudioEnergy_ = other.totalAudioEnergy_; + totalSamplesDuration_ = other.totalSamplesDuration_; + framesReceived_ = other.framesReceived_; + decoderImplementation_ = other.decoderImplementation_; + playoutId_ = other.playoutId_; + powerEfficientDecoder_ = other.powerEfficientDecoder_; + framesAssembledFromMultiplePackets_ = other.framesAssembledFromMultiplePackets_; + totalAssemblyTime_ = other.totalAssemblyTime_; + retransmittedPacketsReceived_ = other.retransmittedPacketsReceived_; + retransmittedBytesReceived_ = other.retransmittedBytesReceived_; + rtxSsrc_ = other.rtxSsrc_; + fecSsrc_ = other.fecSsrc_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public InboundRtpStreamStats Clone() { + return new InboundRtpStreamStats(this); + } + + /// Field number for the "track_identifier" field. + public const int TrackIdentifierFieldNumber = 1; + private string trackIdentifier_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackIdentifier { + get { return trackIdentifier_; } + set { + trackIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mid" field. + public const int MidFieldNumber = 2; + private string mid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mid { + get { return mid_; } + set { + mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_id" field. + public const int RemoteIdFieldNumber = 3; + private string remoteId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteId { + get { return remoteId_; } + set { + remoteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "frames_decoded" field. + public const int FramesDecodedFieldNumber = 4; + private uint framesDecoded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FramesDecoded { + get { return framesDecoded_; } + set { + framesDecoded_ = value; + } + } + + /// Field number for the "key_frames_decoded" field. + public const int KeyFramesDecodedFieldNumber = 5; + private uint keyFramesDecoded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint KeyFramesDecoded { + get { return keyFramesDecoded_; } + set { + keyFramesDecoded_ = value; + } + } + + /// Field number for the "frames_rendered" field. + public const int FramesRenderedFieldNumber = 6; + private uint framesRendered_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FramesRendered { + get { return framesRendered_; } + set { + framesRendered_ = value; + } + } + + /// Field number for the "frames_dropped" field. + public const int FramesDroppedFieldNumber = 7; + private uint framesDropped_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FramesDropped { + get { return framesDropped_; } + set { + framesDropped_ = value; + } + } + + /// Field number for the "frame_width" field. + public const int FrameWidthFieldNumber = 8; + private uint frameWidth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameWidth { + get { return frameWidth_; } + set { + frameWidth_ = value; + } + } + + /// Field number for the "frame_height" field. + public const int FrameHeightFieldNumber = 9; + private uint frameHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameHeight { + get { return frameHeight_; } + set { + frameHeight_ = value; + } + } + + /// Field number for the "frames_per_second" field. + public const int FramesPerSecondFieldNumber = 10; + private double framesPerSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double FramesPerSecond { + get { return framesPerSecond_; } + set { + framesPerSecond_ = value; + } + } + + /// Field number for the "qp_sum" field. + public const int QpSumFieldNumber = 11; + private ulong qpSum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong QpSum { + get { return qpSum_; } + set { + qpSum_ = value; + } + } + + /// Field number for the "total_decode_time" field. + public const int TotalDecodeTimeFieldNumber = 12; + private double totalDecodeTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalDecodeTime { + get { return totalDecodeTime_; } + set { + totalDecodeTime_ = value; + } + } + + /// Field number for the "total_inter_frame_delay" field. + public const int TotalInterFrameDelayFieldNumber = 13; + private double totalInterFrameDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalInterFrameDelay { + get { return totalInterFrameDelay_; } + set { + totalInterFrameDelay_ = value; + } + } + + /// Field number for the "total_squared_inter_frame_delay" field. + public const int TotalSquaredInterFrameDelayFieldNumber = 14; + private double totalSquaredInterFrameDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalSquaredInterFrameDelay { + get { return totalSquaredInterFrameDelay_; } + set { + totalSquaredInterFrameDelay_ = value; + } + } + + /// Field number for the "pause_count" field. + public const int PauseCountFieldNumber = 15; + private uint pauseCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PauseCount { + get { return pauseCount_; } + set { + pauseCount_ = value; + } + } + + /// Field number for the "total_pause_duration" field. + public const int TotalPauseDurationFieldNumber = 16; + private double totalPauseDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalPauseDuration { + get { return totalPauseDuration_; } + set { + totalPauseDuration_ = value; + } + } + + /// Field number for the "freeze_count" field. + public const int FreezeCountFieldNumber = 17; + private uint freezeCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FreezeCount { + get { return freezeCount_; } + set { + freezeCount_ = value; + } + } + + /// Field number for the "total_freeze_duration" field. + public const int TotalFreezeDurationFieldNumber = 18; + private double totalFreezeDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalFreezeDuration { + get { return totalFreezeDuration_; } + set { + totalFreezeDuration_ = value; + } + } + + /// Field number for the "last_packet_received_timestamp" field. + public const int LastPacketReceivedTimestampFieldNumber = 19; + private double lastPacketReceivedTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LastPacketReceivedTimestamp { + get { return lastPacketReceivedTimestamp_; } + set { + lastPacketReceivedTimestamp_ = value; + } + } + + /// Field number for the "header_bytes_received" field. + public const int HeaderBytesReceivedFieldNumber = 20; + private ulong headerBytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong HeaderBytesReceived { + get { return headerBytesReceived_; } + set { + headerBytesReceived_ = value; + } + } + + /// Field number for the "packets_discarded" field. + public const int PacketsDiscardedFieldNumber = 21; + private ulong packetsDiscarded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsDiscarded { + get { return packetsDiscarded_; } + set { + packetsDiscarded_ = value; + } + } + + /// Field number for the "fec_bytes_received" field. + public const int FecBytesReceivedFieldNumber = 22; + private ulong fecBytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FecBytesReceived { + get { return fecBytesReceived_; } + set { + fecBytesReceived_ = value; + } + } + + /// Field number for the "fec_packets_received" field. + public const int FecPacketsReceivedFieldNumber = 23; + private ulong fecPacketsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FecPacketsReceived { + get { return fecPacketsReceived_; } + set { + fecPacketsReceived_ = value; + } + } + + /// Field number for the "fec_packets_discarded" field. + public const int FecPacketsDiscardedFieldNumber = 24; + private ulong fecPacketsDiscarded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FecPacketsDiscarded { + get { return fecPacketsDiscarded_; } + set { + fecPacketsDiscarded_ = value; + } + } + + /// Field number for the "bytes_received" field. + public const int BytesReceivedFieldNumber = 25; + private ulong bytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesReceived { + get { return bytesReceived_; } + set { + bytesReceived_ = value; + } + } + + /// Field number for the "nack_count" field. + public const int NackCountFieldNumber = 26; + private uint nackCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NackCount { + get { return nackCount_; } + set { + nackCount_ = value; + } + } + + /// Field number for the "fir_count" field. + public const int FirCountFieldNumber = 27; + private uint firCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FirCount { + get { return firCount_; } + set { + firCount_ = value; + } + } + + /// Field number for the "pli_count" field. + public const int PliCountFieldNumber = 28; + private uint pliCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PliCount { + get { return pliCount_; } + set { + pliCount_ = value; + } + } + + /// Field number for the "total_processing_delay" field. + public const int TotalProcessingDelayFieldNumber = 29; + private double totalProcessingDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalProcessingDelay { + get { return totalProcessingDelay_; } + set { + totalProcessingDelay_ = value; + } + } + + /// Field number for the "estimated_playout_timestamp" field. + public const int EstimatedPlayoutTimestampFieldNumber = 30; + private double estimatedPlayoutTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double EstimatedPlayoutTimestamp { + get { return estimatedPlayoutTimestamp_; } + set { + estimatedPlayoutTimestamp_ = value; + } + } + + /// Field number for the "jitter_buffer_delay" field. + public const int JitterBufferDelayFieldNumber = 31; + private double jitterBufferDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double JitterBufferDelay { + get { return jitterBufferDelay_; } + set { + jitterBufferDelay_ = value; + } + } + + /// Field number for the "jitter_buffer_target_delay" field. + public const int JitterBufferTargetDelayFieldNumber = 32; + private double jitterBufferTargetDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double JitterBufferTargetDelay { + get { return jitterBufferTargetDelay_; } + set { + jitterBufferTargetDelay_ = value; + } + } + + /// Field number for the "jitter_buffer_emitted_count" field. + public const int JitterBufferEmittedCountFieldNumber = 33; + private ulong jitterBufferEmittedCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong JitterBufferEmittedCount { + get { return jitterBufferEmittedCount_; } + set { + jitterBufferEmittedCount_ = value; + } + } + + /// Field number for the "jitter_buffer_minimum_delay" field. + public const int JitterBufferMinimumDelayFieldNumber = 34; + private double jitterBufferMinimumDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double JitterBufferMinimumDelay { + get { return jitterBufferMinimumDelay_; } + set { + jitterBufferMinimumDelay_ = value; + } + } + + /// Field number for the "total_samples_received" field. + public const int TotalSamplesReceivedFieldNumber = 35; + private ulong totalSamplesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TotalSamplesReceived { + get { return totalSamplesReceived_; } + set { + totalSamplesReceived_ = value; + } + } + + /// Field number for the "concealed_samples" field. + public const int ConcealedSamplesFieldNumber = 36; + private ulong concealedSamples_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ConcealedSamples { + get { return concealedSamples_; } + set { + concealedSamples_ = value; + } + } + + /// Field number for the "silent_concealed_samples" field. + public const int SilentConcealedSamplesFieldNumber = 37; + private ulong silentConcealedSamples_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SilentConcealedSamples { + get { return silentConcealedSamples_; } + set { + silentConcealedSamples_ = value; + } + } + + /// Field number for the "concealment_events" field. + public const int ConcealmentEventsFieldNumber = 38; + private ulong concealmentEvents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ConcealmentEvents { + get { return concealmentEvents_; } + set { + concealmentEvents_ = value; + } + } + + /// Field number for the "inserted_samples_for_deceleration" field. + public const int InsertedSamplesForDecelerationFieldNumber = 39; + private ulong insertedSamplesForDeceleration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong InsertedSamplesForDeceleration { + get { return insertedSamplesForDeceleration_; } + set { + insertedSamplesForDeceleration_ = value; + } + } + + /// Field number for the "removed_samples_for_acceleration" field. + public const int RemovedSamplesForAccelerationFieldNumber = 40; + private ulong removedSamplesForAcceleration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RemovedSamplesForAcceleration { + get { return removedSamplesForAcceleration_; } + set { + removedSamplesForAcceleration_ = value; + } + } + + /// Field number for the "audio_level" field. + public const int AudioLevelFieldNumber = 41; + private double audioLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AudioLevel { + get { return audioLevel_; } + set { + audioLevel_ = value; + } + } + + /// Field number for the "total_audio_energy" field. + public const int TotalAudioEnergyFieldNumber = 42; + private double totalAudioEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalAudioEnergy { + get { return totalAudioEnergy_; } + set { + totalAudioEnergy_ = value; + } + } + + /// Field number for the "total_samples_duration" field. + public const int TotalSamplesDurationFieldNumber = 43; + private double totalSamplesDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalSamplesDuration { + get { return totalSamplesDuration_; } + set { + totalSamplesDuration_ = value; + } + } + + /// Field number for the "frames_received" field. + public const int FramesReceivedFieldNumber = 44; + private ulong framesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FramesReceived { + get { return framesReceived_; } + set { + framesReceived_ = value; + } + } + + /// Field number for the "decoder_implementation" field. + public const int DecoderImplementationFieldNumber = 45; + private string decoderImplementation_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecoderImplementation { + get { return decoderImplementation_; } + set { + decoderImplementation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "playout_id" field. + public const int PlayoutIdFieldNumber = 46; + private string playoutId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PlayoutId { + get { return playoutId_; } + set { + playoutId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "power_efficient_decoder" field. + public const int PowerEfficientDecoderFieldNumber = 47; + private bool powerEfficientDecoder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PowerEfficientDecoder { + get { return powerEfficientDecoder_; } + set { + powerEfficientDecoder_ = value; + } + } + + /// Field number for the "frames_assembled_from_multiple_packets" field. + public const int FramesAssembledFromMultiplePacketsFieldNumber = 48; + private ulong framesAssembledFromMultiplePackets_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong FramesAssembledFromMultiplePackets { + get { return framesAssembledFromMultiplePackets_; } + set { + framesAssembledFromMultiplePackets_ = value; + } + } + + /// Field number for the "total_assembly_time" field. + public const int TotalAssemblyTimeFieldNumber = 49; + private double totalAssemblyTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalAssemblyTime { + get { return totalAssemblyTime_; } + set { + totalAssemblyTime_ = value; + } + } + + /// Field number for the "retransmitted_packets_received" field. + public const int RetransmittedPacketsReceivedFieldNumber = 50; + private ulong retransmittedPacketsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RetransmittedPacketsReceived { + get { return retransmittedPacketsReceived_; } + set { + retransmittedPacketsReceived_ = value; + } + } + + /// Field number for the "retransmitted_bytes_received" field. + public const int RetransmittedBytesReceivedFieldNumber = 51; + private ulong retransmittedBytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RetransmittedBytesReceived { + get { return retransmittedBytesReceived_; } + set { + retransmittedBytesReceived_ = value; + } + } + + /// Field number for the "rtx_ssrc" field. + public const int RtxSsrcFieldNumber = 52; + private uint rtxSsrc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RtxSsrc { + get { return rtxSsrc_; } + set { + rtxSsrc_ = value; + } + } + + /// Field number for the "fec_ssrc" field. + public const int FecSsrcFieldNumber = 53; + private uint fecSsrc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FecSsrc { + get { return fecSsrc_; } + set { + fecSsrc_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as InboundRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(InboundRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackIdentifier != other.TrackIdentifier) return false; + if (Mid != other.Mid) return false; + if (RemoteId != other.RemoteId) return false; + if (FramesDecoded != other.FramesDecoded) return false; + if (KeyFramesDecoded != other.KeyFramesDecoded) return false; + if (FramesRendered != other.FramesRendered) return false; + if (FramesDropped != other.FramesDropped) return false; + if (FrameWidth != other.FrameWidth) return false; + if (FrameHeight != other.FrameHeight) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FramesPerSecond, other.FramesPerSecond)) return false; + if (QpSum != other.QpSum) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalDecodeTime, other.TotalDecodeTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalInterFrameDelay, other.TotalInterFrameDelay)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalSquaredInterFrameDelay, other.TotalSquaredInterFrameDelay)) return false; + if (PauseCount != other.PauseCount) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalPauseDuration, other.TotalPauseDuration)) return false; + if (FreezeCount != other.FreezeCount) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalFreezeDuration, other.TotalFreezeDuration)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LastPacketReceivedTimestamp, other.LastPacketReceivedTimestamp)) return false; + if (HeaderBytesReceived != other.HeaderBytesReceived) return false; + if (PacketsDiscarded != other.PacketsDiscarded) return false; + if (FecBytesReceived != other.FecBytesReceived) return false; + if (FecPacketsReceived != other.FecPacketsReceived) return false; + if (FecPacketsDiscarded != other.FecPacketsDiscarded) return false; + if (BytesReceived != other.BytesReceived) return false; + if (NackCount != other.NackCount) return false; + if (FirCount != other.FirCount) return false; + if (PliCount != other.PliCount) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalProcessingDelay, other.TotalProcessingDelay)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EstimatedPlayoutTimestamp, other.EstimatedPlayoutTimestamp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(JitterBufferDelay, other.JitterBufferDelay)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(JitterBufferTargetDelay, other.JitterBufferTargetDelay)) return false; + if (JitterBufferEmittedCount != other.JitterBufferEmittedCount) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(JitterBufferMinimumDelay, other.JitterBufferMinimumDelay)) return false; + if (TotalSamplesReceived != other.TotalSamplesReceived) return false; + if (ConcealedSamples != other.ConcealedSamples) return false; + if (SilentConcealedSamples != other.SilentConcealedSamples) return false; + if (ConcealmentEvents != other.ConcealmentEvents) return false; + if (InsertedSamplesForDeceleration != other.InsertedSamplesForDeceleration) return false; + if (RemovedSamplesForAcceleration != other.RemovedSamplesForAcceleration) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AudioLevel, other.AudioLevel)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalAudioEnergy, other.TotalAudioEnergy)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalSamplesDuration, other.TotalSamplesDuration)) return false; + if (FramesReceived != other.FramesReceived) return false; + if (DecoderImplementation != other.DecoderImplementation) return false; + if (PlayoutId != other.PlayoutId) return false; + if (PowerEfficientDecoder != other.PowerEfficientDecoder) return false; + if (FramesAssembledFromMultiplePackets != other.FramesAssembledFromMultiplePackets) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalAssemblyTime, other.TotalAssemblyTime)) return false; + if (RetransmittedPacketsReceived != other.RetransmittedPacketsReceived) return false; + if (RetransmittedBytesReceived != other.RetransmittedBytesReceived) return false; + if (RtxSsrc != other.RtxSsrc) return false; + if (FecSsrc != other.FecSsrc) 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 (TrackIdentifier.Length != 0) hash ^= TrackIdentifier.GetHashCode(); + if (Mid.Length != 0) hash ^= Mid.GetHashCode(); + if (RemoteId.Length != 0) hash ^= RemoteId.GetHashCode(); + if (FramesDecoded != 0) hash ^= FramesDecoded.GetHashCode(); + if (KeyFramesDecoded != 0) hash ^= KeyFramesDecoded.GetHashCode(); + if (FramesRendered != 0) hash ^= FramesRendered.GetHashCode(); + if (FramesDropped != 0) hash ^= FramesDropped.GetHashCode(); + if (FrameWidth != 0) hash ^= FrameWidth.GetHashCode(); + if (FrameHeight != 0) hash ^= FrameHeight.GetHashCode(); + if (FramesPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); + if (QpSum != 0UL) hash ^= QpSum.GetHashCode(); + if (TotalDecodeTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalDecodeTime); + if (TotalInterFrameDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalInterFrameDelay); + if (TotalSquaredInterFrameDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSquaredInterFrameDelay); + if (PauseCount != 0) hash ^= PauseCount.GetHashCode(); + if (TotalPauseDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPauseDuration); + if (FreezeCount != 0) hash ^= FreezeCount.GetHashCode(); + if (TotalFreezeDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalFreezeDuration); + if (LastPacketReceivedTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketReceivedTimestamp); + if (HeaderBytesReceived != 0UL) hash ^= HeaderBytesReceived.GetHashCode(); + if (PacketsDiscarded != 0UL) hash ^= PacketsDiscarded.GetHashCode(); + if (FecBytesReceived != 0UL) hash ^= FecBytesReceived.GetHashCode(); + if (FecPacketsReceived != 0UL) hash ^= FecPacketsReceived.GetHashCode(); + if (FecPacketsDiscarded != 0UL) hash ^= FecPacketsDiscarded.GetHashCode(); + if (BytesReceived != 0UL) hash ^= BytesReceived.GetHashCode(); + if (NackCount != 0) hash ^= NackCount.GetHashCode(); + if (FirCount != 0) hash ^= FirCount.GetHashCode(); + if (PliCount != 0) hash ^= PliCount.GetHashCode(); + if (TotalProcessingDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalProcessingDelay); + if (EstimatedPlayoutTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EstimatedPlayoutTimestamp); + if (JitterBufferDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferDelay); + if (JitterBufferTargetDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferTargetDelay); + if (JitterBufferEmittedCount != 0UL) hash ^= JitterBufferEmittedCount.GetHashCode(); + if (JitterBufferMinimumDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferMinimumDelay); + if (TotalSamplesReceived != 0UL) hash ^= TotalSamplesReceived.GetHashCode(); + if (ConcealedSamples != 0UL) hash ^= ConcealedSamples.GetHashCode(); + if (SilentConcealedSamples != 0UL) hash ^= SilentConcealedSamples.GetHashCode(); + if (ConcealmentEvents != 0UL) hash ^= ConcealmentEvents.GetHashCode(); + if (InsertedSamplesForDeceleration != 0UL) hash ^= InsertedSamplesForDeceleration.GetHashCode(); + if (RemovedSamplesForAcceleration != 0UL) hash ^= RemovedSamplesForAcceleration.GetHashCode(); + if (AudioLevel != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioLevel); + if (TotalAudioEnergy != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAudioEnergy); + if (TotalSamplesDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (FramesReceived != 0UL) hash ^= FramesReceived.GetHashCode(); + if (DecoderImplementation.Length != 0) hash ^= DecoderImplementation.GetHashCode(); + if (PlayoutId.Length != 0) hash ^= PlayoutId.GetHashCode(); + if (PowerEfficientDecoder != false) hash ^= PowerEfficientDecoder.GetHashCode(); + if (FramesAssembledFromMultiplePackets != 0UL) hash ^= FramesAssembledFromMultiplePackets.GetHashCode(); + if (TotalAssemblyTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAssemblyTime); + if (RetransmittedPacketsReceived != 0UL) hash ^= RetransmittedPacketsReceived.GetHashCode(); + if (RetransmittedBytesReceived != 0UL) hash ^= RetransmittedBytesReceived.GetHashCode(); + if (RtxSsrc != 0) hash ^= RtxSsrc.GetHashCode(); + if (FecSsrc != 0) hash ^= FecSsrc.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 (TrackIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackIdentifier); + } + if (Mid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Mid); + } + if (RemoteId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteId); + } + if (FramesDecoded != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FramesDecoded); + } + if (KeyFramesDecoded != 0) { + output.WriteRawTag(40); + output.WriteUInt32(KeyFramesDecoded); + } + if (FramesRendered != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FramesRendered); + } + if (FramesDropped != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FramesDropped); + } + if (FrameWidth != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FrameWidth); + } + if (FrameHeight != 0) { + output.WriteRawTag(72); + output.WriteUInt32(FrameHeight); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(81); + output.WriteDouble(FramesPerSecond); + } + if (QpSum != 0UL) { + output.WriteRawTag(88); + output.WriteUInt64(QpSum); + } + if (TotalDecodeTime != 0D) { + output.WriteRawTag(97); + output.WriteDouble(TotalDecodeTime); + } + if (TotalInterFrameDelay != 0D) { + output.WriteRawTag(105); + output.WriteDouble(TotalInterFrameDelay); + } + if (TotalSquaredInterFrameDelay != 0D) { + output.WriteRawTag(113); + output.WriteDouble(TotalSquaredInterFrameDelay); + } + if (PauseCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(PauseCount); + } + if (TotalPauseDuration != 0D) { + output.WriteRawTag(129, 1); + output.WriteDouble(TotalPauseDuration); + } + if (FreezeCount != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(FreezeCount); + } + if (TotalFreezeDuration != 0D) { + output.WriteRawTag(145, 1); + output.WriteDouble(TotalFreezeDuration); + } + if (LastPacketReceivedTimestamp != 0D) { + output.WriteRawTag(153, 1); + output.WriteDouble(LastPacketReceivedTimestamp); + } + if (HeaderBytesReceived != 0UL) { + output.WriteRawTag(160, 1); + output.WriteUInt64(HeaderBytesReceived); + } + if (PacketsDiscarded != 0UL) { + output.WriteRawTag(168, 1); + output.WriteUInt64(PacketsDiscarded); + } + if (FecBytesReceived != 0UL) { + output.WriteRawTag(176, 1); + output.WriteUInt64(FecBytesReceived); + } + if (FecPacketsReceived != 0UL) { + output.WriteRawTag(184, 1); + output.WriteUInt64(FecPacketsReceived); + } + if (FecPacketsDiscarded != 0UL) { + output.WriteRawTag(192, 1); + output.WriteUInt64(FecPacketsDiscarded); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(200, 1); + output.WriteUInt64(BytesReceived); + } + if (NackCount != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(NackCount); + } + if (FirCount != 0) { + output.WriteRawTag(216, 1); + output.WriteUInt32(FirCount); + } + if (PliCount != 0) { + output.WriteRawTag(224, 1); + output.WriteUInt32(PliCount); + } + if (TotalProcessingDelay != 0D) { + output.WriteRawTag(233, 1); + output.WriteDouble(TotalProcessingDelay); + } + if (EstimatedPlayoutTimestamp != 0D) { + output.WriteRawTag(241, 1); + output.WriteDouble(EstimatedPlayoutTimestamp); + } + if (JitterBufferDelay != 0D) { + output.WriteRawTag(249, 1); + output.WriteDouble(JitterBufferDelay); + } + if (JitterBufferTargetDelay != 0D) { + output.WriteRawTag(129, 2); + output.WriteDouble(JitterBufferTargetDelay); + } + if (JitterBufferEmittedCount != 0UL) { + output.WriteRawTag(136, 2); + output.WriteUInt64(JitterBufferEmittedCount); + } + if (JitterBufferMinimumDelay != 0D) { + output.WriteRawTag(145, 2); + output.WriteDouble(JitterBufferMinimumDelay); + } + if (TotalSamplesReceived != 0UL) { + output.WriteRawTag(152, 2); + output.WriteUInt64(TotalSamplesReceived); + } + if (ConcealedSamples != 0UL) { + output.WriteRawTag(160, 2); + output.WriteUInt64(ConcealedSamples); + } + if (SilentConcealedSamples != 0UL) { + output.WriteRawTag(168, 2); + output.WriteUInt64(SilentConcealedSamples); + } + if (ConcealmentEvents != 0UL) { + output.WriteRawTag(176, 2); + output.WriteUInt64(ConcealmentEvents); + } + if (InsertedSamplesForDeceleration != 0UL) { + output.WriteRawTag(184, 2); + output.WriteUInt64(InsertedSamplesForDeceleration); + } + if (RemovedSamplesForAcceleration != 0UL) { + output.WriteRawTag(192, 2); + output.WriteUInt64(RemovedSamplesForAcceleration); + } + if (AudioLevel != 0D) { + output.WriteRawTag(201, 2); + output.WriteDouble(AudioLevel); + } + if (TotalAudioEnergy != 0D) { + output.WriteRawTag(209, 2); + output.WriteDouble(TotalAudioEnergy); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(217, 2); + output.WriteDouble(TotalSamplesDuration); + } + if (FramesReceived != 0UL) { + output.WriteRawTag(224, 2); + output.WriteUInt64(FramesReceived); + } + if (DecoderImplementation.Length != 0) { + output.WriteRawTag(234, 2); + output.WriteString(DecoderImplementation); + } + if (PlayoutId.Length != 0) { + output.WriteRawTag(242, 2); + output.WriteString(PlayoutId); + } + if (PowerEfficientDecoder != false) { + output.WriteRawTag(248, 2); + output.WriteBool(PowerEfficientDecoder); + } + if (FramesAssembledFromMultiplePackets != 0UL) { + output.WriteRawTag(128, 3); + output.WriteUInt64(FramesAssembledFromMultiplePackets); + } + if (TotalAssemblyTime != 0D) { + output.WriteRawTag(137, 3); + output.WriteDouble(TotalAssemblyTime); + } + if (RetransmittedPacketsReceived != 0UL) { + output.WriteRawTag(144, 3); + output.WriteUInt64(RetransmittedPacketsReceived); + } + if (RetransmittedBytesReceived != 0UL) { + output.WriteRawTag(152, 3); + output.WriteUInt64(RetransmittedBytesReceived); + } + if (RtxSsrc != 0) { + output.WriteRawTag(160, 3); + output.WriteUInt32(RtxSsrc); + } + if (FecSsrc != 0) { + output.WriteRawTag(168, 3); + output.WriteUInt32(FecSsrc); + } + 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 (TrackIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackIdentifier); + } + if (Mid.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Mid); + } + if (RemoteId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteId); + } + if (FramesDecoded != 0) { + output.WriteRawTag(32); + output.WriteUInt32(FramesDecoded); + } + if (KeyFramesDecoded != 0) { + output.WriteRawTag(40); + output.WriteUInt32(KeyFramesDecoded); + } + if (FramesRendered != 0) { + output.WriteRawTag(48); + output.WriteUInt32(FramesRendered); + } + if (FramesDropped != 0) { + output.WriteRawTag(56); + output.WriteUInt32(FramesDropped); + } + if (FrameWidth != 0) { + output.WriteRawTag(64); + output.WriteUInt32(FrameWidth); + } + if (FrameHeight != 0) { + output.WriteRawTag(72); + output.WriteUInt32(FrameHeight); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(81); + output.WriteDouble(FramesPerSecond); + } + if (QpSum != 0UL) { + output.WriteRawTag(88); + output.WriteUInt64(QpSum); + } + if (TotalDecodeTime != 0D) { + output.WriteRawTag(97); + output.WriteDouble(TotalDecodeTime); + } + if (TotalInterFrameDelay != 0D) { + output.WriteRawTag(105); + output.WriteDouble(TotalInterFrameDelay); + } + if (TotalSquaredInterFrameDelay != 0D) { + output.WriteRawTag(113); + output.WriteDouble(TotalSquaredInterFrameDelay); + } + if (PauseCount != 0) { + output.WriteRawTag(120); + output.WriteUInt32(PauseCount); + } + if (TotalPauseDuration != 0D) { + output.WriteRawTag(129, 1); + output.WriteDouble(TotalPauseDuration); + } + if (FreezeCount != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(FreezeCount); + } + if (TotalFreezeDuration != 0D) { + output.WriteRawTag(145, 1); + output.WriteDouble(TotalFreezeDuration); + } + if (LastPacketReceivedTimestamp != 0D) { + output.WriteRawTag(153, 1); + output.WriteDouble(LastPacketReceivedTimestamp); + } + if (HeaderBytesReceived != 0UL) { + output.WriteRawTag(160, 1); + output.WriteUInt64(HeaderBytesReceived); + } + if (PacketsDiscarded != 0UL) { + output.WriteRawTag(168, 1); + output.WriteUInt64(PacketsDiscarded); + } + if (FecBytesReceived != 0UL) { + output.WriteRawTag(176, 1); + output.WriteUInt64(FecBytesReceived); + } + if (FecPacketsReceived != 0UL) { + output.WriteRawTag(184, 1); + output.WriteUInt64(FecPacketsReceived); + } + if (FecPacketsDiscarded != 0UL) { + output.WriteRawTag(192, 1); + output.WriteUInt64(FecPacketsDiscarded); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(200, 1); + output.WriteUInt64(BytesReceived); + } + if (NackCount != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(NackCount); + } + if (FirCount != 0) { + output.WriteRawTag(216, 1); + output.WriteUInt32(FirCount); + } + if (PliCount != 0) { + output.WriteRawTag(224, 1); + output.WriteUInt32(PliCount); + } + if (TotalProcessingDelay != 0D) { + output.WriteRawTag(233, 1); + output.WriteDouble(TotalProcessingDelay); + } + if (EstimatedPlayoutTimestamp != 0D) { + output.WriteRawTag(241, 1); + output.WriteDouble(EstimatedPlayoutTimestamp); + } + if (JitterBufferDelay != 0D) { + output.WriteRawTag(249, 1); + output.WriteDouble(JitterBufferDelay); + } + if (JitterBufferTargetDelay != 0D) { + output.WriteRawTag(129, 2); + output.WriteDouble(JitterBufferTargetDelay); + } + if (JitterBufferEmittedCount != 0UL) { + output.WriteRawTag(136, 2); + output.WriteUInt64(JitterBufferEmittedCount); + } + if (JitterBufferMinimumDelay != 0D) { + output.WriteRawTag(145, 2); + output.WriteDouble(JitterBufferMinimumDelay); + } + if (TotalSamplesReceived != 0UL) { + output.WriteRawTag(152, 2); + output.WriteUInt64(TotalSamplesReceived); + } + if (ConcealedSamples != 0UL) { + output.WriteRawTag(160, 2); + output.WriteUInt64(ConcealedSamples); + } + if (SilentConcealedSamples != 0UL) { + output.WriteRawTag(168, 2); + output.WriteUInt64(SilentConcealedSamples); + } + if (ConcealmentEvents != 0UL) { + output.WriteRawTag(176, 2); + output.WriteUInt64(ConcealmentEvents); + } + if (InsertedSamplesForDeceleration != 0UL) { + output.WriteRawTag(184, 2); + output.WriteUInt64(InsertedSamplesForDeceleration); + } + if (RemovedSamplesForAcceleration != 0UL) { + output.WriteRawTag(192, 2); + output.WriteUInt64(RemovedSamplesForAcceleration); + } + if (AudioLevel != 0D) { + output.WriteRawTag(201, 2); + output.WriteDouble(AudioLevel); + } + if (TotalAudioEnergy != 0D) { + output.WriteRawTag(209, 2); + output.WriteDouble(TotalAudioEnergy); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(217, 2); + output.WriteDouble(TotalSamplesDuration); + } + if (FramesReceived != 0UL) { + output.WriteRawTag(224, 2); + output.WriteUInt64(FramesReceived); + } + if (DecoderImplementation.Length != 0) { + output.WriteRawTag(234, 2); + output.WriteString(DecoderImplementation); + } + if (PlayoutId.Length != 0) { + output.WriteRawTag(242, 2); + output.WriteString(PlayoutId); + } + if (PowerEfficientDecoder != false) { + output.WriteRawTag(248, 2); + output.WriteBool(PowerEfficientDecoder); + } + if (FramesAssembledFromMultiplePackets != 0UL) { + output.WriteRawTag(128, 3); + output.WriteUInt64(FramesAssembledFromMultiplePackets); + } + if (TotalAssemblyTime != 0D) { + output.WriteRawTag(137, 3); + output.WriteDouble(TotalAssemblyTime); + } + if (RetransmittedPacketsReceived != 0UL) { + output.WriteRawTag(144, 3); + output.WriteUInt64(RetransmittedPacketsReceived); + } + if (RetransmittedBytesReceived != 0UL) { + output.WriteRawTag(152, 3); + output.WriteUInt64(RetransmittedBytesReceived); + } + if (RtxSsrc != 0) { + output.WriteRawTag(160, 3); + output.WriteUInt32(RtxSsrc); + } + if (FecSsrc != 0) { + output.WriteRawTag(168, 3); + output.WriteUInt32(FecSsrc); + } + 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 (TrackIdentifier.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackIdentifier); + } + if (Mid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); + } + if (RemoteId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteId); + } + if (FramesDecoded != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesDecoded); + } + if (KeyFramesDecoded != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KeyFramesDecoded); + } + if (FramesRendered != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesRendered); + } + if (FramesDropped != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesDropped); + } + if (FrameWidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameWidth); + } + if (FrameHeight != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameHeight); + } + if (FramesPerSecond != 0D) { + size += 1 + 8; + } + if (QpSum != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(QpSum); + } + if (TotalDecodeTime != 0D) { + size += 1 + 8; + } + if (TotalInterFrameDelay != 0D) { + size += 1 + 8; + } + if (TotalSquaredInterFrameDelay != 0D) { + size += 1 + 8; + } + if (PauseCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PauseCount); + } + if (TotalPauseDuration != 0D) { + size += 2 + 8; + } + if (FreezeCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FreezeCount); + } + if (TotalFreezeDuration != 0D) { + size += 2 + 8; + } + if (LastPacketReceivedTimestamp != 0D) { + size += 2 + 8; + } + if (HeaderBytesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(HeaderBytesReceived); + } + if (PacketsDiscarded != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(PacketsDiscarded); + } + if (FecBytesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecBytesReceived); + } + if (FecPacketsReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecPacketsReceived); + } + if (FecPacketsDiscarded != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecPacketsDiscarded); + } + if (BytesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); + } + if (NackCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(NackCount); + } + if (FirCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FirCount); + } + if (PliCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PliCount); + } + if (TotalProcessingDelay != 0D) { + size += 2 + 8; + } + if (EstimatedPlayoutTimestamp != 0D) { + size += 2 + 8; + } + if (JitterBufferDelay != 0D) { + size += 2 + 8; + } + if (JitterBufferTargetDelay != 0D) { + size += 2 + 8; + } + if (JitterBufferEmittedCount != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(JitterBufferEmittedCount); + } + if (JitterBufferMinimumDelay != 0D) { + size += 2 + 8; + } + if (TotalSamplesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesReceived); + } + if (ConcealedSamples != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConcealedSamples); + } + if (SilentConcealedSamples != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(SilentConcealedSamples); + } + if (ConcealmentEvents != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConcealmentEvents); + } + if (InsertedSamplesForDeceleration != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(InsertedSamplesForDeceleration); + } + if (RemovedSamplesForAcceleration != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RemovedSamplesForAcceleration); + } + if (AudioLevel != 0D) { + size += 2 + 8; + } + if (TotalAudioEnergy != 0D) { + size += 2 + 8; + } + if (TotalSamplesDuration != 0D) { + size += 2 + 8; + } + if (FramesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FramesReceived); + } + if (DecoderImplementation.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(DecoderImplementation); + } + if (PlayoutId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(PlayoutId); + } + if (PowerEfficientDecoder != false) { + size += 2 + 1; + } + if (FramesAssembledFromMultiplePackets != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FramesAssembledFromMultiplePackets); + } + if (TotalAssemblyTime != 0D) { + size += 2 + 8; + } + if (RetransmittedPacketsReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedPacketsReceived); + } + if (RetransmittedBytesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedBytesReceived); + } + if (RtxSsrc != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RtxSsrc); + } + if (FecSsrc != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FecSsrc); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(InboundRtpStreamStats other) { + if (other == null) { + return; + } + if (other.TrackIdentifier.Length != 0) { + TrackIdentifier = other.TrackIdentifier; + } + if (other.Mid.Length != 0) { + Mid = other.Mid; + } + if (other.RemoteId.Length != 0) { + RemoteId = other.RemoteId; + } + if (other.FramesDecoded != 0) { + FramesDecoded = other.FramesDecoded; + } + if (other.KeyFramesDecoded != 0) { + KeyFramesDecoded = other.KeyFramesDecoded; + } + if (other.FramesRendered != 0) { + FramesRendered = other.FramesRendered; + } + if (other.FramesDropped != 0) { + FramesDropped = other.FramesDropped; + } + if (other.FrameWidth != 0) { + FrameWidth = other.FrameWidth; + } + if (other.FrameHeight != 0) { + FrameHeight = other.FrameHeight; + } + if (other.FramesPerSecond != 0D) { + FramesPerSecond = other.FramesPerSecond; + } + if (other.QpSum != 0UL) { + QpSum = other.QpSum; + } + if (other.TotalDecodeTime != 0D) { + TotalDecodeTime = other.TotalDecodeTime; + } + if (other.TotalInterFrameDelay != 0D) { + TotalInterFrameDelay = other.TotalInterFrameDelay; + } + if (other.TotalSquaredInterFrameDelay != 0D) { + TotalSquaredInterFrameDelay = other.TotalSquaredInterFrameDelay; + } + if (other.PauseCount != 0) { + PauseCount = other.PauseCount; + } + if (other.TotalPauseDuration != 0D) { + TotalPauseDuration = other.TotalPauseDuration; + } + if (other.FreezeCount != 0) { + FreezeCount = other.FreezeCount; + } + if (other.TotalFreezeDuration != 0D) { + TotalFreezeDuration = other.TotalFreezeDuration; + } + if (other.LastPacketReceivedTimestamp != 0D) { + LastPacketReceivedTimestamp = other.LastPacketReceivedTimestamp; + } + if (other.HeaderBytesReceived != 0UL) { + HeaderBytesReceived = other.HeaderBytesReceived; + } + if (other.PacketsDiscarded != 0UL) { + PacketsDiscarded = other.PacketsDiscarded; + } + if (other.FecBytesReceived != 0UL) { + FecBytesReceived = other.FecBytesReceived; + } + if (other.FecPacketsReceived != 0UL) { + FecPacketsReceived = other.FecPacketsReceived; + } + if (other.FecPacketsDiscarded != 0UL) { + FecPacketsDiscarded = other.FecPacketsDiscarded; + } + if (other.BytesReceived != 0UL) { + BytesReceived = other.BytesReceived; + } + if (other.NackCount != 0) { + NackCount = other.NackCount; + } + if (other.FirCount != 0) { + FirCount = other.FirCount; + } + if (other.PliCount != 0) { + PliCount = other.PliCount; + } + if (other.TotalProcessingDelay != 0D) { + TotalProcessingDelay = other.TotalProcessingDelay; + } + if (other.EstimatedPlayoutTimestamp != 0D) { + EstimatedPlayoutTimestamp = other.EstimatedPlayoutTimestamp; + } + if (other.JitterBufferDelay != 0D) { + JitterBufferDelay = other.JitterBufferDelay; + } + if (other.JitterBufferTargetDelay != 0D) { + JitterBufferTargetDelay = other.JitterBufferTargetDelay; + } + if (other.JitterBufferEmittedCount != 0UL) { + JitterBufferEmittedCount = other.JitterBufferEmittedCount; + } + if (other.JitterBufferMinimumDelay != 0D) { + JitterBufferMinimumDelay = other.JitterBufferMinimumDelay; + } + if (other.TotalSamplesReceived != 0UL) { + TotalSamplesReceived = other.TotalSamplesReceived; + } + if (other.ConcealedSamples != 0UL) { + ConcealedSamples = other.ConcealedSamples; + } + if (other.SilentConcealedSamples != 0UL) { + SilentConcealedSamples = other.SilentConcealedSamples; + } + if (other.ConcealmentEvents != 0UL) { + ConcealmentEvents = other.ConcealmentEvents; + } + if (other.InsertedSamplesForDeceleration != 0UL) { + InsertedSamplesForDeceleration = other.InsertedSamplesForDeceleration; + } + if (other.RemovedSamplesForAcceleration != 0UL) { + RemovedSamplesForAcceleration = other.RemovedSamplesForAcceleration; + } + if (other.AudioLevel != 0D) { + AudioLevel = other.AudioLevel; + } + if (other.TotalAudioEnergy != 0D) { + TotalAudioEnergy = other.TotalAudioEnergy; + } + if (other.TotalSamplesDuration != 0D) { + TotalSamplesDuration = other.TotalSamplesDuration; + } + if (other.FramesReceived != 0UL) { + FramesReceived = other.FramesReceived; + } + if (other.DecoderImplementation.Length != 0) { + DecoderImplementation = other.DecoderImplementation; + } + if (other.PlayoutId.Length != 0) { + PlayoutId = other.PlayoutId; + } + if (other.PowerEfficientDecoder != false) { + PowerEfficientDecoder = other.PowerEfficientDecoder; + } + if (other.FramesAssembledFromMultiplePackets != 0UL) { + FramesAssembledFromMultiplePackets = other.FramesAssembledFromMultiplePackets; + } + if (other.TotalAssemblyTime != 0D) { + TotalAssemblyTime = other.TotalAssemblyTime; + } + if (other.RetransmittedPacketsReceived != 0UL) { + RetransmittedPacketsReceived = other.RetransmittedPacketsReceived; + } + if (other.RetransmittedBytesReceived != 0UL) { + RetransmittedBytesReceived = other.RetransmittedBytesReceived; + } + if (other.RtxSsrc != 0) { + RtxSsrc = other.RtxSsrc; + } + if (other.FecSsrc != 0) { + FecSsrc = other.FecSsrc; + } + _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: { + TrackIdentifier = input.ReadString(); + break; + } + case 18: { + Mid = input.ReadString(); + break; + } + case 26: { + RemoteId = input.ReadString(); + break; + } + case 32: { + FramesDecoded = input.ReadUInt32(); + break; + } + case 40: { + KeyFramesDecoded = input.ReadUInt32(); + break; + } + case 48: { + FramesRendered = input.ReadUInt32(); + break; + } + case 56: { + FramesDropped = input.ReadUInt32(); + break; + } + case 64: { + FrameWidth = input.ReadUInt32(); + break; + } + case 72: { + FrameHeight = input.ReadUInt32(); + break; + } + case 81: { + FramesPerSecond = input.ReadDouble(); + break; + } + case 88: { + QpSum = input.ReadUInt64(); + break; + } + case 97: { + TotalDecodeTime = input.ReadDouble(); + break; + } + case 105: { + TotalInterFrameDelay = input.ReadDouble(); + break; + } + case 113: { + TotalSquaredInterFrameDelay = input.ReadDouble(); + break; + } + case 120: { + PauseCount = input.ReadUInt32(); + break; + } + case 129: { + TotalPauseDuration = input.ReadDouble(); + break; + } + case 136: { + FreezeCount = input.ReadUInt32(); + break; + } + case 145: { + TotalFreezeDuration = input.ReadDouble(); + break; + } + case 153: { + LastPacketReceivedTimestamp = input.ReadDouble(); + break; + } + case 160: { + HeaderBytesReceived = input.ReadUInt64(); + break; + } + case 168: { + PacketsDiscarded = input.ReadUInt64(); + break; + } + case 176: { + FecBytesReceived = input.ReadUInt64(); + break; + } + case 184: { + FecPacketsReceived = input.ReadUInt64(); + break; + } + case 192: { + FecPacketsDiscarded = input.ReadUInt64(); + break; + } + case 200: { + BytesReceived = input.ReadUInt64(); + break; + } + case 208: { + NackCount = input.ReadUInt32(); + break; + } + case 216: { + FirCount = input.ReadUInt32(); + break; + } + case 224: { + PliCount = input.ReadUInt32(); + break; + } + case 233: { + TotalProcessingDelay = input.ReadDouble(); + break; + } + case 241: { + EstimatedPlayoutTimestamp = input.ReadDouble(); + break; + } + case 249: { + JitterBufferDelay = input.ReadDouble(); + break; + } + case 257: { + JitterBufferTargetDelay = input.ReadDouble(); + break; + } + case 264: { + JitterBufferEmittedCount = input.ReadUInt64(); + break; + } + case 273: { + JitterBufferMinimumDelay = input.ReadDouble(); + break; + } + case 280: { + TotalSamplesReceived = input.ReadUInt64(); + break; + } + case 288: { + ConcealedSamples = input.ReadUInt64(); + break; + } + case 296: { + SilentConcealedSamples = input.ReadUInt64(); + break; + } + case 304: { + ConcealmentEvents = input.ReadUInt64(); + break; + } + case 312: { + InsertedSamplesForDeceleration = input.ReadUInt64(); + break; + } + case 320: { + RemovedSamplesForAcceleration = input.ReadUInt64(); + break; + } + case 329: { + AudioLevel = input.ReadDouble(); + break; + } + case 337: { + TotalAudioEnergy = input.ReadDouble(); + break; + } + case 345: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 352: { + FramesReceived = input.ReadUInt64(); + break; + } + case 362: { + DecoderImplementation = input.ReadString(); + break; + } + case 370: { + PlayoutId = input.ReadString(); + break; + } + case 376: { + PowerEfficientDecoder = input.ReadBool(); + break; + } + case 384: { + FramesAssembledFromMultiplePackets = input.ReadUInt64(); + break; + } + case 393: { + TotalAssemblyTime = input.ReadDouble(); + break; + } + case 400: { + RetransmittedPacketsReceived = input.ReadUInt64(); + break; + } + case 408: { + RetransmittedBytesReceived = input.ReadUInt64(); + break; + } + case 416: { + RtxSsrc = input.ReadUInt32(); + break; + } + case 424: { + FecSsrc = 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 10: { + TrackIdentifier = input.ReadString(); + break; + } + case 18: { + Mid = input.ReadString(); + break; + } + case 26: { + RemoteId = input.ReadString(); + break; + } + case 32: { + FramesDecoded = input.ReadUInt32(); + break; + } + case 40: { + KeyFramesDecoded = input.ReadUInt32(); + break; + } + case 48: { + FramesRendered = input.ReadUInt32(); + break; + } + case 56: { + FramesDropped = input.ReadUInt32(); + break; + } + case 64: { + FrameWidth = input.ReadUInt32(); + break; + } + case 72: { + FrameHeight = input.ReadUInt32(); + break; + } + case 81: { + FramesPerSecond = input.ReadDouble(); + break; + } + case 88: { + QpSum = input.ReadUInt64(); + break; + } + case 97: { + TotalDecodeTime = input.ReadDouble(); + break; + } + case 105: { + TotalInterFrameDelay = input.ReadDouble(); + break; + } + case 113: { + TotalSquaredInterFrameDelay = input.ReadDouble(); + break; + } + case 120: { + PauseCount = input.ReadUInt32(); + break; + } + case 129: { + TotalPauseDuration = input.ReadDouble(); + break; + } + case 136: { + FreezeCount = input.ReadUInt32(); + break; + } + case 145: { + TotalFreezeDuration = input.ReadDouble(); + break; + } + case 153: { + LastPacketReceivedTimestamp = input.ReadDouble(); + break; + } + case 160: { + HeaderBytesReceived = input.ReadUInt64(); + break; + } + case 168: { + PacketsDiscarded = input.ReadUInt64(); + break; + } + case 176: { + FecBytesReceived = input.ReadUInt64(); + break; + } + case 184: { + FecPacketsReceived = input.ReadUInt64(); + break; + } + case 192: { + FecPacketsDiscarded = input.ReadUInt64(); + break; + } + case 200: { + BytesReceived = input.ReadUInt64(); + break; + } + case 208: { + NackCount = input.ReadUInt32(); + break; + } + case 216: { + FirCount = input.ReadUInt32(); + break; + } + case 224: { + PliCount = input.ReadUInt32(); + break; + } + case 233: { + TotalProcessingDelay = input.ReadDouble(); + break; + } + case 241: { + EstimatedPlayoutTimestamp = input.ReadDouble(); + break; + } + case 249: { + JitterBufferDelay = input.ReadDouble(); + break; + } + case 257: { + JitterBufferTargetDelay = input.ReadDouble(); + break; + } + case 264: { + JitterBufferEmittedCount = input.ReadUInt64(); + break; + } + case 273: { + JitterBufferMinimumDelay = input.ReadDouble(); + break; + } + case 280: { + TotalSamplesReceived = input.ReadUInt64(); + break; + } + case 288: { + ConcealedSamples = input.ReadUInt64(); + break; + } + case 296: { + SilentConcealedSamples = input.ReadUInt64(); + break; + } + case 304: { + ConcealmentEvents = input.ReadUInt64(); + break; + } + case 312: { + InsertedSamplesForDeceleration = input.ReadUInt64(); + break; + } + case 320: { + RemovedSamplesForAcceleration = input.ReadUInt64(); + break; + } + case 329: { + AudioLevel = input.ReadDouble(); + break; + } + case 337: { + TotalAudioEnergy = input.ReadDouble(); + break; + } + case 345: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 352: { + FramesReceived = input.ReadUInt64(); + break; + } + case 362: { + DecoderImplementation = input.ReadString(); + break; + } + case 370: { + PlayoutId = input.ReadString(); + break; + } + case 376: { + PowerEfficientDecoder = input.ReadBool(); + break; + } + case 384: { + FramesAssembledFromMultiplePackets = input.ReadUInt64(); + break; + } + case 393: { + TotalAssemblyTime = input.ReadDouble(); + break; + } + case 400: { + RetransmittedPacketsReceived = input.ReadUInt64(); + break; + } + case 408: { + RetransmittedBytesReceived = input.ReadUInt64(); + break; + } + case 416: { + RtxSsrc = input.ReadUInt32(); + break; + } + case 424: { + FecSsrc = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SentRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SentRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[6]; } + } + + [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 SentRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SentRtpStreamStats(SentRtpStreamStats other) : this() { + packetsSent_ = other.packetsSent_; + bytesSent_ = other.bytesSent_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SentRtpStreamStats Clone() { + return new SentRtpStreamStats(this); + } + + /// Field number for the "packets_sent" field. + public const int PacketsSentFieldNumber = 1; + private ulong packetsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsSent { + get { return packetsSent_; } + set { + packetsSent_ = value; + } + } + + /// Field number for the "bytes_sent" field. + public const int BytesSentFieldNumber = 2; + private ulong bytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesSent { + get { return bytesSent_; } + set { + bytesSent_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SentRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SentRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PacketsSent != other.PacketsSent) return false; + if (BytesSent != other.BytesSent) 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 (PacketsSent != 0UL) hash ^= PacketsSent.GetHashCode(); + if (BytesSent != 0UL) hash ^= BytesSent.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 (PacketsSent != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsSent); + } + if (BytesSent != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(BytesSent); + } + 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 (PacketsSent != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsSent); + } + if (BytesSent != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(BytesSent); + } + 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 (PacketsSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); + } + if (BytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SentRtpStreamStats other) { + if (other == null) { + return; + } + if (other.PacketsSent != 0UL) { + PacketsSent = other.PacketsSent; + } + if (other.BytesSent != 0UL) { + BytesSent = other.BytesSent; + } + _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: { + PacketsSent = input.ReadUInt64(); + break; + } + case 16: { + BytesSent = 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: { + PacketsSent = input.ReadUInt64(); + break; + } + case 16: { + BytesSent = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OutboundRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutboundRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[7]; } + } + + [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 OutboundRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutboundRtpStreamStats(OutboundRtpStreamStats other) : this() { + mid_ = other.mid_; + mediaSourceId_ = other.mediaSourceId_; + remoteId_ = other.remoteId_; + rid_ = other.rid_; + headerBytesSent_ = other.headerBytesSent_; + retransmittedPacketsSent_ = other.retransmittedPacketsSent_; + retransmittedBytesSent_ = other.retransmittedBytesSent_; + rtxSsrc_ = other.rtxSsrc_; + targetBitrate_ = other.targetBitrate_; + totalEncodedBytesTarget_ = other.totalEncodedBytesTarget_; + frameWidth_ = other.frameWidth_; + frameHeight_ = other.frameHeight_; + framesPerSecond_ = other.framesPerSecond_; + framesSent_ = other.framesSent_; + hugeFramesSent_ = other.hugeFramesSent_; + framesEncoded_ = other.framesEncoded_; + keyFramesEncoded_ = other.keyFramesEncoded_; + qpSum_ = other.qpSum_; + totalEncodeTime_ = other.totalEncodeTime_; + totalPacketSendDelay_ = other.totalPacketSendDelay_; + qualityLimitationReason_ = other.qualityLimitationReason_; + qualityLimitationDurations_ = other.qualityLimitationDurations_.Clone(); + qualityLimitationResolutionChanges_ = other.qualityLimitationResolutionChanges_; + nackCount_ = other.nackCount_; + firCount_ = other.firCount_; + pliCount_ = other.pliCount_; + encoderImplementation_ = other.encoderImplementation_; + powerEfficientEncoder_ = other.powerEfficientEncoder_; + active_ = other.active_; + scalibilityMode_ = other.scalibilityMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OutboundRtpStreamStats Clone() { + return new OutboundRtpStreamStats(this); + } + + /// Field number for the "mid" field. + public const int MidFieldNumber = 1; + private string mid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mid { + get { return mid_; } + set { + mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "media_source_id" field. + public const int MediaSourceIdFieldNumber = 2; + private string mediaSourceId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MediaSourceId { + get { return mediaSourceId_; } + set { + mediaSourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_id" field. + public const int RemoteIdFieldNumber = 3; + private string remoteId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteId { + get { return remoteId_; } + set { + remoteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rid" field. + public const int RidFieldNumber = 4; + private string rid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Rid { + get { return rid_; } + set { + rid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "header_bytes_sent" field. + public const int HeaderBytesSentFieldNumber = 5; + private ulong headerBytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong HeaderBytesSent { + get { return headerBytesSent_; } + set { + headerBytesSent_ = value; + } + } + + /// Field number for the "retransmitted_packets_sent" field. + public const int RetransmittedPacketsSentFieldNumber = 6; + private ulong retransmittedPacketsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RetransmittedPacketsSent { + get { return retransmittedPacketsSent_; } + set { + retransmittedPacketsSent_ = value; + } + } + + /// Field number for the "retransmitted_bytes_sent" field. + public const int RetransmittedBytesSentFieldNumber = 7; + private ulong retransmittedBytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RetransmittedBytesSent { + get { return retransmittedBytesSent_; } + set { + retransmittedBytesSent_ = value; + } + } + + /// Field number for the "rtx_ssrc" field. + public const int RtxSsrcFieldNumber = 8; + private uint rtxSsrc_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint RtxSsrc { + get { return rtxSsrc_; } + set { + rtxSsrc_ = value; + } + } + + /// Field number for the "target_bitrate" field. + public const int TargetBitrateFieldNumber = 9; + private double targetBitrate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TargetBitrate { + get { return targetBitrate_; } + set { + targetBitrate_ = value; + } + } + + /// Field number for the "total_encoded_bytes_target" field. + public const int TotalEncodedBytesTargetFieldNumber = 10; + private ulong totalEncodedBytesTarget_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TotalEncodedBytesTarget { + get { return totalEncodedBytesTarget_; } + set { + totalEncodedBytesTarget_ = value; + } + } + + /// Field number for the "frame_width" field. + public const int FrameWidthFieldNumber = 11; + private uint frameWidth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameWidth { + get { return frameWidth_; } + set { + frameWidth_ = value; + } + } + + /// Field number for the "frame_height" field. + public const int FrameHeightFieldNumber = 12; + private uint frameHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FrameHeight { + get { return frameHeight_; } + set { + frameHeight_ = value; + } + } + + /// Field number for the "frames_per_second" field. + public const int FramesPerSecondFieldNumber = 13; + private double framesPerSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double FramesPerSecond { + get { return framesPerSecond_; } + set { + framesPerSecond_ = value; + } + } + + /// Field number for the "frames_sent" field. + public const int FramesSentFieldNumber = 14; + private uint framesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FramesSent { + get { return framesSent_; } + set { + framesSent_ = value; + } + } + + /// Field number for the "huge_frames_sent" field. + public const int HugeFramesSentFieldNumber = 15; + private uint hugeFramesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint HugeFramesSent { + get { return hugeFramesSent_; } + set { + hugeFramesSent_ = value; + } + } + + /// Field number for the "frames_encoded" field. + public const int FramesEncodedFieldNumber = 16; + private uint framesEncoded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FramesEncoded { + get { return framesEncoded_; } + set { + framesEncoded_ = value; + } + } + + /// Field number for the "key_frames_encoded" field. + public const int KeyFramesEncodedFieldNumber = 17; + private uint keyFramesEncoded_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint KeyFramesEncoded { + get { return keyFramesEncoded_; } + set { + keyFramesEncoded_ = value; + } + } + + /// Field number for the "qp_sum" field. + public const int QpSumFieldNumber = 18; + private ulong qpSum_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong QpSum { + get { return qpSum_; } + set { + qpSum_ = value; + } + } + + /// Field number for the "total_encode_time" field. + public const int TotalEncodeTimeFieldNumber = 19; + private double totalEncodeTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalEncodeTime { + get { return totalEncodeTime_; } + set { + totalEncodeTime_ = value; + } + } + + /// Field number for the "total_packet_send_delay" field. + public const int TotalPacketSendDelayFieldNumber = 20; + private double totalPacketSendDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalPacketSendDelay { + get { return totalPacketSendDelay_; } + set { + totalPacketSendDelay_ = value; + } + } + + /// Field number for the "quality_limitation_reason" field. + public const int QualityLimitationReasonFieldNumber = 21; + private global::LiveKit.Proto.QualityLimitationReason qualityLimitationReason_ = global::LiveKit.Proto.QualityLimitationReason.LimitationNone; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.QualityLimitationReason QualityLimitationReason { + get { return qualityLimitationReason_; } + set { + qualityLimitationReason_ = value; + } + } + + /// Field number for the "quality_limitation_durations" field. + public const int QualityLimitationDurationsFieldNumber = 22; + private static readonly pbc::MapField.Codec _map_qualityLimitationDurations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForDouble(17, 0D), 178); + private readonly pbc::MapField qualityLimitationDurations_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField QualityLimitationDurations { + get { return qualityLimitationDurations_; } + } + + /// Field number for the "quality_limitation_resolution_changes" field. + public const int QualityLimitationResolutionChangesFieldNumber = 23; + private uint qualityLimitationResolutionChanges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint QualityLimitationResolutionChanges { + get { return qualityLimitationResolutionChanges_; } + set { + qualityLimitationResolutionChanges_ = value; + } + } + + /// Field number for the "nack_count" field. + public const int NackCountFieldNumber = 24; + private uint nackCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NackCount { + get { return nackCount_; } + set { + nackCount_ = value; + } + } + + /// Field number for the "fir_count" field. + public const int FirCountFieldNumber = 25; + private uint firCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint FirCount { + get { return firCount_; } + set { + firCount_ = value; + } + } + + /// Field number for the "pli_count" field. + public const int PliCountFieldNumber = 26; + private uint pliCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PliCount { + get { return pliCount_; } + set { + pliCount_ = value; + } + } + + /// Field number for the "encoder_implementation" field. + public const int EncoderImplementationFieldNumber = 27; + private string encoderImplementation_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EncoderImplementation { + get { return encoderImplementation_; } + set { + encoderImplementation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "power_efficient_encoder" field. + public const int PowerEfficientEncoderFieldNumber = 28; + private bool powerEfficientEncoder_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PowerEfficientEncoder { + get { return powerEfficientEncoder_; } + set { + powerEfficientEncoder_ = value; + } + } + + /// Field number for the "active" field. + public const int ActiveFieldNumber = 29; + private bool active_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Active { + get { return active_; } + set { + active_ = value; + } + } + + /// Field number for the "scalibility_mode" field. + public const int ScalibilityModeFieldNumber = 30; + private string scalibilityMode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ScalibilityMode { + get { return scalibilityMode_; } + set { + scalibilityMode_ = 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 OutboundRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OutboundRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Mid != other.Mid) return false; + if (MediaSourceId != other.MediaSourceId) return false; + if (RemoteId != other.RemoteId) return false; + if (Rid != other.Rid) return false; + if (HeaderBytesSent != other.HeaderBytesSent) return false; + if (RetransmittedPacketsSent != other.RetransmittedPacketsSent) return false; + if (RetransmittedBytesSent != other.RetransmittedBytesSent) return false; + if (RtxSsrc != other.RtxSsrc) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetBitrate, other.TargetBitrate)) return false; + if (TotalEncodedBytesTarget != other.TotalEncodedBytesTarget) return false; + if (FrameWidth != other.FrameWidth) return false; + if (FrameHeight != other.FrameHeight) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FramesPerSecond, other.FramesPerSecond)) return false; + if (FramesSent != other.FramesSent) return false; + if (HugeFramesSent != other.HugeFramesSent) return false; + if (FramesEncoded != other.FramesEncoded) return false; + if (KeyFramesEncoded != other.KeyFramesEncoded) return false; + if (QpSum != other.QpSum) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalEncodeTime, other.TotalEncodeTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalPacketSendDelay, other.TotalPacketSendDelay)) return false; + if (QualityLimitationReason != other.QualityLimitationReason) return false; + if (!QualityLimitationDurations.Equals(other.QualityLimitationDurations)) return false; + if (QualityLimitationResolutionChanges != other.QualityLimitationResolutionChanges) return false; + if (NackCount != other.NackCount) return false; + if (FirCount != other.FirCount) return false; + if (PliCount != other.PliCount) return false; + if (EncoderImplementation != other.EncoderImplementation) return false; + if (PowerEfficientEncoder != other.PowerEfficientEncoder) return false; + if (Active != other.Active) return false; + if (ScalibilityMode != other.ScalibilityMode) 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 (Mid.Length != 0) hash ^= Mid.GetHashCode(); + if (MediaSourceId.Length != 0) hash ^= MediaSourceId.GetHashCode(); + if (RemoteId.Length != 0) hash ^= RemoteId.GetHashCode(); + if (Rid.Length != 0) hash ^= Rid.GetHashCode(); + if (HeaderBytesSent != 0UL) hash ^= HeaderBytesSent.GetHashCode(); + if (RetransmittedPacketsSent != 0UL) hash ^= RetransmittedPacketsSent.GetHashCode(); + if (RetransmittedBytesSent != 0UL) hash ^= RetransmittedBytesSent.GetHashCode(); + if (RtxSsrc != 0) hash ^= RtxSsrc.GetHashCode(); + if (TargetBitrate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetBitrate); + if (TotalEncodedBytesTarget != 0UL) hash ^= TotalEncodedBytesTarget.GetHashCode(); + if (FrameWidth != 0) hash ^= FrameWidth.GetHashCode(); + if (FrameHeight != 0) hash ^= FrameHeight.GetHashCode(); + if (FramesPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); + if (FramesSent != 0) hash ^= FramesSent.GetHashCode(); + if (HugeFramesSent != 0) hash ^= HugeFramesSent.GetHashCode(); + if (FramesEncoded != 0) hash ^= FramesEncoded.GetHashCode(); + if (KeyFramesEncoded != 0) hash ^= KeyFramesEncoded.GetHashCode(); + if (QpSum != 0UL) hash ^= QpSum.GetHashCode(); + if (TotalEncodeTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalEncodeTime); + if (TotalPacketSendDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPacketSendDelay); + if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) hash ^= QualityLimitationReason.GetHashCode(); + hash ^= QualityLimitationDurations.GetHashCode(); + if (QualityLimitationResolutionChanges != 0) hash ^= QualityLimitationResolutionChanges.GetHashCode(); + if (NackCount != 0) hash ^= NackCount.GetHashCode(); + if (FirCount != 0) hash ^= FirCount.GetHashCode(); + if (PliCount != 0) hash ^= PliCount.GetHashCode(); + if (EncoderImplementation.Length != 0) hash ^= EncoderImplementation.GetHashCode(); + if (PowerEfficientEncoder != false) hash ^= PowerEfficientEncoder.GetHashCode(); + if (Active != false) hash ^= Active.GetHashCode(); + if (ScalibilityMode.Length != 0) hash ^= ScalibilityMode.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 (Mid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Mid); + } + if (MediaSourceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MediaSourceId); + } + if (RemoteId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteId); + } + if (Rid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Rid); + } + if (HeaderBytesSent != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(HeaderBytesSent); + } + if (RetransmittedPacketsSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(RetransmittedPacketsSent); + } + if (RetransmittedBytesSent != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(RetransmittedBytesSent); + } + if (RtxSsrc != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RtxSsrc); + } + if (TargetBitrate != 0D) { + output.WriteRawTag(73); + output.WriteDouble(TargetBitrate); + } + if (TotalEncodedBytesTarget != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(TotalEncodedBytesTarget); + } + if (FrameWidth != 0) { + output.WriteRawTag(88); + output.WriteUInt32(FrameWidth); + } + if (FrameHeight != 0) { + output.WriteRawTag(96); + output.WriteUInt32(FrameHeight); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(105); + output.WriteDouble(FramesPerSecond); + } + if (FramesSent != 0) { + output.WriteRawTag(112); + output.WriteUInt32(FramesSent); + } + if (HugeFramesSent != 0) { + output.WriteRawTag(120); + output.WriteUInt32(HugeFramesSent); + } + if (FramesEncoded != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(FramesEncoded); + } + if (KeyFramesEncoded != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(KeyFramesEncoded); + } + if (QpSum != 0UL) { + output.WriteRawTag(144, 1); + output.WriteUInt64(QpSum); + } + if (TotalEncodeTime != 0D) { + output.WriteRawTag(153, 1); + output.WriteDouble(TotalEncodeTime); + } + if (TotalPacketSendDelay != 0D) { + output.WriteRawTag(161, 1); + output.WriteDouble(TotalPacketSendDelay); + } + if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + output.WriteRawTag(168, 1); + output.WriteEnum((int) QualityLimitationReason); + } + qualityLimitationDurations_.WriteTo(output, _map_qualityLimitationDurations_codec); + if (QualityLimitationResolutionChanges != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(QualityLimitationResolutionChanges); + } + if (NackCount != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(NackCount); + } + if (FirCount != 0) { + output.WriteRawTag(200, 1); + output.WriteUInt32(FirCount); + } + if (PliCount != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(PliCount); + } + if (EncoderImplementation.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(EncoderImplementation); + } + if (PowerEfficientEncoder != false) { + output.WriteRawTag(224, 1); + output.WriteBool(PowerEfficientEncoder); + } + if (Active != false) { + output.WriteRawTag(232, 1); + output.WriteBool(Active); + } + if (ScalibilityMode.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(ScalibilityMode); + } + 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 (Mid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Mid); + } + if (MediaSourceId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MediaSourceId); + } + if (RemoteId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteId); + } + if (Rid.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Rid); + } + if (HeaderBytesSent != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(HeaderBytesSent); + } + if (RetransmittedPacketsSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(RetransmittedPacketsSent); + } + if (RetransmittedBytesSent != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(RetransmittedBytesSent); + } + if (RtxSsrc != 0) { + output.WriteRawTag(64); + output.WriteUInt32(RtxSsrc); + } + if (TargetBitrate != 0D) { + output.WriteRawTag(73); + output.WriteDouble(TargetBitrate); + } + if (TotalEncodedBytesTarget != 0UL) { + output.WriteRawTag(80); + output.WriteUInt64(TotalEncodedBytesTarget); + } + if (FrameWidth != 0) { + output.WriteRawTag(88); + output.WriteUInt32(FrameWidth); + } + if (FrameHeight != 0) { + output.WriteRawTag(96); + output.WriteUInt32(FrameHeight); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(105); + output.WriteDouble(FramesPerSecond); + } + if (FramesSent != 0) { + output.WriteRawTag(112); + output.WriteUInt32(FramesSent); + } + if (HugeFramesSent != 0) { + output.WriteRawTag(120); + output.WriteUInt32(HugeFramesSent); + } + if (FramesEncoded != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(FramesEncoded); + } + if (KeyFramesEncoded != 0) { + output.WriteRawTag(136, 1); + output.WriteUInt32(KeyFramesEncoded); + } + if (QpSum != 0UL) { + output.WriteRawTag(144, 1); + output.WriteUInt64(QpSum); + } + if (TotalEncodeTime != 0D) { + output.WriteRawTag(153, 1); + output.WriteDouble(TotalEncodeTime); + } + if (TotalPacketSendDelay != 0D) { + output.WriteRawTag(161, 1); + output.WriteDouble(TotalPacketSendDelay); + } + if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + output.WriteRawTag(168, 1); + output.WriteEnum((int) QualityLimitationReason); + } + qualityLimitationDurations_.WriteTo(ref output, _map_qualityLimitationDurations_codec); + if (QualityLimitationResolutionChanges != 0) { + output.WriteRawTag(184, 1); + output.WriteUInt32(QualityLimitationResolutionChanges); + } + if (NackCount != 0) { + output.WriteRawTag(192, 1); + output.WriteUInt32(NackCount); + } + if (FirCount != 0) { + output.WriteRawTag(200, 1); + output.WriteUInt32(FirCount); + } + if (PliCount != 0) { + output.WriteRawTag(208, 1); + output.WriteUInt32(PliCount); + } + if (EncoderImplementation.Length != 0) { + output.WriteRawTag(218, 1); + output.WriteString(EncoderImplementation); + } + if (PowerEfficientEncoder != false) { + output.WriteRawTag(224, 1); + output.WriteBool(PowerEfficientEncoder); + } + if (Active != false) { + output.WriteRawTag(232, 1); + output.WriteBool(Active); + } + if (ScalibilityMode.Length != 0) { + output.WriteRawTag(242, 1); + output.WriteString(ScalibilityMode); + } + 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 (Mid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); + } + if (MediaSourceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MediaSourceId); + } + if (RemoteId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteId); + } + if (Rid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Rid); + } + if (HeaderBytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(HeaderBytesSent); + } + if (RetransmittedPacketsSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedPacketsSent); + } + if (RetransmittedBytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedBytesSent); + } + if (RtxSsrc != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RtxSsrc); + } + if (TargetBitrate != 0D) { + size += 1 + 8; + } + if (TotalEncodedBytesTarget != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalEncodedBytesTarget); + } + if (FrameWidth != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameWidth); + } + if (FrameHeight != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameHeight); + } + if (FramesPerSecond != 0D) { + size += 1 + 8; + } + if (FramesSent != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesSent); + } + if (HugeFramesSent != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HugeFramesSent); + } + if (FramesEncoded != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FramesEncoded); + } + if (KeyFramesEncoded != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(KeyFramesEncoded); + } + if (QpSum != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(QpSum); + } + if (TotalEncodeTime != 0D) { + size += 2 + 8; + } + if (TotalPacketSendDelay != 0D) { + size += 2 + 8; + } + if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) QualityLimitationReason); + } + size += qualityLimitationDurations_.CalculateSize(_map_qualityLimitationDurations_codec); + if (QualityLimitationResolutionChanges != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(QualityLimitationResolutionChanges); + } + if (NackCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(NackCount); + } + if (FirCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FirCount); + } + if (PliCount != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PliCount); + } + if (EncoderImplementation.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(EncoderImplementation); + } + if (PowerEfficientEncoder != false) { + size += 2 + 1; + } + if (Active != false) { + size += 2 + 1; + } + if (ScalibilityMode.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ScalibilityMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OutboundRtpStreamStats other) { + if (other == null) { + return; + } + if (other.Mid.Length != 0) { + Mid = other.Mid; + } + if (other.MediaSourceId.Length != 0) { + MediaSourceId = other.MediaSourceId; + } + if (other.RemoteId.Length != 0) { + RemoteId = other.RemoteId; + } + if (other.Rid.Length != 0) { + Rid = other.Rid; + } + if (other.HeaderBytesSent != 0UL) { + HeaderBytesSent = other.HeaderBytesSent; + } + if (other.RetransmittedPacketsSent != 0UL) { + RetransmittedPacketsSent = other.RetransmittedPacketsSent; + } + if (other.RetransmittedBytesSent != 0UL) { + RetransmittedBytesSent = other.RetransmittedBytesSent; + } + if (other.RtxSsrc != 0) { + RtxSsrc = other.RtxSsrc; + } + if (other.TargetBitrate != 0D) { + TargetBitrate = other.TargetBitrate; + } + if (other.TotalEncodedBytesTarget != 0UL) { + TotalEncodedBytesTarget = other.TotalEncodedBytesTarget; + } + if (other.FrameWidth != 0) { + FrameWidth = other.FrameWidth; + } + if (other.FrameHeight != 0) { + FrameHeight = other.FrameHeight; + } + if (other.FramesPerSecond != 0D) { + FramesPerSecond = other.FramesPerSecond; + } + if (other.FramesSent != 0) { + FramesSent = other.FramesSent; + } + if (other.HugeFramesSent != 0) { + HugeFramesSent = other.HugeFramesSent; + } + if (other.FramesEncoded != 0) { + FramesEncoded = other.FramesEncoded; + } + if (other.KeyFramesEncoded != 0) { + KeyFramesEncoded = other.KeyFramesEncoded; + } + if (other.QpSum != 0UL) { + QpSum = other.QpSum; + } + if (other.TotalEncodeTime != 0D) { + TotalEncodeTime = other.TotalEncodeTime; + } + if (other.TotalPacketSendDelay != 0D) { + TotalPacketSendDelay = other.TotalPacketSendDelay; + } + if (other.QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + QualityLimitationReason = other.QualityLimitationReason; + } + //qualityLimitationDurations_.MergeFrom(other.qualityLimitationDurations_); + foreach (var pair in other.qualityLimitationDurations_) + { + qualityLimitationDurations_[pair.Key] = pair.Value; + } + if (other.QualityLimitationResolutionChanges != 0) { + QualityLimitationResolutionChanges = other.QualityLimitationResolutionChanges; + } + if (other.NackCount != 0) { + NackCount = other.NackCount; + } + if (other.FirCount != 0) { + FirCount = other.FirCount; + } + if (other.PliCount != 0) { + PliCount = other.PliCount; + } + if (other.EncoderImplementation.Length != 0) { + EncoderImplementation = other.EncoderImplementation; + } + if (other.PowerEfficientEncoder != false) { + PowerEfficientEncoder = other.PowerEfficientEncoder; + } + if (other.Active != false) { + Active = other.Active; + } + if (other.ScalibilityMode.Length != 0) { + ScalibilityMode = other.ScalibilityMode; + } + _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: { + Mid = input.ReadString(); + break; + } + case 18: { + MediaSourceId = input.ReadString(); + break; + } + case 26: { + RemoteId = input.ReadString(); + break; + } + case 34: { + Rid = input.ReadString(); + break; + } + case 40: { + HeaderBytesSent = input.ReadUInt64(); + break; + } + case 48: { + RetransmittedPacketsSent = input.ReadUInt64(); + break; + } + case 56: { + RetransmittedBytesSent = input.ReadUInt64(); + break; + } + case 64: { + RtxSsrc = input.ReadUInt32(); + break; + } + case 73: { + TargetBitrate = input.ReadDouble(); + break; + } + case 80: { + TotalEncodedBytesTarget = input.ReadUInt64(); + break; + } + case 88: { + FrameWidth = input.ReadUInt32(); + break; + } + case 96: { + FrameHeight = input.ReadUInt32(); + break; + } + case 105: { + FramesPerSecond = input.ReadDouble(); + break; + } + case 112: { + FramesSent = input.ReadUInt32(); + break; + } + case 120: { + HugeFramesSent = input.ReadUInt32(); + break; + } + case 128: { + FramesEncoded = input.ReadUInt32(); + break; + } + case 136: { + KeyFramesEncoded = input.ReadUInt32(); + break; + } + case 144: { + QpSum = input.ReadUInt64(); + break; + } + case 153: { + TotalEncodeTime = input.ReadDouble(); + break; + } + case 161: { + TotalPacketSendDelay = input.ReadDouble(); + break; + } + case 168: { + QualityLimitationReason = (global::LiveKit.Proto.QualityLimitationReason) input.ReadEnum(); + break; + } + case 178: { + qualityLimitationDurations_.AddEntriesFrom(input, _map_qualityLimitationDurations_codec); + break; + } + case 184: { + QualityLimitationResolutionChanges = input.ReadUInt32(); + break; + } + case 192: { + NackCount = input.ReadUInt32(); + break; + } + case 200: { + FirCount = input.ReadUInt32(); + break; + } + case 208: { + PliCount = input.ReadUInt32(); + break; + } + case 218: { + EncoderImplementation = input.ReadString(); + break; + } + case 224: { + PowerEfficientEncoder = input.ReadBool(); + break; + } + case 232: { + Active = input.ReadBool(); + break; + } + case 242: { + ScalibilityMode = 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: { + Mid = input.ReadString(); + break; + } + case 18: { + MediaSourceId = input.ReadString(); + break; + } + case 26: { + RemoteId = input.ReadString(); + break; + } + case 34: { + Rid = input.ReadString(); + break; + } + case 40: { + HeaderBytesSent = input.ReadUInt64(); + break; + } + case 48: { + RetransmittedPacketsSent = input.ReadUInt64(); + break; + } + case 56: { + RetransmittedBytesSent = input.ReadUInt64(); + break; + } + case 64: { + RtxSsrc = input.ReadUInt32(); + break; + } + case 73: { + TargetBitrate = input.ReadDouble(); + break; + } + case 80: { + TotalEncodedBytesTarget = input.ReadUInt64(); + break; + } + case 88: { + FrameWidth = input.ReadUInt32(); + break; + } + case 96: { + FrameHeight = input.ReadUInt32(); + break; + } + case 105: { + FramesPerSecond = input.ReadDouble(); + break; + } + case 112: { + FramesSent = input.ReadUInt32(); + break; + } + case 120: { + HugeFramesSent = input.ReadUInt32(); + break; + } + case 128: { + FramesEncoded = input.ReadUInt32(); + break; + } + case 136: { + KeyFramesEncoded = input.ReadUInt32(); + break; + } + case 144: { + QpSum = input.ReadUInt64(); + break; + } + case 153: { + TotalEncodeTime = input.ReadDouble(); + break; + } + case 161: { + TotalPacketSendDelay = input.ReadDouble(); + break; + } + case 168: { + QualityLimitationReason = (global::LiveKit.Proto.QualityLimitationReason) input.ReadEnum(); + break; + } + case 178: { + qualityLimitationDurations_.AddEntriesFrom(ref input, _map_qualityLimitationDurations_codec); + break; + } + case 184: { + QualityLimitationResolutionChanges = input.ReadUInt32(); + break; + } + case 192: { + NackCount = input.ReadUInt32(); + break; + } + case 200: { + FirCount = input.ReadUInt32(); + break; + } + case 208: { + PliCount = input.ReadUInt32(); + break; + } + case 218: { + EncoderImplementation = input.ReadString(); + break; + } + case 224: { + PowerEfficientEncoder = input.ReadBool(); + break; + } + case 232: { + Active = input.ReadBool(); + break; + } + case 242: { + ScalibilityMode = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoteInboundRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteInboundRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[8]; } + } + + [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 RemoteInboundRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteInboundRtpStreamStats(RemoteInboundRtpStreamStats other) : this() { + localId_ = other.localId_; + roundTripTime_ = other.roundTripTime_; + totalRoundTripTime_ = other.totalRoundTripTime_; + fractionLost_ = other.fractionLost_; + roundTripTimeMeasurements_ = other.roundTripTimeMeasurements_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteInboundRtpStreamStats Clone() { + return new RemoteInboundRtpStreamStats(this); + } + + /// Field number for the "local_id" field. + public const int LocalIdFieldNumber = 1; + private string localId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocalId { + get { return localId_; } + set { + localId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "round_trip_time" field. + public const int RoundTripTimeFieldNumber = 2; + private double roundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RoundTripTime { + get { return roundTripTime_; } + set { + roundTripTime_ = value; + } + } + + /// Field number for the "total_round_trip_time" field. + public const int TotalRoundTripTimeFieldNumber = 3; + private double totalRoundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalRoundTripTime { + get { return totalRoundTripTime_; } + set { + totalRoundTripTime_ = value; + } + } + + /// Field number for the "fraction_lost" field. + public const int FractionLostFieldNumber = 4; + private double fractionLost_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double FractionLost { + get { return fractionLost_; } + set { + fractionLost_ = value; + } + } + + /// Field number for the "round_trip_time_measurements" field. + public const int RoundTripTimeMeasurementsFieldNumber = 5; + private ulong roundTripTimeMeasurements_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoundTripTimeMeasurements { + get { return roundTripTimeMeasurements_; } + set { + roundTripTimeMeasurements_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoteInboundRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoteInboundRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalId != other.LocalId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RoundTripTime, other.RoundTripTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalRoundTripTime, other.TotalRoundTripTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FractionLost, other.FractionLost)) return false; + if (RoundTripTimeMeasurements != other.RoundTripTimeMeasurements) 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 (LocalId.Length != 0) hash ^= LocalId.GetHashCode(); + if (RoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RoundTripTime); + if (TotalRoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (FractionLost != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FractionLost); + if (RoundTripTimeMeasurements != 0UL) hash ^= RoundTripTimeMeasurements.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 (LocalId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LocalId); + } + if (RoundTripTime != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RoundTripTime); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(25); + output.WriteDouble(TotalRoundTripTime); + } + if (FractionLost != 0D) { + output.WriteRawTag(33); + output.WriteDouble(FractionLost); + } + if (RoundTripTimeMeasurements != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(RoundTripTimeMeasurements); + } + 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 (LocalId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LocalId); + } + if (RoundTripTime != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RoundTripTime); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(25); + output.WriteDouble(TotalRoundTripTime); + } + if (FractionLost != 0D) { + output.WriteRawTag(33); + output.WriteDouble(FractionLost); + } + if (RoundTripTimeMeasurements != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(RoundTripTimeMeasurements); + } + 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 (LocalId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalId); + } + if (RoundTripTime != 0D) { + size += 1 + 8; + } + if (TotalRoundTripTime != 0D) { + size += 1 + 8; + } + if (FractionLost != 0D) { + size += 1 + 8; + } + if (RoundTripTimeMeasurements != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoundTripTimeMeasurements); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoteInboundRtpStreamStats other) { + if (other == null) { + return; + } + if (other.LocalId.Length != 0) { + LocalId = other.LocalId; + } + if (other.RoundTripTime != 0D) { + RoundTripTime = other.RoundTripTime; + } + if (other.TotalRoundTripTime != 0D) { + TotalRoundTripTime = other.TotalRoundTripTime; + } + if (other.FractionLost != 0D) { + FractionLost = other.FractionLost; + } + if (other.RoundTripTimeMeasurements != 0UL) { + RoundTripTimeMeasurements = other.RoundTripTimeMeasurements; + } + _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: { + LocalId = input.ReadString(); + break; + } + case 17: { + RoundTripTime = input.ReadDouble(); + break; + } + case 25: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 33: { + FractionLost = input.ReadDouble(); + break; + } + case 40: { + RoundTripTimeMeasurements = 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 10: { + LocalId = input.ReadString(); + break; + } + case 17: { + RoundTripTime = input.ReadDouble(); + break; + } + case 25: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 33: { + FractionLost = input.ReadDouble(); + break; + } + case 40: { + RoundTripTimeMeasurements = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RemoteOutboundRtpStreamStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoteOutboundRtpStreamStats()); + 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.StatsReflection.Descriptor.MessageTypes[9]; } + } + + [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 RemoteOutboundRtpStreamStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteOutboundRtpStreamStats(RemoteOutboundRtpStreamStats other) : this() { + localId_ = other.localId_; + remoteTimestamp_ = other.remoteTimestamp_; + reportsSent_ = other.reportsSent_; + roundTripTime_ = other.roundTripTime_; + totalRoundTripTime_ = other.totalRoundTripTime_; + roundTripTimeMeasurements_ = other.roundTripTimeMeasurements_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoteOutboundRtpStreamStats Clone() { + return new RemoteOutboundRtpStreamStats(this); + } + + /// Field number for the "local_id" field. + public const int LocalIdFieldNumber = 1; + private string localId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocalId { + get { return localId_; } + set { + localId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_timestamp" field. + public const int RemoteTimestampFieldNumber = 2; + private double remoteTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RemoteTimestamp { + get { return remoteTimestamp_; } + set { + remoteTimestamp_ = value; + } + } + + /// Field number for the "reports_sent" field. + public const int ReportsSentFieldNumber = 3; + private ulong reportsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ReportsSent { + get { return reportsSent_; } + set { + reportsSent_ = value; + } + } + + /// Field number for the "round_trip_time" field. + public const int RoundTripTimeFieldNumber = 4; + private double roundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double RoundTripTime { + get { return roundTripTime_; } + set { + roundTripTime_ = value; + } + } + + /// Field number for the "total_round_trip_time" field. + public const int TotalRoundTripTimeFieldNumber = 5; + private double totalRoundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalRoundTripTime { + get { return totalRoundTripTime_; } + set { + totalRoundTripTime_ = value; + } + } + + /// Field number for the "round_trip_time_measurements" field. + public const int RoundTripTimeMeasurementsFieldNumber = 6; + private ulong roundTripTimeMeasurements_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoundTripTimeMeasurements { + get { return roundTripTimeMeasurements_; } + set { + roundTripTimeMeasurements_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoteOutboundRtpStreamStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoteOutboundRtpStreamStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalId != other.LocalId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RemoteTimestamp, other.RemoteTimestamp)) return false; + if (ReportsSent != other.ReportsSent) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(RoundTripTime, other.RoundTripTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalRoundTripTime, other.TotalRoundTripTime)) return false; + if (RoundTripTimeMeasurements != other.RoundTripTimeMeasurements) 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 (LocalId.Length != 0) hash ^= LocalId.GetHashCode(); + if (RemoteTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RemoteTimestamp); + if (ReportsSent != 0UL) hash ^= ReportsSent.GetHashCode(); + if (RoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RoundTripTime); + if (TotalRoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (RoundTripTimeMeasurements != 0UL) hash ^= RoundTripTimeMeasurements.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 (LocalId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LocalId); + } + if (RemoteTimestamp != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RemoteTimestamp); + } + if (ReportsSent != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(ReportsSent); + } + if (RoundTripTime != 0D) { + output.WriteRawTag(33); + output.WriteDouble(RoundTripTime); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalRoundTripTime); + } + if (RoundTripTimeMeasurements != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(RoundTripTimeMeasurements); + } + 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 (LocalId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(LocalId); + } + if (RemoteTimestamp != 0D) { + output.WriteRawTag(17); + output.WriteDouble(RemoteTimestamp); + } + if (ReportsSent != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(ReportsSent); + } + if (RoundTripTime != 0D) { + output.WriteRawTag(33); + output.WriteDouble(RoundTripTime); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalRoundTripTime); + } + if (RoundTripTimeMeasurements != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(RoundTripTimeMeasurements); + } + 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 (LocalId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalId); + } + if (RemoteTimestamp != 0D) { + size += 1 + 8; + } + if (ReportsSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ReportsSent); + } + if (RoundTripTime != 0D) { + size += 1 + 8; + } + if (TotalRoundTripTime != 0D) { + size += 1 + 8; + } + if (RoundTripTimeMeasurements != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoundTripTimeMeasurements); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoteOutboundRtpStreamStats other) { + if (other == null) { + return; + } + if (other.LocalId.Length != 0) { + LocalId = other.LocalId; + } + if (other.RemoteTimestamp != 0D) { + RemoteTimestamp = other.RemoteTimestamp; + } + if (other.ReportsSent != 0UL) { + ReportsSent = other.ReportsSent; + } + if (other.RoundTripTime != 0D) { + RoundTripTime = other.RoundTripTime; + } + if (other.TotalRoundTripTime != 0D) { + TotalRoundTripTime = other.TotalRoundTripTime; + } + if (other.RoundTripTimeMeasurements != 0UL) { + RoundTripTimeMeasurements = other.RoundTripTimeMeasurements; + } + _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: { + LocalId = input.ReadString(); + break; + } + case 17: { + RemoteTimestamp = input.ReadDouble(); + break; + } + case 24: { + ReportsSent = input.ReadUInt64(); + break; + } + case 33: { + RoundTripTime = input.ReadDouble(); + break; + } + case 41: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 48: { + RoundTripTimeMeasurements = 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 10: { + LocalId = input.ReadString(); + break; + } + case 17: { + RemoteTimestamp = input.ReadDouble(); + break; + } + case 24: { + ReportsSent = input.ReadUInt64(); + break; + } + case 33: { + RoundTripTime = input.ReadDouble(); + break; + } + case 41: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 48: { + RoundTripTimeMeasurements = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class MediaSourceStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MediaSourceStats()); + 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.StatsReflection.Descriptor.MessageTypes[10]; } + } + + [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 MediaSourceStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaSourceStats(MediaSourceStats other) : this() { + trackIdentifier_ = other.trackIdentifier_; + kind_ = other.kind_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MediaSourceStats Clone() { + return new MediaSourceStats(this); + } + + /// Field number for the "track_identifier" field. + public const int TrackIdentifierFieldNumber = 1; + private string trackIdentifier_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackIdentifier { + get { return trackIdentifier_; } + set { + trackIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 2; + private string kind_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = 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 MediaSourceStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MediaSourceStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackIdentifier != other.TrackIdentifier) return false; + if (Kind != other.Kind) 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 (TrackIdentifier.Length != 0) hash ^= TrackIdentifier.GetHashCode(); + if (Kind.Length != 0) hash ^= Kind.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 (TrackIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackIdentifier); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + 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 (TrackIdentifier.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackIdentifier); + } + if (Kind.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Kind); + } + 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 (TrackIdentifier.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackIdentifier); + } + if (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MediaSourceStats other) { + if (other == null) { + return; + } + if (other.TrackIdentifier.Length != 0) { + TrackIdentifier = other.TrackIdentifier; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + _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: { + TrackIdentifier = input.ReadString(); + break; + } + case 18: { + Kind = 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: { + TrackIdentifier = input.ReadString(); + break; + } + case 18: { + Kind = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioSourceStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceStats()); + 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.StatsReflection.Descriptor.MessageTypes[11]; } + } + + [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 AudioSourceStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioSourceStats(AudioSourceStats other) : this() { + audioLevel_ = other.audioLevel_; + totalAudioEnergy_ = other.totalAudioEnergy_; + totalSamplesDuration_ = other.totalSamplesDuration_; + echoReturnLoss_ = other.echoReturnLoss_; + echoReturnLossEnhancement_ = other.echoReturnLossEnhancement_; + droppedSamplesDuration_ = other.droppedSamplesDuration_; + droppedSamplesEvents_ = other.droppedSamplesEvents_; + totalCaptureDelay_ = other.totalCaptureDelay_; + totalSamplesCaptured_ = other.totalSamplesCaptured_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioSourceStats Clone() { + return new AudioSourceStats(this); + } + + /// Field number for the "audio_level" field. + public const int AudioLevelFieldNumber = 1; + private double audioLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AudioLevel { + get { return audioLevel_; } + set { + audioLevel_ = value; + } + } + + /// Field number for the "total_audio_energy" field. + public const int TotalAudioEnergyFieldNumber = 2; + private double totalAudioEnergy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalAudioEnergy { + get { return totalAudioEnergy_; } + set { + totalAudioEnergy_ = value; + } + } + + /// Field number for the "total_samples_duration" field. + public const int TotalSamplesDurationFieldNumber = 3; + private double totalSamplesDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalSamplesDuration { + get { return totalSamplesDuration_; } + set { + totalSamplesDuration_ = value; + } + } + + /// Field number for the "echo_return_loss" field. + public const int EchoReturnLossFieldNumber = 4; + private double echoReturnLoss_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double EchoReturnLoss { + get { return echoReturnLoss_; } + set { + echoReturnLoss_ = value; + } + } + + /// Field number for the "echo_return_loss_enhancement" field. + public const int EchoReturnLossEnhancementFieldNumber = 5; + private double echoReturnLossEnhancement_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double EchoReturnLossEnhancement { + get { return echoReturnLossEnhancement_; } + set { + echoReturnLossEnhancement_ = value; + } + } + + /// Field number for the "dropped_samples_duration" field. + public const int DroppedSamplesDurationFieldNumber = 6; + private double droppedSamplesDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double DroppedSamplesDuration { + get { return droppedSamplesDuration_; } + set { + droppedSamplesDuration_ = value; + } + } + + /// Field number for the "dropped_samples_events" field. + public const int DroppedSamplesEventsFieldNumber = 7; + private uint droppedSamplesEvents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DroppedSamplesEvents { + get { return droppedSamplesEvents_; } + set { + droppedSamplesEvents_ = value; + } + } + + /// Field number for the "total_capture_delay" field. + public const int TotalCaptureDelayFieldNumber = 8; + private double totalCaptureDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalCaptureDelay { + get { return totalCaptureDelay_; } + set { + totalCaptureDelay_ = value; + } + } + + /// Field number for the "total_samples_captured" field. + public const int TotalSamplesCapturedFieldNumber = 9; + private ulong totalSamplesCaptured_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TotalSamplesCaptured { + get { return totalSamplesCaptured_; } + set { + totalSamplesCaptured_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioSourceStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioSourceStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AudioLevel, other.AudioLevel)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalAudioEnergy, other.TotalAudioEnergy)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalSamplesDuration, other.TotalSamplesDuration)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EchoReturnLoss, other.EchoReturnLoss)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EchoReturnLossEnhancement, other.EchoReturnLossEnhancement)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DroppedSamplesDuration, other.DroppedSamplesDuration)) return false; + if (DroppedSamplesEvents != other.DroppedSamplesEvents) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalCaptureDelay, other.TotalCaptureDelay)) return false; + if (TotalSamplesCaptured != other.TotalSamplesCaptured) 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 (AudioLevel != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioLevel); + if (TotalAudioEnergy != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAudioEnergy); + if (TotalSamplesDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (EchoReturnLoss != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EchoReturnLoss); + if (EchoReturnLossEnhancement != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EchoReturnLossEnhancement); + if (DroppedSamplesDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DroppedSamplesDuration); + if (DroppedSamplesEvents != 0) hash ^= DroppedSamplesEvents.GetHashCode(); + if (TotalCaptureDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalCaptureDelay); + if (TotalSamplesCaptured != 0UL) hash ^= TotalSamplesCaptured.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 (AudioLevel != 0D) { + output.WriteRawTag(9); + output.WriteDouble(AudioLevel); + } + if (TotalAudioEnergy != 0D) { + output.WriteRawTag(17); + output.WriteDouble(TotalAudioEnergy); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(25); + output.WriteDouble(TotalSamplesDuration); + } + if (EchoReturnLoss != 0D) { + output.WriteRawTag(33); + output.WriteDouble(EchoReturnLoss); + } + if (EchoReturnLossEnhancement != 0D) { + output.WriteRawTag(41); + output.WriteDouble(EchoReturnLossEnhancement); + } + if (DroppedSamplesDuration != 0D) { + output.WriteRawTag(49); + output.WriteDouble(DroppedSamplesDuration); + } + if (DroppedSamplesEvents != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DroppedSamplesEvents); + } + if (TotalCaptureDelay != 0D) { + output.WriteRawTag(65); + output.WriteDouble(TotalCaptureDelay); + } + if (TotalSamplesCaptured != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(TotalSamplesCaptured); + } + 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 (AudioLevel != 0D) { + output.WriteRawTag(9); + output.WriteDouble(AudioLevel); + } + if (TotalAudioEnergy != 0D) { + output.WriteRawTag(17); + output.WriteDouble(TotalAudioEnergy); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(25); + output.WriteDouble(TotalSamplesDuration); + } + if (EchoReturnLoss != 0D) { + output.WriteRawTag(33); + output.WriteDouble(EchoReturnLoss); + } + if (EchoReturnLossEnhancement != 0D) { + output.WriteRawTag(41); + output.WriteDouble(EchoReturnLossEnhancement); + } + if (DroppedSamplesDuration != 0D) { + output.WriteRawTag(49); + output.WriteDouble(DroppedSamplesDuration); + } + if (DroppedSamplesEvents != 0) { + output.WriteRawTag(56); + output.WriteUInt32(DroppedSamplesEvents); + } + if (TotalCaptureDelay != 0D) { + output.WriteRawTag(65); + output.WriteDouble(TotalCaptureDelay); + } + if (TotalSamplesCaptured != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(TotalSamplesCaptured); + } + 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 (AudioLevel != 0D) { + size += 1 + 8; + } + if (TotalAudioEnergy != 0D) { + size += 1 + 8; + } + if (TotalSamplesDuration != 0D) { + size += 1 + 8; + } + if (EchoReturnLoss != 0D) { + size += 1 + 8; + } + if (EchoReturnLossEnhancement != 0D) { + size += 1 + 8; + } + if (DroppedSamplesDuration != 0D) { + size += 1 + 8; + } + if (DroppedSamplesEvents != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DroppedSamplesEvents); + } + if (TotalCaptureDelay != 0D) { + size += 1 + 8; + } + if (TotalSamplesCaptured != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesCaptured); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioSourceStats other) { + if (other == null) { + return; + } + if (other.AudioLevel != 0D) { + AudioLevel = other.AudioLevel; + } + if (other.TotalAudioEnergy != 0D) { + TotalAudioEnergy = other.TotalAudioEnergy; + } + if (other.TotalSamplesDuration != 0D) { + TotalSamplesDuration = other.TotalSamplesDuration; + } + if (other.EchoReturnLoss != 0D) { + EchoReturnLoss = other.EchoReturnLoss; + } + if (other.EchoReturnLossEnhancement != 0D) { + EchoReturnLossEnhancement = other.EchoReturnLossEnhancement; + } + if (other.DroppedSamplesDuration != 0D) { + DroppedSamplesDuration = other.DroppedSamplesDuration; + } + if (other.DroppedSamplesEvents != 0) { + DroppedSamplesEvents = other.DroppedSamplesEvents; + } + if (other.TotalCaptureDelay != 0D) { + TotalCaptureDelay = other.TotalCaptureDelay; + } + if (other.TotalSamplesCaptured != 0UL) { + TotalSamplesCaptured = other.TotalSamplesCaptured; + } + _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 9: { + AudioLevel = input.ReadDouble(); + break; + } + case 17: { + TotalAudioEnergy = input.ReadDouble(); + break; + } + case 25: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 33: { + EchoReturnLoss = input.ReadDouble(); + break; + } + case 41: { + EchoReturnLossEnhancement = input.ReadDouble(); + break; + } + case 49: { + DroppedSamplesDuration = input.ReadDouble(); + break; + } + case 56: { + DroppedSamplesEvents = input.ReadUInt32(); + break; + } + case 65: { + TotalCaptureDelay = input.ReadDouble(); + break; + } + case 72: { + TotalSamplesCaptured = 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 9: { + AudioLevel = input.ReadDouble(); + break; + } + case 17: { + TotalAudioEnergy = input.ReadDouble(); + break; + } + case 25: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 33: { + EchoReturnLoss = input.ReadDouble(); + break; + } + case 41: { + EchoReturnLossEnhancement = input.ReadDouble(); + break; + } + case 49: { + DroppedSamplesDuration = input.ReadDouble(); + break; + } + case 56: { + DroppedSamplesEvents = input.ReadUInt32(); + break; + } + case 65: { + TotalCaptureDelay = input.ReadDouble(); + break; + } + case 72: { + TotalSamplesCaptured = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoSourceStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceStats()); + 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.StatsReflection.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 VideoSourceStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoSourceStats(VideoSourceStats other) : this() { + width_ = other.width_; + height_ = other.height_; + frames_ = other.frames_; + framesPerSecond_ = other.framesPerSecond_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoSourceStats Clone() { + return new VideoSourceStats(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Width { + get { return width_; } + set { + width_ = value; + } + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Height { + get { return height_; } + set { + height_ = value; + } + } + + /// Field number for the "frames" field. + public const int FramesFieldNumber = 3; + private uint frames_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Frames { + get { return frames_; } + set { + frames_ = value; + } + } + + /// Field number for the "frames_per_second" field. + public const int FramesPerSecondFieldNumber = 4; + private double framesPerSecond_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double FramesPerSecond { + get { return framesPerSecond_; } + set { + framesPerSecond_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoSourceStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoSourceStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Width != other.Width) return false; + if (Height != other.Height) return false; + if (Frames != other.Frames) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FramesPerSecond, other.FramesPerSecond)) 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 (Width != 0) hash ^= Width.GetHashCode(); + if (Height != 0) hash ^= Height.GetHashCode(); + if (Frames != 0) hash ^= Frames.GetHashCode(); + if (FramesPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); + 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 (Width != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Width); + } + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); + } + if (Frames != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Frames); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(33); + output.WriteDouble(FramesPerSecond); + } + 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 (Width != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Width); + } + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); + } + if (Frames != 0) { + output.WriteRawTag(24); + output.WriteUInt32(Frames); + } + if (FramesPerSecond != 0D) { + output.WriteRawTag(33); + output.WriteDouble(FramesPerSecond); + } + 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 (Width != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + if (Height != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (Frames != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frames); + } + if (FramesPerSecond != 0D) { + size += 1 + 8; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoSourceStats other) { + if (other == null) { + return; + } + if (other.Width != 0) { + Width = other.Width; + } + if (other.Height != 0) { + Height = other.Height; + } + if (other.Frames != 0) { + Frames = other.Frames; + } + if (other.FramesPerSecond != 0D) { + FramesPerSecond = other.FramesPerSecond; + } + _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: { + Width = input.ReadUInt32(); + break; + } + case 16: { + Height = input.ReadUInt32(); + break; + } + case 24: { + Frames = input.ReadUInt32(); + break; + } + case 33: { + FramesPerSecond = input.ReadDouble(); + 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: { + Width = input.ReadUInt32(); + break; + } + case 16: { + Height = input.ReadUInt32(); + break; + } + case 24: { + Frames = input.ReadUInt32(); + break; + } + case 33: { + FramesPerSecond = input.ReadDouble(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioPlayoutStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioPlayoutStats()); + 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.StatsReflection.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 AudioPlayoutStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioPlayoutStats(AudioPlayoutStats other) : this() { + kind_ = other.kind_; + synthesizedSamplesDuration_ = other.synthesizedSamplesDuration_; + synthesizedSamplesEvents_ = other.synthesizedSamplesEvents_; + totalSamplesDuration_ = other.totalSamplesDuration_; + totalPlayoutDelay_ = other.totalPlayoutDelay_; + totalSamplesCount_ = other.totalSamplesCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioPlayoutStats Clone() { + return new AudioPlayoutStats(this); + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 1; + private string kind_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Kind { + get { return kind_; } + set { + kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "synthesized_samples_duration" field. + public const int SynthesizedSamplesDurationFieldNumber = 2; + private double synthesizedSamplesDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double SynthesizedSamplesDuration { + get { return synthesizedSamplesDuration_; } + set { + synthesizedSamplesDuration_ = value; + } + } + + /// Field number for the "synthesized_samples_events" field. + public const int SynthesizedSamplesEventsFieldNumber = 3; + private uint synthesizedSamplesEvents_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SynthesizedSamplesEvents { + get { return synthesizedSamplesEvents_; } + set { + synthesizedSamplesEvents_ = value; + } + } + + /// Field number for the "total_samples_duration" field. + public const int TotalSamplesDurationFieldNumber = 4; + private double totalSamplesDuration_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalSamplesDuration { + get { return totalSamplesDuration_; } + set { + totalSamplesDuration_ = value; + } + } + + /// Field number for the "total_playout_delay" field. + public const int TotalPlayoutDelayFieldNumber = 5; + private double totalPlayoutDelay_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalPlayoutDelay { + get { return totalPlayoutDelay_; } + set { + totalPlayoutDelay_ = value; + } + } + + /// Field number for the "total_samples_count" field. + public const int TotalSamplesCountFieldNumber = 6; + private ulong totalSamplesCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong TotalSamplesCount { + get { return totalSamplesCount_; } + set { + totalSamplesCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioPlayoutStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioPlayoutStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Kind != other.Kind) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SynthesizedSamplesDuration, other.SynthesizedSamplesDuration)) return false; + if (SynthesizedSamplesEvents != other.SynthesizedSamplesEvents) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalSamplesDuration, other.TotalSamplesDuration)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalPlayoutDelay, other.TotalPlayoutDelay)) return false; + if (TotalSamplesCount != other.TotalSamplesCount) 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 (Kind.Length != 0) hash ^= Kind.GetHashCode(); + if (SynthesizedSamplesDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SynthesizedSamplesDuration); + if (SynthesizedSamplesEvents != 0) hash ^= SynthesizedSamplesEvents.GetHashCode(); + if (TotalSamplesDuration != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (TotalPlayoutDelay != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPlayoutDelay); + if (TotalSamplesCount != 0UL) hash ^= TotalSamplesCount.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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (SynthesizedSamplesDuration != 0D) { + output.WriteRawTag(17); + output.WriteDouble(SynthesizedSamplesDuration); + } + if (SynthesizedSamplesEvents != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SynthesizedSamplesEvents); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(33); + output.WriteDouble(TotalSamplesDuration); + } + if (TotalPlayoutDelay != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalPlayoutDelay); + } + if (TotalSamplesCount != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(TotalSamplesCount); + } + 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 (Kind.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Kind); + } + if (SynthesizedSamplesDuration != 0D) { + output.WriteRawTag(17); + output.WriteDouble(SynthesizedSamplesDuration); + } + if (SynthesizedSamplesEvents != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SynthesizedSamplesEvents); + } + if (TotalSamplesDuration != 0D) { + output.WriteRawTag(33); + output.WriteDouble(TotalSamplesDuration); + } + if (TotalPlayoutDelay != 0D) { + output.WriteRawTag(41); + output.WriteDouble(TotalPlayoutDelay); + } + if (TotalSamplesCount != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(TotalSamplesCount); + } + 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 (Kind.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); + } + if (SynthesizedSamplesDuration != 0D) { + size += 1 + 8; + } + if (SynthesizedSamplesEvents != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SynthesizedSamplesEvents); + } + if (TotalSamplesDuration != 0D) { + size += 1 + 8; + } + if (TotalPlayoutDelay != 0D) { + size += 1 + 8; + } + if (TotalSamplesCount != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioPlayoutStats other) { + if (other == null) { + return; + } + if (other.Kind.Length != 0) { + Kind = other.Kind; + } + if (other.SynthesizedSamplesDuration != 0D) { + SynthesizedSamplesDuration = other.SynthesizedSamplesDuration; + } + if (other.SynthesizedSamplesEvents != 0) { + SynthesizedSamplesEvents = other.SynthesizedSamplesEvents; + } + if (other.TotalSamplesDuration != 0D) { + TotalSamplesDuration = other.TotalSamplesDuration; + } + if (other.TotalPlayoutDelay != 0D) { + TotalPlayoutDelay = other.TotalPlayoutDelay; + } + if (other.TotalSamplesCount != 0UL) { + TotalSamplesCount = other.TotalSamplesCount; + } + _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: { + Kind = input.ReadString(); + break; + } + case 17: { + SynthesizedSamplesDuration = input.ReadDouble(); + break; + } + case 24: { + SynthesizedSamplesEvents = input.ReadUInt32(); + break; + } + case 33: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 41: { + TotalPlayoutDelay = input.ReadDouble(); + break; + } + case 48: { + TotalSamplesCount = 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 10: { + Kind = input.ReadString(); + break; + } + case 17: { + SynthesizedSamplesDuration = input.ReadDouble(); + break; + } + case 24: { + SynthesizedSamplesEvents = input.ReadUInt32(); + break; + } + case 33: { + TotalSamplesDuration = input.ReadDouble(); + break; + } + case 41: { + TotalPlayoutDelay = input.ReadDouble(); + break; + } + case 48: { + TotalSamplesCount = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PeerConnectionStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PeerConnectionStats()); + 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.StatsReflection.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 PeerConnectionStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeerConnectionStats(PeerConnectionStats other) : this() { + dataChannelsOpened_ = other.dataChannelsOpened_; + dataChannelsClosed_ = other.dataChannelsClosed_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PeerConnectionStats Clone() { + return new PeerConnectionStats(this); + } + + /// Field number for the "data_channels_opened" field. + public const int DataChannelsOpenedFieldNumber = 1; + private uint dataChannelsOpened_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DataChannelsOpened { + get { return dataChannelsOpened_; } + set { + dataChannelsOpened_ = value; + } + } + + /// Field number for the "data_channels_closed" field. + public const int DataChannelsClosedFieldNumber = 2; + private uint dataChannelsClosed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DataChannelsClosed { + get { return dataChannelsClosed_; } + set { + dataChannelsClosed_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PeerConnectionStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PeerConnectionStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataChannelsOpened != other.DataChannelsOpened) return false; + if (DataChannelsClosed != other.DataChannelsClosed) 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 (DataChannelsOpened != 0) hash ^= DataChannelsOpened.GetHashCode(); + if (DataChannelsClosed != 0) hash ^= DataChannelsClosed.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 (DataChannelsOpened != 0) { + output.WriteRawTag(8); + output.WriteUInt32(DataChannelsOpened); + } + if (DataChannelsClosed != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DataChannelsClosed); + } + 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 (DataChannelsOpened != 0) { + output.WriteRawTag(8); + output.WriteUInt32(DataChannelsOpened); + } + if (DataChannelsClosed != 0) { + output.WriteRawTag(16); + output.WriteUInt32(DataChannelsClosed); + } + 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 (DataChannelsOpened != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DataChannelsOpened); + } + if (DataChannelsClosed != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DataChannelsClosed); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PeerConnectionStats other) { + if (other == null) { + return; + } + if (other.DataChannelsOpened != 0) { + DataChannelsOpened = other.DataChannelsOpened; + } + if (other.DataChannelsClosed != 0) { + DataChannelsClosed = other.DataChannelsClosed; + } + _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: { + DataChannelsOpened = input.ReadUInt32(); + break; + } + case 16: { + DataChannelsClosed = 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: { + DataChannelsOpened = input.ReadUInt32(); + break; + } + case 16: { + DataChannelsClosed = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DataChannelStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataChannelStats()); + 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.StatsReflection.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 DataChannelStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataChannelStats(DataChannelStats other) : this() { + _hasBits0 = other._hasBits0; + label_ = other.label_; + protocol_ = other.protocol_; + dataChannelIdentifier_ = other.dataChannelIdentifier_; + state_ = other.state_; + messagesSent_ = other.messagesSent_; + bytesSent_ = other.bytesSent_; + messagesReceived_ = other.messagesReceived_; + bytesReceived_ = other.bytesReceived_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataChannelStats Clone() { + return new DataChannelStats(this); + } + + /// Field number for the "label" field. + public const int LabelFieldNumber = 1; + private string label_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Label { + get { return label_; } + set { + label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 2; + private string protocol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Protocol { + get { return protocol_; } + set { + protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_channel_identifier" field. + public const int DataChannelIdentifierFieldNumber = 3; + private int dataChannelIdentifier_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DataChannelIdentifier { + get { return dataChannelIdentifier_; } + set { + dataChannelIdentifier_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private readonly static global::LiveKit.Proto.DataChannelState StateDefaultValue = global::LiveKit.Proto.DataChannelState.DcConnecting; + + private global::LiveKit.Proto.DataChannelState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DataChannelState State { + get { if ((_hasBits0 & 1) != 0) { return state_; } else { return StateDefaultValue; } } + set { + _hasBits0 |= 1; + state_ = value; + } + } + /// Gets whether the "state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasState { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearState() { + _hasBits0 &= ~1; + } + + /// Field number for the "messages_sent" field. + public const int MessagesSentFieldNumber = 5; + private uint messagesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MessagesSent { + get { return messagesSent_; } + set { + messagesSent_ = value; + } + } + + /// Field number for the "bytes_sent" field. + public const int BytesSentFieldNumber = 6; + private ulong bytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesSent { + get { return bytesSent_; } + set { + bytesSent_ = value; + } + } + + /// Field number for the "messages_received" field. + public const int MessagesReceivedFieldNumber = 7; + private uint messagesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MessagesReceived { + get { return messagesReceived_; } + set { + messagesReceived_ = value; + } + } + + /// Field number for the "bytes_received" field. + public const int BytesReceivedFieldNumber = 8; + private ulong bytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesReceived { + get { return bytesReceived_; } + set { + bytesReceived_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DataChannelStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DataChannelStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Label != other.Label) return false; + if (Protocol != other.Protocol) return false; + if (DataChannelIdentifier != other.DataChannelIdentifier) return false; + if (State != other.State) return false; + if (MessagesSent != other.MessagesSent) return false; + if (BytesSent != other.BytesSent) return false; + if (MessagesReceived != other.MessagesReceived) return false; + if (BytesReceived != other.BytesReceived) 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 (Label.Length != 0) hash ^= Label.GetHashCode(); + if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + if (DataChannelIdentifier != 0) hash ^= DataChannelIdentifier.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); + if (MessagesSent != 0) hash ^= MessagesSent.GetHashCode(); + if (BytesSent != 0UL) hash ^= BytesSent.GetHashCode(); + if (MessagesReceived != 0) hash ^= MessagesReceived.GetHashCode(); + if (BytesReceived != 0UL) hash ^= BytesReceived.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 (Label.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Label); + } + if (Protocol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Protocol); + } + if (DataChannelIdentifier != 0) { + output.WriteRawTag(24); + output.WriteInt32(DataChannelIdentifier); + } + if (HasState) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (MessagesSent != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MessagesSent); + } + if (BytesSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(BytesSent); + } + if (MessagesReceived != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MessagesReceived); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(BytesReceived); + } + 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 (Label.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Label); + } + if (Protocol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Protocol); + } + if (DataChannelIdentifier != 0) { + output.WriteRawTag(24); + output.WriteInt32(DataChannelIdentifier); + } + if (HasState) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (MessagesSent != 0) { + output.WriteRawTag(40); + output.WriteUInt32(MessagesSent); + } + if (BytesSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(BytesSent); + } + if (MessagesReceived != 0) { + output.WriteRawTag(56); + output.WriteUInt32(MessagesReceived); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(BytesReceived); + } + 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 (Label.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); + } + if (Protocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); + } + if (DataChannelIdentifier != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DataChannelIdentifier); + } + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (MessagesSent != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessagesSent); + } + if (BytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); + } + if (MessagesReceived != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessagesReceived); + } + if (BytesReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DataChannelStats other) { + if (other == null) { + return; + } + if (other.Label.Length != 0) { + Label = other.Label; + } + if (other.Protocol.Length != 0) { + Protocol = other.Protocol; + } + if (other.DataChannelIdentifier != 0) { + DataChannelIdentifier = other.DataChannelIdentifier; + } + if (other.HasState) { + State = other.State; + } + if (other.MessagesSent != 0) { + MessagesSent = other.MessagesSent; + } + if (other.BytesSent != 0UL) { + BytesSent = other.BytesSent; + } + if (other.MessagesReceived != 0) { + MessagesReceived = other.MessagesReceived; + } + if (other.BytesReceived != 0UL) { + BytesReceived = other.BytesReceived; + } + _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: { + Label = input.ReadString(); + break; + } + case 18: { + Protocol = input.ReadString(); + break; + } + case 24: { + DataChannelIdentifier = input.ReadInt32(); + break; + } + case 32: { + State = (global::LiveKit.Proto.DataChannelState) input.ReadEnum(); + break; + } + case 40: { + MessagesSent = input.ReadUInt32(); + break; + } + case 48: { + BytesSent = input.ReadUInt64(); + break; + } + case 56: { + MessagesReceived = input.ReadUInt32(); + break; + } + case 64: { + BytesReceived = 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 10: { + Label = input.ReadString(); + break; + } + case 18: { + Protocol = input.ReadString(); + break; + } + case 24: { + DataChannelIdentifier = input.ReadInt32(); + break; + } + case 32: { + State = (global::LiveKit.Proto.DataChannelState) input.ReadEnum(); + break; + } + case 40: { + MessagesSent = input.ReadUInt32(); + break; + } + case 48: { + BytesSent = input.ReadUInt64(); + break; + } + case 56: { + MessagesReceived = input.ReadUInt32(); + break; + } + case 64: { + BytesReceived = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TransportStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransportStats()); + 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.StatsReflection.Descriptor.MessageTypes[16]; } + } + + [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 TransportStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransportStats(TransportStats other) : this() { + _hasBits0 = other._hasBits0; + packetsSent_ = other.packetsSent_; + packetsReceived_ = other.packetsReceived_; + bytesSent_ = other.bytesSent_; + bytesReceived_ = other.bytesReceived_; + iceRole_ = other.iceRole_; + iceLocalUsernameFragment_ = other.iceLocalUsernameFragment_; + dtlsState_ = other.dtlsState_; + iceState_ = other.iceState_; + selectedCandidatePairId_ = other.selectedCandidatePairId_; + localCertificateId_ = other.localCertificateId_; + remoteCertificateId_ = other.remoteCertificateId_; + tlsVersion_ = other.tlsVersion_; + dtlsCipher_ = other.dtlsCipher_; + dtlsRole_ = other.dtlsRole_; + srtpCipher_ = other.srtpCipher_; + selectedCandidatePairChanges_ = other.selectedCandidatePairChanges_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransportStats Clone() { + return new TransportStats(this); + } + + /// Field number for the "packets_sent" field. + public const int PacketsSentFieldNumber = 1; + private ulong packetsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsSent { + get { return packetsSent_; } + set { + packetsSent_ = value; + } + } + + /// Field number for the "packets_received" field. + public const int PacketsReceivedFieldNumber = 2; + private ulong packetsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsReceived { + get { return packetsReceived_; } + set { + packetsReceived_ = value; + } + } + + /// Field number for the "bytes_sent" field. + public const int BytesSentFieldNumber = 3; + private ulong bytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesSent { + get { return bytesSent_; } + set { + bytesSent_ = value; + } + } + + /// Field number for the "bytes_received" field. + public const int BytesReceivedFieldNumber = 4; + private ulong bytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesReceived { + get { return bytesReceived_; } + set { + bytesReceived_ = value; + } + } + + /// Field number for the "ice_role" field. + public const int IceRoleFieldNumber = 5; + private global::LiveKit.Proto.IceRole iceRole_ = global::LiveKit.Proto.IceRole.IceUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceRole IceRole { + get { return iceRole_; } + set { + iceRole_ = value; + } + } + + /// Field number for the "ice_local_username_fragment" field. + public const int IceLocalUsernameFragmentFieldNumber = 6; + private string iceLocalUsernameFragment_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IceLocalUsernameFragment { + get { return iceLocalUsernameFragment_; } + set { + iceLocalUsernameFragment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dtls_state" field. + public const int DtlsStateFieldNumber = 7; + private readonly static global::LiveKit.Proto.DtlsTransportState DtlsStateDefaultValue = global::LiveKit.Proto.DtlsTransportState.DtlsTransportNew; + + private global::LiveKit.Proto.DtlsTransportState dtlsState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DtlsTransportState DtlsState { + get { if ((_hasBits0 & 1) != 0) { return dtlsState_; } else { return DtlsStateDefaultValue; } } + set { + _hasBits0 |= 1; + dtlsState_ = value; + } + } + /// Gets whether the "dtls_state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDtlsState { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "dtls_state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDtlsState() { + _hasBits0 &= ~1; + } + + /// Field number for the "ice_state" field. + public const int IceStateFieldNumber = 8; + private readonly static global::LiveKit.Proto.IceTransportState IceStateDefaultValue = global::LiveKit.Proto.IceTransportState.IceTransportNew; + + private global::LiveKit.Proto.IceTransportState iceState_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceTransportState IceState { + get { if ((_hasBits0 & 2) != 0) { return iceState_; } else { return IceStateDefaultValue; } } + set { + _hasBits0 |= 2; + iceState_ = value; + } + } + /// Gets whether the "ice_state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIceState { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "ice_state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIceState() { + _hasBits0 &= ~2; + } + + /// Field number for the "selected_candidate_pair_id" field. + public const int SelectedCandidatePairIdFieldNumber = 9; + private string selectedCandidatePairId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectedCandidatePairId { + get { return selectedCandidatePairId_; } + set { + selectedCandidatePairId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "local_certificate_id" field. + public const int LocalCertificateIdFieldNumber = 10; + private string localCertificateId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocalCertificateId { + get { return localCertificateId_; } + set { + localCertificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_certificate_id" field. + public const int RemoteCertificateIdFieldNumber = 11; + private string remoteCertificateId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteCertificateId { + get { return remoteCertificateId_; } + set { + remoteCertificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tls_version" field. + public const int TlsVersionFieldNumber = 12; + private string tlsVersion_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TlsVersion { + get { return tlsVersion_; } + set { + tlsVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dtls_cipher" field. + public const int DtlsCipherFieldNumber = 13; + private string dtlsCipher_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DtlsCipher { + get { return dtlsCipher_; } + set { + dtlsCipher_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dtls_role" field. + public const int DtlsRoleFieldNumber = 14; + private global::LiveKit.Proto.DtlsRole dtlsRole_ = global::LiveKit.Proto.DtlsRole.DtlsClient; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DtlsRole DtlsRole { + get { return dtlsRole_; } + set { + dtlsRole_ = value; + } + } + + /// Field number for the "srtp_cipher" field. + public const int SrtpCipherFieldNumber = 15; + private string srtpCipher_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SrtpCipher { + get { return srtpCipher_; } + set { + srtpCipher_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "selected_candidate_pair_changes" field. + public const int SelectedCandidatePairChangesFieldNumber = 16; + private uint selectedCandidatePairChanges_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SelectedCandidatePairChanges { + get { return selectedCandidatePairChanges_; } + set { + selectedCandidatePairChanges_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransportStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransportStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PacketsSent != other.PacketsSent) return false; + if (PacketsReceived != other.PacketsReceived) return false; + if (BytesSent != other.BytesSent) return false; + if (BytesReceived != other.BytesReceived) return false; + if (IceRole != other.IceRole) return false; + if (IceLocalUsernameFragment != other.IceLocalUsernameFragment) return false; + if (DtlsState != other.DtlsState) return false; + if (IceState != other.IceState) return false; + if (SelectedCandidatePairId != other.SelectedCandidatePairId) return false; + if (LocalCertificateId != other.LocalCertificateId) return false; + if (RemoteCertificateId != other.RemoteCertificateId) return false; + if (TlsVersion != other.TlsVersion) return false; + if (DtlsCipher != other.DtlsCipher) return false; + if (DtlsRole != other.DtlsRole) return false; + if (SrtpCipher != other.SrtpCipher) return false; + if (SelectedCandidatePairChanges != other.SelectedCandidatePairChanges) 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 (PacketsSent != 0UL) hash ^= PacketsSent.GetHashCode(); + if (PacketsReceived != 0UL) hash ^= PacketsReceived.GetHashCode(); + if (BytesSent != 0UL) hash ^= BytesSent.GetHashCode(); + if (BytesReceived != 0UL) hash ^= BytesReceived.GetHashCode(); + if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) hash ^= IceRole.GetHashCode(); + if (IceLocalUsernameFragment.Length != 0) hash ^= IceLocalUsernameFragment.GetHashCode(); + if (HasDtlsState) hash ^= DtlsState.GetHashCode(); + if (HasIceState) hash ^= IceState.GetHashCode(); + if (SelectedCandidatePairId.Length != 0) hash ^= SelectedCandidatePairId.GetHashCode(); + if (LocalCertificateId.Length != 0) hash ^= LocalCertificateId.GetHashCode(); + if (RemoteCertificateId.Length != 0) hash ^= RemoteCertificateId.GetHashCode(); + if (TlsVersion.Length != 0) hash ^= TlsVersion.GetHashCode(); + if (DtlsCipher.Length != 0) hash ^= DtlsCipher.GetHashCode(); + if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) hash ^= DtlsRole.GetHashCode(); + if (SrtpCipher.Length != 0) hash ^= SrtpCipher.GetHashCode(); + if (SelectedCandidatePairChanges != 0) hash ^= SelectedCandidatePairChanges.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 (PacketsSent != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsSent); + } + if (PacketsReceived != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PacketsReceived); + } + if (BytesSent != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(BytesSent); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(BytesReceived); + } + if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + output.WriteRawTag(40); + output.WriteEnum((int) IceRole); + } + if (IceLocalUsernameFragment.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IceLocalUsernameFragment); + } + if (HasDtlsState) { + output.WriteRawTag(56); + output.WriteEnum((int) DtlsState); + } + if (HasIceState) { + output.WriteRawTag(64); + output.WriteEnum((int) IceState); + } + if (SelectedCandidatePairId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SelectedCandidatePairId); + } + if (LocalCertificateId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(LocalCertificateId); + } + if (RemoteCertificateId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(RemoteCertificateId); + } + if (TlsVersion.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TlsVersion); + } + if (DtlsCipher.Length != 0) { + output.WriteRawTag(106); + output.WriteString(DtlsCipher); + } + if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + output.WriteRawTag(112); + output.WriteEnum((int) DtlsRole); + } + if (SrtpCipher.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SrtpCipher); + } + if (SelectedCandidatePairChanges != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(SelectedCandidatePairChanges); + } + 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 (PacketsSent != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(PacketsSent); + } + if (PacketsReceived != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(PacketsReceived); + } + if (BytesSent != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(BytesSent); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(32); + output.WriteUInt64(BytesReceived); + } + if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + output.WriteRawTag(40); + output.WriteEnum((int) IceRole); + } + if (IceLocalUsernameFragment.Length != 0) { + output.WriteRawTag(50); + output.WriteString(IceLocalUsernameFragment); + } + if (HasDtlsState) { + output.WriteRawTag(56); + output.WriteEnum((int) DtlsState); + } + if (HasIceState) { + output.WriteRawTag(64); + output.WriteEnum((int) IceState); + } + if (SelectedCandidatePairId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(SelectedCandidatePairId); + } + if (LocalCertificateId.Length != 0) { + output.WriteRawTag(82); + output.WriteString(LocalCertificateId); + } + if (RemoteCertificateId.Length != 0) { + output.WriteRawTag(90); + output.WriteString(RemoteCertificateId); + } + if (TlsVersion.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TlsVersion); + } + if (DtlsCipher.Length != 0) { + output.WriteRawTag(106); + output.WriteString(DtlsCipher); + } + if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + output.WriteRawTag(112); + output.WriteEnum((int) DtlsRole); + } + if (SrtpCipher.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SrtpCipher); + } + if (SelectedCandidatePairChanges != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(SelectedCandidatePairChanges); + } + 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 (PacketsSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); + } + if (PacketsReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); + } + if (BytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); + } + if (BytesReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); + } + if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceRole); + } + if (IceLocalUsernameFragment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IceLocalUsernameFragment); + } + if (HasDtlsState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DtlsState); + } + if (HasIceState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceState); + } + if (SelectedCandidatePairId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectedCandidatePairId); + } + if (LocalCertificateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalCertificateId); + } + if (RemoteCertificateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteCertificateId); + } + if (TlsVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsVersion); + } + if (DtlsCipher.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DtlsCipher); + } + if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DtlsRole); + } + if (SrtpCipher.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SrtpCipher); + } + if (SelectedCandidatePairChanges != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(SelectedCandidatePairChanges); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransportStats other) { + if (other == null) { + return; + } + if (other.PacketsSent != 0UL) { + PacketsSent = other.PacketsSent; + } + if (other.PacketsReceived != 0UL) { + PacketsReceived = other.PacketsReceived; + } + if (other.BytesSent != 0UL) { + BytesSent = other.BytesSent; + } + if (other.BytesReceived != 0UL) { + BytesReceived = other.BytesReceived; + } + if (other.IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + IceRole = other.IceRole; + } + if (other.IceLocalUsernameFragment.Length != 0) { + IceLocalUsernameFragment = other.IceLocalUsernameFragment; + } + if (other.HasDtlsState) { + DtlsState = other.DtlsState; + } + if (other.HasIceState) { + IceState = other.IceState; + } + if (other.SelectedCandidatePairId.Length != 0) { + SelectedCandidatePairId = other.SelectedCandidatePairId; + } + if (other.LocalCertificateId.Length != 0) { + LocalCertificateId = other.LocalCertificateId; + } + if (other.RemoteCertificateId.Length != 0) { + RemoteCertificateId = other.RemoteCertificateId; + } + if (other.TlsVersion.Length != 0) { + TlsVersion = other.TlsVersion; + } + if (other.DtlsCipher.Length != 0) { + DtlsCipher = other.DtlsCipher; + } + if (other.DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + DtlsRole = other.DtlsRole; + } + if (other.SrtpCipher.Length != 0) { + SrtpCipher = other.SrtpCipher; + } + if (other.SelectedCandidatePairChanges != 0) { + SelectedCandidatePairChanges = other.SelectedCandidatePairChanges; + } + _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: { + PacketsSent = input.ReadUInt64(); + break; + } + case 16: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 24: { + BytesSent = input.ReadUInt64(); + break; + } + case 32: { + BytesReceived = input.ReadUInt64(); + break; + } + case 40: { + IceRole = (global::LiveKit.Proto.IceRole) input.ReadEnum(); + break; + } + case 50: { + IceLocalUsernameFragment = input.ReadString(); + break; + } + case 56: { + DtlsState = (global::LiveKit.Proto.DtlsTransportState) input.ReadEnum(); + break; + } + case 64: { + IceState = (global::LiveKit.Proto.IceTransportState) input.ReadEnum(); + break; + } + case 74: { + SelectedCandidatePairId = input.ReadString(); + break; + } + case 82: { + LocalCertificateId = input.ReadString(); + break; + } + case 90: { + RemoteCertificateId = input.ReadString(); + break; + } + case 98: { + TlsVersion = input.ReadString(); + break; + } + case 106: { + DtlsCipher = input.ReadString(); + break; + } + case 112: { + DtlsRole = (global::LiveKit.Proto.DtlsRole) input.ReadEnum(); + break; + } + case 122: { + SrtpCipher = input.ReadString(); + break; + } + case 128: { + SelectedCandidatePairChanges = 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: { + PacketsSent = input.ReadUInt64(); + break; + } + case 16: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 24: { + BytesSent = input.ReadUInt64(); + break; + } + case 32: { + BytesReceived = input.ReadUInt64(); + break; + } + case 40: { + IceRole = (global::LiveKit.Proto.IceRole) input.ReadEnum(); + break; + } + case 50: { + IceLocalUsernameFragment = input.ReadString(); + break; + } + case 56: { + DtlsState = (global::LiveKit.Proto.DtlsTransportState) input.ReadEnum(); + break; + } + case 64: { + IceState = (global::LiveKit.Proto.IceTransportState) input.ReadEnum(); + break; + } + case 74: { + SelectedCandidatePairId = input.ReadString(); + break; + } + case 82: { + LocalCertificateId = input.ReadString(); + break; + } + case 90: { + RemoteCertificateId = input.ReadString(); + break; + } + case 98: { + TlsVersion = input.ReadString(); + break; + } + case 106: { + DtlsCipher = input.ReadString(); + break; + } + case 112: { + DtlsRole = (global::LiveKit.Proto.DtlsRole) input.ReadEnum(); + break; + } + case 122: { + SrtpCipher = input.ReadString(); + break; + } + case 128: { + SelectedCandidatePairChanges = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CandidatePairStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CandidatePairStats()); + 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.StatsReflection.Descriptor.MessageTypes[17]; } + } + + [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 CandidatePairStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CandidatePairStats(CandidatePairStats other) : this() { + _hasBits0 = other._hasBits0; + transportId_ = other.transportId_; + localCandidateId_ = other.localCandidateId_; + remoteCandidateId_ = other.remoteCandidateId_; + state_ = other.state_; + nominated_ = other.nominated_; + packetsSent_ = other.packetsSent_; + packetsReceived_ = other.packetsReceived_; + bytesSent_ = other.bytesSent_; + bytesReceived_ = other.bytesReceived_; + lastPacketSentTimestamp_ = other.lastPacketSentTimestamp_; + lastPacketReceivedTimestamp_ = other.lastPacketReceivedTimestamp_; + totalRoundTripTime_ = other.totalRoundTripTime_; + currentRoundTripTime_ = other.currentRoundTripTime_; + availableOutgoingBitrate_ = other.availableOutgoingBitrate_; + availableIncomingBitrate_ = other.availableIncomingBitrate_; + requestsReceived_ = other.requestsReceived_; + requestsSent_ = other.requestsSent_; + responsesReceived_ = other.responsesReceived_; + responsesSent_ = other.responsesSent_; + consentRequestsSent_ = other.consentRequestsSent_; + packetsDiscardedOnSend_ = other.packetsDiscardedOnSend_; + bytesDiscardedOnSend_ = other.bytesDiscardedOnSend_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CandidatePairStats Clone() { + return new CandidatePairStats(this); + } + + /// Field number for the "transport_id" field. + public const int TransportIdFieldNumber = 1; + private string transportId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TransportId { + get { return transportId_; } + set { + transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "local_candidate_id" field. + public const int LocalCandidateIdFieldNumber = 2; + private string localCandidateId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LocalCandidateId { + get { return localCandidateId_; } + set { + localCandidateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_candidate_id" field. + public const int RemoteCandidateIdFieldNumber = 3; + private string remoteCandidateId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteCandidateId { + get { return remoteCandidateId_; } + set { + remoteCandidateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private readonly static global::LiveKit.Proto.IceCandidatePairState StateDefaultValue = global::LiveKit.Proto.IceCandidatePairState.PairFrozen; + + private global::LiveKit.Proto.IceCandidatePairState state_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceCandidatePairState State { + get { if ((_hasBits0 & 1) != 0) { return state_; } else { return StateDefaultValue; } } + set { + _hasBits0 |= 1; + state_ = value; + } + } + /// Gets whether the "state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasState { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearState() { + _hasBits0 &= ~1; + } + + /// Field number for the "nominated" field. + public const int NominatedFieldNumber = 5; + private bool nominated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Nominated { + get { return nominated_; } + set { + nominated_ = value; + } + } + + /// Field number for the "packets_sent" field. + public const int PacketsSentFieldNumber = 6; + private ulong packetsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsSent { + get { return packetsSent_; } + set { + packetsSent_ = value; + } + } + + /// Field number for the "packets_received" field. + public const int PacketsReceivedFieldNumber = 7; + private ulong packetsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PacketsReceived { + get { return packetsReceived_; } + set { + packetsReceived_ = value; + } + } + + /// Field number for the "bytes_sent" field. + public const int BytesSentFieldNumber = 8; + private ulong bytesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesSent { + get { return bytesSent_; } + set { + bytesSent_ = value; + } + } + + /// Field number for the "bytes_received" field. + public const int BytesReceivedFieldNumber = 9; + private ulong bytesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesReceived { + get { return bytesReceived_; } + set { + bytesReceived_ = value; + } + } + + /// Field number for the "last_packet_sent_timestamp" field. + public const int LastPacketSentTimestampFieldNumber = 10; + private double lastPacketSentTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LastPacketSentTimestamp { + get { return lastPacketSentTimestamp_; } + set { + lastPacketSentTimestamp_ = value; + } + } + + /// Field number for the "last_packet_received_timestamp" field. + public const int LastPacketReceivedTimestampFieldNumber = 11; + private double lastPacketReceivedTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double LastPacketReceivedTimestamp { + get { return lastPacketReceivedTimestamp_; } + set { + lastPacketReceivedTimestamp_ = value; + } + } + + /// Field number for the "total_round_trip_time" field. + public const int TotalRoundTripTimeFieldNumber = 12; + private double totalRoundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double TotalRoundTripTime { + get { return totalRoundTripTime_; } + set { + totalRoundTripTime_ = value; + } + } + + /// Field number for the "current_round_trip_time" field. + public const int CurrentRoundTripTimeFieldNumber = 13; + private double currentRoundTripTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double CurrentRoundTripTime { + get { return currentRoundTripTime_; } + set { + currentRoundTripTime_ = value; + } + } + + /// Field number for the "available_outgoing_bitrate" field. + public const int AvailableOutgoingBitrateFieldNumber = 14; + private double availableOutgoingBitrate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AvailableOutgoingBitrate { + get { return availableOutgoingBitrate_; } + set { + availableOutgoingBitrate_ = value; + } + } + + /// Field number for the "available_incoming_bitrate" field. + public const int AvailableIncomingBitrateFieldNumber = 15; + private double availableIncomingBitrate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AvailableIncomingBitrate { + get { return availableIncomingBitrate_; } + set { + availableIncomingBitrate_ = value; + } + } + + /// Field number for the "requests_received" field. + public const int RequestsReceivedFieldNumber = 16; + private ulong requestsReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RequestsReceived { + get { return requestsReceived_; } + set { + requestsReceived_ = value; + } + } + + /// Field number for the "requests_sent" field. + public const int RequestsSentFieldNumber = 17; + private ulong requestsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RequestsSent { + get { return requestsSent_; } + set { + requestsSent_ = value; + } + } + + /// Field number for the "responses_received" field. + public const int ResponsesReceivedFieldNumber = 18; + private ulong responsesReceived_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ResponsesReceived { + get { return responsesReceived_; } + set { + responsesReceived_ = value; + } + } + + /// Field number for the "responses_sent" field. + public const int ResponsesSentFieldNumber = 19; + private ulong responsesSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ResponsesSent { + get { return responsesSent_; } + set { + responsesSent_ = value; + } + } + + /// Field number for the "consent_requests_sent" field. + public const int ConsentRequestsSentFieldNumber = 20; + private ulong consentRequestsSent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ConsentRequestsSent { + get { return consentRequestsSent_; } + set { + consentRequestsSent_ = value; + } + } + + /// Field number for the "packets_discarded_on_send" field. + public const int PacketsDiscardedOnSendFieldNumber = 21; + private uint packetsDiscardedOnSend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint PacketsDiscardedOnSend { + get { return packetsDiscardedOnSend_; } + set { + packetsDiscardedOnSend_ = value; + } + } + + /// Field number for the "bytes_discarded_on_send" field. + public const int BytesDiscardedOnSendFieldNumber = 22; + private ulong bytesDiscardedOnSend_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong BytesDiscardedOnSend { + get { return bytesDiscardedOnSend_; } + set { + bytesDiscardedOnSend_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CandidatePairStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CandidatePairStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TransportId != other.TransportId) return false; + if (LocalCandidateId != other.LocalCandidateId) return false; + if (RemoteCandidateId != other.RemoteCandidateId) return false; + if (State != other.State) return false; + if (Nominated != other.Nominated) return false; + if (PacketsSent != other.PacketsSent) return false; + if (PacketsReceived != other.PacketsReceived) return false; + if (BytesSent != other.BytesSent) return false; + if (BytesReceived != other.BytesReceived) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LastPacketSentTimestamp, other.LastPacketSentTimestamp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LastPacketReceivedTimestamp, other.LastPacketReceivedTimestamp)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TotalRoundTripTime, other.TotalRoundTripTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CurrentRoundTripTime, other.CurrentRoundTripTime)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AvailableOutgoingBitrate, other.AvailableOutgoingBitrate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AvailableIncomingBitrate, other.AvailableIncomingBitrate)) return false; + if (RequestsReceived != other.RequestsReceived) return false; + if (RequestsSent != other.RequestsSent) return false; + if (ResponsesReceived != other.ResponsesReceived) return false; + if (ResponsesSent != other.ResponsesSent) return false; + if (ConsentRequestsSent != other.ConsentRequestsSent) return false; + if (PacketsDiscardedOnSend != other.PacketsDiscardedOnSend) return false; + if (BytesDiscardedOnSend != other.BytesDiscardedOnSend) 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 (TransportId.Length != 0) hash ^= TransportId.GetHashCode(); + if (LocalCandidateId.Length != 0) hash ^= LocalCandidateId.GetHashCode(); + if (RemoteCandidateId.Length != 0) hash ^= RemoteCandidateId.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); + if (Nominated != false) hash ^= Nominated.GetHashCode(); + if (PacketsSent != 0UL) hash ^= PacketsSent.GetHashCode(); + if (PacketsReceived != 0UL) hash ^= PacketsReceived.GetHashCode(); + if (BytesSent != 0UL) hash ^= BytesSent.GetHashCode(); + if (BytesReceived != 0UL) hash ^= BytesReceived.GetHashCode(); + if (LastPacketSentTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketSentTimestamp); + if (LastPacketReceivedTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketReceivedTimestamp); + if (TotalRoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (CurrentRoundTripTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CurrentRoundTripTime); + if (AvailableOutgoingBitrate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvailableOutgoingBitrate); + if (AvailableIncomingBitrate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvailableIncomingBitrate); + if (RequestsReceived != 0UL) hash ^= RequestsReceived.GetHashCode(); + if (RequestsSent != 0UL) hash ^= RequestsSent.GetHashCode(); + if (ResponsesReceived != 0UL) hash ^= ResponsesReceived.GetHashCode(); + if (ResponsesSent != 0UL) hash ^= ResponsesSent.GetHashCode(); + if (ConsentRequestsSent != 0UL) hash ^= ConsentRequestsSent.GetHashCode(); + if (PacketsDiscardedOnSend != 0) hash ^= PacketsDiscardedOnSend.GetHashCode(); + if (BytesDiscardedOnSend != 0UL) hash ^= BytesDiscardedOnSend.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 (TransportId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TransportId); + } + if (LocalCandidateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LocalCandidateId); + } + if (RemoteCandidateId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteCandidateId); + } + if (HasState) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (Nominated != false) { + output.WriteRawTag(40); + output.WriteBool(Nominated); + } + if (PacketsSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(PacketsSent); + } + if (PacketsReceived != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(PacketsReceived); + } + if (BytesSent != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(BytesSent); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(BytesReceived); + } + if (LastPacketSentTimestamp != 0D) { + output.WriteRawTag(81); + output.WriteDouble(LastPacketSentTimestamp); + } + if (LastPacketReceivedTimestamp != 0D) { + output.WriteRawTag(89); + output.WriteDouble(LastPacketReceivedTimestamp); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(97); + output.WriteDouble(TotalRoundTripTime); + } + if (CurrentRoundTripTime != 0D) { + output.WriteRawTag(105); + output.WriteDouble(CurrentRoundTripTime); + } + if (AvailableOutgoingBitrate != 0D) { + output.WriteRawTag(113); + output.WriteDouble(AvailableOutgoingBitrate); + } + if (AvailableIncomingBitrate != 0D) { + output.WriteRawTag(121); + output.WriteDouble(AvailableIncomingBitrate); + } + if (RequestsReceived != 0UL) { + output.WriteRawTag(128, 1); + output.WriteUInt64(RequestsReceived); + } + if (RequestsSent != 0UL) { + output.WriteRawTag(136, 1); + output.WriteUInt64(RequestsSent); + } + if (ResponsesReceived != 0UL) { + output.WriteRawTag(144, 1); + output.WriteUInt64(ResponsesReceived); + } + if (ResponsesSent != 0UL) { + output.WriteRawTag(152, 1); + output.WriteUInt64(ResponsesSent); + } + if (ConsentRequestsSent != 0UL) { + output.WriteRawTag(160, 1); + output.WriteUInt64(ConsentRequestsSent); + } + if (PacketsDiscardedOnSend != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(PacketsDiscardedOnSend); + } + if (BytesDiscardedOnSend != 0UL) { + output.WriteRawTag(176, 1); + output.WriteUInt64(BytesDiscardedOnSend); + } + 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 (TransportId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TransportId); + } + if (LocalCandidateId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(LocalCandidateId); + } + if (RemoteCandidateId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RemoteCandidateId); + } + if (HasState) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (Nominated != false) { + output.WriteRawTag(40); + output.WriteBool(Nominated); + } + if (PacketsSent != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(PacketsSent); + } + if (PacketsReceived != 0UL) { + output.WriteRawTag(56); + output.WriteUInt64(PacketsReceived); + } + if (BytesSent != 0UL) { + output.WriteRawTag(64); + output.WriteUInt64(BytesSent); + } + if (BytesReceived != 0UL) { + output.WriteRawTag(72); + output.WriteUInt64(BytesReceived); + } + if (LastPacketSentTimestamp != 0D) { + output.WriteRawTag(81); + output.WriteDouble(LastPacketSentTimestamp); + } + if (LastPacketReceivedTimestamp != 0D) { + output.WriteRawTag(89); + output.WriteDouble(LastPacketReceivedTimestamp); + } + if (TotalRoundTripTime != 0D) { + output.WriteRawTag(97); + output.WriteDouble(TotalRoundTripTime); + } + if (CurrentRoundTripTime != 0D) { + output.WriteRawTag(105); + output.WriteDouble(CurrentRoundTripTime); + } + if (AvailableOutgoingBitrate != 0D) { + output.WriteRawTag(113); + output.WriteDouble(AvailableOutgoingBitrate); + } + if (AvailableIncomingBitrate != 0D) { + output.WriteRawTag(121); + output.WriteDouble(AvailableIncomingBitrate); + } + if (RequestsReceived != 0UL) { + output.WriteRawTag(128, 1); + output.WriteUInt64(RequestsReceived); + } + if (RequestsSent != 0UL) { + output.WriteRawTag(136, 1); + output.WriteUInt64(RequestsSent); + } + if (ResponsesReceived != 0UL) { + output.WriteRawTag(144, 1); + output.WriteUInt64(ResponsesReceived); + } + if (ResponsesSent != 0UL) { + output.WriteRawTag(152, 1); + output.WriteUInt64(ResponsesSent); + } + if (ConsentRequestsSent != 0UL) { + output.WriteRawTag(160, 1); + output.WriteUInt64(ConsentRequestsSent); + } + if (PacketsDiscardedOnSend != 0) { + output.WriteRawTag(168, 1); + output.WriteUInt32(PacketsDiscardedOnSend); + } + if (BytesDiscardedOnSend != 0UL) { + output.WriteRawTag(176, 1); + output.WriteUInt64(BytesDiscardedOnSend); + } + 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 (TransportId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); + } + if (LocalCandidateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalCandidateId); + } + if (RemoteCandidateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteCandidateId); + } + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (Nominated != false) { + size += 1 + 1; + } + if (PacketsSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); + } + if (PacketsReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); + } + if (BytesSent != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); + } + if (BytesReceived != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); + } + if (LastPacketSentTimestamp != 0D) { + size += 1 + 8; + } + if (LastPacketReceivedTimestamp != 0D) { + size += 1 + 8; + } + if (TotalRoundTripTime != 0D) { + size += 1 + 8; + } + if (CurrentRoundTripTime != 0D) { + size += 1 + 8; + } + if (AvailableOutgoingBitrate != 0D) { + size += 1 + 8; + } + if (AvailableIncomingBitrate != 0D) { + size += 1 + 8; + } + if (RequestsReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RequestsReceived); + } + if (RequestsSent != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RequestsSent); + } + if (ResponsesReceived != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ResponsesReceived); + } + if (ResponsesSent != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ResponsesSent); + } + if (ConsentRequestsSent != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConsentRequestsSent); + } + if (PacketsDiscardedOnSend != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PacketsDiscardedOnSend); + } + if (BytesDiscardedOnSend != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(BytesDiscardedOnSend); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CandidatePairStats other) { + if (other == null) { + return; + } + if (other.TransportId.Length != 0) { + TransportId = other.TransportId; + } + if (other.LocalCandidateId.Length != 0) { + LocalCandidateId = other.LocalCandidateId; + } + if (other.RemoteCandidateId.Length != 0) { + RemoteCandidateId = other.RemoteCandidateId; + } + if (other.HasState) { + State = other.State; + } + if (other.Nominated != false) { + Nominated = other.Nominated; + } + if (other.PacketsSent != 0UL) { + PacketsSent = other.PacketsSent; + } + if (other.PacketsReceived != 0UL) { + PacketsReceived = other.PacketsReceived; + } + if (other.BytesSent != 0UL) { + BytesSent = other.BytesSent; + } + if (other.BytesReceived != 0UL) { + BytesReceived = other.BytesReceived; + } + if (other.LastPacketSentTimestamp != 0D) { + LastPacketSentTimestamp = other.LastPacketSentTimestamp; + } + if (other.LastPacketReceivedTimestamp != 0D) { + LastPacketReceivedTimestamp = other.LastPacketReceivedTimestamp; + } + if (other.TotalRoundTripTime != 0D) { + TotalRoundTripTime = other.TotalRoundTripTime; + } + if (other.CurrentRoundTripTime != 0D) { + CurrentRoundTripTime = other.CurrentRoundTripTime; + } + if (other.AvailableOutgoingBitrate != 0D) { + AvailableOutgoingBitrate = other.AvailableOutgoingBitrate; + } + if (other.AvailableIncomingBitrate != 0D) { + AvailableIncomingBitrate = other.AvailableIncomingBitrate; + } + if (other.RequestsReceived != 0UL) { + RequestsReceived = other.RequestsReceived; + } + if (other.RequestsSent != 0UL) { + RequestsSent = other.RequestsSent; + } + if (other.ResponsesReceived != 0UL) { + ResponsesReceived = other.ResponsesReceived; + } + if (other.ResponsesSent != 0UL) { + ResponsesSent = other.ResponsesSent; + } + if (other.ConsentRequestsSent != 0UL) { + ConsentRequestsSent = other.ConsentRequestsSent; + } + if (other.PacketsDiscardedOnSend != 0) { + PacketsDiscardedOnSend = other.PacketsDiscardedOnSend; + } + if (other.BytesDiscardedOnSend != 0UL) { + BytesDiscardedOnSend = other.BytesDiscardedOnSend; + } + _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: { + TransportId = input.ReadString(); + break; + } + case 18: { + LocalCandidateId = input.ReadString(); + break; + } + case 26: { + RemoteCandidateId = input.ReadString(); + break; + } + case 32: { + State = (global::LiveKit.Proto.IceCandidatePairState) input.ReadEnum(); + break; + } + case 40: { + Nominated = input.ReadBool(); + break; + } + case 48: { + PacketsSent = input.ReadUInt64(); + break; + } + case 56: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 64: { + BytesSent = input.ReadUInt64(); + break; + } + case 72: { + BytesReceived = input.ReadUInt64(); + break; + } + case 81: { + LastPacketSentTimestamp = input.ReadDouble(); + break; + } + case 89: { + LastPacketReceivedTimestamp = input.ReadDouble(); + break; + } + case 97: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 105: { + CurrentRoundTripTime = input.ReadDouble(); + break; + } + case 113: { + AvailableOutgoingBitrate = input.ReadDouble(); + break; + } + case 121: { + AvailableIncomingBitrate = input.ReadDouble(); + break; + } + case 128: { + RequestsReceived = input.ReadUInt64(); + break; + } + case 136: { + RequestsSent = input.ReadUInt64(); + break; + } + case 144: { + ResponsesReceived = input.ReadUInt64(); + break; + } + case 152: { + ResponsesSent = input.ReadUInt64(); + break; + } + case 160: { + ConsentRequestsSent = input.ReadUInt64(); + break; + } + case 168: { + PacketsDiscardedOnSend = input.ReadUInt32(); + break; + } + case 176: { + BytesDiscardedOnSend = 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 10: { + TransportId = input.ReadString(); + break; + } + case 18: { + LocalCandidateId = input.ReadString(); + break; + } + case 26: { + RemoteCandidateId = input.ReadString(); + break; + } + case 32: { + State = (global::LiveKit.Proto.IceCandidatePairState) input.ReadEnum(); + break; + } + case 40: { + Nominated = input.ReadBool(); + break; + } + case 48: { + PacketsSent = input.ReadUInt64(); + break; + } + case 56: { + PacketsReceived = input.ReadUInt64(); + break; + } + case 64: { + BytesSent = input.ReadUInt64(); + break; + } + case 72: { + BytesReceived = input.ReadUInt64(); + break; + } + case 81: { + LastPacketSentTimestamp = input.ReadDouble(); + break; + } + case 89: { + LastPacketReceivedTimestamp = input.ReadDouble(); + break; + } + case 97: { + TotalRoundTripTime = input.ReadDouble(); + break; + } + case 105: { + CurrentRoundTripTime = input.ReadDouble(); + break; + } + case 113: { + AvailableOutgoingBitrate = input.ReadDouble(); + break; + } + case 121: { + AvailableIncomingBitrate = input.ReadDouble(); + break; + } + case 128: { + RequestsReceived = input.ReadUInt64(); + break; + } + case 136: { + RequestsSent = input.ReadUInt64(); + break; + } + case 144: { + ResponsesReceived = input.ReadUInt64(); + break; + } + case 152: { + ResponsesSent = input.ReadUInt64(); + break; + } + case 160: { + ConsentRequestsSent = input.ReadUInt64(); + break; + } + case 168: { + PacketsDiscardedOnSend = input.ReadUInt32(); + break; + } + case 176: { + BytesDiscardedOnSend = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class IceCandidateStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IceCandidateStats()); + 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.StatsReflection.Descriptor.MessageTypes[18]; } + } + + [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 IceCandidateStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IceCandidateStats(IceCandidateStats other) : this() { + _hasBits0 = other._hasBits0; + transportId_ = other.transportId_; + address_ = other.address_; + port_ = other.port_; + protocol_ = other.protocol_; + candidateType_ = other.candidateType_; + priority_ = other.priority_; + url_ = other.url_; + relayProtocol_ = other.relayProtocol_; + foundation_ = other.foundation_; + relatedAddress_ = other.relatedAddress_; + relatedPort_ = other.relatedPort_; + usernameFragment_ = other.usernameFragment_; + tcpType_ = other.tcpType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public IceCandidateStats Clone() { + return new IceCandidateStats(this); + } + + /// Field number for the "transport_id" field. + public const int TransportIdFieldNumber = 1; + private string transportId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TransportId { + get { return transportId_; } + set { + transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private string address_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 3; + private int port_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "protocol" field. + public const int ProtocolFieldNumber = 4; + private string protocol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Protocol { + get { return protocol_; } + set { + protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "candidate_type" field. + public const int CandidateTypeFieldNumber = 5; + private readonly static global::LiveKit.Proto.IceCandidateType CandidateTypeDefaultValue = global::LiveKit.Proto.IceCandidateType.Host; + + private global::LiveKit.Proto.IceCandidateType candidateType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceCandidateType CandidateType { + get { if ((_hasBits0 & 1) != 0) { return candidateType_; } else { return CandidateTypeDefaultValue; } } + set { + _hasBits0 |= 1; + candidateType_ = value; + } + } + /// Gets whether the "candidate_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCandidateType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "candidate_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCandidateType() { + _hasBits0 &= ~1; + } + + /// Field number for the "priority" field. + public const int PriorityFieldNumber = 6; + private int priority_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Priority { + get { return priority_; } + set { + priority_ = value; + } + } + + /// Field number for the "url" field. + public const int UrlFieldNumber = 7; + private string url_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Url { + get { return url_; } + set { + url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "relay_protocol" field. + public const int RelayProtocolFieldNumber = 8; + private readonly static global::LiveKit.Proto.IceServerTransportProtocol RelayProtocolDefaultValue = global::LiveKit.Proto.IceServerTransportProtocol.TransportUdp; + + private global::LiveKit.Proto.IceServerTransportProtocol relayProtocol_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceServerTransportProtocol RelayProtocol { + get { if ((_hasBits0 & 2) != 0) { return relayProtocol_; } else { return RelayProtocolDefaultValue; } } + set { + _hasBits0 |= 2; + relayProtocol_ = value; + } + } + /// Gets whether the "relay_protocol" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRelayProtocol { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "relay_protocol" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRelayProtocol() { + _hasBits0 &= ~2; + } + + /// Field number for the "foundation" field. + public const int FoundationFieldNumber = 9; + private string foundation_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Foundation { + get { return foundation_; } + set { + foundation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "related_address" field. + public const int RelatedAddressFieldNumber = 10; + private string relatedAddress_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RelatedAddress { + get { return relatedAddress_; } + set { + relatedAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "related_port" field. + public const int RelatedPortFieldNumber = 11; + private int relatedPort_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RelatedPort { + get { return relatedPort_; } + set { + relatedPort_ = value; + } + } + + /// Field number for the "username_fragment" field. + public const int UsernameFragmentFieldNumber = 12; + private string usernameFragment_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UsernameFragment { + get { return usernameFragment_; } + set { + usernameFragment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tcp_type" field. + public const int TcpTypeFieldNumber = 13; + private readonly static global::LiveKit.Proto.IceTcpCandidateType TcpTypeDefaultValue = global::LiveKit.Proto.IceTcpCandidateType.CandidateActive; + + private global::LiveKit.Proto.IceTcpCandidateType tcpType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.IceTcpCandidateType TcpType { + get { if ((_hasBits0 & 4) != 0) { return tcpType_; } else { return TcpTypeDefaultValue; } } + set { + _hasBits0 |= 4; + tcpType_ = value; + } + } + /// Gets whether the "tcp_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTcpType { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "tcp_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTcpType() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as IceCandidateStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(IceCandidateStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TransportId != other.TransportId) return false; + if (Address != other.Address) return false; + if (Port != other.Port) return false; + if (Protocol != other.Protocol) return false; + if (CandidateType != other.CandidateType) return false; + if (Priority != other.Priority) return false; + if (Url != other.Url) return false; + if (RelayProtocol != other.RelayProtocol) return false; + if (Foundation != other.Foundation) return false; + if (RelatedAddress != other.RelatedAddress) return false; + if (RelatedPort != other.RelatedPort) return false; + if (UsernameFragment != other.UsernameFragment) return false; + if (TcpType != other.TcpType) 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 (TransportId.Length != 0) hash ^= TransportId.GetHashCode(); + if (Address.Length != 0) hash ^= Address.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + if (Protocol.Length != 0) hash ^= Protocol.GetHashCode(); + if (HasCandidateType) hash ^= CandidateType.GetHashCode(); + if (Priority != 0) hash ^= Priority.GetHashCode(); + if (Url.Length != 0) hash ^= Url.GetHashCode(); + if (HasRelayProtocol) hash ^= RelayProtocol.GetHashCode(); + if (Foundation.Length != 0) hash ^= Foundation.GetHashCode(); + if (RelatedAddress.Length != 0) hash ^= RelatedAddress.GetHashCode(); + if (RelatedPort != 0) hash ^= RelatedPort.GetHashCode(); + if (UsernameFragment.Length != 0) hash ^= UsernameFragment.GetHashCode(); + if (HasTcpType) hash ^= TcpType.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 (TransportId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TransportId); + } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Address); + } + if (Port != 0) { + output.WriteRawTag(24); + output.WriteInt32(Port); + } + if (Protocol.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Protocol); + } + if (HasCandidateType) { + output.WriteRawTag(40); + output.WriteEnum((int) CandidateType); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + if (Url.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Url); + } + if (HasRelayProtocol) { + output.WriteRawTag(64); + output.WriteEnum((int) RelayProtocol); + } + if (Foundation.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Foundation); + } + if (RelatedAddress.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RelatedAddress); + } + if (RelatedPort != 0) { + output.WriteRawTag(88); + output.WriteInt32(RelatedPort); + } + if (UsernameFragment.Length != 0) { + output.WriteRawTag(98); + output.WriteString(UsernameFragment); + } + if (HasTcpType) { + output.WriteRawTag(104); + output.WriteEnum((int) TcpType); + } + 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 (TransportId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TransportId); + } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Address); + } + if (Port != 0) { + output.WriteRawTag(24); + output.WriteInt32(Port); + } + if (Protocol.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Protocol); + } + if (HasCandidateType) { + output.WriteRawTag(40); + output.WriteEnum((int) CandidateType); + } + if (Priority != 0) { + output.WriteRawTag(48); + output.WriteInt32(Priority); + } + if (Url.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Url); + } + if (HasRelayProtocol) { + output.WriteRawTag(64); + output.WriteEnum((int) RelayProtocol); + } + if (Foundation.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Foundation); + } + if (RelatedAddress.Length != 0) { + output.WriteRawTag(82); + output.WriteString(RelatedAddress); + } + if (RelatedPort != 0) { + output.WriteRawTag(88); + output.WriteInt32(RelatedPort); + } + if (UsernameFragment.Length != 0) { + output.WriteRawTag(98); + output.WriteString(UsernameFragment); + } + if (HasTcpType) { + output.WriteRawTag(104); + output.WriteEnum((int) TcpType); + } + 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 (TransportId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); + } + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (Protocol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); + } + if (HasCandidateType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CandidateType); + } + if (Priority != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); + } + if (Url.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); + } + if (HasRelayProtocol) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RelayProtocol); + } + if (Foundation.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Foundation); + } + if (RelatedAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RelatedAddress); + } + if (RelatedPort != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RelatedPort); + } + if (UsernameFragment.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UsernameFragment); + } + if (HasTcpType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TcpType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(IceCandidateStats other) { + if (other == null) { + return; + } + if (other.TransportId.Length != 0) { + TransportId = other.TransportId; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.Protocol.Length != 0) { + Protocol = other.Protocol; + } + if (other.HasCandidateType) { + CandidateType = other.CandidateType; + } + if (other.Priority != 0) { + Priority = other.Priority; + } + if (other.Url.Length != 0) { + Url = other.Url; + } + if (other.HasRelayProtocol) { + RelayProtocol = other.RelayProtocol; + } + if (other.Foundation.Length != 0) { + Foundation = other.Foundation; + } + if (other.RelatedAddress.Length != 0) { + RelatedAddress = other.RelatedAddress; + } + if (other.RelatedPort != 0) { + RelatedPort = other.RelatedPort; + } + if (other.UsernameFragment.Length != 0) { + UsernameFragment = other.UsernameFragment; + } + if (other.HasTcpType) { + TcpType = other.TcpType; + } + _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: { + TransportId = input.ReadString(); + break; + } + case 18: { + Address = input.ReadString(); + break; + } + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + Protocol = input.ReadString(); + break; + } + case 40: { + CandidateType = (global::LiveKit.Proto.IceCandidateType) input.ReadEnum(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 58: { + Url = input.ReadString(); + break; + } + case 64: { + RelayProtocol = (global::LiveKit.Proto.IceServerTransportProtocol) input.ReadEnum(); + break; + } + case 74: { + Foundation = input.ReadString(); + break; + } + case 82: { + RelatedAddress = input.ReadString(); + break; + } + case 88: { + RelatedPort = input.ReadInt32(); + break; + } + case 98: { + UsernameFragment = input.ReadString(); + break; + } + case 104: { + TcpType = (global::LiveKit.Proto.IceTcpCandidateType) 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: { + TransportId = input.ReadString(); + break; + } + case 18: { + Address = input.ReadString(); + break; + } + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + Protocol = input.ReadString(); + break; + } + case 40: { + CandidateType = (global::LiveKit.Proto.IceCandidateType) input.ReadEnum(); + break; + } + case 48: { + Priority = input.ReadInt32(); + break; + } + case 58: { + Url = input.ReadString(); + break; + } + case 64: { + RelayProtocol = (global::LiveKit.Proto.IceServerTransportProtocol) input.ReadEnum(); + break; + } + case 74: { + Foundation = input.ReadString(); + break; + } + case 82: { + RelatedAddress = input.ReadString(); + break; + } + case 88: { + RelatedPort = input.ReadInt32(); + break; + } + case 98: { + UsernameFragment = input.ReadString(); + break; + } + case 104: { + TcpType = (global::LiveKit.Proto.IceTcpCandidateType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CertificateStats : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateStats()); + 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.StatsReflection.Descriptor.MessageTypes[19]; } + } + + [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 CertificateStats() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateStats(CertificateStats other) : this() { + fingerprint_ = other.fingerprint_; + fingerprintAlgorithm_ = other.fingerprintAlgorithm_; + base64Certificate_ = other.base64Certificate_; + issuerCertificateId_ = other.issuerCertificateId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateStats Clone() { + return new CertificateStats(this); + } + + /// Field number for the "fingerprint" field. + public const int FingerprintFieldNumber = 1; + private string fingerprint_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Fingerprint { + get { return fingerprint_; } + set { + fingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "fingerprint_algorithm" field. + public const int FingerprintAlgorithmFieldNumber = 2; + private string fingerprintAlgorithm_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FingerprintAlgorithm { + get { return fingerprintAlgorithm_; } + set { + fingerprintAlgorithm_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "base64_certificate" field. + public const int Base64CertificateFieldNumber = 3; + private string base64Certificate_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Base64Certificate { + get { return base64Certificate_; } + set { + base64Certificate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "issuer_certificate_id" field. + public const int IssuerCertificateIdFieldNumber = 4; + private string issuerCertificateId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IssuerCertificateId { + get { return issuerCertificateId_; } + set { + issuerCertificateId_ = 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 CertificateStats); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateStats other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Fingerprint != other.Fingerprint) return false; + if (FingerprintAlgorithm != other.FingerprintAlgorithm) return false; + if (Base64Certificate != other.Base64Certificate) return false; + if (IssuerCertificateId != other.IssuerCertificateId) 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 (Fingerprint.Length != 0) hash ^= Fingerprint.GetHashCode(); + if (FingerprintAlgorithm.Length != 0) hash ^= FingerprintAlgorithm.GetHashCode(); + if (Base64Certificate.Length != 0) hash ^= Base64Certificate.GetHashCode(); + if (IssuerCertificateId.Length != 0) hash ^= IssuerCertificateId.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 (Fingerprint.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Fingerprint); + } + if (FingerprintAlgorithm.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FingerprintAlgorithm); + } + if (Base64Certificate.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Base64Certificate); + } + if (IssuerCertificateId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IssuerCertificateId); + } + 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 (Fingerprint.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Fingerprint); + } + if (FingerprintAlgorithm.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FingerprintAlgorithm); + } + if (Base64Certificate.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Base64Certificate); + } + if (IssuerCertificateId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(IssuerCertificateId); + } + 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 (Fingerprint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Fingerprint); + } + if (FingerprintAlgorithm.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FingerprintAlgorithm); + } + if (Base64Certificate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Base64Certificate); + } + if (IssuerCertificateId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IssuerCertificateId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateStats other) { + if (other == null) { + return; + } + if (other.Fingerprint.Length != 0) { + Fingerprint = other.Fingerprint; + } + if (other.FingerprintAlgorithm.Length != 0) { + FingerprintAlgorithm = other.FingerprintAlgorithm; + } + if (other.Base64Certificate.Length != 0) { + Base64Certificate = other.Base64Certificate; + } + if (other.IssuerCertificateId.Length != 0) { + IssuerCertificateId = other.IssuerCertificateId; + } + _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: { + Fingerprint = input.ReadString(); + break; + } + case 18: { + FingerprintAlgorithm = input.ReadString(); + break; + } + case 26: { + Base64Certificate = input.ReadString(); + break; + } + case 34: { + IssuerCertificateId = 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: { + Fingerprint = input.ReadString(); + break; + } + case 18: { + FingerprintAlgorithm = input.ReadString(); + break; + } + case 26: { + Base64Certificate = input.ReadString(); + break; + } + case 34: { + IssuerCertificateId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Runtime/Scripts/Proto/Stats.cs.meta b/Runtime/Scripts/Proto/Stats.cs.meta new file mode 100644 index 0000000..7360fb6 --- /dev/null +++ b/Runtime/Scripts/Proto/Stats.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d7d5cd21e710a343b27fe5606eeefc2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Scripts/Proto/Track.cs b/Runtime/Scripts/Proto/Track.cs index 6cfe72b..6fc5b61 100644 --- a/Runtime/Scripts/Proto/Track.cs +++ b/Runtime/Scripts/Proto/Track.cs @@ -24,49 +24,55 @@ public static partial class TrackReflection { static TrackReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgt0cmFjay5wcm90bxIHbGl2ZWtpdBoMaGFuZGxlLnByb3RvGhF2aWRlb19m", - "cmFtZS5wcm90bxoRYXVkaW9fZnJhbWUucHJvdG8iQwoTVmlkZW9DYXB0dXJl", - "T3B0aW9ucxIsCgpyZXNvbHV0aW9uGAEgASgLMhgubGl2ZWtpdC5WaWRlb1Jl", - "c29sdXRpb24iZgoTQXVkaW9DYXB0dXJlT3B0aW9ucxIZChFlY2hvX2NhbmNl", - "bGxhdGlvbhgBIAEoCBIZChFub2lzZV9zdXBwcmVzc2lvbhgCIAEoCBIZChFh", - "dXRvX2dhaW5fY29udHJvbBgDIAEoCCKDAQoXQ3JlYXRlVmlkZW9UcmFja1Jl", - "cXVlc3QSDAoEbmFtZRgBIAEoCRItCgdvcHRpb25zGAIgASgLMhwubGl2ZWtp", - "dC5WaWRlb0NhcHR1cmVPcHRpb25zEisKDXNvdXJjZV9oYW5kbGUYAyABKAsy", - "FC5saXZla2l0LkZGSUhhbmRsZUlkIj0KGENyZWF0ZVZpZGVvVHJhY2tSZXNw", - "b25zZRIhCgV0cmFjaxgBIAEoCzISLmxpdmVraXQuVHJhY2tJbmZvIoMBChdD", - "cmVhdGVBdWRpb1RyYWNrUmVxdWVzdBIMCgRuYW1lGAEgASgJEi0KB29wdGlv", - "bnMYAiABKAsyHC5saXZla2l0LkF1ZGlvQ2FwdHVyZU9wdGlvbnMSKwoNc291", - "cmNlX2hhbmRsZRgDIAEoCzIULmxpdmVraXQuRkZJSGFuZGxlSWQiPQoYQ3Jl", - "YXRlQXVkaW9UcmFja1Jlc3BvbnNlEiEKBXRyYWNrGAEgASgLMhIubGl2ZWtp", - "dC5UcmFja0luZm8iDAoKVHJhY2tFdmVudCLfAQoUVHJhY2tQdWJsaWNhdGlv", - "bkluZm8SCwoDc2lkGAEgASgJEgwKBG5hbWUYAiABKAkSIAoEa2luZBgDIAEo", - "DjISLmxpdmVraXQuVHJhY2tLaW5kEiQKBnNvdXJjZRgEIAEoDjIULmxpdmVr", - "aXQuVHJhY2tTb3VyY2USEwoLc2ltdWxjYXN0ZWQYBSABKAgSDQoFd2lkdGgY", - "BiABKA0SDgoGaGVpZ2h0GAcgASgNEhEKCW1pbWVfdHlwZRgIIAEoCRINCgVt", - "dXRlZBgJIAEoCBIOCgZyZW1vdGUYCiABKAgivQEKCVRyYWNrSW5mbxIoCgpv", - "cHRfaGFuZGxlGAEgASgLMhQubGl2ZWtpdC5GRklIYW5kbGVJZBILCgNzaWQY", - "AiABKAkSDAoEbmFtZRgDIAEoCRIgCgRraW5kGAQgASgOMhIubGl2ZWtpdC5U", - "cmFja0tpbmQSKgoMc3RyZWFtX3N0YXRlGAUgASgOMhQubGl2ZWtpdC5TdHJl", - "YW1TdGF0ZRINCgVtdXRlZBgGIAEoCBIOCgZyZW1vdGUYByABKAgqPQoJVHJh", - "Y2tLaW5kEhAKDEtJTkRfVU5LTk9XThAAEg4KCktJTkRfQVVESU8QARIOCgpL", - "SU5EX1ZJREVPEAIqgQEKC1RyYWNrU291cmNlEhIKDlNPVVJDRV9VTktOT1dO", - "EAASEQoNU09VUkNFX0NBTUVSQRABEhUKEVNPVVJDRV9NSUNST1BIT05FEAIS", - "FgoSU09VUkNFX1NDUkVFTlNIQVJFEAMSHAoYU09VUkNFX1NDUkVFTlNIQVJF", - "X0FVRElPEAQqRAoLU3RyZWFtU3RhdGUSEQoNU1RBVEVfVU5LTk9XThAAEhAK", - "DFNUQVRFX0FDVElWRRABEhAKDFNUQVRFX1BBVVNFRBACQhCqAg1MaXZlS2l0", - "LlByb3RvYgZwcm90bzM=")); + "Cgt0cmFjay5wcm90bxINbGl2ZWtpdC5wcm90bxoKZTJlZS5wcm90bxoMaGFu", + "ZGxlLnByb3RvGgtzdGF0cy5wcm90byI+ChdDcmVhdGVWaWRlb1RyYWNrUmVx", + "dWVzdBIMCgRuYW1lGAEgASgJEhUKDXNvdXJjZV9oYW5kbGUYAiABKAQiRAoY", + "Q3JlYXRlVmlkZW9UcmFja1Jlc3BvbnNlEigKBXRyYWNrGAEgASgLMhkubGl2", + "ZWtpdC5wcm90by5Pd25lZFRyYWNrIj4KF0NyZWF0ZUF1ZGlvVHJhY2tSZXF1", + "ZXN0EgwKBG5hbWUYASABKAkSFQoNc291cmNlX2hhbmRsZRgCIAEoBCJEChhD", + "cmVhdGVBdWRpb1RyYWNrUmVzcG9uc2USKAoFdHJhY2sYASABKAsyGS5saXZl", + "a2l0LnByb3RvLk93bmVkVHJhY2siJwoPR2V0U3RhdHNSZXF1ZXN0EhQKDHRy", + "YWNrX2hhbmRsZRgBIAEoBCIkChBHZXRTdGF0c1Jlc3BvbnNlEhAKCGFzeW5j", + "X2lkGAEgASgEImoKEEdldFN0YXRzQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASAB", + "KAQSEgoFZXJyb3IYAiABKAlIAIgBARImCgVzdGF0cxgDIAMoCzIXLmxpdmVr", + "aXQucHJvdG8uUnRjU3RhdHNCCAoGX2Vycm9yIgwKClRyYWNrRXZlbnQiowIK", + "FFRyYWNrUHVibGljYXRpb25JbmZvEgsKA3NpZBgBIAEoCRIMCgRuYW1lGAIg", + "ASgJEiYKBGtpbmQYAyABKA4yGC5saXZla2l0LnByb3RvLlRyYWNrS2luZBIq", + "CgZzb3VyY2UYBCABKA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMK", + "C3NpbXVsY2FzdGVkGAUgASgIEg0KBXdpZHRoGAYgASgNEg4KBmhlaWdodBgH", + "IAEoDRIRCgltaW1lX3R5cGUYCCABKAkSDQoFbXV0ZWQYCSABKAgSDgoGcmVt", + "b3RlGAogASgIEjYKD2VuY3J5cHRpb25fdHlwZRgLIAEoDjIdLmxpdmVraXQu", + "cHJvdG8uRW5jcnlwdGlvblR5cGUieQoVT3duZWRUcmFja1B1YmxpY2F0aW9u", + "Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k", + "bGUSMQoEaW5mbxgCIAEoCzIjLmxpdmVraXQucHJvdG8uVHJhY2tQdWJsaWNh", + "dGlvbkluZm8inwEKCVRyYWNrSW5mbxILCgNzaWQYASABKAkSDAoEbmFtZRgC", + "IAEoCRImCgRraW5kGAMgASgOMhgubGl2ZWtpdC5wcm90by5UcmFja0tpbmQS", + "MAoMc3RyZWFtX3N0YXRlGAQgASgOMhoubGl2ZWtpdC5wcm90by5TdHJlYW1T", + "dGF0ZRINCgVtdXRlZBgFIAEoCBIOCgZyZW1vdGUYBiABKAgiYwoKT3duZWRU", + "cmFjaxItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", + "SGFuZGxlEiYKBGluZm8YAiABKAsyGC5saXZla2l0LnByb3RvLlRyYWNrSW5m", + "byo9CglUcmFja0tpbmQSEAoMS0lORF9VTktOT1dOEAASDgoKS0lORF9BVURJ", + "TxABEg4KCktJTkRfVklERU8QAiqBAQoLVHJhY2tTb3VyY2USEgoOU09VUkNF", + "X1VOS05PV04QABIRCg1TT1VSQ0VfQ0FNRVJBEAESFQoRU09VUkNFX01JQ1JP", + "UEhPTkUQAhIWChJTT1VSQ0VfU0NSRUVOU0hBUkUQAxIcChhTT1VSQ0VfU0NS", + "RUVOU0hBUkVfQVVESU8QBCpECgtTdHJlYW1TdGF0ZRIRCg1TVEFURV9VTktO", + "T1dOEAASEAoMU1RBVEVfQUNUSVZFEAESEAoMU1RBVEVfUEFVU0VEEAJCEKoC", + "DUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, global::LiveKit.Proto.AudioFrameReflection.Descriptor, }, + 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[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoCaptureOptions), global::LiveKit.Proto.VideoCaptureOptions.Parser, new[]{ "Resolution" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioCaptureOptions), global::LiveKit.Proto.AudioCaptureOptions.Parser, new[]{ "EchoCancellation", "NoiseSuppression", "AutoGainControl" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateVideoTrackRequest), global::LiveKit.Proto.CreateVideoTrackRequest.Parser, new[]{ "Name", "Options", "SourceHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateVideoTrackRequest), global::LiveKit.Proto.CreateVideoTrackRequest.Parser, new[]{ "Name", "SourceHandle" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateVideoTrackResponse), global::LiveKit.Proto.CreateVideoTrackResponse.Parser, new[]{ "Track" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateAudioTrackRequest), global::LiveKit.Proto.CreateAudioTrackRequest.Parser, new[]{ "Name", "Options", "SourceHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateAudioTrackRequest), global::LiveKit.Proto.CreateAudioTrackRequest.Parser, new[]{ "Name", "SourceHandle" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CreateAudioTrackResponse), global::LiveKit.Proto.CreateAudioTrackResponse.Parser, new[]{ "Track" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetStatsRequest), global::LiveKit.Proto.GetStatsRequest.Parser, new[]{ "TrackHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetStatsResponse), global::LiveKit.Proto.GetStatsResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetStatsCallback), global::LiveKit.Proto.GetStatsCallback.Parser, new[]{ "AsyncId", "Error", "Stats" }, new[]{ "Error" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackEvent), global::LiveKit.Proto.TrackEvent.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublicationInfo), global::LiveKit.Proto.TrackPublicationInfo.Parser, new[]{ "Sid", "Name", "Kind", "Source", "Simulcasted", "Width", "Height", "MimeType", "Muted", "Remote" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackInfo), global::LiveKit.Proto.TrackInfo.Parser, new[]{ "OptHandle", "Sid", "Name", "Kind", "StreamState", "Muted", "Remote" }, null, null, null, null) + 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) })); } #endregion @@ -96,16 +102,20 @@ public enum StreamState { #endregion #region Messages - public sealed partial class VideoCaptureOptions : pb::IMessage + /// + /// Create a new VideoTrack from a VideoSource + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateVideoTrackRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoCaptureOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateVideoTrackRequest()); 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)] @@ -121,7 +131,7 @@ public sealed partial class VideoCaptureOptions : pb::IMessageField number for the "name" field. + public const int NameFieldNumber = 1; + 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 "resolution" field. - public const int ResolutionFieldNumber = 1; - private global::LiveKit.Proto.VideoResolution resolution_; + /// Field number for the "source_handle" field. + public const int SourceHandleFieldNumber = 2; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoResolution Resolution { - get { return resolution_; } + public ulong SourceHandle { + get { return sourceHandle_; } set { - resolution_ = value; + sourceHandle_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoCaptureOptions); + return Equals(other as CreateVideoTrackRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoCaptureOptions other) { + public bool Equals(CreateVideoTrackRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Resolution, other.Resolution)) return false; + if (Name != other.Name) return false; + if (SourceHandle != other.SourceHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -175,7 +199,8 @@ public bool Equals(VideoCaptureOptions other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (resolution_ != null) hash ^= Resolution.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -194,9 +219,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (resolution_ != null) { + if (Name.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Resolution); + output.WriteString(Name); + } + if (SourceHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(SourceHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -208,9 +237,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 (resolution_ != null) { + if (Name.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Resolution); + output.WriteString(Name); + } + if (SourceHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(SourceHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -222,8 +255,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (resolution_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resolution); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (SourceHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -233,15 +269,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoCaptureOptions other) { + public void MergeFrom(CreateVideoTrackRequest other) { if (other == null) { return; } - if (other.resolution_ != null) { - if (resolution_ == null) { - Resolution = new global::LiveKit.Proto.VideoResolution(); - } - Resolution.MergeFrom(other.Resolution); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.SourceHandle != 0UL) { + SourceHandle = other.SourceHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -259,10 +295,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (resolution_ == null) { - Resolution = new global::LiveKit.Proto.VideoResolution(); - } - input.ReadMessage(Resolution); + Name = input.ReadString(); + break; + } + case 16: { + SourceHandle = input.ReadUInt64(); break; } } @@ -281,10 +318,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (resolution_ == null) { - Resolution = new global::LiveKit.Proto.VideoResolution(); - } - input.ReadMessage(Resolution); + Name = input.ReadString(); + break; + } + case 16: { + SourceHandle = input.ReadUInt64(); break; } } @@ -294,16 +332,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class AudioCaptureOptions : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateVideoTrackResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioCaptureOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateVideoTrackResponse()); 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)] @@ -319,7 +358,7 @@ public sealed partial class AudioCaptureOptions : pb::IMessageField number for the "echo_cancellation" field. - public const int EchoCancellationFieldNumber = 1; - private bool echoCancellation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EchoCancellation { - get { return echoCancellation_; } - set { - echoCancellation_ = value; - } - } - - /// Field number for the "noise_suppression" field. - public const int NoiseSuppressionFieldNumber = 2; - private bool noiseSuppression_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool NoiseSuppression { - get { return noiseSuppression_; } - set { - noiseSuppression_ = value; - } + public CreateVideoTrackResponse Clone() { + return new CreateVideoTrackResponse(this); } - /// Field number for the "auto_gain_control" field. - public const int AutoGainControlFieldNumber = 3; - private bool autoGainControl_; + /// Field number for the "track" field. + public const int TrackFieldNumber = 1; + private global::LiveKit.Proto.OwnedTrack track_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoGainControl { - get { return autoGainControl_; } + public global::LiveKit.Proto.OwnedTrack Track { + get { return track_; } set { - autoGainControl_ = value; + track_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioCaptureOptions); + return Equals(other as CreateVideoTrackResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioCaptureOptions other) { + public bool Equals(CreateVideoTrackResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (EchoCancellation != other.EchoCancellation) return false; - if (NoiseSuppression != other.NoiseSuppression) return false; - if (AutoGainControl != other.AutoGainControl) return false; + if (!object.Equals(Track, other.Track)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -401,9 +412,7 @@ public bool Equals(AudioCaptureOptions other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (EchoCancellation != false) hash ^= EchoCancellation.GetHashCode(); - if (NoiseSuppression != false) hash ^= NoiseSuppression.GetHashCode(); - if (AutoGainControl != false) hash ^= AutoGainControl.GetHashCode(); + if (track_ != null) hash ^= Track.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -422,17 +431,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (EchoCancellation != false) { - output.WriteRawTag(8); - output.WriteBool(EchoCancellation); - } - if (NoiseSuppression != false) { - output.WriteRawTag(16); - output.WriteBool(NoiseSuppression); - } - if (AutoGainControl != false) { - output.WriteRawTag(24); - output.WriteBool(AutoGainControl); + if (track_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -444,17 +445,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 (EchoCancellation != false) { - output.WriteRawTag(8); - output.WriteBool(EchoCancellation); - } - if (NoiseSuppression != false) { - output.WriteRawTag(16); - output.WriteBool(NoiseSuppression); - } - if (AutoGainControl != false) { - output.WriteRawTag(24); - output.WriteBool(AutoGainControl); + if (track_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -466,14 +459,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (EchoCancellation != false) { - size += 1 + 1; - } - if (NoiseSuppression != false) { - size += 1 + 1; - } - if (AutoGainControl != false) { - size += 1 + 1; + if (track_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -483,18 +470,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioCaptureOptions other) { + public void MergeFrom(CreateVideoTrackResponse other) { if (other == null) { return; } - if (other.EchoCancellation != false) { - EchoCancellation = other.EchoCancellation; - } - if (other.NoiseSuppression != false) { - NoiseSuppression = other.NoiseSuppression; - } - if (other.AutoGainControl != false) { - AutoGainControl = other.AutoGainControl; + if (other.track_ != null) { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); + } + Track.MergeFrom(other.Track); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -511,16 +495,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - EchoCancellation = input.ReadBool(); - break; - } - case 16: { - NoiseSuppression = input.ReadBool(); - break; - } - case 24: { - AutoGainControl = input.ReadBool(); + case 10: { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); + } + input.ReadMessage(Track); break; } } @@ -538,16 +517,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - EchoCancellation = input.ReadBool(); - break; - } - case 16: { - NoiseSuppression = input.ReadBool(); - break; - } - case 24: { - AutoGainControl = input.ReadBool(); + case 10: { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); + } + input.ReadMessage(Track); break; } } @@ -558,18 +532,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Create a new VideoTrack from a VideoSource + /// Create a new AudioTrack from a AudioSource /// - public sealed partial class CreateVideoTrackRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAudioTrackRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateVideoTrackRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAudioTrackRequest()); 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)] @@ -585,7 +560,7 @@ public sealed partial class CreateVideoTrackRequest : pb::IMessageField number for the "name" field. @@ -618,24 +592,12 @@ public string Name { } } - /// Field number for the "options" field. - public const int OptionsFieldNumber = 2; - private global::LiveKit.Proto.VideoCaptureOptions options_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoCaptureOptions Options { - get { return options_; } - set { - options_ = value; - } - } - /// Field number for the "source_handle" field. - public const int SourceHandleFieldNumber = 3; - private global::LiveKit.Proto.FFIHandleId sourceHandle_; + public const int SourceHandleFieldNumber = 2; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId SourceHandle { + public ulong SourceHandle { get { return sourceHandle_; } set { sourceHandle_ = value; @@ -645,12 +607,12 @@ public string Name { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateVideoTrackRequest); + return Equals(other as CreateAudioTrackRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateVideoTrackRequest other) { + public bool Equals(CreateAudioTrackRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -658,8 +620,7 @@ public bool Equals(CreateVideoTrackRequest other) { return true; } if (Name != other.Name) return false; - if (!object.Equals(Options, other.Options)) return false; - if (!object.Equals(SourceHandle, other.SourceHandle)) return false; + if (SourceHandle != other.SourceHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -668,8 +629,7 @@ public bool Equals(CreateVideoTrackRequest other) { public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (options_ != null) hash ^= Options.GetHashCode(); - if (sourceHandle_ != null) hash ^= SourceHandle.GetHashCode(); + if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -692,13 +652,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Name); } - if (options_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Options); - } - if (sourceHandle_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(SourceHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -714,13 +670,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Name); } - if (options_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Options); - } - if (sourceHandle_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(SourceHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -735,11 +687,8 @@ public int CalculateSize() { if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (options_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); - } - if (sourceHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceHandle); + if (SourceHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -749,24 +698,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateVideoTrackRequest other) { + public void MergeFrom(CreateAudioTrackRequest other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } - if (other.options_ != null) { - if (options_ == null) { - Options = new global::LiveKit.Proto.VideoCaptureOptions(); - } - Options.MergeFrom(other.Options); - } - if (other.sourceHandle_ != null) { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - SourceHandle.MergeFrom(other.SourceHandle); + if (other.SourceHandle != 0UL) { + SourceHandle = other.SourceHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -787,18 +727,8 @@ public void MergeFrom(pb::CodedInputStream input) { Name = input.ReadString(); break; } - case 18: { - if (options_ == null) { - Options = new global::LiveKit.Proto.VideoCaptureOptions(); - } - input.ReadMessage(Options); - break; - } - case 26: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 16: { + SourceHandle = input.ReadUInt64(); break; } } @@ -820,18 +750,8 @@ public void MergeFrom(pb::CodedInputStream input) { Name = input.ReadString(); break; } - case 18: { - if (options_ == null) { - Options = new global::LiveKit.Proto.VideoCaptureOptions(); - } - input.ReadMessage(Options); - break; - } - case 26: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 16: { + SourceHandle = input.ReadUInt64(); break; } } @@ -841,16 +761,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CreateVideoTrackResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateAudioTrackResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateVideoTrackResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAudioTrackResponse()); 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)] @@ -866,7 +787,7 @@ public sealed partial class CreateVideoTrackResponse : pb::IMessageField number for the "track" field. public const int TrackFieldNumber = 1; - private global::LiveKit.Proto.TrackInfo track_; + private global::LiveKit.Proto.OwnedTrack track_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackInfo Track { + public global::LiveKit.Proto.OwnedTrack Track { get { return track_; } set { track_ = value; @@ -900,12 +821,12 @@ public CreateVideoTrackResponse Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateVideoTrackResponse); + return Equals(other as CreateAudioTrackResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateVideoTrackResponse other) { + public bool Equals(CreateAudioTrackResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -978,13 +899,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateVideoTrackResponse other) { + public void MergeFrom(CreateAudioTrackResponse other) { if (other == null) { return; } if (other.track_ != null) { if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); + Track = new global::LiveKit.Proto.OwnedTrack(); } Track.MergeFrom(other.Track); } @@ -1005,7 +926,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); + Track = new global::LiveKit.Proto.OwnedTrack(); } input.ReadMessage(Track); break; @@ -1027,7 +948,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); + Track = new global::LiveKit.Proto.OwnedTrack(); } input.ReadMessage(Track); break; @@ -1039,19 +960,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Create a new AudioTrack from a AudioSource - /// - public sealed partial class CreateAudioTrackRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetStatsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAudioTrackRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsRequest()); 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)] @@ -1067,7 +986,7 @@ public sealed partial class CreateAudioTrackRequest : pb::IMessageField number for the "name" field. - public const int NameFieldNumber = 1; - 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 "options" field. - public const int OptionsFieldNumber = 2; - private global::LiveKit.Proto.AudioCaptureOptions options_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioCaptureOptions Options { - get { return options_; } - set { - options_ = value; - } + public GetStatsRequest Clone() { + return new GetStatsRequest(this); } - /// Field number for the "source_handle" field. - public const int SourceHandleFieldNumber = 3; - private global::LiveKit.Proto.FFIHandleId sourceHandle_; + /// 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 global::LiveKit.Proto.FFIHandleId SourceHandle { - get { return sourceHandle_; } + public ulong TrackHandle { + get { return trackHandle_; } set { - sourceHandle_ = value; + trackHandle_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateAudioTrackRequest); + return Equals(other as GetStatsRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAudioTrackRequest other) { + public bool Equals(GetStatsRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (!object.Equals(Options, other.Options)) return false; - if (!object.Equals(SourceHandle, other.SourceHandle)) return false; + if (TrackHandle != other.TrackHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1149,9 +1040,7 @@ public bool Equals(CreateAudioTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (options_ != null) hash ^= Options.GetHashCode(); - if (sourceHandle_ != null) hash ^= SourceHandle.GetHashCode(); + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1170,17 +1059,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (options_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Options); - } - if (sourceHandle_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SourceHandle); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1192,17 +1073,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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (options_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Options); - } - if (sourceHandle_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SourceHandle); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1214,14 +1087,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (options_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); - } - if (sourceHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceHandle); + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1231,24 +1098,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAudioTrackRequest other) { + public void MergeFrom(GetStatsRequest other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.options_ != null) { - if (options_ == null) { - Options = new global::LiveKit.Proto.AudioCaptureOptions(); - } - Options.MergeFrom(other.Options); - } - if (other.sourceHandle_ != null) { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - SourceHandle.MergeFrom(other.SourceHandle); + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1265,22 +1120,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - if (options_ == null) { - Options = new global::LiveKit.Proto.AudioCaptureOptions(); - } - input.ReadMessage(Options); - break; - } - case 26: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + TrackHandle = input.ReadUInt64(); break; } } @@ -1298,22 +1139,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - if (options_ == null) { - Options = new global::LiveKit.Proto.AudioCaptureOptions(); - } - input.ReadMessage(Options); - break; - } - case 26: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + TrackHandle = input.ReadUInt64(); break; } } @@ -1323,16 +1150,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class CreateAudioTrackResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetStatsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAudioTrackResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsResponse()); 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)] @@ -1348,7 +1176,7 @@ public sealed partial class CreateAudioTrackResponse : pb::IMessageField number for the "track" field. - public const int TrackFieldNumber = 1; - private global::LiveKit.Proto.TrackInfo track_; + /// 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.TrackInfo Track { - get { return track_; } + public ulong AsyncId { + get { return asyncId_; } set { - track_ = value; + asyncId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CreateAudioTrackResponse); + return Equals(other as GetStatsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAudioTrackResponse other) { + public bool Equals(GetStatsResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Track, other.Track)) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1402,7 +1230,7 @@ public bool Equals(CreateAudioTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (track_ != null) hash ^= Track.GetHashCode(); + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1421,9 +1249,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (track_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Track); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1435,9 +1263,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 (track_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Track); + if (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1449,8 +1277,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (track_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); + if (AsyncId != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1460,15 +1288,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAudioTrackResponse other) { + public void MergeFrom(GetStatsResponse other) { if (other == null) { return; } - if (other.track_ != null) { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - Track.MergeFrom(other.Track); + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1485,11 +1310,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - input.ReadMessage(Track); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1507,11 +1329,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (track_ == null) { - Track = new global::LiveKit.Proto.TrackInfo(); - } - input.ReadMessage(Track); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -1521,16 +1340,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackEvent : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetStatsCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsCallback()); 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)] @@ -1546,7 +1366,7 @@ public sealed partial class TrackEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackEvent() { + public GetStatsCallback() { OnConstruction(); } @@ -1554,31 +1374,86 @@ public TrackEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackEvent(TrackEvent other) : this() { + public GetStatsCallback(GetStatsCallback other) : this() { + asyncId_ = other.asyncId_; + error_ = other.error_; + stats_ = other.stats_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackEvent Clone() { - return new TrackEvent(this); + public GetStatsCallback Clone() { + return new GetStatsCallback(this); + } + + /// 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 AsyncId { + get { return asyncId_; } + set { + 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; + } + + /// Field number for the "stats" field. + public const int StatsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_stats_codec + = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.RtcStats.Parser); + private readonly pbc::RepeatedField stats_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Stats { + get { return stats_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackEvent); + return Equals(other as GetStatsCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackEvent other) { + public bool Equals(GetStatsCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; + if(!stats_.Equals(other.stats_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1586,6 +1461,9 @@ public bool Equals(TrackEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); + hash ^= stats_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1604,6 +1482,15 @@ 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 (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } + stats_.WriteTo(output, _repeated_stats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1614,6 +1501,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 (AsyncId != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } + stats_.WriteTo(ref output, _repeated_stats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1624,6 +1520,13 @@ 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 (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + size += stats_.CalculateSize(_repeated_stats_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1632,10 +1535,17 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackEvent other) { + public void MergeFrom(GetStatsCallback other) { if (other == null) { return; } + if (other.AsyncId != 0UL) { + AsyncId = other.AsyncId; + } + if (other.HasError) { + Error = other.Error; + } + stats_.Add(other.stats_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1651,6 +1561,18 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); + break; + } + case 26: { + stats_.AddEntriesFrom(input, _repeated_stats_codec); + break; + } } } #endif @@ -1666,6 +1588,18 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); + break; + } + case 26: { + stats_.AddEntriesFrom(ref input, _repeated_stats_codec); + break; + } } } } @@ -1673,16 +1607,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackPublicationInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrackEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublicationInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackEvent()); 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)] @@ -1698,7 +1633,7 @@ public sealed partial class TrackPublicationInfo : pb::IMessageField 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"); - } + public override bool Equals(object other) { + return Equals(other as TrackEvent); } - /// 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 bool Equals(TrackEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "kind" field. - public const int KindFieldNumber = 3; - private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackKind Kind { - get { return kind_; } - set { - kind_ = value; + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "source" field. - public const int SourceFieldNumber = 4; - 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 override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "simulcasted" field. - public const int SimulcastedFieldNumber = 5; - private bool simulcasted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Simulcasted { - get { return simulcasted_; } - set { - simulcasted_ = 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 "width" field. - public const int WidthFieldNumber = 6; - private uint width_; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Width { - get { return width_; } - set { - width_ = value; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "height" field. - public const int HeightFieldNumber = 7; - private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Height { - get { return height_; } - set { - height_ = value; + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "mime_type" field. - public const int MimeTypeFieldNumber = 8; - private string mimeType_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MimeType { - get { return mimeType_; } - set { - mimeType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } + public void MergeFrom(TrackEvent other) { + if (other == null) { + return; + } + _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; + } + } + #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 TrackPublicationInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublicationInfo()); + 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[8]; } + } + + [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 TrackPublicationInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublicationInfo(TrackPublicationInfo other) : this() { + sid_ = other.sid_; + name_ = other.name_; + kind_ = other.kind_; + source_ = other.source_; + simulcasted_ = other.simulcasted_; + width_ = other.width_; + height_ = other.height_; + mimeType_ = other.mimeType_; + muted_ = other.muted_; + remote_ = other.remote_; + encryptionType_ = other.encryptionType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublicationInfo Clone() { + return new TrackPublicationInfo(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"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 3; + private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "source" field. + public const int SourceFieldNumber = 4; + 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 "simulcasted" field. + public const int SimulcastedFieldNumber = 5; + private bool simulcasted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Simulcasted { + get { return simulcasted_; } + set { + simulcasted_ = value; + } + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 6; + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Width { + get { return width_; } + set { + width_ = value; + } + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 7; + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Height { + get { return height_; } + set { + height_ = value; + } + } + + /// Field number for the "mime_type" field. + public const int MimeTypeFieldNumber = 8; + private string mimeType_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MimeType { + get { return mimeType_; } + set { + mimeType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } /// Field number for the "muted" field. public const int MutedFieldNumber = 9; @@ -1846,6 +1935,18 @@ public bool Remote { } } + /// Field number for the "encryption_type" field. + public const int EncryptionTypeFieldNumber = 11; + private global::LiveKit.Proto.EncryptionType encryptionType_ = global::LiveKit.Proto.EncryptionType.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.EncryptionType EncryptionType { + get { return encryptionType_; } + set { + encryptionType_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1871,6 +1972,7 @@ public bool Equals(TrackPublicationInfo other) { if (MimeType != other.MimeType) return false; if (Muted != other.Muted) return false; if (Remote != other.Remote) return false; + if (EncryptionType != other.EncryptionType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1888,6 +1990,7 @@ public override int GetHashCode() { if (MimeType.Length != 0) hash ^= MimeType.GetHashCode(); if (Muted != false) hash ^= Muted.GetHashCode(); if (Remote != false) hash ^= Remote.GetHashCode(); + if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) hash ^= EncryptionType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1946,6 +2049,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteBool(Remote); } + if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + output.WriteRawTag(88); + output.WriteEnum((int) EncryptionType); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1996,6 +2103,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteBool(Remote); } + if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + output.WriteRawTag(88); + output.WriteEnum((int) EncryptionType); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2036,6 +2147,9 @@ public int CalculateSize() { if (Remote != false) { size += 1 + 1; } + if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2078,6 +2192,9 @@ public void MergeFrom(TrackPublicationInfo other) { if (other.Remote != false) { Remote = other.Remote; } + if (other.EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + EncryptionType = other.EncryptionType; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2133,6 +2250,10 @@ public void MergeFrom(pb::CodedInputStream input) { Remote = input.ReadBool(); break; } + case 88: { + EncryptionType = (global::LiveKit.Proto.EncryptionType) input.ReadEnum(); + break; + } } } #endif @@ -2188,6 +2309,10 @@ public void MergeFrom(pb::CodedInputStream input) { Remote = input.ReadBool(); break; } + case 88: { + EncryptionType = (global::LiveKit.Proto.EncryptionType) input.ReadEnum(); + break; + } } } } @@ -2195,21 +2320,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TrackInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedTrackPublication : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedTrackPublication()); 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.TrackReflection.Descriptor.MessageTypes[8]; } + get { return global::LiveKit.Proto.TrackReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2220,7 +2346,7 @@ public sealed partial class TrackInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackInfo() { + public OwnedTrackPublication() { OnConstruction(); } @@ -2228,92 +2354,321 @@ public TrackInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackInfo(TrackInfo other) : this() { - optHandle_ = other.optHandle_ != null ? other.optHandle_.Clone() : null; - sid_ = other.sid_; - name_ = other.name_; - kind_ = other.kind_; - streamState_ = other.streamState_; - muted_ = other.muted_; - remote_ = other.remote_; + public OwnedTrackPublication(OwnedTrackPublication 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 TrackInfo Clone() { - return new TrackInfo(this); + public OwnedTrackPublication Clone() { + return new OwnedTrackPublication(this); } - /// Field number for the "opt_handle" field. - public const int OptHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId optHandle_; - /// - /// Tracks created/owned by the client will have a handle - /// + /// 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.FFIHandleId OptHandle { - get { return optHandle_; } + public global::LiveKit.Proto.FfiOwnedHandle Handle { + get { return handle_; } set { - optHandle_ = value; + handle_ = value; } } - /// Field number for the "sid" field. - public const int SidFieldNumber = 2; - private string sid_ = ""; + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.TrackPublicationInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sid { - get { return sid_; } + public global::LiveKit.Proto.TrackPublicationInfo Info { + get { return info_; } set { - sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + info_ = value; } } - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - 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 override bool Equals(object other) { + return Equals(other as OwnedTrackPublication); } - /// Field number for the "kind" field. - public const int KindFieldNumber = 4; - private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackKind Kind { - get { return kind_; } - set { - kind_ = value; + public bool Equals(OwnedTrackPublication 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); } - /// Field number for the "stream_state" field. - public const int StreamStateFieldNumber = 5; - private global::LiveKit.Proto.StreamState streamState_ = global::LiveKit.Proto.StreamState.StateUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.StreamState StreamState { - get { return streamState_; } - set { - streamState_ = value; + 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; } - /// Field number for the "muted" field. - public const int MutedFieldNumber = 6; - private bool muted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Muted { + 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(OwnedTrackPublication 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.TrackPublicationInfo(); + } + 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 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.TrackPublicationInfo(); + } + input.ReadMessage(Info); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.TrackPublicationInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TrackInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackInfo()); + 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[10]; } + } + + [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 TrackInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackInfo(TrackInfo other) : this() { + sid_ = other.sid_; + name_ = other.name_; + kind_ = other.kind_; + streamState_ = other.streamState_; + muted_ = other.muted_; + remote_ = other.remote_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackInfo Clone() { + return new TrackInfo(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"); + } + } + + /// Field number for the "kind" field. + public const int KindFieldNumber = 3; + private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackKind Kind { + get { return kind_; } + set { + kind_ = value; + } + } + + /// Field number for the "stream_state" field. + public const int StreamStateFieldNumber = 4; + private global::LiveKit.Proto.StreamState streamState_ = global::LiveKit.Proto.StreamState.StateUnknown; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.StreamState StreamState { + get { return streamState_; } + set { + streamState_ = value; + } + } + + /// Field number for the "muted" field. + public const int MutedFieldNumber = 5; + private bool muted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Muted { get { return muted_; } set { muted_ = value; @@ -2321,7 +2676,7 @@ public bool Muted { } /// Field number for the "remote" field. - public const int RemoteFieldNumber = 7; + public const int RemoteFieldNumber = 6; private bool remote_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2347,7 +2702,6 @@ public bool Equals(TrackInfo other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(OptHandle, other.OptHandle)) return false; if (Sid != other.Sid) return false; if (Name != other.Name) return false; if (Kind != other.Kind) return false; @@ -2361,7 +2715,6 @@ public bool Equals(TrackInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (optHandle_ != null) hash ^= OptHandle.GetHashCode(); if (Sid.Length != 0) hash ^= Sid.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) hash ^= Kind.GetHashCode(); @@ -2386,32 +2739,28 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (optHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OptHandle); - } if (Sid.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(10); output.WriteString(Sid); } if (Name.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteString(Name); } if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteEnum((int) Kind); } if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { - output.WriteRawTag(40); + output.WriteRawTag(32); output.WriteEnum((int) StreamState); } if (Muted != false) { - output.WriteRawTag(48); + output.WriteRawTag(40); output.WriteBool(Muted); } if (Remote != false) { - output.WriteRawTag(56); + output.WriteRawTag(48); output.WriteBool(Remote); } if (_unknownFields != null) { @@ -2424,32 +2773,28 @@ 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 (optHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OptHandle); - } if (Sid.Length != 0) { - output.WriteRawTag(18); + output.WriteRawTag(10); output.WriteString(Sid); } if (Name.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(18); output.WriteString(Name); } if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteEnum((int) Kind); } if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { - output.WriteRawTag(40); + output.WriteRawTag(32); output.WriteEnum((int) StreamState); } if (Muted != false) { - output.WriteRawTag(48); + output.WriteRawTag(40); output.WriteBool(Muted); } if (Remote != false) { - output.WriteRawTag(56); + output.WriteRawTag(48); output.WriteBool(Remote); } if (_unknownFields != null) { @@ -2462,9 +2807,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (optHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OptHandle); - } if (Sid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); } @@ -2495,12 +2837,6 @@ public void MergeFrom(TrackInfo other) { if (other == null) { return; } - if (other.optHandle_ != null) { - if (optHandle_ == null) { - OptHandle = new global::LiveKit.Proto.FFIHandleId(); - } - OptHandle.MergeFrom(other.OptHandle); - } if (other.Sid.Length != 0) { Sid = other.Sid; } @@ -2535,33 +2871,26 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (optHandle_ == null) { - OptHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(OptHandle); - break; - } - case 18: { Sid = input.ReadString(); break; } - case 26: { + case 18: { Name = input.ReadString(); break; } - case 32: { + case 24: { Kind = (global::LiveKit.Proto.TrackKind) input.ReadEnum(); break; } - case 40: { + case 32: { StreamState = (global::LiveKit.Proto.StreamState) input.ReadEnum(); break; } - case 48: { + case 40: { Muted = input.ReadBool(); break; } - case 56: { + case 48: { Remote = input.ReadBool(); break; } @@ -2581,33 +2910,26 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (optHandle_ == null) { - OptHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(OptHandle); - break; - } - case 18: { Sid = input.ReadString(); break; } - case 26: { + case 18: { Name = input.ReadString(); break; } - case 32: { + case 24: { Kind = (global::LiveKit.Proto.TrackKind) input.ReadEnum(); break; } - case 40: { + case 32: { StreamState = (global::LiveKit.Proto.StreamState) input.ReadEnum(); break; } - case 48: { + case 40: { Muted = input.ReadBool(); break; } - case 56: { + case 48: { Remote = input.ReadBool(); break; } @@ -2618,6 +2940,251 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedTrack : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedTrack()); + 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[11]; } + } + + [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 OwnedTrack() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedTrack(OwnedTrack 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 OwnedTrack Clone() { + return new OwnedTrack(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.TrackInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackInfo 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 OwnedTrack); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedTrack 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(OwnedTrack 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.TrackInfo(); + } + 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 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.TrackInfo(); + } + input.ReadMessage(Info); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.TrackInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/Runtime/Scripts/Proto/VideoFrame.cs b/Runtime/Scripts/Proto/VideoFrame.cs index 6b5fc3b..eaccfbc 100644 --- a/Runtime/Scripts/Proto/VideoFrame.cs +++ b/Runtime/Scripts/Proto/VideoFrame.cs @@ -24,101 +24,117 @@ public static partial class VideoFrameReflection { static VideoFrameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "ChF2aWRlb19mcmFtZS5wcm90bxIHbGl2ZWtpdBoMaGFuZGxlLnByb3RvImUK", - "F0FsbG9jVmlkZW9CdWZmZXJSZXF1ZXN0EisKBHR5cGUYASABKA4yHS5saXZl", - "a2l0LlZpZGVvRnJhbWVCdWZmZXJUeXBlEg0KBXdpZHRoGAIgASgNEg4KBmhl", - "aWdodBgDIAEoDSJJChhBbGxvY1ZpZGVvQnVmZmVyUmVzcG9uc2USLQoGYnVm", - "ZmVyGAEgASgLMh0ubGl2ZWtpdC5WaWRlb0ZyYW1lQnVmZmVySW5mbyKWAQoV", - "TmV3VmlkZW9TdHJlYW1SZXF1ZXN0EikKC3Jvb21faGFuZGxlGAEgASgLMhQu", - "bGl2ZWtpdC5GRklIYW5kbGVJZBIXCg9wYXJ0aWNpcGFudF9zaWQYAiABKAkS", - "EQoJdHJhY2tfc2lkGAMgASgJEiYKBHR5cGUYBCABKA4yGC5saXZla2l0LlZp", - "ZGVvU3RyZWFtVHlwZSJCChZOZXdWaWRlb1N0cmVhbVJlc3BvbnNlEigKBnN0", - "cmVhbRgBIAEoCzIYLmxpdmVraXQuVmlkZW9TdHJlYW1JbmZvIj8KFU5ld1Zp", - "ZGVvU291cmNlUmVxdWVzdBImCgR0eXBlGAEgASgOMhgubGl2ZWtpdC5WaWRl", - "b1NvdXJjZVR5cGUiQgoWTmV3VmlkZW9Tb3VyY2VSZXNwb25zZRIoCgZzb3Vy", - "Y2UYASABKAsyGC5saXZla2l0LlZpZGVvU291cmNlSW5mbyKcAQoYQ2FwdHVy", - "ZVZpZGVvRnJhbWVSZXF1ZXN0EisKDXNvdXJjZV9oYW5kbGUYASABKAsyFC5s", - "aXZla2l0LkZGSUhhbmRsZUlkEiYKBWZyYW1lGAIgASgLMhcubGl2ZWtpdC5W", - "aWRlb0ZyYW1lSW5mbxIrCg1idWZmZXJfaGFuZGxlGAMgASgLMhQubGl2ZWtp", - "dC5GRklIYW5kbGVJZCIbChlDYXB0dXJlVmlkZW9GcmFtZVJlc3BvbnNlIngK", - "DVRvSTQyMFJlcXVlc3QSDgoGZmxpcF95GAEgASgIEicKBGFyZ2IYAiABKAsy", - "Fy5saXZla2l0LkFSR0JCdWZmZXJJbmZvSAASJgoGYnVmZmVyGAMgASgLMhQu", - "bGl2ZWtpdC5GRklIYW5kbGVJZEgAQgYKBGZyb20iPwoOVG9JNDIwUmVzcG9u", - "c2USLQoGYnVmZmVyGAEgASgLMh0ubGl2ZWtpdC5WaWRlb0ZyYW1lQnVmZmVy", - "SW5mbyK/AQoNVG9BUkdCUmVxdWVzdBIkCgZidWZmZXIYASABKAsyFC5saXZl", - "a2l0LkZGSUhhbmRsZUlkEg8KB2RzdF9wdHIYAiABKAQSLAoKZHN0X2Zvcm1h", - "dBgDIAEoDjIYLmxpdmVraXQuVmlkZW9Gb3JtYXRUeXBlEhIKCmRzdF9zdHJp", - "ZGUYBCABKA0SEQoJZHN0X3dpZHRoGAUgASgNEhIKCmRzdF9oZWlnaHQYBiAB", - "KA0SDgoGZmxpcF95GAcgASgIIhAKDlRvQVJHQlJlc3BvbnNlIkQKD1ZpZGVv", - "UmVzb2x1dGlvbhINCgV3aWR0aBgBIAEoDRIOCgZoZWlnaHQYAiABKA0SEgoK", - "ZnJhbWVfcmF0ZRgDIAEoASJ2Cg5BUkdCQnVmZmVySW5mbxILCgNwdHIYASAB", - "KAQSKAoGZm9ybWF0GAIgASgOMhgubGl2ZWtpdC5WaWRlb0Zvcm1hdFR5cGUS", - "DgoGc3RyaWRlGAMgASgNEg0KBXdpZHRoGAQgASgNEg4KBmhlaWdodBgFIAEo", - "DSJNCg5WaWRlb0ZyYW1lSW5mbxIRCgl0aW1lc3RhbXAYASABKAMSKAoIcm90", - "YXRpb24YAiABKA4yFi5saXZla2l0LlZpZGVvUm90YXRpb24ipQIKFFZpZGVv", - "RnJhbWVCdWZmZXJJbmZvEiQKBmhhbmRsZRgBIAEoCzIULmxpdmVraXQuRkZJ", - "SGFuZGxlSWQSMgoLYnVmZmVyX3R5cGUYAiABKA4yHS5saXZla2l0LlZpZGVv", - "RnJhbWVCdWZmZXJUeXBlEg0KBXdpZHRoGAMgASgNEg4KBmhlaWdodBgEIAEo", - "DRIrCgN5dXYYBSABKAsyHC5saXZla2l0LlBsYW5hcll1dkJ1ZmZlckluZm9I", - "ABIwCgZiaV95dXYYBiABKAsyHi5saXZla2l0LkJpcGxhbmFyWXV2QnVmZmVy", - "SW5mb0gAEisKBm5hdGl2ZRgHIAEoCzIZLmxpdmVraXQuTmF0aXZlQnVmZmVy", - "SW5mb0gAQggKBmJ1ZmZlciLaAQoTUGxhbmFyWXV2QnVmZmVySW5mbxIUCgxj", - "aHJvbWFfd2lkdGgYASABKA0SFQoNY2hyb21hX2hlaWdodBgCIAEoDRIQCghz", - "dHJpZGVfeRgDIAEoDRIQCghzdHJpZGVfdRgEIAEoDRIQCghzdHJpZGVfdhgF", - "IAEoDRIQCghzdHJpZGVfYRgGIAEoDRISCgpkYXRhX3lfcHRyGAcgASgEEhIK", - "CmRhdGFfdV9wdHIYCCABKAQSEgoKZGF0YV92X3B0chgJIAEoBBISCgpkYXRh", - "X2FfcHRyGAogASgEIpIBChVCaXBsYW5hcll1dkJ1ZmZlckluZm8SFAoMY2hy", - "b21hX3dpZHRoGAEgASgNEhUKDWNocm9tYV9oZWlnaHQYAiABKA0SEAoIc3Ry", - "aWRlX3kYAyABKA0SEQoJc3RyaWRlX3V2GAQgASgNEhIKCmRhdGFfeV9wdHIY", - "BSABKAQSEwoLZGF0YV91dl9wdHIYBiABKAQiEgoQTmF0aXZlQnVmZmVySW5m", - "byJyCg9WaWRlb1N0cmVhbUluZm8SJAoGaGFuZGxlGAEgASgLMhQubGl2ZWtp", - "dC5GRklIYW5kbGVJZBImCgR0eXBlGAIgASgOMhgubGl2ZWtpdC5WaWRlb1N0", - "cmVhbVR5cGUSEQoJdHJhY2tfc2lkGAMgASgJInoKEFZpZGVvU3RyZWFtRXZl", - "bnQSJAoGaGFuZGxlGAEgASgLMhQubGl2ZWtpdC5GRklIYW5kbGVJZBI1Cg5m", - "cmFtZV9yZWNlaXZlZBgCIAEoCzIbLmxpdmVraXQuVmlkZW9GcmFtZVJlY2Vp", - "dmVkSABCCQoHbWVzc2FnZSJrChJWaWRlb0ZyYW1lUmVjZWl2ZWQSJgoFZnJh", - "bWUYASABKAsyFy5saXZla2l0LlZpZGVvRnJhbWVJbmZvEi0KBmJ1ZmZlchgC", - "IAEoCzIdLmxpdmVraXQuVmlkZW9GcmFtZUJ1ZmZlckluZm8iXwoPVmlkZW9T", - "b3VyY2VJbmZvEiQKBmhhbmRsZRgBIAEoCzIULmxpdmVraXQuRkZJSGFuZGxl", - "SWQSJgoEdHlwZRgCIAEoDjIYLmxpdmVraXQuVmlkZW9Tb3VyY2VUeXBlKigK", - "ClZpZGVvQ29kZWMSBwoDVlA4EAASCAoESDI2NBABEgcKA0FWMRACKmwKDVZp", - "ZGVvUm90YXRpb24SFAoQVklERU9fUk9UQVRJT05fMBAAEhUKEVZJREVPX1JP", - "VEFUSU9OXzkwEAESFgoSVklERU9fUk9UQVRJT05fMTgwEAISFgoSVklERU9f", - "Uk9UQVRJT05fMjcwEAMqVQoPVmlkZW9Gb3JtYXRUeXBlEg8KC0ZPUk1BVF9B", - "UkdCEAASDwoLRk9STUFUX0JHUkEQARIPCgtGT1JNQVRfQUJHUhACEg8KC0ZP", - "Uk1BVF9SR0JBEAMqagoUVmlkZW9GcmFtZUJ1ZmZlclR5cGUSCgoGTkFUSVZF", - "EAASCAoESTQyMBABEgkKBUk0MjBBEAISCAoESTQyMhADEggKBEk0NDQQBBII", - "CgRJMDEwEAUSCAoETlYxMhAGEgkKBVdFQkdMEAcqWQoPVmlkZW9TdHJlYW1U", - "eXBlEhcKE1ZJREVPX1NUUkVBTV9OQVRJVkUQABIWChJWSURFT19TVFJFQU1f", - "V0VCR0wQARIVChFWSURFT19TVFJFQU1fSFRNTBACKioKD1ZpZGVvU291cmNl", - "VHlwZRIXChNWSURFT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxpdmVLaXQuUHJv", - "dG9iBnByb3RvMw==")); + "ChF2aWRlb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", + "b3RvImsKF0FsbG9jVmlkZW9CdWZmZXJSZXF1ZXN0EjEKBHR5cGUYASABKA4y", + "Iy5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVCdWZmZXJUeXBlEg0KBXdpZHRo", + "GAIgASgNEg4KBmhlaWdodBgDIAEoDSJQChhBbGxvY1ZpZGVvQnVmZmVyUmVz", + "cG9uc2USNAoGYnVmZmVyGAEgASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZFZp", + "ZGVvRnJhbWVCdWZmZXIiWwoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQKDHRy", + "YWNrX2hhbmRsZRgBIAEoBBIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5wcm90", + "by5WaWRlb1N0cmVhbVR5cGUiSQoWTmV3VmlkZW9TdHJlYW1SZXNwb25zZRIv", + "CgZzdHJlYW0YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlkZW9TdHJl", + "YW0ifwoVTmV3VmlkZW9Tb3VyY2VSZXF1ZXN0EiwKBHR5cGUYASABKA4yHi5s", + "aXZla2l0LnByb3RvLlZpZGVvU291cmNlVHlwZRI4CgpyZXNvbHV0aW9uGAIg", + "ASgLMiQubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVJlc29sdXRpb24iSQoW", + "TmV3VmlkZW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASABKAsyHy5saXZl", + "a2l0LnByb3RvLk93bmVkVmlkZW9Tb3VyY2UirgEKGENhcHR1cmVWaWRlb0Zy", + "YW1lUmVxdWVzdBIVCg1zb3VyY2VfaGFuZGxlGAEgASgEEiwKBWZyYW1lGAIg", + "ASgLMh0ubGl2ZWtpdC5wcm90by5WaWRlb0ZyYW1lSW5mbxIzCgRpbmZvGAMg", + "ASgLMiMubGl2ZWtpdC5wcm90by5WaWRlb0ZyYW1lQnVmZmVySW5mb0gAEhAK", + "BmhhbmRsZRgEIAEoBEgAQgYKBGZyb20iGwoZQ2FwdHVyZVZpZGVvRnJhbWVS", + "ZXNwb25zZSKfAQoNVG9JNDIwUmVxdWVzdBIOCgZmbGlwX3kYASABKAgSLQoE", + "YXJnYhgCIAEoCzIdLmxpdmVraXQucHJvdG8uQXJnYkJ1ZmZlckluZm9IABI1", + "CgZidWZmZXIYAyABKAsyIy5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVCdWZm", + "ZXJJbmZvSAASEAoGaGFuZGxlGAQgASgESABCBgoEZnJvbSJGCg5Ub0k0MjBS", + "ZXNwb25zZRI0CgZidWZmZXIYASABKAsyJC5saXZla2l0LnByb3RvLk93bmVk", + "VmlkZW9GcmFtZUJ1ZmZlciLUAQoNVG9BcmdiUmVxdWVzdBIzCgZidWZmZXIY", + "ASABKAsyIy5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVCdWZmZXJJbmZvEg8K", + "B2RzdF9wdHIYAiABKAQSMgoKZHN0X2Zvcm1hdBgDIAEoDjIeLmxpdmVraXQu", + "cHJvdG8uVmlkZW9Gb3JtYXRUeXBlEhIKCmRzdF9zdHJpZGUYBCABKA0SEQoJ", + "ZHN0X3dpZHRoGAUgASgNEhIKCmRzdF9oZWlnaHQYBiABKA0SDgoGZmxpcF95", + "GAcgASgIIhAKDlRvQXJnYlJlc3BvbnNlIkQKD1ZpZGVvUmVzb2x1dGlvbhIN", + "CgV3aWR0aBgBIAEoDRIOCgZoZWlnaHQYAiABKA0SEgoKZnJhbWVfcmF0ZRgD", + "IAEoASJ8Cg5BcmdiQnVmZmVySW5mbxILCgNwdHIYASABKAQSLgoGZm9ybWF0", + "GAIgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0Zvcm1hdFR5cGUSDgoGc3Ry", + "aWRlGAMgASgNEg0KBXdpZHRoGAQgASgNEg4KBmhlaWdodBgFIAEoDSJWCg5W", + "aWRlb0ZyYW1lSW5mbxIUCgx0aW1lc3RhbXBfdXMYASABKAMSLgoIcm90YXRp", + "b24YAiABKA4yHC5saXZla2l0LnByb3RvLlZpZGVvUm90YXRpb24ilwIKFFZp", + "ZGVvRnJhbWVCdWZmZXJJbmZvEjgKC2J1ZmZlcl90eXBlGAEgASgOMiMubGl2", + "ZWtpdC5wcm90by5WaWRlb0ZyYW1lQnVmZmVyVHlwZRINCgV3aWR0aBgCIAEo", + "DRIOCgZoZWlnaHQYAyABKA0SMQoDeXV2GAQgASgLMiIubGl2ZWtpdC5wcm90", + "by5QbGFuYXJZdXZCdWZmZXJJbmZvSAASNgoGYmlfeXV2GAUgASgLMiQubGl2", + "ZWtpdC5wcm90by5CaXBsYW5hcll1dkJ1ZmZlckluZm9IABIxCgZuYXRpdmUY", + "BiABKAsyHy5saXZla2l0LnByb3RvLk5hdGl2ZUJ1ZmZlckluZm9IAEIICgZi", + "dWZmZXIieQoVT3duZWRWaWRlb0ZyYW1lQnVmZmVyEi0KBmhhbmRsZRgBIAEo", + "CzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSMQoEaW5mbxgCIAEo", + "CzIjLmxpdmVraXQucHJvdG8uVmlkZW9GcmFtZUJ1ZmZlckluZm8i2gEKE1Bs", + "YW5hcll1dkJ1ZmZlckluZm8SFAoMY2hyb21hX3dpZHRoGAEgASgNEhUKDWNo", + "cm9tYV9oZWlnaHQYAiABKA0SEAoIc3RyaWRlX3kYAyABKA0SEAoIc3RyaWRl", + "X3UYBCABKA0SEAoIc3RyaWRlX3YYBSABKA0SEAoIc3RyaWRlX2EYBiABKA0S", + "EgoKZGF0YV95X3B0chgHIAEoBBISCgpkYXRhX3VfcHRyGAggASgEEhIKCmRh", + "dGFfdl9wdHIYCSABKAQSEgoKZGF0YV9hX3B0chgKIAEoBCKSAQoVQmlwbGFu", + "YXJZdXZCdWZmZXJJbmZvEhQKDGNocm9tYV93aWR0aBgBIAEoDRIVCg1jaHJv", + "bWFfaGVpZ2h0GAIgASgNEhAKCHN0cmlkZV95GAMgASgNEhEKCXN0cmlkZV91", + "dhgEIAEoDRISCgpkYXRhX3lfcHRyGAUgASgEEhMKC2RhdGFfdXZfcHRyGAYg", + "ASgEIhIKEE5hdGl2ZUJ1ZmZlckluZm8iPwoPVmlkZW9TdHJlYW1JbmZvEiwK", + "BHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFtVHlwZSJv", + "ChBPd25lZFZpZGVvU3RyZWFtEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQu", + "cHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQu", + "cHJvdG8uVmlkZW9TdHJlYW1JbmZvIp8BChBWaWRlb1N0cmVhbUV2ZW50EhUK", + "DXN0cmVhbV9oYW5kbGUYASABKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsy", + "IS5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgD", + "IAEoCzIdLmxpdmVraXQucHJvdG8uVmlkZW9TdHJlYW1FT1NIAEIJCgdtZXNz", + "YWdlIngKElZpZGVvRnJhbWVSZWNlaXZlZBIsCgVmcmFtZRgBIAEoCzIdLmxp", + "dmVraXQucHJvdG8uVmlkZW9GcmFtZUluZm8SNAoGYnVmZmVyGAIgASgLMiQu", + "bGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvRnJhbWVCdWZmZXIiEAoOVmlkZW9T", + "dHJlYW1FT1MiNgoVVmlkZW9Tb3VyY2VSZXNvbHV0aW9uEg0KBXdpZHRoGAEg", + "ASgNEg4KBmhlaWdodBgCIAEoDSI/Cg9WaWRlb1NvdXJjZUluZm8SLAoEdHlw", + "ZRgBIAEoDjIeLmxpdmVraXQucHJvdG8uVmlkZW9Tb3VyY2VUeXBlIm8KEE93", + "bmVkVmlkZW9Tb3VyY2USLQoGaGFuZGxlGAEgASgLMh0ubGl2ZWtpdC5wcm90", + "by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgASgLMh4ubGl2ZWtpdC5wcm90", + "by5WaWRlb1NvdXJjZUluZm8qMQoKVmlkZW9Db2RlYxIHCgNWUDgQABIICgRI", + "MjY0EAESBwoDQVYxEAISBwoDVlA5EAMqbAoNVmlkZW9Sb3RhdGlvbhIUChBW", + "SURFT19ST1RBVElPTl8wEAASFQoRVklERU9fUk9UQVRJT05fOTAQARIWChJW", + "SURFT19ST1RBVElPTl8xODAQAhIWChJWSURFT19ST1RBVElPTl8yNzAQAypV", + "Cg9WaWRlb0Zvcm1hdFR5cGUSDwoLRk9STUFUX0FSR0IQABIPCgtGT1JNQVRf", + "QkdSQRABEg8KC0ZPUk1BVF9BQkdSEAISDwoLRk9STUFUX1JHQkEQAypfChRW", + "aWRlb0ZyYW1lQnVmZmVyVHlwZRIKCgZOQVRJVkUQABIICgRJNDIwEAESCQoF", + "STQyMEEQAhIICgRJNDIyEAMSCAoESTQ0NBAEEggKBEkwMTAQBRIICgROVjEy", + "EAYqWQoPVmlkZW9TdHJlYW1UeXBlEhcKE1ZJREVPX1NUUkVBTV9OQVRJVkUQ", + "ABIWChJWSURFT19TVFJFQU1fV0VCR0wQARIVChFWSURFT19TVFJFQU1fSFRN", + "TBACKioKD1ZpZGVvU291cmNlVHlwZRIXChNWSURFT19TT1VSQ0VfTkFUSVZF", + "EABCEKoCDUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.VideoCodec), typeof(global::LiveKit.Proto.VideoRotation), typeof(global::LiveKit.Proto.VideoFormatType), typeof(global::LiveKit.Proto.VideoFrameBufferType), typeof(global::LiveKit.Proto.VideoStreamType), typeof(global::LiveKit.Proto.VideoSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AllocVideoBufferRequest), global::LiveKit.Proto.AllocVideoBufferRequest.Parser, new[]{ "Type", "Width", "Height" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AllocVideoBufferResponse), global::LiveKit.Proto.AllocVideoBufferResponse.Parser, new[]{ "Buffer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamRequest), global::LiveKit.Proto.NewVideoStreamRequest.Parser, new[]{ "RoomHandle", "ParticipantSid", "TrackSid", "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamRequest), global::LiveKit.Proto.NewVideoStreamRequest.Parser, new[]{ "TrackHandle", "Type" }, null, 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.NewVideoSourceRequest), global::LiveKit.Proto.NewVideoSourceRequest.Parser, new[]{ "Type" }, 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", "Frame", "BufferHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureVideoFrameRequest), global::LiveKit.Proto.CaptureVideoFrameRequest.Parser, new[]{ "SourceHandle", "Frame", "Info", "Handle" }, new[]{ "From" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureVideoFrameResponse), global::LiveKit.Proto.CaptureVideoFrameResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToI420Request), global::LiveKit.Proto.ToI420Request.Parser, new[]{ "FlipY", "Argb", "Buffer" }, new[]{ "From" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToI420Request), global::LiveKit.Proto.ToI420Request.Parser, new[]{ "FlipY", "Argb", "Buffer", "Handle" }, new[]{ "From" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToI420Response), global::LiveKit.Proto.ToI420Response.Parser, new[]{ "Buffer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToARGBRequest), global::LiveKit.Proto.ToARGBRequest.Parser, new[]{ "Buffer", "DstPtr", "DstFormat", "DstStride", "DstWidth", "DstHeight", "FlipY" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToARGBResponse), global::LiveKit.Proto.ToARGBResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToArgbRequest), global::LiveKit.Proto.ToArgbRequest.Parser, new[]{ "Buffer", "DstPtr", "DstFormat", "DstStride", "DstWidth", "DstHeight", "FlipY" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ToArgbResponse), global::LiveKit.Proto.ToArgbResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoResolution), global::LiveKit.Proto.VideoResolution.Parser, new[]{ "Width", "Height", "FrameRate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ARGBBufferInfo), global::LiveKit.Proto.ARGBBufferInfo.Parser, new[]{ "Ptr", "Format", "Stride", "Width", "Height" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoFrameInfo), global::LiveKit.Proto.VideoFrameInfo.Parser, new[]{ "Timestamp", "Rotation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoFrameBufferInfo), global::LiveKit.Proto.VideoFrameBufferInfo.Parser, new[]{ "Handle", "BufferType", "Width", "Height", "Yuv", "BiYuv", "Native" }, new[]{ "Buffer" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ArgbBufferInfo), global::LiveKit.Proto.ArgbBufferInfo.Parser, new[]{ "Ptr", "Format", "Stride", "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoFrameInfo), global::LiveKit.Proto.VideoFrameInfo.Parser, new[]{ "TimestampUs", "Rotation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoFrameBufferInfo), global::LiveKit.Proto.VideoFrameBufferInfo.Parser, new[]{ "BufferType", "Width", "Height", "Yuv", "BiYuv", "Native" }, new[]{ "Buffer" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedVideoFrameBuffer), global::LiveKit.Proto.OwnedVideoFrameBuffer.Parser, new[]{ "Handle", "Info" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PlanarYuvBufferInfo), global::LiveKit.Proto.PlanarYuvBufferInfo.Parser, new[]{ "ChromaWidth", "ChromaHeight", "StrideY", "StrideU", "StrideV", "StrideA", "DataYPtr", "DataUPtr", "DataVPtr", "DataAPtr" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.BiplanarYuvBufferInfo), global::LiveKit.Proto.BiplanarYuvBufferInfo.Parser, new[]{ "ChromaWidth", "ChromaHeight", "StrideY", "StrideUv", "DataYPtr", "DataUvPtr" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NativeBufferInfo), global::LiveKit.Proto.NativeBufferInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamInfo), global::LiveKit.Proto.VideoStreamInfo.Parser, new[]{ "Handle", "Type", "TrackSid" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamEvent), global::LiveKit.Proto.VideoStreamEvent.Parser, new[]{ "Handle", "FrameReceived" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamInfo), global::LiveKit.Proto.VideoStreamInfo.Parser, new[]{ "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedVideoStream), global::LiveKit.Proto.OwnedVideoStream.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamEvent), global::LiveKit.Proto.VideoStreamEvent.Parser, new[]{ "StreamHandle", "FrameReceived", "Eos" }, new[]{ "Message" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoFrameReceived), global::LiveKit.Proto.VideoFrameReceived.Parser, new[]{ "Frame", "Buffer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoSourceInfo), global::LiveKit.Proto.VideoSourceInfo.Parser, new[]{ "Handle", "Type" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamEOS), global::LiveKit.Proto.VideoStreamEOS.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoSourceResolution), global::LiveKit.Proto.VideoSourceResolution.Parser, new[]{ "Width", "Height" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoSourceInfo), global::LiveKit.Proto.VideoSourceInfo.Parser, new[]{ "Type" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedVideoSource), global::LiveKit.Proto.OwnedVideoSource.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } #endregion @@ -129,6 +145,7 @@ public enum VideoCodec { [pbr::OriginalName("VP8")] Vp8 = 0, [pbr::OriginalName("H264")] H264 = 1, [pbr::OriginalName("AV1")] Av1 = 2, + [pbr::OriginalName("VP9")] Vp9 = 3, } public enum VideoRotation { @@ -153,7 +170,6 @@ public enum VideoFrameBufferType { [pbr::OriginalName("I444")] I444 = 4, [pbr::OriginalName("I010")] I010 = 5, [pbr::OriginalName("NV12")] Nv12 = 6, - [pbr::OriginalName("WEBGL")] Webgl = 7, } public enum VideoStreamType { @@ -172,6 +188,7 @@ public enum VideoSourceType { /// /// Allocate a new VideoFrameBuffer /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AllocVideoBufferRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -438,6 +455,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AllocVideoBufferResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -484,10 +502,10 @@ public AllocVideoBufferResponse Clone() { /// Field number for the "buffer" field. public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.VideoFrameBufferInfo buffer_; + private global::LiveKit.Proto.OwnedVideoFrameBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoFrameBufferInfo Buffer { + public global::LiveKit.Proto.OwnedVideoFrameBuffer Buffer { get { return buffer_; } set { buffer_ = value; @@ -581,7 +599,7 @@ public void MergeFrom(AllocVideoBufferResponse other) { } if (other.buffer_ != null) { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } Buffer.MergeFrom(other.Buffer); } @@ -602,7 +620,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -624,7 +642,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -640,6 +658,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// Create a new VideoStream /// VideoStream is used to receive video frames from a track /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewVideoStreamRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -674,9 +693,7 @@ public NewVideoStreamRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewVideoStreamRequest(NewVideoStreamRequest other) : this() { - roomHandle_ = other.roomHandle_ != null ? other.roomHandle_.Clone() : null; - participantSid_ = other.participantSid_; - trackSid_ = other.trackSid_; + trackHandle_ = other.trackHandle_; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -687,44 +704,20 @@ public NewVideoStreamRequest Clone() { return new NewVideoStreamRequest(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId roomHandle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId RoomHandle { - get { return roomHandle_; } - set { - roomHandle_ = value; - } - } - - /// Field number for the "participant_sid" field. - public const int ParticipantSidFieldNumber = 2; - 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"); - } - } - - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 3; - private string trackSid_ = ""; + /// 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 string TrackSid { - get { return trackSid_; } + public ulong TrackHandle { + get { return trackHandle_; } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackHandle_ = value; } } /// Field number for the "type" field. - public const int TypeFieldNumber = 4; + 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)] @@ -750,9 +743,7 @@ public bool Equals(NewVideoStreamRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(RoomHandle, other.RoomHandle)) return false; - if (ParticipantSid != other.ParticipantSid) return false; - if (TrackSid != other.TrackSid) return false; + if (TrackHandle != other.TrackHandle) return false; if (Type != other.Type) return false; return Equals(_unknownFields, other._unknownFields); } @@ -761,9 +752,7 @@ public bool Equals(NewVideoStreamRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (roomHandle_ != null) hash ^= RoomHandle.GetHashCode(); - if (ParticipantSid.Length != 0) hash ^= ParticipantSid.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -783,20 +772,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); - } - if (ParticipantSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - output.WriteRawTag(32); + output.WriteRawTag(16); output.WriteEnum((int) Type); } if (_unknownFields != null) { @@ -809,20 +790,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 (roomHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(RoomHandle); - } - if (ParticipantSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParticipantSid); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + if (TrackHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TrackHandle); } if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - output.WriteRawTag(32); + output.WriteRawTag(16); output.WriteEnum((int) Type); } if (_unknownFields != null) { @@ -835,14 +808,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (roomHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomHandle); - } - if (ParticipantSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantSid); - } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (TrackHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); @@ -859,17 +826,8 @@ public void MergeFrom(NewVideoStreamRequest other) { if (other == null) { return; } - if (other.roomHandle_ != null) { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - RoomHandle.MergeFrom(other.RoomHandle); - } - if (other.ParticipantSid.Length != 0) { - ParticipantSid = other.ParticipantSid; - } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.TrackHandle != 0UL) { + TrackHandle = other.TrackHandle; } if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { Type = other.Type; @@ -889,22 +847,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); - break; - } - case 18: { - ParticipantSid = input.ReadString(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 8: { + TrackHandle = input.ReadUInt64(); break; } - case 32: { + case 16: { Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); break; } @@ -923,22 +870,11 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (roomHandle_ == null) { - RoomHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(RoomHandle); - break; - } - case 18: { - ParticipantSid = input.ReadString(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 8: { + TrackHandle = input.ReadUInt64(); break; } - case 32: { + case 16: { Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); break; } @@ -949,6 +885,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewVideoStreamResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -995,10 +932,10 @@ public NewVideoStreamResponse Clone() { /// Field number for the "stream" field. public const int StreamFieldNumber = 1; - private global::LiveKit.Proto.VideoStreamInfo stream_; + private global::LiveKit.Proto.OwnedVideoStream stream_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoStreamInfo Stream { + public global::LiveKit.Proto.OwnedVideoStream Stream { get { return stream_; } set { stream_ = value; @@ -1092,7 +1029,7 @@ public void MergeFrom(NewVideoStreamResponse other) { } if (other.stream_ != null) { if (stream_ == null) { - Stream = new global::LiveKit.Proto.VideoStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedVideoStream(); } Stream.MergeFrom(other.Stream); } @@ -1113,7 +1050,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (stream_ == null) { - Stream = new global::LiveKit.Proto.VideoStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedVideoStream(); } input.ReadMessage(Stream); break; @@ -1135,7 +1072,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (stream_ == null) { - Stream = new global::LiveKit.Proto.VideoStreamInfo(); + Stream = new global::LiveKit.Proto.OwnedVideoStream(); } input.ReadMessage(Stream); break; @@ -1151,6 +1088,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// Create a new VideoSource /// VideoSource is used to send video frame to a track /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewVideoSourceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1186,6 +1124,7 @@ public NewVideoSourceRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewVideoSourceRequest(NewVideoSourceRequest other) : this() { type_ = other.type_; + resolution_ = other.resolution_ != null ? other.resolution_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1207,6 +1146,22 @@ public NewVideoSourceRequest Clone() { } } + /// Field number for the "resolution" field. + public const int ResolutionFieldNumber = 2; + private global::LiveKit.Proto.VideoSourceResolution resolution_; + /// + /// Used to determine which encodings to use + simulcast layers + /// Most of the time it corresponds to the source resolution + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoSourceResolution Resolution { + get { return resolution_; } + set { + resolution_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1223,6 +1178,7 @@ public bool Equals(NewVideoSourceRequest other) { return true; } if (Type != other.Type) return false; + if (!object.Equals(Resolution, other.Resolution)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1231,6 +1187,7 @@ public bool Equals(NewVideoSourceRequest other) { public override int GetHashCode() { int hash = 1; if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) hash ^= Type.GetHashCode(); + if (resolution_ != null) hash ^= Resolution.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1253,6 +1210,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteEnum((int) Type); } + if (resolution_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Resolution); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1267,6 +1228,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(8); output.WriteEnum((int) Type); } + if (resolution_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Resolution); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1280,6 +1245,9 @@ public int CalculateSize() { if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } + if (resolution_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resolution); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1295,6 +1263,12 @@ public void MergeFrom(NewVideoSourceRequest other) { if (other.Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { Type = other.Type; } + if (other.resolution_ != null) { + if (resolution_ == null) { + Resolution = new global::LiveKit.Proto.VideoSourceResolution(); + } + Resolution.MergeFrom(other.Resolution); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1314,6 +1288,13 @@ public void MergeFrom(pb::CodedInputStream input) { Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); break; } + case 18: { + if (resolution_ == null) { + Resolution = new global::LiveKit.Proto.VideoSourceResolution(); + } + input.ReadMessage(Resolution); + break; + } } } #endif @@ -1333,6 +1314,13 @@ public void MergeFrom(pb::CodedInputStream input) { Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); break; } + case 18: { + if (resolution_ == null) { + Resolution = new global::LiveKit.Proto.VideoSourceResolution(); + } + input.ReadMessage(Resolution); + break; + } } } } @@ -1340,6 +1328,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NewVideoSourceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1386,10 +1375,10 @@ public NewVideoSourceResponse Clone() { /// Field number for the "source" field. public const int SourceFieldNumber = 1; - private global::LiveKit.Proto.VideoSourceInfo source_; + private global::LiveKit.Proto.OwnedVideoSource source_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoSourceInfo Source { + public global::LiveKit.Proto.OwnedVideoSource Source { get { return source_; } set { source_ = value; @@ -1483,7 +1472,7 @@ public void MergeFrom(NewVideoSourceResponse other) { } if (other.source_ != null) { if (source_ == null) { - Source = new global::LiveKit.Proto.VideoSourceInfo(); + Source = new global::LiveKit.Proto.OwnedVideoSource(); } Source.MergeFrom(other.Source); } @@ -1504,7 +1493,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (source_ == null) { - Source = new global::LiveKit.Proto.VideoSourceInfo(); + Source = new global::LiveKit.Proto.OwnedVideoSource(); } input.ReadMessage(Source); break; @@ -1526,7 +1515,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (source_ == null) { - Source = new global::LiveKit.Proto.VideoSourceInfo(); + Source = new global::LiveKit.Proto.OwnedVideoSource(); } input.ReadMessage(Source); break; @@ -1541,6 +1530,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Push a frame to a VideoSource /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CaptureVideoFrameRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1575,9 +1565,17 @@ public CaptureVideoFrameRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureVideoFrameRequest(CaptureVideoFrameRequest other) : this() { - sourceHandle_ = other.sourceHandle_ != null ? other.sourceHandle_.Clone() : null; + sourceHandle_ = other.sourceHandle_; frame_ = other.frame_ != null ? other.frame_.Clone() : null; - bufferHandle_ = other.bufferHandle_ != null ? other.bufferHandle_.Clone() : null; + switch (other.FromCase) { + case FromOneofCase.Info: + Info = other.Info.Clone(); + break; + case FromOneofCase.Handle: + Handle = other.Handle; + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1589,10 +1587,10 @@ public CaptureVideoFrameRequest Clone() { /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId sourceHandle_; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId SourceHandle { + public ulong SourceHandle { get { return sourceHandle_; } set { sourceHandle_ = value; @@ -1611,18 +1609,65 @@ public CaptureVideoFrameRequest Clone() { } } - /// Field number for the "buffer_handle" field. - public const int BufferHandleFieldNumber = 3; - private global::LiveKit.Proto.FFIHandleId bufferHandle_; + /// Field number for the "info" field. + public const int InfoFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoFrameBufferInfo Info { + get { return fromCase_ == FromOneofCase.Info ? (global::LiveKit.Proto.VideoFrameBufferInfo) from_ : null; } + set { + from_ = value; + fromCase_ = value == null ? FromOneofCase.None : FromOneofCase.Info; + } + } + + /// Field number for the "handle" field. + public const int HandleFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId BufferHandle { - get { return bufferHandle_; } + public ulong Handle { + get { return HasHandle ? (ulong) from_ : 0UL; } set { - bufferHandle_ = value; + from_ = value; + fromCase_ = FromOneofCase.Handle; + } + } + /// Gets whether the "handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHandle { + get { return fromCase_ == FromOneofCase.Handle; } + } + /// Clears the value of the oneof if it's currently set to "handle" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHandle() { + if (HasHandle) { + ClearFrom(); } } + private object from_; + /// Enum of possible cases for the "from" oneof. + public enum FromOneofCase { + None = 0, + Info = 3, + Handle = 4, + } + private FromOneofCase fromCase_ = FromOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FromOneofCase FromCase { + get { return fromCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrom() { + fromCase_ = FromOneofCase.None; + from_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1638,9 +1683,11 @@ public bool Equals(CaptureVideoFrameRequest other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(SourceHandle, other.SourceHandle)) return false; + if (SourceHandle != other.SourceHandle) return false; if (!object.Equals(Frame, other.Frame)) return false; - if (!object.Equals(BufferHandle, other.BufferHandle)) return false; + if (!object.Equals(Info, other.Info)) return false; + if (Handle != other.Handle) return false; + if (FromCase != other.FromCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1648,9 +1695,11 @@ public bool Equals(CaptureVideoFrameRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (sourceHandle_ != null) hash ^= SourceHandle.GetHashCode(); + if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); if (frame_ != null) hash ^= Frame.GetHashCode(); - if (bufferHandle_ != null) hash ^= BufferHandle.GetHashCode(); + if (fromCase_ == FromOneofCase.Info) hash ^= Info.GetHashCode(); + if (HasHandle) hash ^= Handle.GetHashCode(); + hash ^= (int) fromCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1669,17 +1718,21 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (sourceHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); } if (frame_ != null) { output.WriteRawTag(18); output.WriteMessage(Frame); } - if (bufferHandle_ != null) { + if (fromCase_ == FromOneofCase.Info) { output.WriteRawTag(26); - output.WriteMessage(BufferHandle); + output.WriteMessage(Info); + } + if (HasHandle) { + output.WriteRawTag(32); + output.WriteUInt64(Handle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1691,17 +1744,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 (sourceHandle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SourceHandle); + if (SourceHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); } if (frame_ != null) { output.WriteRawTag(18); output.WriteMessage(Frame); } - if (bufferHandle_ != null) { + if (fromCase_ == FromOneofCase.Info) { output.WriteRawTag(26); - output.WriteMessage(BufferHandle); + output.WriteMessage(Info); + } + if (HasHandle) { + output.WriteRawTag(32); + output.WriteUInt64(Handle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1713,14 +1770,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (sourceHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceHandle); + if (SourceHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (frame_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame); } - if (bufferHandle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BufferHandle); + if (fromCase_ == FromOneofCase.Info) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (HasHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Handle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1734,11 +1794,8 @@ public void MergeFrom(CaptureVideoFrameRequest other) { if (other == null) { return; } - if (other.sourceHandle_ != null) { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - SourceHandle.MergeFrom(other.SourceHandle); + if (other.SourceHandle != 0UL) { + SourceHandle = other.SourceHandle; } if (other.frame_ != null) { if (frame_ == null) { @@ -1746,12 +1803,18 @@ public void MergeFrom(CaptureVideoFrameRequest other) { } Frame.MergeFrom(other.Frame); } - if (other.bufferHandle_ != null) { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); - } - BufferHandle.MergeFrom(other.BufferHandle); + switch (other.FromCase) { + case FromOneofCase.Info: + if (Info == null) { + Info = new global::LiveKit.Proto.VideoFrameBufferInfo(); + } + Info.MergeFrom(other.Info); + break; + case FromOneofCase.Handle: + Handle = other.Handle; + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1767,11 +1830,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + SourceHandle = input.ReadUInt64(); break; } case 18: { @@ -1782,10 +1842,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + global::LiveKit.Proto.VideoFrameBufferInfo subBuilder = new global::LiveKit.Proto.VideoFrameBufferInfo(); + if (fromCase_ == FromOneofCase.Info) { + subBuilder.MergeFrom(Info); } - input.ReadMessage(BufferHandle); + input.ReadMessage(subBuilder); + Info = subBuilder; + break; + } + case 32: { + Handle = input.ReadUInt64(); break; } } @@ -1803,11 +1869,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (sourceHandle_ == null) { - SourceHandle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(SourceHandle); + case 8: { + SourceHandle = input.ReadUInt64(); break; } case 18: { @@ -1818,10 +1881,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (bufferHandle_ == null) { - BufferHandle = new global::LiveKit.Proto.FFIHandleId(); + global::LiveKit.Proto.VideoFrameBufferInfo subBuilder = new global::LiveKit.Proto.VideoFrameBufferInfo(); + if (fromCase_ == FromOneofCase.Info) { + subBuilder.MergeFrom(Info); } - input.ReadMessage(BufferHandle); + input.ReadMessage(subBuilder); + Info = subBuilder; + break; + } + case 32: { + Handle = input.ReadUInt64(); break; } } @@ -1831,6 +1900,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CaptureVideoFrameResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1987,6 +2057,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// Convert a RGBA frame to a I420 YUV frame /// Or convert another YUV frame format to I420 /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ToI420Request : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2029,6 +2100,9 @@ public ToI420Request(ToI420Request other) : this() { case FromOneofCase.Buffer: Buffer = other.Buffer.Clone(); break; + case FromOneofCase.Handle: + Handle = other.Handle; + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2056,8 +2130,8 @@ public bool FlipY { public const int ArgbFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ARGBBufferInfo Argb { - get { return fromCase_ == FromOneofCase.Argb ? (global::LiveKit.Proto.ARGBBufferInfo) from_ : null; } + public global::LiveKit.Proto.ArgbBufferInfo Argb { + get { return fromCase_ == FromOneofCase.Argb ? (global::LiveKit.Proto.ArgbBufferInfo) from_ : null; } set { from_ = value; fromCase_ = value == null ? FromOneofCase.None : FromOneofCase.Argb; @@ -2068,20 +2142,47 @@ public bool FlipY { public const int BufferFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Buffer { - get { return fromCase_ == FromOneofCase.Buffer ? (global::LiveKit.Proto.FFIHandleId) from_ : null; } + public global::LiveKit.Proto.VideoFrameBufferInfo Buffer { + get { return fromCase_ == FromOneofCase.Buffer ? (global::LiveKit.Proto.VideoFrameBufferInfo) from_ : null; } set { from_ = value; fromCase_ = value == null ? FromOneofCase.None : FromOneofCase.Buffer; } } + /// Field number for the "handle" field. + public const int HandleFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Handle { + get { return HasHandle ? (ulong) from_ : 0UL; } + set { + from_ = value; + fromCase_ = FromOneofCase.Handle; + } + } + /// Gets whether the "handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHandle { + get { return fromCase_ == FromOneofCase.Handle; } + } + /// Clears the value of the oneof if it's currently set to "handle" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHandle() { + if (HasHandle) { + ClearFrom(); + } + } + private object from_; /// Enum of possible cases for the "from" oneof. public enum FromOneofCase { None = 0, Argb = 2, Buffer = 3, + Handle = 4, } private FromOneofCase fromCase_ = FromOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2115,6 +2216,7 @@ public bool Equals(ToI420Request other) { if (FlipY != other.FlipY) return false; if (!object.Equals(Argb, other.Argb)) return false; if (!object.Equals(Buffer, other.Buffer)) return false; + if (Handle != other.Handle) return false; if (FromCase != other.FromCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2126,6 +2228,7 @@ public override int GetHashCode() { if (FlipY != false) hash ^= FlipY.GetHashCode(); if (fromCase_ == FromOneofCase.Argb) hash ^= Argb.GetHashCode(); if (fromCase_ == FromOneofCase.Buffer) hash ^= Buffer.GetHashCode(); + if (HasHandle) hash ^= Handle.GetHashCode(); hash ^= (int) fromCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2157,6 +2260,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Buffer); } + if (HasHandle) { + output.WriteRawTag(32); + output.WriteUInt64(Handle); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2179,6 +2286,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteMessage(Buffer); } + if (HasHandle) { + output.WriteRawTag(32); + output.WriteUInt64(Handle); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2198,6 +2309,9 @@ public int CalculateSize() { if (fromCase_ == FromOneofCase.Buffer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } + if (HasHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Handle); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2216,16 +2330,19 @@ public void MergeFrom(ToI420Request other) { switch (other.FromCase) { case FromOneofCase.Argb: if (Argb == null) { - Argb = new global::LiveKit.Proto.ARGBBufferInfo(); + Argb = new global::LiveKit.Proto.ArgbBufferInfo(); } Argb.MergeFrom(other.Argb); break; case FromOneofCase.Buffer: if (Buffer == null) { - Buffer = new global::LiveKit.Proto.FFIHandleId(); + Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); } Buffer.MergeFrom(other.Buffer); break; + case FromOneofCase.Handle: + Handle = other.Handle; + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2248,7 +2365,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - global::LiveKit.Proto.ARGBBufferInfo subBuilder = new global::LiveKit.Proto.ARGBBufferInfo(); + global::LiveKit.Proto.ArgbBufferInfo subBuilder = new global::LiveKit.Proto.ArgbBufferInfo(); if (fromCase_ == FromOneofCase.Argb) { subBuilder.MergeFrom(Argb); } @@ -2257,7 +2374,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - global::LiveKit.Proto.FFIHandleId subBuilder = new global::LiveKit.Proto.FFIHandleId(); + global::LiveKit.Proto.VideoFrameBufferInfo subBuilder = new global::LiveKit.Proto.VideoFrameBufferInfo(); if (fromCase_ == FromOneofCase.Buffer) { subBuilder.MergeFrom(Buffer); } @@ -2265,6 +2382,10 @@ public void MergeFrom(pb::CodedInputStream input) { Buffer = subBuilder; break; } + case 32: { + Handle = input.ReadUInt64(); + break; + } } } #endif @@ -2285,7 +2406,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - global::LiveKit.Proto.ARGBBufferInfo subBuilder = new global::LiveKit.Proto.ARGBBufferInfo(); + global::LiveKit.Proto.ArgbBufferInfo subBuilder = new global::LiveKit.Proto.ArgbBufferInfo(); if (fromCase_ == FromOneofCase.Argb) { subBuilder.MergeFrom(Argb); } @@ -2294,7 +2415,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - global::LiveKit.Proto.FFIHandleId subBuilder = new global::LiveKit.Proto.FFIHandleId(); + global::LiveKit.Proto.VideoFrameBufferInfo subBuilder = new global::LiveKit.Proto.VideoFrameBufferInfo(); if (fromCase_ == FromOneofCase.Buffer) { subBuilder.MergeFrom(Buffer); } @@ -2302,6 +2423,10 @@ public void MergeFrom(pb::CodedInputStream input) { Buffer = subBuilder; break; } + case 32: { + Handle = input.ReadUInt64(); + break; + } } } } @@ -2309,6 +2434,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ToI420Response : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2355,10 +2481,10 @@ public ToI420Response Clone() { /// Field number for the "buffer" field. public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.VideoFrameBufferInfo buffer_; + private global::LiveKit.Proto.OwnedVideoFrameBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoFrameBufferInfo Buffer { + public global::LiveKit.Proto.OwnedVideoFrameBuffer Buffer { get { return buffer_; } set { buffer_ = value; @@ -2452,7 +2578,7 @@ public void MergeFrom(ToI420Response other) { } if (other.buffer_ != null) { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } Buffer.MergeFrom(other.Buffer); } @@ -2473,7 +2599,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -2495,7 +2621,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); } input.ReadMessage(Buffer); break; @@ -2511,16 +2637,17 @@ public void MergeFrom(pb::CodedInputStream input) { /// Convert a YUV frame to a RGBA frame /// Only I420 is supported atm /// - public sealed partial class ToARGBRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ToArgbRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToARGBRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToArgbRequest()); 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)] @@ -2536,7 +2663,7 @@ public sealed partial class ToARGBRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBRequest() { + public ToArgbRequest() { OnConstruction(); } @@ -2544,7 +2671,7 @@ public ToARGBRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBRequest(ToARGBRequest other) : this() { + public ToArgbRequest(ToArgbRequest other) : this() { buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; dstPtr_ = other.dstPtr_; dstFormat_ = other.dstFormat_; @@ -2557,16 +2684,16 @@ public ToARGBRequest(ToARGBRequest other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBRequest Clone() { - return new ToARGBRequest(this); + public ToArgbRequest Clone() { + return new ToArgbRequest(this); } /// Field number for the "buffer" field. public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId buffer_; + private global::LiveKit.Proto.VideoFrameBufferInfo buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Buffer { + public global::LiveKit.Proto.VideoFrameBufferInfo Buffer { get { return buffer_; } set { buffer_ = value; @@ -2648,12 +2775,12 @@ public bool FlipY { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ToARGBRequest); + return Equals(other as ToArgbRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ToARGBRequest other) { + public bool Equals(ToArgbRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -2804,13 +2931,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ToARGBRequest other) { + public void MergeFrom(ToArgbRequest other) { if (other == null) { return; } if (other.buffer_ != null) { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.FFIHandleId(); + Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); } Buffer.MergeFrom(other.Buffer); } @@ -2849,7 +2976,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.FFIHandleId(); + Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); } input.ReadMessage(Buffer); break; @@ -2895,7 +3022,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.FFIHandleId(); + Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); } input.ReadMessage(Buffer); break; @@ -2931,16 +3058,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ToARGBResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ToArgbResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToARGBResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ToArgbResponse()); 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)] @@ -2956,7 +3084,7 @@ public sealed partial class ToARGBResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBResponse() { + public ToArgbResponse() { OnConstruction(); } @@ -2964,25 +3092,25 @@ public ToARGBResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBResponse(ToARGBResponse other) : this() { + public ToArgbResponse(ToArgbResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ToARGBResponse Clone() { - return new ToARGBResponse(this); + public ToArgbResponse Clone() { + return new ToArgbResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ToARGBResponse); + return Equals(other as ToArgbResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ToARGBResponse other) { + public bool Equals(ToArgbResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -3042,7 +3170,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ToARGBResponse other) { + public void MergeFrom(ToArgbResponse other) { if (other == null) { return; } @@ -3083,6 +3211,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class VideoResolution : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3346,16 +3475,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ARGBBufferInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ArgbBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ARGBBufferInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArgbBufferInfo()); 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)] @@ -3371,7 +3501,7 @@ public sealed partial class ARGBBufferInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ARGBBufferInfo() { + public ArgbBufferInfo() { OnConstruction(); } @@ -3379,7 +3509,7 @@ public ARGBBufferInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ARGBBufferInfo(ARGBBufferInfo other) : this() { + public ArgbBufferInfo(ArgbBufferInfo other) : this() { ptr_ = other.ptr_; format_ = other.format_; stride_ = other.stride_; @@ -3390,8 +3520,8 @@ public ARGBBufferInfo(ARGBBufferInfo other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ARGBBufferInfo Clone() { - return new ARGBBufferInfo(this); + public ArgbBufferInfo Clone() { + return new ArgbBufferInfo(this); } /// Field number for the "ptr" field. @@ -3457,12 +3587,12 @@ public uint Height { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ARGBBufferInfo); + return Equals(other as ArgbBufferInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ARGBBufferInfo other) { + public bool Equals(ArgbBufferInfo other) { if (ReferenceEquals(other, null)) { return false; } @@ -3587,7 +3717,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ARGBBufferInfo other) { + public void MergeFrom(ArgbBufferInfo other) { if (other == null) { return; } @@ -3683,6 +3813,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class VideoFrameInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3717,7 +3848,7 @@ public VideoFrameInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoFrameInfo(VideoFrameInfo other) : this() { - timestamp_ = other.timestamp_; + timestampUs_ = other.timestampUs_; rotation_ = other.rotation_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3728,15 +3859,18 @@ public VideoFrameInfo Clone() { return new VideoFrameInfo(this); } - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 1; - private long timestamp_; + /// Field number for the "timestamp_us" field. + public const int TimestampUsFieldNumber = 1; + private long timestampUs_; + /// + /// In microseconds + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Timestamp { - get { return timestamp_; } + public long TimestampUs { + get { return timestampUs_; } set { - timestamp_ = value; + timestampUs_ = value; } } @@ -3767,7 +3901,7 @@ public bool Equals(VideoFrameInfo other) { if (ReferenceEquals(other, this)) { return true; } - if (Timestamp != other.Timestamp) return false; + if (TimestampUs != other.TimestampUs) return false; if (Rotation != other.Rotation) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3776,7 +3910,7 @@ public bool Equals(VideoFrameInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Timestamp != 0L) hash ^= Timestamp.GetHashCode(); + if (TimestampUs != 0L) hash ^= TimestampUs.GetHashCode(); if (Rotation != global::LiveKit.Proto.VideoRotation._0) hash ^= Rotation.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -3796,9 +3930,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Timestamp != 0L) { + if (TimestampUs != 0L) { output.WriteRawTag(8); - output.WriteInt64(Timestamp); + output.WriteInt64(TimestampUs); } if (Rotation != global::LiveKit.Proto.VideoRotation._0) { output.WriteRawTag(16); @@ -3814,9 +3948,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 (Timestamp != 0L) { + if (TimestampUs != 0L) { output.WriteRawTag(8); - output.WriteInt64(Timestamp); + output.WriteInt64(TimestampUs); } if (Rotation != global::LiveKit.Proto.VideoRotation._0) { output.WriteRawTag(16); @@ -3832,8 +3966,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Timestamp != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + if (TimestampUs != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimestampUs); } if (Rotation != global::LiveKit.Proto.VideoRotation._0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Rotation); @@ -3850,8 +3984,8 @@ public void MergeFrom(VideoFrameInfo other) { if (other == null) { return; } - if (other.Timestamp != 0L) { - Timestamp = other.Timestamp; + if (other.TimestampUs != 0L) { + TimestampUs = other.TimestampUs; } if (other.Rotation != global::LiveKit.Proto.VideoRotation._0) { Rotation = other.Rotation; @@ -3872,7 +4006,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Timestamp = input.ReadInt64(); + TimestampUs = input.ReadInt64(); break; } case 16: { @@ -3895,7 +4029,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Timestamp = input.ReadInt64(); + TimestampUs = input.ReadInt64(); break; } case 16: { @@ -3909,6 +4043,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class VideoFrameBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3943,7 +4078,6 @@ public VideoFrameBufferInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoFrameBufferInfo(VideoFrameBufferInfo other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; bufferType_ = other.bufferType_; width_ = other.width_; height_ = other.height_; @@ -3968,20 +4102,8 @@ public VideoFrameBufferInfo Clone() { return new VideoFrameBufferInfo(this); } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } - } - /// Field number for the "buffer_type" field. - public const int BufferTypeFieldNumber = 2; + public const int BufferTypeFieldNumber = 1; private global::LiveKit.Proto.VideoFrameBufferType bufferType_ = global::LiveKit.Proto.VideoFrameBufferType.Native; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3993,7 +4115,7 @@ public VideoFrameBufferInfo Clone() { } /// Field number for the "width" field. - public const int WidthFieldNumber = 3; + public const int WidthFieldNumber = 2; private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4005,7 +4127,7 @@ public uint Width { } /// Field number for the "height" field. - public const int HeightFieldNumber = 4; + public const int HeightFieldNumber = 3; private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4017,7 +4139,7 @@ public uint Height { } /// Field number for the "yuv" field. - public const int YuvFieldNumber = 5; + public const int YuvFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.PlanarYuvBufferInfo Yuv { @@ -4029,7 +4151,7 @@ public uint Height { } /// Field number for the "bi_yuv" field. - public const int BiYuvFieldNumber = 6; + public const int BiYuvFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.BiplanarYuvBufferInfo BiYuv { @@ -4041,7 +4163,7 @@ public uint Height { } /// Field number for the "native" field. - public const int NativeFieldNumber = 7; + public const int NativeFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NativeBufferInfo Native { @@ -4056,9 +4178,9 @@ public uint Height { /// Enum of possible cases for the "buffer" oneof. public enum BufferOneofCase { None = 0, - Yuv = 5, - BiYuv = 6, - Native = 7, + Yuv = 4, + BiYuv = 5, + Native = 6, } private BufferOneofCase bufferCase_ = BufferOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4089,7 +4211,6 @@ public bool Equals(VideoFrameBufferInfo other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; if (BufferType != other.BufferType) return false; if (Width != other.Width) return false; if (Height != other.Height) return false; @@ -4104,7 +4225,6 @@ public bool Equals(VideoFrameBufferInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); if (BufferType != global::LiveKit.Proto.VideoFrameBufferType.Native) hash ^= BufferType.GetHashCode(); if (Width != 0) hash ^= Width.GetHashCode(); if (Height != 0) hash ^= Height.GetHashCode(); @@ -4130,32 +4250,28 @@ 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 (BufferType != global::LiveKit.Proto.VideoFrameBufferType.Native) { - output.WriteRawTag(16); + output.WriteRawTag(8); output.WriteEnum((int) BufferType); } if (Width != 0) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt32(Width); } if (Height != 0) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteUInt32(Height); } if (bufferCase_ == BufferOneofCase.Yuv) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteMessage(Yuv); } if (bufferCase_ == BufferOneofCase.BiYuv) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteMessage(BiYuv); } if (bufferCase_ == BufferOneofCase.Native) { - output.WriteRawTag(58); + output.WriteRawTag(50); output.WriteMessage(Native); } if (_unknownFields != null) { @@ -4168,32 +4284,28 @@ 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 (BufferType != global::LiveKit.Proto.VideoFrameBufferType.Native) { - output.WriteRawTag(16); + output.WriteRawTag(8); output.WriteEnum((int) BufferType); } if (Width != 0) { - output.WriteRawTag(24); + output.WriteRawTag(16); output.WriteUInt32(Width); } if (Height != 0) { - output.WriteRawTag(32); + output.WriteRawTag(24); output.WriteUInt32(Height); } if (bufferCase_ == BufferOneofCase.Yuv) { - output.WriteRawTag(42); + output.WriteRawTag(34); output.WriteMessage(Yuv); } if (bufferCase_ == BufferOneofCase.BiYuv) { - output.WriteRawTag(50); + output.WriteRawTag(42); output.WriteMessage(BiYuv); } if (bufferCase_ == BufferOneofCase.Native) { - output.WriteRawTag(58); + output.WriteRawTag(50); output.WriteMessage(Native); } if (_unknownFields != null) { @@ -4206,9 +4318,6 @@ 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 (BufferType != global::LiveKit.Proto.VideoFrameBufferType.Native) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BufferType); } @@ -4239,12 +4348,6 @@ public void MergeFrom(VideoFrameBufferInfo other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); - } if (other.BufferType != global::LiveKit.Proto.VideoFrameBufferType.Native) { BufferType = other.BufferType; } @@ -4290,26 +4393,19 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); + case 8: { + BufferType = (global::LiveKit.Proto.VideoFrameBufferType) input.ReadEnum(); break; } case 16: { - BufferType = (global::LiveKit.Proto.VideoFrameBufferType) input.ReadEnum(); + Width = input.ReadUInt32(); break; } case 24: { - Width = input.ReadUInt32(); - break; - } - case 32: { Height = input.ReadUInt32(); break; } - case 42: { + case 34: { global::LiveKit.Proto.PlanarYuvBufferInfo subBuilder = new global::LiveKit.Proto.PlanarYuvBufferInfo(); if (bufferCase_ == BufferOneofCase.Yuv) { subBuilder.MergeFrom(Yuv); @@ -4318,7 +4414,7 @@ public void MergeFrom(pb::CodedInputStream input) { Yuv = subBuilder; break; } - case 50: { + case 42: { global::LiveKit.Proto.BiplanarYuvBufferInfo subBuilder = new global::LiveKit.Proto.BiplanarYuvBufferInfo(); if (bufferCase_ == BufferOneofCase.BiYuv) { subBuilder.MergeFrom(BiYuv); @@ -4327,7 +4423,7 @@ public void MergeFrom(pb::CodedInputStream input) { BiYuv = subBuilder; break; } - case 58: { + case 50: { global::LiveKit.Proto.NativeBufferInfo subBuilder = new global::LiveKit.Proto.NativeBufferInfo(); if (bufferCase_ == BufferOneofCase.Native) { subBuilder.MergeFrom(Native); @@ -4351,26 +4447,19 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); - break; - } - case 16: { + case 8: { BufferType = (global::LiveKit.Proto.VideoFrameBufferType) input.ReadEnum(); break; } - case 24: { + case 16: { Width = input.ReadUInt32(); break; } - case 32: { + case 24: { Height = input.ReadUInt32(); break; } - case 42: { + case 34: { global::LiveKit.Proto.PlanarYuvBufferInfo subBuilder = new global::LiveKit.Proto.PlanarYuvBufferInfo(); if (bufferCase_ == BufferOneofCase.Yuv) { subBuilder.MergeFrom(Yuv); @@ -4379,7 +4468,7 @@ public void MergeFrom(pb::CodedInputStream input) { Yuv = subBuilder; break; } - case 50: { + case 42: { global::LiveKit.Proto.BiplanarYuvBufferInfo subBuilder = new global::LiveKit.Proto.BiplanarYuvBufferInfo(); if (bufferCase_ == BufferOneofCase.BiYuv) { subBuilder.MergeFrom(BiYuv); @@ -4388,7 +4477,7 @@ public void MergeFrom(pb::CodedInputStream input) { BiYuv = subBuilder; break; } - case 58: { + case 50: { global::LiveKit.Proto.NativeBufferInfo subBuilder = new global::LiveKit.Proto.NativeBufferInfo(); if (bufferCase_ == BufferOneofCase.Native) { subBuilder.MergeFrom(Native); @@ -4404,6 +4493,252 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedVideoFrameBuffer : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedVideoFrameBuffer()); + 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[16]; } + } + + [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 OwnedVideoFrameBuffer() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedVideoFrameBuffer(OwnedVideoFrameBuffer 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 OwnedVideoFrameBuffer Clone() { + return new OwnedVideoFrameBuffer(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.VideoFrameBufferInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoFrameBufferInfo 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 OwnedVideoFrameBuffer); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedVideoFrameBuffer 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(OwnedVideoFrameBuffer 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.VideoFrameBufferInfo(); + } + 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 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); + break; + } + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoFrameBufferInfo(); + } + input.ReadMessage(Info); + 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 (info_ == null) { + Info = new global::LiveKit.Proto.VideoFrameBufferInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class PlanarYuvBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -4418,7 +4753,7 @@ public sealed partial class PlanarYuvBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -4946,7 +5282,7 @@ public sealed partial class BiplanarYuvBufferInfo : pb::IMessage /// TODO(theomonnom): Expose graphic context? /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class NativeBufferInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -5323,7 +5660,7 @@ public sealed partial class NativeBufferInfo : 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[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5461,6 +5798,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class VideoStreamInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -5475,7 +5813,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[19]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5495,9 +5833,7 @@ public VideoStreamInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoStreamInfo(VideoStreamInfo other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; type_ = other.type_; - trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5507,20 +5843,8 @@ public VideoStreamInfo Clone() { return new VideoStreamInfo(this); } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } - set { - handle_ = value; - } - } - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; + public const int TypeFieldNumber = 1; private global::LiveKit.Proto.VideoStreamType type_ = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5531,18 +5855,6 @@ public VideoStreamInfo Clone() { } } - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 3; - private string trackSid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } - set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -5558,9 +5870,7 @@ public bool Equals(VideoStreamInfo other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; if (Type != other.Type) return false; - if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5568,9 +5878,7 @@ public bool Equals(VideoStreamInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5589,17 +5897,218 @@ 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 (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + 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 (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - output.WriteRawTag(16); + output.WriteRawTag(8); output.WriteEnum((int) Type); } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + 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 (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoStreamInfo other) { + if (other == null) { + return; + } + if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + Type = other.Type; + } + _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: { + Type = (global::LiveKit.Proto.VideoStreamType) 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 8: { + Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedVideoStream : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedVideoStream()); + 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[21]; } + } + + [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 OwnedVideoStream() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OwnedVideoStream(OwnedVideoStream 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 OwnedVideoStream Clone() { + return new OwnedVideoStream(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.VideoStreamInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoStreamInfo 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 OwnedVideoStream); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OwnedVideoStream 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); @@ -5615,13 +6124,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(26); - output.WriteString(TrackSid); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5636,11 +6141,8 @@ public int CalculateSize() { if (handle_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5650,21 +6152,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoStreamInfo other) { + public void MergeFrom(OwnedVideoStream other) { if (other == null) { return; } if (other.handle_ != null) { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } Handle.MergeFrom(other.Handle); } - if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { - Type = other.Type; - } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoStreamInfo(); + } + Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5683,17 +6185,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoStreamInfo(); + } + input.ReadMessage(Info); break; } } @@ -5713,17 +6214,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.VideoStreamType) input.ReadEnum(); - break; - } - case 26: { - TrackSid = input.ReadString(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoStreamInfo(); + } + input.ReadMessage(Info); break; } } @@ -5733,6 +6233,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class VideoStreamEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -5747,7 +6248,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[20]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5767,11 +6268,14 @@ public VideoStreamEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoStreamEvent(VideoStreamEvent other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; + streamHandle_ = other.streamHandle_; switch (other.MessageCase) { case MessageOneofCase.FrameReceived: FrameReceived = other.FrameReceived.Clone(); break; + case MessageOneofCase.Eos: + Eos = other.Eos.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5783,15 +6287,15 @@ public VideoStreamEvent Clone() { return new VideoStreamEvent(this); } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; + /// Field number for the "stream_handle" field. + public const int StreamHandleFieldNumber = 1; + private ulong streamHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { - get { return handle_; } + public ulong StreamHandle { + get { return streamHandle_; } set { - handle_ = value; + streamHandle_ = value; } } @@ -5807,11 +6311,24 @@ public VideoStreamEvent Clone() { } } + /// Field number for the "eos" field. + public const int EosFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoStreamEOS Eos { + get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.VideoStreamEOS) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { None = 0, FrameReceived = 2, + Eos = 3, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5830,21 +6347,700 @@ public void ClearMessage() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoStreamEvent); + return Equals(other as VideoStreamEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoStreamEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (StreamHandle != other.StreamHandle) return false; + if (!object.Equals(FrameReceived, other.FrameReceived)) return false; + if (!object.Equals(Eos, other.Eos)) 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 (StreamHandle != 0UL) hash ^= StreamHandle.GetHashCode(); + if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode(); + if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.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 (StreamHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + output.WriteRawTag(18); + output.WriteMessage(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(26); + output.WriteMessage(Eos); + } + 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 (StreamHandle != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + output.WriteRawTag(18); + output.WriteMessage(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(26); + output.WriteMessage(Eos); + } + 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 (StreamHandle != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle); + } + if (messageCase_ == MessageOneofCase.FrameReceived) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived); + } + if (messageCase_ == MessageOneofCase.Eos) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoStreamEvent other) { + if (other == null) { + return; + } + if (other.StreamHandle != 0UL) { + StreamHandle = other.StreamHandle; + } + switch (other.MessageCase) { + case MessageOneofCase.FrameReceived: + if (FrameReceived == null) { + FrameReceived = new global::LiveKit.Proto.VideoFrameReceived(); + } + FrameReceived.MergeFrom(other.FrameReceived); + break; + case MessageOneofCase.Eos: + if (Eos == null) { + Eos = new global::LiveKit.Proto.VideoStreamEOS(); + } + Eos.MergeFrom(other.Eos); + 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: { + StreamHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.VideoFrameReceived subBuilder = new global::LiveKit.Proto.VideoFrameReceived(); + if (messageCase_ == MessageOneofCase.FrameReceived) { + subBuilder.MergeFrom(FrameReceived); + } + input.ReadMessage(subBuilder); + FrameReceived = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.VideoStreamEOS subBuilder = new global::LiveKit.Proto.VideoStreamEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = 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: { + StreamHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.VideoFrameReceived subBuilder = new global::LiveKit.Proto.VideoFrameReceived(); + if (messageCase_ == MessageOneofCase.FrameReceived) { + subBuilder.MergeFrom(FrameReceived); + } + input.ReadMessage(subBuilder); + FrameReceived = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.VideoStreamEOS subBuilder = new global::LiveKit.Proto.VideoStreamEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoFrameReceived : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoFrameReceived()); + 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[23]; } + } + + [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 VideoFrameReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoFrameReceived(VideoFrameReceived other) : this() { + frame_ = other.frame_ != null ? other.frame_.Clone() : null; + buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoFrameReceived Clone() { + return new VideoFrameReceived(this); + } + + /// Field number for the "frame" field. + public const int FrameFieldNumber = 1; + private global::LiveKit.Proto.VideoFrameInfo frame_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.VideoFrameInfo Frame { + get { return frame_; } + set { + frame_ = value; + } + } + + /// Field number for the "buffer" field. + public const int BufferFieldNumber = 2; + private global::LiveKit.Proto.OwnedVideoFrameBuffer buffer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedVideoFrameBuffer Buffer { + get { return buffer_; } + set { + buffer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoFrameReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoFrameReceived other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Frame, other.Frame)) return false; + if (!object.Equals(Buffer, other.Buffer)) 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 (frame_ != null) hash ^= Frame.GetHashCode(); + if (buffer_ != null) hash ^= Buffer.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 (frame_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Frame); + } + if (buffer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Buffer); + } + 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 (frame_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Frame); + } + if (buffer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Buffer); + } + 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 (frame_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame); + } + if (buffer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoFrameReceived other) { + if (other == null) { + return; + } + if (other.frame_ != null) { + if (frame_ == null) { + Frame = new global::LiveKit.Proto.VideoFrameInfo(); + } + Frame.MergeFrom(other.Frame); + } + if (other.buffer_ != null) { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); + } + Buffer.MergeFrom(other.Buffer); + } + _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 (frame_ == null) { + Frame = new global::LiveKit.Proto.VideoFrameInfo(); + } + input.ReadMessage(Frame); + break; + } + case 18: { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); + } + input.ReadMessage(Buffer); + 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 (frame_ == null) { + Frame = new global::LiveKit.Proto.VideoFrameInfo(); + } + input.ReadMessage(Frame); + break; + } + case 18: { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedVideoFrameBuffer(); + } + input.ReadMessage(Buffer); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoStreamEOS : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoStreamEOS()); + 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[24]; } + } + + [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 VideoStreamEOS() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamEOS(VideoStreamEOS other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoStreamEOS Clone() { + return new VideoStreamEOS(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoStreamEOS); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VideoStreamEOS other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VideoStreamEOS other) { + if (other == null) { + return; + } + _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; + } + } + #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 VideoSourceResolution : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceResolution()); + 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[25]; } + } + + [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 VideoSourceResolution() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoSourceResolution(VideoSourceResolution other) : this() { + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VideoSourceResolution Clone() { + return new VideoSourceResolution(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Width { + get { return width_; } + set { + width_ = value; + } + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Height { + get { return height_; } + set { + height_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as VideoSourceResolution); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoStreamEvent other) { + public bool Equals(VideoSourceResolution other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(FrameReceived, other.FrameReceived)) return false; - if (MessageCase != other.MessageCase) return false; + if (Width != other.Width) return false; + if (Height != other.Height) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5852,9 +7048,8 @@ public bool Equals(VideoStreamEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode(); - hash ^= (int) messageCase_; + if (Width != 0) hash ^= Width.GetHashCode(); + if (Height != 0) hash ^= Height.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5873,13 +7068,13 @@ 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 (Width != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Width); } - if (messageCase_ == MessageOneofCase.FrameReceived) { - output.WriteRawTag(18); - output.WriteMessage(FrameReceived); + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5891,13 +7086,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 (handle_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Handle); + if (Width != 0) { + output.WriteRawTag(8); + output.WriteUInt32(Width); } - if (messageCase_ == MessageOneofCase.FrameReceived) { - output.WriteRawTag(18); - output.WriteMessage(FrameReceived); + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5909,11 +7104,11 @@ 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 (Width != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (messageCase_ == MessageOneofCase.FrameReceived) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived); + if (Height != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5923,25 +7118,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoStreamEvent other) { + public void MergeFrom(VideoSourceResolution other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - Handle.MergeFrom(other.Handle); + if (other.Width != 0) { + Width = other.Width; } - switch (other.MessageCase) { - case MessageOneofCase.FrameReceived: - if (FrameReceived == null) { - FrameReceived = new global::LiveKit.Proto.VideoFrameReceived(); - } - FrameReceived.MergeFrom(other.FrameReceived); - break; + if (other.Height != 0) { + Height = other.Height; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5957,20 +7143,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); + case 8: { + Width = input.ReadUInt32(); break; } - case 18: { - global::LiveKit.Proto.VideoFrameReceived subBuilder = new global::LiveKit.Proto.VideoFrameReceived(); - if (messageCase_ == MessageOneofCase.FrameReceived) { - subBuilder.MergeFrom(FrameReceived); - } - input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + case 16: { + Height = input.ReadUInt32(); break; } } @@ -5988,20 +7166,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); - } - input.ReadMessage(Handle); + case 8: { + Width = input.ReadUInt32(); break; } - case 18: { - global::LiveKit.Proto.VideoFrameReceived subBuilder = new global::LiveKit.Proto.VideoFrameReceived(); - if (messageCase_ == MessageOneofCase.FrameReceived) { - subBuilder.MergeFrom(FrameReceived); - } - input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + case 16: { + Height = input.ReadUInt32(); break; } } @@ -6011,21 +7181,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class VideoFrameReceived : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class VideoSourceInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoFrameReceived()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceInfo()); 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.VideoFrameReflection.Descriptor.MessageTypes[21]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6036,7 +7207,7 @@ public sealed partial class VideoFrameReceived : pb::IMessageField number for the "frame" field. - public const int FrameFieldNumber = 1; - private global::LiveKit.Proto.VideoFrameInfo frame_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoFrameInfo Frame { - get { return frame_; } - set { - frame_ = value; - } + public VideoSourceInfo Clone() { + return new VideoSourceInfo(this); } - /// Field number for the "buffer" field. - public const int BufferFieldNumber = 2; - private global::LiveKit.Proto.VideoFrameBufferInfo buffer_; + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::LiveKit.Proto.VideoSourceType type_ = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoFrameBufferInfo Buffer { - get { return buffer_; } + public global::LiveKit.Proto.VideoSourceType Type { + get { return type_; } set { - buffer_ = value; + type_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoFrameReceived); + return Equals(other as VideoSourceInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoFrameReceived other) { + public bool Equals(VideoSourceInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Frame, other.Frame)) return false; - if (!object.Equals(Buffer, other.Buffer)) return false; + if (Type != other.Type) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6104,8 +7261,7 @@ public bool Equals(VideoFrameReceived other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (frame_ != null) hash ^= Frame.GetHashCode(); - if (buffer_ != null) hash ^= Buffer.GetHashCode(); + if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6124,13 +7280,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (frame_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Frame); - } - if (buffer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Buffer); + if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6142,13 +7294,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 (frame_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Frame); - } - if (buffer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Buffer); + if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6160,11 +7308,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (frame_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame); - } - if (buffer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); + if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6174,21 +7319,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoFrameReceived other) { + public void MergeFrom(VideoSourceInfo other) { if (other == null) { return; } - if (other.frame_ != null) { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.VideoFrameInfo(); - } - Frame.MergeFrom(other.Frame); - } - if (other.buffer_ != null) { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); - } - Buffer.MergeFrom(other.Buffer); + if (other.Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + Type = other.Type; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6205,18 +7341,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.VideoFrameInfo(); - } - input.ReadMessage(Frame); - break; - } - case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); - } - input.ReadMessage(Buffer); + case 8: { + Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); break; } } @@ -6234,18 +7360,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.VideoFrameInfo(); - } - input.ReadMessage(Frame); - break; - } - case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.VideoFrameBufferInfo(); - } - input.ReadMessage(Buffer); + case 8: { + Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); break; } } @@ -6255,21 +7371,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class VideoSourceInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class OwnedVideoSource : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedVideoSource()); 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.VideoFrameReflection.Descriptor.MessageTypes[22]; } + get { return global::LiveKit.Proto.VideoFrameReflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6280,7 +7397,7 @@ public sealed partial class VideoSourceInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoSourceInfo() { + public OwnedVideoSource() { OnConstruction(); } @@ -6288,55 +7405,51 @@ public VideoSourceInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoSourceInfo(VideoSourceInfo other) : this() { + public OwnedVideoSource(OwnedVideoSource other) : this() { handle_ = other.handle_ != null ? other.handle_.Clone() : null; - type_ = other.type_; + 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 VideoSourceInfo Clone() { - return new VideoSourceInfo(this); + public OwnedVideoSource Clone() { + return new OwnedVideoSource(this); } /// Field number for the "handle" field. public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FFIHandleId handle_; - /// - /// # SAFETY - /// This handle must not be dropped if a track is currently using it - /// + private global::LiveKit.Proto.FfiOwnedHandle handle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FFIHandleId Handle { + public global::LiveKit.Proto.FfiOwnedHandle Handle { get { return handle_; } set { handle_ = value; } } - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.VideoSourceType type_ = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; + /// Field number for the "info" field. + public const int InfoFieldNumber = 2; + private global::LiveKit.Proto.VideoSourceInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoSourceType Type { - get { return type_; } + public global::LiveKit.Proto.VideoSourceInfo Info { + get { return info_; } set { - type_ = value; + info_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoSourceInfo); + return Equals(other as OwnedVideoSource); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoSourceInfo other) { + public bool Equals(OwnedVideoSource other) { if (ReferenceEquals(other, null)) { return false; } @@ -6344,7 +7457,7 @@ public bool Equals(VideoSourceInfo other) { return true; } if (!object.Equals(Handle, other.Handle)) return false; - if (Type != other.Type) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6353,7 +7466,7 @@ public bool Equals(VideoSourceInfo other) { public override int GetHashCode() { int hash = 1; if (handle_ != null) hash ^= Handle.GetHashCode(); - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) hash ^= Type.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6376,9 +7489,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6394,9 +7507,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Handle); } - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6411,8 +7524,8 @@ public int CalculateSize() { if (handle_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6422,18 +7535,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoSourceInfo other) { + public void MergeFrom(OwnedVideoSource other) { if (other == null) { return; } if (other.handle_ != null) { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } Handle.MergeFrom(other.Handle); } - if (other.Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { - Type = other.Type; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoSourceInfo(); + } + Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6452,13 +7568,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoSourceInfo(); + } + input.ReadMessage(Info); break; } } @@ -6478,13 +7597,16 @@ public void MergeFrom(pb::CodedInputStream input) { break; case 10: { if (handle_ == null) { - Handle = new global::LiveKit.Proto.FFIHandleId(); + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } input.ReadMessage(Handle); break; } - case 16: { - Type = (global::LiveKit.Proto.VideoSourceType) input.ReadEnum(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.VideoSourceInfo(); + } + input.ReadMessage(Info); break; } } diff --git a/Runtime/Scripts/Room.cs b/Runtime/Scripts/Room.cs index 11c2984..0b17c5a 100644 --- a/Runtime/Scripts/Room.cs +++ b/Runtime/Scripts/Room.cs @@ -4,12 +4,18 @@ using LiveKit.Proto; using System.Runtime.InteropServices; using UnityEngine; +using Google.Protobuf.Collections; +using System.Threading.Tasks; +using System.Threading; namespace LiveKit { public class Room { - public delegate void ParticipantDelegate(RemoteParticipant participant); + public delegate void MetaDelegate(string metaData); + public delegate void ParticipantDelegate(Participant participant); + public delegate void RemoteParticipantDelegate(RemoteParticipant participant); + public delegate void LocalPublishDelegate(TrackPublication publication, LocalParticipant participant); public delegate void PublishDelegate(RemoteTrackPublication publication, RemoteParticipant participant); public delegate void SubscribeDelegate(IRemoteTrack track, RemoteTrackPublication publication, RemoteParticipant participant); public delegate void MuteDelegate(TrackPublication publication, Participant participant); @@ -17,7 +23,7 @@ public class Room public delegate void ConnectionQualityChangeDelegate(ConnectionQuality quality, Participant participant); public delegate void DataDelegate(byte[] data, Participant participant, DataPacketKind kind); public delegate void ConnectionStateChangeDelegate(ConnectionState connectionState); - public delegate void ConnectionDelegate(); + public delegate void ConnectionDelegate(Room room); public string Sid { private set; get; } public string Name { private set; get; } @@ -27,36 +33,76 @@ public class Room private readonly Dictionary _participants = new(); public IReadOnlyDictionary Participants => _participants; - public event ParticipantDelegate ParticipantConnected; - public event ParticipantDelegate ParticipantDisconnected; - public event PublishDelegate TrackPublished; - public event PublishDelegate TrackUnpublished; - public event SubscribeDelegate TrackSubscribed; - public event SubscribeDelegate TrackUnsubscribed; - public event MuteDelegate TrackMuted; - public event MuteDelegate TrackUnmuted; - public event SpeakersChangeDelegate ActiveSpeakersChanged; - public event ConnectionQualityChangeDelegate ConnectionQualityChanged; - public event DataDelegate DataReceived; - public event ConnectionStateChangeDelegate ConnectionStateChanged; - public event ConnectionDelegate Connected; - public event ConnectionDelegate Disconnected; - public event ConnectionDelegate Reconnecting; - public event ConnectionDelegate Reconnected; + public event MetaDelegate? RoomMetadataChanged; + public event ParticipantDelegate? ParticipantConnected; + public event ParticipantDelegate? ParticipantMetadataChanged; + public event ParticipantDelegate? ParticipantDisconnected; + public event LocalPublishDelegate? LocalTrackPublished; + public event LocalPublishDelegate? LocalTrackUnpublished; + public event PublishDelegate? TrackPublished; + public event PublishDelegate? TrackUnpublished; + public event SubscribeDelegate? TrackSubscribed; + public event SubscribeDelegate? TrackUnsubscribed; + public event MuteDelegate? TrackMuted; + public event MuteDelegate? TrackUnmuted; + public event SpeakersChangeDelegate? ActiveSpeakersChanged; + public event ConnectionQualityChangeDelegate? ConnectionQualityChanged; + public event DataDelegate? DataReceived; + public event ConnectionStateChangeDelegate? ConnectionStateChanged; + public event ConnectionDelegate? Connected; + public event ConnectionDelegate? Disconnected; + public event ConnectionDelegate? Reconnecting; + public event ConnectionDelegate? Reconnected; internal FfiHandle Handle; - public ConnectInstruction Connect(string url, string token) + public ConnectInstruction Connect(string url, string authToken, CancellationToken cancelToken) { var connect = new ConnectRequest(); connect.Url = url; - connect.Token = token; + connect.Token = authToken; + connect.Options = new RoomOptions() { AutoSubscribe = true }; - var request = new FFIRequest(); + var request = new FfiRequest(); request.Connect = connect; + Utils.Debug("Connect...."); var resp = FfiClient.SendRequest(request); - return new ConnectInstruction(resp.Connect.AsyncId.Id, this); + Utils.Debug($"Connect response.... {resp}"); + return new ConnectInstruction(resp.Connect.AsyncId, this, cancelToken); + } + + public void PublishData(byte[] data, string topic, DataPacketKind kind = DataPacketKind.KindLossy) + { + GCHandle pinnedArray = GCHandle.Alloc(data, GCHandleType.Pinned); + IntPtr pointer = pinnedArray.AddrOfPinnedObject(); + + var dataRequest = new PublishDataRequest(); + dataRequest.DataLen = (ulong)data.Length; + dataRequest.DataPtr = (ulong)pointer; + dataRequest.Kind = kind; + dataRequest.Topic = topic; + dataRequest.LocalParticipantHandle = (ulong)LocalParticipant.Handle.DangerousGetHandle(); + + var request = new FfiRequest(); + request.PublishData = dataRequest; + + Utils.Debug("Sending message: " + topic); + FfiClient.SendRequest(request); + pinnedArray.Free(); + } + + public void Disconnect() + { + var disconnect = new DisconnectRequest(); + disconnect.RoomHandle = (ulong)Handle.DangerousGetHandle(); + + var request = new FfiRequest(); + request.Disconnect = disconnect; + + Utils.Debug($"Disconnect.... {disconnect.RoomHandle}"); + var resp = FfiClient.SendRequest(request); + Utils.Debug($"Disconnect response.... {resp}"); } internal void UpdateFromInfo(RoomInfo info) @@ -68,32 +114,76 @@ internal void UpdateFromInfo(RoomInfo info) internal void OnEventReceived(RoomEvent e) { - if (e.RoomHandle.Id != (ulong)Handle.DangerousGetHandle()) - return; + if (e.RoomHandle != (ulong)Handle.DangerousGetHandle()) + { + Utils.Debug("Ignoring. Different Room... " + e); + return; + } + Utils.Debug($"Room {Name} Event Type: {e.MessageCase} ---> ({e.RoomHandle} <=> {(ulong)Handle.DangerousGetHandle()})"); switch (e.MessageCase) { + case RoomEvent.MessageOneofCase.RoomMetadataChanged: + { + Metadata = e.RoomMetadataChanged.Metadata; + RoomMetadataChanged?.Invoke(e.RoomMetadataChanged.Metadata); + } + break; + case RoomEvent.MessageOneofCase.ParticipantMetadataChanged: + { + var participant = GetParticipant(e.ParticipantNameChanged.ParticipantSid); + participant.SetMeta(e.ParticipantMetadataChanged.Metadata); + if (participant != null) ParticipantMetadataChanged?.Invoke(participant); + else Utils.Debug("Unable to find participant: " + e.ParticipantNameChanged.ParticipantSid + " in Meta data Change Event"); + } + break; case RoomEvent.MessageOneofCase.ParticipantConnected: { - var participant = CreateRemoteParticipant(e.ParticipantConnected.Info); + var participant = CreateRemoteParticipant(e.ParticipantConnected.Info.Info, null, new FfiHandle((IntPtr)e.ParticipantConnected.Info.Handle.Id)); ParticipantConnected?.Invoke(participant); } break; case RoomEvent.MessageOneofCase.ParticipantDisconnected: { - var info = e.ParticipantDisconnected.Info; - var participant = Participants[info.Sid]; - _participants.Remove(info.Sid); + var info = e.ParticipantDisconnected; + var participant = Participants[info.ParticipantSid]; + _participants.Remove(info.ParticipantSid); ParticipantDisconnected?.Invoke(participant); } break; + case RoomEvent.MessageOneofCase.LocalTrackUnpublished: + { + if (LocalParticipant._tracks.ContainsKey(e.LocalTrackUnpublished.PublicationSid)) + { + var publication = LocalParticipant._tracks[e.LocalTrackUnpublished.PublicationSid]; + LocalTrackUnpublished?.Invoke(publication, LocalParticipant); + } + else + { + Utils.Debug("Unable to find local track after unpublish: " + e.LocalTrackPublished.TrackSid); + } + } + break; + case RoomEvent.MessageOneofCase.LocalTrackPublished: + { + if(LocalParticipant._tracks.ContainsKey(e.LocalTrackPublished.TrackSid)) + { + var publication = LocalParticipant._tracks[e.LocalTrackPublished.TrackSid]; + LocalTrackPublished?.Invoke(publication, LocalParticipant); + } else + { + Utils.Debug("Unable to find local track after publish: " + e.LocalTrackPublished.TrackSid); + } + } + break; case RoomEvent.MessageOneofCase.TrackPublished: { var participant = Participants[e.TrackPublished.ParticipantSid]; - var publication = new RemoteTrackPublication(e.TrackPublished.Publication); + var publication = new RemoteTrackPublication(e.TrackPublished.Publication.Info); participant._tracks.Add(publication.Sid, publication); participant.OnTrackPublished(publication); TrackPublished?.Invoke(publication, participant); + //publication.SetSubscribed(true); } break; case RoomEvent.MessageOneofCase.TrackUnpublished: @@ -107,19 +197,21 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.TrackSubscribed: { - var info = e.TrackSubscribed.Track; + var info = e.TrackSubscribed.Track.Info; + var trackHandle = new FfiHandle((IntPtr)e.TrackSubscribed.Track.Handle.Id); var participant = Participants[e.TrackSubscribed.ParticipantSid]; var publication = participant.Tracks[info.Sid]; if (info.Kind == TrackKind.KindVideo) { - var videoTrack = new RemoteVideoTrack(null, info, this, participant); + var videoTrack = new RemoteVideoTrack(trackHandle, info, this, participant); publication.UpdateTrack(videoTrack); TrackSubscribed?.Invoke(videoTrack, publication, participant); } else if (info.Kind == TrackKind.KindAudio) { - var audioTrack = new RemoteAudioTrack(null, info, this, participant); + ; + var audioTrack = new RemoteAudioTrack(trackHandle, info, this, participant); publication.UpdateTrack(audioTrack); TrackSubscribed?.Invoke(audioTrack, publication, participant); } @@ -150,9 +242,9 @@ internal void OnEventReceived(RoomEvent e) TrackUnmuted?.Invoke(publication, participant); } break; - case RoomEvent.MessageOneofCase.SpeakersChanged: + case RoomEvent.MessageOneofCase.ActiveSpeakersChanged: { - var sids = e.SpeakersChanged.ParticipantSids; + var sids = e.ActiveSpeakersChanged.ParticipantSids; var speakers = new List(sids.Count); foreach (var sid in sids) @@ -170,64 +262,84 @@ internal void OnEventReceived(RoomEvent e) break; case RoomEvent.MessageOneofCase.DataReceived: { - var dataInfo = e.DataReceived; + var dataInfo = e.DataReceived.Data; var handle = new FfiHandle((IntPtr)dataInfo.Handle.Id); - var data = new byte[dataInfo.DataSize]; - Marshal.Copy((IntPtr)dataInfo.DataPtr, data, 0, data.Length); + var data = new byte[dataInfo.Data.DataLen]; + Marshal.Copy((IntPtr)dataInfo.Data.DataPtr, data, 0, data.Length); handle.Dispose(); var participant = GetParticipant(e.DataReceived.ParticipantSid); - DataReceived?.Invoke(data, participant, dataInfo.Kind); + DataReceived?.Invoke(data, participant, e.DataReceived.Kind); } break; case RoomEvent.MessageOneofCase.ConnectionStateChanged: ConnectionStateChanged?.Invoke(e.ConnectionStateChanged.State); break; - case RoomEvent.MessageOneofCase.Connected: - Connected?.Invoke(); - break; + /*case RoomEvent.MessageOneofCase.Connected: + Connected?.Invoke(this); + break;*/ + case RoomEvent.MessageOneofCase.Eos: case RoomEvent.MessageOneofCase.Disconnected: - Disconnected?.Invoke(); + Disconnected?.Invoke(this); OnDisconnect(); break; case RoomEvent.MessageOneofCase.Reconnecting: - Reconnecting?.Invoke(); + Reconnecting?.Invoke(this); break; case RoomEvent.MessageOneofCase.Reconnected: - Reconnected?.Invoke(); + Reconnected?.Invoke(this); break; } } - internal void OnConnect(RoomInfo info) + internal void OnConnect(FfiOwnedHandle roomHandle, RoomInfo info, OwnedParticipant participant, RepeatedField participants) { - Handle = new FfiHandle((IntPtr)info.Handle.Id); - - UpdateFromInfo(info); - LocalParticipant = new LocalParticipant(info.LocalParticipant, this); + Utils.Debug($"OnConnect.... {roomHandle.Id} {participant.Handle.Id}"); + Utils.Debug(info); + Handle = new FfiHandle((IntPtr)roomHandle.Id); + UpdateFromInfo(info); + + LocalParticipant = new LocalParticipant(participant.Info, this, new FfiHandle((IntPtr)participant.Handle.Id)); // Add already connected participant - foreach (var p in info.Participants) - CreateRemoteParticipant(p); + foreach (var p in participants) + CreateRemoteParticipant(p.Participant.Info, p.Publications, new FfiHandle((IntPtr)p.Participant.Handle.Id)); FfiClient.Instance.RoomEventReceived += OnEventReceived; + FfiClient.Instance.DisconnectReceived += OnDisconnectReceived; + Connected?.Invoke(this); + } + + private void OnDisconnectReceived(DisconnectCallback e) + { + FfiClient.Instance.DisconnectReceived -= OnDisconnectReceived; + Utils.Debug($"OnDisconnect.... {e}"); } - internal void OnDisconnect() + private void OnDisconnect() { FfiClient.Instance.RoomEventReceived -= OnEventReceived; } - RemoteParticipant CreateRemoteParticipant(ParticipantInfo info) + internal void OnLocalTrackPublished(OwnedTrackPublication p) { - var participant = new RemoteParticipant(info, this); + var publication = new LocalTrackPublication(p.Info); + LocalParticipant._tracks.Add(publication.Sid, publication); + } + + RemoteParticipant CreateRemoteParticipant(ParticipantInfo info, RepeatedField publications, FfiHandle handle) + { + var participant = new RemoteParticipant(info, this, handle); _participants.Add(participant.Sid, participant); - foreach (var pubInfo in info.Publications) + if (publications != null) { - var publication = new RemoteTrackPublication(pubInfo); - participant._tracks.Add(publication.Sid, publication); + foreach (var pubInfo in publications) + { + var publication = new RemoteTrackPublication(pubInfo.Info); + participant._tracks.Add(publication.Sid, publication); + } } return participant; @@ -241,14 +353,15 @@ public Participant GetParticipant(string sid) Participants.TryGetValue(sid, out var remoteParticipant); return remoteParticipant; } + } - public sealed class ConnectInstruction : YieldInstruction + public sealed class ConnectInstruction : AsyncInstruction { private ulong _asyncId; private Room _room; - internal ConnectInstruction(ulong asyncId, Room room) + internal ConnectInstruction(ulong asyncId, Room room, CancellationToken token) : base(token) { _asyncId = asyncId; _room = room; @@ -257,14 +370,18 @@ internal ConnectInstruction(ulong asyncId, Room room) void OnConnect(ConnectCallback e) { - if (_asyncId != e.AsyncId.Id) + Utils.Debug($"OnConnect.... {e}"); + if (_asyncId != e.AsyncId) return; FfiClient.Instance.ConnectReceived -= OnConnect; + if (Token.IsCancellationRequested) return; + bool success = string.IsNullOrEmpty(e.Error); + Utils.Debug("Connection success: " + success); if (success) - _room.OnConnect(e.Room); + _room.OnConnect(e.Room.Handle, e.Room.Info, e.LocalParticipant, e.Participants); IsError = !success; IsDone = true; diff --git a/Runtime/Scripts/Track.cs b/Runtime/Scripts/Track.cs index 0186c06..18ee320 100644 --- a/Runtime/Scripts/Track.cs +++ b/Runtime/Scripts/Track.cs @@ -1,6 +1,7 @@ using System; using LiveKit.Proto; using LiveKit.Internal; +using System.Threading; namespace LiveKit { @@ -13,6 +14,7 @@ public interface ITrack bool Muted { get; } WeakReference Room { get; } WeakReference Participant { get; } + FfiHandle Handle { get; } } public interface ILocalTrack : ITrack @@ -48,12 +50,13 @@ public class Track : ITrack // IsOwned is true if C# owns the handle public bool IsOwned => Handle != null && !Handle.IsInvalid; - - internal readonly FfiHandle Handle; + public FfiHandle Handle { get { return _handle; } } + private FfiHandle _handle; + private CancellationToken _token; internal Track(FfiHandle handle, TrackInfo info, Room room, Participant participant) { - Handle = handle; + _handle = handle; Room = new WeakReference(room); Participant = new WeakReference(participant); UpdateInfo(info); @@ -74,19 +77,19 @@ public sealed class LocalAudioTrack : Track, ILocalTrack, IAudioTrack { internal LocalAudioTrack(FfiHandle handle, TrackInfo info, Room room) : base(handle, info, room, room?.LocalParticipant) { } - public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource source) + public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource source, Room room) { var createTrack = new CreateAudioTrackRequest(); createTrack.Name = name; - createTrack.SourceHandle = new FFIHandleId { Id = (ulong)source.Handle.DangerousGetHandle() }; + createTrack.SourceHandle = (ulong)source.Handle.DangerousGetHandle(); - var request = new FFIRequest(); + var request = new FfiRequest(); request.CreateAudioTrack = createTrack; var resp = FfiClient.SendRequest(request); var trackInfo = resp.CreateAudioTrack.Track; - var trackHandle = new FfiHandle((IntPtr)trackInfo.OptHandle.Id); - var track = new LocalAudioTrack(trackHandle, trackInfo, null); + var trackHandle = new FfiHandle((IntPtr)trackInfo.Handle.Id); + var track = new LocalAudioTrack(trackHandle, trackInfo.Info, room); return track; } } @@ -95,27 +98,19 @@ public sealed class LocalVideoTrack : Track, ILocalTrack, IVideoTrack { internal LocalVideoTrack(FfiHandle handle, TrackInfo info, Room room) : base(handle, info, room, room?.LocalParticipant) { } - public static LocalVideoTrack CreateVideoTrack(string name, RtcVideoSource source) + public static LocalVideoTrack CreateVideoTrack(string name, RtcVideoSource source, Room room) { - var captureOptions = new VideoCaptureOptions(); - var resolution = new VideoResolution(); - resolution.Width = 640; - resolution.Height = 480; - resolution.FrameRate = 30; - captureOptions.Resolution = resolution; - var createTrack = new CreateVideoTrackRequest(); createTrack.Name = name; - createTrack.SourceHandle = new FFIHandleId { Id = (ulong)source.Handle.DangerousGetHandle() }; - createTrack.Options = captureOptions; + createTrack.SourceHandle = (ulong)source.Handle.DangerousGetHandle(); - var request = new FFIRequest(); + var request = new FfiRequest(); request.CreateVideoTrack = createTrack; var resp = FfiClient.SendRequest(request); var trackInfo = resp.CreateVideoTrack.Track; - var trackHandle = new FfiHandle((IntPtr)trackInfo.OptHandle.Id); - var track = new LocalVideoTrack(trackHandle, trackInfo, null); + var trackHandle = new FfiHandle((IntPtr)trackInfo.Handle.Id); + var track = new LocalVideoTrack(trackHandle, trackInfo.Info, room); return track; } } diff --git a/Runtime/Scripts/TrackPublication.cs b/Runtime/Scripts/TrackPublication.cs index 2bb060f..ef529ae 100644 --- a/Runtime/Scripts/TrackPublication.cs +++ b/Runtime/Scripts/TrackPublication.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using LiveKit.Internal; using LiveKit.Proto; namespace LiveKit @@ -46,6 +47,18 @@ public sealed class RemoteTrackPublication : TrackPublication public new IRemoteTrack Track => base.Track as IRemoteTrack; internal RemoteTrackPublication(TrackPublicationInfo info) : base(info) { } + + public void SetSubscribed(bool subscribed) + { + var setSubscribed = new SetSubscribedRequest(); + setSubscribed.Subscribe = subscribed; + setSubscribed.PublicationHandle = (ulong)Track.Handle.DangerousGetHandle(); + + var request = new FfiRequest(); + request.SetSubscribed = setSubscribed; + + var resp = FfiClient.SendRequest(request); + } } public sealed class LocalTrackPublication : TrackPublication diff --git a/Runtime/Scripts/VideoFrame.cs b/Runtime/Scripts/VideoFrame.cs index 0f02676..58c02ec 100644 --- a/Runtime/Scripts/VideoFrame.cs +++ b/Runtime/Scripts/VideoFrame.cs @@ -3,6 +3,8 @@ using LiveKit.Proto; using UnityEngine; using System.Runtime.CompilerServices; +using System.Threading.Tasks; +using System.Threading; namespace LiveKit { @@ -10,7 +12,7 @@ public sealed class VideoFrame { private VideoFrameInfo _info; - public long Timestamp => _info.Timestamp; + public long Timestamp => _info.TimestampUs; public VideoRotation Rotation => _info.Rotation; public VideoFrame(VideoFrameInfo info) @@ -68,7 +70,7 @@ protected virtual void Dispose(bool disposing) } /// Used for GC.AddMemoryPressure(Int64) - /// TODO(theomonnom): Remove the default implementation when each buffer type is implemented + /// TODO(theomonnom): Remove the default implementation when each buffer type is implemented cc MindTrust_VID internal virtual long GetMemorySize() { return -1; @@ -109,13 +111,14 @@ public I420Buffer ToI420() // after using this function. Handle.SetHandleAsInvalid(); - var handleId = new FFIHandleId(); - handleId.Id = (ulong)Handle.DangerousGetHandle(); + //var handleId = new VideoFrameBufferInfo(); + //handleId.Id = (ulong)Handle.DangerousGetHandle(); var toi420 = new ToI420Request(); - toi420.Buffer = handleId; + //toi420.Buffer = handleId; + toi420.Handle = (ulong)Handle.DangerousGetHandle(); - var request = new FFIRequest(); + var request = new FfiRequest(); request.ToI420 = toi420; var resp = FfiClient.SendRequest(request); @@ -124,7 +127,7 @@ public I420Buffer ToI420() throw new InvalidOperationException("failed to convert"); var newHandle = new FfiHandle((IntPtr)newInfo.Handle.Id); - return new I420Buffer(newHandle, newInfo); + return new I420Buffer(newHandle, newInfo.Info); // TODO MindTrust_VID } [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -133,18 +136,15 @@ public void ToARGB(VideoFormatType format, IntPtr dst, uint dstStride, uint widt if (!IsValid) throw new InvalidOperationException("the handle is invalid"); - var handleId = new FFIHandleId(); - handleId.Id = (ulong)Handle.DangerousGetHandle(); - - var argb = new ToARGBRequest(); - argb.Buffer = handleId; + var argb = new ToArgbRequest(); + //argb.Buffer = handleId; argb.DstPtr = (ulong)dst; argb.DstFormat = format; argb.DstStride = dstStride; argb.DstWidth = width; argb.DstHeight = height; - var request = new FFIRequest(); + var request = new FfiRequest(); request.ToArgb = argb; FfiClient.SendRequest(request); diff --git a/Runtime/Scripts/VideoSource.cs b/Runtime/Scripts/VideoSource.cs index 8eb3a42..f776a61 100644 --- a/Runtime/Scripts/VideoSource.cs +++ b/Runtime/Scripts/VideoSource.cs @@ -6,12 +6,21 @@ using UnityEngine.Rendering; using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; namespace LiveKit { public abstract class RtcVideoSource { - internal readonly FfiHandle Handle; + private FfiHandle _handle; + + internal FfiHandle Handle + { + get { return _handle; } + } + protected VideoSourceInfo _info; public RtcVideoSource() @@ -19,92 +28,133 @@ public RtcVideoSource() var newVideoSource = new NewVideoSourceRequest(); newVideoSource.Type = VideoSourceType.VideoSourceNative; - var request = new FFIRequest(); + var request = new FfiRequest(); request.NewVideoSource = newVideoSource; var resp = FfiClient.SendRequest(request); - _info = resp.NewVideoSource.Source; - Handle = new FfiHandle((IntPtr)_info.Handle.Id); + + _info = resp.NewVideoSource.Source.Info; + _handle = new FfiHandle((IntPtr)resp.NewVideoSource.Source.Handle.Id); } } public class TextureVideoSource : RtcVideoSource { public Texture Texture { get; } - private NativeArray _data; - private bool _reading = false; + private NativeArray data; + private bool reading = false; + private bool isDisposed = true; + private Thread? readVideoThread; public TextureVideoSource(Texture texture) { Texture = texture; - _data = new NativeArray(Texture.width * Texture.height * 4, Allocator.Persistent); + data = new NativeArray(Texture.width * Texture.height * 4, Allocator.Persistent); + isDisposed = false; } - // Read the texture data into a native array asynchronously - internal void ReadBuffer() + public void Start() { - if (_reading) - return; - - _reading = true; - AsyncGPUReadback.RequestIntoNativeArray(ref _data, Texture, 0, TextureFormat.RGBA32, OnReadback); + Stop(); + readVideoThread = new Thread(Update); + readVideoThread.Start(); } - public IEnumerator Update() + public void Stop() { - while (true) - { - yield return null; - ReadBuffer(); - - } + readVideoThread?.Abort(); } - private void OnReadback(AsyncGPUReadbackRequest req) + ~TextureVideoSource() { - _reading = false; - if (req.hasError) + if (!isDisposed) { - Utils.Error("failed to read texture data"); - return; + data.Dispose(); + isDisposed = true; } + } + - // ToI420 - var argbInfo = new ARGBBufferInfo(); - unsafe + private void Update() + { + while (true) { - argbInfo.Ptr = (ulong)NativeArrayUnsafeUtility.GetUnsafePtr(_data); + Thread.Sleep(Constants.TASK_DELAY); + ReadBuffer(); + ReadBack(); } - argbInfo.Format = VideoFormatType.FormatArgb; - argbInfo.Stride = (uint)Texture.width * 4; - argbInfo.Width = (uint)Texture.width; - argbInfo.Height = (uint)Texture.height; - - var toI420 = new ToI420Request(); - toI420.FlipY = true; - toI420.Argb = argbInfo; - - var request = new FFIRequest(); - request.ToI420 = toI420; + } - var resp = FfiClient.SendRequest(request); - var bufferInfo = resp.ToI420.Buffer; - var buffer = VideoFrameBuffer.Create(new FfiHandle((IntPtr)bufferInfo.Handle.Id), bufferInfo); + // Read the texture data into a native array asynchronously + internal void ReadBuffer() + { + if (reading) + return; - // Send the frame to WebRTC - var frameInfo = new VideoFrameInfo(); - frameInfo.Rotation = VideoRotation._0; - frameInfo.Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds(); + reading = true; + AsyncGPUReadback.RequestIntoNativeArray(ref data, Texture, 0, TextureFormat.RGBA32, OnReadback); + } - var capture = new CaptureVideoFrameRequest(); - capture.SourceHandle = new FFIHandleId { Id = (ulong)Handle.DangerousGetHandle() }; - capture.BufferHandle = new FFIHandleId { Id = (ulong)buffer.Handle.DangerousGetHandle() }; - capture.Frame = frameInfo; + private AsyncGPUReadbackRequest _readBackRequest; + private bool _requestPending = false; - request = new FFIRequest(); - request.CaptureVideoFrame = capture; + private void OnReadback(AsyncGPUReadbackRequest req) + { + _readBackRequest = req; + _requestPending = true; + } - FfiClient.SendRequest(request); + private void ReadBack() + { + if (_requestPending && !isDisposed) + { + var req = _readBackRequest; + if (req.hasError) + { + Utils.Error("failed to read texture data"); + return; + } + + // ToI420 + var argbInfo = new ArgbBufferInfo(); // TODO: MindTrust_VID + unsafe + { + argbInfo.Ptr = (ulong)NativeArrayUnsafeUtility.GetUnsafePtr(data); + } + + argbInfo.Format = VideoFormatType.FormatArgb; + argbInfo.Stride = (uint)Texture.width * 4; + argbInfo.Width = (uint)Texture.width; + argbInfo.Height = (uint)Texture.height; + + var toI420 = new ToI420Request(); + toI420.FlipY = true; + toI420.Argb = argbInfo; + + var request = new FfiRequest(); + request.ToI420 = toI420; + + var resp = FfiClient.SendRequest(request); + var bufferInfo = resp.ToI420.Buffer; + var buffer = VideoFrameBuffer.Create(new FfiHandle((IntPtr)bufferInfo.Handle.Id), bufferInfo.Info); + + // Send the frame to WebRTC + var frameInfo = new VideoFrameInfo(); + frameInfo.Rotation = VideoRotation._0; + frameInfo.TimestampUs = DateTimeOffset.Now.ToUnixTimeMilliseconds(); + + var capture = new CaptureVideoFrameRequest(); + capture.SourceHandle = (ulong)Handle.DangerousGetHandle(); + capture.Handle = (ulong)buffer.Handle.DangerousGetHandle(); + capture.Frame = frameInfo; + + request = new FfiRequest(); + request.CaptureVideoFrame = capture; + + FfiClient.SendRequest(request); + reading = false; + _requestPending = false; + } } } -} +} \ No newline at end of file diff --git a/Runtime/Scripts/VideoStream.cs b/Runtime/Scripts/VideoStream.cs index 18dda87..ba64128 100644 --- a/Runtime/Scripts/VideoStream.cs +++ b/Runtime/Scripts/VideoStream.cs @@ -4,19 +4,30 @@ using LiveKit.Proto; using UnityEngine; using Unity.Collections.LowLevel.Unsafe; +using System.Threading.Tasks; +using System.Threading; namespace LiveKit { public class VideoStream { public delegate void FrameReceiveDelegate(VideoFrame frame); + + public delegate void TextureReceiveDelegate(Texture2D tex2d); + + public delegate void TextureUploadDelegate(); - internal readonly FfiHandle Handle; + + internal FfiHandle Handle { get; private set; } + private VideoStreamInfo _info; - private bool _disposed = false; private bool _dirty = false; + private volatile bool disposed = false; + + // Thread for parsing textures + private Thread? frameThread; /// Called when we receive a new frame from the VideoTrack public event FrameReceiveDelegate FrameReceived; @@ -30,7 +41,9 @@ public class VideoStream /// The texture changes every time the video resolution changes. /// Can be null if UpdateRoutine isn't started public Texture2D Texture { private set; get; } - public VideoFrameBuffer VideoBuffer { private set; get; } + public VideoFrameBuffer? VideoBuffer { get; private set; } + + private readonly object _lock = new(); public VideoStream(IVideoTrack videoTrack) { @@ -41,14 +54,19 @@ public VideoStream(IVideoTrack videoTrack) throw new InvalidOperationException("videotrack's participant is invalid"); var newVideoStream = new NewVideoStreamRequest(); - newVideoStream.RoomHandle = new FFIHandleId { Id = (ulong)room.Handle.DangerousGetHandle() }; - newVideoStream.ParticipantSid = participant.Sid; - newVideoStream.TrackSid = videoTrack.Sid; + newVideoStream.TrackHandle = (ulong)room.Handle.DangerousGetHandle(); + //newVideoStream.ParticipantSid = participant.Sid; + //newVideoStream.TrackSid = videoTrack.Sid; newVideoStream.Type = VideoStreamType.VideoStreamNative; - var request = new FFIRequest(); + var request = new FfiRequest(); request.NewVideoStream = newVideoStream; + Init(request); + } + + private void Init(FfiRequest request) + { var resp = FfiClient.SendRequest(request); var streamInfo = resp.NewVideoStream.Stream; @@ -61,6 +79,19 @@ public VideoStream(IVideoTrack videoTrack) Dispose(false); } + public void StartStreaming() + { + StopStreaming(); + frameThread = new Thread(GetFrame); + frameThread.Start(); + } + + public void StopStreaming() + { + frameThread?.Abort(); + } + + public void Dispose() { Dispose(true); @@ -69,80 +100,82 @@ public void Dispose() private void Dispose(bool disposing) { - if (!_disposed) + if (!disposed) { if (disposing) VideoBuffer?.Dispose(); - _disposed = true; + disposed = true; } } - internal bool UploadBuffer() + private void UploadBuffer() { var data = Texture.GetRawTextureData(); - VideoBuffer = VideoBuffer.ToI420(); // TODO(theomonnom): Support other buffer types - + VideoBuffer = VideoBuffer.ToI420(); // TODO MindTrust-VID unsafe { var texPtr = NativeArrayUnsafeUtility.GetUnsafePtr(data); - VideoBuffer.ToARGB(VideoFormatType.FormatAbgr, (IntPtr)texPtr, (uint)Texture.width * 4, (uint)Texture.width, (uint)Texture.height); + VideoBuffer.ToARGB(VideoFormatType.FormatAbgr, (IntPtr)texPtr, (uint)Texture.width * 4, (uint)Texture.width, + (uint)Texture.height); } Texture.Apply(); - return true; } - public IEnumerator Update() + private void GetFrame() { - while (true) + while (!disposed) { - yield return null; - - if (_disposed) - break; + Thread.Sleep(Constants.TASK_DELAY); - if (VideoBuffer == null || !VideoBuffer.IsValid || !_dirty) - continue; + lock (_lock) + { + if (VideoBuffer == null || !VideoBuffer.IsValid || !_dirty) + continue; - _dirty = false; - var rWidth = VideoBuffer.Width; - var rHeight = VideoBuffer.Height; + _dirty = false; + var rWidth = VideoBuffer.Width; + var rHeight = VideoBuffer.Height; - var textureChanged = false; - if (Texture == null || Texture.width != rWidth || Texture.height != rHeight) - { - Texture = new Texture2D((int)rWidth, (int)rHeight, TextureFormat.RGBA32, true, true); - textureChanged = true; - } + var textureChanged = false; + if (Texture == null || Texture.width != rWidth || Texture.height != rHeight) + { + Texture = new Texture2D((int)rWidth, (int)rHeight, TextureFormat.RGBA32, true, true); + textureChanged = true; + } - UploadBuffer(); + UploadBuffer(); - if (textureChanged) - TextureReceived?.Invoke(Texture); + if (textureChanged) + TextureReceived?.Invoke(Texture); - TextureUploaded?.Invoke(); + TextureUploaded?.Invoke(); + } } } private void OnVideoStreamEvent(VideoStreamEvent e) { - if (e.Handle.Id != (ulong)Handle.DangerousGetHandle()) + if (e.StreamHandle != (ulong)Handle.DangerousGetHandle()) return; if (e.MessageCase != VideoStreamEvent.MessageOneofCase.FrameReceived) return; var frameInfo = e.FrameReceived.Frame; - var bufferInfo = e.FrameReceived.Buffer; - var handle = new FfiHandle((IntPtr)bufferInfo.Handle.Id); + var bufferInfo = e.FrameReceived.Buffer.Info; + var handle = new FfiHandle((IntPtr)e.FrameReceived.Buffer.Handle.Id); var frame = new VideoFrame(frameInfo); var buffer = VideoFrameBuffer.Create(handle, bufferInfo); - VideoBuffer?.Dispose(); - VideoBuffer = buffer; - _dirty = true; + lock (_lock) + { + VideoBuffer?.Dispose(); + VideoBuffer = buffer; + _dirty = true; + } FrameReceived?.Invoke(frame); } diff --git a/Runtime/csc.rsp b/Runtime/csc.rsp new file mode 100644 index 0000000..dcc377f --- /dev/null +++ b/Runtime/csc.rsp @@ -0,0 +1 @@ +-nullable:enable \ No newline at end of file diff --git a/Runtime/csc.rsp.meta b/Runtime/csc.rsp.meta new file mode 100644 index 0000000..46c3b9c --- /dev/null +++ b/Runtime/csc.rsp.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e64901180b18491596fe078259ba912e +timeCreated: 1706094455 \ No newline at end of file