diff --git a/.gitignore b/.gitignore index 418eb2a..427805c 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,11 @@ crashlytics-build.properties /[Aa]ssets/[Ss]treamingAssets/aa/* .DS_Store + +downloads~ + +/Runtime/Plugins/ffi-*/LICENSE.md +/Runtime/Plugins/ffi-*/LICENSE.md.meta +/Runtime/Plugins/ffi-*/livekit_ffi.h +/Runtime/Plugins/ffi-*/livekit_ffi.h.meta + diff --git a/BuildScripts~/generate_proto.sh b/BuildScripts~/generate_proto.sh index cd6638f..308d09b 100755 --- a/BuildScripts~/generate_proto.sh +++ b/BuildScripts~/generate_proto.sh @@ -14,4 +14,5 @@ protoc \ $FFI_PROTOCOL/room.proto \ $FFI_PROTOCOL/stats.proto \ $FFI_PROTOCOL/track.proto \ - $FFI_PROTOCOL/video_frame.proto + $FFI_PROTOCOL/video_frame.proto \ + $FFI_PROTOCOL/rpc.proto diff --git a/README.md b/README.md index a81fcde..ad3bbe2 100644 --- a/README.md +++ b/README.md @@ -187,5 +187,71 @@ void TrackSubscribed(IRemoteTrack track, RemoteTrackPublication publication, Rem } ``` +### RPC + +Perform your own predefined method calls from one participant to another. + +This feature is especially powerful when used with [Agents](https://docs.livekit.io/agents), for instance to forward LLM function calls to your client application. + +The following is a brief overview but [more detail is available in the documentation](https://docs.livekit.io/home/client/data/rpc). + +#### Registering an RPC method + +The participant who implements the method and will receive its calls must first register support. Your method handler will be an async callback that receives an `RpcInvocationData` object: + +```cs +// Define your method handler +async Task HandleGreeting(RpcInvocationData data) +{ + Debug.Log($"Received greeting from {data.CallerIdentity}: {data.Payload}"); + return $"Hello, {data.CallerIdentity}!"; +} + +// Register the method after connection to the room +room.LocalParticipant.RegisterRpcMethod("greet", HandleGreeting); +``` + +In addition to the payload, `RpcInvocationData` also contains `responseTimeout`, which informs you the maximum time available to return a response. If you are unable to respond in time, the call will result in an error on the caller's side. + +#### Performing an RPC request + +The caller may initiate an RPC call using coroutines: + +```cs +IEnumerator PerformRpcCoroutine() +{ + var rpcCall = room.LocalParticipant.PerformRpc(new PerformRpcParams + { + DestinationIdentity = "recipient-identity", + Method = "greet", + Payload = "Hello from RPC!" + }); + + yield return rpcCall; + + if (rpcCall.IsError) + { + Debug.Log($"RPC call failed: {rpcCall.Error}"); + } + else + { + Debug.Log($"RPC response: {rpcCall.Payload}"); + } +} + +// Start the coroutine from another MonoBehaviour method +StartCoroutine(PerformRpcCoroutine()); +``` + +You may find it useful to adjust the `ResponseTimeout` parameter, which indicates the amount of time you will wait for a response. We recommend keeping this value as low as possible while still satisfying the constraints of your application. + +#### Errors + +LiveKit is a dynamic realtime environment and RPC calls can fail for various reasons. + +You may throw errors of the type `RpcError` with a string `message` in an RPC method handler and they will be received on the caller's side with the message intact. Other errors will not be transmitted and will instead arrive to the caller as `1500` ("Application Error"). Other built-in errors are detailed in the [docs](https://docs.livekit.io/home/client/data/rpc/#errors). + + + diff --git a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a index 57289ab..2d7a737 100644 --- a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a +++ b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e65058144f16acff227cc61a858e4c182fc380c97afff7c0459bd52ead8afb2d -size 358056168 +oid sha256:5fd9b298ae66a88c346a03629af3475d2a215e22356277792981cf5b855e74eb +size 359507616 diff --git a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a index 96aedc8..bc2b213 100644 --- a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a +++ b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:751f5a57a7df1fce186932a0df982779eca1f72d353ae8aa14cb95dc3d159f22 -size 358436416 +oid sha256:4786f6180a75f74f14a2d0454c02ddcc53db93aa2d821c930e39e061d154aef3 +size 359886296 diff --git a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so index 9097af6..4ba862e 100644 --- a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:48148f57ea581441bacca9f626cb05e5b71d2daf35b8e5f6f7175419194d039d -size 22565440 +oid sha256:370b4a32e6d7ac686a771a4db04ecbee610bee377897584f7cdbc568c5109775 +size 22696912 diff --git a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so index da54904..d713fa6 100644 --- a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so +++ b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1675b1f16d5ff5353bc0baa5a7f3bef55e5ffcede19f5677f9d485f00f6d94c -size 28385888 +oid sha256:39fb1bfa98b746b623cccb77bf6bd326512d9bb954aa9cba295dd81fc338d9a2 +size 28603344 diff --git a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib index 0f0e1e8..e54d6f6 100644 --- a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib +++ b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:10984d692094d6577292b9a02ec6fd79541017ba26620480620fa8fcd53b2471 -size 19624056 +oid sha256:a91d337cd0b9420d89c236327bc3af7450b99fa43c15c2eea2349c09577c3a1b +size 19756648 diff --git a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib index a0acbcd..4e0edaa 100644 --- a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib +++ b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0cc771595be30fa1685325f50cc9b2b7f74685268815b1ae0308ec123f3ca33b -size 24542288 +oid sha256:e3181159a91e648a38bfbcf3b1ad9eff0883dd34b656ab719cf8cd2f9a5d3062 +size 24739672 diff --git a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll index 7f32ee1..f29465d 100644 --- a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll +++ b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fc747f843712625fe0c429361f47b80fab1cc7c1737b5fb5ebc8bb182106d3bc -size 19926016 +oid sha256:a42298995303dd1cbed71e2eec5ebe515358d4b332c96573aedf4ff76ee0deaf +size 20203520 diff --git a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll index e3a17b9..0eb951a 100644 --- a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll +++ b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ab0a9fd73282200e8d768085c7d183d658486e2d6c2c55d09c8f45dee049699 -size 24543232 +oid sha256:bc40c129827867131861f7c74dd355ede56355accb66e6f37d1fc48d67f30fd9 +size 24835072 diff --git a/Runtime/Scripts/AudioSource.cs b/Runtime/Scripts/AudioSource.cs index 6ef6bad..f539a2a 100644 --- a/Runtime/Scripts/AudioSource.cs +++ b/Runtime/Scripts/AudioSource.cs @@ -69,7 +69,6 @@ public RtcAudioSource(AudioSource source, RtcAudioSourceType audioSourceType = R newAudioSource.Options.EchoCancellation = true; newAudioSource.Options.AutoGainControl = true; newAudioSource.Options.NoiseSuppression = true; - newAudioSource.EnableQueue = false; using var response = request.Send(); FfiResponse res = response; _info = res.NewAudioSource.Source.Info; diff --git a/Runtime/Scripts/Internal/FFIClient.cs b/Runtime/Scripts/Internal/FFIClient.cs index 5017f1f..9872a49 100644 --- a/Runtime/Scripts/Internal/FFIClient.cs +++ b/Runtime/Scripts/Internal/FFIClient.cs @@ -14,9 +14,9 @@ namespace LiveKit.Internal { - #if UNITY_EDITOR +#if UNITY_EDITOR [InitializeOnLoad] - #endif +#endif internal sealed class FfiClient : IFFIClient { private static bool initialized = false; @@ -37,10 +37,14 @@ internal sealed class FfiClient : IFFIClient public event DisconnectReceivedDelegate? DisconnectReceived; public event RoomEventReceivedDelegate? RoomEventReceived; public event TrackEventReceivedDelegate? TrackEventReceived; + public event RpcMethodInvocationReceivedDelegate? RpcMethodInvocationReceived; + // participant events are not allowed in the fii protocol public event ParticipantEventReceivedDelegate ParticipantEventReceived; public event VideoStreamEventReceivedDelegate? VideoStreamEventReceived; public event AudioStreamEventReceivedDelegate? AudioStreamEventReceived; + public event PerformRpcReceivedDelegate? PerformRpcReceived; + public FfiClient() : this(Pools.NewFfiResponsePool(), new ArrayMemoryPool()) { } @@ -65,7 +69,7 @@ IMemoryPool memoryPool this.ffiResponsePool = ffiResponsePool; } - #if UNITY_EDITOR +#if UNITY_EDITOR static FfiClient() { AssemblyReloadEvents.beforeAssemblyReload += OnBeforeAssemblyReload; @@ -94,12 +98,12 @@ static void Init() private static void Quit() { - #if UNITY_EDITOR +#if UNITY_EDITOR AssemblyReloadEvents.beforeAssemblyReload -= OnBeforeAssemblyReload; AssemblyReloadEvents.afterAssemblyReload -= OnAfterAssemblyReload; - #endif - Instance.Dispose(); - +#endif + Instance.Dispose(); + } [RuntimeInitializeOnLoadMethod] @@ -122,7 +126,7 @@ private static void InitializeSdk() const bool captureLogs = false; #endif - NativeMethods.LiveKitInitialize(FFICallback, captureLogs); + NativeMethods.LiveKitInitialize(FFICallback, captureLogs, "unity", ""); // TODO: Get SDK version Utils.Debug("FFIServer - Initialized"); initialized = true; @@ -198,7 +202,7 @@ out UIntPtr dataLen [AOT.MonoPInvokeCallback(typeof(FFICallbackDelegate))] static unsafe void FFICallback(UIntPtr data, UIntPtr size) - { + { #if NO_LIVEKIT_MODE return; #endif @@ -238,6 +242,9 @@ static unsafe void FFICallback(UIntPtr data, UIntPtr size) case FfiEvent.MessageOneofCase.TrackEvent: Instance.TrackEventReceived?.Invoke(r.TrackEvent!); break; + case FfiEvent.MessageOneofCase.RpcMethodInvocation: + Instance.RpcMethodInvocationReceived?.Invoke(r.RpcMethodInvocation); + break; case FfiEvent.MessageOneofCase.Disconnect: Instance.DisconnectReceived?.Invoke(r.Disconnect!); break; @@ -251,6 +258,9 @@ static unsafe void FFICallback(UIntPtr data, UIntPtr size) break; case FfiEvent.MessageOneofCase.CaptureAudioFrame: break; + case FfiEvent.MessageOneofCase.PerformRpc: + Instance.PerformRpcReceived?.Invoke(r.PerformRpc!); + break; case FfiEvent.MessageOneofCase.GetStats: case FfiEvent.MessageOneofCase.Panic: break; diff --git a/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs b/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs index 3f67840..a706b2b 100644 --- a/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs +++ b/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs @@ -27,10 +27,14 @@ namespace LiveKit.Internal internal delegate void TrackEventReceivedDelegate(TrackEvent e); + internal delegate void RpcMethodInvocationReceivedDelegate(RpcMethodInvocationEvent e); + internal delegate void VideoStreamEventReceivedDelegate(VideoStreamEvent e); internal delegate void AudioStreamEventReceivedDelegate(AudioStreamEvent e); + internal delegate void PerformRpcReceivedDelegate(PerformRpcCallback e); + } \ No newline at end of file diff --git a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs index 281b87d..42c5810 100644 --- a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs +++ b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs @@ -84,6 +84,19 @@ public static void Inject(this FfiRequest ffiRequest, T request) case E2eeRequest e2EeRequest: ffiRequest.E2Ee = e2EeRequest; break; + // Rpc + case RegisterRpcMethodRequest registerRpcMethodRequest: + ffiRequest.RegisterRpcMethod = registerRpcMethodRequest; + break; + case UnregisterRpcMethodRequest unregisterRpcMethodRequest: + ffiRequest.UnregisterRpcMethod = unregisterRpcMethodRequest; + break; + case PerformRpcRequest performRpcRequest: + ffiRequest.PerformRpc = performRpcRequest; + break; + case RpcMethodInvocationResponseRequest rpcMethodInvocationResponseRequest: + ffiRequest.RpcMethodInvocationResponse = rpcMethodInvocationResponseRequest; + break; default: throw new Exception($"Unknown request type: {request?.GetType().FullName ?? "null"}"); } @@ -132,6 +145,13 @@ public static void EnsureClean(this FfiRequest request) || request.NewAudioResampler != null || request.RemixAndResample != null || request.E2Ee != null + || + + // Rpc + request.RegisterRpcMethod != null + || request.UnregisterRpcMethod != null + || request.PerformRpc != null + || request.RpcMethodInvocationResponse != null ) { throw new InvalidOperationException("Request is not cleared"); @@ -181,6 +201,13 @@ public static void EnsureClean(this FfiResponse response) || response.NewAudioResampler != null || response.RemixAndResample != null || response.E2Ee != null + || + + // Rpc + response.RegisterRpcMethod != null + || response.UnregisterRpcMethod != null + || response.PerformRpc != null + || response.RpcMethodInvocationResponse != null ) { throw new InvalidOperationException("Response is not cleared: "); diff --git a/Runtime/Scripts/Internal/NativeMethods.cs b/Runtime/Scripts/Internal/NativeMethods.cs index a03a890..96a70fb 100644 --- a/Runtime/Scripts/Internal/NativeMethods.cs +++ b/Runtime/Scripts/Internal/NativeMethods.cs @@ -24,6 +24,6 @@ internal static class NativeMethods internal extern static unsafe FfiHandleId FfiNewRequest(byte* data, int len, out byte* dataPtr, out UIntPtr dataLen); [DllImport(Lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "livekit_ffi_initialize")] - internal extern static FfiHandleId LiveKitInitialize(FFICallbackDelegate cb, bool captureLogs); + internal extern static FfiHandleId LiveKitInitialize(FFICallbackDelegate cb, bool captureLogs, string sdk, string sdkVersion); } } \ No newline at end of file diff --git a/Runtime/Scripts/Participant.cs b/Runtime/Scripts/Participant.cs index 35ceb6a..af19b1a 100644 --- a/Runtime/Scripts/Participant.cs +++ b/Runtime/Scripts/Participant.cs @@ -1,12 +1,16 @@ using System; using System.Linq; using System.Collections.Generic; +using System.Threading.Tasks; +using System.Collections; using LiveKit.Internal; using LiveKit.Proto; using LiveKit.Internal.FFIClients.Requests; namespace LiveKit { + public delegate Task RpcHandler(RpcInvocationData data); + public class Participant { public delegate void PublishDelegate(RemoteTrackPublication publication); @@ -26,6 +30,8 @@ public class Participant public readonly WeakReference Room; public IReadOnlyDictionary Tracks => _tracks; + private Dictionary _rpcHandlers = new(); + protected Participant(OwnedParticipant participant, Room room) { Room = new WeakReference(room); @@ -73,7 +79,7 @@ public PublishTrackInstruction PublishTrack(ILocalTrack localTrack, TrackPublish throw new Exception("room is invalid"); var track = (Track)localTrack; - + using var request = FFIBridge.Instance.NewRequest(); var publish = request.request; publish.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); @@ -91,12 +97,12 @@ public UnpublishTrackInstruction UnpublishTrack(ILocalTrack localTrack, bool sto using var request = FFIBridge.Instance.NewRequest(); var unpublish = request.request; - unpublish.LocalParticipantHandle = (ulong) Handle.DangerousGetHandle(); + unpublish.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); unpublish.StopOnUnpublish = false; unpublish.TrackSid = localTrack.Sid; using var response = request.Send(); FfiResponse res = response; - _tracks.Remove (localTrack.Sid); + _tracks.Remove(localTrack.Sid); return new UnpublishTrackInstruction(res.UnpublishTrack.AsyncId); } @@ -112,7 +118,7 @@ public void PublishData(Span data, IReadOnlyCollection destination fixed (byte* pointer = data) { PublishData(pointer, data.Length, destination_identities, reliable, topic); - } + } } } @@ -132,6 +138,131 @@ public void UpdateName(string name) var resp = request.Send(); } + + /// + /// Performs RPC on another participant in the room. + /// This allows you to execute a custom method on a remote participant and await their response. + /// + /// Parameters for the RPC call including: + /// - DestinationIdentity: The identity of the participant to call + /// - Method: Name of the method to call (up to 64 bytes UTF-8) + /// - Payload: String payload (max 15KiB UTF-8) + /// - ResponseTimeout: Maximum time to wait for response (defaults to 10 seconds) + /// + /// A that completes when the RPC call receives a response or errors. + /// Check and access / properties to handle the result. + /// + /// + /// See https://docs.livekit.io/home/client/data/rpc/#errors for a list of possible error codes. + /// + public PerformRpcInstruction PerformRpc(PerformRpcParams rpcParams) + { + using var request = FFIBridge.Instance.NewRequest(); + var rpcReq = request.request; + rpcReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); + rpcReq.DestinationIdentity = rpcParams.DestinationIdentity; + rpcReq.Method = rpcParams.Method; + rpcReq.Payload = rpcParams.Payload; + rpcReq.ResponseTimeoutMs = (uint)(rpcParams.ResponseTimeout * 1000); + + using var response = request.Send(); + FfiResponse res = response; + return new PerformRpcInstruction(res.PerformRpc.AsyncId); + } + + /// + /// Registers a new RPC method handler. + /// + /// The name of the RPC method to register + /// The async callback that handles incoming RPC requests. It receives an RpcInvocationData object + /// containing the caller's identity, payload (up to 15KiB UTF-8), and response timeout. Must return a string response or throw + /// an RpcError. Any other exceptions will be converted to a generic APPLICATION_ERROR (1500). + public void RegisterRpcMethod(string method, RpcHandler handler) + { + _rpcHandlers[method] = handler; + + using var request = FFIBridge.Instance.NewRequest(); + var registerReq = request.request; + registerReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); + registerReq.Method = method; + var resp = request.Send(); + } + + /// + /// Unregisters a previously registered RPC method handler. + /// + /// The name of the RPC method to unregister + public void UnregisterRpcMethod(string method) + { + _rpcHandlers.Remove(method); + + using var request = FFIBridge.Instance.NewRequest(); + var unregisterReq = request.request; + unregisterReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); + unregisterReq.Method = method; + var resp = request.Send(); + } + + internal async void HandleRpcMethodInvocation( + ulong invocationId, + string method, + string requestId, + string callerIdentity, + string payload, + float responseTimeout) + { + if (!_rpcHandlers.TryGetValue(method, out var handler)) + { + SendRpcResponse(invocationId, null, RpcError.BuiltIn(RpcError.ErrorCode.UNSUPPORTED_METHOD)); + return; + } + + try + { + var invocationData = new RpcInvocationData + { + RequestId = requestId, + CallerIdentity = callerIdentity, + Payload = payload, + ResponseTimeout = responseTimeout + }; + + var result = await handler(invocationData); + if (result == null) + { + Utils.Error("RPC handler must return a string result"); + SendRpcResponse(invocationId, null, RpcError.BuiltIn(RpcError.ErrorCode.APPLICATION_ERROR)); + return; + } + + SendRpcResponse(invocationId, result, null); + } + catch (RpcError rpcError) + { + SendRpcResponse(invocationId, null, rpcError); + } + catch (Exception e) + { + Utils.Error($"Uncaught error in RPC handler: {e}"); + SendRpcResponse(invocationId, null, RpcError.BuiltIn(RpcError.ErrorCode.APPLICATION_ERROR)); + } + } + + private void SendRpcResponse(ulong invocationId, string responsePayload, RpcError responseError) + { + using var request = FFIBridge.Instance.NewRequest(); + var rpcResp = request.request; + rpcResp.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); + rpcResp.InvocationId = invocationId; + + if (responseError != null) + rpcResp.Error = responseError.ToProto(); + if (responsePayload != null) + rpcResp.Payload = responsePayload; + + var response = request.Send(); + } + private unsafe void PublishData(byte* data, int len, IReadOnlyCollection destination_identities = null, bool reliable = true, string topic = null) { if (!Room.TryGetTarget(out var room)) @@ -143,7 +274,8 @@ private unsafe void PublishData(byte* data, int len, IReadOnlyCollection publish.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle(); publish.Reliable = reliable; - if (destination_identities is not null) { + if (destination_identities is not null) + { publish.DestinationIdentities.AddRange(destination_identities); } @@ -152,7 +284,8 @@ private unsafe void PublishData(byte* data, int len, IReadOnlyCollection publish.Topic = topic; } - unsafe { + unsafe + { publish.DataLen = (ulong)len; publish.DataPtr = (ulong)data; } @@ -190,10 +323,10 @@ internal void OnPublish(PublishTrackCallback e) IsError = !string.IsNullOrEmpty(e.Error); IsDone = true; - var publication = new LocalTrackPublication (e.Publication.Info); - publication.UpdateTrack (_localTrack as Track); + var publication = new LocalTrackPublication(e.Publication.Info); + publication.UpdateTrack(_localTrack as Track); _localTrack.UpdateSid(publication.Sid); - _internalTracks.Add (e.Publication.Info.Sid, publication); + _internalTracks.Add(e.Publication.Info.Sid, publication); FfiClient.Instance.PublishTrackReceived -= OnPublish; } } @@ -201,12 +334,14 @@ public sealed class UnpublishTrackInstruction : YieldInstruction { private ulong _asyncId; - internal UnpublishTrackInstruction(ulong asyncId) { + internal UnpublishTrackInstruction(ulong asyncId) + { _asyncId = asyncId; FfiClient.Instance.UnpublishTrackReceived += OnUnpublish; } - internal void OnUnpublish(UnpublishTrackCallback e) { + internal void OnUnpublish(UnpublishTrackCallback e) + { if (e.AsyncId != _asyncId) return; @@ -215,4 +350,64 @@ internal void OnUnpublish(UnpublishTrackCallback e) { FfiClient.Instance.UnpublishTrackReceived -= OnUnpublish; } } + + /// + /// YieldInstruction for RPC calls. Returned by . + /// + /// + /// Access after checking + /// + public sealed class PerformRpcInstruction : YieldInstruction + { + private ulong _asyncId; + private string _payload; + + internal PerformRpcInstruction(ulong asyncId) + { + _asyncId = asyncId; + FfiClient.Instance.PerformRpcReceived += OnRpcResponse; + } + + internal void OnRpcResponse(PerformRpcCallback e) + { + if (e.AsyncId != _asyncId) + return; + + + if (e.Error != null) + { + Error = RpcError.FromProto(e.Error); + IsError = true; + Utils.Error($"RPC error received: {Error}"); + } + else + { + _payload = e.Payload; + } + IsDone = true; + FfiClient.Instance.PerformRpcReceived -= OnRpcResponse; + } + + /// + /// Getter for the RPC response payload. Check before calling this method. + /// + /// Thrown if the RPC call resulted in an error + public string Payload + { + get + { + if (IsError) + throw Error; + return _payload; + } + } + + /// + /// Getter for RPC response error. + /// + /// + /// See for more information on error codes. + /// + public RpcError Error { get; private set; } + } } diff --git a/Runtime/Scripts/Proto/AudioFrame.cs b/Runtime/Scripts/Proto/AudioFrame.cs index 2ee0dbe..ad11d26 100644 --- a/Runtime/Scripts/Proto/AudioFrame.cs +++ b/Runtime/Scripts/Proto/AudioFrame.cs @@ -26,80 +26,115 @@ static AudioFrameReflection() { string.Concat( "ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", "b3RvGgt0cmFjay5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK", - "DHRyYWNrX2hhbmRsZRgBIAEoBBIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5w", + "DHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5w", "cm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoM", "bnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2US", - "LwoGc3RyZWFtGAEgASgLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3Ry", - "ZWFtIuABCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoS", - "cGFydGljaXBhbnRfaGFuZGxlGAEgASgEEiwKBHR5cGUYAiABKA4yHi5saXZl", - "a2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRI1Cgx0cmFja19zb3VyY2UYAyAB", - "KA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlSACIAQESEwoLc2FtcGxl", - "X3JhdGUYBSABKA0SFAoMbnVtX2NoYW5uZWxzGAYgASgNQg8KDV90cmFja19z", - "b3VyY2UiVQoiQXVkaW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXNwb25zZRIv", - "CgZzdHJlYW0YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkQXVkaW9TdHJl", - "YW0i4QEKFU5ld0F1ZGlvU291cmNlUmVxdWVzdBIsCgR0eXBlGAEgASgOMh4u", - "bGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVR5cGUSNwoHb3B0aW9ucxgCIAEo", - "CzIhLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VPcHRpb25zSACIAQESEwoL", - "c2FtcGxlX3JhdGUYAyABKA0SFAoMbnVtX2NoYW5uZWxzGAQgASgNEhkKDGVu", - "YWJsZV9xdWV1ZRgFIAEoCEgBiAEBQgoKCF9vcHRpb25zQg8KDV9lbmFibGVf", - "cXVldWUiSQoWTmV3QXVkaW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASAB", - "KAsyHy5saXZla2l0LnByb3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVy", - "ZUF1ZGlvRnJhbWVSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASABKAQSMwoG", - "YnVmZmVyGAIgASgLMiMubGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVy", - "SW5mbyItChlDYXB0dXJlQXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lk", - "GAEgASgEIksKGUNhcHR1cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNf", - "aWQYASABKAQSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZfZXJyb3IiGgoYTmV3", - "QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVyUmVz", - "cG9uc2USNQoJcmVzYW1wbGVyGAEgASgLMiIubGl2ZWtpdC5wcm90by5Pd25l", - "ZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVzdBIY", - "ChByZXNhbXBsZXJfaGFuZGxlGAEgASgEEjMKBmJ1ZmZlchgCIAEoCzIjLmxp", - "dmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2NoYW5u", - "ZWxzGAMgASgNEhMKC3NhbXBsZV9yYXRlGAQgASgNIlAKGFJlbWl4QW5kUmVz", - "YW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASABKAsyJC5saXZla2l0LnByb3Rv", - "Lk93bmVkQXVkaW9GcmFtZUJ1ZmZlciJwChRBdWRpb0ZyYW1lQnVmZmVySW5m", - "bxIQCghkYXRhX3B0chgBIAEoBBIUCgxudW1fY2hhbm5lbHMYAiABKA0SEwoL", - "c2FtcGxlX3JhdGUYAyABKA0SGwoTc2FtcGxlc19wZXJfY2hhbm5lbBgEIAEo", - "DSJ5ChVPd25lZEF1ZGlvRnJhbWVCdWZmZXISLQoGaGFuZGxlGAEgASgLMh0u", - "bGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIxCgRpbmZvGAIgASgLMiMu", - "bGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyI/Cg9BdWRpb1N0", - "cmVhbUluZm8SLAoEdHlwZRgBIAEoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9T", - "dHJlYW1UeXBlIm8KEE93bmVkQXVkaW9TdHJlYW0SLQoGaGFuZGxlGAEgASgL", - "Mh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgASgL", - "Mh4ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUluZm8inwEKEEF1ZGlvU3Ry", - "ZWFtRXZlbnQSFQoNc3RyZWFtX2hhbmRsZRgBIAEoBBI7Cg5mcmFtZV9yZWNl", - "aXZlZBgCIAEoCzIhLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZVJlY2VpdmVk", - "SAASLAoDZW9zGAMgASgLMh0ubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUVP", - "U0gAQgkKB21lc3NhZ2UiSQoSQXVkaW9GcmFtZVJlY2VpdmVkEjMKBWZyYW1l", - "GAEgASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvRnJhbWVCdWZmZXIi", - "EAoOQXVkaW9TdHJlYW1FT1MiZQoSQXVkaW9Tb3VyY2VPcHRpb25zEhkKEWVj", - "aG9fY2FuY2VsbGF0aW9uGAEgASgIEhkKEW5vaXNlX3N1cHByZXNzaW9uGAIg", - "ASgIEhkKEWF1dG9fZ2Fpbl9jb250cm9sGAMgASgIIj8KD0F1ZGlvU291cmNl", - "SW5mbxIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJj", - "ZVR5cGUibwoQT3duZWRBdWRpb1NvdXJjZRItCgZoYW5kbGUYASABKAsyHS5s", - "aXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiwKBGluZm8YAiABKAsyHi5s", - "aXZla2l0LnByb3RvLkF1ZGlvU291cmNlSW5mbyIUChJBdWRpb1Jlc2FtcGxl", - "ckluZm8idQoTT3duZWRBdWRpb1Jlc2FtcGxlchItCgZoYW5kbGUYASABKAsy", - "HS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEi8KBGluZm8YAiABKAsy", - "IS5saXZla2l0LnByb3RvLkF1ZGlvUmVzYW1wbGVySW5mbypBCg9BdWRpb1N0", - "cmVhbVR5cGUSFwoTQVVESU9fU1RSRUFNX05BVElWRRAAEhUKEUFVRElPX1NU", - "UkVBTV9IVE1MEAEqKgoPQXVkaW9Tb3VyY2VUeXBlEhcKE0FVRElPX1NPVVJD", - "RV9OQVRJVkUQAEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "LwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3Ry", + "ZWFtIsoBCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoS", + "cGFydGljaXBhbnRfaGFuZGxlGAEgAigEEiwKBHR5cGUYAiACKA4yHi5saXZl", + "a2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRIwCgx0cmFja19zb3VyY2UYAyAB", + "KA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NhbXBsZV9yYXRl", + "GAUgASgNEhQKDG51bV9jaGFubmVscxgGIAEoDSJVCiJBdWRpb1N0cmVhbUZy", + "b21QYXJ0aWNpcGFudFJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVr", + "aXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK7AQoVTmV3QXVkaW9Tb3VyY2VS", + "ZXF1ZXN0EiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU291", + "cmNlVHlwZRIyCgdvcHRpb25zGAIgASgLMiEubGl2ZWtpdC5wcm90by5BdWRp", + "b1NvdXJjZU9wdGlvbnMSEwoLc2FtcGxlX3JhdGUYAyACKA0SFAoMbnVtX2No", + "YW5uZWxzGAQgAigNEhUKDXF1ZXVlX3NpemVfbXMYBSABKA0iSQoWTmV3QXVk", + "aW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASACKAsyHy5saXZla2l0LnBy", + "b3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVyZUF1ZGlvRnJhbWVSZXF1", + "ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASACKAQSMwoGYnVmZmVyGAIgAigLMiMu", + "bGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyItChlDYXB0dXJl", + "QXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIjwKGUNhcHR1", + "cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDQoFZXJy", + "b3IYAiABKAkiMAoXQ2xlYXJBdWRpb0J1ZmZlclJlcXVlc3QSFQoNc291cmNl", + "X2hhbmRsZRgBIAIoBCIaChhDbGVhckF1ZGlvQnVmZmVyUmVzcG9uc2UiGgoY", + "TmV3QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVy", + "UmVzcG9uc2USNQoJcmVzYW1wbGVyGAEgAigLMiIubGl2ZWtpdC5wcm90by5P", + "d25lZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVz", + "dBIYChByZXNhbXBsZXJfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIj", + "LmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2No", + "YW5uZWxzGAMgAigNEhMKC3NhbXBsZV9yYXRlGAQgAigNIlAKGFJlbWl4QW5k", + "UmVzYW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASACKAsyJC5saXZla2l0LnBy", + "b3RvLk93bmVkQXVkaW9GcmFtZUJ1ZmZlciKcAgoWTmV3U294UmVzYW1wbGVy", + "UmVxdWVzdBISCgppbnB1dF9yYXRlGAEgAigBEhMKC291dHB1dF9yYXRlGAIg", + "AigBEhQKDG51bV9jaGFubmVscxgDIAIoDRI8Cg9pbnB1dF9kYXRhX3R5cGUY", + "BCACKA4yIy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEj0K", + "EG91dHB1dF9kYXRhX3R5cGUYBSACKA4yIy5saXZla2l0LnByb3RvLlNveFJl", + "c2FtcGxlckRhdGFUeXBlEjcKDnF1YWxpdHlfcmVjaXBlGAYgAigOMh8ubGl2", + "ZWtpdC5wcm90by5Tb3hRdWFsaXR5UmVjaXBlEg0KBWZsYWdzGAcgASgNImwK", + "F05ld1NveFJlc2FtcGxlclJlc3BvbnNlEjUKCXJlc2FtcGxlchgBIAEoCzIg", + "LmxpdmVraXQucHJvdG8uT3duZWRTb3hSZXNhbXBsZXJIABIPCgVlcnJvchgC", + "IAEoCUgAQgkKB21lc3NhZ2UiUwoXUHVzaFNveFJlc2FtcGxlclJlcXVlc3QS", + "GAoQcmVzYW1wbGVyX2hhbmRsZRgBIAIoBBIQCghkYXRhX3B0chgCIAIoBBIM", + "CgRzaXplGAMgAigNIksKGFB1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpv", + "dXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAki", + "NAoYRmx1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0EhgKEHJlc2FtcGxlcl9oYW5k", + "bGUYASACKAQiTAoZRmx1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpvdXRw", + "dXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAkicAoU", + "QXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoIZGF0YV9wdHIYASACKAQSFAoMbnVt", + "X2NoYW5uZWxzGAIgAigNEhMKC3NhbXBsZV9yYXRlGAMgAigNEhsKE3NhbXBs", + "ZXNfcGVyX2NoYW5uZWwYBCACKA0ieQoVT3duZWRBdWRpb0ZyYW1lQnVmZmVy", + "Ei0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k", + "bGUSMQoEaW5mbxgCIAIoCzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1", + "ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1JbmZvEiwKBHR5cGUYASACKA4yHi5s", + "aXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZSJvChBPd25lZEF1ZGlvU3Ry", + "ZWFtEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRI", + "YW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl", + "YW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUY", + "ASACKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3Rv", + "LkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQu", + "cHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJCgdtZXNzYWdlIkkKEkF1ZGlvRnJh", + "bWVSZWNlaXZlZBIzCgVmcmFtZRgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3du", + "ZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1ZGlvU3RyZWFtRU9TImUKEkF1ZGlv", + "U291cmNlT3B0aW9ucxIZChFlY2hvX2NhbmNlbGxhdGlvbhgBIAIoCBIZChFu", + "b2lzZV9zdXBwcmVzc2lvbhgCIAIoCBIZChFhdXRvX2dhaW5fY29udHJvbBgD", + "IAIoCCI/Cg9BdWRpb1NvdXJjZUluZm8SLAoEdHlwZRgCIAIoDjIeLmxpdmVr", + "aXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBlIm8KEE93bmVkQXVkaW9Tb3VyY2US", + "LQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRs", + "ZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZUlu", + "Zm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZvInUKE093bmVkQXVkaW9SZXNhbXBs", + "ZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhh", + "bmRsZRIvCgRpbmZvGAIgAigLMiEubGl2ZWtpdC5wcm90by5BdWRpb1Jlc2Ft", + "cGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2Ft", + "cGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", + "SGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2Ft", + "cGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRB", + "VFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBT", + "b3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNP", + "WFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoR", + "U09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQ", + "BCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoT", + "U09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAIS", + "GAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVD", + "SVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FV", + "RElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioK", + "D0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoC", + "DUxpdmVLaXQuUHJvdG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.AudioStreamType), typeof(global::LiveKit.Proto.AudioSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.SoxResamplerDataType), typeof(global::LiveKit.Proto.SoxQualityRecipe), typeof(global::LiveKit.Proto.SoxFlagBits), typeof(global::LiveKit.Proto.AudioStreamType), typeof(global::LiveKit.Proto.AudioSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamResponse), global::LiveKit.Proto.NewAudioStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels" }, new[]{ "TrackSource" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantResponse), global::LiveKit.Proto.AudioStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels", "EnableQueue" }, new[]{ "Options", "EnableQueue" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels", "QueueSizeMs" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceResponse), global::LiveKit.Proto.NewAudioSourceResponse.Parser, new[]{ "Source" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureAudioFrameRequest), global::LiveKit.Proto.CaptureAudioFrameRequest.Parser, new[]{ "SourceHandle", "Buffer" }, null, null, null, null), 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.CaptureAudioFrameCallback), global::LiveKit.Proto.CaptureAudioFrameCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ClearAudioBufferRequest), global::LiveKit.Proto.ClearAudioBufferRequest.Parser, new[]{ "SourceHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ClearAudioBufferResponse), global::LiveKit.Proto.ClearAudioBufferResponse.Parser, null, null, 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[]{ "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.NewSoxResamplerRequest), global::LiveKit.Proto.NewSoxResamplerRequest.Parser, new[]{ "InputRate", "OutputRate", "NumChannels", "InputDataType", "OutputDataType", "QualityRecipe", "Flags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewSoxResamplerResponse), global::LiveKit.Proto.NewSoxResamplerResponse.Parser, new[]{ "Resampler", "Error" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PushSoxResamplerRequest), global::LiveKit.Proto.PushSoxResamplerRequest.Parser, new[]{ "ResamplerHandle", "DataPtr", "Size" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PushSoxResamplerResponse), global::LiveKit.Proto.PushSoxResamplerResponse.Parser, new[]{ "OutputPtr", "Size", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FlushSoxResamplerRequest), global::LiveKit.Proto.FlushSoxResamplerRequest.Parser, new[]{ "ResamplerHandle" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FlushSoxResamplerResponse), global::LiveKit.Proto.FlushSoxResamplerResponse.Parser, new[]{ "OutputPtr", "Size", "Error" }, null, 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), @@ -111,13 +146,58 @@ static AudioFrameReflection() { 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) + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioResampler), global::LiveKit.Proto.OwnedAudioResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SoxResamplerInfo), global::LiveKit.Proto.SoxResamplerInfo.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedSoxResampler), global::LiveKit.Proto.OwnedSoxResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } #endregion } #region Enums + public enum SoxResamplerDataType { + /// + /// TODO(theomonnom): support other datatypes (shouldn't really be needed) + /// + [pbr::OriginalName("SOXR_DATATYPE_INT16I")] SoxrDatatypeInt16I = 0, + [pbr::OriginalName("SOXR_DATATYPE_INT16S")] SoxrDatatypeInt16S = 1, + } + + public enum SoxQualityRecipe { + [pbr::OriginalName("SOXR_QUALITY_QUICK")] SoxrQualityQuick = 0, + [pbr::OriginalName("SOXR_QUALITY_LOW")] SoxrQualityLow = 1, + [pbr::OriginalName("SOXR_QUALITY_MEDIUM")] SoxrQualityMedium = 2, + [pbr::OriginalName("SOXR_QUALITY_HIGH")] SoxrQualityHigh = 3, + [pbr::OriginalName("SOXR_QUALITY_VERYHIGH")] SoxrQualityVeryhigh = 4, + } + + public enum SoxFlagBits { + /// + /// 1 << 0 + /// + [pbr::OriginalName("SOXR_ROLLOFF_SMALL")] SoxrRolloffSmall = 0, + /// + /// 1 << 1 + /// + [pbr::OriginalName("SOXR_ROLLOFF_MEDIUM")] SoxrRolloffMedium = 1, + /// + /// 1 << 2 + /// + [pbr::OriginalName("SOXR_ROLLOFF_NONE")] SoxrRolloffNone = 2, + /// + /// 1 << 3 + /// + [pbr::OriginalName("SOXR_HIGH_PREC_CLOCK")] SoxrHighPrecClock = 3, + /// + /// 1 << 4 + /// + [pbr::OriginalName("SOXR_DOUBLE_PRECISION")] SoxrDoublePrecision = 4, + /// + /// 1 << 5 + /// + [pbr::OriginalName("SOXR_VR")] SoxrVr = 5, + } + public enum AudioStreamType { [pbr::OriginalName("AUDIO_STREAM_NATIVE")] AudioStreamNative = 0, [pbr::OriginalName("AUDIO_STREAM_HTML")] AudioStreamHtml = 1, @@ -142,6 +222,7 @@ public sealed partial class NewAudioStreamRequest : pb::IMessage _parser = new pb::MessageParser(() => new NewAudioStreamRequest()); 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; } } @@ -169,6 +250,7 @@ public NewAudioStreamRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewAudioStreamRequest(NewAudioStreamRequest other) : this() { + _hasBits0 = other._hasBits0; trackHandle_ = other.trackHandle_; type_ = other.type_; sampleRate_ = other.sampleRate_; @@ -184,51 +266,111 @@ public NewAudioStreamRequest Clone() { /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 1; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 1) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 1; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~1; + } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.AudioStreamType type_ = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + + private global::LiveKit.Proto.AudioStreamType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioStreamType Type { - get { return type_; } + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 2; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } /// Field number for the "sample_rate" field. public const int SampleRateFieldNumber = 3; + private readonly static uint SampleRateDefaultValue = 0; + private uint sampleRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SampleRate { - get { return sampleRate_; } + get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } } set { + _hasBits0 |= 4; sampleRate_ = value; } } + /// Gets whether the "sample_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSampleRate { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "sample_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleRate() { + _hasBits0 &= ~4; + } /// Field number for the "num_channels" field. public const int NumChannelsFieldNumber = 4; + private readonly static uint NumChannelsDefaultValue = 0; + private uint numChannels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NumChannels { - get { return numChannels_; } + get { if ((_hasBits0 & 8) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } set { + _hasBits0 |= 8; numChannels_ = value; } } + /// Gets whether the "num_channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumChannels { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "num_channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumChannels() { + _hasBits0 &= ~8; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -256,10 +398,10 @@ public bool Equals(NewAudioStreamRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); - if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); - if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasSampleRate) hash ^= SampleRate.GetHashCode(); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -278,19 +420,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(24); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(32); output.WriteUInt32(NumChannels); } @@ -304,19 +446,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(24); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(32); output.WriteUInt32(NumChannels); } @@ -330,16 +472,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } - if (SampleRate != 0) { + if (HasSampleRate) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); } if (_unknownFields != null) { @@ -354,16 +496,16 @@ public void MergeFrom(NewAudioStreamRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } - if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (other.HasType) { Type = other.Type; } - if (other.SampleRate != 0) { + if (other.HasSampleRate) { SampleRate = other.SampleRate; } - if (other.NumChannels != 0) { + if (other.HasNumChannels) { NumChannels = other.NumChannels; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -377,7 +519,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -408,7 +554,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -594,7 +744,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -616,7 +770,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -687,27 +845,57 @@ public AudioStreamFromParticipantRequest Clone() { /// Field number for the "participant_handle" field. public const int ParticipantHandleFieldNumber = 1; + private readonly static ulong ParticipantHandleDefaultValue = 0UL; + private ulong participantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ParticipantHandle { - get { return participantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return participantHandle_; } else { return ParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; participantHandle_ = value; } } + /// Gets whether the "participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.AudioStreamType type_ = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + + private global::LiveKit.Proto.AudioStreamType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioStreamType Type { - get { return type_; } + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 2; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } /// Field number for the "track_source" field. public const int TrackSourceFieldNumber = 3; @@ -717,9 +905,9 @@ public ulong ParticipantHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.TrackSource TrackSource { - get { if ((_hasBits0 & 1) != 0) { return trackSource_; } else { return TrackSourceDefaultValue; } } + get { if ((_hasBits0 & 4) != 0) { return trackSource_; } else { return TrackSourceDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 4; trackSource_ = value; } } @@ -727,38 +915,68 @@ public ulong ParticipantHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasTrackSource { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "track_source" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearTrackSource() { - _hasBits0 &= ~1; + _hasBits0 &= ~4; } /// Field number for the "sample_rate" field. public const int SampleRateFieldNumber = 5; + private readonly static uint SampleRateDefaultValue = 0; + private uint sampleRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SampleRate { - get { return sampleRate_; } + get { if ((_hasBits0 & 8) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } } set { + _hasBits0 |= 8; sampleRate_ = value; } } + /// Gets whether the "sample_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSampleRate { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "sample_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleRate() { + _hasBits0 &= ~8; + } /// Field number for the "num_channels" field. public const int NumChannelsFieldNumber = 6; + private readonly static uint NumChannelsDefaultValue = 0; + private uint numChannels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NumChannels { - get { return numChannels_; } + get { if ((_hasBits0 & 16) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } set { + _hasBits0 |= 16; numChannels_ = value; } } + /// Gets whether the "num_channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumChannels { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "num_channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumChannels() { + _hasBits0 &= ~16; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -787,11 +1005,11 @@ public bool Equals(AudioStreamFromParticipantRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantHandle != 0UL) hash ^= ParticipantHandle.GetHashCode(); - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) hash ^= Type.GetHashCode(); + if (HasParticipantHandle) hash ^= ParticipantHandle.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (HasTrackSource) hash ^= TrackSource.GetHashCode(); - if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); - if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); + if (HasSampleRate) hash ^= SampleRate.GetHashCode(); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -810,11 +1028,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(ParticipantHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } @@ -822,11 +1040,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) TrackSource); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(40); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(48); output.WriteUInt32(NumChannels); } @@ -840,11 +1058,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(ParticipantHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } @@ -852,11 +1070,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) TrackSource); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(40); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(48); output.WriteUInt32(NumChannels); } @@ -870,19 +1088,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ParticipantHandle); } - if (Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (HasTrackSource) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackSource); } - if (SampleRate != 0) { + if (HasSampleRate) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); } if (_unknownFields != null) { @@ -897,19 +1115,19 @@ public void MergeFrom(AudioStreamFromParticipantRequest other) { if (other == null) { return; } - if (other.ParticipantHandle != 0UL) { + if (other.HasParticipantHandle) { ParticipantHandle = other.ParticipantHandle; } - if (other.Type != global::LiveKit.Proto.AudioStreamType.AudioStreamNative) { + if (other.HasType) { Type = other.Type; } if (other.HasTrackSource) { TrackSource = other.TrackSource; } - if (other.SampleRate != 0) { + if (other.HasSampleRate) { SampleRate = other.SampleRate; } - if (other.NumChannels != 0) { + if (other.HasNumChannels) { NumChannels = other.NumChannels; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -923,7 +1141,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -958,7 +1180,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1148,7 +1374,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1170,7 +1400,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1232,7 +1466,7 @@ public NewAudioSourceRequest(NewAudioSourceRequest other) : this() { options_ = other.options_ != null ? other.options_.Clone() : null; sampleRate_ = other.sampleRate_; numChannels_ = other.numChannels_; - enableQueue_ = other.enableQueue_; + queueSizeMs_ = other.queueSizeMs_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1244,15 +1478,30 @@ public NewAudioSourceRequest Clone() { /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.AudioSourceType type_ = global::LiveKit.Proto.AudioSourceType.AudioSourceNative; + private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative; + + private global::LiveKit.Proto.AudioSourceType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioSourceType Type { - get { return type_; } + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 1; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } /// Field number for the "options" field. public const int OptionsFieldNumber = 2; @@ -1268,53 +1517,83 @@ public NewAudioSourceRequest Clone() { /// Field number for the "sample_rate" field. public const int SampleRateFieldNumber = 3; + private readonly static uint SampleRateDefaultValue = 0; + private uint sampleRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SampleRate { - get { return sampleRate_; } + get { if ((_hasBits0 & 2) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } } set { + _hasBits0 |= 2; sampleRate_ = value; } } + /// Gets whether the "sample_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSampleRate { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "sample_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleRate() { + _hasBits0 &= ~2; + } /// Field number for the "num_channels" field. public const int NumChannelsFieldNumber = 4; + private readonly static uint NumChannelsDefaultValue = 0; + private uint numChannels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NumChannels { - get { return numChannels_; } + get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } set { + _hasBits0 |= 4; numChannels_ = value; } } + /// Gets whether the "num_channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumChannels { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "num_channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumChannels() { + _hasBits0 &= ~4; + } - /// Field number for the "enable_queue" field. - public const int EnableQueueFieldNumber = 5; - private readonly static bool EnableQueueDefaultValue = false; + /// Field number for the "queue_size_ms" field. + public const int QueueSizeMsFieldNumber = 5; + private readonly static uint QueueSizeMsDefaultValue = 0; - private bool enableQueue_; + private uint queueSizeMs_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnableQueue { - get { if ((_hasBits0 & 1) != 0) { return enableQueue_; } else { return EnableQueueDefaultValue; } } + public uint QueueSizeMs { + get { if ((_hasBits0 & 8) != 0) { return queueSizeMs_; } else { return QueueSizeMsDefaultValue; } } set { - _hasBits0 |= 1; - enableQueue_ = value; + _hasBits0 |= 8; + queueSizeMs_ = value; } } - /// Gets whether the "enable_queue" field is set + /// Gets whether the "queue_size_ms" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnableQueue { - get { return (_hasBits0 & 1) != 0; } + public bool HasQueueSizeMs { + get { return (_hasBits0 & 8) != 0; } } - /// Clears the value of the "enable_queue" field + /// Clears the value of the "queue_size_ms" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnableQueue() { - _hasBits0 &= ~1; + public void ClearQueueSizeMs() { + _hasBits0 &= ~8; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1336,7 +1615,7 @@ public bool Equals(NewAudioSourceRequest other) { if (!object.Equals(Options, other.Options)) return false; if (SampleRate != other.SampleRate) return false; if (NumChannels != other.NumChannels) return false; - if (EnableQueue != other.EnableQueue) return false; + if (QueueSizeMs != other.QueueSizeMs) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1344,11 +1623,11 @@ public bool Equals(NewAudioSourceRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) hash ^= Type.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (options_ != null) hash ^= Options.GetHashCode(); - if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); - if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); - if (HasEnableQueue) hash ^= EnableQueue.GetHashCode(); + if (HasSampleRate) hash ^= SampleRate.GetHashCode(); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); + if (HasQueueSizeMs) hash ^= QueueSizeMs.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1367,7 +1646,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -1375,17 +1654,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Options); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(24); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(32); output.WriteUInt32(NumChannels); } - if (HasEnableQueue) { + if (HasQueueSizeMs) { output.WriteRawTag(40); - output.WriteBool(EnableQueue); + output.WriteUInt32(QueueSizeMs); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -1397,7 +1676,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 (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -1405,17 +1684,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Options); } - if (SampleRate != 0) { + if (HasSampleRate) { output.WriteRawTag(24); output.WriteUInt32(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { output.WriteRawTag(32); output.WriteUInt32(NumChannels); } - if (HasEnableQueue) { + if (HasQueueSizeMs) { output.WriteRawTag(40); - output.WriteBool(EnableQueue); + output.WriteUInt32(QueueSizeMs); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -1427,20 +1706,20 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (options_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); } - if (SampleRate != 0) { + if (HasSampleRate) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); } - if (NumChannels != 0) { + if (HasNumChannels) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); } - if (HasEnableQueue) { - size += 1 + 1; + if (HasQueueSizeMs) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QueueSizeMs); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -1454,7 +1733,7 @@ public void MergeFrom(NewAudioSourceRequest other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { + if (other.HasType) { Type = other.Type; } if (other.options_ != null) { @@ -1463,14 +1742,14 @@ public void MergeFrom(NewAudioSourceRequest other) { } Options.MergeFrom(other.Options); } - if (other.SampleRate != 0) { + if (other.HasSampleRate) { SampleRate = other.SampleRate; } - if (other.NumChannels != 0) { + if (other.HasNumChannels) { NumChannels = other.NumChannels; } - if (other.HasEnableQueue) { - EnableQueue = other.EnableQueue; + if (other.HasQueueSizeMs) { + QueueSizeMs = other.QueueSizeMs; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1483,7 +1762,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1507,7 +1790,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 40: { - EnableQueue = input.ReadBool(); + QueueSizeMs = input.ReadUInt32(); break; } } @@ -1521,7 +1804,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1545,7 +1832,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 40: { - EnableQueue = input.ReadBool(); + QueueSizeMs = input.ReadUInt32(); break; } } @@ -1714,7 +2001,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1736,7 +2027,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1766,6 +2061,7 @@ public sealed partial class CaptureAudioFrameRequest : pb::IMessage _parser = new pb::MessageParser(() => new CaptureAudioFrameRequest()); 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; } } @@ -1793,6 +2089,7 @@ public CaptureAudioFrameRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureAudioFrameRequest(CaptureAudioFrameRequest other) : this() { + _hasBits0 = other._hasBits0; sourceHandle_ = other.sourceHandle_; buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -1806,15 +2103,30 @@ public CaptureAudioFrameRequest Clone() { /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 1; + private readonly static ulong SourceHandleDefaultValue = 0UL; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong SourceHandle { - get { return sourceHandle_; } + get { if ((_hasBits0 & 1) != 0) { return sourceHandle_; } else { return SourceHandleDefaultValue; } } set { + _hasBits0 |= 1; sourceHandle_ = value; } } + /// Gets whether the "source_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSourceHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceHandle() { + _hasBits0 &= ~1; + } /// Field number for the "buffer" field. public const int BufferFieldNumber = 2; @@ -1852,7 +2164,7 @@ public bool Equals(CaptureAudioFrameRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); + if (HasSourceHandle) hash ^= SourceHandle.GetHashCode(); if (buffer_ != null) hash ^= Buffer.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1872,7 +2184,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(8); output.WriteUInt64(SourceHandle); } @@ -1890,7 +2202,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 (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(8); output.WriteUInt64(SourceHandle); } @@ -1908,7 +2220,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (SourceHandle != 0UL) { + if (HasSourceHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (buffer_ != null) { @@ -1926,7 +2238,7 @@ public void MergeFrom(CaptureAudioFrameRequest other) { if (other == null) { return; } - if (other.SourceHandle != 0UL) { + if (other.HasSourceHandle) { SourceHandle = other.SourceHandle; } if (other.buffer_ != null) { @@ -1946,7 +2258,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1972,7 +2288,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2002,6 +2322,7 @@ public sealed partial class CaptureAudioFrameResponse : pb::IMessage _parser = new pb::MessageParser(() => new CaptureAudioFrameResponse()); 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; } } @@ -2029,6 +2350,7 @@ public CaptureAudioFrameResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureAudioFrameResponse(CaptureAudioFrameResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2041,15 +2363,30 @@ public CaptureAudioFrameResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -2074,7 +2411,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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2093,7 +2430,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2107,7 +2444,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2121,7 +2458,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -2136,7 +2473,7 @@ public void MergeFrom(CaptureAudioFrameResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2150,7 +2487,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2169,7 +2510,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2192,6 +2537,7 @@ public sealed partial class CaptureAudioFrameCallback : pb::IMessage _parser = new pb::MessageParser(() => new CaptureAudioFrameCallback()); 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; } } @@ -2219,6 +2565,7 @@ public CaptureAudioFrameCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureAudioFrameCallback(CaptureAudioFrameCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2232,15 +2579,30 @@ public CaptureAudioFrameCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -2292,7 +2654,7 @@ public bool Equals(CaptureAudioFrameCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2312,7 +2674,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2330,7 +2692,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2348,7 +2710,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -2366,7 +2728,7 @@ public void MergeFrom(CaptureAudioFrameCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -2383,7 +2745,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2406,7 +2772,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2425,20 +2795,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Create a new AudioResampler - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class NewAudioResamplerRequest : pb::IMessage + public sealed partial class ClearAudioBufferRequest : 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 ClearAudioBufferRequest()); 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)] @@ -2454,7 +2822,7 @@ public sealed partial class NewAudioResamplerRequest : pb::IMessageField number for the "source_handle" field. + public const int SourceHandleFieldNumber = 1; + private readonly static ulong SourceHandleDefaultValue = 0UL; + + private ulong sourceHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SourceHandle { + get { if ((_hasBits0 & 1) != 0) { return sourceHandle_; } else { return SourceHandleDefaultValue; } } + set { + _hasBits0 |= 1; + sourceHandle_ = value; + } + } + /// Gets whether the "source_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSourceHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceHandle() { + _hasBits0 &= ~1; } [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 ClearAudioBufferRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NewAudioResamplerRequest other) { + public bool Equals(ClearAudioBufferRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (SourceHandle != other.SourceHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2494,6 +2892,7 @@ public bool Equals(NewAudioResamplerRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (HasSourceHandle) hash ^= SourceHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2512,6 +2911,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (HasSourceHandle) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2522,6 +2925,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 (HasSourceHandle) { + output.WriteRawTag(8); + output.WriteUInt64(SourceHandle); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2532,6 +2939,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (HasSourceHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2540,10 +2950,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NewAudioResamplerRequest other) { + public void MergeFrom(ClearAudioBufferRequest other) { if (other == null) { return; } + if (other.HasSourceHandle) { + SourceHandle = other.SourceHandle; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2555,10 +2968,18 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + SourceHandle = input.ReadUInt64(); + break; + } } } #endif @@ -2570,10 +2991,18 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + SourceHandle = input.ReadUInt64(); + break; + } } } } @@ -2582,16 +3011,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class NewAudioResamplerResponse : pb::IMessage + public sealed partial class ClearAudioBufferResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioResamplerResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearAudioBufferResponse()); 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)] @@ -2607,7 +3036,7 @@ public sealed partial class NewAudioResamplerResponse : pb::IMessageField 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.OwnedAudioResampler Resampler { - get { return resampler_; } - set { - resampler_ = value; - } + public ClearAudioBufferResponse Clone() { + return new ClearAudioBufferResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as NewAudioResamplerResponse); + return Equals(other as ClearAudioBufferResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NewAudioResamplerResponse other) { + public bool Equals(ClearAudioBufferResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Resampler, other.Resampler)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2661,7 +3076,6 @@ public bool Equals(NewAudioResamplerResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (resampler_ != null) hash ^= Resampler.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2680,10 +3094,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (resampler_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Resampler); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2694,10 +3104,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 (resampler_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Resampler); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2708,9 +3114,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (resampler_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2719,16 +3122,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NewAudioResamplerResponse other) { + public void MergeFrom(ClearAudioBufferResponse other) { if (other == null) { return; } - if (other.resampler_ != null) { - if (resampler_ == null) { - Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); - } - Resampler.MergeFrom(other.Resampler); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2740,17 +3137,14 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (resampler_ == null) { - Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); - } - input.ReadMessage(Resampler); - break; - } } } #endif @@ -2762,17 +3156,14 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (resampler_ == null) { - Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); - } - input.ReadMessage(Resampler); - break; - } } } } @@ -2781,19 +3172,19 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Remix and resample an audio frame + /// Create a new AudioResampler /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RemixAndResampleRequest : pb::IMessage + 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 RemixAndResampleRequest()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2809,7 +3200,7 @@ public sealed partial class RemixAndResampleRequest : pb::IMessageField number for the "resampler_handle" field. - public const int ResamplerHandleFieldNumber = 1; - private ulong resamplerHandle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong ResamplerHandle { - get { return resamplerHandle_; } - set { - resamplerHandle_ = value; - } - } - - /// 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.AudioFrameBufferInfo Buffer { - get { return buffer_; } - set { - buffer_ = value; - } - } - - /// Field number for the "num_channels" field. - public const int NumChannelsFieldNumber = 3; - private uint numChannels_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint NumChannels { - get { return numChannels_; } - set { - numChannels_ = value; - } - } - - /// Field number for the "sample_rate" field. - public const int SampleRateFieldNumber = 4; - private uint sampleRate_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SampleRate { - get { return sampleRate_; } - set { - sampleRate_ = value; - } + 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 RemixAndResampleRequest); + return Equals(other as NewAudioResamplerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemixAndResampleRequest other) { + public bool Equals(NewAudioResamplerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - 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); } @@ -2905,10 +3240,6 @@ public bool Equals(RemixAndResampleRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - 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) { hash ^= _unknownFields.GetHashCode(); } @@ -2927,22 +3258,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ResamplerHandle != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(ResamplerHandle); - } - if (buffer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Buffer); - } - if (NumChannels != 0) { - output.WriteRawTag(24); - output.WriteUInt32(NumChannels); - } - if (SampleRate != 0) { - output.WriteRawTag(32); - output.WriteUInt32(SampleRate); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2953,22 +3268,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 (ResamplerHandle != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(ResamplerHandle); - } - if (buffer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Buffer); - } - if (NumChannels != 0) { - output.WriteRawTag(24); - output.WriteUInt32(NumChannels); - } - if (SampleRate != 0) { - output.WriteRawTag(32); - output.WriteUInt32(SampleRate); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2979,18 +3278,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ResamplerHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle); - } - if (buffer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); - } - if (NumChannels != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); - } - if (SampleRate != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2999,25 +3286,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemixAndResampleRequest other) { + public void MergeFrom(NewAudioResamplerRequest other) { if (other == null) { return; } - if (other.ResamplerHandle != 0UL) { - ResamplerHandle = other.ResamplerHandle; - } - if (other.buffer_ != null) { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - Buffer.MergeFrom(other.Buffer); - } - if (other.NumChannels != 0) { - NumChannels = other.NumChannels; - } - if (other.SampleRate != 0) { - SampleRate = other.SampleRate; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3029,29 +3301,14 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - ResamplerHandle = input.ReadUInt64(); - break; - } - case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - input.ReadMessage(Buffer); - break; - } - case 24: { - NumChannels = input.ReadUInt32(); - break; - } - case 32: { - SampleRate = input.ReadUInt32(); - break; - } } } #endif @@ -3063,29 +3320,14 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - ResamplerHandle = input.ReadUInt64(); - break; - } - case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); - } - input.ReadMessage(Buffer); - break; - } - case 24: { - NumChannels = input.ReadUInt32(); - break; - } - case 32: { - SampleRate = input.ReadUInt32(); - break; - } } } } @@ -3094,16 +3336,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RemixAndResampleResponse : pb::IMessage + public sealed partial class NewAudioResamplerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemixAndResampleResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewAudioResamplerResponse()); 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)] @@ -3119,7 +3361,7 @@ public sealed partial class RemixAndResampleResponse : pb::IMessageField number for the "buffer" field. - public const int BufferFieldNumber = 1; - private global::LiveKit.Proto.OwnedAudioFrameBuffer buffer_; + /// 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.OwnedAudioFrameBuffer Buffer { - get { return buffer_; } + public global::LiveKit.Proto.OwnedAudioResampler Resampler { + get { return resampler_; } set { - buffer_ = value; + resampler_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RemixAndResampleResponse); + return Equals(other as NewAudioResamplerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemixAndResampleResponse other) { + public bool Equals(NewAudioResamplerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Buffer, other.Buffer)) return false; + if (!object.Equals(Resampler, other.Resampler)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3173,7 +3415,7 @@ public bool Equals(RemixAndResampleResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (buffer_ != null) hash ^= Buffer.GetHashCode(); + if (resampler_ != null) hash ^= Resampler.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3192,9 +3434,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (buffer_ != null) { + if (resampler_ != null) { output.WriteRawTag(10); - output.WriteMessage(Buffer); + output.WriteMessage(Resampler); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3206,9 +3448,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 (buffer_ != null) { + if (resampler_ != null) { output.WriteRawTag(10); - output.WriteMessage(Buffer); + output.WriteMessage(Resampler); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3220,8 +3462,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (buffer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); + if (resampler_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3231,15 +3473,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemixAndResampleResponse other) { + public void MergeFrom(NewAudioResamplerResponse other) { if (other == null) { return; } - if (other.buffer_ != null) { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + if (other.resampler_ != null) { + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - Buffer.MergeFrom(other.Buffer); + Resampler.MergeFrom(other.Resampler); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3252,15 +3494,19 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - input.ReadMessage(Buffer); + input.ReadMessage(Resampler); break; } } @@ -3274,15 +3520,19 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); + if (resampler_ == null) { + Resampler = new global::LiveKit.Proto.OwnedAudioResampler(); } - input.ReadMessage(Buffer); + input.ReadMessage(Resampler); break; } } @@ -3292,17 +3542,21 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Remix and resample an audio frame + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioFrameBufferInfo : pb::IMessage + public sealed partial class RemixAndResampleRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemixAndResampleRequest()); 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)] @@ -3318,7 +3572,7 @@ public sealed partial class AudioFrameBufferInfo : pb::IMessageField number for the "data_ptr" field. - public const int DataPtrFieldNumber = 1; - private ulong dataPtr_; - /// - /// *const i16 - /// + /// Field number for the "resampler_handle" field. + public const int ResamplerHandleFieldNumber = 1; + private readonly static ulong ResamplerHandleDefaultValue = 0UL; + + private ulong resamplerHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataPtr { - get { return dataPtr_; } + public ulong ResamplerHandle { + get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } } set { - dataPtr_ = value; + _hasBits0 |= 1; + resamplerHandle_ = value; + } + } + /// Gets whether the "resampler_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResamplerHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "resampler_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResamplerHandle() { + _hasBits0 &= ~1; + } + + /// 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.AudioFrameBufferInfo Buffer { + get { return buffer_; } + set { + buffer_ = value; } } /// Field number for the "num_channels" field. - public const int NumChannelsFieldNumber = 2; + public const int NumChannelsFieldNumber = 3; + private readonly static uint NumChannelsDefaultValue = 0; + private uint numChannels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NumChannels { - get { return numChannels_; } + get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } set { + _hasBits0 |= 2; numChannels_ = value; } } + /// Gets whether the "num_channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumChannels { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num_channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumChannels() { + _hasBits0 &= ~2; + } /// Field number for the "sample_rate" field. - public const int SampleRateFieldNumber = 3; + public const int SampleRateFieldNumber = 4; + private readonly static uint SampleRateDefaultValue = 0; + private uint sampleRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SampleRate { - get { return sampleRate_; } + get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } } set { + _hasBits0 |= 4; sampleRate_ = value; } } - - /// Field number for the "samples_per_channel" field. - public const int SamplesPerChannelFieldNumber = 4; - private uint samplesPerChannel_; + /// Gets whether the "sample_rate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SamplesPerChannel { - get { return samplesPerChannel_; } - set { - samplesPerChannel_ = value; - } + public bool HasSampleRate { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "sample_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleRate() { + _hasBits0 &= ~4; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioFrameBufferInfo); + return Equals(other as RemixAndResampleRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioFrameBufferInfo other) { + public bool Equals(RemixAndResampleRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (DataPtr != other.DataPtr) 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; - if (SamplesPerChannel != other.SamplesPerChannel) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3417,10 +3714,10 @@ public bool Equals(AudioFrameBufferInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (NumChannels != 0) hash ^= NumChannels.GetHashCode(); - if (SampleRate != 0) hash ^= SampleRate.GetHashCode(); - if (SamplesPerChannel != 0) hash ^= SamplesPerChannel.GetHashCode(); + if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode(); + if (buffer_ != null) hash ^= Buffer.GetHashCode(); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); + if (HasSampleRate) hash ^= SampleRate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3439,21 +3736,21 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (DataPtr != 0UL) { + if (HasResamplerHandle) { output.WriteRawTag(8); - output.WriteUInt64(DataPtr); + output.WriteUInt64(ResamplerHandle); } - if (NumChannels != 0) { - output.WriteRawTag(16); - output.WriteUInt32(NumChannels); + if (buffer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Buffer); } - if (SampleRate != 0) { + if (HasNumChannels) { output.WriteRawTag(24); - output.WriteUInt32(SampleRate); + output.WriteUInt32(NumChannels); } - if (SamplesPerChannel != 0) { + if (HasSampleRate) { output.WriteRawTag(32); - output.WriteUInt32(SamplesPerChannel); + output.WriteUInt32(SampleRate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3465,21 +3762,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 (DataPtr != 0UL) { + if (HasResamplerHandle) { output.WriteRawTag(8); - output.WriteUInt64(DataPtr); + output.WriteUInt64(ResamplerHandle); } - if (NumChannels != 0) { - output.WriteRawTag(16); - output.WriteUInt32(NumChannels); + if (buffer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Buffer); } - if (SampleRate != 0) { + if (HasNumChannels) { output.WriteRawTag(24); - output.WriteUInt32(SampleRate); + output.WriteUInt32(NumChannels); } - if (SamplesPerChannel != 0) { + if (HasSampleRate) { output.WriteRawTag(32); - output.WriteUInt32(SamplesPerChannel); + output.WriteUInt32(SampleRate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3491,18 +3788,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (DataPtr != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + if (HasResamplerHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle); } - if (NumChannels != 0) { + if (buffer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); + } + if (HasNumChannels) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); } - if (SampleRate != 0) { + if (HasSampleRate) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); } - if (SamplesPerChannel != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3511,22 +3808,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioFrameBufferInfo other) { + public void MergeFrom(RemixAndResampleRequest other) { if (other == null) { return; } - if (other.DataPtr != 0UL) { - DataPtr = other.DataPtr; + if (other.HasResamplerHandle) { + ResamplerHandle = other.ResamplerHandle; + } + if (other.buffer_ != null) { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + } + Buffer.MergeFrom(other.Buffer); } - if (other.NumChannels != 0) { + if (other.HasNumChannels) { NumChannels = other.NumChannels; } - if (other.SampleRate != 0) { + if (other.HasSampleRate) { SampleRate = other.SampleRate; } - if (other.SamplesPerChannel != 0) { - SamplesPerChannel = other.SamplesPerChannel; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3538,24 +3838,31 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - DataPtr = input.ReadUInt64(); + ResamplerHandle = input.ReadUInt64(); break; } - case 16: { - NumChannels = input.ReadUInt32(); + case 18: { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + } + input.ReadMessage(Buffer); break; } case 24: { - SampleRate = input.ReadUInt32(); + NumChannels = input.ReadUInt32(); break; } case 32: { - SamplesPerChannel = input.ReadUInt32(); + SampleRate = input.ReadUInt32(); break; } } @@ -3569,24 +3876,31 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - DataPtr = input.ReadUInt64(); + ResamplerHandle = input.ReadUInt64(); break; } - case 16: { - NumChannels = input.ReadUInt32(); + case 18: { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.AudioFrameBufferInfo(); + } + input.ReadMessage(Buffer); break; } case 24: { - SampleRate = input.ReadUInt32(); + NumChannels = input.ReadUInt32(); break; } case 32: { - SamplesPerChannel = input.ReadUInt32(); + SampleRate = input.ReadUInt32(); break; } } @@ -3597,16 +3911,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class OwnedAudioFrameBuffer : pb::IMessage + public sealed partial class RemixAndResampleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemixAndResampleResponse()); 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)] @@ -3622,7 +3936,7 @@ public sealed partial class OwnedAudioFrameBuffer : pb::IMessageField number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } - set { - handle_ = value; - } + public RemixAndResampleResponse Clone() { + return new RemixAndResampleResponse(this); } - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.AudioFrameBufferInfo info_; + /// Field number for the "buffer" field. + public const int BufferFieldNumber = 1; + private global::LiveKit.Proto.OwnedAudioFrameBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioFrameBufferInfo Info { - get { return info_; } + public global::LiveKit.Proto.OwnedAudioFrameBuffer Buffer { + get { return buffer_; } set { - info_ = value; + buffer_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedAudioFrameBuffer); + return Equals(other as RemixAndResampleResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedAudioFrameBuffer other) { + public bool Equals(RemixAndResampleResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Info, other.Info)) return false; + if (!object.Equals(Buffer, other.Buffer)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3690,8 +3990,7 @@ public bool Equals(OwnedAudioFrameBuffer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); + if (buffer_ != null) hash ^= Buffer.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3710,13 +4009,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (buffer_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteMessage(Buffer); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3728,13 +4023,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 (buffer_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteMessage(Buffer); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3746,11 +4037,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (handle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); - } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + if (buffer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3760,21 +4048,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedAudioFrameBuffer other) { + public void MergeFrom(RemixAndResampleResponse 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(); + if (other.buffer_ != null) { + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } - Info.MergeFrom(other.Info); + Buffer.MergeFrom(other.Buffer); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3787,22 +4069,19 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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.AudioFrameBufferInfo(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } - input.ReadMessage(Info); + input.ReadMessage(Buffer); break; } } @@ -3816,22 +4095,19 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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.AudioFrameBufferInfo(); + if (buffer_ == null) { + Buffer = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); } - input.ReadMessage(Info); + input.ReadMessage(Buffer); break; } } @@ -3842,16 +4118,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioStreamInfo : pb::IMessage + public sealed partial class NewSoxResamplerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerRequest()); 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)] @@ -3867,7 +4144,7 @@ public sealed partial class AudioStreamInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo() { + public NewSoxResamplerRequest() { OnConstruction(); } @@ -3875,249 +4152,235 @@ public AudioStreamInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo(AudioStreamInfo other) : this() { - type_ = other.type_; + public NewSoxResamplerRequest(NewSoxResamplerRequest other) : this() { + _hasBits0 = other._hasBits0; + inputRate_ = other.inputRate_; + outputRate_ = other.outputRate_; + numChannels_ = other.numChannels_; + inputDataType_ = other.inputDataType_; + outputDataType_ = other.outputDataType_; + qualityRecipe_ = other.qualityRecipe_; + flags_ = other.flags_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamInfo Clone() { - return new AudioStreamInfo(this); + public NewSoxResamplerRequest Clone() { + return new NewSoxResamplerRequest(this); } - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.AudioStreamType type_ = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + /// Field number for the "input_rate" field. + public const int InputRateFieldNumber = 1; + private readonly static double InputRateDefaultValue = 0D; + + private double inputRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioStreamType Type { - get { return type_; } + public double InputRate { + get { if ((_hasBits0 & 1) != 0) { return inputRate_; } else { return InputRateDefaultValue; } } set { - type_ = value; + _hasBits0 |= 1; + inputRate_ = value; } } - + /// Gets whether the "input_rate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudioStreamInfo); + public bool HasInputRate { + get { return (_hasBits0 & 1) != 0; } } - + /// Clears the value of the "input_rate" field [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); + public void ClearInputRate() { + _hasBits0 &= ~1; } + /// Field number for the "output_rate" field. + public const int OutputRateFieldNumber = 2; + private readonly static double OutputRateDefaultValue = 0D; + + private double outputRate_; [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(); + public double OutputRate { + get { if ((_hasBits0 & 2) != 0) { return outputRate_; } else { return OutputRateDefaultValue; } } + set { + _hasBits0 |= 2; + outputRate_ = value; } - return hash; } - + /// Gets whether the "output_rate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); + public bool HasOutputRate { + get { return (_hasBits0 & 2) != 0; } } - + /// Clears the value of the "output_rate" field [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 + public void ClearOutputRate() { + _hasBits0 &= ~2; } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Field number for the "num_channels" field. + public const int NumChannelsFieldNumber = 3; + private readonly static uint NumChannelsDefaultValue = 0; + + private uint numChannels_; [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); + public uint NumChannels { + get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } + set { + _hasBits0 |= 4; + numChannels_ = value; } } - #endif - + /// Gets whether the "num_channels" field is set [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; + public bool HasNumChannels { + get { return (_hasBits0 & 4) != 0; } } - + /// Clears the value of the "num_channels" field [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); + public void ClearNumChannels() { + _hasBits0 &= ~4; } + /// Field number for the "input_data_type" field. + public const int InputDataTypeFieldNumber = 4; + private readonly static global::LiveKit.Proto.SoxResamplerDataType InputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I; + + private global::LiveKit.Proto.SoxResamplerDataType inputDataType_; [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; - } - } + public global::LiveKit.Proto.SoxResamplerDataType InputDataType { + get { if ((_hasBits0 & 8) != 0) { return inputDataType_; } else { return InputDataTypeDefaultValue; } } + set { + _hasBits0 |= 8; + inputDataType_ = value; } - #endif } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Gets whether the "input_data_type" field is set [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; - } - } - } + public bool HasInputDataType { + get { return (_hasBits0 & 8) != 0; } } - #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; + /// Clears the value of the "input_data_type" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public void ClearInputDataType() { + _hasBits0 &= ~8; + } + /// Field number for the "output_data_type" field. + public const int OutputDataTypeFieldNumber = 5; + private readonly static global::LiveKit.Proto.SoxResamplerDataType OutputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I; + + private global::LiveKit.Proto.SoxResamplerDataType outputDataType_; [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]; } + public global::LiveKit.Proto.SoxResamplerDataType OutputDataType { + get { if ((_hasBits0 & 16) != 0) { return outputDataType_; } else { return OutputDataTypeDefaultValue; } } + set { + _hasBits0 |= 16; + outputDataType_ = value; + } } - + /// Gets whether the "output_data_type" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } + public bool HasOutputDataType { + get { return (_hasBits0 & 16) != 0; } } - + /// Clears the value of the "output_data_type" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedAudioStream() { - OnConstruction(); + public void ClearOutputDataType() { + _hasBits0 &= ~16; } - partial void OnConstruction(); + /// Field number for the "quality_recipe" field. + public const int QualityRecipeFieldNumber = 6; + private readonly static global::LiveKit.Proto.SoxQualityRecipe QualityRecipeDefaultValue = global::LiveKit.Proto.SoxQualityRecipe.SoxrQualityQuick; + private global::LiveKit.Proto.SoxQualityRecipe qualityRecipe_; [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); + public global::LiveKit.Proto.SoxQualityRecipe QualityRecipe { + get { if ((_hasBits0 & 32) != 0) { return qualityRecipe_; } else { return QualityRecipeDefaultValue; } } + set { + _hasBits0 |= 32; + qualityRecipe_ = value; + } } - + /// Gets whether the "quality_recipe" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedAudioStream Clone() { - return new OwnedAudioStream(this); + public bool HasQualityRecipe { + get { return (_hasBits0 & 32) != 0; } } - - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; + /// Clears the value of the "quality_recipe" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } - set { - handle_ = value; - } + public void ClearQualityRecipe() { + _hasBits0 &= ~32; } - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.AudioStreamInfo info_; + /// Field number for the "flags" field. + public const int FlagsFieldNumber = 7; + private readonly static uint FlagsDefaultValue = 0; + + private uint flags_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioStreamInfo Info { - get { return info_; } + public uint Flags { + get { if ((_hasBits0 & 64) != 0) { return flags_; } else { return FlagsDefaultValue; } } set { - info_ = value; + _hasBits0 |= 64; + flags_ = value; } } + /// Gets whether the "flags" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlags { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "flags" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlags() { + _hasBits0 &= ~64; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedAudioStream); + return Equals(other as NewSoxResamplerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedAudioStream other) { + public bool Equals(NewSoxResamplerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Info, other.Info)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InputRate, other.InputRate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputRate, other.OutputRate)) return false; + if (NumChannels != other.NumChannels) return false; + if (InputDataType != other.InputDataType) return false; + if (OutputDataType != other.OutputDataType) return false; + if (QualityRecipe != other.QualityRecipe) return false; + if (Flags != other.Flags) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4125,8 +4388,13 @@ public bool Equals(OwnedAudioStream other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); + if (HasInputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InputRate); + if (HasOutputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputRate); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); + if (HasInputDataType) hash ^= InputDataType.GetHashCode(); + if (HasOutputDataType) hash ^= OutputDataType.GetHashCode(); + if (HasQualityRecipe) hash ^= QualityRecipe.GetHashCode(); + if (HasFlags) hash ^= Flags.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4145,13 +4413,33 @@ 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 (HasInputRate) { + output.WriteRawTag(9); + output.WriteDouble(InputRate); } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + if (HasOutputRate) { + output.WriteRawTag(17); + output.WriteDouble(OutputRate); + } + if (HasNumChannels) { + output.WriteRawTag(24); + output.WriteUInt32(NumChannels); + } + if (HasInputDataType) { + output.WriteRawTag(32); + output.WriteEnum((int) InputDataType); + } + if (HasOutputDataType) { + output.WriteRawTag(40); + output.WriteEnum((int) OutputDataType); + } + if (HasQualityRecipe) { + output.WriteRawTag(48); + output.WriteEnum((int) QualityRecipe); + } + if (HasFlags) { + output.WriteRawTag(56); + output.WriteUInt32(Flags); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4163,13 +4451,33 @@ 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 (HasInputRate) { + output.WriteRawTag(9); + output.WriteDouble(InputRate); } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + if (HasOutputRate) { + output.WriteRawTag(17); + output.WriteDouble(OutputRate); + } + if (HasNumChannels) { + output.WriteRawTag(24); + output.WriteUInt32(NumChannels); + } + if (HasInputDataType) { + output.WriteRawTag(32); + output.WriteEnum((int) InputDataType); + } + if (HasOutputDataType) { + output.WriteRawTag(40); + output.WriteEnum((int) OutputDataType); + } + if (HasQualityRecipe) { + output.WriteRawTag(48); + output.WriteEnum((int) QualityRecipe); + } + if (HasFlags) { + output.WriteRawTag(56); + output.WriteUInt32(Flags); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4181,11 +4489,26 @@ 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 (HasInputRate) { + size += 1 + 8; } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + if (HasOutputRate) { + size += 1 + 8; + } + if (HasNumChannels) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); + } + if (HasInputDataType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputDataType); + } + if (HasOutputDataType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputDataType); + } + if (HasQualityRecipe) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityRecipe); + } + if (HasFlags) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flags); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4195,21 +4518,30 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedAudioStream other) { + public void MergeFrom(NewSoxResamplerRequest other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - Handle.MergeFrom(other.Handle); + if (other.HasInputRate) { + InputRate = other.InputRate; } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.AudioStreamInfo(); - } - Info.MergeFrom(other.Info); + if (other.HasOutputRate) { + OutputRate = other.OutputRate; + } + if (other.HasNumChannels) { + NumChannels = other.NumChannels; + } + if (other.HasInputDataType) { + InputDataType = other.InputDataType; + } + if (other.HasOutputDataType) { + OutputDataType = other.OutputDataType; + } + if (other.HasQualityRecipe) { + QualityRecipe = other.QualityRecipe; + } + if (other.HasFlags) { + Flags = other.Flags; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4222,22 +4554,40 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - input.ReadMessage(Handle); + case 9: { + InputRate = input.ReadDouble(); break; } - case 18: { - if (info_ == null) { - Info = new global::LiveKit.Proto.AudioStreamInfo(); - } - input.ReadMessage(Info); + case 17: { + OutputRate = input.ReadDouble(); + break; + } + case 24: { + NumChannels = input.ReadUInt32(); + break; + } + case 32: { + InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum(); + break; + } + case 40: { + OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum(); + break; + } + case 48: { + QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum(); + break; + } + case 56: { + Flags = input.ReadUInt32(); break; } } @@ -4251,22 +4601,40 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + case 9: { + InputRate = input.ReadDouble(); break; } - case 18: { - if (info_ == null) { - Info = new global::LiveKit.Proto.AudioStreamInfo(); - } - input.ReadMessage(Info); + case 17: { + OutputRate = input.ReadDouble(); + break; + } + case 24: { + NumChannels = input.ReadUInt32(); + break; + } + case 32: { + InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum(); + break; + } + case 40: { + OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum(); + break; + } + case 48: { + QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum(); + break; + } + case 56: { + Flags = input.ReadUInt32(); break; } } @@ -4277,21 +4645,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioStreamEvent : pb::IMessage + public sealed partial class NewSoxResamplerResponse : 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 NewSoxResamplerResponse()); 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[17]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4302,7 +4670,7 @@ public sealed partial class AudioStreamEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEvent() { + public NewSoxResamplerResponse() { OnConstruction(); } @@ -4310,14 +4678,13 @@ public AudioStreamEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEvent(AudioStreamEvent other) : this() { - streamHandle_ = other.streamHandle_; + public NewSoxResamplerResponse(NewSoxResamplerResponse other) : this() { switch (other.MessageCase) { - case MessageOneofCase.FrameReceived: - FrameReceived = other.FrameReceived.Clone(); + case MessageOneofCase.Resampler: + Resampler = other.Resampler.Clone(); break; - case MessageOneofCase.Eos: - Eos = other.Eos.Clone(); + case MessageOneofCase.Error: + Error = other.Error; break; } @@ -4326,43 +4693,45 @@ public AudioStreamEvent(AudioStreamEvent other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEvent Clone() { - return new AudioStreamEvent(this); + public NewSoxResamplerResponse Clone() { + return new NewSoxResamplerResponse(this); } - /// Field number for the "stream_handle" field. - public const int StreamHandleFieldNumber = 1; - private ulong streamHandle_; + /// Field number for the "resampler" field. + public const int ResamplerFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong StreamHandle { - get { return streamHandle_; } + public global::LiveKit.Proto.OwnedSoxResampler Resampler { + get { return messageCase_ == MessageOneofCase.Resampler ? (global::LiveKit.Proto.OwnedSoxResampler) message_ : null; } set { - streamHandle_ = value; + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Resampler; } } - /// Field number for the "frame_received" field. - public const int FrameReceivedFieldNumber = 2; + /// Field number for the "error" field. + public const int ErrorFieldNumber = 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; } + public string Error { + get { return HasError ? (string) message_ : ""; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived; + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; } } - - /// Field number for the "eos" field. - public const int EosFieldNumber = 3; + /// Gets whether the "error" field is set [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; + public bool HasError { + get { return messageCase_ == MessageOneofCase.Error; } + } + /// Clears the value of the oneof if it's currently set to "error" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + if (HasError) { + ClearMessage(); } } @@ -4370,8 +4739,8 @@ public ulong StreamHandle { /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { None = 0, - FrameReceived = 2, - Eos = 3, + Resampler = 1, + Error = 2, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4390,21 +4759,20 @@ public void ClearMessage() { [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 NewSoxResamplerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioStreamEvent other) { + public bool Equals(NewSoxResamplerResponse 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 (!object.Equals(Resampler, other.Resampler)) return false; + if (Error != other.Error) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4413,9 +4781,8 @@ public bool Equals(AudioStreamEvent other) { [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(); + if (messageCase_ == MessageOneofCase.Resampler) hash ^= Resampler.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4435,17 +4802,13 @@ 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.Resampler) { + output.WriteRawTag(10); + output.WriteMessage(Resampler); } - if (messageCase_ == MessageOneofCase.FrameReceived) { + if (HasError) { output.WriteRawTag(18); - output.WriteMessage(FrameReceived); - } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(26); - output.WriteMessage(Eos); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4457,17 +4820,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 (StreamHandle != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(StreamHandle); + if (messageCase_ == MessageOneofCase.Resampler) { + output.WriteRawTag(10); + output.WriteMessage(Resampler); } - if (messageCase_ == MessageOneofCase.FrameReceived) { + if (HasError) { output.WriteRawTag(18); - output.WriteMessage(FrameReceived); - } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(26); - output.WriteMessage(Eos); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4479,14 +4838,11 @@ public void WriteTo(pb::CodedOutputStream output) { [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.Resampler) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler); } - if (messageCase_ == MessageOneofCase.Eos) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos); + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4496,25 +4852,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioStreamEvent other) { + public void MergeFrom(NewSoxResamplerResponse 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(); + case MessageOneofCase.Resampler: + if (Resampler == null) { + Resampler = new global::LiveKit.Proto.OwnedSoxResampler(); } - FrameReceived.MergeFrom(other.FrameReceived); + Resampler.MergeFrom(other.Resampler); break; - case MessageOneofCase.Eos: - if (Eos == null) { - Eos = new global::LiveKit.Proto.AudioStreamEOS(); - } - Eos.MergeFrom(other.Eos); + case MessageOneofCase.Error: + Error = other.Error; break; } @@ -4529,30 +4879,25 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + case 10: { + global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler(); + if (messageCase_ == MessageOneofCase.Resampler) { + subBuilder.MergeFrom(Resampler); } input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + Resampler = 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; + case 18: { + Error = input.ReadString(); break; } } @@ -4566,30 +4911,25 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + case 10: { + global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler(); + if (messageCase_ == MessageOneofCase.Resampler) { + subBuilder.MergeFrom(Resampler); } input.ReadMessage(subBuilder); - FrameReceived = subBuilder; + Resampler = 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; + case 18: { + Error = input.ReadString(); break; } } @@ -4600,21 +4940,3021 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioFrameReceived : pb::IMessage + public sealed partial class PushSoxResamplerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 PushSoxResamplerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PushSoxResamplerRequest(PushSoxResamplerRequest other) : this() { + _hasBits0 = other._hasBits0; + resamplerHandle_ = other.resamplerHandle_; + dataPtr_ = other.dataPtr_; + size_ = other.size_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PushSoxResamplerRequest Clone() { + return new PushSoxResamplerRequest(this); + } + + /// Field number for the "resampler_handle" field. + public const int ResamplerHandleFieldNumber = 1; + private readonly static ulong ResamplerHandleDefaultValue = 0UL; + + private ulong resamplerHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ResamplerHandle { + get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } } + set { + _hasBits0 |= 1; + resamplerHandle_ = value; + } + } + /// Gets whether the "resampler_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResamplerHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "resampler_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResamplerHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "data_ptr" field. + public const int DataPtrFieldNumber = 2; + private readonly static ulong DataPtrDefaultValue = 0UL; + + private ulong dataPtr_; + /// + /// *const i16 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataPtr { + get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } + set { + _hasBits0 |= 2; + dataPtr_ = value; + } + } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~2; + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 3; + private readonly static uint SizeDefaultValue = 0; + + private uint size_; + /// + /// in bytes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Size { + get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } } + set { + _hasBits0 |= 4; + size_ = value; + } + } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSize { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSize() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PushSoxResamplerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PushSoxResamplerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResamplerHandle != other.ResamplerHandle) return false; + if (DataPtr != other.DataPtr) return false; + if (Size != other.Size) 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 (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode(); + if (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasSize) hash ^= Size.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 (HasResamplerHandle) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); + } + if (HasDataPtr) { + output.WriteRawTag(16); + output.WriteUInt64(DataPtr); + } + if (HasSize) { + output.WriteRawTag(24); + output.WriteUInt32(Size); + } + 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 (HasResamplerHandle) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); + } + if (HasDataPtr) { + output.WriteRawTag(16); + output.WriteUInt64(DataPtr); + } + if (HasSize) { + output.WriteRawTag(24); + output.WriteUInt32(Size); + } + 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 (HasResamplerHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle); + } + if (HasDataPtr) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + } + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PushSoxResamplerRequest other) { + if (other == null) { + return; + } + if (other.HasResamplerHandle) { + ResamplerHandle = other.ResamplerHandle; + } + if (other.HasDataPtr) { + DataPtr = other.DataPtr; + } + if (other.HasSize) { + Size = other.Size; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ResamplerHandle = input.ReadUInt64(); + break; + } + case 16: { + DataPtr = input.ReadUInt64(); + break; + } + case 24: { + Size = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ResamplerHandle = input.ReadUInt64(); + break; + } + case 16: { + DataPtr = input.ReadUInt64(); + break; + } + case 24: { + Size = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PushSoxResamplerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 PushSoxResamplerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PushSoxResamplerResponse(PushSoxResamplerResponse other) : this() { + _hasBits0 = other._hasBits0; + outputPtr_ = other.outputPtr_; + size_ = other.size_; + error_ = other.error_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PushSoxResamplerResponse Clone() { + return new PushSoxResamplerResponse(this); + } + + /// Field number for the "output_ptr" field. + public const int OutputPtrFieldNumber = 1; + private readonly static ulong OutputPtrDefaultValue = 0UL; + + private ulong outputPtr_; + /// + /// *const i16 (could be null) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong OutputPtr { + get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } } + set { + _hasBits0 |= 1; + outputPtr_ = value; + } + } + /// Gets whether the "output_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOutputPtr { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "output_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOutputPtr() { + _hasBits0 &= ~1; + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 2; + private readonly static uint SizeDefaultValue = 0; + + private uint size_; + /// + /// in bytes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Size { + get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } } + set { + _hasBits0 |= 2; + size_ = value; + } + } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSize { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSize() { + _hasBits0 &= ~2; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + 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 PushSoxResamplerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PushSoxResamplerResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OutputPtr != other.OutputPtr) return false; + if (Size != other.Size) return false; + if (Error != other.Error) 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 (HasOutputPtr) hash ^= OutputPtr.GetHashCode(); + if (HasSize) hash ^= Size.GetHashCode(); + if (HasError) hash ^= Error.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 (HasOutputPtr) { + output.WriteRawTag(8); + output.WriteUInt64(OutputPtr); + } + if (HasSize) { + output.WriteRawTag(16); + output.WriteUInt32(Size); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); + } + 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 (HasOutputPtr) { + output.WriteRawTag(8); + output.WriteUInt64(OutputPtr); + } + if (HasSize) { + output.WriteRawTag(16); + output.WriteUInt32(Size); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); + } + 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 (HasOutputPtr) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr); + } + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); + } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PushSoxResamplerResponse other) { + if (other == null) { + return; + } + if (other.HasOutputPtr) { + OutputPtr = other.OutputPtr; + } + if (other.HasSize) { + Size = other.Size; + } + if (other.HasError) { + Error = other.Error; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + OutputPtr = input.ReadUInt64(); + break; + } + case 16: { + Size = input.ReadUInt32(); + break; + } + case 26: { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OutputPtr = input.ReadUInt64(); + break; + } + case 16: { + Size = input.ReadUInt32(); + break; + } + case 26: { + Error = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FlushSoxResamplerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 FlushSoxResamplerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushSoxResamplerRequest(FlushSoxResamplerRequest other) : this() { + _hasBits0 = other._hasBits0; + resamplerHandle_ = other.resamplerHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushSoxResamplerRequest Clone() { + return new FlushSoxResamplerRequest(this); + } + + /// Field number for the "resampler_handle" field. + public const int ResamplerHandleFieldNumber = 1; + private readonly static ulong ResamplerHandleDefaultValue = 0UL; + + private ulong resamplerHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong ResamplerHandle { + get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } } + set { + _hasBits0 |= 1; + resamplerHandle_ = value; + } + } + /// Gets whether the "resampler_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResamplerHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "resampler_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResamplerHandle() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FlushSoxResamplerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushSoxResamplerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResamplerHandle != other.ResamplerHandle) 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 (HasResamplerHandle) hash ^= ResamplerHandle.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 (HasResamplerHandle) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); + } + 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 (HasResamplerHandle) { + output.WriteRawTag(8); + output.WriteUInt64(ResamplerHandle); + } + 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 (HasResamplerHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushSoxResamplerRequest other) { + if (other == null) { + return; + } + if (other.HasResamplerHandle) { + ResamplerHandle = other.ResamplerHandle; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + ResamplerHandle = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ResamplerHandle = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class FlushSoxResamplerResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 FlushSoxResamplerResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushSoxResamplerResponse(FlushSoxResamplerResponse other) : this() { + _hasBits0 = other._hasBits0; + outputPtr_ = other.outputPtr_; + size_ = other.size_; + error_ = other.error_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FlushSoxResamplerResponse Clone() { + return new FlushSoxResamplerResponse(this); + } + + /// Field number for the "output_ptr" field. + public const int OutputPtrFieldNumber = 1; + private readonly static ulong OutputPtrDefaultValue = 0UL; + + private ulong outputPtr_; + /// + /// *const i16 (could be null) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong OutputPtr { + get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } } + set { + _hasBits0 |= 1; + outputPtr_ = value; + } + } + /// Gets whether the "output_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOutputPtr { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "output_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOutputPtr() { + _hasBits0 &= ~1; + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 2; + private readonly static uint SizeDefaultValue = 0; + + private uint size_; + /// + /// in bytes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Size { + get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } } + set { + _hasBits0 |= 2; + size_ = value; + } + } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSize { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSize() { + _hasBits0 &= ~2; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + 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 FlushSoxResamplerResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FlushSoxResamplerResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OutputPtr != other.OutputPtr) return false; + if (Size != other.Size) return false; + if (Error != other.Error) 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 (HasOutputPtr) hash ^= OutputPtr.GetHashCode(); + if (HasSize) hash ^= Size.GetHashCode(); + if (HasError) hash ^= Error.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 (HasOutputPtr) { + output.WriteRawTag(8); + output.WriteUInt64(OutputPtr); + } + if (HasSize) { + output.WriteRawTag(16); + output.WriteUInt32(Size); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); + } + 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 (HasOutputPtr) { + output.WriteRawTag(8); + output.WriteUInt64(OutputPtr); + } + if (HasSize) { + output.WriteRawTag(16); + output.WriteUInt32(Size); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); + } + 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 (HasOutputPtr) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr); + } + if (HasSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); + } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FlushSoxResamplerResponse other) { + if (other == null) { + return; + } + if (other.HasOutputPtr) { + OutputPtr = other.OutputPtr; + } + if (other.HasSize) { + Size = other.Size; + } + if (other.HasError) { + Error = other.Error; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + OutputPtr = input.ReadUInt64(); + break; + } + case 16: { + Size = input.ReadUInt32(); + break; + } + case 26: { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OutputPtr = input.ReadUInt64(); + break; + } + case 16: { + Size = input.ReadUInt32(); + break; + } + case 26: { + Error = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioFrameBufferInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 AudioFrameBufferInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioFrameBufferInfo(AudioFrameBufferInfo other) : this() { + _hasBits0 = other._hasBits0; + dataPtr_ = other.dataPtr_; + numChannels_ = other.numChannels_; + sampleRate_ = other.sampleRate_; + samplesPerChannel_ = other.samplesPerChannel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioFrameBufferInfo Clone() { + return new AudioFrameBufferInfo(this); + } + + /// Field number for the "data_ptr" field. + public const int DataPtrFieldNumber = 1; + private readonly static ulong DataPtrDefaultValue = 0UL; + + private ulong dataPtr_; + /// + /// *const i16 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataPtr { + get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } + set { + _hasBits0 |= 1; + dataPtr_ = value; + } + } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~1; + } + + /// Field number for the "num_channels" field. + public const int NumChannelsFieldNumber = 2; + private readonly static uint NumChannelsDefaultValue = 0; + + private uint numChannels_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint NumChannels { + get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } } + set { + _hasBits0 |= 2; + numChannels_ = value; + } + } + /// Gets whether the "num_channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNumChannels { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "num_channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNumChannels() { + _hasBits0 &= ~2; + } + + /// Field number for the "sample_rate" field. + public const int SampleRateFieldNumber = 3; + private readonly static uint SampleRateDefaultValue = 0; + + private uint sampleRate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SampleRate { + get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } } + set { + _hasBits0 |= 4; + sampleRate_ = value; + } + } + /// Gets whether the "sample_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSampleRate { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "sample_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleRate() { + _hasBits0 &= ~4; + } + + /// Field number for the "samples_per_channel" field. + public const int SamplesPerChannelFieldNumber = 4; + private readonly static uint SamplesPerChannelDefaultValue = 0; + + private uint samplesPerChannel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SamplesPerChannel { + get { if ((_hasBits0 & 8) != 0) { return samplesPerChannel_; } else { return SamplesPerChannelDefaultValue; } } + set { + _hasBits0 |= 8; + samplesPerChannel_ = value; + } + } + /// Gets whether the "samples_per_channel" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSamplesPerChannel { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "samples_per_channel" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSamplesPerChannel() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AudioFrameBufferInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AudioFrameBufferInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DataPtr != other.DataPtr) return false; + if (NumChannels != other.NumChannels) return false; + if (SampleRate != other.SampleRate) return false; + if (SamplesPerChannel != other.SamplesPerChannel) 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 (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasNumChannels) hash ^= NumChannels.GetHashCode(); + if (HasSampleRate) hash ^= SampleRate.GetHashCode(); + if (HasSamplesPerChannel) hash ^= SamplesPerChannel.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 (HasDataPtr) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (HasNumChannels) { + output.WriteRawTag(16); + output.WriteUInt32(NumChannels); + } + if (HasSampleRate) { + output.WriteRawTag(24); + output.WriteUInt32(SampleRate); + } + if (HasSamplesPerChannel) { + output.WriteRawTag(32); + output.WriteUInt32(SamplesPerChannel); + } + 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 (HasDataPtr) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (HasNumChannels) { + output.WriteRawTag(16); + output.WriteUInt32(NumChannels); + } + if (HasSampleRate) { + output.WriteRawTag(24); + output.WriteUInt32(SampleRate); + } + if (HasSamplesPerChannel) { + output.WriteRawTag(32); + output.WriteUInt32(SamplesPerChannel); + } + 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 (HasDataPtr) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + } + if (HasNumChannels) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels); + } + if (HasSampleRate) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate); + } + if (HasSamplesPerChannel) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AudioFrameBufferInfo other) { + if (other == null) { + return; + } + if (other.HasDataPtr) { + DataPtr = other.DataPtr; + } + if (other.HasNumChannels) { + NumChannels = other.NumChannels; + } + if (other.HasSampleRate) { + SampleRate = other.SampleRate; + } + if (other.HasSamplesPerChannel) { + SamplesPerChannel = other.SamplesPerChannel; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + DataPtr = input.ReadUInt64(); + break; + } + case 16: { + NumChannels = input.ReadUInt32(); + break; + } + case 24: { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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 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[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 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.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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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.AudioFrameBufferInfo(); + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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.AudioFrameBufferInfo(); + } + input.ReadMessage(Info); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AudioStreamInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 AudioStreamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamInfo(AudioStreamInfo other) : this() { + _hasBits0 = other._hasBits0; + 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 readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative; + + private global::LiveKit.Proto.AudioStreamType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioStreamType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + [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 (HasType) 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 (HasType) { + 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 (HasType) { + 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 (HasType) { + 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.HasType) { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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[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 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[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 AudioStreamEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AudioStreamEvent(AudioStreamEvent other) : this() { + _hasBits0 = other._hasBits0; + 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 readonly static ulong StreamHandleDefaultValue = 0UL; + + private ulong streamHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong StreamHandle { + get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } } + set { + _hasBits0 |= 1; + streamHandle_ = value; + } + } + /// Gets whether the "stream_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStreamHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStreamHandle() { + _hasBits0 &= ~1; + } + + /// 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 (HasStreamHandle) 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 (HasStreamHandle) { + 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 (HasStreamHandle) { + 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 (HasStreamHandle) { + 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.HasStreamHandle) { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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[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 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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[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 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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 AudioFrameReceived()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[18]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4625,7 +7965,7 @@ public sealed partial class AudioFrameReceived : pb::IMessageField number for the "frame" field. - public const int FrameFieldNumber = 1; - private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_; + /// Field number for the "echo_cancellation" field. + public const int EchoCancellationFieldNumber = 1; + private readonly static bool EchoCancellationDefaultValue = false; + + private bool echoCancellation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame { - get { return frame_; } + public bool EchoCancellation { + get { if ((_hasBits0 & 1) != 0) { return echoCancellation_; } else { return EchoCancellationDefaultValue; } } set { - frame_ = value; + _hasBits0 |= 1; + echoCancellation_ = value; + } + } + /// Gets whether the "echo_cancellation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEchoCancellation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "echo_cancellation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEchoCancellation() { + _hasBits0 &= ~1; + } + + /// Field number for the "noise_suppression" field. + public const int NoiseSuppressionFieldNumber = 2; + private readonly static bool NoiseSuppressionDefaultValue = false; + + private bool noiseSuppression_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool NoiseSuppression { + get { if ((_hasBits0 & 2) != 0) { return noiseSuppression_; } else { return NoiseSuppressionDefaultValue; } } + set { + _hasBits0 |= 2; + noiseSuppression_ = value; + } + } + /// Gets whether the "noise_suppression" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNoiseSuppression { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "noise_suppression" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNoiseSuppression() { + _hasBits0 &= ~2; + } + + /// Field number for the "auto_gain_control" field. + public const int AutoGainControlFieldNumber = 3; + private readonly static bool AutoGainControlDefaultValue = false; + + private bool autoGainControl_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoGainControl { + get { if ((_hasBits0 & 4) != 0) { return autoGainControl_; } else { return AutoGainControlDefaultValue; } } + set { + _hasBits0 |= 4; + autoGainControl_ = value; } } + /// Gets whether the "auto_gain_control" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAutoGainControl { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "auto_gain_control" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutoGainControl() { + _hasBits0 &= ~4; + } [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 AudioSourceOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioFrameReceived other) { + public bool Equals(AudioSourceOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Frame, other.Frame)) return false; + if (EchoCancellation != other.EchoCancellation) return false; + if (NoiseSuppression != other.NoiseSuppression) return false; + if (AutoGainControl != other.AutoGainControl) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4679,7 +8093,9 @@ 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 (HasEchoCancellation) hash ^= EchoCancellation.GetHashCode(); + if (HasNoiseSuppression) hash ^= NoiseSuppression.GetHashCode(); + if (HasAutoGainControl) hash ^= AutoGainControl.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4698,9 +8114,17 @@ 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 (HasEchoCancellation) { + output.WriteRawTag(8); + output.WriteBool(EchoCancellation); + } + if (HasNoiseSuppression) { + output.WriteRawTag(16); + output.WriteBool(NoiseSuppression); + } + if (HasAutoGainControl) { + output.WriteRawTag(24); + output.WriteBool(AutoGainControl); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4712,9 +8136,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (frame_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Frame); + if (HasEchoCancellation) { + output.WriteRawTag(8); + output.WriteBool(EchoCancellation); + } + if (HasNoiseSuppression) { + output.WriteRawTag(16); + output.WriteBool(NoiseSuppression); + } + if (HasAutoGainControl) { + output.WriteRawTag(24); + output.WriteBool(AutoGainControl); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4726,8 +8158,14 @@ 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 (HasEchoCancellation) { + size += 1 + 1; + } + if (HasNoiseSuppression) { + size += 1 + 1; + } + if (HasAutoGainControl) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4737,15 +8175,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioFrameReceived other) { + public void MergeFrom(AudioSourceOptions other) { if (other == null) { return; } - if (other.frame_ != null) { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); - } - Frame.MergeFrom(other.Frame); + if (other.HasEchoCancellation) { + EchoCancellation = other.EchoCancellation; + } + if (other.HasNoiseSuppression) { + NoiseSuppression = other.NoiseSuppression; + } + if (other.HasAutoGainControl) { + AutoGainControl = other.AutoGainControl; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4758,15 +8199,24 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (frame_ == null) { - Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer(); - } - input.ReadMessage(Frame); + case 8: { + EchoCancellation = input.ReadBool(); + break; + } + case 16: { + NoiseSuppression = input.ReadBool(); + break; + } + case 24: { + AutoGainControl = input.ReadBool(); break; } } @@ -4780,15 +8230,24 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + case 8: { + EchoCancellation = input.ReadBool(); + break; + } + case 16: { + NoiseSuppression = input.ReadBool(); + break; + } + case 24: { + AutoGainControl = input.ReadBool(); break; } } @@ -4799,21 +8258,22 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioStreamEOS : pb::IMessage + 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 AudioStreamEOS()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[19]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4824,7 +8284,7 @@ public sealed partial class AudioStreamEOS : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEOS() { + public AudioSourceInfo() { OnConstruction(); } @@ -4832,31 +8292,61 @@ public AudioStreamEOS() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEOS(AudioStreamEOS other) : this() { + public AudioSourceInfo(AudioSourceInfo other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioStreamEOS Clone() { - return new AudioStreamEOS(this); + public AudioSourceInfo Clone() { + return new AudioSourceInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative; + + private global::LiveKit.Proto.AudioSourceType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.AudioSourceType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioStreamEOS); + return Equals(other as AudioSourceInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioStreamEOS other) { + public bool Equals(AudioSourceInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (Type != other.Type) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4864,6 +8354,7 @@ public bool Equals(AudioStreamEOS other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4882,6 +8373,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4892,6 +8387,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 (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4902,6 +8401,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4910,10 +8412,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioStreamEOS other) { + public void MergeFrom(AudioSourceInfo other) { if (other == null) { return; } + if (other.HasType) { + Type = other.Type; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4925,10 +8430,18 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 16: { + Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); + break; + } } } #endif @@ -4940,10 +8453,18 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 16: { + Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); + break; + } } } } @@ -4952,21 +8473,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioSourceOptions : pb::IMessage + 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 AudioSourceOptions()); + 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[20]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4977,7 +8498,7 @@ public sealed partial class AudioSourceOptions : 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; - } + public OwnedAudioSource Clone() { + return new OwnedAudioSource(this); } - /// Field number for the "noise_suppression" field. - public const int NoiseSuppressionFieldNumber = 2; - private bool noiseSuppression_; + /// 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 bool NoiseSuppression { - get { return noiseSuppression_; } + public global::LiveKit.Proto.FfiOwnedHandle Handle { + get { return handle_; } set { - noiseSuppression_ = value; + handle_ = value; } } - /// Field number for the "auto_gain_control" field. - public const int AutoGainControlFieldNumber = 3; - private bool autoGainControl_; + /// 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 bool AutoGainControl { - get { return autoGainControl_; } + public global::LiveKit.Proto.AudioSourceInfo Info { + get { return info_; } set { - autoGainControl_ = value; + info_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioSourceOptions); + return Equals(other as OwnedAudioSource); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioSourceOptions other) { + public bool Equals(OwnedAudioSource 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(Handle, other.Handle)) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5059,9 +8566,8 @@ public bool Equals(AudioSourceOptions 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 (handle_ != null) hash ^= Handle.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5080,17 +8586,13 @@ 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 (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); } - if (AutoGainControl != false) { - output.WriteRawTag(24); - output.WriteBool(AutoGainControl); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5102,17 +8604,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 (EchoCancellation != false) { - output.WriteRawTag(8); - output.WriteBool(EchoCancellation); - } - if (NoiseSuppression != false) { - output.WriteRawTag(16); - output.WriteBool(NoiseSuppression); + if (handle_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Handle); } - if (AutoGainControl != false) { - output.WriteRawTag(24); - output.WriteBool(AutoGainControl); + if (info_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5124,14 +8622,11 @@ 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 (handle_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); } - if (AutoGainControl != false) { - size += 1 + 1; + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5141,18 +8636,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioSourceOptions other) { + public void MergeFrom(OwnedAudioSource other) { if (other == null) { return; } - if (other.EchoCancellation != false) { - EchoCancellation = other.EchoCancellation; - } - if (other.NoiseSuppression != false) { - NoiseSuppression = other.NoiseSuppression; + if (other.handle_ != null) { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + Handle.MergeFrom(other.Handle); } - if (other.AutoGainControl != false) { - AutoGainControl = other.AutoGainControl; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); + } + Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5165,20 +8663,26 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - EchoCancellation = input.ReadBool(); - break; - } - case 16: { - NoiseSuppression = input.ReadBool(); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); break; } - case 24: { - AutoGainControl = input.ReadBool(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); + } + input.ReadMessage(Info); break; } } @@ -5192,20 +8696,26 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - EchoCancellation = input.ReadBool(); - break; - } - case 16: { - NoiseSuppression = input.ReadBool(); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + input.ReadMessage(Handle); break; } - case 24: { - AutoGainControl = input.ReadBool(); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.AudioSourceInfo(); + } + input.ReadMessage(Info); break; } } @@ -5216,21 +8726,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioSourceInfo : pb::IMessage + 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 AudioSourceInfo()); + 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[21]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5241,7 +8751,7 @@ public sealed partial class AudioSourceInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSourceInfo() { + public AudioResamplerInfo() { OnConstruction(); } @@ -5249,45 +8759,31 @@ public AudioSourceInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSourceInfo(AudioSourceInfo other) : this() { - type_ = other.type_; + public AudioResamplerInfo(AudioResamplerInfo other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSourceInfo Clone() { - return new AudioSourceInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - 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.AudioSourceType Type { - get { return type_; } - set { - type_ = 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 AudioSourceInfo); + return Equals(other as AudioResamplerInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioSourceInfo other) { + public bool Equals(AudioResamplerInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Type != other.Type) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5295,7 +8791,6 @@ public bool Equals(AudioSourceInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5314,10 +8809,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5328,10 +8819,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 (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5342,9 +8829,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5353,13 +8837,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioSourceInfo other) { + public void MergeFrom(AudioResamplerInfo other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.AudioSourceType.AudioSourceNative) { - Type = other.Type; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5371,14 +8852,14 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 16: { - Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); - break; - } } } #endif @@ -5390,14 +8871,14 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 16: { - Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum(); - break; - } } } } @@ -5406,21 +8887,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class OwnedAudioSource : pb::IMessage + 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 OwnedAudioSource()); + 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[22]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5431,7 +8912,7 @@ public sealed partial class OwnedAudioSource : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedAudioSource() { + public OwnedAudioResampler() { OnConstruction(); } @@ -5439,7 +8920,7 @@ public OwnedAudioSource() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedAudioSource(OwnedAudioSource other) : this() { + public OwnedAudioResampler(OwnedAudioResampler other) : this() { handle_ = other.handle_ != null ? other.handle_.Clone() : null; info_ = other.info_ != null ? other.info_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5447,8 +8928,8 @@ public OwnedAudioSource(OwnedAudioSource other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedAudioSource Clone() { - return new OwnedAudioSource(this); + public OwnedAudioResampler Clone() { + return new OwnedAudioResampler(this); } /// Field number for the "handle" field. @@ -5465,10 +8946,10 @@ public OwnedAudioSource Clone() { /// Field number for the "info" field. public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.AudioSourceInfo info_; + private global::LiveKit.Proto.AudioResamplerInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioSourceInfo Info { + public global::LiveKit.Proto.AudioResamplerInfo Info { get { return info_; } set { info_ = value; @@ -5478,12 +8959,12 @@ public OwnedAudioSource Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedAudioSource); + return Equals(other as OwnedAudioResampler); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedAudioSource other) { + public bool Equals(OwnedAudioResampler other) { if (ReferenceEquals(other, null)) { return false; } @@ -5569,7 +9050,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedAudioSource other) { + public void MergeFrom(OwnedAudioResampler other) { if (other == null) { return; } @@ -5581,7 +9062,7 @@ public void MergeFrom(OwnedAudioSource other) { } if (other.info_ != null) { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioSourceInfo(); + Info = new global::LiveKit.Proto.AudioResamplerInfo(); } Info.MergeFrom(other.Info); } @@ -5596,7 +9077,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5609,7 +9094,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioSourceInfo(); + Info = new global::LiveKit.Proto.AudioResamplerInfo(); } input.ReadMessage(Info); break; @@ -5625,7 +9110,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5638,7 +9127,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioSourceInfo(); + Info = new global::LiveKit.Proto.AudioResamplerInfo(); } input.ReadMessage(Info); break; @@ -5651,21 +9140,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioResamplerInfo : pb::IMessage + public sealed partial class SoxResamplerInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoxResamplerInfo()); 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[23]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5676,7 +9165,7 @@ public sealed partial class AudioResamplerInfo : pb::IMessage + public sealed partial class OwnedSoxResampler : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedSoxResampler()); 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[24]; } + get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5829,7 +9326,7 @@ public sealed partial class OwnedAudioResampler : pb::IMessageField number for the "handle" field. @@ -5863,10 +9360,10 @@ public OwnedAudioResampler Clone() { /// Field number for the "info" field. public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.AudioResamplerInfo info_; + private global::LiveKit.Proto.SoxResamplerInfo info_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioResamplerInfo Info { + public global::LiveKit.Proto.SoxResamplerInfo Info { get { return info_; } set { info_ = value; @@ -5876,12 +9373,12 @@ public OwnedAudioResampler Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedAudioResampler); + return Equals(other as OwnedSoxResampler); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedAudioResampler other) { + public bool Equals(OwnedSoxResampler other) { if (ReferenceEquals(other, null)) { return false; } @@ -5967,7 +9464,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedAudioResampler other) { + public void MergeFrom(OwnedSoxResampler other) { if (other == null) { return; } @@ -5979,7 +9476,7 @@ public void MergeFrom(OwnedAudioResampler other) { } if (other.info_ != null) { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioResamplerInfo(); + Info = new global::LiveKit.Proto.SoxResamplerInfo(); } Info.MergeFrom(other.Info); } @@ -5994,7 +9491,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6007,7 +9508,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioResamplerInfo(); + Info = new global::LiveKit.Proto.SoxResamplerInfo(); } input.ReadMessage(Info); break; @@ -6023,7 +9524,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6036,7 +9541,7 @@ public void MergeFrom(pb::CodedInputStream input) { } case 18: { if (info_ == null) { - Info = new global::LiveKit.Proto.AudioResamplerInfo(); + Info = new global::LiveKit.Proto.SoxResamplerInfo(); } input.ReadMessage(Info); break; diff --git a/Runtime/Scripts/Proto/E2Ee.cs b/Runtime/Scripts/Proto/E2Ee.cs index f03e60c..a11d061 100644 --- a/Runtime/Scripts/Proto/E2Ee.cs +++ b/Runtime/Scripts/Proto/E2Ee.cs @@ -25,80 +25,78 @@ 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=")); + "ChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAIoCRIRCgl0cmFja19zaWQYAiAC", + "KAkSEQoJa2V5X2luZGV4GAMgAigFEg8KB2VuYWJsZWQYBCACKAgidgoSS2V5", + "UHJvdmlkZXJPcHRpb25zEhIKCnNoYXJlZF9rZXkYASABKAwSGwoTcmF0Y2hl", + "dF93aW5kb3dfc2l6ZRgCIAIoBRIUCgxyYXRjaGV0X3NhbHQYAyACKAwSGQoR", + "ZmFpbHVyZV90b2xlcmFuY2UYBCACKAUihgEKC0UyZWVPcHRpb25zEjYKD2Vu", + "Y3J5cHRpb25fdHlwZRgBIAIoDjIdLmxpdmVraXQucHJvdG8uRW5jcnlwdGlv", + "blR5cGUSPwoUa2V5X3Byb3ZpZGVyX29wdGlvbnMYAiACKAsyIS5saXZla2l0", + "LnByb3RvLktleVByb3ZpZGVyT3B0aW9ucyIvChxFMmVlTWFuYWdlclNldEVu", + "YWJsZWRSZXF1ZXN0Eg8KB2VuYWJsZWQYASACKAgiHwodRTJlZU1hbmFnZXJT", + "ZXRFbmFibGVkUmVzcG9uc2UiJAoiRTJlZU1hbmFnZXJHZXRGcmFtZUNyeXB0", + "b3JzUmVxdWVzdCJaCiNFMmVlTWFuYWdlckdldEZyYW1lQ3J5cHRvcnNSZXNw", + "b25zZRIzCg5mcmFtZV9jcnlwdG9ycxgBIAMoCzIbLmxpdmVraXQucHJvdG8u", + "RnJhbWVDcnlwdG9yImEKHUZyYW1lQ3J5cHRvclNldEVuYWJsZWRSZXF1ZXN0", + "EhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgAigJEhEKCXRyYWNrX3NpZBgC", + "IAIoCRIPCgdlbmFibGVkGAMgAigIIiAKHkZyYW1lQ3J5cHRvclNldEVuYWJs", + "ZWRSZXNwb25zZSJkCh5GcmFtZUNyeXB0b3JTZXRLZXlJbmRleFJlcXVlc3QS", + "HAoUcGFydGljaXBhbnRfaWRlbnRpdHkYASACKAkSEQoJdHJhY2tfc2lkGAIg", + "AigJEhEKCWtleV9pbmRleBgDIAIoBSIhCh9GcmFtZUNyeXB0b3JTZXRLZXlJ", + "bmRleFJlc3BvbnNlIjwKE1NldFNoYXJlZEtleVJlcXVlc3QSEgoKc2hhcmVk", + "X2tleRgBIAIoDBIRCglrZXlfaW5kZXgYAiACKAUiFgoUU2V0U2hhcmVkS2V5", + "UmVzcG9uc2UiLAoXUmF0Y2hldFNoYXJlZEtleVJlcXVlc3QSEQoJa2V5X2lu", + "ZGV4GAEgAigFIisKGFJhdGNoZXRTaGFyZWRLZXlSZXNwb25zZRIPCgduZXdf", + "a2V5GAEgASgMIigKE0dldFNoYXJlZEtleVJlcXVlc3QSEQoJa2V5X2luZGV4", + "GAEgAigFIiMKFEdldFNoYXJlZEtleVJlc3BvbnNlEgsKA2tleRgBIAEoDCJN", + "Cg1TZXRLZXlSZXF1ZXN0EhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgAigJ", + "EgsKA2tleRgCIAIoDBIRCglrZXlfaW5kZXgYAyACKAUiEAoOU2V0S2V5UmVz", + "cG9uc2UiRAoRUmF0Y2hldEtleVJlcXVlc3QSHAoUcGFydGljaXBhbnRfaWRl", + "bnRpdHkYASACKAkSEQoJa2V5X2luZGV4GAIgAigFIiUKElJhdGNoZXRLZXlS", + "ZXNwb25zZRIPCgduZXdfa2V5GAEgASgMIkAKDUdldEtleVJlcXVlc3QSHAoU", + "cGFydGljaXBhbnRfaWRlbnRpdHkYASACKAkSEQoJa2V5X2luZGV4GAIgAigF", + "Ih0KDkdldEtleVJlc3BvbnNlEgsKA2tleRgBIAEoDCLMBQoLRTJlZVJlcXVl", + "c3QSEwoLcm9vbV9oYW5kbGUYASACKAQSSgoTbWFuYWdlcl9zZXRfZW5hYmxl", + "ZBgCIAEoCzIrLmxpdmVraXQucHJvdG8uRTJlZU1hbmFnZXJTZXRFbmFibGVk", + "UmVxdWVzdEgAElcKGm1hbmFnZXJfZ2V0X2ZyYW1lX2NyeXB0b3JzGAMgASgL", + "MjEubGl2ZWtpdC5wcm90by5FMmVlTWFuYWdlckdldEZyYW1lQ3J5cHRvcnNS", + "ZXF1ZXN0SAASSwoTY3J5cHRvcl9zZXRfZW5hYmxlZBgEIAEoCzIsLmxpdmVr", + "aXQucHJvdG8uRnJhbWVDcnlwdG9yU2V0RW5hYmxlZFJlcXVlc3RIABJOChVj", + "cnlwdG9yX3NldF9rZXlfaW5kZXgYBSABKAsyLS5saXZla2l0LnByb3RvLkZy", + "YW1lQ3J5cHRvclNldEtleUluZGV4UmVxdWVzdEgAEjwKDnNldF9zaGFyZWRf", + "a2V5GAYgASgLMiIubGl2ZWtpdC5wcm90by5TZXRTaGFyZWRLZXlSZXF1ZXN0", + "SAASRAoScmF0Y2hldF9zaGFyZWRfa2V5GAcgASgLMiYubGl2ZWtpdC5wcm90", + "by5SYXRjaGV0U2hhcmVkS2V5UmVxdWVzdEgAEjwKDmdldF9zaGFyZWRfa2V5", + "GAggASgLMiIubGl2ZWtpdC5wcm90by5HZXRTaGFyZWRLZXlSZXF1ZXN0SAAS", + "LwoHc2V0X2tleRgJIAEoCzIcLmxpdmVraXQucHJvdG8uU2V0S2V5UmVxdWVz", + "dEgAEjcKC3JhdGNoZXRfa2V5GAogASgLMiAubGl2ZWtpdC5wcm90by5SYXRj", + "aGV0S2V5UmVxdWVzdEgAEi8KB2dldF9rZXkYCyABKAsyHC5saXZla2l0LnBy", + "b3RvLkdldEtleVJlcXVlc3RIAEIJCgdtZXNzYWdlIsIFCgxFMmVlUmVzcG9u", + "c2USSwoTbWFuYWdlcl9zZXRfZW5hYmxlZBgBIAEoCzIsLmxpdmVraXQucHJv", + "dG8uRTJlZU1hbmFnZXJTZXRFbmFibGVkUmVzcG9uc2VIABJYChptYW5hZ2Vy", + "X2dldF9mcmFtZV9jcnlwdG9ycxgCIAEoCzIyLmxpdmVraXQucHJvdG8uRTJl", + "ZU1hbmFnZXJHZXRGcmFtZUNyeXB0b3JzUmVzcG9uc2VIABJMChNjcnlwdG9y", + "X3NldF9lbmFibGVkGAMgASgLMi0ubGl2ZWtpdC5wcm90by5GcmFtZUNyeXB0", + "b3JTZXRFbmFibGVkUmVzcG9uc2VIABJPChVjcnlwdG9yX3NldF9rZXlfaW5k", + "ZXgYBCABKAsyLi5saXZla2l0LnByb3RvLkZyYW1lQ3J5cHRvclNldEtleUlu", + "ZGV4UmVzcG9uc2VIABI9Cg5zZXRfc2hhcmVkX2tleRgFIAEoCzIjLmxpdmVr", + "aXQucHJvdG8uU2V0U2hhcmVkS2V5UmVzcG9uc2VIABJFChJyYXRjaGV0X3No", + "YXJlZF9rZXkYBiABKAsyJy5saXZla2l0LnByb3RvLlJhdGNoZXRTaGFyZWRL", + "ZXlSZXNwb25zZUgAEj0KDmdldF9zaGFyZWRfa2V5GAcgASgLMiMubGl2ZWtp", + "dC5wcm90by5HZXRTaGFyZWRLZXlSZXNwb25zZUgAEjAKB3NldF9rZXkYCCAB", + "KAsyHS5saXZla2l0LnByb3RvLlNldEtleVJlc3BvbnNlSAASOAoLcmF0Y2hl", + "dF9rZXkYCSABKAsyIS5saXZla2l0LnByb3RvLlJhdGNoZXRLZXlSZXNwb25z", + "ZUgAEjAKB2dldF9rZXkYCiABKAsyHS5saXZla2l0LnByb3RvLkdldEtleVJl", + "c3BvbnNlSABCCQoHbWVzc2FnZSovCg5FbmNyeXB0aW9uVHlwZRIICgROT05F", + "EAASBwoDR0NNEAESCgoGQ1VTVE9NEAIqiAEKD0VuY3J5cHRpb25TdGF0ZRIH", + "CgNORVcQABIGCgJPSxABEhUKEUVOQ1JZUFRJT05fRkFJTEVEEAISFQoRREVD", + "UllQVElPTl9GQUlMRUQQAxIPCgtNSVNTSU5HX0tFWRAEEhEKDUtFWV9SQVRD", + "SEVURUQQBRISCg5JTlRFUk5BTF9FUlJPUhAGQhCqAg1MaXZlS2l0LlByb3Rv")); 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.KeyProviderOptions), global::LiveKit.Proto.KeyProviderOptions.Parser, new[]{ "SharedKey", "RatchetWindowSize", "RatchetSalt", "FailureTolerance" }, null, 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), @@ -111,15 +109,15 @@ static E2EeReflection() { 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.RatchetSharedKeyResponse), global::LiveKit.Proto.RatchetSharedKeyResponse.Parser, new[]{ "NewKey" }, null, 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.GetSharedKeyResponse), global::LiveKit.Proto.GetSharedKeyResponse.Parser, new[]{ "Key" }, null, 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.RatchetKeyResponse), global::LiveKit.Proto.RatchetKeyResponse.Parser, new[]{ "NewKey" }, null, 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.GetKeyResponse), global::LiveKit.Proto.GetKeyResponse.Parser, new[]{ "Key" }, null, 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) })); @@ -155,6 +153,7 @@ public sealed partial class FrameCryptor : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameCryptor()); 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; } } @@ -182,6 +181,7 @@ public FrameCryptor() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FrameCryptor(FrameCryptor other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; trackSid_ = other.trackSid_; keyIndex_ = other.keyIndex_; @@ -197,51 +197,109 @@ public FrameCryptor Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 3; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } /// Field number for the "enabled" field. public const int EnabledFieldNumber = 4; + private readonly static bool EnabledDefaultValue = false; + private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { - get { return enabled_; } + get { if ((_hasBits0 & 2) != 0) { return enabled_; } else { return EnabledDefaultValue; } } set { + _hasBits0 |= 2; enabled_ = value; } } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -269,10 +327,10 @@ public bool Equals(FrameCryptor other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -291,19 +349,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(32); output.WriteBool(Enabled); } @@ -317,19 +375,19 @@ 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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(32); output.WriteBool(Enabled); } @@ -343,16 +401,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } - if (Enabled != false) { + if (HasEnabled) { size += 1 + 1; } if (_unknownFields != null) { @@ -367,16 +425,16 @@ public void MergeFrom(FrameCryptor other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } - if (other.Enabled != false) { + if (other.HasEnabled) { Enabled = other.Enabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -390,7 +448,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -421,7 +483,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -456,6 +522,7 @@ public sealed partial class KeyProviderOptions : pb::IMessage _parser = new pb::MessageParser(() => new KeyProviderOptions()); 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; } } @@ -483,6 +550,7 @@ public KeyProviderOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyProviderOptions(KeyProviderOptions other) : this() { + _hasBits0 = other._hasBits0; sharedKey_ = other.sharedKey_; ratchetWindowSize_ = other.ratchetWindowSize_; ratchetSalt_ = other.ratchetSalt_; @@ -527,42 +595,86 @@ public void ClearSharedKey() { /// Field number for the "ratchet_window_size" field. public const int RatchetWindowSizeFieldNumber = 2; + private readonly static int RatchetWindowSizeDefaultValue = 0; + private int ratchetWindowSize_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RatchetWindowSize { - get { return ratchetWindowSize_; } + get { if ((_hasBits0 & 1) != 0) { return ratchetWindowSize_; } else { return RatchetWindowSizeDefaultValue; } } set { + _hasBits0 |= 1; ratchetWindowSize_ = value; } } + /// Gets whether the "ratchet_window_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRatchetWindowSize { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "ratchet_window_size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRatchetWindowSize() { + _hasBits0 &= ~1; + } /// Field number for the "ratchet_salt" field. public const int RatchetSaltFieldNumber = 3; - private pb::ByteString ratchetSalt_ = pb::ByteString.Empty; + private readonly static pb::ByteString RatchetSaltDefaultValue = pb::ByteString.Empty; + + private pb::ByteString ratchetSalt_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString RatchetSalt { - get { return ratchetSalt_; } + get { return ratchetSalt_ ?? RatchetSaltDefaultValue; } set { ratchetSalt_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "ratchet_salt" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRatchetSalt { + get { return ratchetSalt_ != null; } + } + /// Clears the value of the "ratchet_salt" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRatchetSalt() { + ratchetSalt_ = null; + } /// Field number for the "failure_tolerance" field. public const int FailureToleranceFieldNumber = 4; + private readonly static int FailureToleranceDefaultValue = 0; + private int failureTolerance_; /// - /// -1 = no tolerence + /// -1 = no tolerance /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FailureTolerance { - get { return failureTolerance_; } + get { if ((_hasBits0 & 2) != 0) { return failureTolerance_; } else { return FailureToleranceDefaultValue; } } set { + _hasBits0 |= 2; failureTolerance_ = value; } } + /// Gets whether the "failure_tolerance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFailureTolerance { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "failure_tolerance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFailureTolerance() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -591,9 +703,9 @@ public bool Equals(KeyProviderOptions other) { 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 (HasRatchetWindowSize) hash ^= RatchetWindowSize.GetHashCode(); + if (HasRatchetSalt) hash ^= RatchetSalt.GetHashCode(); + if (HasFailureTolerance) hash ^= FailureTolerance.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -616,15 +728,15 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteBytes(SharedKey); } - if (RatchetWindowSize != 0) { + if (HasRatchetWindowSize) { output.WriteRawTag(16); output.WriteInt32(RatchetWindowSize); } - if (RatchetSalt.Length != 0) { + if (HasRatchetSalt) { output.WriteRawTag(26); output.WriteBytes(RatchetSalt); } - if (FailureTolerance != 0) { + if (HasFailureTolerance) { output.WriteRawTag(32); output.WriteInt32(FailureTolerance); } @@ -642,15 +754,15 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteBytes(SharedKey); } - if (RatchetWindowSize != 0) { + if (HasRatchetWindowSize) { output.WriteRawTag(16); output.WriteInt32(RatchetWindowSize); } - if (RatchetSalt.Length != 0) { + if (HasRatchetSalt) { output.WriteRawTag(26); output.WriteBytes(RatchetSalt); } - if (FailureTolerance != 0) { + if (HasFailureTolerance) { output.WriteRawTag(32); output.WriteInt32(FailureTolerance); } @@ -667,13 +779,13 @@ public int CalculateSize() { if (HasSharedKey) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(SharedKey); } - if (RatchetWindowSize != 0) { + if (HasRatchetWindowSize) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RatchetWindowSize); } - if (RatchetSalt.Length != 0) { + if (HasRatchetSalt) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(RatchetSalt); } - if (FailureTolerance != 0) { + if (HasFailureTolerance) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FailureTolerance); } if (_unknownFields != null) { @@ -691,13 +803,13 @@ public void MergeFrom(KeyProviderOptions other) { if (other.HasSharedKey) { SharedKey = other.SharedKey; } - if (other.RatchetWindowSize != 0) { + if (other.HasRatchetWindowSize) { RatchetWindowSize = other.RatchetWindowSize; } - if (other.RatchetSalt.Length != 0) { + if (other.HasRatchetSalt) { RatchetSalt = other.RatchetSalt; } - if (other.FailureTolerance != 0) { + if (other.HasFailureTolerance) { FailureTolerance = other.FailureTolerance; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -711,7 +823,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -742,7 +858,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -777,6 +897,7 @@ public sealed partial class E2eeOptions : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeOptions()); 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; } } @@ -804,6 +925,7 @@ public E2eeOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public E2eeOptions(E2eeOptions other) : this() { + _hasBits0 = other._hasBits0; encryptionType_ = other.encryptionType_; keyProviderOptions_ = other.keyProviderOptions_ != null ? other.keyProviderOptions_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -817,15 +939,30 @@ public E2eeOptions Clone() { /// Field number for the "encryption_type" field. public const int EncryptionTypeFieldNumber = 1; - private global::LiveKit.Proto.EncryptionType encryptionType_ = global::LiveKit.Proto.EncryptionType.None; + private readonly static global::LiveKit.Proto.EncryptionType EncryptionTypeDefaultValue = global::LiveKit.Proto.EncryptionType.None; + + private global::LiveKit.Proto.EncryptionType encryptionType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.EncryptionType EncryptionType { - get { return encryptionType_; } + get { if ((_hasBits0 & 1) != 0) { return encryptionType_; } else { return EncryptionTypeDefaultValue; } } set { + _hasBits0 |= 1; encryptionType_ = value; } } + /// Gets whether the "encryption_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEncryptionType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "encryption_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncryptionType() { + _hasBits0 &= ~1; + } /// Field number for the "key_provider_options" field. public const int KeyProviderOptionsFieldNumber = 2; @@ -863,7 +1000,7 @@ public bool Equals(E2eeOptions other) { [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 (HasEncryptionType) hash ^= EncryptionType.GetHashCode(); if (keyProviderOptions_ != null) hash ^= KeyProviderOptions.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -883,7 +1020,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { output.WriteRawTag(8); output.WriteEnum((int) EncryptionType); } @@ -901,7 +1038,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 (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { output.WriteRawTag(8); output.WriteEnum((int) EncryptionType); } @@ -919,7 +1056,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); } if (keyProviderOptions_ != null) { @@ -937,7 +1074,7 @@ public void MergeFrom(E2eeOptions other) { if (other == null) { return; } - if (other.EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (other.HasEncryptionType) { EncryptionType = other.EncryptionType; } if (other.keyProviderOptions_ != null) { @@ -957,7 +1094,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -983,7 +1124,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1013,6 +1158,7 @@ public sealed partial class E2eeManagerSetEnabledRequest : pb::IMessage _parser = new pb::MessageParser(() => new E2eeManagerSetEnabledRequest()); 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; } } @@ -1040,6 +1186,7 @@ public E2eeManagerSetEnabledRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public E2eeManagerSetEnabledRequest(E2eeManagerSetEnabledRequest other) : this() { + _hasBits0 = other._hasBits0; enabled_ = other.enabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1052,15 +1199,30 @@ public E2eeManagerSetEnabledRequest Clone() { /// Field number for the "enabled" field. public const int EnabledFieldNumber = 1; + private readonly static bool EnabledDefaultValue = false; + private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { - get { return enabled_; } + get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return EnabledDefaultValue; } } set { + _hasBits0 |= 1; enabled_ = value; } } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1085,7 +1247,7 @@ public bool Equals(E2eeManagerSetEnabledRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1104,7 +1266,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(8); output.WriteBool(Enabled); } @@ -1118,7 +1280,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 (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(8); output.WriteBool(Enabled); } @@ -1132,7 +1294,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Enabled != false) { + if (HasEnabled) { size += 1 + 1; } if (_unknownFields != null) { @@ -1147,7 +1309,7 @@ public void MergeFrom(E2eeManagerSetEnabledRequest other) { if (other == null) { return; } - if (other.Enabled != false) { + if (other.HasEnabled) { Enabled = other.Enabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1161,7 +1323,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1180,7 +1346,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1322,7 +1492,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1337,7 +1511,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1475,7 +1653,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1490,7 +1672,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1646,7 +1832,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1665,7 +1855,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1688,6 +1882,7 @@ public sealed partial class FrameCryptorSetEnabledRequest : pb::IMessage _parser = new pb::MessageParser(() => new FrameCryptorSetEnabledRequest()); 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; } } @@ -1715,6 +1910,7 @@ public FrameCryptorSetEnabledRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FrameCryptorSetEnabledRequest(FrameCryptorSetEnabledRequest other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; trackSid_ = other.trackSid_; enabled_ = other.enabled_; @@ -1729,39 +1925,82 @@ public FrameCryptorSetEnabledRequest Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } /// Field number for the "enabled" field. public const int EnabledFieldNumber = 3; + private readonly static bool EnabledDefaultValue = false; + private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { - get { return enabled_; } + get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return EnabledDefaultValue; } } set { + _hasBits0 |= 1; enabled_ = value; } } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1788,9 +2027,9 @@ public bool Equals(FrameCryptorSetEnabledRequest other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1809,15 +2048,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(24); output.WriteBool(Enabled); } @@ -1831,15 +2070,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(24); output.WriteBool(Enabled); } @@ -1853,13 +2092,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (Enabled != false) { + if (HasEnabled) { size += 1 + 1; } if (_unknownFields != null) { @@ -1874,13 +2113,13 @@ public void MergeFrom(FrameCryptorSetEnabledRequest other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } - if (other.Enabled != false) { + if (other.HasEnabled) { Enabled = other.Enabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1894,7 +2133,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1921,7 +2164,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2071,7 +2318,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2086,7 +2337,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2105,6 +2360,7 @@ public sealed partial class FrameCryptorSetKeyIndexRequest : pb::IMessage _parser = new pb::MessageParser(() => new FrameCryptorSetKeyIndexRequest()); 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; } } @@ -2132,6 +2388,7 @@ public FrameCryptorSetKeyIndexRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FrameCryptorSetKeyIndexRequest(FrameCryptorSetKeyIndexRequest other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; trackSid_ = other.trackSid_; keyIndex_ = other.keyIndex_; @@ -2146,39 +2403,82 @@ public FrameCryptorSetKeyIndexRequest Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 3; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2205,9 +2505,9 @@ public bool Equals(FrameCryptorSetKeyIndexRequest other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2226,15 +2526,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } @@ -2248,15 +2548,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } @@ -2270,13 +2570,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -2291,13 +2591,13 @@ public void MergeFrom(FrameCryptorSetKeyIndexRequest other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2311,7 +2611,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2338,7 +2642,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2488,7 +2796,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2503,7 +2815,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2522,6 +2838,7 @@ public sealed partial class SetSharedKeyRequest : pb::IMessage _parser = new pb::MessageParser(() => new SetSharedKeyRequest()); 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; } } @@ -2549,6 +2866,7 @@ public SetSharedKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetSharedKeyRequest(SetSharedKeyRequest other) : this() { + _hasBits0 = other._hasBits0; sharedKey_ = other.sharedKey_; keyIndex_ = other.keyIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2562,27 +2880,56 @@ public SetSharedKeyRequest Clone() { /// Field number for the "shared_key" field. public const int SharedKeyFieldNumber = 1; - private pb::ByteString sharedKey_ = pb::ByteString.Empty; + private readonly static pb::ByteString SharedKeyDefaultValue = pb::ByteString.Empty; + + private pb::ByteString sharedKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString SharedKey { - get { return 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 "key_index" field. public const int KeyIndexFieldNumber = 2; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2608,8 +2955,8 @@ public bool Equals(SetSharedKeyRequest other) { [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 (HasSharedKey) hash ^= SharedKey.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2628,11 +2975,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (SharedKey.Length != 0) { + if (HasSharedKey) { output.WriteRawTag(10); output.WriteBytes(SharedKey); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -2646,11 +2993,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SharedKey.Length != 0) { + if (HasSharedKey) { output.WriteRawTag(10); output.WriteBytes(SharedKey); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -2664,10 +3011,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (SharedKey.Length != 0) { + if (HasSharedKey) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(SharedKey); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -2682,10 +3029,10 @@ public void MergeFrom(SetSharedKeyRequest other) { if (other == null) { return; } - if (other.SharedKey.Length != 0) { + if (other.HasSharedKey) { SharedKey = other.SharedKey; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2699,7 +3046,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2722,7 +3073,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2868,7 +3223,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2883,7 +3242,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2902,6 +3265,7 @@ public sealed partial class RatchetSharedKeyRequest : pb::IMessage _parser = new pb::MessageParser(() => new RatchetSharedKeyRequest()); 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; } } @@ -2929,6 +3293,7 @@ public RatchetSharedKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RatchetSharedKeyRequest(RatchetSharedKeyRequest other) : this() { + _hasBits0 = other._hasBits0; keyIndex_ = other.keyIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2941,15 +3306,30 @@ public RatchetSharedKeyRequest Clone() { /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 1; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2974,7 +3354,7 @@ public bool Equals(RatchetSharedKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (KeyIndex != 0) hash ^= KeyIndex.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2993,7 +3373,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(8); output.WriteInt32(KeyIndex); } @@ -3007,7 +3387,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 (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(8); output.WriteInt32(KeyIndex); } @@ -3021,7 +3401,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -3036,7 +3416,7 @@ public void MergeFrom(RatchetSharedKeyRequest other) { if (other == null) { return; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3050,7 +3430,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3069,7 +3453,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3254,7 +3642,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3273,7 +3665,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3296,6 +3692,7 @@ public sealed partial class GetSharedKeyRequest : pb::IMessage _parser = new pb::MessageParser(() => new GetSharedKeyRequest()); 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; } } @@ -3323,6 +3720,7 @@ public GetSharedKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSharedKeyRequest(GetSharedKeyRequest other) : this() { + _hasBits0 = other._hasBits0; keyIndex_ = other.keyIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3335,15 +3733,30 @@ public GetSharedKeyRequest Clone() { /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 1; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3368,7 +3781,7 @@ public bool Equals(GetSharedKeyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (KeyIndex != 0) hash ^= KeyIndex.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3387,7 +3800,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(8); output.WriteInt32(KeyIndex); } @@ -3401,7 +3814,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 (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(8); output.WriteInt32(KeyIndex); } @@ -3415,7 +3828,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -3430,7 +3843,7 @@ public void MergeFrom(GetSharedKeyRequest other) { if (other == null) { return; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3444,7 +3857,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3463,7 +3880,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3648,7 +4069,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3667,7 +4092,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3690,6 +4119,7 @@ public sealed partial class SetKeyRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetKeyRequest()); 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; } } @@ -3717,6 +4147,7 @@ public SetKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetKeyRequest(SetKeyRequest other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; key_ = other.key_; keyIndex_ = other.keyIndex_; @@ -3731,39 +4162,82 @@ public SetKeyRequest Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "key" field. public const int KeyFieldNumber = 2; - private pb::ByteString key_ = pb::ByteString.Empty; + 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_; } + 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; + } /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 3; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3790,9 +4264,9 @@ public bool Equals(SetKeyRequest other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasKey) hash ^= Key.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3811,15 +4285,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (Key.Length != 0) { + if (HasKey) { output.WriteRawTag(18); output.WriteBytes(Key); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } @@ -3833,15 +4307,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (Key.Length != 0) { + if (HasKey) { output.WriteRawTag(18); output.WriteBytes(Key); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(24); output.WriteInt32(KeyIndex); } @@ -3855,13 +4329,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (Key.Length != 0) { + if (HasKey) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Key); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -3876,13 +4350,13 @@ public void MergeFrom(SetKeyRequest other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.Key.Length != 0) { + if (other.HasKey) { Key = other.Key; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3896,7 +4370,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3923,7 +4401,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4073,7 +4555,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4088,7 +4574,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4107,6 +4597,7 @@ public sealed partial class RatchetKeyRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RatchetKeyRequest()); 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; } } @@ -4134,6 +4625,7 @@ public RatchetKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RatchetKeyRequest(RatchetKeyRequest other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; keyIndex_ = other.keyIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4147,27 +4639,56 @@ public RatchetKeyRequest Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 2; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4193,8 +4714,8 @@ public bool Equals(RatchetKeyRequest other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4213,11 +4734,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -4231,11 +4752,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -4249,10 +4770,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -4267,10 +4788,10 @@ public void MergeFrom(RatchetKeyRequest other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4284,7 +4805,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4307,7 +4832,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4496,7 +5025,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4515,7 +5048,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4538,6 +5075,7 @@ public sealed partial class GetKeyRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetKeyRequest()); 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; } } @@ -4565,6 +5103,7 @@ public GetKeyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetKeyRequest(GetKeyRequest other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; keyIndex_ = other.keyIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4578,27 +5117,56 @@ public GetKeyRequest Clone() { /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "key_index" field. public const int KeyIndexFieldNumber = 2; + private readonly static int KeyIndexDefaultValue = 0; + private int keyIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int KeyIndex { - get { return keyIndex_; } + get { if ((_hasBits0 & 1) != 0) { return keyIndex_; } else { return KeyIndexDefaultValue; } } set { + _hasBits0 |= 1; keyIndex_ = value; } } + /// Gets whether the "key_index" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyIndex { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "key_index" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyIndex() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4624,8 +5192,8 @@ public bool Equals(GetKeyRequest other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasKeyIndex) hash ^= KeyIndex.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4644,11 +5212,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -4662,11 +5230,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { output.WriteRawTag(16); output.WriteInt32(KeyIndex); } @@ -4680,10 +5248,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (KeyIndex != 0) { + if (HasKeyIndex) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(KeyIndex); } if (_unknownFields != null) { @@ -4698,10 +5266,10 @@ public void MergeFrom(GetKeyRequest other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.KeyIndex != 0) { + if (other.HasKeyIndex) { KeyIndex = other.KeyIndex; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4715,7 +5283,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4738,7 +5310,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4927,7 +5503,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4946,7 +5526,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4969,6 +5553,7 @@ public sealed partial class E2eeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeRequest()); 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; } } @@ -4996,6 +5581,7 @@ public E2eeRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public E2eeRequest(E2eeRequest other) : this() { + _hasBits0 = other._hasBits0; roomHandle_ = other.roomHandle_; switch (other.MessageCase) { case MessageOneofCase.ManagerSetEnabled: @@ -5041,15 +5627,30 @@ public E2eeRequest Clone() { /// Field number for the "room_handle" field. public const int RoomHandleFieldNumber = 1; + private readonly static ulong RoomHandleDefaultValue = 0UL; + private ulong roomHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RoomHandle { - get { return roomHandle_; } + get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } } set { + _hasBits0 |= 1; roomHandle_ = value; } } + /// Gets whether the "room_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoomHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "room_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoomHandle() { + _hasBits0 &= ~1; + } /// Field number for the "manager_set_enabled" field. public const int ManagerSetEnabledFieldNumber = 2; @@ -5234,7 +5835,7 @@ public bool Equals(E2eeRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); + if (HasRoomHandle) hash ^= RoomHandle.GetHashCode(); if (messageCase_ == MessageOneofCase.ManagerSetEnabled) hash ^= ManagerSetEnabled.GetHashCode(); if (messageCase_ == MessageOneofCase.ManagerGetFrameCryptors) hash ^= ManagerGetFrameCryptors.GetHashCode(); if (messageCase_ == MessageOneofCase.CryptorSetEnabled) hash ^= CryptorSetEnabled.GetHashCode(); @@ -5264,7 +5865,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (HasRoomHandle) { output.WriteRawTag(8); output.WriteUInt64(RoomHandle); } @@ -5318,7 +5919,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 (RoomHandle != 0UL) { + if (HasRoomHandle) { output.WriteRawTag(8); output.WriteUInt64(RoomHandle); } @@ -5372,7 +5973,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RoomHandle != 0UL) { + if (HasRoomHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); } if (messageCase_ == MessageOneofCase.ManagerSetEnabled) { @@ -5417,7 +6018,7 @@ public void MergeFrom(E2eeRequest other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { + if (other.HasRoomHandle) { RoomHandle = other.RoomHandle; } switch (other.MessageCase) { @@ -5494,7 +6095,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5603,7 +6208,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6212,7 +6821,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6317,7 +6930,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Ffi.cs b/Runtime/Scripts/Proto/Ffi.cs index 15899fc..9a5cb53 100644 --- a/Runtime/Scripts/Proto/Ffi.cs +++ b/Runtime/Scripts/Proto/Ffi.cs @@ -26,145 +26,179 @@ static FfiReflection() { string.Concat( "CglmZmkucHJvdG8SDWxpdmVraXQucHJvdG8aCmUyZWUucHJvdG8aC3RyYWNr", "LnByb3RvGgpyb29tLnByb3RvGhF2aWRlb19mcmFtZS5wcm90bxoRYXVkaW9f", - "ZnJhbWUucHJvdG8i3A8KCkZmaVJlcXVlc3QSMAoHZGlzcG9zZRgCIAEoCzId", - "LmxpdmVraXQucHJvdG8uRGlzcG9zZVJlcXVlc3RIABIwCgdjb25uZWN0GAMg", - "ASgLMh0ubGl2ZWtpdC5wcm90by5Db25uZWN0UmVxdWVzdEgAEjYKCmRpc2Nv", - "bm5lY3QYBCABKAsyIC5saXZla2l0LnByb3RvLkRpc2Nvbm5lY3RSZXF1ZXN0", - "SAASOwoNcHVibGlzaF90cmFjaxgFIAEoCzIiLmxpdmVraXQucHJvdG8uUHVi", - "bGlzaFRyYWNrUmVxdWVzdEgAEj8KD3VucHVibGlzaF90cmFjaxgGIAEoCzIk", - "LmxpdmVraXQucHJvdG8uVW5wdWJsaXNoVHJhY2tSZXF1ZXN0SAASOQoMcHVi", - "bGlzaF9kYXRhGAcgASgLMiEubGl2ZWtpdC5wcm90by5QdWJsaXNoRGF0YVJl", - "cXVlc3RIABI9Cg5zZXRfc3Vic2NyaWJlZBgIIAEoCzIjLmxpdmVraXQucHJv", - "dG8uU2V0U3Vic2NyaWJlZFJlcXVlc3RIABJEChJzZXRfbG9jYWxfbWV0YWRh", - "dGEYCSABKAsyJi5saXZla2l0LnByb3RvLlNldExvY2FsTWV0YWRhdGFSZXF1", - "ZXN0SAASPAoOc2V0X2xvY2FsX25hbWUYCiABKAsyIi5saXZla2l0LnByb3Rv", - "LlNldExvY2FsTmFtZVJlcXVlc3RIABJIChRzZXRfbG9jYWxfYXR0cmlidXRl", - "cxgLIAEoCzIoLmxpdmVraXQucHJvdG8uU2V0TG9jYWxBdHRyaWJ1dGVzUmVx", - "dWVzdEgAEkIKEWdldF9zZXNzaW9uX3N0YXRzGAwgASgLMiUubGl2ZWtpdC5w", - "cm90by5HZXRTZXNzaW9uU3RhdHNSZXF1ZXN0SAASSwoVcHVibGlzaF90cmFu", - "c2NyaXB0aW9uGA0gASgLMioubGl2ZWtpdC5wcm90by5QdWJsaXNoVHJhbnNj", - "cmlwdGlvblJlcXVlc3RIABJAChBwdWJsaXNoX3NpcF9kdG1mGA4gASgLMiQu", - "bGl2ZWtpdC5wcm90by5QdWJsaXNoU2lwRHRtZlJlcXVlc3RIABJEChJjcmVh", - "dGVfdmlkZW9fdHJhY2sYDyABKAsyJi5saXZla2l0LnByb3RvLkNyZWF0ZVZp", - "ZGVvVHJhY2tSZXF1ZXN0SAASRAoSY3JlYXRlX2F1ZGlvX3RyYWNrGBAgASgL", - "MiYubGl2ZWtpdC5wcm90by5DcmVhdGVBdWRpb1RyYWNrUmVxdWVzdEgAEkAK", - "EGxvY2FsX3RyYWNrX211dGUYESABKAsyJC5saXZla2l0LnByb3RvLkxvY2Fs", - "VHJhY2tNdXRlUmVxdWVzdEgAEkYKE2VuYWJsZV9yZW1vdGVfdHJhY2sYEiAB", - "KAsyJy5saXZla2l0LnByb3RvLkVuYWJsZVJlbW90ZVRyYWNrUmVxdWVzdEgA", - "EjMKCWdldF9zdGF0cxgTIAEoCzIeLmxpdmVraXQucHJvdG8uR2V0U3RhdHNS", - "ZXF1ZXN0SAASQAoQbmV3X3ZpZGVvX3N0cmVhbRgUIAEoCzIkLmxpdmVraXQu", - "cHJvdG8uTmV3VmlkZW9TdHJlYW1SZXF1ZXN0SAASQAoQbmV3X3ZpZGVvX3Nv", - "dXJjZRgVIAEoCzIkLmxpdmVraXQucHJvdG8uTmV3VmlkZW9Tb3VyY2VSZXF1", - "ZXN0SAASRgoTY2FwdHVyZV92aWRlb19mcmFtZRgWIAEoCzInLmxpdmVraXQu", - "cHJvdG8uQ2FwdHVyZVZpZGVvRnJhbWVSZXF1ZXN0SAASOwoNdmlkZW9fY29u", - "dmVydBgXIAEoCzIiLmxpdmVraXQucHJvdG8uVmlkZW9Db252ZXJ0UmVxdWVz", - "dEgAElkKHXZpZGVvX3N0cmVhbV9mcm9tX3BhcnRpY2lwYW50GBggASgLMjAu", - "bGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVl", - "c3RIABJAChBuZXdfYXVkaW9fc3RyZWFtGBkgASgLMiQubGl2ZWtpdC5wcm90", - "by5OZXdBdWRpb1N0cmVhbVJlcXVlc3RIABJAChBuZXdfYXVkaW9fc291cmNl", - "GBogASgLMiQubGl2ZWtpdC5wcm90by5OZXdBdWRpb1NvdXJjZVJlcXVlc3RI", - "ABJGChNjYXB0dXJlX2F1ZGlvX2ZyYW1lGBsgASgLMicubGl2ZWtpdC5wcm90", - "by5DYXB0dXJlQXVkaW9GcmFtZVJlcXVlc3RIABJGChNuZXdfYXVkaW9fcmVz", - "YW1wbGVyGBwgASgLMicubGl2ZWtpdC5wcm90by5OZXdBdWRpb1Jlc2FtcGxl", - "clJlcXVlc3RIABJEChJyZW1peF9hbmRfcmVzYW1wbGUYHSABKAsyJi5saXZl", - "a2l0LnByb3RvLlJlbWl4QW5kUmVzYW1wbGVSZXF1ZXN0SAASKgoEZTJlZRge", - "IAEoCzIaLmxpdmVraXQucHJvdG8uRTJlZVJlcXVlc3RIABJZCh1hdWRpb19z", - "dHJlYW1fZnJvbV9wYXJ0aWNpcGFudBgfIAEoCzIwLmxpdmVraXQucHJvdG8u", - "QXVkaW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXF1ZXN0SABCCQoHbWVzc2Fn", - "ZSL7DwoLRmZpUmVzcG9uc2USMQoHZGlzcG9zZRgCIAEoCzIeLmxpdmVraXQu", - "cHJvdG8uRGlzcG9zZVJlc3BvbnNlSAASMQoHY29ubmVjdBgDIAEoCzIeLmxp", - "dmVraXQucHJvdG8uQ29ubmVjdFJlc3BvbnNlSAASNwoKZGlzY29ubmVjdBgE", - "IAEoCzIhLmxpdmVraXQucHJvdG8uRGlzY29ubmVjdFJlc3BvbnNlSAASPAoN", - "cHVibGlzaF90cmFjaxgFIAEoCzIjLmxpdmVraXQucHJvdG8uUHVibGlzaFRy", - "YWNrUmVzcG9uc2VIABJACg91bnB1Ymxpc2hfdHJhY2sYBiABKAsyJS5saXZl", - "a2l0LnByb3RvLlVucHVibGlzaFRyYWNrUmVzcG9uc2VIABI6CgxwdWJsaXNo", - "X2RhdGEYByABKAsyIi5saXZla2l0LnByb3RvLlB1Ymxpc2hEYXRhUmVzcG9u", - "c2VIABI+Cg5zZXRfc3Vic2NyaWJlZBgIIAEoCzIkLmxpdmVraXQucHJvdG8u", - "U2V0U3Vic2NyaWJlZFJlc3BvbnNlSAASRQoSc2V0X2xvY2FsX21ldGFkYXRh", - "GAkgASgLMicubGl2ZWtpdC5wcm90by5TZXRMb2NhbE1ldGFkYXRhUmVzcG9u", - "c2VIABI9Cg5zZXRfbG9jYWxfbmFtZRgKIAEoCzIjLmxpdmVraXQucHJvdG8u", - "U2V0TG9jYWxOYW1lUmVzcG9uc2VIABJJChRzZXRfbG9jYWxfYXR0cmlidXRl", - "cxgLIAEoCzIpLmxpdmVraXQucHJvdG8uU2V0TG9jYWxBdHRyaWJ1dGVzUmVz", - "cG9uc2VIABJDChFnZXRfc2Vzc2lvbl9zdGF0cxgMIAEoCzImLmxpdmVraXQu", - "cHJvdG8uR2V0U2Vzc2lvblN0YXRzUmVzcG9uc2VIABJMChVwdWJsaXNoX3Ry", - "YW5zY3JpcHRpb24YDSABKAsyKy5saXZla2l0LnByb3RvLlB1Ymxpc2hUcmFu", - "c2NyaXB0aW9uUmVzcG9uc2VIABJBChBwdWJsaXNoX3NpcF9kdG1mGA4gASgL", - "MiUubGl2ZWtpdC5wcm90by5QdWJsaXNoU2lwRHRtZlJlc3BvbnNlSAASRQoS", - "Y3JlYXRlX3ZpZGVvX3RyYWNrGA8gASgLMicubGl2ZWtpdC5wcm90by5DcmVh", - "dGVWaWRlb1RyYWNrUmVzcG9uc2VIABJFChJjcmVhdGVfYXVkaW9fdHJhY2sY", - "ECABKAsyJy5saXZla2l0LnByb3RvLkNyZWF0ZUF1ZGlvVHJhY2tSZXNwb25z", - "ZUgAEkEKEGxvY2FsX3RyYWNrX211dGUYESABKAsyJS5saXZla2l0LnByb3Rv", - "LkxvY2FsVHJhY2tNdXRlUmVzcG9uc2VIABJHChNlbmFibGVfcmVtb3RlX3Ry", - "YWNrGBIgASgLMigubGl2ZWtpdC5wcm90by5FbmFibGVSZW1vdGVUcmFja1Jl", - "c3BvbnNlSAASNAoJZ2V0X3N0YXRzGBMgASgLMh8ubGl2ZWtpdC5wcm90by5H", - "ZXRTdGF0c1Jlc3BvbnNlSAASQQoQbmV3X3ZpZGVvX3N0cmVhbRgUIAEoCzIl", - "LmxpdmVraXQucHJvdG8uTmV3VmlkZW9TdHJlYW1SZXNwb25zZUgAEkEKEG5l", - "d192aWRlb19zb3VyY2UYFSABKAsyJS5saXZla2l0LnByb3RvLk5ld1ZpZGVv", - "U291cmNlUmVzcG9uc2VIABJHChNjYXB0dXJlX3ZpZGVvX2ZyYW1lGBYgASgL", - "MigubGl2ZWtpdC5wcm90by5DYXB0dXJlVmlkZW9GcmFtZVJlc3BvbnNlSAAS", - "PAoNdmlkZW9fY29udmVydBgXIAEoCzIjLmxpdmVraXQucHJvdG8uVmlkZW9D", - "b252ZXJ0UmVzcG9uc2VIABJaCh12aWRlb19zdHJlYW1fZnJvbV9wYXJ0aWNp", - "cGFudBgYIAEoCzIxLmxpdmVraXQucHJvdG8uVmlkZW9TdHJlYW1Gcm9tUGFy", - "dGljaXBhbnRSZXNwb25zZUgAEkEKEG5ld19hdWRpb19zdHJlYW0YGSABKAsy", - "JS5saXZla2l0LnByb3RvLk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2VIABJBChBu", - "ZXdfYXVkaW9fc291cmNlGBogASgLMiUubGl2ZWtpdC5wcm90by5OZXdBdWRp", - "b1NvdXJjZVJlc3BvbnNlSAASRwoTY2FwdHVyZV9hdWRpb19mcmFtZRgbIAEo", - "CzIoLmxpdmVraXQucHJvdG8uQ2FwdHVyZUF1ZGlvRnJhbWVSZXNwb25zZUgA", - "EkcKE25ld19hdWRpb19yZXNhbXBsZXIYHCABKAsyKC5saXZla2l0LnByb3Rv", - "Lk5ld0F1ZGlvUmVzYW1wbGVyUmVzcG9uc2VIABJFChJyZW1peF9hbmRfcmVz", - "YW1wbGUYHSABKAsyJy5saXZla2l0LnByb3RvLlJlbWl4QW5kUmVzYW1wbGVS", - "ZXNwb25zZUgAEloKHWF1ZGlvX3N0cmVhbV9mcm9tX3BhcnRpY2lwYW50GB4g", - "ASgLMjEubGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFu", - "dFJlc3BvbnNlSAASKwoEZTJlZRgfIAEoCzIbLmxpdmVraXQucHJvdG8uRTJl", - "ZVJlc3BvbnNlSABCCQoHbWVzc2FnZSLGCQoIRmZpRXZlbnQSLgoKcm9vbV9l", - "dmVudBgBIAEoCzIYLmxpdmVraXQucHJvdG8uUm9vbUV2ZW50SAASMAoLdHJh", - "Y2tfZXZlbnQYAiABKAsyGS5saXZla2l0LnByb3RvLlRyYWNrRXZlbnRIABI9", - "ChJ2aWRlb19zdHJlYW1fZXZlbnQYAyABKAsyHy5saXZla2l0LnByb3RvLlZp", - "ZGVvU3RyZWFtRXZlbnRIABI9ChJhdWRpb19zdHJlYW1fZXZlbnQYBCABKAsy", - "Hy5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtRXZlbnRIABIxCgdjb25uZWN0", - "GAUgASgLMh4ubGl2ZWtpdC5wcm90by5Db25uZWN0Q2FsbGJhY2tIABI3Cgpk", - "aXNjb25uZWN0GAcgASgLMiEubGl2ZWtpdC5wcm90by5EaXNjb25uZWN0Q2Fs", - "bGJhY2tIABIxCgdkaXNwb3NlGAggASgLMh4ubGl2ZWtpdC5wcm90by5EaXNw", - "b3NlQ2FsbGJhY2tIABI8Cg1wdWJsaXNoX3RyYWNrGAkgASgLMiMubGl2ZWtp", - "dC5wcm90by5QdWJsaXNoVHJhY2tDYWxsYmFja0gAEkAKD3VucHVibGlzaF90", - "cmFjaxgKIAEoCzIlLmxpdmVraXQucHJvdG8uVW5wdWJsaXNoVHJhY2tDYWxs", - "YmFja0gAEjoKDHB1Ymxpc2hfZGF0YRgLIAEoCzIiLmxpdmVraXQucHJvdG8u", - "UHVibGlzaERhdGFDYWxsYmFja0gAEkwKFXB1Ymxpc2hfdHJhbnNjcmlwdGlv", - "bhgMIAEoCzIrLmxpdmVraXQucHJvdG8uUHVibGlzaFRyYW5zY3JpcHRpb25D", - "YWxsYmFja0gAEkcKE2NhcHR1cmVfYXVkaW9fZnJhbWUYDSABKAsyKC5saXZl", - "a2l0LnByb3RvLkNhcHR1cmVBdWRpb0ZyYW1lQ2FsbGJhY2tIABJFChJzZXRf", - "bG9jYWxfbWV0YWRhdGEYDiABKAsyJy5saXZla2l0LnByb3RvLlNldExvY2Fs", - "TWV0YWRhdGFDYWxsYmFja0gAEj0KDnNldF9sb2NhbF9uYW1lGA8gASgLMiMu", - "bGl2ZWtpdC5wcm90by5TZXRMb2NhbE5hbWVDYWxsYmFja0gAEkkKFHNldF9s", - "b2NhbF9hdHRyaWJ1dGVzGBAgASgLMikubGl2ZWtpdC5wcm90by5TZXRMb2Nh", - "bEF0dHJpYnV0ZXNDYWxsYmFja0gAEjQKCWdldF9zdGF0cxgRIAEoCzIfLmxp", - "dmVraXQucHJvdG8uR2V0U3RhdHNDYWxsYmFja0gAEicKBGxvZ3MYEiABKAsy", - "Fy5saXZla2l0LnByb3RvLkxvZ0JhdGNoSAASQwoRZ2V0X3Nlc3Npb25fc3Rh", - "dHMYEyABKAsyJi5saXZla2l0LnByb3RvLkdldFNlc3Npb25TdGF0c0NhbGxi", - "YWNrSAASJQoFcGFuaWMYFCABKAsyFC5saXZla2l0LnByb3RvLlBhbmljSAAS", - "QQoQcHVibGlzaF9zaXBfZHRtZhgVIAEoCzIlLmxpdmVraXQucHJvdG8uUHVi", - "bGlzaFNpcER0bWZDYWxsYmFja0gAQgkKB21lc3NhZ2UiHwoORGlzcG9zZVJl", - "cXVlc3QSDQoFYXN5bmMYASABKAgiNQoPRGlzcG9zZVJlc3BvbnNlEhUKCGFz", - "eW5jX2lkGAEgASgESACIAQFCCwoJX2FzeW5jX2lkIiMKD0Rpc3Bvc2VDYWxs", - "YmFjaxIQCghhc3luY19pZBgBIAEoBCK2AQoJTG9nUmVjb3JkEiYKBWxldmVs", - "GAEgASgOMhcubGl2ZWtpdC5wcm90by5Mb2dMZXZlbBIOCgZ0YXJnZXQYAiAB", - "KAkSGAoLbW9kdWxlX3BhdGgYAyABKAlIAIgBARIRCgRmaWxlGAQgASgJSAGI", - "AQESEQoEbGluZRgFIAEoDUgCiAEBEg8KB21lc3NhZ2UYBiABKAlCDgoMX21v", - "ZHVsZV9wYXRoQgcKBV9maWxlQgcKBV9saW5lIjUKCExvZ0JhdGNoEikKB3Jl", - "Y29yZHMYASADKAsyGC5saXZla2l0LnByb3RvLkxvZ1JlY29yZCIYCgVQYW5p", - "YxIPCgdtZXNzYWdlGAEgASgJKlMKCExvZ0xldmVsEg0KCUxPR19FUlJPUhAA", - "EgwKCExPR19XQVJOEAESDAoITE9HX0lORk8QAhINCglMT0dfREVCVUcQAxIN", - "CglMT0dfVFJBQ0UQBEIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "ZnJhbWUucHJvdG8aCXJwYy5wcm90byKmFQoKRmZpUmVxdWVzdBIwCgdkaXNw", + "b3NlGAIgASgLMh0ubGl2ZWtpdC5wcm90by5EaXNwb3NlUmVxdWVzdEgAEjAK", + "B2Nvbm5lY3QYAyABKAsyHS5saXZla2l0LnByb3RvLkNvbm5lY3RSZXF1ZXN0", + "SAASNgoKZGlzY29ubmVjdBgEIAEoCzIgLmxpdmVraXQucHJvdG8uRGlzY29u", + "bmVjdFJlcXVlc3RIABI7Cg1wdWJsaXNoX3RyYWNrGAUgASgLMiIubGl2ZWtp", + "dC5wcm90by5QdWJsaXNoVHJhY2tSZXF1ZXN0SAASPwoPdW5wdWJsaXNoX3Ry", + "YWNrGAYgASgLMiQubGl2ZWtpdC5wcm90by5VbnB1Ymxpc2hUcmFja1JlcXVl", + "c3RIABI5CgxwdWJsaXNoX2RhdGEYByABKAsyIS5saXZla2l0LnByb3RvLlB1", + "Ymxpc2hEYXRhUmVxdWVzdEgAEj0KDnNldF9zdWJzY3JpYmVkGAggASgLMiMu", + "bGl2ZWtpdC5wcm90by5TZXRTdWJzY3JpYmVkUmVxdWVzdEgAEkQKEnNldF9s", + "b2NhbF9tZXRhZGF0YRgJIAEoCzImLmxpdmVraXQucHJvdG8uU2V0TG9jYWxN", + "ZXRhZGF0YVJlcXVlc3RIABI8Cg5zZXRfbG9jYWxfbmFtZRgKIAEoCzIiLmxp", + "dmVraXQucHJvdG8uU2V0TG9jYWxOYW1lUmVxdWVzdEgAEkgKFHNldF9sb2Nh", + "bF9hdHRyaWJ1dGVzGAsgASgLMigubGl2ZWtpdC5wcm90by5TZXRMb2NhbEF0", + "dHJpYnV0ZXNSZXF1ZXN0SAASQgoRZ2V0X3Nlc3Npb25fc3RhdHMYDCABKAsy", + "JS5saXZla2l0LnByb3RvLkdldFNlc3Npb25TdGF0c1JlcXVlc3RIABJLChVw", + "dWJsaXNoX3RyYW5zY3JpcHRpb24YDSABKAsyKi5saXZla2l0LnByb3RvLlB1", + "Ymxpc2hUcmFuc2NyaXB0aW9uUmVxdWVzdEgAEkAKEHB1Ymxpc2hfc2lwX2R0", + "bWYYDiABKAsyJC5saXZla2l0LnByb3RvLlB1Ymxpc2hTaXBEdG1mUmVxdWVz", + "dEgAEkQKEmNyZWF0ZV92aWRlb190cmFjaxgPIAEoCzImLmxpdmVraXQucHJv", + "dG8uQ3JlYXRlVmlkZW9UcmFja1JlcXVlc3RIABJEChJjcmVhdGVfYXVkaW9f", + "dHJhY2sYECABKAsyJi5saXZla2l0LnByb3RvLkNyZWF0ZUF1ZGlvVHJhY2tS", + "ZXF1ZXN0SAASQAoQbG9jYWxfdHJhY2tfbXV0ZRgRIAEoCzIkLmxpdmVraXQu", + "cHJvdG8uTG9jYWxUcmFja011dGVSZXF1ZXN0SAASRgoTZW5hYmxlX3JlbW90", + "ZV90cmFjaxgSIAEoCzInLmxpdmVraXQucHJvdG8uRW5hYmxlUmVtb3RlVHJh", + "Y2tSZXF1ZXN0SAASMwoJZ2V0X3N0YXRzGBMgASgLMh4ubGl2ZWtpdC5wcm90", + "by5HZXRTdGF0c1JlcXVlc3RIABJAChBuZXdfdmlkZW9fc3RyZWFtGBQgASgL", + "MiQubGl2ZWtpdC5wcm90by5OZXdWaWRlb1N0cmVhbVJlcXVlc3RIABJAChBu", + "ZXdfdmlkZW9fc291cmNlGBUgASgLMiQubGl2ZWtpdC5wcm90by5OZXdWaWRl", + "b1NvdXJjZVJlcXVlc3RIABJGChNjYXB0dXJlX3ZpZGVvX2ZyYW1lGBYgASgL", + "MicubGl2ZWtpdC5wcm90by5DYXB0dXJlVmlkZW9GcmFtZVJlcXVlc3RIABI7", + "Cg12aWRlb19jb252ZXJ0GBcgASgLMiIubGl2ZWtpdC5wcm90by5WaWRlb0Nv", + "bnZlcnRSZXF1ZXN0SAASWQoddmlkZW9fc3RyZWFtX2Zyb21fcGFydGljaXBh", + "bnQYGCABKAsyMC5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFtRnJvbVBhcnRp", + "Y2lwYW50UmVxdWVzdEgAEkAKEG5ld19hdWRpb19zdHJlYW0YGSABKAsyJC5s", + "aXZla2l0LnByb3RvLk5ld0F1ZGlvU3RyZWFtUmVxdWVzdEgAEkAKEG5ld19h", + "dWRpb19zb3VyY2UYGiABKAsyJC5saXZla2l0LnByb3RvLk5ld0F1ZGlvU291", + "cmNlUmVxdWVzdEgAEkYKE2NhcHR1cmVfYXVkaW9fZnJhbWUYGyABKAsyJy5s", + "aXZla2l0LnByb3RvLkNhcHR1cmVBdWRpb0ZyYW1lUmVxdWVzdEgAEkQKEmNs", + "ZWFyX2F1ZGlvX2J1ZmZlchgcIAEoCzImLmxpdmVraXQucHJvdG8uQ2xlYXJB", + "dWRpb0J1ZmZlclJlcXVlc3RIABJGChNuZXdfYXVkaW9fcmVzYW1wbGVyGB0g", + "ASgLMicubGl2ZWtpdC5wcm90by5OZXdBdWRpb1Jlc2FtcGxlclJlcXVlc3RI", + "ABJEChJyZW1peF9hbmRfcmVzYW1wbGUYHiABKAsyJi5saXZla2l0LnByb3Rv", + "LlJlbWl4QW5kUmVzYW1wbGVSZXF1ZXN0SAASKgoEZTJlZRgfIAEoCzIaLmxp", + "dmVraXQucHJvdG8uRTJlZVJlcXVlc3RIABJZCh1hdWRpb19zdHJlYW1fZnJv", + "bV9wYXJ0aWNpcGFudBggIAEoCzIwLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl", + "YW1Gcm9tUGFydGljaXBhbnRSZXF1ZXN0SAASQgoRbmV3X3NveF9yZXNhbXBs", + "ZXIYISABKAsyJS5saXZla2l0LnByb3RvLk5ld1NveFJlc2FtcGxlclJlcXVl", + "c3RIABJEChJwdXNoX3NveF9yZXNhbXBsZXIYIiABKAsyJi5saXZla2l0LnBy", + "b3RvLlB1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0SAASRgoTZmx1c2hfc294X3Jl", + "c2FtcGxlchgjIAEoCzInLmxpdmVraXQucHJvdG8uRmx1c2hTb3hSZXNhbXBs", + "ZXJSZXF1ZXN0SAASQgoRc2VuZF9jaGF0X21lc3NhZ2UYJCABKAsyJS5saXZl", + "a2l0LnByb3RvLlNlbmRDaGF0TWVzc2FnZVJlcXVlc3RIABJCChFlZGl0X2No", + "YXRfbWVzc2FnZRglIAEoCzIlLmxpdmVraXQucHJvdG8uRWRpdENoYXRNZXNz", + "YWdlUmVxdWVzdEgAEjcKC3BlcmZvcm1fcnBjGCYgASgLMiAubGl2ZWtpdC5w", + "cm90by5QZXJmb3JtUnBjUmVxdWVzdEgAEkYKE3JlZ2lzdGVyX3JwY19tZXRo", + "b2QYJyABKAsyJy5saXZla2l0LnByb3RvLlJlZ2lzdGVyUnBjTWV0aG9kUmVx", + "dWVzdEgAEkoKFXVucmVnaXN0ZXJfcnBjX21ldGhvZBgoIAEoCzIpLmxpdmVr", + "aXQucHJvdG8uVW5yZWdpc3RlclJwY01ldGhvZFJlcXVlc3RIABJbCh5ycGNf", + "bWV0aG9kX2ludm9jYXRpb25fcmVzcG9uc2UYKSABKAsyMS5saXZla2l0LnBy", + "b3RvLlJwY01ldGhvZEludm9jYXRpb25SZXNwb25zZVJlcXVlc3RIAEIJCgdt", + "ZXNzYWdlIooVCgtGZmlSZXNwb25zZRIxCgdkaXNwb3NlGAIgASgLMh4ubGl2", + "ZWtpdC5wcm90by5EaXNwb3NlUmVzcG9uc2VIABIxCgdjb25uZWN0GAMgASgL", + "Mh4ubGl2ZWtpdC5wcm90by5Db25uZWN0UmVzcG9uc2VIABI3CgpkaXNjb25u", + "ZWN0GAQgASgLMiEubGl2ZWtpdC5wcm90by5EaXNjb25uZWN0UmVzcG9uc2VI", + "ABI8Cg1wdWJsaXNoX3RyYWNrGAUgASgLMiMubGl2ZWtpdC5wcm90by5QdWJs", + "aXNoVHJhY2tSZXNwb25zZUgAEkAKD3VucHVibGlzaF90cmFjaxgGIAEoCzIl", + "LmxpdmVraXQucHJvdG8uVW5wdWJsaXNoVHJhY2tSZXNwb25zZUgAEjoKDHB1", + "Ymxpc2hfZGF0YRgHIAEoCzIiLmxpdmVraXQucHJvdG8uUHVibGlzaERhdGFS", + "ZXNwb25zZUgAEj4KDnNldF9zdWJzY3JpYmVkGAggASgLMiQubGl2ZWtpdC5w", + "cm90by5TZXRTdWJzY3JpYmVkUmVzcG9uc2VIABJFChJzZXRfbG9jYWxfbWV0", + "YWRhdGEYCSABKAsyJy5saXZla2l0LnByb3RvLlNldExvY2FsTWV0YWRhdGFS", + "ZXNwb25zZUgAEj0KDnNldF9sb2NhbF9uYW1lGAogASgLMiMubGl2ZWtpdC5w", + "cm90by5TZXRMb2NhbE5hbWVSZXNwb25zZUgAEkkKFHNldF9sb2NhbF9hdHRy", + "aWJ1dGVzGAsgASgLMikubGl2ZWtpdC5wcm90by5TZXRMb2NhbEF0dHJpYnV0", + "ZXNSZXNwb25zZUgAEkMKEWdldF9zZXNzaW9uX3N0YXRzGAwgASgLMiYubGl2", + "ZWtpdC5wcm90by5HZXRTZXNzaW9uU3RhdHNSZXNwb25zZUgAEkwKFXB1Ymxp", + "c2hfdHJhbnNjcmlwdGlvbhgNIAEoCzIrLmxpdmVraXQucHJvdG8uUHVibGlz", + "aFRyYW5zY3JpcHRpb25SZXNwb25zZUgAEkEKEHB1Ymxpc2hfc2lwX2R0bWYY", + "DiABKAsyJS5saXZla2l0LnByb3RvLlB1Ymxpc2hTaXBEdG1mUmVzcG9uc2VI", + "ABJFChJjcmVhdGVfdmlkZW9fdHJhY2sYDyABKAsyJy5saXZla2l0LnByb3Rv", + "LkNyZWF0ZVZpZGVvVHJhY2tSZXNwb25zZUgAEkUKEmNyZWF0ZV9hdWRpb190", + "cmFjaxgQIAEoCzInLmxpdmVraXQucHJvdG8uQ3JlYXRlQXVkaW9UcmFja1Jl", + "c3BvbnNlSAASQQoQbG9jYWxfdHJhY2tfbXV0ZRgRIAEoCzIlLmxpdmVraXQu", + "cHJvdG8uTG9jYWxUcmFja011dGVSZXNwb25zZUgAEkcKE2VuYWJsZV9yZW1v", + "dGVfdHJhY2sYEiABKAsyKC5saXZla2l0LnByb3RvLkVuYWJsZVJlbW90ZVRy", + "YWNrUmVzcG9uc2VIABI0CglnZXRfc3RhdHMYEyABKAsyHy5saXZla2l0LnBy", + "b3RvLkdldFN0YXRzUmVzcG9uc2VIABJBChBuZXdfdmlkZW9fc3RyZWFtGBQg", + "ASgLMiUubGl2ZWtpdC5wcm90by5OZXdWaWRlb1N0cmVhbVJlc3BvbnNlSAAS", + "QQoQbmV3X3ZpZGVvX3NvdXJjZRgVIAEoCzIlLmxpdmVraXQucHJvdG8uTmV3", + "VmlkZW9Tb3VyY2VSZXNwb25zZUgAEkcKE2NhcHR1cmVfdmlkZW9fZnJhbWUY", + "FiABKAsyKC5saXZla2l0LnByb3RvLkNhcHR1cmVWaWRlb0ZyYW1lUmVzcG9u", + "c2VIABI8Cg12aWRlb19jb252ZXJ0GBcgASgLMiMubGl2ZWtpdC5wcm90by5W", + "aWRlb0NvbnZlcnRSZXNwb25zZUgAEloKHXZpZGVvX3N0cmVhbV9mcm9tX3Bh", + "cnRpY2lwYW50GBggASgLMjEubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbUZy", + "b21QYXJ0aWNpcGFudFJlc3BvbnNlSAASQQoQbmV3X2F1ZGlvX3N0cmVhbRgZ", + "IAEoCzIlLmxpdmVraXQucHJvdG8uTmV3QXVkaW9TdHJlYW1SZXNwb25zZUgA", + "EkEKEG5ld19hdWRpb19zb3VyY2UYGiABKAsyJS5saXZla2l0LnByb3RvLk5l", + "d0F1ZGlvU291cmNlUmVzcG9uc2VIABJHChNjYXB0dXJlX2F1ZGlvX2ZyYW1l", + "GBsgASgLMigubGl2ZWtpdC5wcm90by5DYXB0dXJlQXVkaW9GcmFtZVJlc3Bv", + "bnNlSAASRQoSY2xlYXJfYXVkaW9fYnVmZmVyGBwgASgLMicubGl2ZWtpdC5w", + "cm90by5DbGVhckF1ZGlvQnVmZmVyUmVzcG9uc2VIABJHChNuZXdfYXVkaW9f", + "cmVzYW1wbGVyGB0gASgLMigubGl2ZWtpdC5wcm90by5OZXdBdWRpb1Jlc2Ft", + "cGxlclJlc3BvbnNlSAASRQoScmVtaXhfYW5kX3Jlc2FtcGxlGB4gASgLMicu", + "bGl2ZWtpdC5wcm90by5SZW1peEFuZFJlc2FtcGxlUmVzcG9uc2VIABJaCh1h", + "dWRpb19zdHJlYW1fZnJvbV9wYXJ0aWNpcGFudBgfIAEoCzIxLmxpdmVraXQu", + "cHJvdG8uQXVkaW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXNwb25zZUgAEisK", + "BGUyZWUYICABKAsyGy5saXZla2l0LnByb3RvLkUyZWVSZXNwb25zZUgAEkMK", + "EW5ld19zb3hfcmVzYW1wbGVyGCEgASgLMiYubGl2ZWtpdC5wcm90by5OZXdT", + "b3hSZXNhbXBsZXJSZXNwb25zZUgAEkUKEnB1c2hfc294X3Jlc2FtcGxlchgi", + "IAEoCzInLmxpdmVraXQucHJvdG8uUHVzaFNveFJlc2FtcGxlclJlc3BvbnNl", + "SAASRwoTZmx1c2hfc294X3Jlc2FtcGxlchgjIAEoCzIoLmxpdmVraXQucHJv", + "dG8uRmx1c2hTb3hSZXNhbXBsZXJSZXNwb25zZUgAEkMKEXNlbmRfY2hhdF9t", + "ZXNzYWdlGCQgASgLMiYubGl2ZWtpdC5wcm90by5TZW5kQ2hhdE1lc3NhZ2VS", + "ZXNwb25zZUgAEjgKC3BlcmZvcm1fcnBjGCUgASgLMiEubGl2ZWtpdC5wcm90", + "by5QZXJmb3JtUnBjUmVzcG9uc2VIABJHChNyZWdpc3Rlcl9ycGNfbWV0aG9k", + "GCYgASgLMigubGl2ZWtpdC5wcm90by5SZWdpc3RlclJwY01ldGhvZFJlc3Bv", + "bnNlSAASSwoVdW5yZWdpc3Rlcl9ycGNfbWV0aG9kGCcgASgLMioubGl2ZWtp", + "dC5wcm90by5VbnJlZ2lzdGVyUnBjTWV0aG9kUmVzcG9uc2VIABJcCh5ycGNf", + "bWV0aG9kX2ludm9jYXRpb25fcmVzcG9uc2UYKCABKAsyMi5saXZla2l0LnBy", + "b3RvLlJwY01ldGhvZEludm9jYXRpb25SZXNwb25zZVJlc3BvbnNlSABCCQoH", + "bWVzc2FnZSKKCwoIRmZpRXZlbnQSLgoKcm9vbV9ldmVudBgBIAEoCzIYLmxp", + "dmVraXQucHJvdG8uUm9vbUV2ZW50SAASMAoLdHJhY2tfZXZlbnQYAiABKAsy", + "GS5saXZla2l0LnByb3RvLlRyYWNrRXZlbnRIABI9ChJ2aWRlb19zdHJlYW1f", + "ZXZlbnQYAyABKAsyHy5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFtRXZlbnRI", + "ABI9ChJhdWRpb19zdHJlYW1fZXZlbnQYBCABKAsyHy5saXZla2l0LnByb3Rv", + "LkF1ZGlvU3RyZWFtRXZlbnRIABIxCgdjb25uZWN0GAUgASgLMh4ubGl2ZWtp", + "dC5wcm90by5Db25uZWN0Q2FsbGJhY2tIABI3CgpkaXNjb25uZWN0GAcgASgL", + "MiEubGl2ZWtpdC5wcm90by5EaXNjb25uZWN0Q2FsbGJhY2tIABIxCgdkaXNw", + "b3NlGAggASgLMh4ubGl2ZWtpdC5wcm90by5EaXNwb3NlQ2FsbGJhY2tIABI8", + "Cg1wdWJsaXNoX3RyYWNrGAkgASgLMiMubGl2ZWtpdC5wcm90by5QdWJsaXNo", + "VHJhY2tDYWxsYmFja0gAEkAKD3VucHVibGlzaF90cmFjaxgKIAEoCzIlLmxp", + "dmVraXQucHJvdG8uVW5wdWJsaXNoVHJhY2tDYWxsYmFja0gAEjoKDHB1Ymxp", + "c2hfZGF0YRgLIAEoCzIiLmxpdmVraXQucHJvdG8uUHVibGlzaERhdGFDYWxs", + "YmFja0gAEkwKFXB1Ymxpc2hfdHJhbnNjcmlwdGlvbhgMIAEoCzIrLmxpdmVr", + "aXQucHJvdG8uUHVibGlzaFRyYW5zY3JpcHRpb25DYWxsYmFja0gAEkcKE2Nh", + "cHR1cmVfYXVkaW9fZnJhbWUYDSABKAsyKC5saXZla2l0LnByb3RvLkNhcHR1", + "cmVBdWRpb0ZyYW1lQ2FsbGJhY2tIABJFChJzZXRfbG9jYWxfbWV0YWRhdGEY", + "DiABKAsyJy5saXZla2l0LnByb3RvLlNldExvY2FsTWV0YWRhdGFDYWxsYmFj", + "a0gAEj0KDnNldF9sb2NhbF9uYW1lGA8gASgLMiMubGl2ZWtpdC5wcm90by5T", + "ZXRMb2NhbE5hbWVDYWxsYmFja0gAEkkKFHNldF9sb2NhbF9hdHRyaWJ1dGVz", + "GBAgASgLMikubGl2ZWtpdC5wcm90by5TZXRMb2NhbEF0dHJpYnV0ZXNDYWxs", + "YmFja0gAEjQKCWdldF9zdGF0cxgRIAEoCzIfLmxpdmVraXQucHJvdG8uR2V0", + "U3RhdHNDYWxsYmFja0gAEicKBGxvZ3MYEiABKAsyFy5saXZla2l0LnByb3Rv", + "LkxvZ0JhdGNoSAASQwoRZ2V0X3Nlc3Npb25fc3RhdHMYEyABKAsyJi5saXZl", + "a2l0LnByb3RvLkdldFNlc3Npb25TdGF0c0NhbGxiYWNrSAASJQoFcGFuaWMY", + "FCABKAsyFC5saXZla2l0LnByb3RvLlBhbmljSAASQQoQcHVibGlzaF9zaXBf", + "ZHRtZhgVIAEoCzIlLmxpdmVraXQucHJvdG8uUHVibGlzaFNpcER0bWZDYWxs", + "YmFja0gAEj4KDGNoYXRfbWVzc2FnZRgWIAEoCzImLmxpdmVraXQucHJvdG8u", + "U2VuZENoYXRNZXNzYWdlQ2FsbGJhY2tIABI4CgtwZXJmb3JtX3JwYxgXIAEo", + "CzIhLmxpdmVraXQucHJvdG8uUGVyZm9ybVJwY0NhbGxiYWNrSAASSAoVcnBj", + "X21ldGhvZF9pbnZvY2F0aW9uGBggASgLMicubGl2ZWtpdC5wcm90by5ScGNN", + "ZXRob2RJbnZvY2F0aW9uRXZlbnRIAEIJCgdtZXNzYWdlIh8KDkRpc3Bvc2VS", + "ZXF1ZXN0Eg0KBWFzeW5jGAEgAigIIiMKD0Rpc3Bvc2VSZXNwb25zZRIQCghh", + "c3luY19pZBgBIAEoBCIjCg9EaXNwb3NlQ2FsbGJhY2sSEAoIYXN5bmNfaWQY", + "ASACKAQihQEKCUxvZ1JlY29yZBImCgVsZXZlbBgBIAIoDjIXLmxpdmVraXQu", + "cHJvdG8uTG9nTGV2ZWwSDgoGdGFyZ2V0GAIgAigJEhMKC21vZHVsZV9wYXRo", + "GAMgASgJEgwKBGZpbGUYBCABKAkSDAoEbGluZRgFIAEoDRIPCgdtZXNzYWdl", + "GAYgAigJIjUKCExvZ0JhdGNoEikKB3JlY29yZHMYASADKAsyGC5saXZla2l0", + "LnByb3RvLkxvZ1JlY29yZCIYCgVQYW5pYxIPCgdtZXNzYWdlGAEgAigJKlMK", + "CExvZ0xldmVsEg0KCUxPR19FUlJPUhAAEgwKCExPR19XQVJOEAESDAoITE9H", + "X0lORk8QAhINCglMT0dfREVCVUcQAxINCglMT0dfVFJBQ0UQBEIQqgINTGl2", + "ZUtpdC5Qcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - 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::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, global::LiveKit.Proto.RpcReflection.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", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetSessionStats", "PublishTranscription", "PublishSipDtmf", "CreateVideoTrack", "CreateAudioTrack", "LocalTrackMute", "EnableRemoteTrack", "GetStats", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "VideoConvert", "VideoStreamFromParticipant", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample", "E2Ee", "AudioStreamFromParticipant" }, 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", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetSessionStats", "PublishTranscription", "PublishSipDtmf", "CreateVideoTrack", "CreateAudioTrack", "LocalTrackMute", "EnableRemoteTrack", "GetStats", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "VideoConvert", "VideoStreamFromParticipant", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "NewAudioResampler", "RemixAndResample", "AudioStreamFromParticipant", "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", "PublishTranscription", "CaptureAudioFrame", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetStats", "Logs", "GetSessionStats", "Panic", "PublishSipDtmf" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.FfiRequest), global::LiveKit.Proto.FfiRequest.Parser, new[]{ "Dispose", "Connect", "Disconnect", "PublishTrack", "UnpublishTrack", "PublishData", "SetSubscribed", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetSessionStats", "PublishTranscription", "PublishSipDtmf", "CreateVideoTrack", "CreateAudioTrack", "LocalTrackMute", "EnableRemoteTrack", "GetStats", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "VideoConvert", "VideoStreamFromParticipant", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "ClearAudioBuffer", "NewAudioResampler", "RemixAndResample", "E2Ee", "AudioStreamFromParticipant", "NewSoxResampler", "PushSoxResampler", "FlushSoxResampler", "SendChatMessage", "EditChatMessage", "PerformRpc", "RegisterRpcMethod", "UnregisterRpcMethod", "RpcMethodInvocationResponse" }, 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", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetSessionStats", "PublishTranscription", "PublishSipDtmf", "CreateVideoTrack", "CreateAudioTrack", "LocalTrackMute", "EnableRemoteTrack", "GetStats", "NewVideoStream", "NewVideoSource", "CaptureVideoFrame", "VideoConvert", "VideoStreamFromParticipant", "NewAudioStream", "NewAudioSource", "CaptureAudioFrame", "ClearAudioBuffer", "NewAudioResampler", "RemixAndResample", "AudioStreamFromParticipant", "E2Ee", "NewSoxResampler", "PushSoxResampler", "FlushSoxResampler", "SendChatMessage", "PerformRpc", "RegisterRpcMethod", "UnregisterRpcMethod", "RpcMethodInvocationResponse" }, 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", "PublishTranscription", "CaptureAudioFrame", "SetLocalMetadata", "SetLocalName", "SetLocalAttributes", "GetStats", "Logs", "GetSessionStats", "Panic", "PublishSipDtmf", "ChatMessage", "PerformRpc", "RpcMethodInvocation" }, 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.DisposeResponse), global::LiveKit.Proto.DisposeResponse.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.LogRecord), global::LiveKit.Proto.LogRecord.Parser, new[]{ "Level", "Target", "ModulePath", "File", "Line", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LogBatch), global::LiveKit.Proto.LogBatch.Parser, new[]{ "Records" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.Panic), global::LiveKit.Proto.Panic.Parser, new[]{ "Message" }, null, null, null, null) })); @@ -302,6 +336,9 @@ public FfiRequest(FfiRequest other) : this() { case MessageOneofCase.CaptureAudioFrame: CaptureAudioFrame = other.CaptureAudioFrame.Clone(); break; + case MessageOneofCase.ClearAudioBuffer: + ClearAudioBuffer = other.ClearAudioBuffer.Clone(); + break; case MessageOneofCase.NewAudioResampler: NewAudioResampler = other.NewAudioResampler.Clone(); break; @@ -314,6 +351,33 @@ public FfiRequest(FfiRequest other) : this() { case MessageOneofCase.AudioStreamFromParticipant: AudioStreamFromParticipant = other.AudioStreamFromParticipant.Clone(); break; + case MessageOneofCase.NewSoxResampler: + NewSoxResampler = other.NewSoxResampler.Clone(); + break; + case MessageOneofCase.PushSoxResampler: + PushSoxResampler = other.PushSoxResampler.Clone(); + break; + case MessageOneofCase.FlushSoxResampler: + FlushSoxResampler = other.FlushSoxResampler.Clone(); + break; + case MessageOneofCase.SendChatMessage: + SendChatMessage = other.SendChatMessage.Clone(); + break; + case MessageOneofCase.EditChatMessage: + EditChatMessage = other.EditChatMessage.Clone(); + break; + case MessageOneofCase.PerformRpc: + PerformRpc = other.PerformRpc.Clone(); + break; + case MessageOneofCase.RegisterRpcMethod: + RegisterRpcMethod = other.RegisterRpcMethod.Clone(); + break; + case MessageOneofCase.UnregisterRpcMethod: + UnregisterRpcMethod = other.UnregisterRpcMethod.Clone(); + break; + case MessageOneofCase.RpcMethodInvocationResponse: + RpcMethodInvocationResponse = other.RpcMethodInvocationResponse.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -649,8 +713,20 @@ public FfiRequest Clone() { } } + /// Field number for the "clear_audio_buffer" field. + public const int ClearAudioBufferFieldNumber = 28; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ClearAudioBufferRequest ClearAudioBuffer { + get { return messageCase_ == MessageOneofCase.ClearAudioBuffer ? (global::LiveKit.Proto.ClearAudioBufferRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ClearAudioBuffer; + } + } + /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 28; + public const int NewAudioResamplerFieldNumber = 29; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerRequest NewAudioResampler { @@ -662,7 +738,7 @@ public FfiRequest Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 29; + public const int RemixAndResampleFieldNumber = 30; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleRequest RemixAndResample { @@ -674,7 +750,7 @@ public FfiRequest Clone() { } /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 30; + public const int E2EeFieldNumber = 31; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.E2eeRequest E2Ee { @@ -686,7 +762,7 @@ public FfiRequest Clone() { } /// Field number for the "audio_stream_from_participant" field. - public const int AudioStreamFromParticipantFieldNumber = 31; + public const int AudioStreamFromParticipantFieldNumber = 32; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioStreamFromParticipantRequest AudioStreamFromParticipant { @@ -697,6 +773,117 @@ public FfiRequest Clone() { } } + /// Field number for the "new_sox_resampler" field. + public const int NewSoxResamplerFieldNumber = 33; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.NewSoxResamplerRequest NewSoxResampler { + get { return messageCase_ == MessageOneofCase.NewSoxResampler ? (global::LiveKit.Proto.NewSoxResamplerRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.NewSoxResampler; + } + } + + /// Field number for the "push_sox_resampler" field. + public const int PushSoxResamplerFieldNumber = 34; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PushSoxResamplerRequest PushSoxResampler { + get { return messageCase_ == MessageOneofCase.PushSoxResampler ? (global::LiveKit.Proto.PushSoxResamplerRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PushSoxResampler; + } + } + + /// Field number for the "flush_sox_resampler" field. + public const int FlushSoxResamplerFieldNumber = 35; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FlushSoxResamplerRequest FlushSoxResampler { + get { return messageCase_ == MessageOneofCase.FlushSoxResampler ? (global::LiveKit.Proto.FlushSoxResamplerRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FlushSoxResampler; + } + } + + /// Field number for the "send_chat_message" field. + public const int SendChatMessageFieldNumber = 36; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SendChatMessageRequest SendChatMessage { + get { return messageCase_ == MessageOneofCase.SendChatMessage ? (global::LiveKit.Proto.SendChatMessageRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SendChatMessage; + } + } + + /// Field number for the "edit_chat_message" field. + public const int EditChatMessageFieldNumber = 37; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.EditChatMessageRequest EditChatMessage { + get { return messageCase_ == MessageOneofCase.EditChatMessage ? (global::LiveKit.Proto.EditChatMessageRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.EditChatMessage; + } + } + + /// Field number for the "perform_rpc" field. + public const int PerformRpcFieldNumber = 38; + /// + /// RPC + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PerformRpcRequest PerformRpc { + get { return messageCase_ == MessageOneofCase.PerformRpc ? (global::LiveKit.Proto.PerformRpcRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PerformRpc; + } + } + + /// Field number for the "register_rpc_method" field. + public const int RegisterRpcMethodFieldNumber = 39; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RegisterRpcMethodRequest RegisterRpcMethod { + get { return messageCase_ == MessageOneofCase.RegisterRpcMethod ? (global::LiveKit.Proto.RegisterRpcMethodRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RegisterRpcMethod; + } + } + + /// Field number for the "unregister_rpc_method" field. + public const int UnregisterRpcMethodFieldNumber = 40; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.UnregisterRpcMethodRequest UnregisterRpcMethod { + get { return messageCase_ == MessageOneofCase.UnregisterRpcMethod ? (global::LiveKit.Proto.UnregisterRpcMethodRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UnregisterRpcMethod; + } + } + + /// Field number for the "rpc_method_invocation_response" field. + public const int RpcMethodInvocationResponseFieldNumber = 41; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RpcMethodInvocationResponseRequest RpcMethodInvocationResponse { + get { return messageCase_ == MessageOneofCase.RpcMethodInvocationResponse ? (global::LiveKit.Proto.RpcMethodInvocationResponseRequest) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RpcMethodInvocationResponse; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { @@ -727,10 +914,20 @@ public enum MessageOneofCase { NewAudioStream = 25, NewAudioSource = 26, CaptureAudioFrame = 27, - NewAudioResampler = 28, - RemixAndResample = 29, - E2Ee = 30, - AudioStreamFromParticipant = 31, + ClearAudioBuffer = 28, + NewAudioResampler = 29, + RemixAndResample = 30, + E2Ee = 31, + AudioStreamFromParticipant = 32, + NewSoxResampler = 33, + PushSoxResampler = 34, + FlushSoxResampler = 35, + SendChatMessage = 36, + EditChatMessage = 37, + PerformRpc = 38, + RegisterRpcMethod = 39, + UnregisterRpcMethod = 40, + RpcMethodInvocationResponse = 41, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -787,10 +984,20 @@ public bool Equals(FfiRequest other) { if (!object.Equals(NewAudioStream, other.NewAudioStream)) return false; if (!object.Equals(NewAudioSource, other.NewAudioSource)) return false; if (!object.Equals(CaptureAudioFrame, other.CaptureAudioFrame)) return false; + if (!object.Equals(ClearAudioBuffer, other.ClearAudioBuffer)) return false; if (!object.Equals(NewAudioResampler, other.NewAudioResampler)) return false; if (!object.Equals(RemixAndResample, other.RemixAndResample)) return false; if (!object.Equals(E2Ee, other.E2Ee)) return false; if (!object.Equals(AudioStreamFromParticipant, other.AudioStreamFromParticipant)) return false; + if (!object.Equals(NewSoxResampler, other.NewSoxResampler)) return false; + if (!object.Equals(PushSoxResampler, other.PushSoxResampler)) return false; + if (!object.Equals(FlushSoxResampler, other.FlushSoxResampler)) return false; + if (!object.Equals(SendChatMessage, other.SendChatMessage)) return false; + if (!object.Equals(EditChatMessage, other.EditChatMessage)) return false; + if (!object.Equals(PerformRpc, other.PerformRpc)) return false; + if (!object.Equals(RegisterRpcMethod, other.RegisterRpcMethod)) return false; + if (!object.Equals(UnregisterRpcMethod, other.UnregisterRpcMethod)) return false; + if (!object.Equals(RpcMethodInvocationResponse, other.RpcMethodInvocationResponse)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -825,10 +1032,20 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.NewAudioStream) hash ^= NewAudioStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioSource) hash ^= NewAudioSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) hash ^= CaptureAudioFrame.GetHashCode(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) hash ^= ClearAudioBuffer.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioResampler) hash ^= NewAudioResampler.GetHashCode(); if (messageCase_ == MessageOneofCase.RemixAndResample) hash ^= RemixAndResample.GetHashCode(); if (messageCase_ == MessageOneofCase.E2Ee) hash ^= E2Ee.GetHashCode(); if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) hash ^= AudioStreamFromParticipant.GetHashCode(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) hash ^= NewSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) hash ^= PushSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) hash ^= FlushSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.SendChatMessage) hash ^= SendChatMessage.GetHashCode(); + if (messageCase_ == MessageOneofCase.EditChatMessage) hash ^= EditChatMessage.GetHashCode(); + if (messageCase_ == MessageOneofCase.PerformRpc) hash ^= PerformRpc.GetHashCode(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) hash ^= RegisterRpcMethod.GetHashCode(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) hash ^= UnregisterRpcMethod.GetHashCode(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) hash ^= RpcMethodInvocationResponse.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -952,22 +1169,62 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.NewAudioResampler) { + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { output.WriteRawTag(226, 1); + output.WriteMessage(ClearAudioBuffer); + } + if (messageCase_ == MessageOneofCase.NewAudioResampler) { + output.WriteRawTag(234, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(234, 1); + output.WriteRawTag(242, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(242, 1); + output.WriteRawTag(250, 1); output.WriteMessage(E2Ee); } if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { - output.WriteRawTag(250, 1); + output.WriteRawTag(130, 2); output.WriteMessage(AudioStreamFromParticipant); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + output.WriteRawTag(138, 2); + output.WriteMessage(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + output.WriteRawTag(146, 2); + output.WriteMessage(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + output.WriteRawTag(154, 2); + output.WriteMessage(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + output.WriteRawTag(162, 2); + output.WriteMessage(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.EditChatMessage) { + output.WriteRawTag(170, 2); + output.WriteMessage(EditChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(178, 2); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + output.WriteRawTag(186, 2); + output.WriteMessage(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + output.WriteRawTag(194, 2); + output.WriteMessage(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + output.WriteRawTag(202, 2); + output.WriteMessage(RpcMethodInvocationResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1082,22 +1339,62 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.NewAudioResampler) { + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { output.WriteRawTag(226, 1); + output.WriteMessage(ClearAudioBuffer); + } + if (messageCase_ == MessageOneofCase.NewAudioResampler) { + output.WriteRawTag(234, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(234, 1); + output.WriteRawTag(242, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(242, 1); + output.WriteRawTag(250, 1); output.WriteMessage(E2Ee); } if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { - output.WriteRawTag(250, 1); + output.WriteRawTag(130, 2); output.WriteMessage(AudioStreamFromParticipant); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + output.WriteRawTag(138, 2); + output.WriteMessage(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + output.WriteRawTag(146, 2); + output.WriteMessage(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + output.WriteRawTag(154, 2); + output.WriteMessage(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + output.WriteRawTag(162, 2); + output.WriteMessage(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.EditChatMessage) { + output.WriteRawTag(170, 2); + output.WriteMessage(EditChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(178, 2); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + output.WriteRawTag(186, 2); + output.WriteMessage(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + output.WriteRawTag(194, 2); + output.WriteMessage(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + output.WriteRawTag(202, 2); + output.WriteMessage(RpcMethodInvocationResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1186,6 +1483,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaptureAudioFrame); } + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClearAudioBuffer); + } if (messageCase_ == MessageOneofCase.NewAudioResampler) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioResampler); } @@ -1198,6 +1498,33 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudioStreamFromParticipant); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.EditChatMessage) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(EditChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RpcMethodInvocationResponse); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1367,6 +1694,12 @@ public void MergeFrom(FfiRequest other) { } CaptureAudioFrame.MergeFrom(other.CaptureAudioFrame); break; + case MessageOneofCase.ClearAudioBuffer: + if (ClearAudioBuffer == null) { + ClearAudioBuffer = new global::LiveKit.Proto.ClearAudioBufferRequest(); + } + ClearAudioBuffer.MergeFrom(other.ClearAudioBuffer); + break; case MessageOneofCase.NewAudioResampler: if (NewAudioResampler == null) { NewAudioResampler = new global::LiveKit.Proto.NewAudioResamplerRequest(); @@ -1391,6 +1724,60 @@ public void MergeFrom(FfiRequest other) { } AudioStreamFromParticipant.MergeFrom(other.AudioStreamFromParticipant); break; + case MessageOneofCase.NewSoxResampler: + if (NewSoxResampler == null) { + NewSoxResampler = new global::LiveKit.Proto.NewSoxResamplerRequest(); + } + NewSoxResampler.MergeFrom(other.NewSoxResampler); + break; + case MessageOneofCase.PushSoxResampler: + if (PushSoxResampler == null) { + PushSoxResampler = new global::LiveKit.Proto.PushSoxResamplerRequest(); + } + PushSoxResampler.MergeFrom(other.PushSoxResampler); + break; + case MessageOneofCase.FlushSoxResampler: + if (FlushSoxResampler == null) { + FlushSoxResampler = new global::LiveKit.Proto.FlushSoxResamplerRequest(); + } + FlushSoxResampler.MergeFrom(other.FlushSoxResampler); + break; + case MessageOneofCase.SendChatMessage: + if (SendChatMessage == null) { + SendChatMessage = new global::LiveKit.Proto.SendChatMessageRequest(); + } + SendChatMessage.MergeFrom(other.SendChatMessage); + break; + case MessageOneofCase.EditChatMessage: + if (EditChatMessage == null) { + EditChatMessage = new global::LiveKit.Proto.EditChatMessageRequest(); + } + EditChatMessage.MergeFrom(other.EditChatMessage); + break; + case MessageOneofCase.PerformRpc: + if (PerformRpc == null) { + PerformRpc = new global::LiveKit.Proto.PerformRpcRequest(); + } + PerformRpc.MergeFrom(other.PerformRpc); + break; + case MessageOneofCase.RegisterRpcMethod: + if (RegisterRpcMethod == null) { + RegisterRpcMethod = new global::LiveKit.Proto.RegisterRpcMethodRequest(); + } + RegisterRpcMethod.MergeFrom(other.RegisterRpcMethod); + break; + case MessageOneofCase.UnregisterRpcMethod: + if (UnregisterRpcMethod == null) { + UnregisterRpcMethod = new global::LiveKit.Proto.UnregisterRpcMethodRequest(); + } + UnregisterRpcMethod.MergeFrom(other.UnregisterRpcMethod); + break; + case MessageOneofCase.RpcMethodInvocationResponse: + if (RpcMethodInvocationResponse == null) { + RpcMethodInvocationResponse = new global::LiveKit.Proto.RpcMethodInvocationResponseRequest(); + } + RpcMethodInvocationResponse.MergeFrom(other.RpcMethodInvocationResponse); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1404,7 +1791,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1643,6 +2034,15 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 226: { + global::LiveKit.Proto.ClearAudioBufferRequest subBuilder = new global::LiveKit.Proto.ClearAudioBufferRequest(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + subBuilder.MergeFrom(ClearAudioBuffer); + } + input.ReadMessage(subBuilder); + ClearAudioBuffer = subBuilder; + break; + } + case 234: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1651,7 +2051,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 234: { + case 242: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1660,7 +2060,7 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 242: { + case 250: { global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -1669,7 +2069,7 @@ public void MergeFrom(pb::CodedInputStream input) { E2Ee = subBuilder; break; } - case 250: { + case 258: { global::LiveKit.Proto.AudioStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantRequest(); if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { subBuilder.MergeFrom(AudioStreamFromParticipant); @@ -1678,6 +2078,87 @@ public void MergeFrom(pb::CodedInputStream input) { AudioStreamFromParticipant = subBuilder; break; } + case 266: { + global::LiveKit.Proto.NewSoxResamplerRequest subBuilder = new global::LiveKit.Proto.NewSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + subBuilder.MergeFrom(NewSoxResampler); + } + input.ReadMessage(subBuilder); + NewSoxResampler = subBuilder; + break; + } + case 274: { + global::LiveKit.Proto.PushSoxResamplerRequest subBuilder = new global::LiveKit.Proto.PushSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + subBuilder.MergeFrom(PushSoxResampler); + } + input.ReadMessage(subBuilder); + PushSoxResampler = subBuilder; + break; + } + case 282: { + global::LiveKit.Proto.FlushSoxResamplerRequest subBuilder = new global::LiveKit.Proto.FlushSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + subBuilder.MergeFrom(FlushSoxResampler); + } + input.ReadMessage(subBuilder); + FlushSoxResampler = subBuilder; + break; + } + case 290: { + global::LiveKit.Proto.SendChatMessageRequest subBuilder = new global::LiveKit.Proto.SendChatMessageRequest(); + if (messageCase_ == MessageOneofCase.SendChatMessage) { + subBuilder.MergeFrom(SendChatMessage); + } + input.ReadMessage(subBuilder); + SendChatMessage = subBuilder; + break; + } + case 298: { + global::LiveKit.Proto.EditChatMessageRequest subBuilder = new global::LiveKit.Proto.EditChatMessageRequest(); + if (messageCase_ == MessageOneofCase.EditChatMessage) { + subBuilder.MergeFrom(EditChatMessage); + } + input.ReadMessage(subBuilder); + EditChatMessage = subBuilder; + break; + } + case 306: { + global::LiveKit.Proto.PerformRpcRequest subBuilder = new global::LiveKit.Proto.PerformRpcRequest(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); + } + input.ReadMessage(subBuilder); + PerformRpc = subBuilder; + break; + } + case 314: { + global::LiveKit.Proto.RegisterRpcMethodRequest subBuilder = new global::LiveKit.Proto.RegisterRpcMethodRequest(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + subBuilder.MergeFrom(RegisterRpcMethod); + } + input.ReadMessage(subBuilder); + RegisterRpcMethod = subBuilder; + break; + } + case 322: { + global::LiveKit.Proto.UnregisterRpcMethodRequest subBuilder = new global::LiveKit.Proto.UnregisterRpcMethodRequest(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + subBuilder.MergeFrom(UnregisterRpcMethod); + } + input.ReadMessage(subBuilder); + UnregisterRpcMethod = subBuilder; + break; + } + case 330: { + global::LiveKit.Proto.RpcMethodInvocationResponseRequest subBuilder = new global::LiveKit.Proto.RpcMethodInvocationResponseRequest(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + subBuilder.MergeFrom(RpcMethodInvocationResponse); + } + input.ReadMessage(subBuilder); + RpcMethodInvocationResponse = subBuilder; + break; + } } } #endif @@ -1689,7 +2170,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1928,6 +2413,15 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 226: { + global::LiveKit.Proto.ClearAudioBufferRequest subBuilder = new global::LiveKit.Proto.ClearAudioBufferRequest(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + subBuilder.MergeFrom(ClearAudioBuffer); + } + input.ReadMessage(subBuilder); + ClearAudioBuffer = subBuilder; + break; + } + case 234: { global::LiveKit.Proto.NewAudioResamplerRequest subBuilder = new global::LiveKit.Proto.NewAudioResamplerRequest(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -1936,7 +2430,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 234: { + case 242: { global::LiveKit.Proto.RemixAndResampleRequest subBuilder = new global::LiveKit.Proto.RemixAndResampleRequest(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -1945,7 +2439,7 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 242: { + case 250: { global::LiveKit.Proto.E2eeRequest subBuilder = new global::LiveKit.Proto.E2eeRequest(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -1954,7 +2448,7 @@ public void MergeFrom(pb::CodedInputStream input) { E2Ee = subBuilder; break; } - case 250: { + case 258: { global::LiveKit.Proto.AudioStreamFromParticipantRequest subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantRequest(); if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { subBuilder.MergeFrom(AudioStreamFromParticipant); @@ -1963,6 +2457,87 @@ public void MergeFrom(pb::CodedInputStream input) { AudioStreamFromParticipant = subBuilder; break; } + case 266: { + global::LiveKit.Proto.NewSoxResamplerRequest subBuilder = new global::LiveKit.Proto.NewSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + subBuilder.MergeFrom(NewSoxResampler); + } + input.ReadMessage(subBuilder); + NewSoxResampler = subBuilder; + break; + } + case 274: { + global::LiveKit.Proto.PushSoxResamplerRequest subBuilder = new global::LiveKit.Proto.PushSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + subBuilder.MergeFrom(PushSoxResampler); + } + input.ReadMessage(subBuilder); + PushSoxResampler = subBuilder; + break; + } + case 282: { + global::LiveKit.Proto.FlushSoxResamplerRequest subBuilder = new global::LiveKit.Proto.FlushSoxResamplerRequest(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + subBuilder.MergeFrom(FlushSoxResampler); + } + input.ReadMessage(subBuilder); + FlushSoxResampler = subBuilder; + break; + } + case 290: { + global::LiveKit.Proto.SendChatMessageRequest subBuilder = new global::LiveKit.Proto.SendChatMessageRequest(); + if (messageCase_ == MessageOneofCase.SendChatMessage) { + subBuilder.MergeFrom(SendChatMessage); + } + input.ReadMessage(subBuilder); + SendChatMessage = subBuilder; + break; + } + case 298: { + global::LiveKit.Proto.EditChatMessageRequest subBuilder = new global::LiveKit.Proto.EditChatMessageRequest(); + if (messageCase_ == MessageOneofCase.EditChatMessage) { + subBuilder.MergeFrom(EditChatMessage); + } + input.ReadMessage(subBuilder); + EditChatMessage = subBuilder; + break; + } + case 306: { + global::LiveKit.Proto.PerformRpcRequest subBuilder = new global::LiveKit.Proto.PerformRpcRequest(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); + } + input.ReadMessage(subBuilder); + PerformRpc = subBuilder; + break; + } + case 314: { + global::LiveKit.Proto.RegisterRpcMethodRequest subBuilder = new global::LiveKit.Proto.RegisterRpcMethodRequest(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + subBuilder.MergeFrom(RegisterRpcMethod); + } + input.ReadMessage(subBuilder); + RegisterRpcMethod = subBuilder; + break; + } + case 322: { + global::LiveKit.Proto.UnregisterRpcMethodRequest subBuilder = new global::LiveKit.Proto.UnregisterRpcMethodRequest(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + subBuilder.MergeFrom(UnregisterRpcMethod); + } + input.ReadMessage(subBuilder); + UnregisterRpcMethod = subBuilder; + break; + } + case 330: { + global::LiveKit.Proto.RpcMethodInvocationResponseRequest subBuilder = new global::LiveKit.Proto.RpcMethodInvocationResponseRequest(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + subBuilder.MergeFrom(RpcMethodInvocationResponse); + } + input.ReadMessage(subBuilder); + RpcMethodInvocationResponse = subBuilder; + break; + } } } } @@ -2087,6 +2662,9 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.CaptureAudioFrame: CaptureAudioFrame = other.CaptureAudioFrame.Clone(); break; + case MessageOneofCase.ClearAudioBuffer: + ClearAudioBuffer = other.ClearAudioBuffer.Clone(); + break; case MessageOneofCase.NewAudioResampler: NewAudioResampler = other.NewAudioResampler.Clone(); break; @@ -2099,6 +2677,30 @@ public FfiResponse(FfiResponse other) : this() { case MessageOneofCase.E2Ee: E2Ee = other.E2Ee.Clone(); break; + case MessageOneofCase.NewSoxResampler: + NewSoxResampler = other.NewSoxResampler.Clone(); + break; + case MessageOneofCase.PushSoxResampler: + PushSoxResampler = other.PushSoxResampler.Clone(); + break; + case MessageOneofCase.FlushSoxResampler: + FlushSoxResampler = other.FlushSoxResampler.Clone(); + break; + case MessageOneofCase.SendChatMessage: + SendChatMessage = other.SendChatMessage.Clone(); + break; + case MessageOneofCase.PerformRpc: + PerformRpc = other.PerformRpc.Clone(); + break; + case MessageOneofCase.RegisterRpcMethod: + RegisterRpcMethod = other.RegisterRpcMethod.Clone(); + break; + case MessageOneofCase.UnregisterRpcMethod: + UnregisterRpcMethod = other.UnregisterRpcMethod.Clone(); + break; + case MessageOneofCase.RpcMethodInvocationResponse: + RpcMethodInvocationResponse = other.RpcMethodInvocationResponse.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2434,8 +3036,20 @@ public FfiResponse Clone() { } } + /// Field number for the "clear_audio_buffer" field. + public const int ClearAudioBufferFieldNumber = 28; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ClearAudioBufferResponse ClearAudioBuffer { + get { return messageCase_ == MessageOneofCase.ClearAudioBuffer ? (global::LiveKit.Proto.ClearAudioBufferResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ClearAudioBuffer; + } + } + /// Field number for the "new_audio_resampler" field. - public const int NewAudioResamplerFieldNumber = 28; + public const int NewAudioResamplerFieldNumber = 29; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.NewAudioResamplerResponse NewAudioResampler { @@ -2447,7 +3061,7 @@ public FfiResponse Clone() { } /// Field number for the "remix_and_resample" field. - public const int RemixAndResampleFieldNumber = 29; + public const int RemixAndResampleFieldNumber = 30; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.RemixAndResampleResponse RemixAndResample { @@ -2459,7 +3073,7 @@ public FfiResponse Clone() { } /// Field number for the "audio_stream_from_participant" field. - public const int AudioStreamFromParticipantFieldNumber = 30; + public const int AudioStreamFromParticipantFieldNumber = 31; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.AudioStreamFromParticipantResponse AudioStreamFromParticipant { @@ -2471,7 +3085,7 @@ public FfiResponse Clone() { } /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 31; + public const int E2EeFieldNumber = 32; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.E2eeResponse E2Ee { @@ -2482,6 +3096,105 @@ public FfiResponse Clone() { } } + /// Field number for the "new_sox_resampler" field. + public const int NewSoxResamplerFieldNumber = 33; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.NewSoxResamplerResponse NewSoxResampler { + get { return messageCase_ == MessageOneofCase.NewSoxResampler ? (global::LiveKit.Proto.NewSoxResamplerResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.NewSoxResampler; + } + } + + /// Field number for the "push_sox_resampler" field. + public const int PushSoxResamplerFieldNumber = 34; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PushSoxResamplerResponse PushSoxResampler { + get { return messageCase_ == MessageOneofCase.PushSoxResampler ? (global::LiveKit.Proto.PushSoxResamplerResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PushSoxResampler; + } + } + + /// Field number for the "flush_sox_resampler" field. + public const int FlushSoxResamplerFieldNumber = 35; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.FlushSoxResamplerResponse FlushSoxResampler { + get { return messageCase_ == MessageOneofCase.FlushSoxResampler ? (global::LiveKit.Proto.FlushSoxResamplerResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FlushSoxResampler; + } + } + + /// Field number for the "send_chat_message" field. + public const int SendChatMessageFieldNumber = 36; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SendChatMessageResponse SendChatMessage { + get { return messageCase_ == MessageOneofCase.SendChatMessage ? (global::LiveKit.Proto.SendChatMessageResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.SendChatMessage; + } + } + + /// Field number for the "perform_rpc" field. + public const int PerformRpcFieldNumber = 37; + /// + /// RPC + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PerformRpcResponse PerformRpc { + get { return messageCase_ == MessageOneofCase.PerformRpc ? (global::LiveKit.Proto.PerformRpcResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PerformRpc; + } + } + + /// Field number for the "register_rpc_method" field. + public const int RegisterRpcMethodFieldNumber = 38; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RegisterRpcMethodResponse RegisterRpcMethod { + get { return messageCase_ == MessageOneofCase.RegisterRpcMethod ? (global::LiveKit.Proto.RegisterRpcMethodResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RegisterRpcMethod; + } + } + + /// Field number for the "unregister_rpc_method" field. + public const int UnregisterRpcMethodFieldNumber = 39; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.UnregisterRpcMethodResponse UnregisterRpcMethod { + get { return messageCase_ == MessageOneofCase.UnregisterRpcMethod ? (global::LiveKit.Proto.UnregisterRpcMethodResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.UnregisterRpcMethod; + } + } + + /// Field number for the "rpc_method_invocation_response" field. + public const int RpcMethodInvocationResponseFieldNumber = 40; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RpcMethodInvocationResponseResponse RpcMethodInvocationResponse { + get { return messageCase_ == MessageOneofCase.RpcMethodInvocationResponse ? (global::LiveKit.Proto.RpcMethodInvocationResponseResponse) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RpcMethodInvocationResponse; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { @@ -2512,10 +3225,19 @@ public enum MessageOneofCase { NewAudioStream = 25, NewAudioSource = 26, CaptureAudioFrame = 27, - NewAudioResampler = 28, - RemixAndResample = 29, - AudioStreamFromParticipant = 30, - E2Ee = 31, + ClearAudioBuffer = 28, + NewAudioResampler = 29, + RemixAndResample = 30, + AudioStreamFromParticipant = 31, + E2Ee = 32, + NewSoxResampler = 33, + PushSoxResampler = 34, + FlushSoxResampler = 35, + SendChatMessage = 36, + PerformRpc = 37, + RegisterRpcMethod = 38, + UnregisterRpcMethod = 39, + RpcMethodInvocationResponse = 40, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2572,10 +3294,19 @@ public bool Equals(FfiResponse other) { if (!object.Equals(NewAudioStream, other.NewAudioStream)) return false; if (!object.Equals(NewAudioSource, other.NewAudioSource)) return false; if (!object.Equals(CaptureAudioFrame, other.CaptureAudioFrame)) return false; + if (!object.Equals(ClearAudioBuffer, other.ClearAudioBuffer)) return false; if (!object.Equals(NewAudioResampler, other.NewAudioResampler)) return false; if (!object.Equals(RemixAndResample, other.RemixAndResample)) return false; if (!object.Equals(AudioStreamFromParticipant, other.AudioStreamFromParticipant)) return false; if (!object.Equals(E2Ee, other.E2Ee)) return false; + if (!object.Equals(NewSoxResampler, other.NewSoxResampler)) return false; + if (!object.Equals(PushSoxResampler, other.PushSoxResampler)) return false; + if (!object.Equals(FlushSoxResampler, other.FlushSoxResampler)) return false; + if (!object.Equals(SendChatMessage, other.SendChatMessage)) return false; + if (!object.Equals(PerformRpc, other.PerformRpc)) return false; + if (!object.Equals(RegisterRpcMethod, other.RegisterRpcMethod)) return false; + if (!object.Equals(UnregisterRpcMethod, other.UnregisterRpcMethod)) return false; + if (!object.Equals(RpcMethodInvocationResponse, other.RpcMethodInvocationResponse)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2610,10 +3341,19 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.NewAudioStream) hash ^= NewAudioStream.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioSource) hash ^= NewAudioSource.GetHashCode(); if (messageCase_ == MessageOneofCase.CaptureAudioFrame) hash ^= CaptureAudioFrame.GetHashCode(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) hash ^= ClearAudioBuffer.GetHashCode(); if (messageCase_ == MessageOneofCase.NewAudioResampler) hash ^= NewAudioResampler.GetHashCode(); if (messageCase_ == MessageOneofCase.RemixAndResample) hash ^= RemixAndResample.GetHashCode(); if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) hash ^= AudioStreamFromParticipant.GetHashCode(); if (messageCase_ == MessageOneofCase.E2Ee) hash ^= E2Ee.GetHashCode(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) hash ^= NewSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) hash ^= PushSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) hash ^= FlushSoxResampler.GetHashCode(); + if (messageCase_ == MessageOneofCase.SendChatMessage) hash ^= SendChatMessage.GetHashCode(); + if (messageCase_ == MessageOneofCase.PerformRpc) hash ^= PerformRpc.GetHashCode(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) hash ^= RegisterRpcMethod.GetHashCode(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) hash ^= UnregisterRpcMethod.GetHashCode(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) hash ^= RpcMethodInvocationResponse.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2737,22 +3477,58 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.NewAudioResampler) { + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { output.WriteRawTag(226, 1); + output.WriteMessage(ClearAudioBuffer); + } + if (messageCase_ == MessageOneofCase.NewAudioResampler) { + output.WriteRawTag(234, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(234, 1); + output.WriteRawTag(242, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { - output.WriteRawTag(242, 1); + output.WriteRawTag(250, 1); output.WriteMessage(AudioStreamFromParticipant); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(250, 1); + output.WriteRawTag(130, 2); output.WriteMessage(E2Ee); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + output.WriteRawTag(138, 2); + output.WriteMessage(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + output.WriteRawTag(146, 2); + output.WriteMessage(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + output.WriteRawTag(154, 2); + output.WriteMessage(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + output.WriteRawTag(162, 2); + output.WriteMessage(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(170, 2); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + output.WriteRawTag(178, 2); + output.WriteMessage(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + output.WriteRawTag(186, 2); + output.WriteMessage(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + output.WriteRawTag(194, 2); + output.WriteMessage(RpcMethodInvocationResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2867,22 +3643,58 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(218, 1); output.WriteMessage(CaptureAudioFrame); } - if (messageCase_ == MessageOneofCase.NewAudioResampler) { + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { output.WriteRawTag(226, 1); + output.WriteMessage(ClearAudioBuffer); + } + if (messageCase_ == MessageOneofCase.NewAudioResampler) { + output.WriteRawTag(234, 1); output.WriteMessage(NewAudioResampler); } if (messageCase_ == MessageOneofCase.RemixAndResample) { - output.WriteRawTag(234, 1); + output.WriteRawTag(242, 1); output.WriteMessage(RemixAndResample); } if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { - output.WriteRawTag(242, 1); + output.WriteRawTag(250, 1); output.WriteMessage(AudioStreamFromParticipant); } if (messageCase_ == MessageOneofCase.E2Ee) { - output.WriteRawTag(250, 1); + output.WriteRawTag(130, 2); output.WriteMessage(E2Ee); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + output.WriteRawTag(138, 2); + output.WriteMessage(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + output.WriteRawTag(146, 2); + output.WriteMessage(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + output.WriteRawTag(154, 2); + output.WriteMessage(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + output.WriteRawTag(162, 2); + output.WriteMessage(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(170, 2); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + output.WriteRawTag(178, 2); + output.WriteMessage(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + output.WriteRawTag(186, 2); + output.WriteMessage(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + output.WriteRawTag(194, 2); + output.WriteMessage(RpcMethodInvocationResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2971,6 +3783,9 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CaptureAudioFrame); } + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClearAudioBuffer); + } if (messageCase_ == MessageOneofCase.NewAudioResampler) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewAudioResampler); } @@ -2983,6 +3798,30 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.E2Ee) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); } + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NewSoxResampler); + } + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PushSoxResampler); + } + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(FlushSoxResampler); + } + if (messageCase_ == MessageOneofCase.SendChatMessage) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SendChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RegisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(UnregisterRpcMethod); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RpcMethodInvocationResponse); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3152,6 +3991,12 @@ public void MergeFrom(FfiResponse other) { } CaptureAudioFrame.MergeFrom(other.CaptureAudioFrame); break; + case MessageOneofCase.ClearAudioBuffer: + if (ClearAudioBuffer == null) { + ClearAudioBuffer = new global::LiveKit.Proto.ClearAudioBufferResponse(); + } + ClearAudioBuffer.MergeFrom(other.ClearAudioBuffer); + break; case MessageOneofCase.NewAudioResampler: if (NewAudioResampler == null) { NewAudioResampler = new global::LiveKit.Proto.NewAudioResamplerResponse(); @@ -3176,6 +4021,54 @@ public void MergeFrom(FfiResponse other) { } E2Ee.MergeFrom(other.E2Ee); break; + case MessageOneofCase.NewSoxResampler: + if (NewSoxResampler == null) { + NewSoxResampler = new global::LiveKit.Proto.NewSoxResamplerResponse(); + } + NewSoxResampler.MergeFrom(other.NewSoxResampler); + break; + case MessageOneofCase.PushSoxResampler: + if (PushSoxResampler == null) { + PushSoxResampler = new global::LiveKit.Proto.PushSoxResamplerResponse(); + } + PushSoxResampler.MergeFrom(other.PushSoxResampler); + break; + case MessageOneofCase.FlushSoxResampler: + if (FlushSoxResampler == null) { + FlushSoxResampler = new global::LiveKit.Proto.FlushSoxResamplerResponse(); + } + FlushSoxResampler.MergeFrom(other.FlushSoxResampler); + break; + case MessageOneofCase.SendChatMessage: + if (SendChatMessage == null) { + SendChatMessage = new global::LiveKit.Proto.SendChatMessageResponse(); + } + SendChatMessage.MergeFrom(other.SendChatMessage); + break; + case MessageOneofCase.PerformRpc: + if (PerformRpc == null) { + PerformRpc = new global::LiveKit.Proto.PerformRpcResponse(); + } + PerformRpc.MergeFrom(other.PerformRpc); + break; + case MessageOneofCase.RegisterRpcMethod: + if (RegisterRpcMethod == null) { + RegisterRpcMethod = new global::LiveKit.Proto.RegisterRpcMethodResponse(); + } + RegisterRpcMethod.MergeFrom(other.RegisterRpcMethod); + break; + case MessageOneofCase.UnregisterRpcMethod: + if (UnregisterRpcMethod == null) { + UnregisterRpcMethod = new global::LiveKit.Proto.UnregisterRpcMethodResponse(); + } + UnregisterRpcMethod.MergeFrom(other.UnregisterRpcMethod); + break; + case MessageOneofCase.RpcMethodInvocationResponse: + if (RpcMethodInvocationResponse == null) { + RpcMethodInvocationResponse = new global::LiveKit.Proto.RpcMethodInvocationResponseResponse(); + } + RpcMethodInvocationResponse.MergeFrom(other.RpcMethodInvocationResponse); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3189,7 +4082,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3397,70 +4294,151 @@ public void MergeFrom(pb::CodedInputStream input) { subBuilder.MergeFrom(VideoStreamFromParticipant); } input.ReadMessage(subBuilder); - VideoStreamFromParticipant = subBuilder; + VideoStreamFromParticipant = subBuilder; + break; + } + case 202: { + global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); + if (messageCase_ == MessageOneofCase.NewAudioStream) { + subBuilder.MergeFrom(NewAudioStream); + } + input.ReadMessage(subBuilder); + NewAudioStream = subBuilder; + break; + } + case 210: { + global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); + if (messageCase_ == MessageOneofCase.NewAudioSource) { + subBuilder.MergeFrom(NewAudioSource); + } + input.ReadMessage(subBuilder); + NewAudioSource = subBuilder; + break; + } + case 218: { + global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); + if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { + subBuilder.MergeFrom(CaptureAudioFrame); + } + input.ReadMessage(subBuilder); + CaptureAudioFrame = subBuilder; + break; + } + case 226: { + global::LiveKit.Proto.ClearAudioBufferResponse subBuilder = new global::LiveKit.Proto.ClearAudioBufferResponse(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + subBuilder.MergeFrom(ClearAudioBuffer); + } + input.ReadMessage(subBuilder); + ClearAudioBuffer = subBuilder; + break; + } + case 234: { + global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); + if (messageCase_ == MessageOneofCase.NewAudioResampler) { + subBuilder.MergeFrom(NewAudioResampler); + } + input.ReadMessage(subBuilder); + NewAudioResampler = subBuilder; + break; + } + case 242: { + global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); + if (messageCase_ == MessageOneofCase.RemixAndResample) { + subBuilder.MergeFrom(RemixAndResample); + } + input.ReadMessage(subBuilder); + RemixAndResample = subBuilder; + break; + } + case 250: { + global::LiveKit.Proto.AudioStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); + if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { + subBuilder.MergeFrom(AudioStreamFromParticipant); + } + input.ReadMessage(subBuilder); + AudioStreamFromParticipant = subBuilder; + break; + } + case 258: { + global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); + if (messageCase_ == MessageOneofCase.E2Ee) { + subBuilder.MergeFrom(E2Ee); + } + input.ReadMessage(subBuilder); + E2Ee = subBuilder; + break; + } + case 266: { + global::LiveKit.Proto.NewSoxResamplerResponse subBuilder = new global::LiveKit.Proto.NewSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + subBuilder.MergeFrom(NewSoxResampler); + } + input.ReadMessage(subBuilder); + NewSoxResampler = subBuilder; break; } - case 202: { - global::LiveKit.Proto.NewAudioStreamResponse subBuilder = new global::LiveKit.Proto.NewAudioStreamResponse(); - if (messageCase_ == MessageOneofCase.NewAudioStream) { - subBuilder.MergeFrom(NewAudioStream); + case 274: { + global::LiveKit.Proto.PushSoxResamplerResponse subBuilder = new global::LiveKit.Proto.PushSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + subBuilder.MergeFrom(PushSoxResampler); } input.ReadMessage(subBuilder); - NewAudioStream = subBuilder; + PushSoxResampler = subBuilder; break; } - case 210: { - global::LiveKit.Proto.NewAudioSourceResponse subBuilder = new global::LiveKit.Proto.NewAudioSourceResponse(); - if (messageCase_ == MessageOneofCase.NewAudioSource) { - subBuilder.MergeFrom(NewAudioSource); + case 282: { + global::LiveKit.Proto.FlushSoxResamplerResponse subBuilder = new global::LiveKit.Proto.FlushSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + subBuilder.MergeFrom(FlushSoxResampler); } input.ReadMessage(subBuilder); - NewAudioSource = subBuilder; + FlushSoxResampler = subBuilder; break; } - case 218: { - global::LiveKit.Proto.CaptureAudioFrameResponse subBuilder = new global::LiveKit.Proto.CaptureAudioFrameResponse(); - if (messageCase_ == MessageOneofCase.CaptureAudioFrame) { - subBuilder.MergeFrom(CaptureAudioFrame); + case 290: { + global::LiveKit.Proto.SendChatMessageResponse subBuilder = new global::LiveKit.Proto.SendChatMessageResponse(); + if (messageCase_ == MessageOneofCase.SendChatMessage) { + subBuilder.MergeFrom(SendChatMessage); } input.ReadMessage(subBuilder); - CaptureAudioFrame = subBuilder; + SendChatMessage = subBuilder; break; } - case 226: { - global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); - if (messageCase_ == MessageOneofCase.NewAudioResampler) { - subBuilder.MergeFrom(NewAudioResampler); + case 298: { + global::LiveKit.Proto.PerformRpcResponse subBuilder = new global::LiveKit.Proto.PerformRpcResponse(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); } input.ReadMessage(subBuilder); - NewAudioResampler = subBuilder; + PerformRpc = subBuilder; break; } - case 234: { - global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); - if (messageCase_ == MessageOneofCase.RemixAndResample) { - subBuilder.MergeFrom(RemixAndResample); + case 306: { + global::LiveKit.Proto.RegisterRpcMethodResponse subBuilder = new global::LiveKit.Proto.RegisterRpcMethodResponse(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + subBuilder.MergeFrom(RegisterRpcMethod); } input.ReadMessage(subBuilder); - RemixAndResample = subBuilder; + RegisterRpcMethod = subBuilder; break; } - case 242: { - global::LiveKit.Proto.AudioStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); - if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { - subBuilder.MergeFrom(AudioStreamFromParticipant); + case 314: { + global::LiveKit.Proto.UnregisterRpcMethodResponse subBuilder = new global::LiveKit.Proto.UnregisterRpcMethodResponse(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + subBuilder.MergeFrom(UnregisterRpcMethod); } input.ReadMessage(subBuilder); - AudioStreamFromParticipant = subBuilder; + UnregisterRpcMethod = subBuilder; break; } - case 250: { - global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); - if (messageCase_ == MessageOneofCase.E2Ee) { - subBuilder.MergeFrom(E2Ee); + case 322: { + global::LiveKit.Proto.RpcMethodInvocationResponseResponse subBuilder = new global::LiveKit.Proto.RpcMethodInvocationResponseResponse(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + subBuilder.MergeFrom(RpcMethodInvocationResponse); } input.ReadMessage(subBuilder); - E2Ee = subBuilder; + RpcMethodInvocationResponse = subBuilder; break; } } @@ -3474,7 +4452,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3713,6 +4695,15 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 226: { + global::LiveKit.Proto.ClearAudioBufferResponse subBuilder = new global::LiveKit.Proto.ClearAudioBufferResponse(); + if (messageCase_ == MessageOneofCase.ClearAudioBuffer) { + subBuilder.MergeFrom(ClearAudioBuffer); + } + input.ReadMessage(subBuilder); + ClearAudioBuffer = subBuilder; + break; + } + case 234: { global::LiveKit.Proto.NewAudioResamplerResponse subBuilder = new global::LiveKit.Proto.NewAudioResamplerResponse(); if (messageCase_ == MessageOneofCase.NewAudioResampler) { subBuilder.MergeFrom(NewAudioResampler); @@ -3721,7 +4712,7 @@ public void MergeFrom(pb::CodedInputStream input) { NewAudioResampler = subBuilder; break; } - case 234: { + case 242: { global::LiveKit.Proto.RemixAndResampleResponse subBuilder = new global::LiveKit.Proto.RemixAndResampleResponse(); if (messageCase_ == MessageOneofCase.RemixAndResample) { subBuilder.MergeFrom(RemixAndResample); @@ -3730,7 +4721,7 @@ public void MergeFrom(pb::CodedInputStream input) { RemixAndResample = subBuilder; break; } - case 242: { + case 250: { global::LiveKit.Proto.AudioStreamFromParticipantResponse subBuilder = new global::LiveKit.Proto.AudioStreamFromParticipantResponse(); if (messageCase_ == MessageOneofCase.AudioStreamFromParticipant) { subBuilder.MergeFrom(AudioStreamFromParticipant); @@ -3739,7 +4730,7 @@ public void MergeFrom(pb::CodedInputStream input) { AudioStreamFromParticipant = subBuilder; break; } - case 250: { + case 258: { global::LiveKit.Proto.E2eeResponse subBuilder = new global::LiveKit.Proto.E2eeResponse(); if (messageCase_ == MessageOneofCase.E2Ee) { subBuilder.MergeFrom(E2Ee); @@ -3748,6 +4739,78 @@ public void MergeFrom(pb::CodedInputStream input) { E2Ee = subBuilder; break; } + case 266: { + global::LiveKit.Proto.NewSoxResamplerResponse subBuilder = new global::LiveKit.Proto.NewSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.NewSoxResampler) { + subBuilder.MergeFrom(NewSoxResampler); + } + input.ReadMessage(subBuilder); + NewSoxResampler = subBuilder; + break; + } + case 274: { + global::LiveKit.Proto.PushSoxResamplerResponse subBuilder = new global::LiveKit.Proto.PushSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.PushSoxResampler) { + subBuilder.MergeFrom(PushSoxResampler); + } + input.ReadMessage(subBuilder); + PushSoxResampler = subBuilder; + break; + } + case 282: { + global::LiveKit.Proto.FlushSoxResamplerResponse subBuilder = new global::LiveKit.Proto.FlushSoxResamplerResponse(); + if (messageCase_ == MessageOneofCase.FlushSoxResampler) { + subBuilder.MergeFrom(FlushSoxResampler); + } + input.ReadMessage(subBuilder); + FlushSoxResampler = subBuilder; + break; + } + case 290: { + global::LiveKit.Proto.SendChatMessageResponse subBuilder = new global::LiveKit.Proto.SendChatMessageResponse(); + if (messageCase_ == MessageOneofCase.SendChatMessage) { + subBuilder.MergeFrom(SendChatMessage); + } + input.ReadMessage(subBuilder); + SendChatMessage = subBuilder; + break; + } + case 298: { + global::LiveKit.Proto.PerformRpcResponse subBuilder = new global::LiveKit.Proto.PerformRpcResponse(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); + } + input.ReadMessage(subBuilder); + PerformRpc = subBuilder; + break; + } + case 306: { + global::LiveKit.Proto.RegisterRpcMethodResponse subBuilder = new global::LiveKit.Proto.RegisterRpcMethodResponse(); + if (messageCase_ == MessageOneofCase.RegisterRpcMethod) { + subBuilder.MergeFrom(RegisterRpcMethod); + } + input.ReadMessage(subBuilder); + RegisterRpcMethod = subBuilder; + break; + } + case 314: { + global::LiveKit.Proto.UnregisterRpcMethodResponse subBuilder = new global::LiveKit.Proto.UnregisterRpcMethodResponse(); + if (messageCase_ == MessageOneofCase.UnregisterRpcMethod) { + subBuilder.MergeFrom(UnregisterRpcMethod); + } + input.ReadMessage(subBuilder); + UnregisterRpcMethod = subBuilder; + break; + } + case 322: { + global::LiveKit.Proto.RpcMethodInvocationResponseResponse subBuilder = new global::LiveKit.Proto.RpcMethodInvocationResponseResponse(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocationResponse) { + subBuilder.MergeFrom(RpcMethodInvocationResponse); + } + input.ReadMessage(subBuilder); + RpcMethodInvocationResponse = subBuilder; + break; + } } } } @@ -3856,6 +4919,15 @@ public FfiEvent(FfiEvent other) : this() { case MessageOneofCase.PublishSipDtmf: PublishSipDtmf = other.PublishSipDtmf.Clone(); break; + case MessageOneofCase.ChatMessage: + ChatMessage = other.ChatMessage.Clone(); + break; + case MessageOneofCase.PerformRpc: + PerformRpc = other.PerformRpc.Clone(); + break; + case MessageOneofCase.RpcMethodInvocation: + RpcMethodInvocation = other.RpcMethodInvocation.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4107,6 +5179,42 @@ public FfiEvent Clone() { } } + /// Field number for the "chat_message" field. + public const int ChatMessageFieldNumber = 22; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.SendChatMessageCallback ChatMessage { + get { return messageCase_ == MessageOneofCase.ChatMessage ? (global::LiveKit.Proto.SendChatMessageCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ChatMessage; + } + } + + /// Field number for the "perform_rpc" field. + public const int PerformRpcFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.PerformRpcCallback PerformRpc { + get { return messageCase_ == MessageOneofCase.PerformRpc ? (global::LiveKit.Proto.PerformRpcCallback) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.PerformRpc; + } + } + + /// Field number for the "rpc_method_invocation" field. + public const int RpcMethodInvocationFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RpcMethodInvocationEvent RpcMethodInvocation { + get { return messageCase_ == MessageOneofCase.RpcMethodInvocation ? (global::LiveKit.Proto.RpcMethodInvocationEvent) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RpcMethodInvocation; + } + } + private object message_; /// Enum of possible cases for the "message" oneof. public enum MessageOneofCase { @@ -4131,6 +5239,9 @@ public enum MessageOneofCase { GetSessionStats = 19, Panic = 20, PublishSipDtmf = 21, + ChatMessage = 22, + PerformRpc = 23, + RpcMethodInvocation = 24, } private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4181,6 +5292,9 @@ public bool Equals(FfiEvent other) { if (!object.Equals(GetSessionStats, other.GetSessionStats)) return false; if (!object.Equals(Panic, other.Panic)) return false; if (!object.Equals(PublishSipDtmf, other.PublishSipDtmf)) return false; + if (!object.Equals(ChatMessage, other.ChatMessage)) return false; + if (!object.Equals(PerformRpc, other.PerformRpc)) return false; + if (!object.Equals(RpcMethodInvocation, other.RpcMethodInvocation)) return false; if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4209,6 +5323,9 @@ public override int GetHashCode() { if (messageCase_ == MessageOneofCase.GetSessionStats) hash ^= GetSessionStats.GetHashCode(); if (messageCase_ == MessageOneofCase.Panic) hash ^= Panic.GetHashCode(); if (messageCase_ == MessageOneofCase.PublishSipDtmf) hash ^= PublishSipDtmf.GetHashCode(); + if (messageCase_ == MessageOneofCase.ChatMessage) hash ^= ChatMessage.GetHashCode(); + if (messageCase_ == MessageOneofCase.PerformRpc) hash ^= PerformRpc.GetHashCode(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) hash ^= RpcMethodInvocation.GetHashCode(); hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4308,6 +5425,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(170, 1); output.WriteMessage(PublishSipDtmf); } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(178, 1); + output.WriteMessage(ChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(186, 1); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) { + output.WriteRawTag(194, 1); + output.WriteMessage(RpcMethodInvocation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4398,6 +5527,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(170, 1); output.WriteMessage(PublishSipDtmf); } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(178, 1); + output.WriteMessage(ChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + output.WriteRawTag(186, 1); + output.WriteMessage(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) { + output.WriteRawTag(194, 1); + output.WriteMessage(RpcMethodInvocation); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4468,6 +5609,15 @@ public int CalculateSize() { if (messageCase_ == MessageOneofCase.PublishSipDtmf) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(PublishSipDtmf); } + if (messageCase_ == MessageOneofCase.ChatMessage) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChatMessage); + } + if (messageCase_ == MessageOneofCase.PerformRpc) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformRpc); + } + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RpcMethodInvocation); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4601,6 +5751,24 @@ public void MergeFrom(FfiEvent other) { } PublishSipDtmf.MergeFrom(other.PublishSipDtmf); break; + case MessageOneofCase.ChatMessage: + if (ChatMessage == null) { + ChatMessage = new global::LiveKit.Proto.SendChatMessageCallback(); + } + ChatMessage.MergeFrom(other.ChatMessage); + break; + case MessageOneofCase.PerformRpc: + if (PerformRpc == null) { + PerformRpc = new global::LiveKit.Proto.PerformRpcCallback(); + } + PerformRpc.MergeFrom(other.PerformRpc); + break; + case MessageOneofCase.RpcMethodInvocation: + if (RpcMethodInvocation == null) { + RpcMethodInvocation = new global::LiveKit.Proto.RpcMethodInvocationEvent(); + } + RpcMethodInvocation.MergeFrom(other.RpcMethodInvocation); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4614,7 +5782,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4798,6 +5970,33 @@ public void MergeFrom(pb::CodedInputStream input) { PublishSipDtmf = subBuilder; break; } + case 178: { + global::LiveKit.Proto.SendChatMessageCallback subBuilder = new global::LiveKit.Proto.SendChatMessageCallback(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); + } + input.ReadMessage(subBuilder); + ChatMessage = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.PerformRpcCallback subBuilder = new global::LiveKit.Proto.PerformRpcCallback(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); + } + input.ReadMessage(subBuilder); + PerformRpc = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.RpcMethodInvocationEvent subBuilder = new global::LiveKit.Proto.RpcMethodInvocationEvent(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) { + subBuilder.MergeFrom(RpcMethodInvocation); + } + input.ReadMessage(subBuilder); + RpcMethodInvocation = subBuilder; + break; + } } } #endif @@ -4809,7 +6008,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4993,6 +6196,33 @@ public void MergeFrom(pb::CodedInputStream input) { PublishSipDtmf = subBuilder; break; } + case 178: { + global::LiveKit.Proto.SendChatMessageCallback subBuilder = new global::LiveKit.Proto.SendChatMessageCallback(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); + } + input.ReadMessage(subBuilder); + ChatMessage = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.PerformRpcCallback subBuilder = new global::LiveKit.Proto.PerformRpcCallback(); + if (messageCase_ == MessageOneofCase.PerformRpc) { + subBuilder.MergeFrom(PerformRpc); + } + input.ReadMessage(subBuilder); + PerformRpc = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.RpcMethodInvocationEvent subBuilder = new global::LiveKit.Proto.RpcMethodInvocationEvent(); + if (messageCase_ == MessageOneofCase.RpcMethodInvocation) { + subBuilder.MergeFrom(RpcMethodInvocation); + } + input.ReadMessage(subBuilder); + RpcMethodInvocation = subBuilder; + break; + } } } } @@ -5013,6 +6243,7 @@ public sealed partial class DisposeRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeRequest()); 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; } } @@ -5040,6 +6271,7 @@ public DisposeRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisposeRequest(DisposeRequest other) : this() { + _hasBits0 = other._hasBits0; async_ = other.async_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5052,15 +6284,30 @@ public DisposeRequest Clone() { /// Field number for the "async" field. public const int AsyncFieldNumber = 1; + private readonly static bool AsyncDefaultValue = false; + private bool async_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Async { - get { return async_; } + get { if ((_hasBits0 & 1) != 0) { return async_; } else { return AsyncDefaultValue; } } set { + _hasBits0 |= 1; async_ = value; } } + /// Gets whether the "async" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAsync { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "async" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAsync() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5085,7 +6332,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 (HasAsync) hash ^= Async.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5104,7 +6351,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Async != false) { + if (HasAsync) { output.WriteRawTag(8); output.WriteBool(Async); } @@ -5118,7 +6365,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 (Async != false) { + if (HasAsync) { output.WriteRawTag(8); output.WriteBool(Async); } @@ -5132,7 +6379,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Async != false) { + if (HasAsync) { size += 1 + 1; } if (_unknownFields != null) { @@ -5147,7 +6394,7 @@ public void MergeFrom(DisposeRequest other) { if (other == null) { return; } - if (other.Async != false) { + if (other.HasAsync) { Async = other.Async; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5161,7 +6408,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5180,7 +6431,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5371,7 +6626,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5390,7 +6649,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5413,6 +6676,7 @@ public sealed partial class DisposeCallback : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisposeCallback()); 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; } } @@ -5440,6 +6704,7 @@ public DisposeCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisposeCallback(DisposeCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5452,15 +6717,30 @@ public DisposeCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -5485,7 +6765,7 @@ public bool Equals(DisposeCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5504,7 +6784,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5518,7 +6798,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5532,7 +6812,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -5547,7 +6827,7 @@ public void MergeFrom(DisposeCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5561,7 +6841,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5580,7 +6864,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5649,30 +6937,59 @@ public LogRecord Clone() { /// Field number for the "level" field. public const int LevelFieldNumber = 1; - private global::LiveKit.Proto.LogLevel level_ = global::LiveKit.Proto.LogLevel.LogError; + private readonly static global::LiveKit.Proto.LogLevel LevelDefaultValue = global::LiveKit.Proto.LogLevel.LogError; + + private global::LiveKit.Proto.LogLevel level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.LogLevel Level { - get { return level_; } + get { if ((_hasBits0 & 1) != 0) { return level_; } else { return LevelDefaultValue; } } set { + _hasBits0 |= 1; level_ = value; } } + /// Gets whether the "level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLevel() { + _hasBits0 &= ~1; + } /// Field number for the "target" field. public const int TargetFieldNumber = 2; - private string target_ = ""; + private readonly static string TargetDefaultValue = ""; + + private string target_; /// /// e.g "livekit", "libwebrtc", "tokio-tungstenite", etc... /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Target { - get { return target_; } + get { return target_ ?? TargetDefaultValue; } set { target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "target" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTarget { + get { return target_ != null; } + } + /// Clears the value of the "target" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTarget() { + target_ = null; + } /// Field number for the "module_path" field. public const int ModulePathFieldNumber = 3; @@ -5734,9 +7051,9 @@ public void ClearFile() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Line { - get { if ((_hasBits0 & 1) != 0) { return line_; } else { return LineDefaultValue; } } + get { if ((_hasBits0 & 2) != 0) { return line_; } else { return LineDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 2; line_ = value; } } @@ -5744,26 +7061,40 @@ public uint Line { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasLine { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "line" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearLine() { - _hasBits0 &= ~1; + _hasBits0 &= ~2; } /// Field number for the "message" field. public const int MessageFieldNumber = 6; - private string message_ = ""; + private readonly static string MessageDefaultValue = ""; + + private string message_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { - get { return message_; } + get { return message_ ?? MessageDefaultValue; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5793,12 +7124,12 @@ public bool Equals(LogRecord other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Level != global::LiveKit.Proto.LogLevel.LogError) hash ^= Level.GetHashCode(); - if (Target.Length != 0) hash ^= Target.GetHashCode(); + if (HasLevel) hash ^= Level.GetHashCode(); + if (HasTarget) 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 (HasMessage) hash ^= Message.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5817,11 +7148,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Level != global::LiveKit.Proto.LogLevel.LogError) { + if (HasLevel) { output.WriteRawTag(8); output.WriteEnum((int) Level); } - if (Target.Length != 0) { + if (HasTarget) { output.WriteRawTag(18); output.WriteString(Target); } @@ -5837,7 +7168,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(40); output.WriteUInt32(Line); } - if (Message.Length != 0) { + if (HasMessage) { output.WriteRawTag(50); output.WriteString(Message); } @@ -5851,11 +7182,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Level != global::LiveKit.Proto.LogLevel.LogError) { + if (HasLevel) { output.WriteRawTag(8); output.WriteEnum((int) Level); } - if (Target.Length != 0) { + if (HasTarget) { output.WriteRawTag(18); output.WriteString(Target); } @@ -5871,7 +7202,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(40); output.WriteUInt32(Line); } - if (Message.Length != 0) { + if (HasMessage) { output.WriteRawTag(50); output.WriteString(Message); } @@ -5885,10 +7216,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Level != global::LiveKit.Proto.LogLevel.LogError) { + if (HasLevel) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); } - if (Target.Length != 0) { + if (HasTarget) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Target); } if (HasModulePath) { @@ -5900,7 +7231,7 @@ public int CalculateSize() { if (HasLine) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Line); } - if (Message.Length != 0) { + if (HasMessage) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { @@ -5915,10 +7246,10 @@ public void MergeFrom(LogRecord other) { if (other == null) { return; } - if (other.Level != global::LiveKit.Proto.LogLevel.LogError) { + if (other.HasLevel) { Level = other.Level; } - if (other.Target.Length != 0) { + if (other.HasTarget) { Target = other.Target; } if (other.HasModulePath) { @@ -5930,7 +7261,7 @@ public void MergeFrom(LogRecord other) { if (other.HasLine) { Line = other.Line; } - if (other.Message.Length != 0) { + if (other.HasMessage) { Message = other.Message; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5944,7 +7275,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5983,7 +7318,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6163,7 +7502,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6182,7 +7525,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6244,15 +7591,29 @@ public Panic Clone() { /// Field number for the "message" field. public const int MessageFieldNumber = 1; - private string message_ = ""; + private readonly static string MessageDefaultValue = ""; + + private string message_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { - get { return message_; } + get { return message_ ?? MessageDefaultValue; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6277,7 +7638,7 @@ public bool Equals(Panic other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Message.Length != 0) hash ^= Message.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6296,7 +7657,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Message.Length != 0) { + if (HasMessage) { output.WriteRawTag(10); output.WriteString(Message); } @@ -6310,7 +7671,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 (Message.Length != 0) { + if (HasMessage) { output.WriteRawTag(10); output.WriteString(Message); } @@ -6324,7 +7685,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Message.Length != 0) { + if (HasMessage) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { @@ -6339,7 +7700,7 @@ public void MergeFrom(Panic other) { if (other == null) { return; } - if (other.Message.Length != 0) { + if (other.HasMessage) { Message = other.Message; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6353,7 +7714,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6372,7 +7737,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Handle.cs b/Runtime/Scripts/Proto/Handle.cs index 9f19e10..68c5a87 100644 --- a/Runtime/Scripts/Proto/Handle.cs +++ b/Runtime/Scripts/Proto/Handle.cs @@ -25,7 +25,7 @@ static HandleReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgxoYW5kbGUucHJvdG8SDWxpdmVraXQucHJvdG8iHAoORmZpT3duZWRIYW5k", - "bGUSCgoCaWQYASABKARCEKoCDUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); + "bGUSCgoCaWQYASACKARCEKoCDUxpdmVLaXQuUHJvdG8=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -55,6 +55,7 @@ public sealed partial class FfiOwnedHandle : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FfiOwnedHandle()); 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; } } @@ -82,6 +83,7 @@ public FfiOwnedHandle() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FfiOwnedHandle(FfiOwnedHandle other) : this() { + _hasBits0 = other._hasBits0; id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -94,15 +96,30 @@ public FfiOwnedHandle Clone() { /// Field number for the "id" field. public const int IdFieldNumber = 1; + private readonly static ulong IdDefaultValue = 0UL; + private ulong id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong Id { - get { return id_; } + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { + _hasBits0 |= 1; id_ = value; } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -127,7 +144,7 @@ public bool Equals(FfiOwnedHandle other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Id != 0UL) hash ^= Id.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -146,7 +163,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Id != 0UL) { + if (HasId) { output.WriteRawTag(8); output.WriteUInt64(Id); } @@ -160,7 +177,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 (Id != 0UL) { + if (HasId) { output.WriteRawTag(8); output.WriteUInt64(Id); } @@ -174,7 +191,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Id != 0UL) { + if (HasId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id); } if (_unknownFields != null) { @@ -189,7 +206,7 @@ public void MergeFrom(FfiOwnedHandle other) { if (other == null) { return; } - if (other.Id != 0UL) { + if (other.HasId) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -203,7 +220,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -222,7 +243,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Participant.cs b/Runtime/Scripts/Proto/Participant.cs index a2c5f54..92fbf5f 100644 --- a/Runtime/Scripts/Proto/Participant.cs +++ b/Runtime/Scripts/Proto/Participant.cs @@ -25,24 +25,40 @@ static ParticipantReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", - "b3RvIscBCg9QYXJ0aWNpcGFudEluZm8SCwoDc2lkGAEgASgJEgwKBG5hbWUY", - "AiABKAkSEAoIaWRlbnRpdHkYAyABKAkSEAoIbWV0YWRhdGEYBCABKAkSQgoK", + "b3RvIvUBCg9QYXJ0aWNpcGFudEluZm8SCwoDc2lkGAEgAigJEgwKBG5hbWUY", + "AiACKAkSEAoIaWRlbnRpdHkYAyACKAkSEAoIbWV0YWRhdGEYBCACKAkSQgoK", "YXR0cmlidXRlcxgFIAMoCzIuLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRJ", - "bmZvLkF0dHJpYnV0ZXNFbnRyeRoxCg9BdHRyaWJ1dGVzRW50cnkSCwoDa2V5", - "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJvChBPd25lZFBhcnRpY2lwYW50", - "Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k", - "bGUSLAoEaW5mbxgCIAEoCzIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRJ", - "bmZvQhCqAg1MaXZlS2l0LlByb3RvYgZwcm90bzM=")); + "bmZvLkF0dHJpYnV0ZXNFbnRyeRIsCgRraW5kGAYgAigOMh4ubGl2ZWtpdC5w", + "cm90by5QYXJ0aWNpcGFudEtpbmQaMQoPQXR0cmlidXRlc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEibwoQT3duZWRQYXJ0aWNpcGFu", + "dBItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFu", + "ZGxlEiwKBGluZm8YAiACKAsyHi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50", + "SW5mbyqhAQoPUGFydGljaXBhbnRLaW5kEh0KGVBBUlRJQ0lQQU5UX0tJTkRf", + "U1RBTkRBUkQQABIcChhQQVJUSUNJUEFOVF9LSU5EX0lOR1JFU1MQARIbChdQ", + "QVJUSUNJUEFOVF9LSU5EX0VHUkVTUxACEhgKFFBBUlRJQ0lQQU5UX0tJTkRf", + "U0lQEAMSGgoWUEFSVElDSVBBTlRfS0lORF9BR0VOVBAEQhCqAg1MaXZlS2l0", + "LlByb3Rv")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantInfo), global::LiveKit.Proto.ParticipantInfo.Parser, new[]{ "Sid", "Name", "Identity", "Metadata", "Attributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.ParticipantKind), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantInfo), global::LiveKit.Proto.ParticipantInfo.Parser, new[]{ "Sid", "Name", "Identity", "Metadata", "Attributes", "Kind" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedParticipant), global::LiveKit.Proto.OwnedParticipant.Parser, new[]{ "Handle", "Info" }, null, null, null, null) })); } #endregion } + #region Enums + public enum ParticipantKind { + [pbr::OriginalName("PARTICIPANT_KIND_STANDARD")] Standard = 0, + [pbr::OriginalName("PARTICIPANT_KIND_INGRESS")] Ingress = 1, + [pbr::OriginalName("PARTICIPANT_KIND_EGRESS")] Egress = 2, + [pbr::OriginalName("PARTICIPANT_KIND_SIP")] Sip = 3, + [pbr::OriginalName("PARTICIPANT_KIND_AGENT")] Agent = 4, + } + + #endregion + #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ParticipantInfo : pb::IMessage @@ -52,6 +68,7 @@ public sealed partial class ParticipantInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantInfo()); 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; } } @@ -79,11 +96,13 @@ public ParticipantInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ParticipantInfo(ParticipantInfo other) : this() { + _hasBits0 = other._hasBits0; sid_ = other.sid_; name_ = other.name_; identity_ = other.identity_; metadata_ = other.metadata_; attributes_ = other.attributes_.Clone(); + kind_ = other.kind_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -95,51 +114,107 @@ public ParticipantInfo Clone() { /// Field number for the "sid" field. public const int SidFieldNumber = 1; - private string sid_ = ""; + private readonly static string SidDefaultValue = ""; + + private string sid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Sid { - get { return sid_; } + get { return sid_ ?? SidDefaultValue; } set { sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; + } /// Field number for the "name" field. public const int NameFieldNumber = 2; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } /// Field number for the "identity" field. public const int IdentityFieldNumber = 3; - private string identity_ = ""; + private readonly static string IdentityDefaultValue = ""; + + private string identity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Identity { - get { return identity_; } + get { return identity_ ?? IdentityDefaultValue; } set { identity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIdentity { + get { return identity_ != null; } + } + /// Clears the value of the "identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIdentity() { + identity_ = null; + } /// Field number for the "metadata" field. public const int MetadataFieldNumber = 4; - private string metadata_ = ""; + private readonly static string MetadataDefaultValue = ""; + + private string metadata_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Metadata { - get { return metadata_; } + get { return metadata_ ?? MetadataDefaultValue; } set { metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "metadata" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMetadata { + get { return metadata_ != null; } + } + /// Clears the value of the "metadata" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadata_ = null; + } /// Field number for the "attributes" field. public const int AttributesFieldNumber = 5; @@ -152,6 +227,33 @@ public string Metadata { get { return attributes_; } } + /// Field number for the "kind" field. + public const int KindFieldNumber = 6; + private readonly static global::LiveKit.Proto.ParticipantKind KindDefaultValue = global::LiveKit.Proto.ParticipantKind.Standard; + + private global::LiveKit.Proto.ParticipantKind kind_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantKind Kind { + get { if ((_hasBits0 & 1) != 0) { return kind_; } else { return KindDefaultValue; } } + set { + _hasBits0 |= 1; + kind_ = value; + } + } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + _hasBits0 &= ~1; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -172,6 +274,7 @@ public bool Equals(ParticipantInfo other) { if (Identity != other.Identity) return false; if (Metadata != other.Metadata) return false; if (!Attributes.Equals(other.Attributes)) return false; + if (Kind != other.Kind) return false; return Equals(_unknownFields, other._unknownFields); } @@ -179,11 +282,12 @@ public bool Equals(ParticipantInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Identity.Length != 0) hash ^= Identity.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (HasSid) hash ^= Sid.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasIdentity) hash ^= Identity.GetHashCode(); + if (HasMetadata) hash ^= Metadata.GetHashCode(); hash ^= Attributes.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -202,23 +306,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Identity.Length != 0) { + if (HasIdentity) { output.WriteRawTag(26); output.WriteString(Identity); } - if (Metadata.Length != 0) { + if (HasMetadata) { output.WriteRawTag(34); output.WriteString(Metadata); } attributes_.WriteTo(output, _map_attributes_codec); + if (HasKind) { + output.WriteRawTag(48); + output.WriteEnum((int) Kind); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -229,23 +337,27 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Identity.Length != 0) { + if (HasIdentity) { output.WriteRawTag(26); output.WriteString(Identity); } - if (Metadata.Length != 0) { + if (HasMetadata) { output.WriteRawTag(34); output.WriteString(Metadata); } attributes_.WriteTo(ref output, _map_attributes_codec); + if (HasKind) { + output.WriteRawTag(48); + output.WriteEnum((int) Kind); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -256,19 +368,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { + if (HasSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Identity.Length != 0) { + if (HasIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Identity); } - if (Metadata.Length != 0) { + if (HasMetadata) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } size += attributes_.CalculateSize(_map_attributes_codec); + if (HasKind) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -281,19 +396,22 @@ public void MergeFrom(ParticipantInfo other) { if (other == null) { return; } - if (other.Sid.Length != 0) { + if (other.HasSid) { Sid = other.Sid; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.Identity.Length != 0) { + if (other.HasIdentity) { Identity = other.Identity; } - if (other.Metadata.Length != 0) { + if (other.HasMetadata) { Metadata = other.Metadata; } attributes_.MergeFrom(other.attributes_); + if (other.HasKind) { + Kind = other.Kind; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -305,7 +423,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -329,6 +451,10 @@ public void MergeFrom(pb::CodedInputStream input) { attributes_.AddEntriesFrom(input, _map_attributes_codec); break; } + case 48: { + Kind = (global::LiveKit.Proto.ParticipantKind) input.ReadEnum(); + break; + } } } #endif @@ -340,7 +466,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -364,6 +494,10 @@ public void MergeFrom(pb::CodedInputStream input) { attributes_.AddEntriesFrom(ref input, _map_attributes_codec); break; } + case 48: { + Kind = (global::LiveKit.Proto.ParticipantKind) input.ReadEnum(); + break; + } } } } @@ -562,7 +696,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -591,7 +729,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Room.cs b/Runtime/Scripts/Proto/Room.cs index 5a90a2e..a2d0059 100644 --- a/Runtime/Scripts/Proto/Room.cs +++ b/Runtime/Scripts/Proto/Room.cs @@ -27,262 +27,277 @@ static RoomReflection() { "Cgpyb29tLnByb3RvEg1saXZla2l0LnByb3RvGgplMmVlLnByb3RvGgxoYW5k", "bGUucHJvdG8aEXBhcnRpY2lwYW50LnByb3RvGgt0cmFjay5wcm90bxoRdmlk", "ZW9fZnJhbWUucHJvdG8aC3N0YXRzLnByb3RvIlkKDkNvbm5lY3RSZXF1ZXN0", - "EgsKA3VybBgBIAEoCRINCgV0b2tlbhgCIAEoCRIrCgdvcHRpb25zGAMgASgL", + "EgsKA3VybBgBIAIoCRINCgV0b2tlbhgCIAIoCRIrCgdvcHRpb25zGAMgAigL", "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", - "GAIgASgJSACIAQFCCAoGX2Vycm9yIsgBChJQdWJsaXNoRGF0YVJlcXVlc3QS", - "IAoYbG9jYWxfcGFydGljaXBhbnRfaGFuZGxlGAEgASgEEhAKCGRhdGFfcHRy", - "GAIgASgEEhAKCGRhdGFfbGVuGAMgASgEEhAKCHJlbGlhYmxlGAQgASgIEhwK", - "EGRlc3RpbmF0aW9uX3NpZHMYBSADKAlCAhgBEhIKBXRvcGljGAYgASgJSACI", - "AQESHgoWZGVzdGluYXRpb25faWRlbnRpdGllcxgHIAMoCUIICgZfdG9waWMi", - "JwoTUHVibGlzaERhdGFSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJFChNQ", - "dWJsaXNoRGF0YUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9y", - "GAIgASgJSACIAQFCCAoGX2Vycm9yIqYBChtQdWJsaXNoVHJhbnNjcmlwdGlv", - "blJlcXVlc3QSIAoYbG9jYWxfcGFydGljaXBhbnRfaGFuZGxlGAEgASgEEhwK", - "FHBhcnRpY2lwYW50X2lkZW50aXR5GAIgASgJEhAKCHRyYWNrX2lkGAMgASgJ", - "EjUKCHNlZ21lbnRzGAQgAygLMiMubGl2ZWtpdC5wcm90by5UcmFuc2NyaXB0", - "aW9uU2VnbWVudCIwChxQdWJsaXNoVHJhbnNjcmlwdGlvblJlc3BvbnNlEhAK", - "CGFzeW5jX2lkGAEgASgEIk4KHFB1Ymxpc2hUcmFuc2NyaXB0aW9uQ2FsbGJh", - "Y2sSEAoIYXN5bmNfaWQYASABKAQSEgoFZXJyb3IYAiABKAlIAIgBAUIICgZf", - "ZXJyb3IidgoVUHVibGlzaFNpcER0bWZSZXF1ZXN0EiAKGGxvY2FsX3BhcnRp", - "Y2lwYW50X2hhbmRsZRgBIAEoBBIMCgRjb2RlGAIgASgNEg0KBWRpZ2l0GAMg", - "ASgJEh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYBCADKAkiKgoWUHVibGlz", - "aFNpcER0bWZSZXNwb25zZRIQCghhc3luY19pZBgBIAEoBCJIChZQdWJsaXNo", - "U2lwRHRtZkNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIg", - "ASgJSACIAQFCCAoGX2Vycm9yIk0KF1NldExvY2FsTWV0YWRhdGFSZXF1ZXN0", - "EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAEoBBIQCghtZXRhZGF0", - "YRgCIAEoCSIsChhTZXRMb2NhbE1ldGFkYXRhUmVzcG9uc2USEAoIYXN5bmNf", - "aWQYASABKAQiSgoYU2V0TG9jYWxNZXRhZGF0YUNhbGxiYWNrEhAKCGFzeW5j", - "X2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQFCCAoGX2Vycm9yIr4BChlT", - "ZXRMb2NhbEF0dHJpYnV0ZXNSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50", - "X2hhbmRsZRgBIAEoBBJMCgphdHRyaWJ1dGVzGAIgAygLMjgubGl2ZWtpdC5w", - "cm90by5TZXRMb2NhbEF0dHJpYnV0ZXNSZXF1ZXN0LkF0dHJpYnV0ZXNFbnRy", - "eRoxCg9BdHRyaWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", - "ASgJOgI4ASIuChpTZXRMb2NhbEF0dHJpYnV0ZXNSZXNwb25zZRIQCghhc3lu", - "Y19pZBgBIAEoBCJMChpTZXRMb2NhbEF0dHJpYnV0ZXNDYWxsYmFjaxIQCghh", - "c3luY19pZBgBIAEoBBISCgVlcnJvchgCIAEoCUgAiAEBQggKBl9lcnJvciJF", - "ChNTZXRMb2NhbE5hbWVSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hh", - "bmRsZRgBIAEoBBIMCgRuYW1lGAIgASgJIigKFFNldExvY2FsTmFtZVJlc3Bv", - "bnNlEhAKCGFzeW5jX2lkGAEgASgEIkYKFFNldExvY2FsTmFtZUNhbGxiYWNr", - "EhAKCGFzeW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQFCCAoGX2Vy", - "cm9yIkUKFFNldFN1YnNjcmliZWRSZXF1ZXN0EhEKCXN1YnNjcmliZRgBIAEo", - "CBIaChJwdWJsaWNhdGlvbl9oYW5kbGUYAiABKAQiFwoVU2V0U3Vic2NyaWJl", - "ZFJlc3BvbnNlIi0KFkdldFNlc3Npb25TdGF0c1JlcXVlc3QSEwoLcm9vbV9o", - "YW5kbGUYASABKAQiKwoXR2V0U2Vzc2lvblN0YXRzUmVzcG9uc2USEAoIYXN5", - "bmNfaWQYASABKAQirgEKF0dldFNlc3Npb25TdGF0c0NhbGxiYWNrEhAKCGFz", - "eW5jX2lkGAEgASgEEhIKBWVycm9yGAIgASgJSACIAQESMAoPcHVibGlzaGVy", - "X3N0YXRzGAMgAygLMhcubGl2ZWtpdC5wcm90by5SdGNTdGF0cxIxChBzdWJz", - "Y3JpYmVyX3N0YXRzGAQgAygLMhcubGl2ZWtpdC5wcm90by5SdGNTdGF0c0II", - "CgZfZXJyb3IiOwoNVmlkZW9FbmNvZGluZxITCgttYXhfYml0cmF0ZRgBIAEo", - "BBIVCg1tYXhfZnJhbWVyYXRlGAIgASgBIiQKDUF1ZGlvRW5jb2RpbmcSEwoL", - "bWF4X2JpdHJhdGUYASABKAQimgIKE1RyYWNrUHVibGlzaE9wdGlvbnMSNAoO", - "dmlkZW9fZW5jb2RpbmcYASABKAsyHC5saXZla2l0LnByb3RvLlZpZGVvRW5j", - "b2RpbmcSNAoOYXVkaW9fZW5jb2RpbmcYAiABKAsyHC5saXZla2l0LnByb3Rv", - "LkF1ZGlvRW5jb2RpbmcSLgoLdmlkZW9fY29kZWMYAyABKA4yGS5saXZla2l0", - "LnByb3RvLlZpZGVvQ29kZWMSCwoDZHR4GAQgASgIEgsKA3JlZBgFIAEoCBIR", - "CglzaW11bGNhc3QYBiABKAgSKgoGc291cmNlGAcgASgOMhoubGl2ZWtpdC5w", - "cm90by5UcmFja1NvdXJjZRIOCgZzdHJlYW0YCCABKAkiPQoJSWNlU2VydmVy", - "EgwKBHVybHMYASADKAkSEAoIdXNlcm5hbWUYAiABKAkSEAoIcGFzc3dvcmQY", - "AyABKAkihAIKCVJ0Y0NvbmZpZxJAChJpY2VfdHJhbnNwb3J0X3R5cGUYASAB", - "KA4yHy5saXZla2l0LnByb3RvLkljZVRyYW5zcG9ydFR5cGVIAIgBARJQChpj", - "b250aW51YWxfZ2F0aGVyaW5nX3BvbGljeRgCIAEoDjInLmxpdmVraXQucHJv", - "dG8uQ29udGludWFsR2F0aGVyaW5nUG9saWN5SAGIAQESLQoLaWNlX3NlcnZl", - "cnMYAyADKAsyGC5saXZla2l0LnByb3RvLkljZVNlcnZlckIVChNfaWNlX3Ry", - "YW5zcG9ydF90eXBlQh0KG19jb250aW51YWxfZ2F0aGVyaW5nX3BvbGljeSLg", - "AQoLUm9vbU9wdGlvbnMSFgoOYXV0b19zdWJzY3JpYmUYASABKAgSFwoPYWRh", - "cHRpdmVfc3RyZWFtGAIgASgIEhAKCGR5bmFjYXN0GAMgASgIEi0KBGUyZWUY", - "BCABKAsyGi5saXZla2l0LnByb3RvLkUyZWVPcHRpb25zSACIAQESMQoKcnRj", - "X2NvbmZpZxgFIAEoCzIYLmxpdmVraXQucHJvdG8uUnRjQ29uZmlnSAGIAQES", - "FAoMam9pbl9yZXRyaWVzGAYgASgNQgcKBV9lMmVlQg0KC19ydGNfY29uZmln", - "IncKFFRyYW5zY3JpcHRpb25TZWdtZW50EgoKAmlkGAEgASgJEgwKBHRleHQY", - "AiABKAkSEgoKc3RhcnRfdGltZRgDIAEoBBIQCghlbmRfdGltZRgEIAEoBBIN", - "CgVmaW5hbBgFIAEoCBIQCghsYW5ndWFnZRgGIAEoCSIwCgpCdWZmZXJJbmZv", - "EhAKCGRhdGFfcHRyGAEgASgEEhAKCGRhdGFfbGVuGAIgASgEImUKC093bmVk", - "QnVmZmVyEi0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3du", - "ZWRIYW5kbGUSJwoEZGF0YRgCIAEoCzIZLmxpdmVraXQucHJvdG8uQnVmZmVy", - "SW5mbyKhDgoJUm9vbUV2ZW50EhMKC3Jvb21faGFuZGxlGAEgASgEEkQKFXBh", - "cnRpY2lwYW50X2Nvbm5lY3RlZBgCIAEoCzIjLmxpdmVraXQucHJvdG8uUGFy", - "dGljaXBhbnRDb25uZWN0ZWRIABJKChhwYXJ0aWNpcGFudF9kaXNjb25uZWN0", - "ZWQYAyABKAsyJi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50RGlzY29ubmVj", - "dGVkSAASQwoVbG9jYWxfdHJhY2tfcHVibGlzaGVkGAQgASgLMiIubGl2ZWtp", - "dC5wcm90by5Mb2NhbFRyYWNrUHVibGlzaGVkSAASRwoXbG9jYWxfdHJhY2tf", - "dW5wdWJsaXNoZWQYBSABKAsyJC5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tV", - "bnB1Ymxpc2hlZEgAEkUKFmxvY2FsX3RyYWNrX3N1YnNjcmliZWQYBiABKAsy", - "Iy5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tTdWJzY3JpYmVkSAASOAoPdHJh", - "Y2tfcHVibGlzaGVkGAcgASgLMh0ubGl2ZWtpdC5wcm90by5UcmFja1B1Ymxp", - "c2hlZEgAEjwKEXRyYWNrX3VucHVibGlzaGVkGAggASgLMh8ubGl2ZWtpdC5w", - "cm90by5UcmFja1VucHVibGlzaGVkSAASOgoQdHJhY2tfc3Vic2NyaWJlZBgJ", - "IAEoCzIeLmxpdmVraXQucHJvdG8uVHJhY2tTdWJzY3JpYmVkSAASPgoSdHJh", - "Y2tfdW5zdWJzY3JpYmVkGAogASgLMiAubGl2ZWtpdC5wcm90by5UcmFja1Vu", - "c3Vic2NyaWJlZEgAEksKGXRyYWNrX3N1YnNjcmlwdGlvbl9mYWlsZWQYCyAB", - "KAsyJi5saXZla2l0LnByb3RvLlRyYWNrU3Vic2NyaXB0aW9uRmFpbGVkSAAS", - "MAoLdHJhY2tfbXV0ZWQYDCABKAsyGS5saXZla2l0LnByb3RvLlRyYWNrTXV0", - "ZWRIABI0Cg10cmFja191bm11dGVkGA0gASgLMhsubGl2ZWtpdC5wcm90by5U", - "cmFja1VubXV0ZWRIABJHChdhY3RpdmVfc3BlYWtlcnNfY2hhbmdlZBgOIAEo", - "CzIkLmxpdmVraXQucHJvdG8uQWN0aXZlU3BlYWtlcnNDaGFuZ2VkSAASQwoV", - "cm9vbV9tZXRhZGF0YV9jaGFuZ2VkGA8gASgLMiIubGl2ZWtpdC5wcm90by5S", - "b29tTWV0YWRhdGFDaGFuZ2VkSAASOQoQcm9vbV9zaWRfY2hhbmdlZBgQIAEo", - "CzIdLmxpdmVraXQucHJvdG8uUm9vbVNpZENoYW5nZWRIABJRChxwYXJ0aWNp", - "cGFudF9tZXRhZGF0YV9jaGFuZ2VkGBEgASgLMikubGl2ZWtpdC5wcm90by5Q", - "YXJ0aWNpcGFudE1ldGFkYXRhQ2hhbmdlZEgAEkkKGHBhcnRpY2lwYW50X25h", - "bWVfY2hhbmdlZBgSIAEoCzIlLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRO", - "YW1lQ2hhbmdlZEgAElUKHnBhcnRpY2lwYW50X2F0dHJpYnV0ZXNfY2hhbmdl", - "ZBgTIAEoCzIrLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRBdHRyaWJ1dGVz", - "Q2hhbmdlZEgAEk0KGmNvbm5lY3Rpb25fcXVhbGl0eV9jaGFuZ2VkGBQgASgL", - "MicubGl2ZWtpdC5wcm90by5Db25uZWN0aW9uUXVhbGl0eUNoYW5nZWRIABJJ", - "Chhjb25uZWN0aW9uX3N0YXRlX2NoYW5nZWQYFSABKAsyJS5saXZla2l0LnBy", - "b3RvLkNvbm5lY3Rpb25TdGF0ZUNoYW5nZWRIABIzCgxkaXNjb25uZWN0ZWQY", - "FiABKAsyGy5saXZla2l0LnByb3RvLkRpc2Nvbm5lY3RlZEgAEjMKDHJlY29u", - "bmVjdGluZxgXIAEoCzIbLmxpdmVraXQucHJvdG8uUmVjb25uZWN0aW5nSAAS", - "MQoLcmVjb25uZWN0ZWQYGCABKAsyGi5saXZla2l0LnByb3RvLlJlY29ubmVj", - "dGVkSAASPQoSZTJlZV9zdGF0ZV9jaGFuZ2VkGBkgASgLMh8ubGl2ZWtpdC5w", - "cm90by5FMmVlU3RhdGVDaGFuZ2VkSAASJQoDZW9zGBogASgLMhYubGl2ZWtp", - "dC5wcm90by5Sb29tRU9TSAASQQoUZGF0YV9wYWNrZXRfcmVjZWl2ZWQYGyAB", - "KAsyIS5saXZla2l0LnByb3RvLkRhdGFQYWNrZXRSZWNlaXZlZEgAEkYKFnRy", - "YW5zY3JpcHRpb25fcmVjZWl2ZWQYHCABKAsyJC5saXZla2l0LnByb3RvLlRy", - "YW5zY3JpcHRpb25SZWNlaXZlZEgAQgkKB21lc3NhZ2UiRAoIUm9vbUluZm8S", - "EAoDc2lkGAEgASgJSACIAQESDAoEbmFtZRgCIAEoCRIQCghtZXRhZGF0YRgD", - "IAEoCUIGCgRfc2lkImEKCU93bmVkUm9vbRItCgZoYW5kbGUYASABKAsyHS5s", - "aXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiUKBGluZm8YAiABKAsyFy5s", - "aXZla2l0LnByb3RvLlJvb21JbmZvIkUKFFBhcnRpY2lwYW50Q29ubmVjdGVk", - "Ei0KBGluZm8YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBh", - "bnQiNwoXUGFydGljaXBhbnREaXNjb25uZWN0ZWQSHAoUcGFydGljaXBhbnRf", - "aWRlbnRpdHkYASABKAkiKAoTTG9jYWxUcmFja1B1Ymxpc2hlZBIRCgl0cmFj", - "a19zaWQYASABKAkiMAoVTG9jYWxUcmFja1VucHVibGlzaGVkEhcKD3B1Ymxp", - "Y2F0aW9uX3NpZBgBIAEoCSIpChRMb2NhbFRyYWNrU3Vic2NyaWJlZBIRCgl0", - "cmFja19zaWQYAiABKAkiaQoOVHJhY2tQdWJsaXNoZWQSHAoUcGFydGljaXBh", - "bnRfaWRlbnRpdHkYASABKAkSOQoLcHVibGljYXRpb24YAiABKAsyJC5saXZl", - "a2l0LnByb3RvLk93bmVkVHJhY2tQdWJsaWNhdGlvbiJJChBUcmFja1VucHVi", - "bGlzaGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgASgJEhcKD3B1Ymxp", - "Y2F0aW9uX3NpZBgCIAEoCSJZCg9UcmFja1N1YnNjcmliZWQSHAoUcGFydGlj", - "aXBhbnRfaWRlbnRpdHkYASABKAkSKAoFdHJhY2sYAiABKAsyGS5saXZla2l0", - "LnByb3RvLk93bmVkVHJhY2siRAoRVHJhY2tVbnN1YnNjcmliZWQSHAoUcGFy", - "dGljaXBhbnRfaWRlbnRpdHkYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJIlkK", - "F1RyYWNrU3Vic2NyaXB0aW9uRmFpbGVkEhwKFHBhcnRpY2lwYW50X2lkZW50", - "aXR5GAEgASgJEhEKCXRyYWNrX3NpZBgCIAEoCRINCgVlcnJvchgDIAEoCSI9", - "CgpUcmFja011dGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgASgJEhEK", - "CXRyYWNrX3NpZBgCIAEoCSI/CgxUcmFja1VubXV0ZWQSHAoUcGFydGljaXBh", - "bnRfaWRlbnRpdHkYASABKAkSEQoJdHJhY2tfc2lkGAIgASgJIl8KEEUyZWVT", - "dGF0ZUNoYW5nZWQSHAoUcGFydGljaXBhbnRfaWRlbnRpdHkYASABKAkSLQoF", - "c3RhdGUYAiABKA4yHi5saXZla2l0LnByb3RvLkVuY3J5cHRpb25TdGF0ZSI3", - "ChVBY3RpdmVTcGVha2Vyc0NoYW5nZWQSHgoWcGFydGljaXBhbnRfaWRlbnRp", - "dGllcxgBIAMoCSInChNSb29tTWV0YWRhdGFDaGFuZ2VkEhAKCG1ldGFkYXRh", - "GAEgASgJIh0KDlJvb21TaWRDaGFuZ2VkEgsKA3NpZBgBIAEoCSJMChpQYXJ0", - "aWNpcGFudE1ldGFkYXRhQ2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0", - "eRgBIAEoCRIQCghtZXRhZGF0YRgCIAEoCSLaAgocUGFydGljaXBhbnRBdHRy", - "aWJ1dGVzQ2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRJP", - "CgphdHRyaWJ1dGVzGAIgAygLMjsubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFu", - "dEF0dHJpYnV0ZXNDaGFuZ2VkLkF0dHJpYnV0ZXNFbnRyeRJeChJjaGFuZ2Vk", - "X2F0dHJpYnV0ZXMYAyADKAsyQi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50", - "QXR0cmlidXRlc0NoYW5nZWQuQ2hhbmdlZEF0dHJpYnV0ZXNFbnRyeRoxCg9B", - "dHRyaWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", - "ARo4ChZDaGFuZ2VkQXR0cmlidXRlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", - "YWx1ZRgCIAEoCToCOAEiRAoWUGFydGljaXBhbnROYW1lQ2hhbmdlZBIcChRw", - "YXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRIMCgRuYW1lGAIgASgJImsKGENv", - "bm5lY3Rpb25RdWFsaXR5Q2hhbmdlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0", - "eRgBIAEoCRIxCgdxdWFsaXR5GAIgASgOMiAubGl2ZWtpdC5wcm90by5Db25u", - "ZWN0aW9uUXVhbGl0eSJUCgpVc2VyUGFja2V0EigKBGRhdGEYASABKAsyGi5s", - "aXZla2l0LnByb3RvLk93bmVkQnVmZmVyEhIKBXRvcGljGAIgASgJSACIAQFC", - "CAoGX3RvcGljIjUKB1NpcERUTUYSDAoEY29kZRgBIAEoDRISCgVkaWdpdBgC", - "IAEoCUgAiAEBQggKBl9kaWdpdCK/AQoSRGF0YVBhY2tldFJlY2VpdmVkEisK", - "BGtpbmQYASABKA4yHS5saXZla2l0LnByb3RvLkRhdGFQYWNrZXRLaW5kEhwK", - "FHBhcnRpY2lwYW50X2lkZW50aXR5GAIgASgJEikKBHVzZXIYBCABKAsyGS5s", + "c2USEAoIYXN5bmNfaWQYASACKAQivwMKD0Nvbm5lY3RDYWxsYmFjaxIQCghh", + "c3luY19pZBgBIAIoBBIPCgVlcnJvchgCIAEoCUgAEjcKBnJlc3VsdBgDIAEo", + "CzIlLmxpdmVraXQucHJvdG8uQ29ubmVjdENhbGxiYWNrLlJlc3VsdEgAGokB", + "ChVQYXJ0aWNpcGFudFdpdGhUcmFja3MSNAoLcGFydGljaXBhbnQYASACKAsy", + "Hy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBhbnQSOgoMcHVibGljYXRp", + "b25zGAIgAygLMiQubGl2ZWtpdC5wcm90by5Pd25lZFRyYWNrUHVibGljYXRp", + "b24auAEKBlJlc3VsdBImCgRyb29tGAEgAigLMhgubGl2ZWtpdC5wcm90by5P", + "d25lZFJvb20SOgoRbG9jYWxfcGFydGljaXBhbnQYAiACKAsyHy5saXZla2l0", + "LnByb3RvLk93bmVkUGFydGljaXBhbnQSSgoMcGFydGljaXBhbnRzGAMgAygL", + "MjQubGl2ZWtpdC5wcm90by5Db25uZWN0Q2FsbGJhY2suUGFydGljaXBhbnRX", + "aXRoVHJhY2tzQgkKB21lc3NhZ2UiKAoRRGlzY29ubmVjdFJlcXVlc3QSEwoL", + "cm9vbV9oYW5kbGUYASACKAQiJgoSRGlzY29ubmVjdFJlc3BvbnNlEhAKCGFz", + "eW5jX2lkGAEgAigEIiYKEkRpc2Nvbm5lY3RDYWxsYmFjaxIQCghhc3luY19p", + "ZBgBIAIoBCKCAQoTUHVibGlzaFRyYWNrUmVxdWVzdBIgChhsb2NhbF9wYXJ0", + "aWNpcGFudF9oYW5kbGUYASACKAQSFAoMdHJhY2tfaGFuZGxlGAIgAigEEjMK", + "B29wdGlvbnMYAyACKAsyIi5saXZla2l0LnByb3RvLlRyYWNrUHVibGlzaE9w", + "dGlvbnMiKAoUUHVibGlzaFRyYWNrUmVzcG9uc2USEAoIYXN5bmNfaWQYASAC", + "KAQigQEKFFB1Ymxpc2hUcmFja0NhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigE", + "Eg8KBWVycm9yGAIgASgJSAASOwoLcHVibGljYXRpb24YAyABKAsyJC5saXZl", + "a2l0LnByb3RvLk93bmVkVHJhY2tQdWJsaWNhdGlvbkgAQgkKB21lc3NhZ2Ui", + "ZwoVVW5wdWJsaXNoVHJhY2tSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50", + "X2hhbmRsZRgBIAIoBBIRCgl0cmFja19zaWQYAiACKAkSGQoRc3RvcF9vbl91", + "bnB1Ymxpc2gYAyACKAgiKgoWVW5wdWJsaXNoVHJhY2tSZXNwb25zZRIQCghh", + "c3luY19pZBgBIAIoBCI5ChZVbnB1Ymxpc2hUcmFja0NhbGxiYWNrEhAKCGFz", + "eW5jX2lkGAEgAigEEg0KBWVycm9yGAIgASgJIrkBChJQdWJsaXNoRGF0YVJl", + "cXVlc3QSIAoYbG9jYWxfcGFydGljaXBhbnRfaGFuZGxlGAEgAigEEhAKCGRh", + "dGFfcHRyGAIgAigEEhAKCGRhdGFfbGVuGAMgAigEEhAKCHJlbGlhYmxlGAQg", + "AigIEhwKEGRlc3RpbmF0aW9uX3NpZHMYBSADKAlCAhgBEg0KBXRvcGljGAYg", + "ASgJEh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYByADKAkiJwoTUHVibGlz", + "aERhdGFSZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCI2ChNQdWJsaXNoRGF0", + "YUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEg0KBWVycm9yGAIgASgJIqYB", + "ChtQdWJsaXNoVHJhbnNjcmlwdGlvblJlcXVlc3QSIAoYbG9jYWxfcGFydGlj", + "aXBhbnRfaGFuZGxlGAEgAigEEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAIg", + "AigJEhAKCHRyYWNrX2lkGAMgAigJEjUKCHNlZ21lbnRzGAQgAygLMiMubGl2", + "ZWtpdC5wcm90by5UcmFuc2NyaXB0aW9uU2VnbWVudCIwChxQdWJsaXNoVHJh", + "bnNjcmlwdGlvblJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIj8KHFB1Ymxp", + "c2hUcmFuc2NyaXB0aW9uQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDQoF", + "ZXJyb3IYAiABKAkidgoVUHVibGlzaFNpcER0bWZSZXF1ZXN0EiAKGGxvY2Fs", + "X3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIMCgRjb2RlGAIgAigNEg0KBWRp", + "Z2l0GAMgAigJEh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYBCADKAkiKgoW", + "UHVibGlzaFNpcER0bWZSZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCI5ChZQ", + "dWJsaXNoU2lwRHRtZkNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEg0KBWVy", + "cm9yGAIgASgJIk0KF1NldExvY2FsTWV0YWRhdGFSZXF1ZXN0EiAKGGxvY2Fs", + "X3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIQCghtZXRhZGF0YRgCIAIoCSIs", + "ChhTZXRMb2NhbE1ldGFkYXRhUmVzcG9uc2USEAoIYXN5bmNfaWQYASACKAQi", + "OwoYU2V0TG9jYWxNZXRhZGF0YUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigE", + "Eg0KBWVycm9yGAIgASgJIoQBChZTZW5kQ2hhdE1lc3NhZ2VSZXF1ZXN0EiAK", + "GGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIPCgdtZXNzYWdlGAIg", + "AigJEh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYAyADKAkSFwoPc2VuZGVy", + "X2lkZW50aXR5GAQgASgJIrwBChZFZGl0Q2hhdE1lc3NhZ2VSZXF1ZXN0EiAK", + "GGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIRCgllZGl0X3RleHQY", + "AiACKAkSNAoQb3JpZ2luYWxfbWVzc2FnZRgDIAIoCzIaLmxpdmVraXQucHJv", + "dG8uQ2hhdE1lc3NhZ2USHgoWZGVzdGluYXRpb25faWRlbnRpdGllcxgEIAMo", + "CRIXCg9zZW5kZXJfaWRlbnRpdHkYBSABKAkiKwoXU2VuZENoYXRNZXNzYWdl", + "UmVzcG9uc2USEAoIYXN5bmNfaWQYASACKAQiewoXU2VuZENoYXRNZXNzYWdl", + "Q2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDwoFZXJyb3IYAiABKAlIABIy", + "CgxjaGF0X21lc3NhZ2UYAyABKAsyGi5saXZla2l0LnByb3RvLkNoYXRNZXNz", + "YWdlSABCCQoHbWVzc2FnZSJxChlTZXRMb2NhbEF0dHJpYnV0ZXNSZXF1ZXN0", + "EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIyCgphdHRyaWJ1", + "dGVzGAIgAygLMh4ubGl2ZWtpdC5wcm90by5BdHRyaWJ1dGVzRW50cnkiLQoP", + "QXR0cmlidXRlc0VudHJ5EgsKA2tleRgBIAIoCRINCgV2YWx1ZRgCIAIoCSIu", + "ChpTZXRMb2NhbEF0dHJpYnV0ZXNSZXNwb25zZRIQCghhc3luY19pZBgBIAIo", + "BCI9ChpTZXRMb2NhbEF0dHJpYnV0ZXNDYWxsYmFjaxIQCghhc3luY19pZBgB", + "IAIoBBINCgVlcnJvchgCIAEoCSJFChNTZXRMb2NhbE5hbWVSZXF1ZXN0EiAK", + "GGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIMCgRuYW1lGAIgAigJ", + "IigKFFNldExvY2FsTmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIjcK", + "FFNldExvY2FsTmFtZUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEg0KBWVy", + "cm9yGAIgASgJIkUKFFNldFN1YnNjcmliZWRSZXF1ZXN0EhEKCXN1YnNjcmli", + "ZRgBIAIoCBIaChJwdWJsaWNhdGlvbl9oYW5kbGUYAiACKAQiFwoVU2V0U3Vi", + "c2NyaWJlZFJlc3BvbnNlIi0KFkdldFNlc3Npb25TdGF0c1JlcXVlc3QSEwoL", + "cm9vbV9oYW5kbGUYASACKAQiKwoXR2V0U2Vzc2lvblN0YXRzUmVzcG9uc2US", + "EAoIYXN5bmNfaWQYASACKAQi9wEKF0dldFNlc3Npb25TdGF0c0NhbGxiYWNr", + "EhAKCGFzeW5jX2lkGAEgAigEEg8KBWVycm9yGAIgASgJSAASPwoGcmVzdWx0", + "GAMgASgLMi0ubGl2ZWtpdC5wcm90by5HZXRTZXNzaW9uU3RhdHNDYWxsYmFj", + "ay5SZXN1bHRIABptCgZSZXN1bHQSMAoPcHVibGlzaGVyX3N0YXRzGAEgAygL", + "MhcubGl2ZWtpdC5wcm90by5SdGNTdGF0cxIxChBzdWJzY3JpYmVyX3N0YXRz", + "GAIgAygLMhcubGl2ZWtpdC5wcm90by5SdGNTdGF0c0IJCgdtZXNzYWdlIjsK", + "DVZpZGVvRW5jb2RpbmcSEwoLbWF4X2JpdHJhdGUYASACKAQSFQoNbWF4X2Zy", + "YW1lcmF0ZRgCIAIoASIkCg1BdWRpb0VuY29kaW5nEhMKC21heF9iaXRyYXRl", + "GAEgAigEIpoCChNUcmFja1B1Ymxpc2hPcHRpb25zEjQKDnZpZGVvX2VuY29k", + "aW5nGAEgASgLMhwubGl2ZWtpdC5wcm90by5WaWRlb0VuY29kaW5nEjQKDmF1", + "ZGlvX2VuY29kaW5nGAIgASgLMhwubGl2ZWtpdC5wcm90by5BdWRpb0VuY29k", + "aW5nEi4KC3ZpZGVvX2NvZGVjGAMgASgOMhkubGl2ZWtpdC5wcm90by5WaWRl", + "b0NvZGVjEgsKA2R0eBgEIAEoCBILCgNyZWQYBSABKAgSEQoJc2ltdWxjYXN0", + "GAYgASgIEioKBnNvdXJjZRgHIAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tT", + "b3VyY2USDgoGc3RyZWFtGAggASgJIj0KCUljZVNlcnZlchIMCgR1cmxzGAEg", + "AygJEhAKCHVzZXJuYW1lGAIgASgJEhAKCHBhc3N3b3JkGAMgASgJIsQBCglS", + "dGNDb25maWcSOwoSaWNlX3RyYW5zcG9ydF90eXBlGAEgASgOMh8ubGl2ZWtp", + "dC5wcm90by5JY2VUcmFuc3BvcnRUeXBlEksKGmNvbnRpbnVhbF9nYXRoZXJp", + "bmdfcG9saWN5GAIgASgOMicubGl2ZWtpdC5wcm90by5Db250aW51YWxHYXRo", + "ZXJpbmdQb2xpY3kSLQoLaWNlX3NlcnZlcnMYAyADKAsyGC5saXZla2l0LnBy", + "b3RvLkljZVNlcnZlciK+AQoLUm9vbU9wdGlvbnMSFgoOYXV0b19zdWJzY3Jp", + "YmUYASABKAgSFwoPYWRhcHRpdmVfc3RyZWFtGAIgASgIEhAKCGR5bmFjYXN0", + "GAMgASgIEigKBGUyZWUYBCABKAsyGi5saXZla2l0LnByb3RvLkUyZWVPcHRp", + "b25zEiwKCnJ0Y19jb25maWcYBSABKAsyGC5saXZla2l0LnByb3RvLlJ0Y0Nv", + "bmZpZxIUCgxqb2luX3JldHJpZXMYBiABKA0idwoUVHJhbnNjcmlwdGlvblNl", + "Z21lbnQSCgoCaWQYASACKAkSDAoEdGV4dBgCIAIoCRISCgpzdGFydF90aW1l", + "GAMgAigEEhAKCGVuZF90aW1lGAQgAigEEg0KBWZpbmFsGAUgAigIEhAKCGxh", + "bmd1YWdlGAYgAigJIjAKCkJ1ZmZlckluZm8SEAoIZGF0YV9wdHIYASACKAQS", + "EAoIZGF0YV9sZW4YAiACKAQiZQoLT3duZWRCdWZmZXISLQoGaGFuZGxlGAEg", + "AigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRInCgRkYXRhGAIg", + "AigLMhkubGl2ZWtpdC5wcm90by5CdWZmZXJJbmZvIt0OCglSb29tRXZlbnQS", + "EwoLcm9vbV9oYW5kbGUYASACKAQSRAoVcGFydGljaXBhbnRfY29ubmVjdGVk", + "GAIgASgLMiMubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudENvbm5lY3RlZEgA", + "EkoKGHBhcnRpY2lwYW50X2Rpc2Nvbm5lY3RlZBgDIAEoCzImLmxpdmVraXQu", + "cHJvdG8uUGFydGljaXBhbnREaXNjb25uZWN0ZWRIABJDChVsb2NhbF90cmFj", + "a19wdWJsaXNoZWQYBCABKAsyIi5saXZla2l0LnByb3RvLkxvY2FsVHJhY2tQ", + "dWJsaXNoZWRIABJHChdsb2NhbF90cmFja191bnB1Ymxpc2hlZBgFIAEoCzIk", + "LmxpdmVraXQucHJvdG8uTG9jYWxUcmFja1VucHVibGlzaGVkSAASRQoWbG9j", + "YWxfdHJhY2tfc3Vic2NyaWJlZBgGIAEoCzIjLmxpdmVraXQucHJvdG8uTG9j", + "YWxUcmFja1N1YnNjcmliZWRIABI4Cg90cmFja19wdWJsaXNoZWQYByABKAsy", + "HS5saXZla2l0LnByb3RvLlRyYWNrUHVibGlzaGVkSAASPAoRdHJhY2tfdW5w", + "dWJsaXNoZWQYCCABKAsyHy5saXZla2l0LnByb3RvLlRyYWNrVW5wdWJsaXNo", + "ZWRIABI6ChB0cmFja19zdWJzY3JpYmVkGAkgASgLMh4ubGl2ZWtpdC5wcm90", + "by5UcmFja1N1YnNjcmliZWRIABI+ChJ0cmFja191bnN1YnNjcmliZWQYCiAB", + "KAsyIC5saXZla2l0LnByb3RvLlRyYWNrVW5zdWJzY3JpYmVkSAASSwoZdHJh", + "Y2tfc3Vic2NyaXB0aW9uX2ZhaWxlZBgLIAEoCzImLmxpdmVraXQucHJvdG8u", + "VHJhY2tTdWJzY3JpcHRpb25GYWlsZWRIABIwCgt0cmFja19tdXRlZBgMIAEo", + "CzIZLmxpdmVraXQucHJvdG8uVHJhY2tNdXRlZEgAEjQKDXRyYWNrX3VubXV0", + "ZWQYDSABKAsyGy5saXZla2l0LnByb3RvLlRyYWNrVW5tdXRlZEgAEkcKF2Fj", + "dGl2ZV9zcGVha2Vyc19jaGFuZ2VkGA4gASgLMiQubGl2ZWtpdC5wcm90by5B", + "Y3RpdmVTcGVha2Vyc0NoYW5nZWRIABJDChVyb29tX21ldGFkYXRhX2NoYW5n", + "ZWQYDyABKAsyIi5saXZla2l0LnByb3RvLlJvb21NZXRhZGF0YUNoYW5nZWRI", + "ABI5ChByb29tX3NpZF9jaGFuZ2VkGBAgASgLMh0ubGl2ZWtpdC5wcm90by5S", + "b29tU2lkQ2hhbmdlZEgAElEKHHBhcnRpY2lwYW50X21ldGFkYXRhX2NoYW5n", + "ZWQYESABKAsyKS5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50TWV0YWRhdGFD", + "aGFuZ2VkSAASSQoYcGFydGljaXBhbnRfbmFtZV9jaGFuZ2VkGBIgASgLMiUu", + "bGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudE5hbWVDaGFuZ2VkSAASVQoecGFy", + "dGljaXBhbnRfYXR0cmlidXRlc19jaGFuZ2VkGBMgASgLMisubGl2ZWtpdC5w", + "cm90by5QYXJ0aWNpcGFudEF0dHJpYnV0ZXNDaGFuZ2VkSAASTQoaY29ubmVj", + "dGlvbl9xdWFsaXR5X2NoYW5nZWQYFCABKAsyJy5saXZla2l0LnByb3RvLkNv", + "bm5lY3Rpb25RdWFsaXR5Q2hhbmdlZEgAEkkKGGNvbm5lY3Rpb25fc3RhdGVf", + "Y2hhbmdlZBgVIAEoCzIlLmxpdmVraXQucHJvdG8uQ29ubmVjdGlvblN0YXRl", + "Q2hhbmdlZEgAEjMKDGRpc2Nvbm5lY3RlZBgWIAEoCzIbLmxpdmVraXQucHJv", + "dG8uRGlzY29ubmVjdGVkSAASMwoMcmVjb25uZWN0aW5nGBcgASgLMhsubGl2", + "ZWtpdC5wcm90by5SZWNvbm5lY3RpbmdIABIxCgtyZWNvbm5lY3RlZBgYIAEo", + "CzIaLmxpdmVraXQucHJvdG8uUmVjb25uZWN0ZWRIABI9ChJlMmVlX3N0YXRl", + "X2NoYW5nZWQYGSABKAsyHy5saXZla2l0LnByb3RvLkUyZWVTdGF0ZUNoYW5n", + "ZWRIABIlCgNlb3MYGiABKAsyFi5saXZla2l0LnByb3RvLlJvb21FT1NIABJB", + "ChRkYXRhX3BhY2tldF9yZWNlaXZlZBgbIAEoCzIhLmxpdmVraXQucHJvdG8u", + "RGF0YVBhY2tldFJlY2VpdmVkSAASRgoWdHJhbnNjcmlwdGlvbl9yZWNlaXZl", + "ZBgcIAEoCzIkLmxpdmVraXQucHJvdG8uVHJhbnNjcmlwdGlvblJlY2VpdmVk", + "SAASOgoMY2hhdF9tZXNzYWdlGB0gASgLMiIubGl2ZWtpdC5wcm90by5DaGF0", + "TWVzc2FnZVJlY2VpdmVkSABCCQoHbWVzc2FnZSI3CghSb29tSW5mbxILCgNz", + "aWQYASABKAkSDAoEbmFtZRgCIAIoCRIQCghtZXRhZGF0YRgDIAIoCSJhCglP", + "d25lZFJvb20SLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlP", + "d25lZEhhbmRsZRIlCgRpbmZvGAIgAigLMhcubGl2ZWtpdC5wcm90by5Sb29t", + "SW5mbyJFChRQYXJ0aWNpcGFudENvbm5lY3RlZBItCgRpbmZvGAEgAigLMh8u", + "bGl2ZWtpdC5wcm90by5Pd25lZFBhcnRpY2lwYW50IjcKF1BhcnRpY2lwYW50", + "RGlzY29ubmVjdGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgAigJIigK", + "E0xvY2FsVHJhY2tQdWJsaXNoZWQSEQoJdHJhY2tfc2lkGAEgAigJIjAKFUxv", + "Y2FsVHJhY2tVbnB1Ymxpc2hlZBIXCg9wdWJsaWNhdGlvbl9zaWQYASACKAki", + "KQoUTG9jYWxUcmFja1N1YnNjcmliZWQSEQoJdHJhY2tfc2lkGAIgAigJImkK", + "DlRyYWNrUHVibGlzaGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgAigJ", + "EjkKC3B1YmxpY2F0aW9uGAIgAigLMiQubGl2ZWtpdC5wcm90by5Pd25lZFRy", + "YWNrUHVibGljYXRpb24iSQoQVHJhY2tVbnB1Ymxpc2hlZBIcChRwYXJ0aWNp", + "cGFudF9pZGVudGl0eRgBIAIoCRIXCg9wdWJsaWNhdGlvbl9zaWQYAiACKAki", + "WQoPVHJhY2tTdWJzY3JpYmVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEg", + "AigJEigKBXRyYWNrGAIgAigLMhkubGl2ZWtpdC5wcm90by5Pd25lZFRyYWNr", + "IkQKEVRyYWNrVW5zdWJzY3JpYmVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5", + "GAEgAigJEhEKCXRyYWNrX3NpZBgCIAIoCSJZChdUcmFja1N1YnNjcmlwdGlv", + "bkZhaWxlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAIoCRIRCgl0cmFj", + "a19zaWQYAiACKAkSDQoFZXJyb3IYAyACKAkiPQoKVHJhY2tNdXRlZBIcChRw", + "YXJ0aWNpcGFudF9pZGVudGl0eRgBIAIoCRIRCgl0cmFja19zaWQYAiACKAki", + "PwoMVHJhY2tVbm11dGVkEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAEgAigJ", + "EhEKCXRyYWNrX3NpZBgCIAIoCSJfChBFMmVlU3RhdGVDaGFuZ2VkEhwKFHBh", + "cnRpY2lwYW50X2lkZW50aXR5GAEgAigJEi0KBXN0YXRlGAIgAigOMh4ubGl2", + "ZWtpdC5wcm90by5FbmNyeXB0aW9uU3RhdGUiNwoVQWN0aXZlU3BlYWtlcnND", + "aGFuZ2VkEh4KFnBhcnRpY2lwYW50X2lkZW50aXRpZXMYASADKAkiJwoTUm9v", + "bU1ldGFkYXRhQ2hhbmdlZBIQCghtZXRhZGF0YRgBIAIoCSIdCg5Sb29tU2lk", + "Q2hhbmdlZBILCgNzaWQYASACKAkiTAoaUGFydGljaXBhbnRNZXRhZGF0YUNo", + "YW5nZWQSHAoUcGFydGljaXBhbnRfaWRlbnRpdHkYASACKAkSEAoIbWV0YWRh", + "dGEYAiACKAkirAEKHFBhcnRpY2lwYW50QXR0cmlidXRlc0NoYW5nZWQSHAoU", + "cGFydGljaXBhbnRfaWRlbnRpdHkYASACKAkSMgoKYXR0cmlidXRlcxgCIAMo", + "CzIeLmxpdmVraXQucHJvdG8uQXR0cmlidXRlc0VudHJ5EjoKEmNoYW5nZWRf", + "YXR0cmlidXRlcxgDIAMoCzIeLmxpdmVraXQucHJvdG8uQXR0cmlidXRlc0Vu", + "dHJ5IkQKFlBhcnRpY2lwYW50TmFtZUNoYW5nZWQSHAoUcGFydGljaXBhbnRf", + "aWRlbnRpdHkYASACKAkSDAoEbmFtZRgCIAIoCSJrChhDb25uZWN0aW9uUXVh", + "bGl0eUNoYW5nZWQSHAoUcGFydGljaXBhbnRfaWRlbnRpdHkYASACKAkSMQoH", + "cXVhbGl0eRgCIAIoDjIgLmxpdmVraXQucHJvdG8uQ29ubmVjdGlvblF1YWxp", + "dHkiRQoKVXNlclBhY2tldBIoCgRkYXRhGAEgAigLMhoubGl2ZWtpdC5wcm90", + "by5Pd25lZEJ1ZmZlchINCgV0b3BpYxgCIAEoCSJ5CgtDaGF0TWVzc2FnZRIK", + "CgJpZBgBIAIoCRIRCgl0aW1lc3RhbXAYAiACKAMSDwoHbWVzc2FnZRgDIAIo", + "CRIWCg5lZGl0X3RpbWVzdGFtcBgEIAEoAxIPCgdkZWxldGVkGAUgASgIEhEK", + "CWdlbmVyYXRlZBgGIAEoCCJgChNDaGF0TWVzc2FnZVJlY2VpdmVkEisKB21l", + "c3NhZ2UYASACKAsyGi5saXZla2l0LnByb3RvLkNoYXRNZXNzYWdlEhwKFHBh", + "cnRpY2lwYW50X2lkZW50aXR5GAIgAigJIiYKB1NpcERUTUYSDAoEY29kZRgB", + "IAIoDRINCgVkaWdpdBgCIAEoCSK/AQoSRGF0YVBhY2tldFJlY2VpdmVkEisK", + "BGtpbmQYASACKA4yHS5saXZla2l0LnByb3RvLkRhdGFQYWNrZXRLaW5kEhwK", + "FHBhcnRpY2lwYW50X2lkZW50aXR5GAIgAigJEikKBHVzZXIYBCABKAsyGS5s", "aXZla2l0LnByb3RvLlVzZXJQYWNrZXRIABIqCghzaXBfZHRtZhgFIAEoCzIW", - "LmxpdmVraXQucHJvdG8uU2lwRFRNRkgAQgcKBXZhbHVlIrABChVUcmFuc2Ny", - "aXB0aW9uUmVjZWl2ZWQSIQoUcGFydGljaXBhbnRfaWRlbnRpdHkYASABKAlI", - "AIgBARIWCgl0cmFja19zaWQYAiABKAlIAYgBARI1CghzZWdtZW50cxgDIAMo", - "CzIjLmxpdmVraXQucHJvdG8uVHJhbnNjcmlwdGlvblNlZ21lbnRCFwoVX3Bh", - "cnRpY2lwYW50X2lkZW50aXR5QgwKCl90cmFja19zaWQiRwoWQ29ubmVjdGlv", - "blN0YXRlQ2hhbmdlZBItCgVzdGF0ZRgBIAEoDjIeLmxpdmVraXQucHJvdG8u", - "Q29ubmVjdGlvblN0YXRlIgsKCUNvbm5lY3RlZCI/CgxEaXNjb25uZWN0ZWQS", - "LwoGcmVhc29uGAEgASgOMh8ubGl2ZWtpdC5wcm90by5EaXNjb25uZWN0UmVh", - "c29uIg4KDFJlY29ubmVjdGluZyINCgtSZWNvbm5lY3RlZCIJCgdSb29tRU9T", - "KlAKEEljZVRyYW5zcG9ydFR5cGUSEwoPVFJBTlNQT1JUX1JFTEFZEAASFAoQ", - "VFJBTlNQT1JUX05PSE9TVBABEhEKDVRSQU5TUE9SVF9BTEwQAipDChhDb250", - "aW51YWxHYXRoZXJpbmdQb2xpY3kSDwoLR0FUSEVSX09OQ0UQABIWChJHQVRI", - "RVJfQ09OVElOVUFMTFkQASpgChFDb25uZWN0aW9uUXVhbGl0eRIQCgxRVUFM", - "SVRZX1BPT1IQABIQCgxRVUFMSVRZX0dPT0QQARIVChFRVUFMSVRZX0VYQ0VM", - "TEVOVBACEhAKDFFVQUxJVFlfTE9TVBADKlMKD0Nvbm5lY3Rpb25TdGF0ZRIV", - "ChFDT05OX0RJU0NPTk5FQ1RFRBAAEhIKDkNPTk5fQ09OTkVDVEVEEAESFQoR", - "Q09OTl9SRUNPTk5FQ1RJTkcQAiozCg5EYXRhUGFja2V0S2luZBIOCgpLSU5E", - "X0xPU1NZEAASEQoNS0lORF9SRUxJQUJMRRABKuwBChBEaXNjb25uZWN0UmVh", - "c29uEhIKDlVOS05PV05fUkVBU09OEAASFAoQQ0xJRU5UX0lOSVRJQVRFRBAB", - "EhYKEkRVUExJQ0FURV9JREVOVElUWRACEhMKD1NFUlZFUl9TSFVURE9XThAD", - "EhcKE1BBUlRJQ0lQQU5UX1JFTU9WRUQQBBIQCgxST09NX0RFTEVURUQQBRIS", - "Cg5TVEFURV9NSVNNQVRDSBAGEhAKDEpPSU5fRkFJTFVSRRAHEg0KCU1JR1JB", - "VElPThAIEhAKDFNJR05BTF9DTE9TRRAJEg8KC1JPT01fQ0xPU0VEEApCEKoC", - "DUxpdmVLaXQuUHJvdG9iBnByb3RvMw==")); + "LmxpdmVraXQucHJvdG8uU2lwRFRNRkgAQgcKBXZhbHVlIn8KFVRyYW5zY3Jp", + "cHRpb25SZWNlaXZlZBIcChRwYXJ0aWNpcGFudF9pZGVudGl0eRgBIAEoCRIR", + "Cgl0cmFja19zaWQYAiABKAkSNQoIc2VnbWVudHMYAyADKAsyIy5saXZla2l0", + "LnByb3RvLlRyYW5zY3JpcHRpb25TZWdtZW50IkcKFkNvbm5lY3Rpb25TdGF0", + "ZUNoYW5nZWQSLQoFc3RhdGUYASACKA4yHi5saXZla2l0LnByb3RvLkNvbm5l", + "Y3Rpb25TdGF0ZSILCglDb25uZWN0ZWQiPwoMRGlzY29ubmVjdGVkEi8KBnJl", + "YXNvbhgBIAIoDjIfLmxpdmVraXQucHJvdG8uRGlzY29ubmVjdFJlYXNvbiIO", + "CgxSZWNvbm5lY3RpbmciDQoLUmVjb25uZWN0ZWQiCQoHUm9vbUVPUypQChBJ", + "Y2VUcmFuc3BvcnRUeXBlEhMKD1RSQU5TUE9SVF9SRUxBWRAAEhQKEFRSQU5T", + "UE9SVF9OT0hPU1QQARIRCg1UUkFOU1BPUlRfQUxMEAIqQwoYQ29udGludWFs", + "R2F0aGVyaW5nUG9saWN5Eg8KC0dBVEhFUl9PTkNFEAASFgoSR0FUSEVSX0NP", + "TlRJTlVBTExZEAEqYAoRQ29ubmVjdGlvblF1YWxpdHkSEAoMUVVBTElUWV9Q", + "T09SEAASEAoMUVVBTElUWV9HT09EEAESFQoRUVVBTElUWV9FWENFTExFTlQQ", + "AhIQCgxRVUFMSVRZX0xPU1QQAypTCg9Db25uZWN0aW9uU3RhdGUSFQoRQ09O", + "Tl9ESVNDT05ORUNURUQQABISCg5DT05OX0NPTk5FQ1RFRBABEhUKEUNPTk5f", + "UkVDT05ORUNUSU5HEAIqMwoORGF0YVBhY2tldEtpbmQSDgoKS0lORF9MT1NT", + "WRAAEhEKDUtJTkRfUkVMSUFCTEUQASrsAQoQRGlzY29ubmVjdFJlYXNvbhIS", + "Cg5VTktOT1dOX1JFQVNPThAAEhQKEENMSUVOVF9JTklUSUFURUQQARIWChJE", + "VVBMSUNBVEVfSURFTlRJVFkQAhITCg9TRVJWRVJfU0hVVERPV04QAxIXChNQ", + "QVJUSUNJUEFOVF9SRU1PVkVEEAQSEAoMUk9PTV9ERUxFVEVEEAUSEgoOU1RB", + "VEVfTUlTTUFUQ0gQBhIQCgxKT0lOX0ZBSUxVUkUQBxINCglNSUdSQVRJT04Q", + "CBIQCgxTSUdOQUxfQ0xPU0UQCRIPCgtST09NX0NMT1NFRBAKQhCqAg1MaXZl", + "S2l0LlByb3Rv")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.E2EeReflection.Descriptor, global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.ParticipantReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, global::LiveKit.Proto.VideoFrameReflection.Descriptor, global::LiveKit.Proto.StatsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.IceTransportType), typeof(global::LiveKit.Proto.ContinualGatheringPolicy), typeof(global::LiveKit.Proto.ConnectionQuality), typeof(global::LiveKit.Proto.ConnectionState), typeof(global::LiveKit.Proto.DataPacketKind), typeof(global::LiveKit.Proto.DisconnectReason), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectRequest), global::LiveKit.Proto.ConnectRequest.Parser, new[]{ "Url", "Token", "Options" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectResponse), global::LiveKit.Proto.ConnectResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectCallback), global::LiveKit.Proto.ConnectCallback.Parser, new[]{ "AsyncId", "Error", "Room", "LocalParticipant", "Participants" }, new[]{ "Error" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectCallback.Types.ParticipantWithTracks), global::LiveKit.Proto.ConnectCallback.Types.ParticipantWithTracks.Parser, new[]{ "Participant", "Publications" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectCallback), global::LiveKit.Proto.ConnectCallback.Parser, new[]{ "AsyncId", "Error", "Result" }, new[]{ "Message" }, 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.ConnectCallback.Types.Result), global::LiveKit.Proto.ConnectCallback.Types.Result.Parser, new[]{ "Room", "LocalParticipant", "Participants" }, 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, 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.PublishTrackCallback), global::LiveKit.Proto.PublishTrackCallback.Parser, new[]{ "AsyncId", "Error", "Publication" }, new[]{ "Message" }, 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[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishDataRequest), global::LiveKit.Proto.PublishDataRequest.Parser, new[]{ "LocalParticipantHandle", "DataPtr", "DataLen", "Reliable", "DestinationSids", "Topic", "DestinationIdentities" }, new[]{ "Topic" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnpublishTrackCallback), global::LiveKit.Proto.UnpublishTrackCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishDataRequest), global::LiveKit.Proto.PublishDataRequest.Parser, new[]{ "LocalParticipantHandle", "DataPtr", "DataLen", "Reliable", "DestinationSids", "Topic", "DestinationIdentities" }, null, 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.PublishDataCallback), global::LiveKit.Proto.PublishDataCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionRequest), global::LiveKit.Proto.PublishTranscriptionRequest.Parser, new[]{ "LocalParticipantHandle", "ParticipantIdentity", "TrackId", "Segments" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionResponse), global::LiveKit.Proto.PublishTranscriptionResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionCallback), global::LiveKit.Proto.PublishTranscriptionCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishTranscriptionCallback), global::LiveKit.Proto.PublishTranscriptionCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfRequest), global::LiveKit.Proto.PublishSipDtmfRequest.Parser, new[]{ "LocalParticipantHandle", "Code", "Digit", "DestinationIdentities" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfResponse), global::LiveKit.Proto.PublishSipDtmfResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfCallback), global::LiveKit.Proto.PublishSipDtmfCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PublishSipDtmfCallback), global::LiveKit.Proto.PublishSipDtmfCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataRequest), global::LiveKit.Proto.SetLocalMetadataRequest.Parser, new[]{ "LocalParticipantHandle", "Metadata" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataResponse), global::LiveKit.Proto.SetLocalMetadataResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataCallback), global::LiveKit.Proto.SetLocalMetadataCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesRequest), global::LiveKit.Proto.SetLocalAttributesRequest.Parser, new[]{ "LocalParticipantHandle", "Attributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalMetadataCallback), global::LiveKit.Proto.SetLocalMetadataCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SendChatMessageRequest), global::LiveKit.Proto.SendChatMessageRequest.Parser, new[]{ "LocalParticipantHandle", "Message", "DestinationIdentities", "SenderIdentity" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.EditChatMessageRequest), global::LiveKit.Proto.EditChatMessageRequest.Parser, new[]{ "LocalParticipantHandle", "EditText", "OriginalMessage", "DestinationIdentities", "SenderIdentity" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SendChatMessageResponse), global::LiveKit.Proto.SendChatMessageResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SendChatMessageCallback), global::LiveKit.Proto.SendChatMessageCallback.Parser, new[]{ "AsyncId", "Error", "ChatMessage" }, new[]{ "Message" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesRequest), global::LiveKit.Proto.SetLocalAttributesRequest.Parser, new[]{ "LocalParticipantHandle", "Attributes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AttributesEntry), global::LiveKit.Proto.AttributesEntry.Parser, new[]{ "Key", "Value" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesResponse), global::LiveKit.Proto.SetLocalAttributesResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesCallback), global::LiveKit.Proto.SetLocalAttributesCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalAttributesCallback), global::LiveKit.Proto.SetLocalAttributesCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameRequest), global::LiveKit.Proto.SetLocalNameRequest.Parser, new[]{ "LocalParticipantHandle", "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameResponse), global::LiveKit.Proto.SetLocalNameResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameCallback), global::LiveKit.Proto.SetLocalNameCallback.Parser, new[]{ "AsyncId", "Error" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SetLocalNameCallback), global::LiveKit.Proto.SetLocalNameCallback.Parser, new[]{ "AsyncId", "Error" }, 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.GetSessionStatsCallback), global::LiveKit.Proto.GetSessionStatsCallback.Parser, new[]{ "AsyncId", "Error", "Result" }, new[]{ "Message" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.GetSessionStatsCallback.Types.Result), global::LiveKit.Proto.GetSessionStatsCallback.Types.Result.Parser, new[]{ "PublisherStats", "SubscriberStats" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoEncoding), global::LiveKit.Proto.VideoEncoding.Parser, new[]{ "MaxBitrate", "MaxFramerate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioEncoding), global::LiveKit.Proto.AudioEncoding.Parser, new[]{ "MaxBitrate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TrackPublishOptions), global::LiveKit.Proto.TrackPublishOptions.Parser, new[]{ "VideoEncoding", "AudioEncoding", "VideoCodec", "Dtx", "Red", "Simulcast", "Source", "Stream" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.IceServer), global::LiveKit.Proto.IceServer.Parser, new[]{ "Urls", "Username", "Password" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcConfig), global::LiveKit.Proto.RtcConfig.Parser, new[]{ "IceTransportType", "ContinualGatheringPolicy", "IceServers" }, new[]{ "IceTransportType", "ContinualGatheringPolicy" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomOptions), global::LiveKit.Proto.RoomOptions.Parser, new[]{ "AutoSubscribe", "AdaptiveStream", "Dynacast", "E2Ee", "RtcConfig", "JoinRetries" }, new[]{ "E2Ee", "RtcConfig" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RtcConfig), global::LiveKit.Proto.RtcConfig.Parser, new[]{ "IceTransportType", "ContinualGatheringPolicy", "IceServers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomOptions), global::LiveKit.Proto.RoomOptions.Parser, new[]{ "AutoSubscribe", "AdaptiveStream", "Dynacast", "E2Ee", "RtcConfig", "JoinRetries" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TranscriptionSegment), global::LiveKit.Proto.TranscriptionSegment.Parser, new[]{ "Id", "Text", "StartTime", "EndTime", "Final", "Language" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.BufferInfo), global::LiveKit.Proto.BufferInfo.Parser, new[]{ "DataPtr", "DataLen" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedBuffer), global::LiveKit.Proto.OwnedBuffer.Parser, new[]{ "Handle", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEvent), global::LiveKit.Proto.RoomEvent.Parser, new[]{ "RoomHandle", "ParticipantConnected", "ParticipantDisconnected", "LocalTrackPublished", "LocalTrackUnpublished", "LocalTrackSubscribed", "TrackPublished", "TrackUnpublished", "TrackSubscribed", "TrackUnsubscribed", "TrackSubscriptionFailed", "TrackMuted", "TrackUnmuted", "ActiveSpeakersChanged", "RoomMetadataChanged", "RoomSidChanged", "ParticipantMetadataChanged", "ParticipantNameChanged", "ParticipantAttributesChanged", "ConnectionQualityChanged", "ConnectionStateChanged", "Disconnected", "Reconnecting", "Reconnected", "E2EeStateChanged", "Eos", "DataPacketReceived", "TranscriptionReceived" }, new[]{ "Message" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomInfo), global::LiveKit.Proto.RoomInfo.Parser, new[]{ "Sid", "Name", "Metadata" }, new[]{ "Sid" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomEvent), global::LiveKit.Proto.RoomEvent.Parser, new[]{ "RoomHandle", "ParticipantConnected", "ParticipantDisconnected", "LocalTrackPublished", "LocalTrackUnpublished", "LocalTrackSubscribed", "TrackPublished", "TrackUnpublished", "TrackSubscribed", "TrackUnsubscribed", "TrackSubscriptionFailed", "TrackMuted", "TrackUnmuted", "ActiveSpeakersChanged", "RoomMetadataChanged", "RoomSidChanged", "ParticipantMetadataChanged", "ParticipantNameChanged", "ParticipantAttributesChanged", "ConnectionQualityChanged", "ConnectionStateChanged", "Disconnected", "Reconnecting", "Reconnected", "E2EeStateChanged", "Eos", "DataPacketReceived", "TranscriptionReceived", "ChatMessage" }, 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[]{ "ParticipantIdentity" }, null, null, null, null), @@ -301,13 +316,15 @@ static RoomReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomMetadataChanged), global::LiveKit.Proto.RoomMetadataChanged.Parser, new[]{ "Metadata" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RoomSidChanged), global::LiveKit.Proto.RoomSidChanged.Parser, new[]{ "Sid" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantMetadataChanged), global::LiveKit.Proto.ParticipantMetadataChanged.Parser, new[]{ "ParticipantIdentity", "Metadata" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantAttributesChanged), global::LiveKit.Proto.ParticipantAttributesChanged.Parser, new[]{ "ParticipantIdentity", "Attributes", "ChangedAttributes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantAttributesChanged), global::LiveKit.Proto.ParticipantAttributesChanged.Parser, new[]{ "ParticipantIdentity", "Attributes", "ChangedAttributes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ParticipantNameChanged), global::LiveKit.Proto.ParticipantNameChanged.Parser, new[]{ "ParticipantIdentity", "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ConnectionQualityChanged), global::LiveKit.Proto.ConnectionQualityChanged.Parser, new[]{ "ParticipantIdentity", "Quality" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UserPacket), global::LiveKit.Proto.UserPacket.Parser, new[]{ "Data", "Topic" }, new[]{ "Topic" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SipDTMF), global::LiveKit.Proto.SipDTMF.Parser, new[]{ "Code", "Digit" }, new[]{ "Digit" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UserPacket), global::LiveKit.Proto.UserPacket.Parser, new[]{ "Data", "Topic" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ChatMessage), global::LiveKit.Proto.ChatMessage.Parser, new[]{ "Id", "Timestamp", "Message", "EditTimestamp", "Deleted", "Generated" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ChatMessageReceived), global::LiveKit.Proto.ChatMessageReceived.Parser, new[]{ "Message", "ParticipantIdentity" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SipDTMF), global::LiveKit.Proto.SipDTMF.Parser, new[]{ "Code", "Digit" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.DataPacketReceived), global::LiveKit.Proto.DataPacketReceived.Parser, new[]{ "Kind", "ParticipantIdentity", "User", "SipDtmf" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TranscriptionReceived), global::LiveKit.Proto.TranscriptionReceived.Parser, new[]{ "ParticipantIdentity", "TrackSid", "Segments" }, new[]{ "ParticipantIdentity", "TrackSid" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TranscriptionReceived), global::LiveKit.Proto.TranscriptionReceived.Parser, new[]{ "ParticipantIdentity", "TrackSid", "Segments" }, null, 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, new[]{ "Reason" }, null, null, null, null), @@ -448,27 +465,55 @@ public ConnectRequest Clone() { /// Field number for the "url" field. public const int UrlFieldNumber = 1; - private string url_ = ""; + private readonly static string UrlDefaultValue = ""; + + private string url_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { - get { return url_; } + get { return url_ ?? UrlDefaultValue; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUrl() { + url_ = null; + } /// Field number for the "token" field. public const int TokenFieldNumber = 2; - private string token_ = ""; + private readonly static string TokenDefaultValue = ""; + + private string token_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Token { - get { return token_; } + get { return token_ ?? TokenDefaultValue; } set { token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasToken { + get { return token_ != null; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearToken() { + token_ = null; + } /// Field number for the "options" field. public const int OptionsFieldNumber = 3; @@ -507,8 +552,8 @@ public bool Equals(ConnectRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Url.Length != 0) hash ^= Url.GetHashCode(); - if (Token.Length != 0) hash ^= Token.GetHashCode(); + if (HasUrl) hash ^= Url.GetHashCode(); + if (HasToken) hash ^= Token.GetHashCode(); if (options_ != null) hash ^= Options.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -528,11 +573,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Url.Length != 0) { + if (HasUrl) { output.WriteRawTag(10); output.WriteString(Url); } - if (Token.Length != 0) { + if (HasToken) { output.WriteRawTag(18); output.WriteString(Token); } @@ -550,11 +595,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Url.Length != 0) { + if (HasUrl) { output.WriteRawTag(10); output.WriteString(Url); } - if (Token.Length != 0) { + if (HasToken) { output.WriteRawTag(18); output.WriteString(Token); } @@ -572,10 +617,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Url.Length != 0) { + if (HasUrl) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } - if (Token.Length != 0) { + if (HasToken) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); } if (options_ != null) { @@ -593,10 +638,10 @@ public void MergeFrom(ConnectRequest other) { if (other == null) { return; } - if (other.Url.Length != 0) { + if (other.HasUrl) { Url = other.Url; } - if (other.Token.Length != 0) { + if (other.HasToken) { Token = other.Token; } if (other.options_ != null) { @@ -616,7 +661,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -646,7 +695,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -680,6 +733,7 @@ public sealed partial class ConnectResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectResponse()); 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; } } @@ -707,6 +761,7 @@ public ConnectResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConnectResponse(ConnectResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -719,15 +774,30 @@ public ConnectResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -752,7 +822,7 @@ public bool Equals(ConnectResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -771,7 +841,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -785,7 +855,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -799,7 +869,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -814,7 +884,7 @@ public void MergeFrom(ConnectResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -828,7 +898,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -847,7 +921,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -870,6 +948,7 @@ public sealed partial class ConnectCallback : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectCallback()); 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; } } @@ -897,11 +976,17 @@ public ConnectCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConnectCallback(ConnectCallback other) : this() { + _hasBits0 = other._hasBits0; 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(); + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Result: + Result = other.Result.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -913,75 +998,88 @@ public ConnectCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// 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; } + get { return HasError ? (string) message_ : ""; } set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; } } /// 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; } + get { return messageCase_ == MessageOneofCase.Error; } } - /// Clears the value of the "error" field + /// Clears the value of the oneof if it's currently set to "error" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearError() { - error_ = null; + if (HasError) { + ClearMessage(); + } } - /// Field number for the "room" field. - public const int RoomFieldNumber = 3; - private global::LiveKit.Proto.OwnedRoom room_; + /// Field number for the "result" field. + public const int ResultFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedRoom Room { - get { return room_; } + public global::LiveKit.Proto.ConnectCallback.Types.Result Result { + get { return messageCase_ == MessageOneofCase.Result ? (global::LiveKit.Proto.ConnectCallback.Types.Result) message_ : null; } set { - room_ = value; + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Result; } } - /// Field number for the "local_participant" field. - public const int LocalParticipantFieldNumber = 4; - private global::LiveKit.Proto.OwnedParticipant localParticipant_; + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + Error = 2, + Result = 3, + } + private MessageOneofCase messageCase_ = MessageOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedParticipant LocalParticipant { - get { return localParticipant_; } - set { - localParticipant_ = value; - } + public MessageOneofCase MessageCase { + get { return messageCase_; } } - /// 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_; } + public void ClearMessage() { + messageCase_ = MessageOneofCase.None; + message_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1001,9 +1099,8 @@ public bool Equals(ConnectCallback other) { } 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; + if (!object.Equals(Result, other.Result)) return false; + if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1011,11 +1108,10 @@ public bool Equals(ConnectCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); - if (room_ != null) hash ^= Room.GetHashCode(); - if (localParticipant_ != null) hash ^= LocalParticipant.GetHashCode(); - hash ^= participants_.GetHashCode(); + if (messageCase_ == MessageOneofCase.Result) hash ^= Result.GetHashCode(); + hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1034,7 +1130,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1042,15 +1138,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Error); } - if (room_ != null) { + if (messageCase_ == MessageOneofCase.Result) { output.WriteRawTag(26); - output.WriteMessage(Room); - } - if (localParticipant_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LocalParticipant); + output.WriteMessage(Result); } - participants_.WriteTo(output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1061,7 +1152,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1069,15 +1160,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Error); } - if (room_ != null) { + if (messageCase_ == MessageOneofCase.Result) { output.WriteRawTag(26); - output.WriteMessage(Room); + output.WriteMessage(Result); } - if (localParticipant_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LocalParticipant); - } - participants_.WriteTo(ref output, _repeated_participants_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1088,19 +1174,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } - if (room_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Room); + if (messageCase_ == MessageOneofCase.Result) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); } - if (localParticipant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalParticipant); - } - size += participants_.CalculateSize(_repeated_participants_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1113,25 +1195,21 @@ public void MergeFrom(ConnectCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } - if (other.HasError) { - Error = other.Error; - } - if (other.room_ != null) { - if (room_ == null) { - 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); + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Result: + if (Result == null) { + Result = new global::LiveKit.Proto.ConnectCallback.Types.Result(); + } + Result.MergeFrom(other.Result); + break; } - participants_.Add(other.participants_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1143,7 +1221,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1156,21 +1238,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (room_ == null) { - Room = new global::LiveKit.Proto.OwnedRoom(); - } - input.ReadMessage(Room); - break; - } - case 34: { - if (localParticipant_ == null) { - LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + global::LiveKit.Proto.ConnectCallback.Types.Result subBuilder = new global::LiveKit.Proto.ConnectCallback.Types.Result(); + if (messageCase_ == MessageOneofCase.Result) { + subBuilder.MergeFrom(Result); } - input.ReadMessage(LocalParticipant); - break; - } - case 42: { - participants_.AddEntriesFrom(input, _repeated_participants_codec); + input.ReadMessage(subBuilder); + Result = subBuilder; break; } } @@ -1184,7 +1257,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1197,21 +1274,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (room_ == null) { - Room = new global::LiveKit.Proto.OwnedRoom(); + global::LiveKit.Proto.ConnectCallback.Types.Result subBuilder = new global::LiveKit.Proto.ConnectCallback.Types.Result(); + if (messageCase_ == MessageOneofCase.Result) { + subBuilder.MergeFrom(Result); } - 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); + input.ReadMessage(subBuilder); + Result = subBuilder; break; } } @@ -1405,7 +1473,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1431,7 +1503,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1453,95 +1529,391 @@ public void MergeFrom(pb::CodedInputStream input) { } - } - #endregion + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Result : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Result()); + 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[1]; } + } - /// - /// 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 - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectRequest()); - 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)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[3]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Result() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisconnectRequest() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Result(Result other) : this() { + 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); + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Result Clone() { + return new Result(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisconnectRequest(DisconnectRequest other) : this() { - roomHandle_ = other.roomHandle_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + /// Field number for the "room" field. + public const int RoomFieldNumber = 1; + private global::LiveKit.Proto.OwnedRoom room_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.OwnedRoom Room { + get { return room_; } + set { + room_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisconnectRequest Clone() { - return new DisconnectRequest(this); - } + /// Field number for the "local_participant" field. + public const int LocalParticipantFieldNumber = 2; + 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 "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 "participants" field. + public const int ParticipantsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_participants_codec + = pb::FieldCodec.ForMessage(26, 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) { - return Equals(other as DisconnectRequest); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Result); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisconnectRequest 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 bool Equals(Result other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (room_ != null) hash ^= Room.GetHashCode(); + if (localParticipant_ != null) hash ^= LocalParticipant.GetHashCode(); + hash ^= participants_.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 (room_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Room); + } + if (localParticipant_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LocalParticipant); + } + participants_.WriteTo(output, _repeated_participants_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 (room_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Room); + } + if (localParticipant_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LocalParticipant); + } + participants_.WriteTo(ref output, _repeated_participants_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 (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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Result other) { + if (other == null) { + return; + } + if (other.room_ != null) { + if (room_ == null) { + 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); + } + + [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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (room_ == null) { + Room = new global::LiveKit.Proto.OwnedRoom(); + } + input.ReadMessage(Room); + break; + } + case 18: { + if (localParticipant_ == null) { + LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(LocalParticipant); + break; + } + case 26: { + participants_.AddEntriesFrom(input, _repeated_participants_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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (room_ == null) { + Room = new global::LiveKit.Proto.OwnedRoom(); + } + input.ReadMessage(Room); + break; + } + case 18: { + if (localParticipant_ == null) { + LocalParticipant = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(LocalParticipant); + break; + } + case 26: { + participants_.AddEntriesFrom(ref input, _repeated_participants_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 + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectRequest()); + 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[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 DisconnectRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisconnectRequest(DisconnectRequest other) : this() { + _hasBits0 = other._hasBits0; + roomHandle_ = other.roomHandle_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisconnectRequest Clone() { + return new DisconnectRequest(this); + } + + /// Field number for the "room_handle" field. + public const int RoomHandleFieldNumber = 1; + private readonly static ulong RoomHandleDefaultValue = 0UL; + + private ulong roomHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoomHandle { + get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } } + set { + _hasBits0 |= 1; + roomHandle_ = value; + } + } + /// Gets whether the "room_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoomHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "room_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoomHandle() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DisconnectRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisconnectRequest 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 (HasRoomHandle) hash ^= RoomHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1560,7 +1932,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (HasRoomHandle) { output.WriteRawTag(8); output.WriteUInt64(RoomHandle); } @@ -1574,7 +1946,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 (RoomHandle != 0UL) { + if (HasRoomHandle) { output.WriteRawTag(8); output.WriteUInt64(RoomHandle); } @@ -1588,7 +1960,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RoomHandle != 0UL) { + if (HasRoomHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); } if (_unknownFields != null) { @@ -1603,7 +1975,7 @@ public void MergeFrom(DisconnectRequest other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { + if (other.HasRoomHandle) { RoomHandle = other.RoomHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1617,7 +1989,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1636,7 +2012,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1659,6 +2039,7 @@ public sealed partial class DisconnectResponse : pb::IMessage _parser = new pb::MessageParser(() => new DisconnectResponse()); 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; } } @@ -1686,6 +2067,7 @@ public DisconnectResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisconnectResponse(DisconnectResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1698,15 +2080,30 @@ public DisconnectResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -1731,7 +2128,7 @@ public bool Equals(DisconnectResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1750,7 +2147,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1764,7 +2161,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1778,7 +2175,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -1793,7 +2190,7 @@ public void MergeFrom(DisconnectResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1807,7 +2204,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1826,7 +2227,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1849,6 +2254,7 @@ public sealed partial class DisconnectCallback : pb::IMessage _parser = new pb::MessageParser(() => new DisconnectCallback()); 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; } } @@ -1876,6 +2282,7 @@ public DisconnectCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DisconnectCallback(DisconnectCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1888,25 +2295,40 @@ public DisconnectCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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 override bool Equals(object other) { - return Equals(other as DisconnectCallback); + 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 bool Equals(DisconnectCallback other) { + 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 DisconnectCallback); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisconnectCallback other) { if (ReferenceEquals(other, null)) { return false; } @@ -1921,7 +2343,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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1940,7 +2362,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1954,7 +2376,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1968,7 +2390,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -1983,7 +2405,7 @@ public void MergeFrom(DisconnectCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1997,7 +2419,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2016,7 +2442,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2042,6 +2472,7 @@ public sealed partial class PublishTrackRequest : pb::IMessage _parser = new pb::MessageParser(() => new PublishTrackRequest()); 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; } } @@ -2069,6 +2500,7 @@ public PublishTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackRequest(PublishTrackRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; trackHandle_ = other.trackHandle_; options_ = other.options_ != null ? other.options_.Clone() : null; @@ -2083,27 +2515,57 @@ public PublishTrackRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 2; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 2) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 2; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~2; + } /// Field number for the "options" field. public const int OptionsFieldNumber = 3; @@ -2142,8 +2604,8 @@ public bool Equals(PublishTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); if (options_ != null) hash ^= Options.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -2163,11 +2625,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(16); output.WriteUInt64(TrackHandle); } @@ -2185,11 +2647,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(16); output.WriteUInt64(TrackHandle); } @@ -2207,10 +2669,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (options_ != null) { @@ -2228,10 +2690,10 @@ public void MergeFrom(PublishTrackRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } if (other.options_ != null) { @@ -2251,7 +2713,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2281,7 +2747,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2315,6 +2785,7 @@ public sealed partial class PublishTrackResponse : pb::IMessage _parser = new pb::MessageParser(() => new PublishTrackResponse()); 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; } } @@ -2342,6 +2813,7 @@ public PublishTrackResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackResponse(PublishTrackResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2354,15 +2826,30 @@ public PublishTrackResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -2387,7 +2874,7 @@ public bool Equals(PublishTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2406,7 +2893,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2420,7 +2907,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2434,7 +2921,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -2449,7 +2936,7 @@ public void MergeFrom(PublishTrackResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2463,7 +2950,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2482,7 +2973,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2505,6 +3000,7 @@ public sealed partial class PublishTrackCallback : pb::IMessage _parser = new pb::MessageParser(() => new PublishTrackCallback()); 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; } } @@ -2532,9 +3028,17 @@ public PublishTrackCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTrackCallback(PublishTrackCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; - error_ = other.error_; - publication_ = other.publication_ != null ? other.publication_.Clone() : null; + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Publication: + Publication = other.Publication.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2546,54 +3050,90 @@ public PublishTrackCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// 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; } + get { return HasError ? (string) message_ : ""; } set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; } } /// 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; } + get { return messageCase_ == MessageOneofCase.Error; } } - /// Clears the value of the "error" field + /// Clears the value of the oneof if it's currently set to "error" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearError() { - error_ = null; + if (HasError) { + ClearMessage(); + } } /// Field number for the "publication" field. public const int PublicationFieldNumber = 3; - 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_; } + get { return messageCase_ == MessageOneofCase.Publication ? (global::LiveKit.Proto.OwnedTrackPublication) message_ : null; } set { - publication_ = value; + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Publication; } } + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + Error = 2, + Publication = 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) { @@ -2612,6 +3152,7 @@ public bool Equals(PublishTrackCallback other) { if (AsyncId != other.AsyncId) return false; if (Error != other.Error) return false; if (!object.Equals(Publication, other.Publication)) return false; + if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2619,9 +3160,10 @@ public bool Equals(PublishTrackCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); - if (publication_ != null) hash ^= Publication.GetHashCode(); + if (messageCase_ == MessageOneofCase.Publication) hash ^= Publication.GetHashCode(); + hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2640,7 +3182,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2648,7 +3190,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Error); } - if (publication_ != null) { + if (messageCase_ == MessageOneofCase.Publication) { output.WriteRawTag(26); output.WriteMessage(Publication); } @@ -2662,7 +3204,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -2670,7 +3212,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Error); } - if (publication_ != null) { + if (messageCase_ == MessageOneofCase.Publication) { output.WriteRawTag(26); output.WriteMessage(Publication); } @@ -2684,13 +3226,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } - if (publication_ != null) { + if (messageCase_ == MessageOneofCase.Publication) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); } if (_unknownFields != null) { @@ -2705,18 +3247,21 @@ public void MergeFrom(PublishTrackCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } - if (other.HasError) { - Error = other.Error; - } - if (other.publication_ != null) { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); - } - Publication.MergeFrom(other.Publication); + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Publication: + if (Publication == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + Publication.MergeFrom(other.Publication); + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2728,7 +3273,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2741,10 +3290,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + global::LiveKit.Proto.OwnedTrackPublication subBuilder = new global::LiveKit.Proto.OwnedTrackPublication(); + if (messageCase_ == MessageOneofCase.Publication) { + subBuilder.MergeFrom(Publication); } - input.ReadMessage(Publication); + input.ReadMessage(subBuilder); + Publication = subBuilder; break; } } @@ -2758,7 +3309,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2771,10 +3326,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 26: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + global::LiveKit.Proto.OwnedTrackPublication subBuilder = new global::LiveKit.Proto.OwnedTrackPublication(); + if (messageCase_ == MessageOneofCase.Publication) { + subBuilder.MergeFrom(Publication); } - input.ReadMessage(Publication); + input.ReadMessage(subBuilder); + Publication = subBuilder; break; } } @@ -2795,6 +3352,7 @@ public sealed partial class UnpublishTrackRequest : pb::IMessage _parser = new pb::MessageParser(() => new UnpublishTrackRequest()); 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; } } @@ -2822,6 +3380,7 @@ public UnpublishTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackRequest(UnpublishTrackRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; trackSid_ = other.trackSid_; stopOnUnpublish_ = other.stopOnUnpublish_; @@ -2836,39 +3395,83 @@ public UnpublishTrackRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } /// Field number for the "stop_on_unpublish" field. public const int StopOnUnpublishFieldNumber = 3; + private readonly static bool StopOnUnpublishDefaultValue = false; + private bool stopOnUnpublish_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool StopOnUnpublish { - get { return stopOnUnpublish_; } + get { if ((_hasBits0 & 2) != 0) { return stopOnUnpublish_; } else { return StopOnUnpublishDefaultValue; } } set { + _hasBits0 |= 2; stopOnUnpublish_ = value; } } + /// Gets whether the "stop_on_unpublish" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStopOnUnpublish { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stop_on_unpublish" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStopOnUnpublish() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2895,9 +3498,9 @@ public bool Equals(UnpublishTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); - if (StopOnUnpublish != false) hash ^= StopOnUnpublish.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + if (HasStopOnUnpublish) hash ^= StopOnUnpublish.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2916,15 +3519,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (StopOnUnpublish != false) { + if (HasStopOnUnpublish) { output.WriteRawTag(24); output.WriteBool(StopOnUnpublish); } @@ -2938,15 +3541,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 (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (StopOnUnpublish != false) { + if (HasStopOnUnpublish) { output.WriteRawTag(24); output.WriteBool(StopOnUnpublish); } @@ -2960,13 +3563,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (StopOnUnpublish != false) { + if (HasStopOnUnpublish) { size += 1 + 1; } if (_unknownFields != null) { @@ -2981,13 +3584,13 @@ public void MergeFrom(UnpublishTrackRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } - if (other.StopOnUnpublish != false) { + if (other.HasStopOnUnpublish) { StopOnUnpublish = other.StopOnUnpublish; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3001,7 +3604,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3028,7 +3635,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3059,6 +3670,7 @@ public sealed partial class UnpublishTrackResponse : pb::IMessage _parser = new pb::MessageParser(() => new UnpublishTrackResponse()); 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; } } @@ -3086,6 +3698,7 @@ public UnpublishTrackResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackResponse(UnpublishTrackResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3098,15 +3711,30 @@ public UnpublishTrackResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -3131,7 +3759,7 @@ public bool Equals(UnpublishTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3150,7 +3778,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -3164,7 +3792,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -3178,7 +3806,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -3193,7 +3821,7 @@ public void MergeFrom(UnpublishTrackResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3207,7 +3835,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3226,7 +3858,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3249,6 +3885,7 @@ public sealed partial class UnpublishTrackCallback : pb::IMessage _parser = new pb::MessageParser(() => new UnpublishTrackCallback()); 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; } } @@ -3276,6 +3913,7 @@ public UnpublishTrackCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnpublishTrackCallback(UnpublishTrackCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3289,15 +3927,30 @@ public UnpublishTrackCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -3349,7 +4002,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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -3369,7 +4022,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -3387,7 +4040,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -3405,7 +4058,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -3423,7 +4076,7 @@ public void MergeFrom(UnpublishTrackCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -3440,7 +4093,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3463,7 +4120,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3493,6 +4154,7 @@ public sealed partial class PublishDataRequest : pb::IMessage _parser = new pb::MessageParser(() => new PublishDataRequest()); 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; } } @@ -3520,6 +4182,7 @@ public PublishDataRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishDataRequest(PublishDataRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; dataPtr_ = other.dataPtr_; dataLen_ = other.dataLen_; @@ -3538,51 +4201,111 @@ public PublishDataRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "data_ptr" field. public const int DataPtrFieldNumber = 2; + private readonly static ulong DataPtrDefaultValue = 0UL; + private ulong dataPtr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong DataPtr { - get { return dataPtr_; } + get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } set { + _hasBits0 |= 2; dataPtr_ = value; } } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~2; + } /// Field number for the "data_len" field. public const int DataLenFieldNumber = 3; + private readonly static ulong DataLenDefaultValue = 0UL; + private ulong dataLen_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong DataLen { - get { return dataLen_; } + get { if ((_hasBits0 & 4) != 0) { return dataLen_; } else { return DataLenDefaultValue; } } set { + _hasBits0 |= 4; dataLen_ = value; } } + /// Gets whether the "data_len" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataLen { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "data_len" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataLen() { + _hasBits0 &= ~4; + } /// Field number for the "reliable" field. public const int ReliableFieldNumber = 4; + private readonly static bool ReliableDefaultValue = false; + private bool reliable_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Reliable { - get { return reliable_; } + get { if ((_hasBits0 & 8) != 0) { return reliable_; } else { return ReliableDefaultValue; } } set { + _hasBits0 |= 8; reliable_ = value; } } + /// Gets whether the "reliable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReliable { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "reliable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReliable() { + _hasBits0 &= ~8; + } /// Field number for the "destination_sids" field. public const int DestinationSidsFieldNumber = 5; @@ -3662,10 +4385,10 @@ public bool Equals(PublishDataRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (DataLen != 0UL) hash ^= DataLen.GetHashCode(); - if (Reliable != false) hash ^= Reliable.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasDataLen) hash ^= DataLen.GetHashCode(); + if (HasReliable) hash ^= Reliable.GetHashCode(); hash ^= destinationSids_.GetHashCode(); if (HasTopic) hash ^= Topic.GetHashCode(); hash ^= destinationIdentities_.GetHashCode(); @@ -3687,19 +4410,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(16); output.WriteUInt64(DataPtr); } - if (DataLen != 0UL) { + if (HasDataLen) { output.WriteRawTag(24); output.WriteUInt64(DataLen); } - if (Reliable != false) { + if (HasReliable) { output.WriteRawTag(32); output.WriteBool(Reliable); } @@ -3719,19 +4442,19 @@ 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 (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(16); output.WriteUInt64(DataPtr); } - if (DataLen != 0UL) { + if (HasDataLen) { output.WriteRawTag(24); output.WriteUInt64(DataLen); } - if (Reliable != false) { + if (HasReliable) { output.WriteRawTag(32); output.WriteBool(Reliable); } @@ -3751,16 +4474,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (DataPtr != 0UL) { + if (HasDataPtr) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); } - if (DataLen != 0UL) { + if (HasDataLen) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataLen); } - if (Reliable != false) { + if (HasReliable) { size += 1 + 1; } size += destinationSids_.CalculateSize(_repeated_destinationSids_codec); @@ -3780,16 +4503,16 @@ public void MergeFrom(PublishDataRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.DataPtr != 0UL) { + if (other.HasDataPtr) { DataPtr = other.DataPtr; } - if (other.DataLen != 0UL) { + if (other.HasDataLen) { DataLen = other.DataLen; } - if (other.Reliable != false) { + if (other.HasReliable) { Reliable = other.Reliable; } destinationSids_.Add(other.destinationSids_); @@ -3808,7 +4531,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3851,7 +4578,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3898,6 +4629,7 @@ public sealed partial class PublishDataResponse : pb::IMessage _parser = new pb::MessageParser(() => new PublishDataResponse()); 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; } } @@ -3925,6 +4657,7 @@ public PublishDataResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishDataResponse(PublishDataResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3937,15 +4670,30 @@ public PublishDataResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -3970,7 +4718,7 @@ public bool Equals(PublishDataResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3989,7 +4737,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4003,7 +4751,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4017,7 +4765,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -4032,7 +4780,7 @@ public void MergeFrom(PublishDataResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4046,7 +4794,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4065,7 +4817,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4088,6 +4844,7 @@ public sealed partial class PublishDataCallback : pb::IMessage _parser = new pb::MessageParser(() => new PublishDataCallback()); 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; } } @@ -4115,6 +4872,7 @@ public PublishDataCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishDataCallback(PublishDataCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4128,15 +4886,30 @@ public PublishDataCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -4188,7 +4961,7 @@ public bool Equals(PublishDataCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4208,7 +4981,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4226,7 +4999,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4244,7 +5017,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -4262,7 +5035,7 @@ public void MergeFrom(PublishDataCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -4279,7 +5052,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4302,7 +5079,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4332,6 +5113,7 @@ public sealed partial class PublishTranscriptionRequest : pb::IMessage _parser = new pb::MessageParser(() => new PublishTranscriptionRequest()); 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; } } @@ -4359,6 +5141,7 @@ public PublishTranscriptionRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTranscriptionRequest(PublishTranscriptionRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; participantIdentity_ = other.participantIdentity_; trackId_ = other.trackId_; @@ -4374,39 +5157,82 @@ public PublishTranscriptionRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 2; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "track_id" field. public const int TrackIdFieldNumber = 3; - private string trackId_ = ""; + private readonly static string TrackIdDefaultValue = ""; + + private string trackId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackId { - get { return trackId_; } + get { return trackId_ ?? TrackIdDefaultValue; } set { trackId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackId { + get { return trackId_ != null; } + } + /// Clears the value of the "track_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackId() { + trackId_ = null; + } /// Field number for the "segments" field. public const int SegmentsFieldNumber = 4; @@ -4445,9 +5271,9 @@ public bool Equals(PublishTranscriptionRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (TrackId.Length != 0) hash ^= TrackId.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackId) hash ^= TrackId.GetHashCode(); hash ^= segments_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4467,15 +5293,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(18); output.WriteString(ParticipantIdentity); } - if (TrackId.Length != 0) { + if (HasTrackId) { output.WriteRawTag(26); output.WriteString(TrackId); } @@ -4490,15 +5316,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 (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(18); output.WriteString(ParticipantIdentity); } - if (TrackId.Length != 0) { + if (HasTrackId) { output.WriteRawTag(26); output.WriteString(TrackId); } @@ -4513,13 +5339,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackId.Length != 0) { + if (HasTrackId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackId); } size += segments_.CalculateSize(_repeated_segments_codec); @@ -4535,13 +5361,13 @@ public void MergeFrom(PublishTranscriptionRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackId.Length != 0) { + if (other.HasTrackId) { TrackId = other.TrackId; } segments_.Add(other.segments_); @@ -4556,7 +5382,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4587,7 +5417,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4622,6 +5456,7 @@ public sealed partial class PublishTranscriptionResponse : pb::IMessage _parser = new pb::MessageParser(() => new PublishTranscriptionResponse()); 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; } } @@ -4649,6 +5484,7 @@ public PublishTranscriptionResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTranscriptionResponse(PublishTranscriptionResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -4661,15 +5497,30 @@ public PublishTranscriptionResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -4694,7 +5545,7 @@ public bool Equals(PublishTranscriptionResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4713,7 +5564,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4727,7 +5578,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4741,7 +5592,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -4756,7 +5607,7 @@ public void MergeFrom(PublishTranscriptionResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4770,7 +5621,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4789,7 +5644,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4812,6 +5671,7 @@ public sealed partial class PublishTranscriptionCallback : pb::IMessage _parser = new pb::MessageParser(() => new PublishTranscriptionCallback()); 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; } } @@ -4839,6 +5699,7 @@ public PublishTranscriptionCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishTranscriptionCallback(PublishTranscriptionCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4852,15 +5713,30 @@ public PublishTranscriptionCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -4912,7 +5788,7 @@ public bool Equals(PublishTranscriptionCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4932,7 +5808,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4950,7 +5826,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -4968,7 +5844,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -4986,7 +5862,7 @@ public void MergeFrom(PublishTranscriptionCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -5003,7 +5879,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5026,7 +5906,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5056,6 +5940,7 @@ public sealed partial class PublishSipDtmfRequest : pb::IMessage _parser = new pb::MessageParser(() => new PublishSipDtmfRequest()); 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; } } @@ -5083,6 +5968,7 @@ public PublishSipDtmfRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishSipDtmfRequest(PublishSipDtmfRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; code_ = other.code_; digit_ = other.digit_; @@ -5098,39 +5984,83 @@ public PublishSipDtmfRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "code" field. public const int CodeFieldNumber = 2; + private readonly static uint CodeDefaultValue = 0; + private uint code_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Code { - get { return code_; } + get { if ((_hasBits0 & 2) != 0) { return code_; } else { return CodeDefaultValue; } } set { + _hasBits0 |= 2; code_ = value; } } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~2; + } /// Field number for the "digit" field. public const int DigitFieldNumber = 3; - private string digit_ = ""; + private readonly static string DigitDefaultValue = ""; + + private string digit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Digit { - get { return digit_; } + get { return digit_ ?? DigitDefaultValue; } set { digit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "digit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDigit { + get { return digit_ != null; } + } + /// Clears the value of the "digit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDigit() { + digit_ = null; + } /// Field number for the "destination_identities" field. public const int DestinationIdentitiesFieldNumber = 4; @@ -5169,9 +6099,9 @@ public bool Equals(PublishSipDtmfRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (Code != 0) hash ^= Code.GetHashCode(); - if (Digit.Length != 0) hash ^= Digit.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasCode) hash ^= Code.GetHashCode(); + if (HasDigit) hash ^= Digit.GetHashCode(); hash ^= destinationIdentities_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -5191,15 +6121,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Code != 0) { + if (HasCode) { output.WriteRawTag(16); output.WriteUInt32(Code); } - if (Digit.Length != 0) { + if (HasDigit) { output.WriteRawTag(26); output.WriteString(Digit); } @@ -5214,15 +6144,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 (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Code != 0) { + if (HasCode) { output.WriteRawTag(16); output.WriteUInt32(Code); } - if (Digit.Length != 0) { + if (HasDigit) { output.WriteRawTag(26); output.WriteString(Digit); } @@ -5237,13 +6167,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (Code != 0) { + if (HasCode) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); } - if (Digit.Length != 0) { + if (HasDigit) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Digit); } size += destinationIdentities_.CalculateSize(_repeated_destinationIdentities_codec); @@ -5259,13 +6189,13 @@ public void MergeFrom(PublishSipDtmfRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.Code != 0) { + if (other.HasCode) { Code = other.Code; } - if (other.Digit.Length != 0) { + if (other.HasDigit) { Digit = other.Digit; } destinationIdentities_.Add(other.destinationIdentities_); @@ -5280,7 +6210,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5311,7 +6245,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5346,6 +6284,7 @@ public sealed partial class PublishSipDtmfResponse : pb::IMessage _parser = new pb::MessageParser(() => new PublishSipDtmfResponse()); 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; } } @@ -5373,6 +6312,7 @@ public PublishSipDtmfResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishSipDtmfResponse(PublishSipDtmfResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5385,15 +6325,30 @@ public PublishSipDtmfResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -5418,7 +6373,7 @@ public bool Equals(PublishSipDtmfResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5437,7 +6392,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5451,7 +6406,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5465,7 +6420,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -5480,7 +6435,7 @@ public void MergeFrom(PublishSipDtmfResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5494,7 +6449,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5513,7 +6472,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5536,6 +6499,7 @@ public sealed partial class PublishSipDtmfCallback : pb::IMessage _parser = new pb::MessageParser(() => new PublishSipDtmfCallback()); 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; } } @@ -5563,6 +6527,7 @@ public PublishSipDtmfCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublishSipDtmfCallback(PublishSipDtmfCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5576,15 +6541,30 @@ public PublishSipDtmfCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -5636,7 +6616,7 @@ public bool Equals(PublishSipDtmfCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -5656,7 +6636,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5674,7 +6654,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -5692,7 +6672,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -5710,7 +6690,7 @@ public void MergeFrom(PublishSipDtmfCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -5727,7 +6707,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5750,7 +6734,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5780,6 +6768,7 @@ public sealed partial class SetLocalMetadataRequest : pb::IMessage _parser = new pb::MessageParser(() => new SetLocalMetadataRequest()); 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; } } @@ -5807,6 +6796,7 @@ public SetLocalMetadataRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetLocalMetadataRequest(SetLocalMetadataRequest other) : this() { + _hasBits0 = other._hasBits0; localParticipantHandle_ = other.localParticipantHandle_; metadata_ = other.metadata_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5820,27 +6810,56 @@ public SetLocalMetadataRequest Clone() { /// Field number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "metadata" field. public const int MetadataFieldNumber = 2; - private string metadata_ = ""; + private readonly static string MetadataDefaultValue = ""; + + private string metadata_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Metadata { - get { return metadata_; } + get { return metadata_ ?? MetadataDefaultValue; } set { metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "metadata" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMetadata { + get { return metadata_ != null; } + } + /// Clears the value of the "metadata" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadata_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5866,8 +6885,8 @@ public bool Equals(SetLocalMetadataRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasMetadata) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5886,11 +6905,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Metadata.Length != 0) { + if (HasMetadata) { output.WriteRawTag(18); output.WriteString(Metadata); } @@ -5904,11 +6923,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - if (Metadata.Length != 0) { + if (HasMetadata) { output.WriteRawTag(18); output.WriteString(Metadata); } @@ -5922,10 +6941,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - if (Metadata.Length != 0) { + if (HasMetadata) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { @@ -5940,10 +6959,10 @@ public void MergeFrom(SetLocalMetadataRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - if (other.Metadata.Length != 0) { + if (other.HasMetadata) { Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5957,7 +6976,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5980,7 +7003,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6007,6 +7034,7 @@ public sealed partial class SetLocalMetadataResponse : pb::IMessage _parser = new pb::MessageParser(() => new SetLocalMetadataResponse()); 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; } } @@ -6034,6 +7062,7 @@ public SetLocalMetadataResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetLocalMetadataResponse(SetLocalMetadataResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -6046,15 +7075,30 @@ public SetLocalMetadataResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -6079,7 +7123,7 @@ public bool Equals(SetLocalMetadataResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6098,7 +7142,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -6112,7 +7156,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -6126,7 +7170,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -6141,7 +7185,7 @@ public void MergeFrom(SetLocalMetadataResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6155,7 +7199,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6174,7 +7222,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6197,6 +7249,7 @@ public sealed partial class SetLocalMetadataCallback : pb::IMessage _parser = new pb::MessageParser(() => new SetLocalMetadataCallback()); 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; } } @@ -6224,6 +7277,7 @@ public SetLocalMetadataCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetLocalMetadataCallback(SetLocalMetadataCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -6237,15 +7291,30 @@ public SetLocalMetadataCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -6297,7 +7366,7 @@ public bool Equals(SetLocalMetadataCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -6317,7 +7386,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -6335,7 +7404,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -6353,7 +7422,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -6371,7 +7440,7 @@ public void MergeFrom(SetLocalMetadataCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -6388,7 +7457,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6411,7 +7484,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6430,20 +7507,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Change the local participant's attributes - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalAttributesRequest : pb::IMessage + public sealed partial class SendChatMessageRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendChatMessageRequest()); 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)] @@ -6459,7 +7534,7 @@ public sealed partial class SetLocalAttributesRequest : pb::IMessageField number for the "local_participant_handle" field. public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_attributes_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); - private readonly pbc::MapField attributes_ = new pbc::MapField(); + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private readonly static string MessageDefaultValue = ""; + + private string message_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Attributes { - get { return attributes_; } + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + /// Field number for the "destination_identities" field. + public const int DestinationIdentitiesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_destinationIdentities_codec + = pb::FieldCodec.ForString(26); + private readonly pbc::RepeatedField destinationIdentities_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DestinationIdentities { + get { return destinationIdentities_; } + } + + /// Field number for the "sender_identity" field. + public const int SenderIdentityFieldNumber = 4; + private readonly static string SenderIdentityDefaultValue = ""; + + private string senderIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SenderIdentity { + get { return senderIdentity_ ?? SenderIdentityDefaultValue; } + set { + senderIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSenderIdentity { + get { return senderIdentity_ != null; } + } + /// Clears the value of the "sender_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSenderIdentity() { + senderIdentity_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetLocalAttributesRequest); + return Equals(other as SendChatMessageRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalAttributesRequest other) { + public bool Equals(SendChatMessageRequest other) { if (ReferenceEquals(other, null)) { return false; } @@ -6518,7 +7663,9 @@ public bool Equals(SetLocalAttributesRequest other) { return true; } if (LocalParticipantHandle != other.LocalParticipantHandle) return false; - if (!Attributes.Equals(other.Attributes)) return false; + if (Message != other.Message) return false; + if(!destinationIdentities_.Equals(other.destinationIdentities_)) return false; + if (SenderIdentity != other.SenderIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6526,8 +7673,10 @@ public bool Equals(SetLocalAttributesRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (LocalParticipantHandle != 0UL) hash ^= LocalParticipantHandle.GetHashCode(); - hash ^= Attributes.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + hash ^= destinationIdentities_.GetHashCode(); + if (HasSenderIdentity) hash ^= SenderIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6546,11 +7695,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - attributes_.WriteTo(output, _map_attributes_codec); + if (HasMessage) { + output.WriteRawTag(18); + output.WriteString(Message); + } + destinationIdentities_.WriteTo(output, _repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + output.WriteRawTag(34); + output.WriteString(SenderIdentity); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6561,11 +7718,19 @@ 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 (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(LocalParticipantHandle); } - attributes_.WriteTo(ref output, _map_attributes_codec); + if (HasMessage) { + output.WriteRawTag(18); + output.WriteString(Message); + } + destinationIdentities_.WriteTo(ref output, _repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + output.WriteRawTag(34); + output.WriteString(SenderIdentity); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6576,10 +7741,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { + if (HasLocalParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } - size += attributes_.CalculateSize(_map_attributes_codec); + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + size += destinationIdentities_.CalculateSize(_repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderIdentity); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6588,14 +7759,20 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalAttributesRequest other) { + public void MergeFrom(SendChatMessageRequest other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { + if (other.HasLocalParticipantHandle) { LocalParticipantHandle = other.LocalParticipantHandle; } - attributes_.MergeFrom(other.attributes_); + if (other.HasMessage) { + Message = other.Message; + } + destinationIdentities_.Add(other.destinationIdentities_); + if (other.HasSenderIdentity) { + SenderIdentity = other.SenderIdentity; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6607,7 +7784,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6616,7 +7797,15 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - attributes_.AddEntriesFrom(input, _map_attributes_codec); + Message = input.ReadString(); + break; + } + case 26: { + destinationIdentities_.AddEntriesFrom(input, _repeated_destinationIdentities_codec); + break; + } + case 34: { + SenderIdentity = input.ReadString(); break; } } @@ -6630,7 +7819,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6639,7 +7832,15 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - attributes_.AddEntriesFrom(ref input, _map_attributes_codec); + Message = input.ReadString(); + break; + } + case 26: { + destinationIdentities_.AddEntriesFrom(ref input, _repeated_destinationIdentities_codec); + break; + } + case 34: { + SenderIdentity = input.ReadString(); break; } } @@ -6650,16 +7851,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalAttributesResponse : pb::IMessage + public sealed partial class EditChatMessageRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditChatMessageRequest()); 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)] @@ -6675,7 +7877,7 @@ public sealed partial class SetLocalAttributesResponse : pb::IMessageField number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private ulong asyncId_; + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong AsyncId { - get { return asyncId_; } + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { - asyncId_ = value; + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "edit_text" field. + public const int EditTextFieldNumber = 2; + private readonly static string EditTextDefaultValue = ""; + + private string editText_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EditText { + get { return editText_ ?? EditTextDefaultValue; } + set { + editText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "edit_text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEditText { + get { return editText_ != null; } + } + /// Clears the value of the "edit_text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEditText() { + editText_ = null; + } + + /// Field number for the "original_message" field. + public const int OriginalMessageFieldNumber = 3; + private global::LiveKit.Proto.ChatMessage originalMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ChatMessage OriginalMessage { + get { return originalMessage_; } + set { + originalMessage_ = value; + } + } + + /// Field number for the "destination_identities" field. + public const int DestinationIdentitiesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_destinationIdentities_codec + = pb::FieldCodec.ForString(34); + private readonly pbc::RepeatedField destinationIdentities_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DestinationIdentities { + get { return destinationIdentities_; } + } + + /// Field number for the "sender_identity" field. + public const int SenderIdentityFieldNumber = 5; + private readonly static string SenderIdentityDefaultValue = ""; + + private string senderIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SenderIdentity { + get { return senderIdentity_ ?? SenderIdentityDefaultValue; } + set { + senderIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sender_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSenderIdentity { + get { return senderIdentity_ != null; } + } + /// Clears the value of the "sender_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSenderIdentity() { + senderIdentity_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetLocalAttributesResponse); + return Equals(other as EditChatMessageRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalAttributesResponse other) { + public bool Equals(EditChatMessageRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AsyncId != other.AsyncId) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (EditText != other.EditText) return false; + if (!object.Equals(OriginalMessage, other.OriginalMessage)) return false; + if(!destinationIdentities_.Equals(other.destinationIdentities_)) return false; + if (SenderIdentity != other.SenderIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6729,7 +8030,11 @@ public bool Equals(SetLocalAttributesResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasEditText) hash ^= EditText.GetHashCode(); + if (originalMessage_ != null) hash ^= OriginalMessage.GetHashCode(); + hash ^= destinationIdentities_.GetHashCode(); + if (HasSenderIdentity) hash ^= SenderIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6748,9 +8053,22 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasEditText) { + output.WriteRawTag(18); + output.WriteString(EditText); + } + if (originalMessage_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OriginalMessage); + } + destinationIdentities_.WriteTo(output, _repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + output.WriteRawTag(42); + output.WriteString(SenderIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6762,9 +8080,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AsyncId != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasEditText) { + output.WriteRawTag(18); + output.WriteString(EditText); + } + if (originalMessage_ != null) { + output.WriteRawTag(26); + output.WriteMessage(OriginalMessage); + } + destinationIdentities_.WriteTo(ref output, _repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + output.WriteRawTag(42); + output.WriteString(SenderIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6776,8 +8107,18 @@ 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasEditText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EditText); + } + if (originalMessage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalMessage); + } + size += destinationIdentities_.CalculateSize(_repeated_destinationIdentities_codec); + if (HasSenderIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6787,12 +8128,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalAttributesResponse other) { + public void MergeFrom(EditChatMessageRequest other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { - AsyncId = other.AsyncId; + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasEditText) { + EditText = other.EditText; + } + if (other.originalMessage_ != null) { + if (originalMessage_ == null) { + OriginalMessage = new global::LiveKit.Proto.ChatMessage(); + } + OriginalMessage.MergeFrom(other.OriginalMessage); + } + destinationIdentities_.Add(other.destinationIdentities_); + if (other.HasSenderIdentity) { + SenderIdentity = other.SenderIdentity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6805,12 +8159,35 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + EditText = input.ReadString(); + break; + } + case 26: { + if (originalMessage_ == null) { + OriginalMessage = new global::LiveKit.Proto.ChatMessage(); + } + input.ReadMessage(OriginalMessage); + break; + } + case 34: { + destinationIdentities_.AddEntriesFrom(input, _repeated_destinationIdentities_codec); + break; + } + case 42: { + SenderIdentity = input.ReadString(); break; } } @@ -6824,12 +8201,35 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + EditText = input.ReadString(); + break; + } + case 26: { + if (originalMessage_ == null) { + OriginalMessage = new global::LiveKit.Proto.ChatMessage(); + } + input.ReadMessage(OriginalMessage); + break; + } + case 34: { + destinationIdentities_.AddEntriesFrom(ref input, _repeated_destinationIdentities_codec); + break; + } + case 42: { + SenderIdentity = input.ReadString(); break; } } @@ -6840,16 +8240,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalAttributesCallback : pb::IMessage + public sealed partial class SendChatMessageResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendChatMessageResponse()); 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)] @@ -6865,7 +8266,7 @@ public sealed partial class SetLocalAttributesCallback : pb::IMessageField number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return asyncId_; } + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } set { + _hasBits0 |= 1; asyncId_ = value; } } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private readonly static string ErrorDefaultValue = ""; - - private string error_; + /// Gets whether the "async_id" field is set [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; } + public bool HasAsyncId { + get { return (_hasBits0 & 1) != 0; } } - /// Clears the value of the "error" field + /// Clears the value of the "async_id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearError() { - error_ = 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 SetLocalAttributesCallback); + return Equals(other as SendChatMessageResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalAttributesCallback other) { + public bool Equals(SendChatMessageResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -6939,7 +8329,6 @@ public bool Equals(SetLocalAttributesCallback other) { return true; } if (AsyncId != other.AsyncId) return false; - if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6947,8 +8336,7 @@ public bool Equals(SetLocalAttributesCallback 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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6967,14 +8355,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } - if (HasError) { - output.WriteRawTag(18); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6985,14 +8369,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) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } - if (HasError) { - output.WriteRawTag(18); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7003,12 +8383,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (HasError) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7017,16 +8394,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalAttributesCallback other) { + public void MergeFrom(SendChatMessageResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } - if (other.HasError) { - Error = other.Error; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7038,7 +8412,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -7046,10 +8424,6 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } - case 18: { - Error = input.ReadString(); - break; - } } } #endif @@ -7061,7 +8435,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -7069,10 +8447,6 @@ public void MergeFrom(pb::CodedInputStream input) { AsyncId = input.ReadUInt64(); break; } - case 18: { - Error = input.ReadString(); - break; - } } } } @@ -7080,20 +8454,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Change the local participant's name - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalNameRequest : pb::IMessage + public sealed partial class SendChatMessageCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendChatMessageCallback()); 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)] @@ -7109,7 +8481,7 @@ public sealed partial class SetLocalNameRequest : pb::IMessageField number for the "local_participant_handle" field. - public const int LocalParticipantHandleFieldNumber = 1; - private ulong localParticipantHandle_; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong LocalParticipantHandle { - get { return localParticipantHandle_; } + public ulong AsyncId { + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } set { - localParticipantHandle_ = value; + _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; + } - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string Error { + get { return HasError ? (string) message_ : ""; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; + } + } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return messageCase_ == MessageOneofCase.Error; } + } + /// Clears the value of the oneof if it's currently set to "error" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + if (HasError) { + ClearMessage(); + } + } + + /// Field number for the "chat_message" field. + public const int ChatMessageFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ChatMessage ChatMessage { + get { return messageCase_ == MessageOneofCase.ChatMessage ? (global::LiveKit.Proto.ChatMessage) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ChatMessage; } } + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + Error = 2, + ChatMessage = 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 SetLocalNameRequest); + return Equals(other as SendChatMessageCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalNameRequest other) { + public bool Equals(SendChatMessageCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (LocalParticipantHandle != other.LocalParticipantHandle) return false; - if (Name != other.Name) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; + if (!object.Equals(ChatMessage, other.ChatMessage)) return false; + if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7177,8 +8622,10 @@ public bool Equals(SetLocalNameRequest other) { [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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); + if (messageCase_ == MessageOneofCase.ChatMessage) hash ^= ChatMessage.GetHashCode(); + hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7197,13 +8644,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalParticipantHandle != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteUInt64(LocalParticipantHandle); + output.WriteUInt64(AsyncId); } - if (Name.Length != 0) { + if (HasError) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Error); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(26); + output.WriteMessage(ChatMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7215,13 +8666,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LocalParticipantHandle != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteUInt64(LocalParticipantHandle); + output.WriteUInt64(AsyncId); } - if (Name.Length != 0) { + if (HasError) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Error); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(26); + output.WriteMessage(ChatMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7233,11 +8688,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalParticipantHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + if (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChatMessage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7247,16 +8705,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalNameRequest other) { + public void MergeFrom(SendChatMessageCallback other) { if (other == null) { return; } - if (other.LocalParticipantHandle != 0UL) { - LocalParticipantHandle = other.LocalParticipantHandle; + if (other.HasAsyncId) { + AsyncId = other.AsyncId; } - if (other.Name.Length != 0) { - Name = other.Name; + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.ChatMessage: + if (ChatMessage == null) { + ChatMessage = new global::LiveKit.Proto.ChatMessage(); + } + ChatMessage.MergeFrom(other.ChatMessage); + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7268,16 +8735,29 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - LocalParticipantHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } case 18: { - Name = input.ReadString(); + Error = input.ReadString(); + break; + } + case 26: { + global::LiveKit.Proto.ChatMessage subBuilder = new global::LiveKit.Proto.ChatMessage(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); + } + input.ReadMessage(subBuilder); + ChatMessage = subBuilder; break; } } @@ -7291,16 +8771,29 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - LocalParticipantHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } case 18: { - Name = input.ReadString(); + Error = input.ReadString(); + break; + } + case 26: { + global::LiveKit.Proto.ChatMessage subBuilder = new global::LiveKit.Proto.ChatMessage(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); + } + input.ReadMessage(subBuilder); + ChatMessage = subBuilder; break; } } @@ -7310,17 +8803,21 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Change the local participant's attributes + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalNameResponse : pb::IMessage + public sealed partial class SetLocalAttributesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesRequest()); 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)] @@ -7336,7 +8833,7 @@ public sealed partial class SetLocalNameResponse : pb::IMessageField number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private ulong asyncId_; + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong AsyncId { - get { return asyncId_; } + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { - asyncId_ = value; + _hasBits0 |= 1; + localParticipantHandle_ = value; } } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attributes_codec + = pb::FieldCodec.ForMessage(18, global::LiveKit.Proto.AttributesEntry.Parser); + private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Attributes { + get { return attributes_; } + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetLocalNameResponse); + return Equals(other as SetLocalAttributesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalNameResponse other) { + public bool Equals(SetLocalAttributesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (AsyncId != other.AsyncId) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if(!attributes_.Equals(other.attributes_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7390,7 +8916,8 @@ public bool Equals(SetLocalNameResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + hash ^= attributes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7409,10 +8936,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); } + attributes_.WriteTo(output, _repeated_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7423,10 +8951,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AsyncId != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + output.WriteUInt64(LocalParticipantHandle); } + attributes_.WriteTo(ref output, _repeated_attributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7437,9 +8966,10 @@ 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); } + size += attributes_.CalculateSize(_repeated_attributes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7448,13 +8978,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalNameResponse other) { + public void MergeFrom(SetLocalAttributesRequest other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { - AsyncId = other.AsyncId; + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; } + attributes_.Add(other.attributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7466,12 +8997,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + attributes_.AddEntriesFrom(input, _repeated_attributes_codec); break; } } @@ -7485,12 +9024,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - AsyncId = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); break; } } @@ -7501,16 +9048,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetLocalNameCallback : pb::IMessage + public sealed partial class AttributesEntry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributesEntry()); 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)] @@ -7526,7 +9073,7 @@ public sealed partial class SetLocalNameCallback : pb::IMessageField number for the "async_id" field. - public const int AsyncIdFieldNumber = 1; - private ulong asyncId_; + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private readonly static string KeyDefaultValue = ""; + + private string key_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong AsyncId { - get { return asyncId_; } + public string Key { + get { return key_ ?? KeyDefaultValue; } set { - asyncId_ = value; + 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; + } - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private readonly static string ErrorDefaultValue = ""; + /// Field number for the "value" field. + public const int ValueFieldNumber = 2; + private readonly static string ValueDefaultValue = ""; - private string error_; + private string value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_ ?? ErrorDefaultValue; } + public string Value { + get { return value_ ?? ValueDefaultValue; } set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "error" field is set + /// Gets whether the "value" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasError { - get { return error_ != null; } + public bool HasValue { + get { return value_ != null; } } - /// Clears the value of the "error" field + /// Clears the value of the "value" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearError() { - error_ = null; + public void ClearValue() { + value_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetLocalNameCallback); + return Equals(other as AttributesEntry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetLocalNameCallback other) { + public bool Equals(AttributesEntry 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 (Key != other.Key) return false; + if (Value != other.Value) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7608,8 +9169,8 @@ public bool Equals(SetLocalNameCallback 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 (HasKey) hash ^= Key.GetHashCode(); + if (HasValue) hash ^= Value.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7628,13 +9189,13 @@ 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 (HasKey) { + output.WriteRawTag(10); + output.WriteString(Key); } - if (HasError) { + if (HasValue) { output.WriteRawTag(18); - output.WriteString(Error); + output.WriteString(Value); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7646,13 +9207,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AsyncId != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(AsyncId); + if (HasKey) { + output.WriteRawTag(10); + output.WriteString(Key); } - if (HasError) { + if (HasValue) { output.WriteRawTag(18); - output.WriteString(Error); + output.WriteString(Value); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7664,11 +9225,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + if (HasKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } - if (HasError) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + if (HasValue) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7678,15 +9239,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetLocalNameCallback other) { + public void MergeFrom(AttributesEntry other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { - AsyncId = other.AsyncId; + if (other.HasKey) { + Key = other.Key; } - if (other.HasError) { - Error = other.Error; + if (other.HasValue) { + Value = other.Value; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7699,16 +9260,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - AsyncId = input.ReadUInt64(); + case 10: { + Key = input.ReadString(); break; } case 18: { - Error = input.ReadString(); + Value = input.ReadString(); break; } } @@ -7722,16 +9287,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - AsyncId = input.ReadUInt64(); + case 10: { + Key = input.ReadString(); break; } case 18: { - Error = input.ReadString(); + Value = input.ReadString(); break; } } @@ -7741,20 +9310,18 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Change the "desire" to subs2ribe to a track - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetSubscribedRequest : pb::IMessage + public sealed partial class SetLocalAttributesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesResponse()); 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)] @@ -7770,7 +9337,7 @@ public sealed partial class SetSubscribedRequest : pb::IMessageField number for the "subscribe" field. - public const int SubscribeFieldNumber = 1; - private bool subscribe_; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Subscribe { - get { return subscribe_; } + public ulong AsyncId { + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } set { - subscribe_ = value; + _hasBits0 |= 1; + asyncId_ = value; } } - - /// Field number for the "publication_handle" field. - public const int PublicationHandleFieldNumber = 2; - private ulong publicationHandle_; + /// Gets whether the "async_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong PublicationHandle { - get { return publicationHandle_; } - set { - publicationHandle_ = value; - } + 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 SetSubscribedRequest); + return Equals(other as SetLocalAttributesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetSubscribedRequest other) { + public bool Equals(SetLocalAttributesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Subscribe != other.Subscribe) return false; - if (PublicationHandle != other.PublicationHandle) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7838,8 +9407,7 @@ public bool Equals(SetSubscribedRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Subscribe != false) hash ^= Subscribe.GetHashCode(); - if (PublicationHandle != 0UL) hash ^= PublicationHandle.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7858,13 +9426,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Subscribe != false) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteBool(Subscribe); - } - if (PublicationHandle != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(PublicationHandle); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7876,13 +9440,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 (Subscribe != false) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteBool(Subscribe); - } - if (PublicationHandle != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(PublicationHandle); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7894,11 +9454,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Subscribe != false) { - size += 1 + 1; - } - if (PublicationHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PublicationHandle); + if (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7908,15 +9465,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetSubscribedRequest other) { + public void MergeFrom(SetLocalAttributesResponse other) { if (other == null) { return; } - if (other.Subscribe != false) { - Subscribe = other.Subscribe; - } - if (other.PublicationHandle != 0UL) { - PublicationHandle = other.PublicationHandle; + if (other.HasAsyncId) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7929,16 +9483,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Subscribe = input.ReadBool(); - break; - } - case 16: { - PublicationHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } } @@ -7952,16 +9506,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Subscribe = input.ReadBool(); - break; - } - case 16: { - PublicationHandle = input.ReadUInt64(); + AsyncId = input.ReadUInt64(); break; } } @@ -7972,16 +9526,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetSubscribedResponse : pb::IMessage + public sealed partial class SetLocalAttributesCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalAttributesCallback()); 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)] @@ -7997,7 +9552,7 @@ public sealed partial class SetSubscribedResponse : pb::IMessageField number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; + [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; + } + + /// 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 SetSubscribedResponse); + return Equals(other as SetLocalAttributesCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetSubscribedResponse other) { + public bool Equals(SetLocalAttributesCallback 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); } @@ -8037,6 +9650,8 @@ public bool Equals(SetSubscribedResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8055,6 +9670,14 @@ 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 (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8065,9 +9688,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } + if (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } #endif @@ -8075,6 +9706,12 @@ 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 (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8083,10 +9720,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetSubscribedResponse other) { + public void MergeFrom(SetLocalAttributesCallback other) { if (other == null) { return; } + if (other.HasAsyncId) { + AsyncId = other.AsyncId; + } + if (other.HasError) { + Error = other.Error; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8098,10 +9741,22 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); + break; + } } } #endif @@ -8113,10 +9768,22 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Error = input.ReadString(); + break; + } } } } @@ -8124,17 +9791,21 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Change the local participant's name + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsRequest : pb::IMessage + public sealed partial class SetLocalNameRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameRequest()); 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)] @@ -8150,7 +9821,7 @@ public sealed partial class GetSessionStatsRequest : pb::IMessageField number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private ulong roomHandle_; + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong RoomHandle { - get { return roomHandle_; } + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } set { - roomHandle_ = value; + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetSessionStatsRequest); + return Equals(other as SetLocalNameRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsRequest other) { + public bool Equals(SetLocalNameRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RoomHandle != other.RoomHandle) return false; + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8204,7 +9919,8 @@ public bool Equals(GetSessionStatsRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); + if (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8223,9 +9939,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8237,9 +9957,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RoomHandle != 0UL) { + if (HasLocalParticipantHandle) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8251,8 +9975,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (RoomHandle != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); + if (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8262,12 +9989,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsRequest other) { + public void MergeFrom(SetLocalNameRequest other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { - RoomHandle = other.RoomHandle; + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasName) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8280,12 +10010,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - RoomHandle = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); break; } } @@ -8299,12 +10037,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - RoomHandle = input.ReadUInt64(); + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); break; } } @@ -8315,16 +10061,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsResponse : pb::IMessage + public sealed partial class SetLocalNameResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameResponse()); 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)] @@ -8340,7 +10087,7 @@ public sealed partial class GetSessionStatsResponse : pb::IMessageField number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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 GetSessionStatsResponse); + return Equals(other as SetLocalNameResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsResponse other) { + public bool Equals(SetLocalNameResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -8394,7 +10157,7 @@ public bool Equals(GetSessionStatsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8413,7 +10176,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -8427,7 +10190,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -8441,7 +10204,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -8452,11 +10215,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsResponse other) { + public void MergeFrom(SetLocalNameResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -8470,7 +10233,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -8489,7 +10256,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -8505,16 +10276,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetSessionStatsCallback : pb::IMessage + public sealed partial class SetLocalNameCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsCallback()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetLocalNameCallback()); 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)] @@ -8530,7 +10302,7 @@ public sealed partial class GetSessionStatsCallback : pb::IMessageField number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -8590,37 +10376,15 @@ public void ClearError() { error_ = null; } - /// Field number for the "publisher_stats" field. - public const int PublisherStatsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_publisherStats_codec - = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.RtcStats.Parser); - private readonly pbc::RepeatedField publisherStats_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PublisherStats { - get { return publisherStats_; } - } - - /// Field number for the "subscriber_stats" field. - public const int SubscriberStatsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_subscriberStats_codec - = pb::FieldCodec.ForMessage(34, global::LiveKit.Proto.RtcStats.Parser); - private readonly pbc::RepeatedField subscriberStats_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SubscriberStats { - get { return subscriberStats_; } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetSessionStatsCallback); + return Equals(other as SetLocalNameCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetSessionStatsCallback other) { + public bool Equals(SetLocalNameCallback other) { if (ReferenceEquals(other, null)) { return false; } @@ -8629,8 +10393,6 @@ public bool Equals(GetSessionStatsCallback other) { } 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); } @@ -8638,10 +10400,8 @@ public bool Equals(GetSessionStatsCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); - hash ^= publisherStats_.GetHashCode(); - hash ^= subscriberStats_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8660,7 +10420,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -8668,8 +10428,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(Error); } - publisherStats_.WriteTo(output, _repeated_publisherStats_codec); - subscriberStats_.WriteTo(output, _repeated_subscriberStats_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8680,7 +10438,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -8688,8 +10446,6 @@ public void WriteTo(pb::CodedOutputStream output) { 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); } @@ -8700,14 +10456,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { 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(); } @@ -8716,18 +10470,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetSessionStatsCallback other) { + public void MergeFrom(SetLocalNameCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { Error = other.Error; } - publisherStats_.Add(other.publisherStats_); - subscriberStats_.Add(other.subscriberStats_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8739,7 +10491,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -8751,14 +10507,6 @@ public void MergeFrom(pb::CodedInputStream input) { Error = input.ReadString(); break; } - case 26: { - publisherStats_.AddEntriesFrom(input, _repeated_publisherStats_codec); - break; - } - case 34: { - subscriberStats_.AddEntriesFrom(input, _repeated_subscriberStats_codec); - break; - } } } #endif @@ -8770,7 +10518,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -8782,14 +10534,6 @@ public void MergeFrom(pb::CodedInputStream input) { Error = input.ReadString(); break; } - case 26: { - publisherStats_.AddEntriesFrom(ref input, _repeated_publisherStats_codec); - break; - } - case 34: { - subscriberStats_.AddEntriesFrom(ref input, _repeated_subscriberStats_codec); - break; - } } } } @@ -8797,17 +10541,21 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Change the "desire" to subs2ribe to a track + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class VideoEncoding : pb::IMessage + public sealed partial class SetSubscribedRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoEncoding()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedRequest()); 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)] @@ -8823,7 +10571,7 @@ public sealed partial class VideoEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoEncoding() { + public SetSubscribedRequest() { OnConstruction(); } @@ -8831,59 +10579,90 @@ 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 SetSubscribedRequest(SetSubscribedRequest other) : this() { + _hasBits0 = other._hasBits0; + subscribe_ = other.subscribe_; + publicationHandle_ = other.publicationHandle_; _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 SetSubscribedRequest Clone() { + return new SetSubscribedRequest(this); } - /// Field number for the "max_bitrate" field. - public const int MaxBitrateFieldNumber = 1; - private ulong maxBitrate_; + /// Field number for the "subscribe" field. + public const int SubscribeFieldNumber = 1; + private readonly static bool SubscribeDefaultValue = false; + + private bool subscribe_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong MaxBitrate { - get { return maxBitrate_; } + public bool Subscribe { + get { if ((_hasBits0 & 1) != 0) { return subscribe_; } else { return SubscribeDefaultValue; } } set { - maxBitrate_ = value; + _hasBits0 |= 1; + subscribe_ = value; } } + /// Gets whether the "subscribe" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSubscribe { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "subscribe" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSubscribe() { + _hasBits0 &= ~1; + } - /// Field number for the "max_framerate" field. - public const int MaxFramerateFieldNumber = 2; - private double maxFramerate_; + /// Field number for the "publication_handle" field. + public const int PublicationHandleFieldNumber = 2; + private readonly static ulong PublicationHandleDefaultValue = 0UL; + + private ulong publicationHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double MaxFramerate { - get { return maxFramerate_; } + public ulong PublicationHandle { + get { if ((_hasBits0 & 2) != 0) { return publicationHandle_; } else { return PublicationHandleDefaultValue; } } set { - maxFramerate_ = value; + _hasBits0 |= 2; + publicationHandle_ = value; } } + /// Gets whether the "publication_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPublicationHandle { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "publication_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPublicationHandle() { + _hasBits0 &= ~2; + } [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 SetSubscribedRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoEncoding other) { + public bool Equals(SetSubscribedRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (MaxBitrate != other.MaxBitrate) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxFramerate, other.MaxFramerate)) return false; + if (Subscribe != other.Subscribe) return false; + if (PublicationHandle != other.PublicationHandle) return false; return Equals(_unknownFields, other._unknownFields); } @@ -8891,8 +10670,8 @@ public bool Equals(VideoEncoding other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (MaxBitrate != 0UL) hash ^= MaxBitrate.GetHashCode(); - if (MaxFramerate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxFramerate); + if (HasSubscribe) hash ^= Subscribe.GetHashCode(); + if (HasPublicationHandle) hash ^= PublicationHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8911,13 +10690,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (MaxBitrate != 0UL) { + if (HasSubscribe) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteBool(Subscribe); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (HasPublicationHandle) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8929,13 +10708,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MaxBitrate != 0UL) { + if (HasSubscribe) { output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); + output.WriteBool(Subscribe); } - if (MaxFramerate != 0D) { - output.WriteRawTag(17); - output.WriteDouble(MaxFramerate); + if (HasPublicationHandle) { + output.WriteRawTag(16); + output.WriteUInt64(PublicationHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8947,11 +10726,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (MaxBitrate != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); + if (HasSubscribe) { + size += 1 + 1; } - if (MaxFramerate != 0D) { - size += 1 + 8; + if (HasPublicationHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PublicationHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -8961,15 +10740,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoEncoding other) { + public void MergeFrom(SetSubscribedRequest other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; + if (other.HasSubscribe) { + Subscribe = other.Subscribe; } - if (other.MaxFramerate != 0D) { - MaxFramerate = other.MaxFramerate; + if (other.HasPublicationHandle) { + PublicationHandle = other.PublicationHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8982,16 +10761,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + Subscribe = input.ReadBool(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 16: { + PublicationHandle = input.ReadUInt64(); break; } } @@ -9005,16 +10788,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - MaxBitrate = input.ReadUInt64(); + Subscribe = input.ReadBool(); break; } - case 17: { - MaxFramerate = input.ReadDouble(); + case 16: { + PublicationHandle = input.ReadUInt64(); break; } } @@ -9025,16 +10812,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AudioEncoding : pb::IMessage + public sealed partial class SetSubscribedResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioEncoding()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSubscribedResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9050,7 +10837,7 @@ public sealed partial class AudioEncoding : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding() { + public SetSubscribedResponse() { OnConstruction(); } @@ -9058,45 +10845,31 @@ public AudioEncoding() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioEncoding(AudioEncoding other) : this() { - maxBitrate_ = other.maxBitrate_; + public SetSubscribedResponse(SetSubscribedResponse other) : this() { _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; - } + 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 AudioEncoding); + return Equals(other as SetSubscribedResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioEncoding other) { + public bool Equals(SetSubscribedResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (MaxBitrate != other.MaxBitrate) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9104,7 +10877,6 @@ 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 (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9123,10 +10895,6 @@ 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); } @@ -9137,10 +10905,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 (MaxBitrate != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(MaxBitrate); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -9151,9 +10915,6 @@ 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 (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -9162,13 +10923,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioEncoding other) { + public void MergeFrom(SetSubscribedResponse other) { if (other == null) { return; } - if (other.MaxBitrate != 0UL) { - MaxBitrate = other.MaxBitrate; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9180,14 +10938,14 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - MaxBitrate = input.ReadUInt64(); - break; - } } } #endif @@ -9199,14 +10957,14 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - MaxBitrate = input.ReadUInt64(); - break; - } } } } @@ -9215,16 +10973,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackPublishOptions : pb::IMessage + 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 TrackPublishOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsRequest()); 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)] @@ -9240,7 +10999,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 "room_handle" field. + public const int RoomHandleFieldNumber = 1; + private readonly static ulong RoomHandleDefaultValue = 0UL; - /// Field number for the "audio_encoding" field. - public const int AudioEncodingFieldNumber = 2; - private global::LiveKit.Proto.AudioEncoding audioEncoding_; + private ulong roomHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.AudioEncoding AudioEncoding { - get { return audioEncoding_; } + public ulong RoomHandle { + get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } } set { - audioEncoding_ = value; + _hasBits0 |= 1; + roomHandle_ = value; } } - - /// Field number for the "video_codec" field. - public const int VideoCodecFieldNumber = 3; - private global::LiveKit.Proto.VideoCodec videoCodec_ = global::LiveKit.Proto.VideoCodec.Vp8; + /// Gets whether the "room_handle" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.VideoCodec VideoCodec { - get { return videoCodec_; } - set { - videoCodec_ = value; - } + public bool HasRoomHandle { + get { return (_hasBits0 & 1) != 0; } } - - /// Field number for the "dtx" field. - public const int DtxFieldNumber = 4; - private bool dtx_; + /// Clears the value of the "room_handle" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Dtx { - get { return dtx_; } - set { - dtx_ = value; - } + public void ClearRoomHandle() { + _hasBits0 &= ~1; } - /// Field number for the "red" field. - public const int RedFieldNumber = 5; - private bool red_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Red { - get { return red_; } - set { - red_ = value; - } + public override bool Equals(object other) { + return Equals(other as GetSessionStatsRequest); } - /// 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; + 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); } - /// Field number for the "source" field. - public const int SourceFieldNumber = 7; - private global::LiveKit.Proto.TrackSource source_ = global::LiveKit.Proto.TrackSource.SourceUnknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSource Source { - get { return source_; } - set { - source_ = value; + public override int GetHashCode() { + int hash = 1; + if (HasRoomHandle) hash ^= RoomHandle.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "stream" field. - public const int StreamFieldNumber = 8; - private string stream_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Stream { - get { return stream_; } - set { - stream_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TrackPublishOptions); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublishOptions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(VideoEncoding, other.VideoEncoding)) return false; - if (!object.Equals(AudioEncoding, other.AudioEncoding)) return false; - if (VideoCodec != other.VideoCodec) return false; - if (Dtx != other.Dtx) return false; - if (Red != other.Red) return false; - if (Simulcast != other.Simulcast) return false; - if (Source != other.Source) return false; - if (Stream != other.Stream) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [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 (Stream.Length != 0) hash ^= Stream.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9421,37 +11088,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (videoEncoding_ != null) { - output.WriteRawTag(10); - output.WriteMessage(VideoEncoding); - } - if (audioEncoding_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - output.WriteRawTag(24); - output.WriteEnum((int) VideoCodec); - } - if (Dtx != false) { - output.WriteRawTag(32); - output.WriteBool(Dtx); - } - if (Red != false) { - output.WriteRawTag(40); - output.WriteBool(Red); - } - if (Simulcast != false) { - output.WriteRawTag(48); - output.WriteBool(Simulcast); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(56); - output.WriteEnum((int) Source); - } - if (Stream.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Stream); + if (HasRoomHandle) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9463,37 +11102,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (videoEncoding_ != null) { - output.WriteRawTag(10); - output.WriteMessage(VideoEncoding); - } - if (audioEncoding_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - output.WriteRawTag(24); - output.WriteEnum((int) VideoCodec); - } - if (Dtx != false) { - output.WriteRawTag(32); - output.WriteBool(Dtx); - } - if (Red != false) { - output.WriteRawTag(40); - output.WriteBool(Red); - } - if (Simulcast != false) { - output.WriteRawTag(48); - output.WriteBool(Simulcast); - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - output.WriteRawTag(56); - output.WriteEnum((int) Source); - } - if (Stream.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Stream); + if (HasRoomHandle) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9505,29 +11116,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (videoEncoding_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoEncoding); - } - if (audioEncoding_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioEncoding); - } - if (VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VideoCodec); - } - if (Dtx != false) { - size += 1 + 1; - } - if (Red != false) { - size += 1 + 1; - } - if (Simulcast != false) { - size += 1 + 1; - } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (Stream.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Stream); + if (HasRoomHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9537,39 +11127,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublishOptions other) { + public void MergeFrom(GetSessionStatsRequest other) { if (other == null) { return; } - if (other.videoEncoding_ != null) { - if (videoEncoding_ == null) { - VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); - } - VideoEncoding.MergeFrom(other.VideoEncoding); - } - if (other.audioEncoding_ != null) { - if (audioEncoding_ == null) { - AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); - } - AudioEncoding.MergeFrom(other.AudioEncoding); - } - if (other.VideoCodec != global::LiveKit.Proto.VideoCodec.Vp8) { - VideoCodec = other.VideoCodec; - } - if (other.Dtx != false) { - Dtx = other.Dtx; - } - if (other.Red != false) { - Red = other.Red; - } - if (other.Simulcast != false) { - Simulcast = other.Simulcast; - } - if (other.Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { - Source = other.Source; - } - if (other.Stream.Length != 0) { - Stream = other.Stream; + if (other.HasRoomHandle) { + RoomHandle = other.RoomHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9582,46 +11145,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; - } - case 66: { - Stream = input.ReadString(); + case 8: { + RoomHandle = input.ReadUInt64(); break; } } @@ -9635,46 +11168,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; - } - case 66: { - Stream = input.ReadString(); + case 8: { + RoomHandle = input.ReadUInt64(); break; } } @@ -9685,16 +11188,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class IceServer : pb::IMessage + public sealed partial class GetSessionStatsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IceServer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsResponse()); private pb::UnknownFieldSet _unknownFields; + 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)] @@ -9710,7 +11214,7 @@ public sealed partial class IceServer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer() { + public GetSessionStatsResponse() { OnConstruction(); } @@ -9718,72 +11222,61 @@ public IceServer() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer(IceServer other) : this() { - urls_ = other.urls_.Clone(); - username_ = other.username_; - password_ = other.password_; + public GetSessionStatsResponse(GetSessionStatsResponse other) : this() { + _hasBits0 = other._hasBits0; + asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IceServer Clone() { - return new IceServer(this); + public GetSessionStatsResponse Clone() { + return new GetSessionStatsResponse(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 "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; - /// Field number for the "username" field. - public const int UsernameFieldNumber = 2; - private string username_ = ""; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { - get { return username_; } + public ulong AsyncId { + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } set { - username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _hasBits0 |= 1; + asyncId_ = value; } } - - /// Field number for the "password" field. - public const int PasswordFieldNumber = 3; - private string password_ = ""; + /// Gets whether the "async_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Password { - get { return password_; } - set { - password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + 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 IceServer); + return Equals(other as GetSessionStatsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IceServer other) { + public bool Equals(GetSessionStatsResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!urls_.Equals(other.urls_)) return false; - if (Username != other.Username) return false; - if (Password != other.Password) return false; + if (AsyncId != other.AsyncId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9791,9 +11284,7 @@ public bool Equals(IceServer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= urls_.GetHashCode(); - if (Username.Length != 0) hash ^= Username.GetHashCode(); - if (Password.Length != 0) hash ^= Password.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9812,14 +11303,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - urls_.WriteTo(output, _repeated_urls_codec); - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Password); + if (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9831,14 +11317,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - urls_.WriteTo(ref output, _repeated_urls_codec); - if (Username.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Username); - } - if (Password.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Password); + if (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9850,12 +11331,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += urls_.CalculateSize(_repeated_urls_codec); - if (Username.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); - } - if (Password.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + if (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9865,16 +11342,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IceServer other) { + public void MergeFrom(GetSessionStatsResponse other) { if (other == null) { return; } - urls_.Add(other.urls_); - if (other.Username.Length != 0) { - Username = other.Username; - } - if (other.Password.Length != 0) { - Password = other.Password; + if (other.HasAsyncId) { + AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9887,20 +11360,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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(); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -9914,20 +11383,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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(); + case 8: { + AsyncId = input.ReadUInt64(); break; } } @@ -9938,17 +11403,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RtcConfig : pb::IMessage + public sealed partial class GetSessionStatsCallback : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcConfig()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSessionStatsCallback()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9964,7 +11429,7 @@ public sealed partial class RtcConfig : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig() { + public GetSessionStatsCallback() { OnConstruction(); } @@ -9972,106 +11437,132 @@ public RtcConfig() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig(RtcConfig other) : this() { + public GetSessionStatsCallback(GetSessionStatsCallback other) : this() { _hasBits0 = other._hasBits0; - iceTransportType_ = other.iceTransportType_; - continualGatheringPolicy_ = other.continualGatheringPolicy_; - iceServers_ = other.iceServers_.Clone(); + asyncId_ = other.asyncId_; + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Result: + Result = other.Result.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RtcConfig Clone() { - return new RtcConfig(this); + public GetSessionStatsCallback Clone() { + return new GetSessionStatsCallback(this); } - /// Field number for the "ice_transport_type" field. - public const int IceTransportTypeFieldNumber = 1; - private readonly static global::LiveKit.Proto.IceTransportType IceTransportTypeDefaultValue = global::LiveKit.Proto.IceTransportType.TransportRelay; + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; - private global::LiveKit.Proto.IceTransportType iceTransportType_; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.IceTransportType IceTransportType { - get { if ((_hasBits0 & 1) != 0) { return iceTransportType_; } else { return IceTransportTypeDefaultValue; } } + public ulong AsyncId { + get { if ((_hasBits0 & 1) != 0) { return asyncId_; } else { return AsyncIdDefaultValue; } } set { _hasBits0 |= 1; - iceTransportType_ = value; + asyncId_ = value; } } - /// Gets whether the "ice_transport_type" field is set + /// Gets whether the "async_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIceTransportType { + public bool HasAsyncId { get { return (_hasBits0 & 1) != 0; } } - /// Clears the value of the "ice_transport_type" field + /// Clears the value of the "async_id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIceTransportType() { + public void ClearAsyncId() { _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_; + /// Field number for the "error" field. + public const int ErrorFieldNumber = 2; [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; } } + public string Error { + get { return HasError ? (string) message_ : ""; } set { - _hasBits0 |= 2; - continualGatheringPolicy_ = value; + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; } } - /// Gets whether the "continual_gathering_policy" field is set + /// Gets whether the "error" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasContinualGatheringPolicy { - get { return (_hasBits0 & 2) != 0; } + public bool HasError { + get { return messageCase_ == MessageOneofCase.Error; } } - /// Clears the value of the "continual_gathering_policy" field + /// Clears the value of the oneof if it's currently set to "error" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearContinualGatheringPolicy() { - _hasBits0 &= ~2; + public void ClearError() { + if (HasError) { + ClearMessage(); + } } - /// Field number for the "ice_servers" field. - public const int IceServersFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_iceServers_codec - = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.IceServer.Parser); - private readonly pbc::RepeatedField iceServers_ = new pbc::RepeatedField(); - /// - /// empty fallback to default - /// + /// Field number for the "result" field. + public const int ResultFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IceServers { - get { return iceServers_; } + public global::LiveKit.Proto.GetSessionStatsCallback.Types.Result Result { + get { return messageCase_ == MessageOneofCase.Result ? (global::LiveKit.Proto.GetSessionStatsCallback.Types.Result) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Result; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + Error = 2, + Result = 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 RtcConfig); + return Equals(other as GetSessionStatsCallback); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RtcConfig other) { + public bool Equals(GetSessionStatsCallback other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (IceTransportType != other.IceTransportType) return false; - if (ContinualGatheringPolicy != other.ContinualGatheringPolicy) return false; - if(!iceServers_.Equals(other.iceServers_)) return false; + if (AsyncId != other.AsyncId) return false; + if (Error != other.Error) return false; + if (!object.Equals(Result, other.Result)) return false; + if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10079,9 +11570,10 @@ public bool Equals(RtcConfig other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (HasIceTransportType) hash ^= IceTransportType.GetHashCode(); - if (HasContinualGatheringPolicy) hash ^= ContinualGatheringPolicy.GetHashCode(); - hash ^= iceServers_.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); + if (messageCase_ == MessageOneofCase.Result) hash ^= Result.GetHashCode(); + hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10100,15 +11592,18 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (HasIceTransportType) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteEnum((int) IceTransportType); + output.WriteUInt64(AsyncId); } - if (HasContinualGatheringPolicy) { - output.WriteRawTag(16); - output.WriteEnum((int) ContinualGatheringPolicy); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } + if (messageCase_ == MessageOneofCase.Result) { + output.WriteRawTag(26); + output.WriteMessage(Result); } - iceServers_.WriteTo(output, _repeated_iceServers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -10119,15 +11614,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasIceTransportType) { + if (HasAsyncId) { output.WriteRawTag(8); - output.WriteEnum((int) IceTransportType); + output.WriteUInt64(AsyncId); } - if (HasContinualGatheringPolicy) { - output.WriteRawTag(16); - output.WriteEnum((int) ContinualGatheringPolicy); + if (HasError) { + output.WriteRawTag(18); + output.WriteString(Error); + } + if (messageCase_ == MessageOneofCase.Result) { + output.WriteRawTag(26); + output.WriteMessage(Result); } - iceServers_.WriteTo(ref output, _repeated_iceServers_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -10138,13 +11636,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (HasIceTransportType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceTransportType); + if (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } - if (HasContinualGatheringPolicy) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ContinualGatheringPolicy); + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (messageCase_ == MessageOneofCase.Result) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); } - size += iceServers_.CalculateSize(_repeated_iceServers_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -10153,17 +11653,25 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RtcConfig other) { + public void MergeFrom(GetSessionStatsCallback other) { if (other == null) { return; } - if (other.HasIceTransportType) { - IceTransportType = other.IceTransportType; + if (other.HasAsyncId) { + AsyncId = other.AsyncId; } - if (other.HasContinualGatheringPolicy) { - ContinualGatheringPolicy = other.ContinualGatheringPolicy; + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Result: + if (Result == null) { + Result = new global::LiveKit.Proto.GetSessionStatsCallback.Types.Result(); + } + Result.MergeFrom(other.Result); + break; } - iceServers_.Add(other.iceServers_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10175,20 +11683,29 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + AsyncId = input.ReadUInt64(); break; } - case 16: { - ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + case 18: { + Error = input.ReadString(); break; } case 26: { - iceServers_.AddEntriesFrom(input, _repeated_iceServers_codec); + global::LiveKit.Proto.GetSessionStatsCallback.Types.Result subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback.Types.Result(); + if (messageCase_ == MessageOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; break; } } @@ -10202,40 +11719,271 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - IceTransportType = (global::LiveKit.Proto.IceTransportType) input.ReadEnum(); + AsyncId = input.ReadUInt64(); break; } - case 16: { - ContinualGatheringPolicy = (global::LiveKit.Proto.ContinualGatheringPolicy) input.ReadEnum(); + case 18: { + Error = input.ReadString(); break; } case 26: { - iceServers_.AddEntriesFrom(ref input, _repeated_iceServers_codec); - break; + global::LiveKit.Proto.GetSessionStatsCallback.Types.Result subBuilder = new global::LiveKit.Proto.GetSessionStatsCallback.Types.Result(); + if (messageCase_ == MessageOneofCase.Result) { + subBuilder.MergeFrom(Result); + } + input.ReadMessage(subBuilder); + Result = subBuilder; + break; } } } } #endif + #region Nested types + /// Container for nested types declared in the GetSessionStatsCallback 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 Result : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Result()); + 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.GetSessionStatsCallback.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 Result() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Result(Result other) : this() { + 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 Result Clone() { + return new Result(this); + } + + /// Field number for the "publisher_stats" field. + public const int PublisherStatsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_publisherStats_codec + = pb::FieldCodec.ForMessage(10, 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 = 2; + private static readonly pb::FieldCodec _repeated_subscriberStats_codec + = pb::FieldCodec.ForMessage(18, 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 Result); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Result other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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; + 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 + 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) { + 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; + 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(Result other) { + if (other == null) { + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + publisherStats_.AddEntriesFrom(input, _repeated_publisherStats_codec); + break; + } + case 18: { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + publisherStats_.AddEntriesFrom(ref input, _repeated_publisherStats_codec); + break; + } + case 18: { + subscriberStats_.AddEntriesFrom(ref input, _repeated_subscriberStats_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomOptions : pb::IMessage + public sealed partial class VideoEncoding : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomOptions()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoEncoding()); private pb::UnknownFieldSet _unknownFields; + 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)] @@ -10251,7 +11999,7 @@ public sealed partial class RoomOptions : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions() { + public VideoEncoding() { OnConstruction(); } @@ -10259,118 +12007,90 @@ public RoomOptions() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions(RoomOptions other) : this() { - autoSubscribe_ = other.autoSubscribe_; - adaptiveStream_ = other.adaptiveStream_; - dynacast_ = other.dynacast_; - e2Ee_ = other.e2Ee_ != null ? other.e2Ee_.Clone() : null; - rtcConfig_ = other.rtcConfig_ != null ? other.rtcConfig_.Clone() : null; - joinRetries_ = other.joinRetries_; + public VideoEncoding(VideoEncoding other) : this() { + _hasBits0 = other._hasBits0; + maxBitrate_ = other.maxBitrate_; + maxFramerate_ = other.maxFramerate_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomOptions Clone() { - return new RoomOptions(this); + public VideoEncoding Clone() { + return new VideoEncoding(this); } - /// Field number for the "auto_subscribe" field. - public const int AutoSubscribeFieldNumber = 1; - private bool autoSubscribe_; + /// Field number for the "max_bitrate" field. + public const int MaxBitrateFieldNumber = 1; + private readonly static ulong MaxBitrateDefaultValue = 0UL; + + private ulong maxBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoSubscribe { - get { return autoSubscribe_; } + public ulong MaxBitrate { + get { if ((_hasBits0 & 1) != 0) { return maxBitrate_; } else { return MaxBitrateDefaultValue; } } set { - autoSubscribe_ = value; + _hasBits0 |= 1; + maxBitrate_ = value; } } - - /// Field number for the "adaptive_stream" field. - public const int AdaptiveStreamFieldNumber = 2; - private bool adaptiveStream_; + /// Gets whether the "max_bitrate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AdaptiveStream { - get { return adaptiveStream_; } - set { - adaptiveStream_ = value; - } + public bool HasMaxBitrate { + get { return (_hasBits0 & 1) != 0; } } - - /// Field number for the "dynacast" field. - public const int DynacastFieldNumber = 3; - private bool dynacast_; + /// Clears the value of the "max_bitrate" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Dynacast { - get { return dynacast_; } - set { - dynacast_ = value; - } + public void ClearMaxBitrate() { + _hasBits0 &= ~1; } - /// Field number for the "e2ee" field. - public const int E2EeFieldNumber = 4; - private global::LiveKit.Proto.E2eeOptions e2Ee_; + /// Field number for the "max_framerate" field. + public const int MaxFramerateFieldNumber = 2; + private readonly static double MaxFramerateDefaultValue = 0D; + + private double maxFramerate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.E2eeOptions E2Ee { - get { return e2Ee_; } + public double MaxFramerate { + get { if ((_hasBits0 & 2) != 0) { return maxFramerate_; } else { return MaxFramerateDefaultValue; } } set { - e2Ee_ = value; + _hasBits0 |= 2; + maxFramerate_ = 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 - /// + /// Gets whether the "max_framerate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RtcConfig RtcConfig { - get { return rtcConfig_; } - set { - rtcConfig_ = value; - } + public bool HasMaxFramerate { + get { return (_hasBits0 & 2) != 0; } } - - /// Field number for the "join_retries" field. - public const int JoinRetriesFieldNumber = 6; - private uint joinRetries_; + /// Clears the value of the "max_framerate" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint JoinRetries { - get { return joinRetries_; } - set { - joinRetries_ = value; - } + public void ClearMaxFramerate() { + _hasBits0 &= ~2; } [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 VideoEncoding); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomOptions other) { + public bool Equals(VideoEncoding 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; + if (MaxBitrate != other.MaxBitrate) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxFramerate, other.MaxFramerate)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10378,12 +12098,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 (Dynacast != false) hash ^= Dynacast.GetHashCode(); - if (e2Ee_ != null) hash ^= E2Ee.GetHashCode(); - if (rtcConfig_ != null) hash ^= RtcConfig.GetHashCode(); - if (JoinRetries != 0) hash ^= JoinRetries.GetHashCode(); + if (HasMaxBitrate) hash ^= MaxBitrate.GetHashCode(); + if (HasMaxFramerate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxFramerate); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10402,29 +12118,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AutoSubscribe != false) { + if (HasMaxBitrate) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); - } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); - } - if (Dynacast != false) { - output.WriteRawTag(24); - output.WriteBool(Dynacast); - } - if (e2Ee_ != null) { - output.WriteRawTag(34); - output.WriteMessage(E2Ee); - } - if (rtcConfig_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RtcConfig); + output.WriteUInt64(MaxBitrate); } - if (JoinRetries != 0) { - output.WriteRawTag(48); - output.WriteUInt32(JoinRetries); + if (HasMaxFramerate) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10436,29 +12136,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 (HasMaxBitrate) { output.WriteRawTag(8); - output.WriteBool(AutoSubscribe); - } - if (AdaptiveStream != false) { - output.WriteRawTag(16); - output.WriteBool(AdaptiveStream); - } - if (Dynacast != false) { - output.WriteRawTag(24); - output.WriteBool(Dynacast); - } - if (e2Ee_ != null) { - output.WriteRawTag(34); - output.WriteMessage(E2Ee); - } - if (rtcConfig_ != null) { - output.WriteRawTag(42); - output.WriteMessage(RtcConfig); + output.WriteUInt64(MaxBitrate); } - if (JoinRetries != 0) { - output.WriteRawTag(48); - output.WriteUInt32(JoinRetries); + if (HasMaxFramerate) { + output.WriteRawTag(17); + output.WriteDouble(MaxFramerate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10470,23 +12154,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AutoSubscribe != false) { - size += 1 + 1; - } - if (AdaptiveStream != false) { - size += 1 + 1; - } - if (Dynacast != false) { - size += 1 + 1; - } - if (e2Ee_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); - } - if (rtcConfig_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RtcConfig); + if (HasMaxBitrate) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); } - if (JoinRetries != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinRetries); + if (HasMaxFramerate) { + size += 1 + 8; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10496,33 +12168,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomOptions other) { + public void MergeFrom(VideoEncoding other) { if (other == null) { return; } - if (other.AutoSubscribe != false) { - AutoSubscribe = other.AutoSubscribe; - } - if (other.AdaptiveStream != false) { - AdaptiveStream = other.AdaptiveStream; - } - if (other.Dynacast != false) { - Dynacast = other.Dynacast; - } - if (other.e2Ee_ != null) { - if (e2Ee_ == null) { - E2Ee = new global::LiveKit.Proto.E2eeOptions(); - } - E2Ee.MergeFrom(other.E2Ee); - } - if (other.rtcConfig_ != null) { - if (rtcConfig_ == null) { - RtcConfig = new global::LiveKit.Proto.RtcConfig(); - } - RtcConfig.MergeFrom(other.RtcConfig); + if (other.HasMaxBitrate) { + MaxBitrate = other.MaxBitrate; } - if (other.JoinRetries != 0) { - JoinRetries = other.JoinRetries; + if (other.HasMaxFramerate) { + MaxFramerate = other.MaxFramerate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10535,38 +12189,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + MaxBitrate = input.ReadUInt64(); break; } - case 48: { - JoinRetries = input.ReadUInt32(); + case 17: { + MaxFramerate = input.ReadDouble(); break; } } @@ -10580,38 +12216,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + MaxBitrate = input.ReadUInt64(); break; } - case 48: { - JoinRetries = input.ReadUInt32(); + case 17: { + MaxFramerate = input.ReadDouble(); break; } } @@ -10622,16 +12240,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TranscriptionSegment : pb::IMessage + public sealed partial class AudioEncoding : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranscriptionSegment()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioEncoding()); private pb::UnknownFieldSet _unknownFields; + 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)] @@ -10647,7 +12266,7 @@ public sealed partial class TranscriptionSegment : pb::IMessageField number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 2; - private string text_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public AudioEncoding Clone() { + return new AudioEncoding(this); } - /// Field number for the "start_time" field. - public const int StartTimeFieldNumber = 3; - private ulong startTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong StartTime { - get { return startTime_; } - set { - startTime_ = value; - } - } + /// Field number for the "max_bitrate" field. + public const int MaxBitrateFieldNumber = 1; + private readonly static ulong MaxBitrateDefaultValue = 0UL; - /// Field number for the "end_time" field. - public const int EndTimeFieldNumber = 4; - private ulong endTime_; + private ulong maxBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong EndTime { - get { return endTime_; } + public ulong MaxBitrate { + get { if ((_hasBits0 & 1) != 0) { return maxBitrate_; } else { return MaxBitrateDefaultValue; } } set { - endTime_ = value; + _hasBits0 |= 1; + maxBitrate_ = value; } } - - /// Field number for the "final" field. - public const int FinalFieldNumber = 5; - private bool final_; + /// Gets whether the "max_bitrate" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Final { - get { return final_; } - set { - final_ = value; - } + public bool HasMaxBitrate { + get { return (_hasBits0 & 1) != 0; } } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 6; - private string language_ = ""; + /// Clears the value of the "max_bitrate" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Language { - get { return language_; } - set { - language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public void ClearMaxBitrate() { + _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TranscriptionSegment); + return Equals(other as AudioEncoding); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TranscriptionSegment other) { + public bool Equals(AudioEncoding other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Id != other.Id) return false; - if (Text != other.Text) return false; - if (StartTime != other.StartTime) return false; - if (EndTime != other.EndTime) return false; - if (Final != other.Final) return false; - if (Language != other.Language) return false; + if (MaxBitrate != other.MaxBitrate) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10771,12 +12336,7 @@ public bool Equals(TranscriptionSegment other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Text.Length != 0) hash ^= Text.GetHashCode(); - if (StartTime != 0UL) hash ^= StartTime.GetHashCode(); - if (EndTime != 0UL) hash ^= EndTime.GetHashCode(); - if (Final != false) hash ^= Final.GetHashCode(); - if (Language.Length != 0) hash ^= Language.GetHashCode(); + if (HasMaxBitrate) hash ^= MaxBitrate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10795,29 +12355,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (StartTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(StartTime); - } - if (EndTime != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(EndTime); - } - if (Final != false) { - output.WriteRawTag(40); - output.WriteBool(Final); - } - if (Language.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Language); + if (HasMaxBitrate) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10829,29 +12369,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (StartTime != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(StartTime); - } - if (EndTime != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(EndTime); - } - if (Final != false) { - output.WriteRawTag(40); - output.WriteBool(Final); - } - if (Language.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Language); + if (HasMaxBitrate) { + output.WriteRawTag(8); + output.WriteUInt64(MaxBitrate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10863,23 +12383,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (StartTime != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTime); - } - if (EndTime != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EndTime); - } - if (Final != false) { - size += 1 + 1; - } - if (Language.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); + if (HasMaxBitrate) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MaxBitrate); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10889,27 +12394,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TranscriptionSegment other) { + public void MergeFrom(AudioEncoding other) { if (other == null) { return; } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Text.Length != 0) { - Text = other.Text; - } - if (other.StartTime != 0UL) { - StartTime = other.StartTime; - } - if (other.EndTime != 0UL) { - EndTime = other.EndTime; - } - if (other.Final != false) { - Final = other.Final; - } - if (other.Language.Length != 0) { - Language = other.Language; + if (other.HasMaxBitrate) { + MaxBitrate = other.MaxBitrate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10922,32 +12412,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 24: { - StartTime = input.ReadUInt64(); - break; - } - case 32: { - EndTime = input.ReadUInt64(); - break; - } - case 40: { - Final = input.ReadBool(); - break; - } - case 50: { - Language = input.ReadString(); + case 8: { + MaxBitrate = input.ReadUInt64(); break; } } @@ -10961,32 +12435,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 24: { - StartTime = input.ReadUInt64(); - break; - } - case 32: { - EndTime = input.ReadUInt64(); - break; - } - case 40: { - Final = input.ReadBool(); - break; - } - case 50: { - Language = input.ReadString(); + case 8: { + MaxBitrate = input.ReadUInt64(); break; } } @@ -10997,16 +12455,17 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class BufferInfo : pb::IMessage + public sealed partial class TrackPublishOptions : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BufferInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublishOptions()); private pb::UnknownFieldSet _unknownFields; + 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)] @@ -11022,7 +12481,7 @@ public sealed partial class BufferInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo() { + public TrackPublishOptions() { OnConstruction(); } @@ -11030,286 +12489,236 @@ public BufferInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo(BufferInfo other) : this() { - dataPtr_ = other.dataPtr_; - dataLen_ = other.dataLen_; + public TrackPublishOptions(TrackPublishOptions other) : this() { + _hasBits0 = other._hasBits0; + videoEncoding_ = other.videoEncoding_ != null ? other.videoEncoding_.Clone() : null; + audioEncoding_ = other.audioEncoding_ != null ? other.audioEncoding_.Clone() : null; + videoCodec_ = other.videoCodec_; + dtx_ = other.dtx_; + red_ = other.red_; + simulcast_ = other.simulcast_; + source_ = other.source_; + stream_ = other.stream_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BufferInfo Clone() { - return new BufferInfo(this); + public TrackPublishOptions Clone() { + return new TrackPublishOptions(this); } - /// Field number for the "data_ptr" field. - public const int DataPtrFieldNumber = 1; - private ulong dataPtr_; + /// Field number for the "video_encoding" field. + public const int VideoEncodingFieldNumber = 1; + private global::LiveKit.Proto.VideoEncoding videoEncoding_; + /// + /// encodings are optional + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataPtr { - get { return dataPtr_; } + public global::LiveKit.Proto.VideoEncoding VideoEncoding { + get { return videoEncoding_; } set { - dataPtr_ = value; + videoEncoding_ = value; } } - /// Field number for the "data_len" field. - public const int DataLenFieldNumber = 2; - private ulong dataLen_; + /// Field number for the "audio_encoding" field. + public const int AudioEncodingFieldNumber = 2; + private global::LiveKit.Proto.AudioEncoding audioEncoding_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong DataLen { - get { return dataLen_; } + public global::LiveKit.Proto.AudioEncoding AudioEncoding { + get { return audioEncoding_; } set { - dataLen_ = value; + audioEncoding_ = value; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BufferInfo); - } + /// Field number for the "video_codec" field. + public const int VideoCodecFieldNumber = 3; + private readonly static global::LiveKit.Proto.VideoCodec VideoCodecDefaultValue = global::LiveKit.Proto.VideoCodec.Vp8; + private global::LiveKit.Proto.VideoCodec videoCodec_; [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; + public global::LiveKit.Proto.VideoCodec VideoCodec { + get { if ((_hasBits0 & 1) != 0) { return videoCodec_; } else { return VideoCodecDefaultValue; } } + set { + _hasBits0 |= 1; + videoCodec_ = value; } - if (DataPtr != other.DataPtr) return false; - if (DataLen != other.DataLen) return false; - return Equals(_unknownFields, other._unknownFields); } - + /// Gets whether the "video_codec" field is set [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; + public bool HasVideoCodec { + get { return (_hasBits0 & 1) != 0; } } - + /// Clears the value of the "video_codec" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); + public void ClearVideoCodec() { + _hasBits0 &= ~1; } + /// Field number for the "dtx" field. + public const int DtxFieldNumber = 4; + private readonly static bool DtxDefaultValue = false; + + private bool dtx_; [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); + public bool Dtx { + get { if ((_hasBits0 & 2) != 0) { return dtx_; } else { return DtxDefaultValue; } } + set { + _hasBits0 |= 2; + dtx_ = value; } - #endif } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Gets whether the "dtx" field is set [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); - } + public bool HasDtx { + get { return (_hasBits0 & 2) != 0; } } - #endif - + /// Clears the value of the "dtx" field [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; + public void ClearDtx() { + _hasBits0 &= ~2; } + /// Field number for the "red" field. + public const int RedFieldNumber = 5; + private readonly static bool RedDefaultValue = false; + + private bool red_; [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; + public bool Red { + get { if ((_hasBits0 & 4) != 0) { return red_; } else { return RedDefaultValue; } } + set { + _hasBits0 |= 4; + red_ = value; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - + /// Gets whether the "red" field is set [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 + public bool HasRed { + get { return (_hasBits0 & 4) != 0; } } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + /// Clears the value of the "red" field [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; - } - } - } + public void ClearRed() { + _hasBits0 &= ~4; } - #endif - } + /// Field number for the "simulcast" field. + public const int SimulcastFieldNumber = 6; + private readonly static bool SimulcastDefaultValue = false; - [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; + private bool simulcast_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - + public bool Simulcast { + get { if ((_hasBits0 & 8) != 0) { return simulcast_; } else { return SimulcastDefaultValue; } } + set { + _hasBits0 |= 8; + simulcast_ = value; + } + } + /// Gets whether the "simulcast" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[43]; } + public bool HasSimulcast { + get { return (_hasBits0 & 8) != 0; } } - + /// Clears the value of the "simulcast" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } + public void ClearSimulcast() { + _hasBits0 &= ~8; } + /// Field number for the "source" field. + public const int SourceFieldNumber = 7; + private readonly static global::LiveKit.Proto.TrackSource SourceDefaultValue = global::LiveKit.Proto.TrackSource.SourceUnknown; + + private global::LiveKit.Proto.TrackSource source_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedBuffer() { - OnConstruction(); + public global::LiveKit.Proto.TrackSource Source { + get { if ((_hasBits0 & 16) != 0) { return source_; } else { return SourceDefaultValue; } } + set { + _hasBits0 |= 16; + source_ = value; + } } - - partial void OnConstruction(); - + /// Gets whether the "source" field is set [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); + public bool HasSource { + get { return (_hasBits0 & 16) != 0; } } - + /// Clears the value of the "source" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedBuffer Clone() { - return new OwnedBuffer(this); + public void ClearSource() { + _hasBits0 &= ~16; } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; + /// Field number for the "stream" field. + public const int StreamFieldNumber = 8; + private readonly static string StreamDefaultValue = ""; + + private string stream_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } + public string Stream { + get { return stream_ ?? StreamDefaultValue; } set { - handle_ = value; + stream_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private global::LiveKit.Proto.BufferInfo data_; + /// Gets whether the "stream" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.BufferInfo Data { - get { return data_; } - set { - data_ = value; - } + public bool HasStream { + get { return stream_ != null; } + } + /// Clears the value of the "stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStream() { + stream_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedBuffer); + return Equals(other as TrackPublishOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedBuffer other) { + public bool Equals(TrackPublishOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Data, other.Data)) return false; + if (!object.Equals(VideoEncoding, other.VideoEncoding)) return false; + if (!object.Equals(AudioEncoding, other.AudioEncoding)) return false; + if (VideoCodec != other.VideoCodec) return false; + if (Dtx != other.Dtx) return false; + if (Red != other.Red) return false; + if (Simulcast != other.Simulcast) return false; + if (Source != other.Source) return false; + if (Stream != other.Stream) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11317,8 +12726,14 @@ public bool Equals(OwnedBuffer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (data_ != null) hash ^= Data.GetHashCode(); + if (videoEncoding_ != null) hash ^= VideoEncoding.GetHashCode(); + if (audioEncoding_ != null) hash ^= AudioEncoding.GetHashCode(); + if (HasVideoCodec) hash ^= VideoCodec.GetHashCode(); + if (HasDtx) hash ^= Dtx.GetHashCode(); + if (HasRed) hash ^= Red.GetHashCode(); + if (HasSimulcast) hash ^= Simulcast.GetHashCode(); + if (HasSource) hash ^= Source.GetHashCode(); + if (HasStream) hash ^= Stream.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11337,13 +12752,37 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (videoEncoding_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteMessage(VideoEncoding); } - if (data_ != null) { + if (audioEncoding_ != null) { output.WriteRawTag(18); - output.WriteMessage(Data); + output.WriteMessage(AudioEncoding); + } + if (HasVideoCodec) { + output.WriteRawTag(24); + output.WriteEnum((int) VideoCodec); + } + if (HasDtx) { + output.WriteRawTag(32); + output.WriteBool(Dtx); + } + if (HasRed) { + output.WriteRawTag(40); + output.WriteBool(Red); + } + if (HasSimulcast) { + output.WriteRawTag(48); + output.WriteBool(Simulcast); + } + if (HasSource) { + output.WriteRawTag(56); + output.WriteEnum((int) Source); + } + if (HasStream) { + output.WriteRawTag(66); + output.WriteString(Stream); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11355,13 +12794,37 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (handle_ != null) { + if (videoEncoding_ != null) { output.WriteRawTag(10); - output.WriteMessage(Handle); + output.WriteMessage(VideoEncoding); } - if (data_ != null) { + if (audioEncoding_ != null) { output.WriteRawTag(18); - output.WriteMessage(Data); + output.WriteMessage(AudioEncoding); + } + if (HasVideoCodec) { + output.WriteRawTag(24); + output.WriteEnum((int) VideoCodec); + } + if (HasDtx) { + output.WriteRawTag(32); + output.WriteBool(Dtx); + } + if (HasRed) { + output.WriteRawTag(40); + output.WriteBool(Red); + } + if (HasSimulcast) { + output.WriteRawTag(48); + output.WriteBool(Simulcast); + } + if (HasSource) { + output.WriteRawTag(56); + output.WriteEnum((int) Source); + } + if (HasStream) { + output.WriteRawTag(66); + output.WriteString(Stream); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11373,11 +12836,29 @@ 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 (videoEncoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoEncoding); } - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + if (audioEncoding_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioEncoding); + } + if (HasVideoCodec) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VideoCodec); + } + if (HasDtx) { + size += 1 + 1; + } + if (HasRed) { + size += 1 + 1; + } + if (HasSimulcast) { + size += 1 + 1; + } + if (HasSource) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); + } + if (HasStream) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Stream); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11387,21 +12868,39 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedBuffer other) { + public void MergeFrom(TrackPublishOptions other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + if (other.videoEncoding_ != null) { + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); } - Handle.MergeFrom(other.Handle); + VideoEncoding.MergeFrom(other.VideoEncoding); } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); + if (other.audioEncoding_ != null) { + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); } - Data.MergeFrom(other.Data); + AudioEncoding.MergeFrom(other.AudioEncoding); + } + if (other.HasVideoCodec) { + VideoCodec = other.VideoCodec; + } + if (other.HasDtx) { + Dtx = other.Dtx; + } + if (other.HasRed) { + Red = other.Red; + } + if (other.HasSimulcast) { + Simulcast = other.Simulcast; + } + if (other.HasSource) { + Source = other.Source; + } + if (other.HasStream) { + Stream = other.Stream; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11414,51 +12913,107 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); } - input.ReadMessage(Handle); + input.ReadMessage(VideoEncoding); break; } case 18: { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); } - input.ReadMessage(Data); + input.ReadMessage(AudioEncoding); 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); + case 24: { + VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); break; - case 10: { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); + } + case 32: { + Dtx = input.ReadBool(); + break; + } + case 40: { + Red = input.ReadBool(); + break; + } + case 48: { + Simulcast = input.ReadBool(); + break; + } + case 56: { + Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 66: { + Stream = input.ReadString(); + break; + } + } + } + #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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (videoEncoding_ == null) { + VideoEncoding = new global::LiveKit.Proto.VideoEncoding(); } - input.ReadMessage(Handle); + input.ReadMessage(VideoEncoding); break; } case 18: { - if (data_ == null) { - Data = new global::LiveKit.Proto.BufferInfo(); + if (audioEncoding_ == null) { + AudioEncoding = new global::LiveKit.Proto.AudioEncoding(); } - input.ReadMessage(Data); + input.ReadMessage(AudioEncoding); + break; + } + case 24: { + VideoCodec = (global::LiveKit.Proto.VideoCodec) input.ReadEnum(); + break; + } + case 32: { + Dtx = input.ReadBool(); + break; + } + case 40: { + Red = input.ReadBool(); + break; + } + case 48: { + Simulcast = input.ReadBool(); + break; + } + case 56: { + Source = (global::LiveKit.Proto.TrackSource) input.ReadEnum(); + break; + } + case 66: { + Stream = input.ReadString(); break; } } @@ -11469,21 +13024,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomEvent : pb::IMessage + public sealed partial class IceServer : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomEvent()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IceServer()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[44]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11494,7 +13049,7 @@ public sealed partial class RoomEvent : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent() { + public IceServer() { OnConstruction(); } @@ -11502,533 +13057,396 @@ public RoomEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomEvent(RoomEvent other) : this() { - roomHandle_ = other.roomHandle_; - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - ParticipantConnected = other.ParticipantConnected.Clone(); - break; - case MessageOneofCase.ParticipantDisconnected: - ParticipantDisconnected = other.ParticipantDisconnected.Clone(); - break; - case MessageOneofCase.LocalTrackPublished: - LocalTrackPublished = other.LocalTrackPublished.Clone(); - break; - case MessageOneofCase.LocalTrackUnpublished: - LocalTrackUnpublished = other.LocalTrackUnpublished.Clone(); - break; - case MessageOneofCase.LocalTrackSubscribed: - LocalTrackSubscribed = other.LocalTrackSubscribed.Clone(); - break; - case MessageOneofCase.TrackPublished: - TrackPublished = other.TrackPublished.Clone(); - break; - case MessageOneofCase.TrackUnpublished: - TrackUnpublished = other.TrackUnpublished.Clone(); - break; - case MessageOneofCase.TrackSubscribed: - TrackSubscribed = other.TrackSubscribed.Clone(); - break; - case MessageOneofCase.TrackUnsubscribed: - TrackUnsubscribed = other.TrackUnsubscribed.Clone(); - break; - case MessageOneofCase.TrackSubscriptionFailed: - TrackSubscriptionFailed = other.TrackSubscriptionFailed.Clone(); - break; - case MessageOneofCase.TrackMuted: - TrackMuted = other.TrackMuted.Clone(); - break; - case MessageOneofCase.TrackUnmuted: - TrackUnmuted = other.TrackUnmuted.Clone(); - break; - case MessageOneofCase.ActiveSpeakersChanged: - ActiveSpeakersChanged = other.ActiveSpeakersChanged.Clone(); - break; - case MessageOneofCase.RoomMetadataChanged: - RoomMetadataChanged = other.RoomMetadataChanged.Clone(); - break; - case MessageOneofCase.RoomSidChanged: - RoomSidChanged = other.RoomSidChanged.Clone(); - break; - case MessageOneofCase.ParticipantMetadataChanged: - ParticipantMetadataChanged = other.ParticipantMetadataChanged.Clone(); - break; - case MessageOneofCase.ParticipantNameChanged: - ParticipantNameChanged = other.ParticipantNameChanged.Clone(); - break; - case MessageOneofCase.ParticipantAttributesChanged: - ParticipantAttributesChanged = other.ParticipantAttributesChanged.Clone(); - break; - case MessageOneofCase.ConnectionQualityChanged: - ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); - break; - case MessageOneofCase.ConnectionStateChanged: - ConnectionStateChanged = other.ConnectionStateChanged.Clone(); - break; - case MessageOneofCase.Disconnected: - Disconnected = other.Disconnected.Clone(); - break; - case MessageOneofCase.Reconnecting: - Reconnecting = other.Reconnecting.Clone(); - break; - case MessageOneofCase.Reconnected: - Reconnected = other.Reconnected.Clone(); - break; - case MessageOneofCase.E2EeStateChanged: - E2EeStateChanged = other.E2EeStateChanged.Clone(); - break; - case MessageOneofCase.Eos: - Eos = other.Eos.Clone(); - break; - case MessageOneofCase.DataPacketReceived: - DataPacketReceived = other.DataPacketReceived.Clone(); - break; - case MessageOneofCase.TranscriptionReceived: - TranscriptionReceived = other.TranscriptionReceived.Clone(); - break; - } - + 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 RoomEvent Clone() { - return new RoomEvent(this); + public IceServer Clone() { + return new IceServer(this); } - /// Field number for the "room_handle" field. - public const int RoomHandleFieldNumber = 1; - private ulong roomHandle_; + /// 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 ulong RoomHandle { - get { return roomHandle_; } - set { - roomHandle_ = value; - } + public pbc::RepeatedField Urls { + get { return urls_; } } - /// Field number for the "participant_connected" field. - public const int ParticipantConnectedFieldNumber = 2; + /// Field number for the "username" field. + public const int UsernameFieldNumber = 2; + private readonly static string UsernameDefaultValue = ""; + + private string username_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantConnected ParticipantConnected { - get { return messageCase_ == MessageOneofCase.ParticipantConnected ? (global::LiveKit.Proto.ParticipantConnected) message_ : null; } + public string Username { + get { return username_ ?? UsernameDefaultValue; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantConnected; + username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "participant_disconnected" field. - public const int ParticipantDisconnectedFieldNumber = 3; + /// Gets whether the "username" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantDisconnected ParticipantDisconnected { - get { return messageCase_ == MessageOneofCase.ParticipantDisconnected ? (global::LiveKit.Proto.ParticipantDisconnected) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantDisconnected; - } + public bool HasUsername { + get { return username_ != null; } } - - /// Field number for the "local_track_published" field. - public const int LocalTrackPublishedFieldNumber = 4; + /// Clears the value of the "username" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.LocalTrackPublished LocalTrackPublished { - get { return messageCase_ == MessageOneofCase.LocalTrackPublished ? (global::LiveKit.Proto.LocalTrackPublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackPublished; - } + public void ClearUsername() { + username_ = null; } - /// Field number for the "local_track_unpublished" field. - public const int LocalTrackUnpublishedFieldNumber = 5; + /// Field number for the "password" field. + public const int PasswordFieldNumber = 3; + private readonly static string PasswordDefaultValue = ""; + + private string password_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.LocalTrackUnpublished LocalTrackUnpublished { - get { return messageCase_ == MessageOneofCase.LocalTrackUnpublished ? (global::LiveKit.Proto.LocalTrackUnpublished) message_ : null; } + public string Password { + get { return password_ ?? PasswordDefaultValue; } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackUnpublished; + password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "local_track_subscribed" field. - public const int LocalTrackSubscribedFieldNumber = 6; + /// Gets whether the "password" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.LocalTrackSubscribed LocalTrackSubscribed { - get { return messageCase_ == MessageOneofCase.LocalTrackSubscribed ? (global::LiveKit.Proto.LocalTrackSubscribed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackSubscribed; - } + public bool HasPassword { + get { return password_ != null; } + } + /// Clears the value of the "password" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPassword() { + password_ = null; } - /// Field number for the "track_published" field. - public const int TrackPublishedFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackPublished TrackPublished { - get { return messageCase_ == MessageOneofCase.TrackPublished ? (global::LiveKit.Proto.TrackPublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackPublished; - } + public override bool Equals(object other) { + return Equals(other as IceServer); } - /// Field number for the "track_unpublished" field. - public const int TrackUnpublishedFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnpublished TrackUnpublished { - get { return messageCase_ == MessageOneofCase.TrackUnpublished ? (global::LiveKit.Proto.TrackUnpublished) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnpublished; + 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); } - /// Field number for the "track_subscribed" field. - public const int TrackSubscribedFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSubscribed TrackSubscribed { - get { return messageCase_ == MessageOneofCase.TrackSubscribed ? (global::LiveKit.Proto.TrackSubscribed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscribed; + public override int GetHashCode() { + int hash = 1; + hash ^= urls_.GetHashCode(); + if (HasUsername) hash ^= Username.GetHashCode(); + if (HasPassword) hash ^= Password.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } + return hash; } - /// Field number for the "track_unsubscribed" field. - public const int TrackUnsubscribedFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnsubscribed TrackUnsubscribed { - get { return messageCase_ == MessageOneofCase.TrackUnsubscribed ? (global::LiveKit.Proto.TrackUnsubscribed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnsubscribed; - } + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); } - /// Field number for the "track_subscription_failed" field. - public const int TrackSubscriptionFailedFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackSubscriptionFailed TrackSubscriptionFailed { - get { return messageCase_ == MessageOneofCase.TrackSubscriptionFailed ? (global::LiveKit.Proto.TrackSubscriptionFailed) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscriptionFailed; + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + urls_.WriteTo(output, _repeated_urls_codec); + if (HasUsername) { + output.WriteRawTag(18); + output.WriteString(Username); + } + if (HasPassword) { + output.WriteRawTag(26); + output.WriteString(Password); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } + #endif } - /// Field number for the "track_muted" field. - public const int TrackMutedFieldNumber = 12; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [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; + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + urls_.WriteTo(ref output, _repeated_urls_codec); + if (HasUsername) { + output.WriteRawTag(18); + output.WriteString(Username); + } + if (HasPassword) { + output.WriteRawTag(26); + output.WriteString(Password); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } } + #endif - /// Field number for the "track_unmuted" field. - public const int TrackUnmutedFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TrackUnmuted TrackUnmuted { - get { return messageCase_ == MessageOneofCase.TrackUnmuted ? (global::LiveKit.Proto.TrackUnmuted) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnmuted; + public int CalculateSize() { + int size = 0; + size += urls_.CalculateSize(_repeated_urls_codec); + if (HasUsername) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); + } + if (HasPassword) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } + return size; } - /// Field number for the "active_speakers_changed" field. - public const int ActiveSpeakersChangedFieldNumber = 14; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ActiveSpeakersChanged ActiveSpeakersChanged { - get { return messageCase_ == MessageOneofCase.ActiveSpeakersChanged ? (global::LiveKit.Proto.ActiveSpeakersChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ActiveSpeakersChanged; + public void MergeFrom(IceServer other) { + if (other == null) { + return; + } + urls_.Add(other.urls_); + if (other.HasUsername) { + Username = other.Username; + } + if (other.HasPassword) { + Password = other.Password; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// Field number for the "room_metadata_changed" field. - public const int RoomMetadataChangedFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomMetadataChanged RoomMetadataChanged { - get { return messageCase_ == MessageOneofCase.RoomMetadataChanged ? (global::LiveKit.Proto.RoomMetadataChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomMetadataChanged; + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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 } - /// Field number for the "room_sid_changed" field. - public const int RoomSidChangedFieldNumber = 16; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomSidChanged RoomSidChanged { - get { return messageCase_ == MessageOneofCase.RoomSidChanged ? (global::LiveKit.Proto.RoomSidChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomSidChanged; + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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 - /// Field number for the "participant_metadata_changed" field. - public const int ParticipantMetadataChangedFieldNumber = 17; + } + + [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 global::LiveKit.Proto.ParticipantMetadataChanged ParticipantMetadataChanged { - get { return messageCase_ == MessageOneofCase.ParticipantMetadataChanged ? (global::LiveKit.Proto.ParticipantMetadataChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantMetadataChanged; - } - } + public static pb::MessageParser Parser { get { return _parser; } } - /// Field number for the "participant_name_changed" field. - public const int ParticipantNameChangedFieldNumber = 18; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantNameChanged ParticipantNameChanged { - get { return messageCase_ == MessageOneofCase.ParticipantNameChanged ? (global::LiveKit.Proto.ParticipantNameChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantNameChanged; - } + public static pbr::MessageDescriptor Descriptor { + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[44]; } } - /// Field number for the "participant_attributes_changed" field. - public const int ParticipantAttributesChangedFieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ParticipantAttributesChanged ParticipantAttributesChanged { - get { return messageCase_ == MessageOneofCase.ParticipantAttributesChanged ? (global::LiveKit.Proto.ParticipantAttributesChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantAttributesChanged; - } + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } } - /// Field number for the "connection_quality_changed" field. - public const int ConnectionQualityChangedFieldNumber = 20; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ConnectionQualityChanged ConnectionQualityChanged { - get { return messageCase_ == MessageOneofCase.ConnectionQualityChanged ? (global::LiveKit.Proto.ConnectionQualityChanged) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionQualityChanged; - } + public RtcConfig() { + OnConstruction(); } - /// Field number for the "connection_state_changed" field. - public const int ConnectionStateChangedFieldNumber = 21; + partial void OnConstruction(); + [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 RtcConfig(RtcConfig other) : this() { + _hasBits0 = other._hasBits0; + iceTransportType_ = other.iceTransportType_; + continualGatheringPolicy_ = other.continualGatheringPolicy_; + iceServers_ = other.iceServers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - /// Field number for the "disconnected" field. - public const int DisconnectedFieldNumber = 22; - /// - /// Connected connected = 21; - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Disconnected Disconnected { - get { return messageCase_ == MessageOneofCase.Disconnected ? (global::LiveKit.Proto.Disconnected) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Disconnected; - } + public RtcConfig Clone() { + return new RtcConfig(this); } - /// Field number for the "reconnecting" field. - public const int ReconnectingFieldNumber = 23; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Reconnecting Reconnecting { - get { return messageCase_ == MessageOneofCase.Reconnecting ? (global::LiveKit.Proto.Reconnecting) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnecting; - } - } + /// Field number for the "ice_transport_type" field. + public const int IceTransportTypeFieldNumber = 1; + private readonly static global::LiveKit.Proto.IceTransportType IceTransportTypeDefaultValue = global::LiveKit.Proto.IceTransportType.TransportRelay; - /// Field number for the "reconnected" field. - public const int ReconnectedFieldNumber = 24; + private global::LiveKit.Proto.IceTransportType iceTransportType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.Reconnected Reconnected { - get { return messageCase_ == MessageOneofCase.Reconnected ? (global::LiveKit.Proto.Reconnected) message_ : null; } + public global::LiveKit.Proto.IceTransportType IceTransportType { + get { if ((_hasBits0 & 1) != 0) { return iceTransportType_; } else { return IceTransportTypeDefaultValue; } } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnected; + _hasBits0 |= 1; + iceTransportType_ = value; } } - - /// Field number for the "e2ee_state_changed" field. - public const int E2EeStateChangedFieldNumber = 25; + /// Gets whether the "ice_transport_type" field is set [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; - } + public bool HasIceTransportType { + get { return (_hasBits0 & 1) != 0; } } - - /// Field number for the "eos" field. - public const int EosFieldNumber = 26; - /// - /// The stream of room events has ended - /// + /// Clears the value of the "ice_transport_type" field [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; - } + public void ClearIceTransportType() { + _hasBits0 &= ~1; } - /// Field number for the "data_packet_received" field. - public const int DataPacketReceivedFieldNumber = 27; + /// 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.DataPacketReceived DataPacketReceived { - get { return messageCase_ == MessageOneofCase.DataPacketReceived ? (global::LiveKit.Proto.DataPacketReceived) message_ : null; } + public global::LiveKit.Proto.ContinualGatheringPolicy ContinualGatheringPolicy { + get { if ((_hasBits0 & 2) != 0) { return continualGatheringPolicy_; } else { return ContinualGatheringPolicyDefaultValue; } } set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataPacketReceived; + _hasBits0 |= 2; + continualGatheringPolicy_ = value; } } - - /// Field number for the "transcription_received" field. - public const int TranscriptionReceivedFieldNumber = 28; + /// Gets whether the "continual_gathering_policy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.TranscriptionReceived TranscriptionReceived { - get { return messageCase_ == MessageOneofCase.TranscriptionReceived ? (global::LiveKit.Proto.TranscriptionReceived) message_ : null; } - set { - message_ = value; - messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TranscriptionReceived; - } - } - - private object message_; - /// Enum of possible cases for the "message" oneof. - public enum MessageOneofCase { - None = 0, - ParticipantConnected = 2, - ParticipantDisconnected = 3, - LocalTrackPublished = 4, - LocalTrackUnpublished = 5, - LocalTrackSubscribed = 6, - TrackPublished = 7, - TrackUnpublished = 8, - TrackSubscribed = 9, - TrackUnsubscribed = 10, - TrackSubscriptionFailed = 11, - TrackMuted = 12, - TrackUnmuted = 13, - ActiveSpeakersChanged = 14, - RoomMetadataChanged = 15, - RoomSidChanged = 16, - ParticipantMetadataChanged = 17, - ParticipantNameChanged = 18, - ParticipantAttributesChanged = 19, - ConnectionQualityChanged = 20, - ConnectionStateChanged = 21, - Disconnected = 22, - Reconnecting = 23, - Reconnected = 24, - E2EeStateChanged = 25, - Eos = 26, - DataPacketReceived = 27, - TranscriptionReceived = 28, + public bool HasContinualGatheringPolicy { + get { return (_hasBits0 & 2) != 0; } } - private MessageOneofCase messageCase_ = MessageOneofCase.None; + /// Clears the value of the "continual_gathering_policy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageOneofCase MessageCase { - get { return messageCase_; } + 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 void ClearMessage() { - messageCase_ = MessageOneofCase.None; - message_ = 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 RoomEvent); + return Equals(other as RtcConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomEvent other) { + public bool Equals(RtcConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (RoomHandle != other.RoomHandle) return false; - if (!object.Equals(ParticipantConnected, other.ParticipantConnected)) return false; - if (!object.Equals(ParticipantDisconnected, other.ParticipantDisconnected)) return false; - if (!object.Equals(LocalTrackPublished, other.LocalTrackPublished)) return false; - if (!object.Equals(LocalTrackUnpublished, other.LocalTrackUnpublished)) return false; - if (!object.Equals(LocalTrackSubscribed, other.LocalTrackSubscribed)) return false; - if (!object.Equals(TrackPublished, other.TrackPublished)) return false; - if (!object.Equals(TrackUnpublished, other.TrackUnpublished)) return false; - if (!object.Equals(TrackSubscribed, other.TrackSubscribed)) return false; - if (!object.Equals(TrackUnsubscribed, other.TrackUnsubscribed)) return false; - if (!object.Equals(TrackSubscriptionFailed, other.TrackSubscriptionFailed)) return false; - if (!object.Equals(TrackMuted, other.TrackMuted)) return false; - if (!object.Equals(TrackUnmuted, other.TrackUnmuted)) return false; - if (!object.Equals(ActiveSpeakersChanged, other.ActiveSpeakersChanged)) return false; - if (!object.Equals(RoomMetadataChanged, other.RoomMetadataChanged)) return false; - if (!object.Equals(RoomSidChanged, other.RoomSidChanged)) return false; - if (!object.Equals(ParticipantMetadataChanged, other.ParticipantMetadataChanged)) return false; - if (!object.Equals(ParticipantNameChanged, other.ParticipantNameChanged)) return false; - if (!object.Equals(ParticipantAttributesChanged, other.ParticipantAttributesChanged)) return false; - if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; - if (!object.Equals(ConnectionStateChanged, other.ConnectionStateChanged)) return false; - if (!object.Equals(Disconnected, other.Disconnected)) return false; - if (!object.Equals(Reconnecting, other.Reconnecting)) return false; - if (!object.Equals(Reconnected, other.Reconnected)) return false; - if (!object.Equals(E2EeStateChanged, other.E2EeStateChanged)) return false; - if (!object.Equals(Eos, other.Eos)) return false; - if (!object.Equals(DataPacketReceived, other.DataPacketReceived)) return false; - if (!object.Equals(TranscriptionReceived, other.TranscriptionReceived)) return false; - if (MessageCase != other.MessageCase) return false; + if (IceTransportType != other.IceTransportType) return false; + if (ContinualGatheringPolicy != other.ContinualGatheringPolicy) return false; + if(!iceServers_.Equals(other.iceServers_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12036,35 +13454,9 @@ public bool Equals(RoomEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (RoomHandle != 0UL) hash ^= RoomHandle.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) hash ^= ParticipantConnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) hash ^= ParticipantDisconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) hash ^= LocalTrackPublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) hash ^= LocalTrackUnpublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) hash ^= LocalTrackSubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackPublished) hash ^= TrackPublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) hash ^= TrackUnpublished.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) hash ^= TrackSubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) hash ^= TrackUnsubscribed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) hash ^= TrackSubscriptionFailed.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackMuted) hash ^= TrackMuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) hash ^= TrackUnmuted.GetHashCode(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) hash ^= ActiveSpeakersChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) hash ^= RoomMetadataChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) hash ^= RoomSidChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) hash ^= ParticipantMetadataChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) hash ^= ParticipantNameChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) hash ^= ParticipantAttributesChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) hash ^= ConnectionStateChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.Disconnected) hash ^= Disconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnecting) hash ^= Reconnecting.GetHashCode(); - if (messageCase_ == MessageOneofCase.Reconnected) hash ^= Reconnected.GetHashCode(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) hash ^= E2EeStateChanged.GetHashCode(); - if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) hash ^= DataPacketReceived.GetHashCode(); - if (messageCase_ == MessageOneofCase.TranscriptionReceived) hash ^= TranscriptionReceived.GetHashCode(); - hash ^= (int) messageCase_; + if (HasIceTransportType) hash ^= IceTransportType.GetHashCode(); + if (HasContinualGatheringPolicy) hash ^= ContinualGatheringPolicy.GetHashCode(); + hash ^= iceServers_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12083,120 +13475,102 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (RoomHandle != 0UL) { + if (HasIceTransportType) { output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); + output.WriteEnum((int) IceTransportType); } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); + if (HasContinualGatheringPolicy) { + output.WriteRawTag(16); + output.WriteEnum((int) ContinualGatheringPolicy); } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); + iceServers_.WriteTo(output, _repeated_iceServers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - output.WriteRawTag(34); - output.WriteMessage(LocalTrackPublished); + #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 (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - output.WriteRawTag(42); - output.WriteMessage(LocalTrackUnpublished); + if (HasContinualGatheringPolicy) { + output.WriteRawTag(16); + output.WriteEnum((int) ContinualGatheringPolicy); } - if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { - output.WriteRawTag(50); - output.WriteMessage(LocalTrackSubscribed); + iceServers_.WriteTo(ref output, _repeated_iceServers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(58); - output.WriteMessage(TrackPublished); + } + #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 (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(66); - output.WriteMessage(TrackUnpublished); + if (HasContinualGatheringPolicy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ContinualGatheringPolicy); } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(74); - output.WriteMessage(TrackSubscribed); + size += iceServers_.CalculateSize(_repeated_iceServers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(82); - output.WriteMessage(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - output.WriteRawTag(90); - output.WriteMessage(TrackSubscriptionFailed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(98); - output.WriteMessage(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(106); - output.WriteMessage(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - output.WriteRawTag(114); - output.WriteMessage(ActiveSpeakersChanged); - } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - output.WriteRawTag(122); - output.WriteMessage(RoomMetadataChanged); - } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - output.WriteRawTag(130, 1); - output.WriteMessage(RoomSidChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - output.WriteRawTag(138, 1); - output.WriteMessage(ParticipantMetadataChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - output.WriteRawTag(146, 1); - output.WriteMessage(ParticipantNameChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { - output.WriteRawTag(154, 1); - output.WriteMessage(ParticipantAttributesChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(162, 1); - output.WriteMessage(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(170, 1); - output.WriteMessage(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(178, 1); - output.WriteMessage(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(186, 1); - output.WriteMessage(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(194, 1); - output.WriteMessage(Reconnected); - } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - output.WriteRawTag(202, 1); - output.WriteMessage(E2EeStateChanged); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RtcConfig other) { + if (other == null) { + return; } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(210, 1); - output.WriteMessage(Eos); + if (other.HasIceTransportType) { + IceTransportType = other.IceTransportType; } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - output.WriteRawTag(218, 1); - output.WriteMessage(DataPacketReceived); + if (other.HasContinualGatheringPolicy) { + ContinualGatheringPolicy = other.ContinualGatheringPolicy; } - if (messageCase_ == MessageOneofCase.TranscriptionReceived) { - output.WriteRawTag(226, 1); - output.WriteMessage(TranscriptionReceived); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); + 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 } @@ -12204,212 +13578,360 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RoomHandle != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(RoomHandle); - } - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - output.WriteRawTag(18); - output.WriteMessage(ParticipantConnected); - } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - output.WriteRawTag(26); - output.WriteMessage(ParticipantDisconnected); - } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - output.WriteRawTag(34); - output.WriteMessage(LocalTrackPublished); - } - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - output.WriteRawTag(42); - output.WriteMessage(LocalTrackUnpublished); - } - if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { - output.WriteRawTag(50); - output.WriteMessage(LocalTrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackPublished) { - output.WriteRawTag(58); - output.WriteMessage(TrackPublished); - } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - output.WriteRawTag(66); - output.WriteMessage(TrackUnpublished); - } - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - output.WriteRawTag(74); - output.WriteMessage(TrackSubscribed); - } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - output.WriteRawTag(82); - output.WriteMessage(TrackUnsubscribed); - } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - output.WriteRawTag(90); - output.WriteMessage(TrackSubscriptionFailed); - } - if (messageCase_ == MessageOneofCase.TrackMuted) { - output.WriteRawTag(98); - output.WriteMessage(TrackMuted); - } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - output.WriteRawTag(106); - output.WriteMessage(TrackUnmuted); - } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - output.WriteRawTag(114); - output.WriteMessage(ActiveSpeakersChanged); - } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - output.WriteRawTag(122); - output.WriteMessage(RoomMetadataChanged); - } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - output.WriteRawTag(130, 1); - output.WriteMessage(RoomSidChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - output.WriteRawTag(138, 1); - output.WriteMessage(ParticipantMetadataChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - output.WriteRawTag(146, 1); - output.WriteMessage(ParticipantNameChanged); - } - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { - output.WriteRawTag(154, 1); - output.WriteMessage(ParticipantAttributesChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - output.WriteRawTag(162, 1); - output.WriteMessage(ConnectionQualityChanged); - } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - output.WriteRawTag(170, 1); - output.WriteMessage(ConnectionStateChanged); - } - if (messageCase_ == MessageOneofCase.Disconnected) { - output.WriteRawTag(178, 1); - output.WriteMessage(Disconnected); - } - if (messageCase_ == MessageOneofCase.Reconnecting) { - output.WriteRawTag(186, 1); - output.WriteMessage(Reconnecting); - } - if (messageCase_ == MessageOneofCase.Reconnected) { - output.WriteRawTag(194, 1); - output.WriteMessage(Reconnected); - } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - output.WriteRawTag(202, 1); - output.WriteMessage(E2EeStateChanged); - } - if (messageCase_ == MessageOneofCase.Eos) { - output.WriteRawTag(210, 1); - output.WriteMessage(Eos); - } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - output.WriteRawTag(218, 1); - output.WriteMessage(DataPacketReceived); - } - if (messageCase_ == MessageOneofCase.TranscriptionReceived) { - output.WriteRawTag(226, 1); - output.WriteMessage(TranscriptionReceived); + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); + 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.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); + } + + [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; + 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[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomOptions() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomOptions(RoomOptions other) : this() { + _hasBits0 = other._hasBits0; + 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 readonly static bool AutoSubscribeDefaultValue = false; + + private bool autoSubscribe_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AutoSubscribe { + get { if ((_hasBits0 & 1) != 0) { return autoSubscribe_; } else { return AutoSubscribeDefaultValue; } } + set { + _hasBits0 |= 1; + autoSubscribe_ = value; } - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantDisconnected); + } + /// Gets whether the "auto_subscribe" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAutoSubscribe { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "auto_subscribe" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutoSubscribe() { + _hasBits0 &= ~1; + } + + /// Field number for the "adaptive_stream" field. + public const int AdaptiveStreamFieldNumber = 2; + private readonly static bool AdaptiveStreamDefaultValue = false; + + private bool adaptiveStream_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AdaptiveStream { + get { if ((_hasBits0 & 2) != 0) { return adaptiveStream_; } else { return AdaptiveStreamDefaultValue; } } + set { + _hasBits0 |= 2; + adaptiveStream_ = value; } - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackPublished); + } + /// Gets whether the "adaptive_stream" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAdaptiveStream { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "adaptive_stream" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAdaptiveStream() { + _hasBits0 &= ~2; + } + + /// Field number for the "dynacast" field. + public const int DynacastFieldNumber = 3; + private readonly static bool DynacastDefaultValue = false; + + private bool dynacast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Dynacast { + get { if ((_hasBits0 & 4) != 0) { return dynacast_; } else { return DynacastDefaultValue; } } + set { + _hasBits0 |= 4; + dynacast_ = value; } - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackUnpublished); + } + /// Gets whether the "dynacast" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDynacast { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "dynacast" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDynacast() { + _hasBits0 &= ~4; + } + + /// 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; } - if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackSubscribed); + } + + /// Field number for the "rtc_config" field. + public const int RtcConfigFieldNumber = 5; + private global::LiveKit.Proto.RtcConfig rtcConfig_; + /// + /// allow to setup a custom RtcConfiguration + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RtcConfig RtcConfig { + get { return rtcConfig_; } + set { + rtcConfig_ = value; } - if (messageCase_ == MessageOneofCase.TrackPublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackPublished); + } + + /// Field number for the "join_retries" field. + public const int JoinRetriesFieldNumber = 6; + private readonly static uint JoinRetriesDefaultValue = 0; + + private uint joinRetries_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint JoinRetries { + get { if ((_hasBits0 & 8) != 0) { return joinRetries_; } else { return JoinRetriesDefaultValue; } } + set { + _hasBits0 |= 8; + joinRetries_ = value; } - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnpublished); + } + /// Gets whether the "join_retries" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJoinRetries { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "join_retries" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJoinRetries() { + _hasBits0 &= ~8; + } + + [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 (messageCase_ == MessageOneofCase.TrackSubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscribed); + if (ReferenceEquals(other, this)) { + return true; } - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnsubscribed); + 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 (HasAutoSubscribe) hash ^= AutoSubscribe.GetHashCode(); + if (HasAdaptiveStream) hash ^= AdaptiveStream.GetHashCode(); + if (HasDynacast) hash ^= Dynacast.GetHashCode(); + if (e2Ee_ != null) hash ^= E2Ee.GetHashCode(); + if (rtcConfig_ != null) hash ^= RtcConfig.GetHashCode(); + if (HasJoinRetries) hash ^= JoinRetries.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscriptionFailed); + 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 (HasAutoSubscribe) { + output.WriteRawTag(8); + output.WriteBool(AutoSubscribe); } - if (messageCase_ == MessageOneofCase.TrackMuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackMuted); + if (HasAdaptiveStream) { + output.WriteRawTag(16); + output.WriteBool(AdaptiveStream); } - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnmuted); + if (HasDynacast) { + output.WriteRawTag(24); + output.WriteBool(Dynacast); } - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveSpeakersChanged); + if (e2Ee_ != null) { + output.WriteRawTag(34); + output.WriteMessage(E2Ee); } - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMetadataChanged); + if (rtcConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RtcConfig); } - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RoomSidChanged); + if (HasJoinRetries) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); } - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantMetadataChanged); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantNameChanged); + #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 (HasAutoSubscribe) { + output.WriteRawTag(8); + output.WriteBool(AutoSubscribe); } - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantAttributesChanged); + if (HasAdaptiveStream) { + output.WriteRawTag(16); + output.WriteBool(AdaptiveStream); } - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionQualityChanged); + if (HasDynacast) { + output.WriteRawTag(24); + output.WriteBool(Dynacast); } - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionStateChanged); + if (e2Ee_ != null) { + output.WriteRawTag(34); + output.WriteMessage(E2Ee); } - if (messageCase_ == MessageOneofCase.Disconnected) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Disconnected); + if (rtcConfig_ != null) { + output.WriteRawTag(42); + output.WriteMessage(RtcConfig); } - if (messageCase_ == MessageOneofCase.Reconnecting) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnecting); + if (HasJoinRetries) { + output.WriteRawTag(48); + output.WriteUInt32(JoinRetries); } - if (messageCase_ == MessageOneofCase.Reconnected) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnected); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2EeStateChanged); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasAutoSubscribe) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.Eos) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Eos); + if (HasAdaptiveStream) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataPacketReceived); + if (HasDynacast) { + size += 1 + 1; } - if (messageCase_ == MessageOneofCase.TranscriptionReceived) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TranscriptionReceived); + if (e2Ee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(E2Ee); + } + if (rtcConfig_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RtcConfig); + } + if (HasJoinRetries) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinRetries); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12419,178 +13941,34 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomEvent other) { + public void MergeFrom(RoomOptions other) { if (other == null) { return; } - if (other.RoomHandle != 0UL) { - RoomHandle = other.RoomHandle; + if (other.HasAutoSubscribe) { + AutoSubscribe = other.AutoSubscribe; } - switch (other.MessageCase) { - case MessageOneofCase.ParticipantConnected: - if (ParticipantConnected == null) { - ParticipantConnected = new global::LiveKit.Proto.ParticipantConnected(); - } - ParticipantConnected.MergeFrom(other.ParticipantConnected); - break; - case MessageOneofCase.ParticipantDisconnected: - if (ParticipantDisconnected == null) { - ParticipantDisconnected = new global::LiveKit.Proto.ParticipantDisconnected(); - } - ParticipantDisconnected.MergeFrom(other.ParticipantDisconnected); - break; - case MessageOneofCase.LocalTrackPublished: - if (LocalTrackPublished == null) { - LocalTrackPublished = new global::LiveKit.Proto.LocalTrackPublished(); - } - LocalTrackPublished.MergeFrom(other.LocalTrackPublished); - break; - case MessageOneofCase.LocalTrackUnpublished: - if (LocalTrackUnpublished == null) { - LocalTrackUnpublished = new global::LiveKit.Proto.LocalTrackUnpublished(); - } - LocalTrackUnpublished.MergeFrom(other.LocalTrackUnpublished); - break; - case MessageOneofCase.LocalTrackSubscribed: - if (LocalTrackSubscribed == null) { - LocalTrackSubscribed = new global::LiveKit.Proto.LocalTrackSubscribed(); - } - LocalTrackSubscribed.MergeFrom(other.LocalTrackSubscribed); - break; - case MessageOneofCase.TrackPublished: - if (TrackPublished == null) { - TrackPublished = new global::LiveKit.Proto.TrackPublished(); - } - TrackPublished.MergeFrom(other.TrackPublished); - break; - case MessageOneofCase.TrackUnpublished: - if (TrackUnpublished == null) { - TrackUnpublished = new global::LiveKit.Proto.TrackUnpublished(); - } - TrackUnpublished.MergeFrom(other.TrackUnpublished); - break; - case MessageOneofCase.TrackSubscribed: - if (TrackSubscribed == null) { - TrackSubscribed = new global::LiveKit.Proto.TrackSubscribed(); - } - TrackSubscribed.MergeFrom(other.TrackSubscribed); - break; - case MessageOneofCase.TrackUnsubscribed: - if (TrackUnsubscribed == null) { - TrackUnsubscribed = new global::LiveKit.Proto.TrackUnsubscribed(); - } - TrackUnsubscribed.MergeFrom(other.TrackUnsubscribed); - break; - case MessageOneofCase.TrackSubscriptionFailed: - if (TrackSubscriptionFailed == null) { - TrackSubscriptionFailed = new global::LiveKit.Proto.TrackSubscriptionFailed(); - } - TrackSubscriptionFailed.MergeFrom(other.TrackSubscriptionFailed); - break; - case MessageOneofCase.TrackMuted: - if (TrackMuted == null) { - TrackMuted = new global::LiveKit.Proto.TrackMuted(); - } - TrackMuted.MergeFrom(other.TrackMuted); - break; - case MessageOneofCase.TrackUnmuted: - if (TrackUnmuted == null) { - TrackUnmuted = new global::LiveKit.Proto.TrackUnmuted(); - } - TrackUnmuted.MergeFrom(other.TrackUnmuted); - break; - case MessageOneofCase.ActiveSpeakersChanged: - if (ActiveSpeakersChanged == null) { - ActiveSpeakersChanged = new global::LiveKit.Proto.ActiveSpeakersChanged(); - } - ActiveSpeakersChanged.MergeFrom(other.ActiveSpeakersChanged); - break; - case MessageOneofCase.RoomMetadataChanged: - if (RoomMetadataChanged == null) { - RoomMetadataChanged = new global::LiveKit.Proto.RoomMetadataChanged(); - } - RoomMetadataChanged.MergeFrom(other.RoomMetadataChanged); - break; - case MessageOneofCase.RoomSidChanged: - if (RoomSidChanged == null) { - RoomSidChanged = new global::LiveKit.Proto.RoomSidChanged(); - } - RoomSidChanged.MergeFrom(other.RoomSidChanged); - break; - case MessageOneofCase.ParticipantMetadataChanged: - if (ParticipantMetadataChanged == null) { - ParticipantMetadataChanged = new global::LiveKit.Proto.ParticipantMetadataChanged(); - } - ParticipantMetadataChanged.MergeFrom(other.ParticipantMetadataChanged); - break; - case MessageOneofCase.ParticipantNameChanged: - if (ParticipantNameChanged == null) { - ParticipantNameChanged = new global::LiveKit.Proto.ParticipantNameChanged(); - } - ParticipantNameChanged.MergeFrom(other.ParticipantNameChanged); - break; - case MessageOneofCase.ParticipantAttributesChanged: - if (ParticipantAttributesChanged == null) { - ParticipantAttributesChanged = new global::LiveKit.Proto.ParticipantAttributesChanged(); - } - ParticipantAttributesChanged.MergeFrom(other.ParticipantAttributesChanged); - break; - case MessageOneofCase.ConnectionQualityChanged: - if (ConnectionQualityChanged == null) { - ConnectionQualityChanged = new global::LiveKit.Proto.ConnectionQualityChanged(); - } - ConnectionQualityChanged.MergeFrom(other.ConnectionQualityChanged); - break; - case MessageOneofCase.ConnectionStateChanged: - if (ConnectionStateChanged == null) { - ConnectionStateChanged = new global::LiveKit.Proto.ConnectionStateChanged(); - } - ConnectionStateChanged.MergeFrom(other.ConnectionStateChanged); - break; - case MessageOneofCase.Disconnected: - if (Disconnected == null) { - Disconnected = new global::LiveKit.Proto.Disconnected(); - } - Disconnected.MergeFrom(other.Disconnected); - break; - case MessageOneofCase.Reconnecting: - if (Reconnecting == null) { - Reconnecting = new global::LiveKit.Proto.Reconnecting(); - } - Reconnecting.MergeFrom(other.Reconnecting); - break; - case MessageOneofCase.Reconnected: - if (Reconnected == null) { - Reconnected = new global::LiveKit.Proto.Reconnected(); - } - Reconnected.MergeFrom(other.Reconnected); - break; - case MessageOneofCase.E2EeStateChanged: - if (E2EeStateChanged == null) { - E2EeStateChanged = new global::LiveKit.Proto.E2eeStateChanged(); - } - E2EeStateChanged.MergeFrom(other.E2EeStateChanged); - break; - case MessageOneofCase.Eos: - if (Eos == null) { - Eos = new global::LiveKit.Proto.RoomEOS(); - } - Eos.MergeFrom(other.Eos); - break; - case MessageOneofCase.DataPacketReceived: - if (DataPacketReceived == null) { - DataPacketReceived = new global::LiveKit.Proto.DataPacketReceived(); - } - DataPacketReceived.MergeFrom(other.DataPacketReceived); - break; - case MessageOneofCase.TranscriptionReceived: - if (TranscriptionReceived == null) { - TranscriptionReceived = new global::LiveKit.Proto.TranscriptionReceived(); - } - TranscriptionReceived.MergeFrom(other.TranscriptionReceived); - break; + if (other.HasAdaptiveStream) { + AdaptiveStream = other.AdaptiveStream; + } + if (other.HasDynacast) { + 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.HasJoinRetries) { + JoinRetries = other.JoinRetries; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12602,255 +13980,42 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AutoSubscribe = input.ReadBool(); break; } - case 18: { - global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - subBuilder.MergeFrom(ParticipantConnected); - } - input.ReadMessage(subBuilder); - ParticipantConnected = subBuilder; + case 16: { + AdaptiveStream = input.ReadBool(); break; } - case 26: { - global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - subBuilder.MergeFrom(ParticipantDisconnected); - } - input.ReadMessage(subBuilder); - ParticipantDisconnected = subBuilder; - break; + case 24: { + Dynacast = input.ReadBool(); + break; } case 34: { - global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - subBuilder.MergeFrom(LocalTrackPublished); + if (e2Ee_ == null) { + E2Ee = new global::LiveKit.Proto.E2eeOptions(); } - input.ReadMessage(subBuilder); - LocalTrackPublished = subBuilder; + input.ReadMessage(E2Ee); break; } case 42: { - global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); - if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { - subBuilder.MergeFrom(LocalTrackUnpublished); - } - input.ReadMessage(subBuilder); - LocalTrackUnpublished = subBuilder; - break; - } - case 50: { - global::LiveKit.Proto.LocalTrackSubscribed subBuilder = new global::LiveKit.Proto.LocalTrackSubscribed(); - if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { - subBuilder.MergeFrom(LocalTrackSubscribed); - } - input.ReadMessage(subBuilder); - LocalTrackSubscribed = subBuilder; - break; - } - case 58: { - global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); - if (messageCase_ == MessageOneofCase.TrackPublished) { - subBuilder.MergeFrom(TrackPublished); - } - input.ReadMessage(subBuilder); - TrackPublished = subBuilder; - break; - } - case 66: { - global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); - if (messageCase_ == MessageOneofCase.TrackUnpublished) { - subBuilder.MergeFrom(TrackUnpublished); - } - input.ReadMessage(subBuilder); - TrackUnpublished = subBuilder; - break; - } - case 74: { - global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); - if (messageCase_ == MessageOneofCase.TrackSubscribed) { - subBuilder.MergeFrom(TrackSubscribed); - } - input.ReadMessage(subBuilder); - TrackSubscribed = subBuilder; - break; - } - case 82: { - global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); - if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { - subBuilder.MergeFrom(TrackUnsubscribed); - } - input.ReadMessage(subBuilder); - TrackUnsubscribed = subBuilder; - break; - } - case 90: { - global::LiveKit.Proto.TrackSubscriptionFailed subBuilder = new global::LiveKit.Proto.TrackSubscriptionFailed(); - if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { - subBuilder.MergeFrom(TrackSubscriptionFailed); - } - input.ReadMessage(subBuilder); - TrackSubscriptionFailed = subBuilder; - break; - } - case 98: { - global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); - if (messageCase_ == MessageOneofCase.TrackMuted) { - subBuilder.MergeFrom(TrackMuted); - } - input.ReadMessage(subBuilder); - TrackMuted = subBuilder; - break; - } - case 106: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); - } - input.ReadMessage(subBuilder); - TrackUnmuted = subBuilder; - break; - } - case 114: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - subBuilder.MergeFrom(ActiveSpeakersChanged); - } - input.ReadMessage(subBuilder); - ActiveSpeakersChanged = subBuilder; - break; - } - case 122: { - global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - subBuilder.MergeFrom(RoomMetadataChanged); - } - input.ReadMessage(subBuilder); - RoomMetadataChanged = subBuilder; - break; - } - case 130: { - global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - subBuilder.MergeFrom(RoomSidChanged); - } - input.ReadMessage(subBuilder); - RoomSidChanged = subBuilder; - break; - } - case 138: { - global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - subBuilder.MergeFrom(ParticipantMetadataChanged); - } - input.ReadMessage(subBuilder); - ParticipantMetadataChanged = subBuilder; - break; - } - case 146: { - global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - subBuilder.MergeFrom(ParticipantNameChanged); - } - input.ReadMessage(subBuilder); - ParticipantNameChanged = subBuilder; - break; - } - case 154: { - global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { - subBuilder.MergeFrom(ParticipantAttributesChanged); - } - input.ReadMessage(subBuilder); - ParticipantAttributesChanged = subBuilder; - break; - } - case 162: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); - } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; - break; - } - case 170: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); - } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; - break; - } - case 178: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); - } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; - break; - } - case 186: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); - } - input.ReadMessage(subBuilder); - Reconnecting = subBuilder; - break; - } - case 194: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); - } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; - break; - } - case 202: { - global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - subBuilder.MergeFrom(E2EeStateChanged); - } - input.ReadMessage(subBuilder); - E2EeStateChanged = subBuilder; - break; - } - case 210: { - global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); - if (messageCase_ == MessageOneofCase.Eos) { - subBuilder.MergeFrom(Eos); - } - input.ReadMessage(subBuilder); - Eos = subBuilder; - break; - } - case 218: { - global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - subBuilder.MergeFrom(DataPacketReceived); + if (rtcConfig_ == null) { + RtcConfig = new global::LiveKit.Proto.RtcConfig(); } - input.ReadMessage(subBuilder); - DataPacketReceived = subBuilder; + input.ReadMessage(RtcConfig); break; } - case 226: { - global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); - if (messageCase_ == MessageOneofCase.TranscriptionReceived) { - subBuilder.MergeFrom(TranscriptionReceived); - } - input.ReadMessage(subBuilder); - TranscriptionReceived = subBuilder; + case 48: { + JoinRetries = input.ReadUInt32(); break; } } @@ -12864,39 +14029,2541 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - RoomHandle = input.ReadUInt64(); + AutoSubscribe = input.ReadBool(); break; } - case 18: { - global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); - if (messageCase_ == MessageOneofCase.ParticipantConnected) { - subBuilder.MergeFrom(ParticipantConnected); - } - input.ReadMessage(subBuilder); - ParticipantConnected = subBuilder; + case 16: { + AdaptiveStream = input.ReadBool(); break; } - case 26: { - global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); - if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { - subBuilder.MergeFrom(ParticipantDisconnected); - } - input.ReadMessage(subBuilder); - ParticipantDisconnected = subBuilder; + case 24: { + Dynacast = input.ReadBool(); break; } case 34: { - global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); - if (messageCase_ == MessageOneofCase.LocalTrackPublished) { - subBuilder.MergeFrom(LocalTrackPublished); + if (e2Ee_ == null) { + E2Ee = new global::LiveKit.Proto.E2eeOptions(); } - input.ReadMessage(subBuilder); - LocalTrackPublished = subBuilder; + input.ReadMessage(E2Ee); + break; + } + case 42: { + 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 TranscriptionSegment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranscriptionSegment()); + private pb::UnknownFieldSet _unknownFields; + 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[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment(TranscriptionSegment other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + text_ = other.text_; + startTime_ = other.startTime_; + endTime_ = other.endTime_; + final_ = other.final_; + language_ = other.language_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TranscriptionSegment Clone() { + return new TranscriptionSegment(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static string IdDefaultValue = ""; + + private string id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_ ?? IdDefaultValue; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + id_ = null; + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 2; + private readonly static string TextDefaultValue = ""; + + private string text_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_ ?? TextDefaultValue; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "text" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasText { + get { return text_ != null; } + } + /// Clears the value of the "text" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearText() { + text_ = null; + } + + /// Field number for the "start_time" field. + public const int StartTimeFieldNumber = 3; + private readonly static ulong StartTimeDefaultValue = 0UL; + + private ulong startTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong StartTime { + get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } } + set { + _hasBits0 |= 1; + startTime_ = value; + } + } + /// Gets whether the "start_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStartTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "start_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStartTime() { + _hasBits0 &= ~1; + } + + /// Field number for the "end_time" field. + public const int EndTimeFieldNumber = 4; + private readonly static ulong EndTimeDefaultValue = 0UL; + + private ulong endTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong EndTime { + get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } } + set { + _hasBits0 |= 2; + endTime_ = value; + } + } + /// Gets whether the "end_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEndTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "end_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEndTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "final" field. + public const int FinalFieldNumber = 5; + private readonly static bool FinalDefaultValue = false; + + private bool final_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Final { + get { if ((_hasBits0 & 4) != 0) { return final_; } else { return FinalDefaultValue; } } + set { + _hasBits0 |= 4; + final_ = value; + } + } + /// Gets whether the "final" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFinal { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "final" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFinal() { + _hasBits0 &= ~4; + } + + /// Field number for the "language" field. + public const int LanguageFieldNumber = 6; + private readonly static string LanguageDefaultValue = ""; + + private string language_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Language { + get { return language_ ?? LanguageDefaultValue; } + set { + language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "language" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLanguage { + get { return language_ != null; } + } + /// Clears the value of the "language" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLanguage() { + language_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TranscriptionSegment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TranscriptionSegment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Text != other.Text) return false; + if (StartTime != other.StartTime) return false; + if (EndTime != other.EndTime) return false; + if (Final != other.Final) return false; + if (Language != other.Language) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasText) hash ^= Text.GetHashCode(); + if (HasStartTime) hash ^= StartTime.GetHashCode(); + if (HasEndTime) hash ^= EndTime.GetHashCode(); + if (HasFinal) hash ^= Final.GetHashCode(); + if (HasLanguage) hash ^= Language.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (HasStartTime) { + output.WriteRawTag(24); + output.WriteUInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(32); + output.WriteUInt64(EndTime); + } + if (HasFinal) { + output.WriteRawTag(40); + output.WriteBool(Final); + } + if (HasLanguage) { + output.WriteRawTag(50); + output.WriteString(Language); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (HasText) { + output.WriteRawTag(18); + output.WriteString(Text); + } + if (HasStartTime) { + output.WriteRawTag(24); + output.WriteUInt64(StartTime); + } + if (HasEndTime) { + output.WriteRawTag(32); + output.WriteUInt64(EndTime); + } + if (HasFinal) { + output.WriteRawTag(40); + output.WriteBool(Final); + } + if (HasLanguage) { + output.WriteRawTag(50); + output.WriteString(Language); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (HasText) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (HasStartTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTime); + } + if (HasEndTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(EndTime); + } + if (HasFinal) { + size += 1 + 1; + } + if (HasLanguage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TranscriptionSegment other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasText) { + Text = other.Text; + } + if (other.HasStartTime) { + StartTime = other.StartTime; + } + if (other.HasEndTime) { + EndTime = other.EndTime; + } + if (other.HasFinal) { + Final = other.Final; + } + if (other.HasLanguage) { + Language = other.Language; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + case 24: { + StartTime = input.ReadUInt64(); + break; + } + case 32: { + EndTime = input.ReadUInt64(); + break; + } + case 40: { + Final = input.ReadBool(); + break; + } + case 50: { + Language = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Id = input.ReadString(); + break; + } + case 18: { + Text = input.ReadString(); + break; + } + case 24: { + StartTime = input.ReadUInt64(); + break; + } + case 32: { + EndTime = input.ReadUInt64(); + break; + } + case 40: { + Final = input.ReadBool(); + break; + } + case 50: { + Language = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class BufferInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BufferInfo()); + private pb::UnknownFieldSet _unknownFields; + 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[47]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BufferInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BufferInfo(BufferInfo other) : this() { + _hasBits0 = other._hasBits0; + 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 readonly static ulong DataPtrDefaultValue = 0UL; + + private ulong dataPtr_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataPtr { + get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } + set { + _hasBits0 |= 1; + dataPtr_ = value; + } + } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~1; + } + + /// Field number for the "data_len" field. + public const int DataLenFieldNumber = 2; + private readonly static ulong DataLenDefaultValue = 0UL; + + private ulong dataLen_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong DataLen { + get { if ((_hasBits0 & 2) != 0) { return dataLen_; } else { return DataLenDefaultValue; } } + set { + _hasBits0 |= 2; + dataLen_ = value; + } + } + /// Gets whether the "data_len" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataLen { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "data_len" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataLen() { + _hasBits0 &= ~2; + } + + [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 (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasDataLen) 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 (HasDataPtr) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (HasDataLen) { + 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 (HasDataPtr) { + output.WriteRawTag(8); + output.WriteUInt64(DataPtr); + } + if (HasDataLen) { + 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 (HasDataPtr) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); + } + if (HasDataLen) { + 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.HasDataPtr) { + DataPtr = other.DataPtr; + } + if (other.HasDataLen) { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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[48]; } + } + + [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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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; + 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[49]; } + } + + [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() { + _hasBits0 = other._hasBits0; + roomHandle_ = other.roomHandle_; + switch (other.MessageCase) { + case MessageOneofCase.ParticipantConnected: + ParticipantConnected = other.ParticipantConnected.Clone(); + break; + case MessageOneofCase.ParticipantDisconnected: + ParticipantDisconnected = other.ParticipantDisconnected.Clone(); + break; + case MessageOneofCase.LocalTrackPublished: + LocalTrackPublished = other.LocalTrackPublished.Clone(); + break; + case MessageOneofCase.LocalTrackUnpublished: + LocalTrackUnpublished = other.LocalTrackUnpublished.Clone(); + break; + case MessageOneofCase.LocalTrackSubscribed: + LocalTrackSubscribed = other.LocalTrackSubscribed.Clone(); + break; + case MessageOneofCase.TrackPublished: + TrackPublished = other.TrackPublished.Clone(); + break; + case MessageOneofCase.TrackUnpublished: + TrackUnpublished = other.TrackUnpublished.Clone(); + break; + case MessageOneofCase.TrackSubscribed: + TrackSubscribed = other.TrackSubscribed.Clone(); + break; + case MessageOneofCase.TrackUnsubscribed: + TrackUnsubscribed = other.TrackUnsubscribed.Clone(); + break; + case MessageOneofCase.TrackSubscriptionFailed: + TrackSubscriptionFailed = other.TrackSubscriptionFailed.Clone(); + break; + case MessageOneofCase.TrackMuted: + TrackMuted = other.TrackMuted.Clone(); + break; + case MessageOneofCase.TrackUnmuted: + TrackUnmuted = other.TrackUnmuted.Clone(); + break; + case MessageOneofCase.ActiveSpeakersChanged: + ActiveSpeakersChanged = other.ActiveSpeakersChanged.Clone(); + break; + case MessageOneofCase.RoomMetadataChanged: + RoomMetadataChanged = other.RoomMetadataChanged.Clone(); + break; + case MessageOneofCase.RoomSidChanged: + RoomSidChanged = other.RoomSidChanged.Clone(); + break; + case MessageOneofCase.ParticipantMetadataChanged: + ParticipantMetadataChanged = other.ParticipantMetadataChanged.Clone(); + break; + case MessageOneofCase.ParticipantNameChanged: + ParticipantNameChanged = other.ParticipantNameChanged.Clone(); + break; + case MessageOneofCase.ParticipantAttributesChanged: + ParticipantAttributesChanged = other.ParticipantAttributesChanged.Clone(); + break; + case MessageOneofCase.ConnectionQualityChanged: + ConnectionQualityChanged = other.ConnectionQualityChanged.Clone(); + break; + case MessageOneofCase.ConnectionStateChanged: + ConnectionStateChanged = other.ConnectionStateChanged.Clone(); + break; + case MessageOneofCase.Disconnected: + Disconnected = other.Disconnected.Clone(); + break; + case MessageOneofCase.Reconnecting: + Reconnecting = other.Reconnecting.Clone(); + break; + case MessageOneofCase.Reconnected: + Reconnected = other.Reconnected.Clone(); + break; + case MessageOneofCase.E2EeStateChanged: + E2EeStateChanged = other.E2EeStateChanged.Clone(); + break; + case MessageOneofCase.Eos: + Eos = other.Eos.Clone(); + break; + case MessageOneofCase.DataPacketReceived: + DataPacketReceived = other.DataPacketReceived.Clone(); + break; + case MessageOneofCase.TranscriptionReceived: + TranscriptionReceived = other.TranscriptionReceived.Clone(); + break; + case MessageOneofCase.ChatMessage: + ChatMessage = other.ChatMessage.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 readonly static ulong RoomHandleDefaultValue = 0UL; + + private ulong roomHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong RoomHandle { + get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } } + set { + _hasBits0 |= 1; + roomHandle_ = value; + } + } + /// Gets whether the "room_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoomHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "room_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoomHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "participant_connected" field. + public const int ParticipantConnectedFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantConnected ParticipantConnected { + get { return messageCase_ == MessageOneofCase.ParticipantConnected ? (global::LiveKit.Proto.ParticipantConnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantConnected; + } + } + + /// Field number for the "participant_disconnected" field. + public const int ParticipantDisconnectedFieldNumber = 3; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantDisconnected ParticipantDisconnected { + get { return messageCase_ == MessageOneofCase.ParticipantDisconnected ? (global::LiveKit.Proto.ParticipantDisconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantDisconnected; + } + } + + /// Field number for the "local_track_published" field. + public const int LocalTrackPublishedFieldNumber = 4; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackPublished LocalTrackPublished { + get { return messageCase_ == MessageOneofCase.LocalTrackPublished ? (global::LiveKit.Proto.LocalTrackPublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackPublished; + } + } + + /// Field number for the "local_track_unpublished" field. + public const int LocalTrackUnpublishedFieldNumber = 5; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackUnpublished LocalTrackUnpublished { + get { return messageCase_ == MessageOneofCase.LocalTrackUnpublished ? (global::LiveKit.Proto.LocalTrackUnpublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackUnpublished; + } + } + + /// Field number for the "local_track_subscribed" field. + public const int LocalTrackSubscribedFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.LocalTrackSubscribed LocalTrackSubscribed { + get { return messageCase_ == MessageOneofCase.LocalTrackSubscribed ? (global::LiveKit.Proto.LocalTrackSubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.LocalTrackSubscribed; + } + } + + /// Field number for the "track_published" field. + public const int TrackPublishedFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackPublished TrackPublished { + get { return messageCase_ == MessageOneofCase.TrackPublished ? (global::LiveKit.Proto.TrackPublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackPublished; + } + } + + /// Field number for the "track_unpublished" field. + public const int TrackUnpublishedFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnpublished TrackUnpublished { + get { return messageCase_ == MessageOneofCase.TrackUnpublished ? (global::LiveKit.Proto.TrackUnpublished) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnpublished; + } + } + + /// Field number for the "track_subscribed" field. + public const int TrackSubscribedFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSubscribed TrackSubscribed { + get { return messageCase_ == MessageOneofCase.TrackSubscribed ? (global::LiveKit.Proto.TrackSubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscribed; + } + } + + /// Field number for the "track_unsubscribed" field. + public const int TrackUnsubscribedFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnsubscribed TrackUnsubscribed { + get { return messageCase_ == MessageOneofCase.TrackUnsubscribed ? (global::LiveKit.Proto.TrackUnsubscribed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnsubscribed; + } + } + + /// Field number for the "track_subscription_failed" field. + public const int TrackSubscriptionFailedFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackSubscriptionFailed TrackSubscriptionFailed { + get { return messageCase_ == MessageOneofCase.TrackSubscriptionFailed ? (global::LiveKit.Proto.TrackSubscriptionFailed) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackSubscriptionFailed; + } + } + + /// Field number for the "track_muted" field. + public const int TrackMutedFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackMuted TrackMuted { + get { return messageCase_ == MessageOneofCase.TrackMuted ? (global::LiveKit.Proto.TrackMuted) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackMuted; + } + } + + /// Field number for the "track_unmuted" field. + public const int TrackUnmutedFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TrackUnmuted TrackUnmuted { + get { return messageCase_ == MessageOneofCase.TrackUnmuted ? (global::LiveKit.Proto.TrackUnmuted) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TrackUnmuted; + } + } + + /// Field number for the "active_speakers_changed" field. + public const int ActiveSpeakersChangedFieldNumber = 14; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ActiveSpeakersChanged ActiveSpeakersChanged { + get { return messageCase_ == MessageOneofCase.ActiveSpeakersChanged ? (global::LiveKit.Proto.ActiveSpeakersChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ActiveSpeakersChanged; + } + } + + /// Field number for the "room_metadata_changed" field. + public const int RoomMetadataChangedFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomMetadataChanged RoomMetadataChanged { + get { return messageCase_ == MessageOneofCase.RoomMetadataChanged ? (global::LiveKit.Proto.RoomMetadataChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomMetadataChanged; + } + } + + /// Field number for the "room_sid_changed" field. + public const int RoomSidChangedFieldNumber = 16; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomSidChanged RoomSidChanged { + get { return messageCase_ == MessageOneofCase.RoomSidChanged ? (global::LiveKit.Proto.RoomSidChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.RoomSidChanged; + } + } + + /// Field number for the "participant_metadata_changed" field. + public const int ParticipantMetadataChangedFieldNumber = 17; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantMetadataChanged ParticipantMetadataChanged { + get { return messageCase_ == MessageOneofCase.ParticipantMetadataChanged ? (global::LiveKit.Proto.ParticipantMetadataChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantMetadataChanged; + } + } + + /// Field number for the "participant_name_changed" field. + public const int ParticipantNameChangedFieldNumber = 18; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantNameChanged ParticipantNameChanged { + get { return messageCase_ == MessageOneofCase.ParticipantNameChanged ? (global::LiveKit.Proto.ParticipantNameChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantNameChanged; + } + } + + /// Field number for the "participant_attributes_changed" field. + public const int ParticipantAttributesChangedFieldNumber = 19; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ParticipantAttributesChanged ParticipantAttributesChanged { + get { return messageCase_ == MessageOneofCase.ParticipantAttributesChanged ? (global::LiveKit.Proto.ParticipantAttributesChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ParticipantAttributesChanged; + } + } + + /// Field number for the "connection_quality_changed" field. + public const int ConnectionQualityChangedFieldNumber = 20; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ConnectionQualityChanged ConnectionQualityChanged { + get { return messageCase_ == MessageOneofCase.ConnectionQualityChanged ? (global::LiveKit.Proto.ConnectionQualityChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionQualityChanged; + } + } + + /// Field number for the "connection_state_changed" field. + public const int ConnectionStateChangedFieldNumber = 21; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ConnectionStateChanged ConnectionStateChanged { + get { return messageCase_ == MessageOneofCase.ConnectionStateChanged ? (global::LiveKit.Proto.ConnectionStateChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ConnectionStateChanged; + } + } + + /// Field number for the "disconnected" field. + public const int DisconnectedFieldNumber = 22; + /// + /// Connected connected = 21; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Disconnected Disconnected { + get { return messageCase_ == MessageOneofCase.Disconnected ? (global::LiveKit.Proto.Disconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Disconnected; + } + } + + /// Field number for the "reconnecting" field. + public const int ReconnectingFieldNumber = 23; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Reconnecting Reconnecting { + get { return messageCase_ == MessageOneofCase.Reconnecting ? (global::LiveKit.Proto.Reconnecting) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnecting; + } + } + + /// Field number for the "reconnected" field. + public const int ReconnectedFieldNumber = 24; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.Reconnected Reconnected { + get { return messageCase_ == MessageOneofCase.Reconnected ? (global::LiveKit.Proto.Reconnected) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Reconnected; + } + } + + /// Field number for the "e2ee_state_changed" field. + public const int E2EeStateChangedFieldNumber = 25; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.E2eeStateChanged E2EeStateChanged { + get { return messageCase_ == MessageOneofCase.E2EeStateChanged ? (global::LiveKit.Proto.E2eeStateChanged) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.E2EeStateChanged; + } + } + + /// Field number for the "eos" field. + public const int EosFieldNumber = 26; + /// + /// The stream of room events has ended + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RoomEOS Eos { + get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.RoomEOS) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos; + } + } + + /// Field number for the "data_packet_received" field. + public const int DataPacketReceivedFieldNumber = 27; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.DataPacketReceived DataPacketReceived { + get { return messageCase_ == MessageOneofCase.DataPacketReceived ? (global::LiveKit.Proto.DataPacketReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.DataPacketReceived; + } + } + + /// Field number for the "transcription_received" field. + public const int TranscriptionReceivedFieldNumber = 28; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.TranscriptionReceived TranscriptionReceived { + get { return messageCase_ == MessageOneofCase.TranscriptionReceived ? (global::LiveKit.Proto.TranscriptionReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.TranscriptionReceived; + } + } + + /// Field number for the "chat_message" field. + public const int ChatMessageFieldNumber = 29; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.ChatMessageReceived ChatMessage { + get { return messageCase_ == MessageOneofCase.ChatMessage ? (global::LiveKit.Proto.ChatMessageReceived) message_ : null; } + set { + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.ChatMessage; + } + } + + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + ParticipantConnected = 2, + ParticipantDisconnected = 3, + LocalTrackPublished = 4, + LocalTrackUnpublished = 5, + LocalTrackSubscribed = 6, + TrackPublished = 7, + TrackUnpublished = 8, + TrackSubscribed = 9, + TrackUnsubscribed = 10, + TrackSubscriptionFailed = 11, + TrackMuted = 12, + TrackUnmuted = 13, + ActiveSpeakersChanged = 14, + RoomMetadataChanged = 15, + RoomSidChanged = 16, + ParticipantMetadataChanged = 17, + ParticipantNameChanged = 18, + ParticipantAttributesChanged = 19, + ConnectionQualityChanged = 20, + ConnectionStateChanged = 21, + Disconnected = 22, + Reconnecting = 23, + Reconnected = 24, + E2EeStateChanged = 25, + Eos = 26, + DataPacketReceived = 27, + TranscriptionReceived = 28, + ChatMessage = 29, + } + private MessageOneofCase messageCase_ = MessageOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MessageOneofCase MessageCase { + get { return messageCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + messageCase_ = MessageOneofCase.None; + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoomEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoomEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomHandle != other.RoomHandle) return false; + if (!object.Equals(ParticipantConnected, other.ParticipantConnected)) return false; + if (!object.Equals(ParticipantDisconnected, other.ParticipantDisconnected)) return false; + if (!object.Equals(LocalTrackPublished, other.LocalTrackPublished)) return false; + if (!object.Equals(LocalTrackUnpublished, other.LocalTrackUnpublished)) return false; + if (!object.Equals(LocalTrackSubscribed, other.LocalTrackSubscribed)) return false; + if (!object.Equals(TrackPublished, other.TrackPublished)) return false; + if (!object.Equals(TrackUnpublished, other.TrackUnpublished)) return false; + if (!object.Equals(TrackSubscribed, other.TrackSubscribed)) return false; + if (!object.Equals(TrackUnsubscribed, other.TrackUnsubscribed)) return false; + if (!object.Equals(TrackSubscriptionFailed, other.TrackSubscriptionFailed)) return false; + if (!object.Equals(TrackMuted, other.TrackMuted)) return false; + if (!object.Equals(TrackUnmuted, other.TrackUnmuted)) return false; + if (!object.Equals(ActiveSpeakersChanged, other.ActiveSpeakersChanged)) return false; + if (!object.Equals(RoomMetadataChanged, other.RoomMetadataChanged)) return false; + if (!object.Equals(RoomSidChanged, other.RoomSidChanged)) return false; + if (!object.Equals(ParticipantMetadataChanged, other.ParticipantMetadataChanged)) return false; + if (!object.Equals(ParticipantNameChanged, other.ParticipantNameChanged)) return false; + if (!object.Equals(ParticipantAttributesChanged, other.ParticipantAttributesChanged)) return false; + if (!object.Equals(ConnectionQualityChanged, other.ConnectionQualityChanged)) return false; + if (!object.Equals(ConnectionStateChanged, other.ConnectionStateChanged)) return false; + if (!object.Equals(Disconnected, other.Disconnected)) return false; + if (!object.Equals(Reconnecting, other.Reconnecting)) return false; + if (!object.Equals(Reconnected, other.Reconnected)) return false; + if (!object.Equals(E2EeStateChanged, other.E2EeStateChanged)) return false; + if (!object.Equals(Eos, other.Eos)) return false; + if (!object.Equals(DataPacketReceived, other.DataPacketReceived)) return false; + if (!object.Equals(TranscriptionReceived, other.TranscriptionReceived)) return false; + if (!object.Equals(ChatMessage, other.ChatMessage)) 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 (HasRoomHandle) hash ^= RoomHandle.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantConnected) hash ^= ParticipantConnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) hash ^= ParticipantDisconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackPublished) hash ^= LocalTrackPublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) hash ^= LocalTrackUnpublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) hash ^= LocalTrackSubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackPublished) hash ^= TrackPublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnpublished) hash ^= TrackUnpublished.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackSubscribed) hash ^= TrackSubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) hash ^= TrackUnsubscribed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) hash ^= TrackSubscriptionFailed.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackMuted) hash ^= TrackMuted.GetHashCode(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) hash ^= TrackUnmuted.GetHashCode(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) hash ^= ActiveSpeakersChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) hash ^= RoomMetadataChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) hash ^= RoomSidChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) hash ^= ParticipantMetadataChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) hash ^= ParticipantNameChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) hash ^= ParticipantAttributesChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) hash ^= ConnectionQualityChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) hash ^= ConnectionStateChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.Disconnected) hash ^= Disconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.Reconnecting) hash ^= Reconnecting.GetHashCode(); + if (messageCase_ == MessageOneofCase.Reconnected) hash ^= Reconnected.GetHashCode(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) hash ^= E2EeStateChanged.GetHashCode(); + if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) hash ^= DataPacketReceived.GetHashCode(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) hash ^= TranscriptionReceived.GetHashCode(); + if (messageCase_ == MessageOneofCase.ChatMessage) hash ^= ChatMessage.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 (HasRoomHandle) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + output.WriteRawTag(18); + output.WriteMessage(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + output.WriteRawTag(26); + output.WriteMessage(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + output.WriteRawTag(34); + output.WriteMessage(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + output.WriteRawTag(42); + output.WriteMessage(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + output.WriteRawTag(50); + output.WriteMessage(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + output.WriteRawTag(58); + output.WriteMessage(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + output.WriteRawTag(66); + output.WriteMessage(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + output.WriteRawTag(74); + output.WriteMessage(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + output.WriteRawTag(82); + output.WriteMessage(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + output.WriteRawTag(90); + output.WriteMessage(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + output.WriteRawTag(98); + output.WriteMessage(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + output.WriteRawTag(106); + output.WriteMessage(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + output.WriteRawTag(114); + output.WriteMessage(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(146, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + output.WriteRawTag(154, 1); + output.WriteMessage(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(162, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + output.WriteRawTag(170, 1); + output.WriteMessage(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + output.WriteRawTag(178, 1); + output.WriteMessage(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + output.WriteRawTag(186, 1); + output.WriteMessage(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + output.WriteRawTag(194, 1); + output.WriteMessage(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + output.WriteRawTag(202, 1); + output.WriteMessage(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(210, 1); + output.WriteMessage(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + output.WriteRawTag(218, 1); + output.WriteMessage(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + output.WriteRawTag(226, 1); + output.WriteMessage(TranscriptionReceived); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(234, 1); + output.WriteMessage(ChatMessage); + } + 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 (HasRoomHandle) { + output.WriteRawTag(8); + output.WriteUInt64(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + output.WriteRawTag(18); + output.WriteMessage(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + output.WriteRawTag(26); + output.WriteMessage(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + output.WriteRawTag(34); + output.WriteMessage(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + output.WriteRawTag(42); + output.WriteMessage(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + output.WriteRawTag(50); + output.WriteMessage(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + output.WriteRawTag(58); + output.WriteMessage(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + output.WriteRawTag(66); + output.WriteMessage(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + output.WriteRawTag(74); + output.WriteMessage(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + output.WriteRawTag(82); + output.WriteMessage(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + output.WriteRawTag(90); + output.WriteMessage(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + output.WriteRawTag(98); + output.WriteMessage(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + output.WriteRawTag(106); + output.WriteMessage(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + output.WriteRawTag(114); + output.WriteMessage(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + output.WriteRawTag(122); + output.WriteMessage(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + output.WriteRawTag(130, 1); + output.WriteMessage(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + output.WriteRawTag(138, 1); + output.WriteMessage(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + output.WriteRawTag(146, 1); + output.WriteMessage(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + output.WriteRawTag(154, 1); + output.WriteMessage(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + output.WriteRawTag(162, 1); + output.WriteMessage(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + output.WriteRawTag(170, 1); + output.WriteMessage(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + output.WriteRawTag(178, 1); + output.WriteMessage(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + output.WriteRawTag(186, 1); + output.WriteMessage(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + output.WriteRawTag(194, 1); + output.WriteMessage(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + output.WriteRawTag(202, 1); + output.WriteMessage(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + output.WriteRawTag(210, 1); + output.WriteMessage(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + output.WriteRawTag(218, 1); + output.WriteMessage(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + output.WriteRawTag(226, 1); + output.WriteMessage(TranscriptionReceived); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + output.WriteRawTag(234, 1); + output.WriteMessage(ChatMessage); + } + 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 (HasRoomHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle); + } + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantConnected); + } + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantDisconnected); + } + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackPublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackUnpublished); + } + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalTrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackPublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackPublished); + } + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnpublished); + } + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscribed); + } + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnsubscribed); + } + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackSubscriptionFailed); + } + if (messageCase_ == MessageOneofCase.TrackMuted) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackMuted); + } + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackUnmuted); + } + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActiveSpeakersChanged); + } + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RoomMetadataChanged); + } + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(RoomSidChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantMetadataChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantNameChanged); + } + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantAttributesChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionQualityChanged); + } + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConnectionStateChanged); + } + if (messageCase_ == MessageOneofCase.Disconnected) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Disconnected); + } + if (messageCase_ == MessageOneofCase.Reconnecting) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnecting); + } + if (messageCase_ == MessageOneofCase.Reconnected) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reconnected); + } + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(E2EeStateChanged); + } + if (messageCase_ == MessageOneofCase.Eos) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Eos); + } + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataPacketReceived); + } + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(TranscriptionReceived); + } + if (messageCase_ == MessageOneofCase.ChatMessage) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChatMessage); + } + 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.HasRoomHandle) { + RoomHandle = other.RoomHandle; + } + switch (other.MessageCase) { + case MessageOneofCase.ParticipantConnected: + if (ParticipantConnected == null) { + ParticipantConnected = new global::LiveKit.Proto.ParticipantConnected(); + } + ParticipantConnected.MergeFrom(other.ParticipantConnected); + break; + case MessageOneofCase.ParticipantDisconnected: + if (ParticipantDisconnected == null) { + ParticipantDisconnected = new global::LiveKit.Proto.ParticipantDisconnected(); + } + ParticipantDisconnected.MergeFrom(other.ParticipantDisconnected); + break; + case MessageOneofCase.LocalTrackPublished: + if (LocalTrackPublished == null) { + LocalTrackPublished = new global::LiveKit.Proto.LocalTrackPublished(); + } + LocalTrackPublished.MergeFrom(other.LocalTrackPublished); + break; + case MessageOneofCase.LocalTrackUnpublished: + if (LocalTrackUnpublished == null) { + LocalTrackUnpublished = new global::LiveKit.Proto.LocalTrackUnpublished(); + } + LocalTrackUnpublished.MergeFrom(other.LocalTrackUnpublished); + break; + case MessageOneofCase.LocalTrackSubscribed: + if (LocalTrackSubscribed == null) { + LocalTrackSubscribed = new global::LiveKit.Proto.LocalTrackSubscribed(); + } + LocalTrackSubscribed.MergeFrom(other.LocalTrackSubscribed); + break; + case MessageOneofCase.TrackPublished: + if (TrackPublished == null) { + TrackPublished = new global::LiveKit.Proto.TrackPublished(); + } + TrackPublished.MergeFrom(other.TrackPublished); + break; + case MessageOneofCase.TrackUnpublished: + if (TrackUnpublished == null) { + TrackUnpublished = new global::LiveKit.Proto.TrackUnpublished(); + } + TrackUnpublished.MergeFrom(other.TrackUnpublished); + break; + case MessageOneofCase.TrackSubscribed: + if (TrackSubscribed == null) { + TrackSubscribed = new global::LiveKit.Proto.TrackSubscribed(); + } + TrackSubscribed.MergeFrom(other.TrackSubscribed); + break; + case MessageOneofCase.TrackUnsubscribed: + if (TrackUnsubscribed == null) { + TrackUnsubscribed = new global::LiveKit.Proto.TrackUnsubscribed(); + } + TrackUnsubscribed.MergeFrom(other.TrackUnsubscribed); + break; + case MessageOneofCase.TrackSubscriptionFailed: + if (TrackSubscriptionFailed == null) { + TrackSubscriptionFailed = new global::LiveKit.Proto.TrackSubscriptionFailed(); + } + TrackSubscriptionFailed.MergeFrom(other.TrackSubscriptionFailed); + break; + case MessageOneofCase.TrackMuted: + if (TrackMuted == null) { + TrackMuted = new global::LiveKit.Proto.TrackMuted(); + } + TrackMuted.MergeFrom(other.TrackMuted); + break; + case MessageOneofCase.TrackUnmuted: + if (TrackUnmuted == null) { + TrackUnmuted = new global::LiveKit.Proto.TrackUnmuted(); + } + TrackUnmuted.MergeFrom(other.TrackUnmuted); + break; + case MessageOneofCase.ActiveSpeakersChanged: + if (ActiveSpeakersChanged == null) { + ActiveSpeakersChanged = new global::LiveKit.Proto.ActiveSpeakersChanged(); + } + ActiveSpeakersChanged.MergeFrom(other.ActiveSpeakersChanged); + break; + case MessageOneofCase.RoomMetadataChanged: + if (RoomMetadataChanged == null) { + RoomMetadataChanged = new global::LiveKit.Proto.RoomMetadataChanged(); + } + RoomMetadataChanged.MergeFrom(other.RoomMetadataChanged); + break; + case MessageOneofCase.RoomSidChanged: + if (RoomSidChanged == null) { + RoomSidChanged = new global::LiveKit.Proto.RoomSidChanged(); + } + RoomSidChanged.MergeFrom(other.RoomSidChanged); + break; + case MessageOneofCase.ParticipantMetadataChanged: + if (ParticipantMetadataChanged == null) { + ParticipantMetadataChanged = new global::LiveKit.Proto.ParticipantMetadataChanged(); + } + ParticipantMetadataChanged.MergeFrom(other.ParticipantMetadataChanged); + break; + case MessageOneofCase.ParticipantNameChanged: + if (ParticipantNameChanged == null) { + ParticipantNameChanged = new global::LiveKit.Proto.ParticipantNameChanged(); + } + ParticipantNameChanged.MergeFrom(other.ParticipantNameChanged); + break; + case MessageOneofCase.ParticipantAttributesChanged: + if (ParticipantAttributesChanged == null) { + ParticipantAttributesChanged = new global::LiveKit.Proto.ParticipantAttributesChanged(); + } + ParticipantAttributesChanged.MergeFrom(other.ParticipantAttributesChanged); + break; + case MessageOneofCase.ConnectionQualityChanged: + if (ConnectionQualityChanged == null) { + ConnectionQualityChanged = new global::LiveKit.Proto.ConnectionQualityChanged(); + } + ConnectionQualityChanged.MergeFrom(other.ConnectionQualityChanged); + break; + case MessageOneofCase.ConnectionStateChanged: + if (ConnectionStateChanged == null) { + ConnectionStateChanged = new global::LiveKit.Proto.ConnectionStateChanged(); + } + ConnectionStateChanged.MergeFrom(other.ConnectionStateChanged); + break; + case MessageOneofCase.Disconnected: + if (Disconnected == null) { + Disconnected = new global::LiveKit.Proto.Disconnected(); + } + Disconnected.MergeFrom(other.Disconnected); + break; + case MessageOneofCase.Reconnecting: + if (Reconnecting == null) { + Reconnecting = new global::LiveKit.Proto.Reconnecting(); + } + Reconnecting.MergeFrom(other.Reconnecting); + break; + case MessageOneofCase.Reconnected: + if (Reconnected == null) { + Reconnected = new global::LiveKit.Proto.Reconnected(); + } + Reconnected.MergeFrom(other.Reconnected); + break; + case MessageOneofCase.E2EeStateChanged: + if (E2EeStateChanged == null) { + E2EeStateChanged = new global::LiveKit.Proto.E2eeStateChanged(); + } + E2EeStateChanged.MergeFrom(other.E2EeStateChanged); + break; + case MessageOneofCase.Eos: + if (Eos == null) { + Eos = new global::LiveKit.Proto.RoomEOS(); + } + Eos.MergeFrom(other.Eos); + break; + case MessageOneofCase.DataPacketReceived: + if (DataPacketReceived == null) { + DataPacketReceived = new global::LiveKit.Proto.DataPacketReceived(); + } + DataPacketReceived.MergeFrom(other.DataPacketReceived); + break; + case MessageOneofCase.TranscriptionReceived: + if (TranscriptionReceived == null) { + TranscriptionReceived = new global::LiveKit.Proto.TranscriptionReceived(); + } + TranscriptionReceived.MergeFrom(other.TranscriptionReceived); + break; + case MessageOneofCase.ChatMessage: + if (ChatMessage == null) { + ChatMessage = new global::LiveKit.Proto.ChatMessageReceived(); + } + ChatMessage.MergeFrom(other.ChatMessage); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RoomHandle = input.ReadUInt64(); + break; + } + case 18: { + global::LiveKit.Proto.ParticipantConnected subBuilder = new global::LiveKit.Proto.ParticipantConnected(); + if (messageCase_ == MessageOneofCase.ParticipantConnected) { + subBuilder.MergeFrom(ParticipantConnected); + } + input.ReadMessage(subBuilder); + ParticipantConnected = subBuilder; + break; + } + case 26: { + global::LiveKit.Proto.ParticipantDisconnected subBuilder = new global::LiveKit.Proto.ParticipantDisconnected(); + if (messageCase_ == MessageOneofCase.ParticipantDisconnected) { + subBuilder.MergeFrom(ParticipantDisconnected); + } + input.ReadMessage(subBuilder); + ParticipantDisconnected = subBuilder; + break; + } + case 34: { + global::LiveKit.Proto.LocalTrackPublished subBuilder = new global::LiveKit.Proto.LocalTrackPublished(); + if (messageCase_ == MessageOneofCase.LocalTrackPublished) { + subBuilder.MergeFrom(LocalTrackPublished); + } + input.ReadMessage(subBuilder); + LocalTrackPublished = subBuilder; + break; + } + case 42: { + global::LiveKit.Proto.LocalTrackUnpublished subBuilder = new global::LiveKit.Proto.LocalTrackUnpublished(); + if (messageCase_ == MessageOneofCase.LocalTrackUnpublished) { + subBuilder.MergeFrom(LocalTrackUnpublished); + } + input.ReadMessage(subBuilder); + LocalTrackUnpublished = subBuilder; + break; + } + case 50: { + global::LiveKit.Proto.LocalTrackSubscribed subBuilder = new global::LiveKit.Proto.LocalTrackSubscribed(); + if (messageCase_ == MessageOneofCase.LocalTrackSubscribed) { + subBuilder.MergeFrom(LocalTrackSubscribed); + } + input.ReadMessage(subBuilder); + LocalTrackSubscribed = subBuilder; + break; + } + case 58: { + global::LiveKit.Proto.TrackPublished subBuilder = new global::LiveKit.Proto.TrackPublished(); + if (messageCase_ == MessageOneofCase.TrackPublished) { + subBuilder.MergeFrom(TrackPublished); + } + input.ReadMessage(subBuilder); + TrackPublished = subBuilder; + break; + } + case 66: { + global::LiveKit.Proto.TrackUnpublished subBuilder = new global::LiveKit.Proto.TrackUnpublished(); + if (messageCase_ == MessageOneofCase.TrackUnpublished) { + subBuilder.MergeFrom(TrackUnpublished); + } + input.ReadMessage(subBuilder); + TrackUnpublished = subBuilder; + break; + } + case 74: { + global::LiveKit.Proto.TrackSubscribed subBuilder = new global::LiveKit.Proto.TrackSubscribed(); + if (messageCase_ == MessageOneofCase.TrackSubscribed) { + subBuilder.MergeFrom(TrackSubscribed); + } + input.ReadMessage(subBuilder); + TrackSubscribed = subBuilder; + break; + } + case 82: { + global::LiveKit.Proto.TrackUnsubscribed subBuilder = new global::LiveKit.Proto.TrackUnsubscribed(); + if (messageCase_ == MessageOneofCase.TrackUnsubscribed) { + subBuilder.MergeFrom(TrackUnsubscribed); + } + input.ReadMessage(subBuilder); + TrackUnsubscribed = subBuilder; + break; + } + case 90: { + global::LiveKit.Proto.TrackSubscriptionFailed subBuilder = new global::LiveKit.Proto.TrackSubscriptionFailed(); + if (messageCase_ == MessageOneofCase.TrackSubscriptionFailed) { + subBuilder.MergeFrom(TrackSubscriptionFailed); + } + input.ReadMessage(subBuilder); + TrackSubscriptionFailed = subBuilder; + break; + } + case 98: { + global::LiveKit.Proto.TrackMuted subBuilder = new global::LiveKit.Proto.TrackMuted(); + if (messageCase_ == MessageOneofCase.TrackMuted) { + subBuilder.MergeFrom(TrackMuted); + } + input.ReadMessage(subBuilder); + TrackMuted = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + subBuilder.MergeFrom(TrackUnmuted); + } + input.ReadMessage(subBuilder); + TrackUnmuted = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + subBuilder.MergeFrom(ActiveSpeakersChanged); + } + input.ReadMessage(subBuilder); + ActiveSpeakersChanged = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + subBuilder.MergeFrom(RoomMetadataChanged); + } + input.ReadMessage(subBuilder); + RoomMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + subBuilder.MergeFrom(RoomSidChanged); + } + input.ReadMessage(subBuilder); + RoomSidChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 154: { + global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + subBuilder.MergeFrom(ParticipantAttributesChanged); + } + input.ReadMessage(subBuilder); + ParticipantAttributesChanged = subBuilder; + break; + } + case 162: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 170: { + global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + subBuilder.MergeFrom(ConnectionStateChanged); + } + input.ReadMessage(subBuilder); + ConnectionStateChanged = subBuilder; + break; + } + case 178: { + global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); + if (messageCase_ == MessageOneofCase.Disconnected) { + subBuilder.MergeFrom(Disconnected); + } + input.ReadMessage(subBuilder); + Disconnected = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); + if (messageCase_ == MessageOneofCase.Reconnecting) { + subBuilder.MergeFrom(Reconnecting); + } + input.ReadMessage(subBuilder); + Reconnecting = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); + if (messageCase_ == MessageOneofCase.Reconnected) { + subBuilder.MergeFrom(Reconnected); + } + input.ReadMessage(subBuilder); + Reconnected = subBuilder; + break; + } + case 202: { + global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + subBuilder.MergeFrom(E2EeStateChanged); + } + input.ReadMessage(subBuilder); + E2EeStateChanged = subBuilder; + break; + } + case 210: { + global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = subBuilder; + break; + } + case 218: { + global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + subBuilder.MergeFrom(DataPacketReceived); + } + input.ReadMessage(subBuilder); + DataPacketReceived = subBuilder; + break; + } + case 226: { + global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + subBuilder.MergeFrom(TranscriptionReceived); + } + input.ReadMessage(subBuilder); + TranscriptionReceived = subBuilder; + break; + } + case 234: { + global::LiveKit.Proto.ChatMessageReceived subBuilder = new global::LiveKit.Proto.ChatMessageReceived(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); + } + input.ReadMessage(subBuilder); + ChatMessage = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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: { @@ -12968,151 +16635,727 @@ public void MergeFrom(pb::CodedInputStream input) { subBuilder.MergeFrom(TrackMuted); } input.ReadMessage(subBuilder); - TrackMuted = subBuilder; + TrackMuted = subBuilder; + break; + } + case 106: { + global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); + if (messageCase_ == MessageOneofCase.TrackUnmuted) { + subBuilder.MergeFrom(TrackUnmuted); + } + input.ReadMessage(subBuilder); + TrackUnmuted = subBuilder; + break; + } + case 114: { + global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); + if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { + subBuilder.MergeFrom(ActiveSpeakersChanged); + } + input.ReadMessage(subBuilder); + ActiveSpeakersChanged = subBuilder; + break; + } + case 122: { + global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); + if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { + subBuilder.MergeFrom(RoomMetadataChanged); + } + input.ReadMessage(subBuilder); + RoomMetadataChanged = subBuilder; + break; + } + case 130: { + global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); + if (messageCase_ == MessageOneofCase.RoomSidChanged) { + subBuilder.MergeFrom(RoomSidChanged); + } + input.ReadMessage(subBuilder); + RoomSidChanged = subBuilder; + break; + } + case 138: { + global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); + if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { + subBuilder.MergeFrom(ParticipantMetadataChanged); + } + input.ReadMessage(subBuilder); + ParticipantMetadataChanged = subBuilder; + break; + } + case 146: { + global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); + if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { + subBuilder.MergeFrom(ParticipantNameChanged); + } + input.ReadMessage(subBuilder); + ParticipantNameChanged = subBuilder; + break; + } + case 154: { + global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); + if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { + subBuilder.MergeFrom(ParticipantAttributesChanged); + } + input.ReadMessage(subBuilder); + ParticipantAttributesChanged = subBuilder; + break; + } + case 162: { + global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); + if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { + subBuilder.MergeFrom(ConnectionQualityChanged); + } + input.ReadMessage(subBuilder); + ConnectionQualityChanged = subBuilder; + break; + } + case 170: { + global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); + if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { + subBuilder.MergeFrom(ConnectionStateChanged); + } + input.ReadMessage(subBuilder); + ConnectionStateChanged = subBuilder; + break; + } + case 178: { + global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); + if (messageCase_ == MessageOneofCase.Disconnected) { + subBuilder.MergeFrom(Disconnected); + } + input.ReadMessage(subBuilder); + Disconnected = subBuilder; + break; + } + case 186: { + global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); + if (messageCase_ == MessageOneofCase.Reconnecting) { + subBuilder.MergeFrom(Reconnecting); + } + input.ReadMessage(subBuilder); + Reconnecting = subBuilder; + break; + } + case 194: { + global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); + if (messageCase_ == MessageOneofCase.Reconnected) { + subBuilder.MergeFrom(Reconnected); + } + input.ReadMessage(subBuilder); + Reconnected = subBuilder; + break; + } + case 202: { + global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); + if (messageCase_ == MessageOneofCase.E2EeStateChanged) { + subBuilder.MergeFrom(E2EeStateChanged); + } + input.ReadMessage(subBuilder); + E2EeStateChanged = subBuilder; + break; + } + case 210: { + global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); + if (messageCase_ == MessageOneofCase.Eos) { + subBuilder.MergeFrom(Eos); + } + input.ReadMessage(subBuilder); + Eos = subBuilder; break; } - case 106: { - global::LiveKit.Proto.TrackUnmuted subBuilder = new global::LiveKit.Proto.TrackUnmuted(); - if (messageCase_ == MessageOneofCase.TrackUnmuted) { - subBuilder.MergeFrom(TrackUnmuted); + case 218: { + global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); + if (messageCase_ == MessageOneofCase.DataPacketReceived) { + subBuilder.MergeFrom(DataPacketReceived); } input.ReadMessage(subBuilder); - TrackUnmuted = subBuilder; + DataPacketReceived = subBuilder; break; } - case 114: { - global::LiveKit.Proto.ActiveSpeakersChanged subBuilder = new global::LiveKit.Proto.ActiveSpeakersChanged(); - if (messageCase_ == MessageOneofCase.ActiveSpeakersChanged) { - subBuilder.MergeFrom(ActiveSpeakersChanged); + case 226: { + global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); + if (messageCase_ == MessageOneofCase.TranscriptionReceived) { + subBuilder.MergeFrom(TranscriptionReceived); } input.ReadMessage(subBuilder); - ActiveSpeakersChanged = subBuilder; + TranscriptionReceived = subBuilder; break; } - case 122: { - global::LiveKit.Proto.RoomMetadataChanged subBuilder = new global::LiveKit.Proto.RoomMetadataChanged(); - if (messageCase_ == MessageOneofCase.RoomMetadataChanged) { - subBuilder.MergeFrom(RoomMetadataChanged); + case 234: { + global::LiveKit.Proto.ChatMessageReceived subBuilder = new global::LiveKit.Proto.ChatMessageReceived(); + if (messageCase_ == MessageOneofCase.ChatMessage) { + subBuilder.MergeFrom(ChatMessage); } input.ReadMessage(subBuilder); - RoomMetadataChanged = subBuilder; + ChatMessage = 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[50]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo(RoomInfo other) : this() { + sid_ = other.sid_; + name_ = other.name_; + metadata_ = other.metadata_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RoomInfo Clone() { + return new RoomInfo(this); + } + + /// Field number for the "sid" field. + public const int SidFieldNumber = 1; + private readonly static string SidDefaultValue = ""; + + private string sid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sid { + get { return sid_ ?? SidDefaultValue; } + set { + sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 3; + private readonly static string MetadataDefaultValue = ""; + + private string metadata_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Metadata { + get { return metadata_ ?? MetadataDefaultValue; } + set { + metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "metadata" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMetadata { + get { return metadata_ != null; } + } + /// Clears the value of the "metadata" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadata_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RoomInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RoomInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Sid != other.Sid) return false; + if (Name != other.Name) return false; + if (Metadata != other.Metadata) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSid) hash ^= Sid.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMetadata) hash ^= Metadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMetadata) { + output.WriteRawTag(26); + output.WriteString(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMetadata) { + output.WriteRawTag(26); + output.WriteString(Metadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMetadata) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RoomInfo other) { + if (other == null) { + return; + } + if (other.HasSid) { + Sid = other.Sid; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMetadata) { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 130: { - global::LiveKit.Proto.RoomSidChanged subBuilder = new global::LiveKit.Proto.RoomSidChanged(); - if (messageCase_ == MessageOneofCase.RoomSidChanged) { - subBuilder.MergeFrom(RoomSidChanged); - } - input.ReadMessage(subBuilder); - RoomSidChanged = subBuilder; + case 10: { + Sid = input.ReadString(); break; } - case 138: { - global::LiveKit.Proto.ParticipantMetadataChanged subBuilder = new global::LiveKit.Proto.ParticipantMetadataChanged(); - if (messageCase_ == MessageOneofCase.ParticipantMetadataChanged) { - subBuilder.MergeFrom(ParticipantMetadataChanged); - } - input.ReadMessage(subBuilder); - ParticipantMetadataChanged = subBuilder; + case 18: { + Name = input.ReadString(); break; } - case 146: { - global::LiveKit.Proto.ParticipantNameChanged subBuilder = new global::LiveKit.Proto.ParticipantNameChanged(); - if (messageCase_ == MessageOneofCase.ParticipantNameChanged) { - subBuilder.MergeFrom(ParticipantNameChanged); - } - input.ReadMessage(subBuilder); - ParticipantNameChanged = subBuilder; + case 26: { + Metadata = input.ReadString(); break; } - case 154: { - global::LiveKit.Proto.ParticipantAttributesChanged subBuilder = new global::LiveKit.Proto.ParticipantAttributesChanged(); - if (messageCase_ == MessageOneofCase.ParticipantAttributesChanged) { - subBuilder.MergeFrom(ParticipantAttributesChanged); - } - input.ReadMessage(subBuilder); - ParticipantAttributesChanged = subBuilder; + } + } + #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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 162: { - global::LiveKit.Proto.ConnectionQualityChanged subBuilder = new global::LiveKit.Proto.ConnectionQualityChanged(); - if (messageCase_ == MessageOneofCase.ConnectionQualityChanged) { - subBuilder.MergeFrom(ConnectionQualityChanged); - } - input.ReadMessage(subBuilder); - ConnectionQualityChanged = subBuilder; + case 10: { + Sid = input.ReadString(); break; } - case 170: { - global::LiveKit.Proto.ConnectionStateChanged subBuilder = new global::LiveKit.Proto.ConnectionStateChanged(); - if (messageCase_ == MessageOneofCase.ConnectionStateChanged) { - subBuilder.MergeFrom(ConnectionStateChanged); - } - input.ReadMessage(subBuilder); - ConnectionStateChanged = subBuilder; + case 18: { + Name = input.ReadString(); break; } - case 178: { - global::LiveKit.Proto.Disconnected subBuilder = new global::LiveKit.Proto.Disconnected(); - if (messageCase_ == MessageOneofCase.Disconnected) { - subBuilder.MergeFrom(Disconnected); - } - input.ReadMessage(subBuilder); - Disconnected = subBuilder; + case 26: { + Metadata = input.ReadString(); break; } - case 186: { - global::LiveKit.Proto.Reconnecting subBuilder = new global::LiveKit.Proto.Reconnecting(); - if (messageCase_ == MessageOneofCase.Reconnecting) { - subBuilder.MergeFrom(Reconnecting); - } - input.ReadMessage(subBuilder); - Reconnecting = subBuilder; + } + } + } + #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[51]; } + } + + [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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - } - case 194: { - global::LiveKit.Proto.Reconnected subBuilder = new global::LiveKit.Proto.Reconnected(); - if (messageCase_ == MessageOneofCase.Reconnected) { - subBuilder.MergeFrom(Reconnected); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } - input.ReadMessage(subBuilder); - Reconnected = subBuilder; + input.ReadMessage(Handle); break; } - case 202: { - global::LiveKit.Proto.E2eeStateChanged subBuilder = new global::LiveKit.Proto.E2eeStateChanged(); - if (messageCase_ == MessageOneofCase.E2EeStateChanged) { - subBuilder.MergeFrom(E2EeStateChanged); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); } - input.ReadMessage(subBuilder); - E2EeStateChanged = subBuilder; + input.ReadMessage(Info); break; } - case 210: { - global::LiveKit.Proto.RoomEOS subBuilder = new global::LiveKit.Proto.RoomEOS(); - if (messageCase_ == MessageOneofCase.Eos) { - subBuilder.MergeFrom(Eos); - } - input.ReadMessage(subBuilder); - Eos = subBuilder; + } + } + #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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 218: { - global::LiveKit.Proto.DataPacketReceived subBuilder = new global::LiveKit.Proto.DataPacketReceived(); - if (messageCase_ == MessageOneofCase.DataPacketReceived) { - subBuilder.MergeFrom(DataPacketReceived); + case 10: { + if (handle_ == null) { + Handle = new global::LiveKit.Proto.FfiOwnedHandle(); } - input.ReadMessage(subBuilder); - DataPacketReceived = subBuilder; + input.ReadMessage(Handle); break; } - case 226: { - global::LiveKit.Proto.TranscriptionReceived subBuilder = new global::LiveKit.Proto.TranscriptionReceived(); - if (messageCase_ == MessageOneofCase.TranscriptionReceived) { - subBuilder.MergeFrom(TranscriptionReceived); + case 18: { + if (info_ == null) { + Info = new global::LiveKit.Proto.RoomInfo(); } - input.ReadMessage(subBuilder); - TranscriptionReceived = subBuilder; + input.ReadMessage(Info); break; } } @@ -13123,21 +17366,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomInfo : pb::IMessage + 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 RoomInfo()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[45]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13148,7 +17391,7 @@ public sealed partial class RoomInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo() { + public ParticipantConnected() { OnConstruction(); } @@ -13156,87 +17399,45 @@ public RoomInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomInfo(RoomInfo other) : this() { - sid_ = other.sid_; - name_ = other.name_; - metadata_ = other.metadata_; + public 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 RoomInfo Clone() { - return new RoomInfo(this); - } - - /// Field number for the "sid" field. - public const int SidFieldNumber = 1; - private readonly static string SidDefaultValue = ""; - - private string sid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sid { - get { return sid_ ?? SidDefaultValue; } - set { - sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "sid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSid { - get { return sid_ != null; } - } - /// Clears the value of the "sid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSid() { - sid_ = null; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ParticipantConnected Clone() { + return new ParticipantConnected(this); } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 3; - private string metadata_ = ""; + /// 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 string Metadata { - get { return metadata_; } + public global::LiveKit.Proto.OwnedParticipant Info { + get { return info_; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + info_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomInfo); + return Equals(other as ParticipantConnected); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomInfo other) { + public bool Equals(ParticipantConnected other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Sid != other.Sid) return false; - if (Name != other.Name) return false; - if (Metadata != other.Metadata) return false; + if (!object.Equals(Info, other.Info)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13244,9 +17445,7 @@ public bool Equals(RoomInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (HasSid) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13265,17 +17464,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (HasSid) { + if (info_ != null) { output.WriteRawTag(10); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Metadata); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13287,17 +17478,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 (HasSid) { + if (info_ != null) { output.WriteRawTag(10); - output.WriteString(Sid); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Metadata.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Metadata); + output.WriteMessage(Info); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13309,14 +17492,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (HasSid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Metadata.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13326,18 +17503,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomInfo other) { + public void MergeFrom(ParticipantConnected other) { if (other == null) { return; } - if (other.HasSid) { - Sid = other.Sid; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Metadata.Length != 0) { - Metadata = other.Metadata; + if (other.info_ != null) { + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + Info.MergeFrom(other.Info); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13350,20 +17524,19 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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(); + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Info); break; } } @@ -13377,20 +17550,19 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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(); + if (info_ == null) { + Info = new global::LiveKit.Proto.OwnedParticipant(); + } + input.ReadMessage(Info); break; } } @@ -13401,21 +17573,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class OwnedRoom : pb::IMessage + public sealed partial class ParticipantDisconnected : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedRoom()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantDisconnected()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[46]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13426,7 +17598,7 @@ public sealed partial class OwnedRoom : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom() { + public ParticipantDisconnected() { OnConstruction(); } @@ -13434,59 +17606,59 @@ public OwnedRoom() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom(OwnedRoom other) : this() { - handle_ = other.handle_ != null ? other.handle_.Clone() : null; - info_ = other.info_ != null ? other.info_.Clone() : null; + public ParticipantDisconnected(ParticipantDisconnected other) : this() { + participantIdentity_ = other.participantIdentity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OwnedRoom Clone() { - return new OwnedRoom(this); + public ParticipantDisconnected Clone() { + return new ParticipantDisconnected(this); } - /// Field number for the "handle" field. - public const int HandleFieldNumber = 1; - private global::LiveKit.Proto.FfiOwnedHandle handle_; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.FfiOwnedHandle Handle { - get { return handle_; } + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { - handle_ = value; + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "info" field. - public const int InfoFieldNumber = 2; - private global::LiveKit.Proto.RoomInfo info_; + /// Gets whether the "participant_identity" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.RoomInfo Info { - get { return info_; } - set { - info_ = value; - } + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OwnedRoom); + return Equals(other as ParticipantDisconnected); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OwnedRoom other) { + public bool Equals(ParticipantDisconnected other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Handle, other.Handle)) return false; - if (!object.Equals(Info, other.Info)) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13494,8 +17666,7 @@ public bool Equals(OwnedRoom other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (handle_ != null) hash ^= Handle.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13514,13 +17685,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (handle_ != null) { + if (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13532,13 +17699,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 (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteMessage(Handle); - } - if (info_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Info); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13550,11 +17713,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (handle_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle); - } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13564,21 +17724,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OwnedRoom other) { + public void MergeFrom(ParticipantDisconnected other) { if (other == null) { return; } - if (other.handle_ != null) { - if (handle_ == null) { - Handle = new global::LiveKit.Proto.FfiOwnedHandle(); - } - Handle.MergeFrom(other.Handle); - } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.RoomInfo(); - } - Info.MergeFrom(other.Info); + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13591,22 +17742,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + ParticipantIdentity = input.ReadString(); break; } } @@ -13620,22 +17765,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + ParticipantIdentity = input.ReadString(); break; } } @@ -13646,21 +17785,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantConnected : pb::IMessage + public sealed partial class LocalTrackPublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantConnected()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackPublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[47]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13671,7 +17810,7 @@ public sealed partial class ParticipantConnected : pb::IMessageField number for the "info" field. - public const int InfoFieldNumber = 1; - private global::LiveKit.Proto.OwnedParticipant info_; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 1; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; + /// + /// The TrackPublicationInfo comes from the PublishTrack response + /// and the FfiClient musts wait for it before firing this event + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedParticipant Info { - get { return info_; } + public string TrackSid { + get { return trackSid_ ?? TrackSidDefaultValue; } set { - info_ = value; + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } [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 LocalTrackPublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantConnected other) { + public bool Equals(LocalTrackPublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Info, other.Info)) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13725,7 +17882,7 @@ public bool Equals(ParticipantConnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (info_ != null) hash ^= Info.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13744,9 +17901,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (info_ != null) { + if (HasTrackSid) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13758,9 +17915,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 (HasTrackSid) { output.WriteRawTag(10); - output.WriteMessage(Info); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13772,8 +17929,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 (HasTrackSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13783,15 +17940,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantConnected other) { + public void MergeFrom(LocalTrackPublished other) { if (other == null) { return; } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::LiveKit.Proto.OwnedParticipant(); - } - Info.MergeFrom(other.Info); + if (other.HasTrackSid) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -13804,15 +17958,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (info_ == null) { - Info = new global::LiveKit.Proto.OwnedParticipant(); - } - input.ReadMessage(Info); + TrackSid = input.ReadString(); break; } } @@ -13826,15 +17981,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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); + TrackSid = input.ReadString(); break; } } @@ -13845,21 +18001,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantDisconnected : pb::IMessage + public sealed partial class LocalTrackUnpublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantDisconnected()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackUnpublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[48]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13870,7 +18026,7 @@ public sealed partial class ParticipantDisconnected : pb::IMessageField number for the "participant_identity" field. - public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + /// Field number for the "publication_sid" field. + public const int PublicationSidFieldNumber = 1; + private readonly static string PublicationSidDefaultValue = ""; + + private string publicationSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantIdentity { - get { return participantIdentity_; } + public string PublicationSid { + get { return publicationSid_ ?? PublicationSidDefaultValue; } set { - participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "publication_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPublicationSid { + get { return publicationSid_ != null; } + } + /// Clears the value of the "publication_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPublicationSid() { + publicationSid_ = null; + } [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 LocalTrackUnpublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantDisconnected other) { + public bool Equals(LocalTrackUnpublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (PublicationSid != other.PublicationSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -13924,7 +18094,7 @@ public bool Equals(ParticipantDisconnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (HasPublicationSid) hash ^= PublicationSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13943,9 +18113,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasPublicationSid) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -13957,9 +18127,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 (ParticipantIdentity.Length != 0) { + if (HasPublicationSid) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -13971,8 +18141,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + if (HasPublicationSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -13982,12 +18152,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantDisconnected other) { + public void MergeFrom(LocalTrackUnpublished other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { - ParticipantIdentity = other.ParticipantIdentity; + if (other.HasPublicationSid) { + PublicationSid = other.PublicationSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14000,12 +18170,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantIdentity = input.ReadString(); + PublicationSid = input.ReadString(); break; } } @@ -14019,12 +18193,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantIdentity = input.ReadString(); + PublicationSid = input.ReadString(); break; } } @@ -14035,21 +18213,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LocalTrackPublished : pb::IMessage + public sealed partial class LocalTrackSubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackPublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackSubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[49]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14060,7 +18238,7 @@ public sealed partial class LocalTrackPublished : pb::IMessageField number for the "track_sid" field. - public const int TrackSidFieldNumber = 1; - private string trackSid_ = ""; - /// - /// The TrackPublicationInfo comes from the PublishTrack response - /// and the FfiClient musts wait for it before firing this event - /// + public const int TrackSidFieldNumber = 2; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as LocalTrackPublished); + return Equals(other as LocalTrackSubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalTrackPublished other) { + public bool Equals(LocalTrackSubscribed other) { if (ReferenceEquals(other, null)) { return false; } @@ -14118,7 +18306,7 @@ public bool Equals(LocalTrackPublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14137,8 +18325,8 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackSid.Length != 0) { - output.WriteRawTag(10); + if (HasTrackSid) { + output.WriteRawTag(18); output.WriteString(TrackSid); } if (_unknownFields != null) { @@ -14151,8 +18339,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackSid.Length != 0) { - output.WriteRawTag(10); + if (HasTrackSid) { + output.WriteRawTag(18); output.WriteString(TrackSid); } if (_unknownFields != null) { @@ -14165,7 +18353,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { @@ -14176,11 +18364,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalTrackPublished other) { + public void MergeFrom(LocalTrackSubscribed other) { if (other == null) { return; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -14194,11 +18382,15 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { + case 18: { TrackSid = input.ReadString(); break; } @@ -14213,11 +18405,15 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { + case 18: { TrackSid = input.ReadString(); break; } @@ -14229,21 +18425,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LocalTrackUnpublished : pb::IMessage + public sealed partial class TrackPublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackUnpublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[50]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14254,7 +18450,7 @@ public sealed partial class LocalTrackUnpublished : pb::IMessageField number for the "publication_sid" field. - public const int PublicationSidFieldNumber = 1; - private string publicationSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PublicationSid { - get { return publicationSid_; } + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { - publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } + + /// 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 LocalTrackUnpublished); + return Equals(other as TrackPublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalTrackUnpublished other) { + public bool Equals(TrackPublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PublicationSid != other.PublicationSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (!object.Equals(Publication, other.Publication)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14308,7 +18532,8 @@ public bool Equals(LocalTrackUnpublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (publication_ != null) hash ^= Publication.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14327,9 +18552,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PublicationSid.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteString(PublicationSid); + output.WriteString(ParticipantIdentity); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -14341,9 +18570,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 (PublicationSid.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteString(PublicationSid); + output.WriteString(ParticipantIdentity); + } + if (publication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Publication); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -14355,8 +18588,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PublicationSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (publication_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -14366,12 +18602,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalTrackUnpublished other) { + public void MergeFrom(TrackPublished other) { if (other == null) { return; } - if (other.PublicationSid.Length != 0) { - PublicationSid = other.PublicationSid; + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.publication_ != null) { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + Publication.MergeFrom(other.Publication); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14384,12 +18626,23 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - PublicationSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + input.ReadMessage(Publication); break; } } @@ -14403,12 +18656,23 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - PublicationSid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + if (publication_ == null) { + Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + } + input.ReadMessage(Publication); break; } } @@ -14419,21 +18683,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class LocalTrackSubscribed : pb::IMessage + public sealed partial class TrackUnpublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalTrackSubscribed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnpublished()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[51]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14444,7 +18708,7 @@ public sealed partial class LocalTrackSubscribed : pb::IMessageField number for the "track_sid" field. - public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } + + /// Field number for the "publication_sid" field. + public const int PublicationSidFieldNumber = 2; + private readonly static string PublicationSidDefaultValue = ""; + + private string publicationSid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PublicationSid { + get { return publicationSid_ ?? PublicationSidDefaultValue; } + set { + publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "publication_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPublicationSid { + get { return publicationSid_ != null; } + } + /// Clears the value of the "publication_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPublicationSid() { + publicationSid_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as LocalTrackSubscribed); + return Equals(other as TrackUnpublished); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalTrackSubscribed other) { + public bool Equals(TrackUnpublished other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (TrackSid != other.TrackSid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if (PublicationSid != other.PublicationSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14498,7 +18804,8 @@ public bool Equals(LocalTrackSubscribed other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackSid.Length != 0) hash ^= TrackSid.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasPublicationSid) hash ^= PublicationSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14517,9 +18824,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackSid.Length != 0) { + if (HasParticipantIdentity) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (HasPublicationSid) { output.WriteRawTag(18); - output.WriteString(TrackSid); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -14531,9 +18842,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackSid.Length != 0) { + if (HasParticipantIdentity) { + output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (HasPublicationSid) { output.WriteRawTag(18); - output.WriteString(TrackSid); + output.WriteString(PublicationSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -14545,8 +18860,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (HasPublicationSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -14556,12 +18874,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalTrackSubscribed other) { + public void MergeFrom(TrackUnpublished other) { if (other == null) { return; } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.HasPublicationSid) { + PublicationSid = other.PublicationSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14574,12 +18895,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + ParticipantIdentity = input.ReadString(); + break; + } case 18: { - TrackSid = input.ReadString(); + PublicationSid = input.ReadString(); break; } } @@ -14593,12 +18922,20 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + ParticipantIdentity = input.ReadString(); + break; + } case 18: { - TrackSid = input.ReadString(); + PublicationSid = input.ReadString(); break; } } @@ -14608,22 +18945,26 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Publication isn't needed for subscription events on the FFI + /// The FFI will retrieve the publication using the Track sid + /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackPublished : pb::IMessage + public sealed partial class TrackSubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[52]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14634,7 +18975,7 @@ public sealed partial class TrackPublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished() { + public TrackSubscribed() { OnConstruction(); } @@ -14642,51 +18983,65 @@ public TrackPublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished(TrackPublished other) : this() { + public TrackSubscribed(TrackSubscribed other) : this() { participantIdentity_ = other.participantIdentity_; - publication_ = other.publication_ != null ? other.publication_.Clone() : null; + track_ = other.track_ != null ? other.track_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished Clone() { - return new TrackPublished(this); + public TrackSubscribed Clone() { + return new TrackSubscribed(this); } /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } - /// Field number for the "publication" field. - public const int PublicationFieldNumber = 2; - private global::LiveKit.Proto.OwnedTrackPublication publication_; + /// Field number for the "track" field. + public const int TrackFieldNumber = 2; + private global::LiveKit.Proto.OwnedTrack track_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedTrackPublication Publication { - get { return publication_; } + public global::LiveKit.Proto.OwnedTrack Track { + get { return track_; } set { - publication_ = value; + track_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackPublished); + return Equals(other as TrackSubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackPublished other) { + public bool Equals(TrackSubscribed other) { if (ReferenceEquals(other, null)) { return false; } @@ -14694,7 +19049,7 @@ public bool Equals(TrackPublished other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (!object.Equals(Publication, other.Publication)) return false; + if (!object.Equals(Track, other.Track)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14702,8 +19057,8 @@ public bool Equals(TrackPublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (publication_ != null) hash ^= Publication.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (track_ != null) hash ^= Track.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14722,13 +19077,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (publication_ != null) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -14740,13 +19095,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (publication_ != null) { + if (track_ != null) { output.WriteRawTag(18); - output.WriteMessage(Publication); + output.WriteMessage(Track); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -14758,11 +19113,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (publication_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Publication); + if (track_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -14772,18 +19127,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackPublished other) { + public void MergeFrom(TrackSubscribed other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.publication_ != null) { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (other.track_ != null) { + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - Publication.MergeFrom(other.Publication); + Track.MergeFrom(other.Track); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -14796,7 +19151,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -14805,10 +19164,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(Publication); + input.ReadMessage(Track); break; } } @@ -14822,7 +19181,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -14831,10 +19194,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (publication_ == null) { - Publication = new global::LiveKit.Proto.OwnedTrackPublication(); + if (track_ == null) { + Track = new global::LiveKit.Proto.OwnedTrack(); } - input.ReadMessage(Publication); + input.ReadMessage(Track); break; } } @@ -14845,21 +19208,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnpublished : pb::IMessage + public sealed partial class TrackUnsubscribed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnpublished()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnsubscribed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[53]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14870,7 +19233,7 @@ public sealed partial class TrackUnpublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished() { + public TrackUnsubscribed() { OnConstruction(); } @@ -14878,51 +19241,82 @@ public TrackUnpublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished(TrackUnpublished other) : this() { + public TrackUnsubscribed(TrackUnsubscribed other) : this() { participantIdentity_ = other.participantIdentity_; - publicationSid_ = other.publicationSid_; + trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnpublished Clone() { - return new TrackUnpublished(this); + public TrackUnsubscribed Clone() { + return new TrackUnsubscribed(this); } /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; + /// + /// The FFI language can dispose/remove the VideoSink here + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } - /// Field number for the "publication_sid" field. - public const int PublicationSidFieldNumber = 2; - private string publicationSid_ = ""; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PublicationSid { - get { return publicationSid_; } + public string TrackSid { + get { return trackSid_ ?? TrackSidDefaultValue; } set { - publicationSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackUnpublished); + return Equals(other as TrackUnsubscribed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnpublished other) { + public bool Equals(TrackUnsubscribed other) { if (ReferenceEquals(other, null)) { return false; } @@ -14930,7 +19324,7 @@ public bool Equals(TrackUnpublished other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (PublicationSid != other.PublicationSid) return false; + if (TrackSid != other.TrackSid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -14938,8 +19332,8 @@ public bool Equals(TrackUnpublished other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (PublicationSid.Length != 0) hash ^= PublicationSid.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14958,13 +19352,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (PublicationSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -14976,13 +19370,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (PublicationSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); - output.WriteString(PublicationSid); + output.WriteString(TrackSid); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -14994,11 +19388,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (PublicationSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicationSid); + if (HasTrackSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15008,15 +19402,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnpublished other) { + public void MergeFrom(TrackUnsubscribed other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.PublicationSid.Length != 0) { - PublicationSid = other.PublicationSid; + if (other.HasTrackSid) { + TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15029,7 +19423,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15038,7 +19436,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - PublicationSid = input.ReadString(); + TrackSid = input.ReadString(); break; } } @@ -15052,7 +19450,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -15061,7 +19463,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - PublicationSid = input.ReadString(); + TrackSid = input.ReadString(); break; } } @@ -15071,26 +19473,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Publication isn't needed for subscription events on the FFI - /// The FFI will retrieve the publication using the Track sid - /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackSubscribed : pb::IMessage + public sealed partial class TrackSubscriptionFailed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscribed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscriptionFailed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[54]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15101,7 +19499,7 @@ public sealed partial class TrackSubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed() { + public TrackSubscriptionFailed() { OnConstruction(); } @@ -15109,51 +19507,106 @@ public TrackSubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackSubscribed(TrackSubscribed other) : this() { + public TrackSubscriptionFailed(TrackSubscriptionFailed other) : this() { participantIdentity_ = other.participantIdentity_; - 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_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } - /// Field number for the "track" field. - public const int TrackFieldNumber = 2; - private global::LiveKit.Proto.OwnedTrack track_; + /// Field number for the "track_sid" field. + public const int TrackSidFieldNumber = 2; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedTrack Track { - get { return track_; } + public string TrackSid { + get { return trackSid_ ?? TrackSidDefaultValue; } set { - track_ = value; + trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + 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 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; } @@ -15161,7 +19614,8 @@ public bool Equals(TrackSubscribed other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) 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); } @@ -15169,8 +19623,9 @@ public bool Equals(TrackSubscribed other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (track_ != null) hash ^= Track.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); + if (HasError) hash ^= Error.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15189,13 +19644,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (track_ != null) { + if (HasTrackSid) { output.WriteRawTag(18); - output.WriteMessage(Track); + output.WriteString(TrackSid); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15207,13 +19666,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (track_ != null) { + if (HasTrackSid) { output.WriteRawTag(18); - output.WriteMessage(Track); + output.WriteString(TrackSid); + } + if (HasError) { + output.WriteRawTag(26); + output.WriteString(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15225,11 +19688,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (track_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Track); + if (HasTrackSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + } + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15239,18 +19705,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.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.track_ != null) { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - Track.MergeFrom(other.Track); + if (other.HasTrackSid) { + TrackSid = other.TrackSid; + } + if (other.HasError) { + Error = other.Error; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15263,7 +19729,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15272,10 +19742,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -15289,7 +19760,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -15298,10 +19773,11 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (track_ == null) { - Track = new global::LiveKit.Proto.OwnedTrack(); - } - input.ReadMessage(Track); + TrackSid = input.ReadString(); + break; + } + case 26: { + Error = input.ReadString(); break; } } @@ -15312,21 +19788,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnsubscribed : pb::IMessage + public sealed partial class TrackMuted : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnsubscribed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackMuted()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[55]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15337,7 +19813,7 @@ public sealed partial class TrackUnsubscribed : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed() { + public TrackMuted() { OnConstruction(); } @@ -15345,7 +19821,7 @@ public TrackUnsubscribed() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnsubscribed(TrackUnsubscribed other) : this() { + public TrackMuted(TrackMuted other) : this() { participantIdentity_ = other.participantIdentity_; trackSid_ = other.trackSid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -15353,46 +19829,71 @@ 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_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; - /// - /// The FFI language can dispose/remove the VideoSink here - /// + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; + } [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; } @@ -15408,8 +19909,8 @@ public bool Equals(TrackUnsubscribed other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15428,11 +19929,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } @@ -15446,11 +19947,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } @@ -15464,10 +19965,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } if (_unknownFields != null) { @@ -15478,14 +19979,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnsubscribed other) { + public void MergeFrom(TrackMuted other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -15499,7 +20000,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15522,7 +20027,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -15542,21 +20051,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackSubscriptionFailed : pb::IMessage + public sealed partial class TrackUnmuted : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackSubscriptionFailed()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnmuted()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[56]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[63]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15567,7 +20076,7 @@ public sealed partial class TrackSubscriptionFailed : pb::IMessageField number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantIdentity { - get { return participantIdentity_; } - set { - participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public void ClearParticipantIdentity() { + participantIdentity_ = null; } /// Field number for the "track_sid" field. public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + private readonly static string TrackSidDefaultValue = ""; + + private string trackSid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackSid { - get { return trackSid_; } + get { return trackSid_ ?? TrackSidDefaultValue; } set { trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 3; - private string error_ = ""; + /// Gets whether the "track_sid" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public bool HasTrackSid { + get { return trackSid_ != null; } + } + /// Clears the value of the "track_sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSid() { + trackSid_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackSubscriptionFailed); + return Equals(other as TrackUnmuted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackSubscriptionFailed other) { + public bool Equals(TrackUnmuted other) { if (ReferenceEquals(other, null)) { return false; } @@ -15641,7 +20165,6 @@ public bool Equals(TrackSubscriptionFailed other) { } if (ParticipantIdentity != other.ParticipantIdentity) return false; if (TrackSid != other.TrackSid) return false; - if (Error != other.Error) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15649,9 +20172,8 @@ public bool Equals(TrackSubscriptionFailed other) { [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 (Error.Length != 0) hash ^= Error.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasTrackSid) hash ^= TrackSid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15670,18 +20192,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Error.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -15692,18 +20210,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { output.WriteRawTag(18); output.WriteString(TrackSid); } - if (Error.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Error); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -15714,15 +20228,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { + if (HasTrackSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); } - if (Error.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -15731,19 +20242,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackSubscriptionFailed other) { + public void MergeFrom(TrackUnmuted other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { + if (other.HasTrackSid) { TrackSid = other.TrackSid; } - if (other.Error.Length != 0) { - Error = other.Error; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15755,7 +20263,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15767,10 +20279,6 @@ public void MergeFrom(pb::CodedInputStream input) { TrackSid = input.ReadString(); break; } - case 26: { - Error = input.ReadString(); - break; - } } } #endif @@ -15782,7 +20290,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -15794,10 +20306,6 @@ public void MergeFrom(pb::CodedInputStream input) { TrackSid = input.ReadString(); break; } - case 26: { - Error = input.ReadString(); - break; - } } } } @@ -15806,21 +20314,22 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackMuted : pb::IMessage + public sealed partial class E2eeStateChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackMuted()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeStateChanged()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[57]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[64]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15831,7 +20340,7 @@ public sealed partial class TrackMuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted() { + public E2eeStateChanged() { OnConstruction(); } @@ -15839,51 +20348,84 @@ public TrackMuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted(TrackMuted other) : this() { + public E2eeStateChanged(E2eeStateChanged other) : this() { + _hasBits0 = other._hasBits0; participantIdentity_ = other.participantIdentity_; - trackSid_ = other.trackSid_; + state_ = other.state_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackMuted Clone() { - return new TrackMuted(this); + public E2eeStateChanged Clone() { + return new E2eeStateChanged(this); } /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; + /// + /// Using sid instead of identity for ffi communication + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } - /// 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 readonly static global::LiveKit.Proto.EncryptionState StateDefaultValue = global::LiveKit.Proto.EncryptionState.New; + + private global::LiveKit.Proto.EncryptionState state_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } + public global::LiveKit.Proto.EncryptionState State { + get { if ((_hasBits0 & 1) != 0) { return state_; } else { return StateDefaultValue; } } set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _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; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackMuted); + return Equals(other as E2eeStateChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackMuted other) { + public bool Equals(E2eeStateChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -15891,7 +20433,7 @@ public bool Equals(TrackMuted other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (TrackSid != other.TrackSid) return false; + if (State != other.State) return false; return Equals(_unknownFields, other._unknownFields); } @@ -15899,8 +20441,8 @@ public bool Equals(TrackMuted other) { [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 (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15919,13 +20461,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); + if (HasState) { + output.WriteRawTag(16); + output.WriteEnum((int) State); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -15937,13 +20479,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); + if (HasState) { + output.WriteRawTag(16); + output.WriteEnum((int) State); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -15955,11 +20497,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); + if (HasState) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -15969,15 +20511,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackMuted other) { + public void MergeFrom(E2eeStateChanged other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; + if (other.HasState) { + State = other.State; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -15990,7 +20532,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15998,8 +20544,8 @@ public void MergeFrom(pb::CodedInputStream input) { ParticipantIdentity = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -16013,7 +20559,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -16021,8 +20571,8 @@ public void MergeFrom(pb::CodedInputStream input) { ParticipantIdentity = input.ReadString(); break; } - case 18: { - TrackSid = input.ReadString(); + case 16: { + State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); break; } } @@ -16033,21 +20583,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TrackUnmuted : pb::IMessage + public sealed partial class ActiveSpeakersChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackUnmuted()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveSpeakersChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[58]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[65]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16058,7 +20608,7 @@ public sealed partial class TrackUnmuted : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted() { + public ActiveSpeakersChanged() { OnConstruction(); } @@ -16066,59 +20616,44 @@ public TrackUnmuted() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted(TrackUnmuted other) : this() { - participantIdentity_ = other.participantIdentity_; - trackSid_ = other.trackSid_; + public ActiveSpeakersChanged(ActiveSpeakersChanged other) : this() { + participantIdentities_ = other.participantIdentities_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackUnmuted Clone() { - return new TrackUnmuted(this); - } - - /// Field number for the "participant_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"); - } + public ActiveSpeakersChanged Clone() { + return new ActiveSpeakersChanged(this); } - /// Field number for the "track_sid" field. - public const int TrackSidFieldNumber = 2; - private string trackSid_ = ""; + /// Field number for the "participant_identities" field. + public const int ParticipantIdentitiesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_participantIdentities_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField participantIdentities_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackSid { - get { return trackSid_; } - set { - trackSid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField ParticipantIdentities { + get { return participantIdentities_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TrackUnmuted); + return Equals(other as ActiveSpeakersChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackUnmuted other) { + public bool Equals(ActiveSpeakersChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (TrackSid != other.TrackSid) return false; + if(!participantIdentities_.Equals(other.participantIdentities_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16126,8 +20661,7 @@ public bool Equals(TrackUnmuted other) { [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(); + hash ^= participantIdentities_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16146,14 +20680,7 @@ 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); - } + participantIdentities_.WriteTo(output, _repeated_participantIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -16164,14 +20691,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 (ParticipantIdentity.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); - } - if (TrackSid.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TrackSid); - } + participantIdentities_.WriteTo(ref output, _repeated_participantIdentities_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -16182,12 +20702,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); - } - if (TrackSid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackSid); - } + size += participantIdentities_.CalculateSize(_repeated_participantIdentities_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -16196,16 +20711,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackUnmuted other) { + public void MergeFrom(ActiveSpeakersChanged other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { - ParticipantIdentity = other.ParticipantIdentity; - } - if (other.TrackSid.Length != 0) { - TrackSid = other.TrackSid; - } + participantIdentities_.Add(other.participantIdentities_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -16217,16 +20727,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantIdentity = input.ReadString(); - break; - } - case 18: { - TrackSid = input.ReadString(); + participantIdentities_.AddEntriesFrom(input, _repeated_participantIdentities_codec); break; } } @@ -16240,16 +20750,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantIdentity = input.ReadString(); - break; - } - case 18: { - TrackSid = input.ReadString(); + participantIdentities_.AddEntriesFrom(ref input, _repeated_participantIdentities_codec); break; } } @@ -16260,21 +20770,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class E2eeStateChanged : pb::IMessage + public sealed partial class RoomMetadataChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new E2eeStateChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomMetadataChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[59]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[66]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16285,7 +20795,7 @@ public sealed partial class E2eeStateChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged() { + public RoomMetadataChanged() { OnConstruction(); } @@ -16293,62 +20803,59 @@ public E2eeStateChanged() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged(E2eeStateChanged other) : this() { - participantIdentity_ = other.participantIdentity_; - state_ = other.state_; + public RoomMetadataChanged(RoomMetadataChanged other) : this() { + metadata_ = other.metadata_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public E2eeStateChanged Clone() { - return new E2eeStateChanged(this); + public RoomMetadataChanged Clone() { + return new RoomMetadataChanged(this); } - /// Field number for the "participant_identity" field. - public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; - /// - /// Using sid instead of identity for ffi communication - /// + /// Field number for the "metadata" field. + public const int MetadataFieldNumber = 1; + private readonly static string MetadataDefaultValue = ""; + + private string metadata_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantIdentity { - get { return participantIdentity_; } + public string Metadata { + get { return metadata_ ?? MetadataDefaultValue; } set { - participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "state" field. - public const int StateFieldNumber = 2; - private global::LiveKit.Proto.EncryptionState state_ = global::LiveKit.Proto.EncryptionState.New; + /// Gets whether the "metadata" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.EncryptionState State { - get { return state_; } - set { - state_ = value; - } + public bool HasMetadata { + get { return metadata_ != null; } + } + /// Clears the value of the "metadata" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadata_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as E2eeStateChanged); + return Equals(other as RoomMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(E2eeStateChanged other) { + public bool Equals(RoomMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (State != other.State) return false; + if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16356,8 +20863,7 @@ public bool Equals(E2eeStateChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (State != global::LiveKit.Proto.EncryptionState.New) hash ^= State.GetHashCode(); + if (HasMetadata) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16376,13 +20882,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasMetadata) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - output.WriteRawTag(16); - output.WriteEnum((int) State); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -16394,13 +20896,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 (ParticipantIdentity.Length != 0) { + if (HasMetadata) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - output.WriteRawTag(16); - output.WriteEnum((int) State); + output.WriteString(Metadata); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -16412,11 +20910,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); - } - if (State != global::LiveKit.Proto.EncryptionState.New) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + if (HasMetadata) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -16426,15 +20921,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(E2eeStateChanged other) { + public void MergeFrom(RoomMetadataChanged other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { - ParticipantIdentity = other.ParticipantIdentity; - } - if (other.State != global::LiveKit.Proto.EncryptionState.New) { - State = other.State; + if (other.HasMetadata) { + Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -16447,16 +20939,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantIdentity = input.ReadString(); - break; - } - case 16: { - State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); + Metadata = input.ReadString(); break; } } @@ -16470,16 +20962,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantIdentity = input.ReadString(); - break; - } - case 16: { - State = (global::LiveKit.Proto.EncryptionState) input.ReadEnum(); + Metadata = input.ReadString(); break; } } @@ -16490,21 +20982,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ActiveSpeakersChanged : pb::IMessage + public sealed partial class RoomSidChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActiveSpeakersChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomSidChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[60]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[67]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16515,7 +21007,7 @@ public sealed partial class ActiveSpeakersChanged : pb::IMessageField number for the "participant_identities" field. - public const int ParticipantIdentitiesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_participantIdentities_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField participantIdentities_ = new pbc::RepeatedField(); + /// Field number for the "sid" field. + public const int SidFieldNumber = 1; + private readonly static string SidDefaultValue = ""; + + private string sid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParticipantIdentities { - get { return participantIdentities_; } + public string Sid { + get { return sid_ ?? SidDefaultValue; } + set { + sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ActiveSpeakersChanged); + return Equals(other as RoomSidChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ActiveSpeakersChanged other) { + public bool Equals(RoomSidChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!participantIdentities_.Equals(other.participantIdentities_)) return false; + if (Sid != other.Sid) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16568,7 +21075,7 @@ public bool Equals(ActiveSpeakersChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= participantIdentities_.GetHashCode(); + if (HasSid) hash ^= Sid.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16587,7 +21094,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - participantIdentities_.WriteTo(output, _repeated_participantIdentities_codec); + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -16598,7 +21108,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) { - participantIdentities_.WriteTo(ref output, _repeated_participantIdentities_codec); + if (HasSid) { + output.WriteRawTag(10); + output.WriteString(Sid); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -16609,7 +21122,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += participantIdentities_.CalculateSize(_repeated_participantIdentities_codec); + if (HasSid) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -16618,11 +21133,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ActiveSpeakersChanged other) { + public void MergeFrom(RoomSidChanged other) { if (other == null) { return; } - participantIdentities_.Add(other.participantIdentities_); + if (other.HasSid) { + Sid = other.Sid; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -16634,12 +21151,16 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - participantIdentities_.AddEntriesFrom(input, _repeated_participantIdentities_codec); + Sid = input.ReadString(); break; } } @@ -16653,12 +21174,16 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - participantIdentities_.AddEntriesFrom(ref input, _repeated_participantIdentities_codec); + Sid = input.ReadString(); break; } } @@ -16669,21 +21194,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomMetadataChanged : pb::IMessage + public sealed partial class ParticipantMetadataChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomMetadataChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantMetadataChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[61]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[68]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16694,7 +21219,7 @@ public sealed partial class RoomMetadataChanged : pb::IMessageField number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } + set { + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; } /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 1; - private string metadata_ = ""; + public const int MetadataFieldNumber = 2; + private readonly static string MetadataDefaultValue = ""; + + private string metadata_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Metadata { - get { return metadata_; } + get { return metadata_ ?? MetadataDefaultValue; } set { metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "metadata" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMetadata { + get { return metadata_ != null; } + } + /// Clears the value of the "metadata" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadata_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomMetadataChanged); + return Equals(other as ParticipantMetadataChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomMetadataChanged other) { + public bool Equals(ParticipantMetadataChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (ParticipantIdentity != other.ParticipantIdentity) return false; if (Metadata != other.Metadata) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16748,7 +21315,8 @@ public bool Equals(RoomMetadataChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasMetadata) hash ^= Metadata.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16767,8 +21335,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Metadata.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (HasMetadata) { + output.WriteRawTag(18); output.WriteString(Metadata); } if (_unknownFields != null) { @@ -16781,8 +21353,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Metadata.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); + output.WriteString(ParticipantIdentity); + } + if (HasMetadata) { + output.WriteRawTag(18); output.WriteString(Metadata); } if (_unknownFields != null) { @@ -16795,7 +21371,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Metadata.Length != 0) { + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + } + if (HasMetadata) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); } if (_unknownFields != null) { @@ -16806,11 +21385,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomMetadataChanged other) { + public void MergeFrom(ParticipantMetadataChanged other) { if (other == null) { return; } - if (other.Metadata.Length != 0) { + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; + } + if (other.HasMetadata) { Metadata = other.Metadata; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -16824,11 +21406,19 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { Metadata = input.ReadString(); break; } @@ -16843,11 +21433,19 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { Metadata = input.ReadString(); break; } @@ -16859,21 +21457,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RoomSidChanged : pb::IMessage + public sealed partial class ParticipantAttributesChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomSidChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantAttributesChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[62]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[69]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16884,7 +21482,7 @@ public sealed partial class RoomSidChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged() { + public ParticipantAttributesChanged() { OnConstruction(); } @@ -16892,45 +21490,85 @@ public RoomSidChanged() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged(RoomSidChanged other) : this() { - sid_ = other.sid_; + public ParticipantAttributesChanged(ParticipantAttributesChanged other) : this() { + participantIdentity_ = other.participantIdentity_; + attributes_ = other.attributes_.Clone(); + changedAttributes_ = other.changedAttributes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomSidChanged Clone() { - return new RoomSidChanged(this); + public ParticipantAttributesChanged Clone() { + return new ParticipantAttributesChanged(this); } - /// Field number for the "sid" field. - public const int SidFieldNumber = 1; - private string sid_ = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 1; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sid { - get { return sid_; } + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { - sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } + + /// Field number for the "attributes" field. + public const int AttributesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_attributes_codec + = pb::FieldCodec.ForMessage(18, global::LiveKit.Proto.AttributesEntry.Parser); + private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Attributes { + get { return attributes_; } + } + + /// Field number for the "changed_attributes" field. + public const int ChangedAttributesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_changedAttributes_codec + = pb::FieldCodec.ForMessage(26, global::LiveKit.Proto.AttributesEntry.Parser); + private readonly pbc::RepeatedField changedAttributes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ChangedAttributes { + get { return changedAttributes_; } + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RoomSidChanged); + return Equals(other as ParticipantAttributesChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomSidChanged other) { + public bool Equals(ParticipantAttributesChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Sid != other.Sid) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; + if(!attributes_.Equals(other.attributes_)) return false; + if(!changedAttributes_.Equals(other.changedAttributes_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -16938,7 +21576,9 @@ public bool Equals(RoomSidChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + hash ^= attributes_.GetHashCode(); + hash ^= changedAttributes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -16957,10 +21597,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteString(Sid); + output.WriteString(ParticipantIdentity); } + attributes_.WriteTo(output, _repeated_attributes_codec); + changedAttributes_.WriteTo(output, _repeated_changedAttributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -16971,10 +21613,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); - output.WriteString(Sid); + output.WriteString(ParticipantIdentity); } + attributes_.WriteTo(ref output, _repeated_attributes_codec); + changedAttributes_.WriteTo(ref output, _repeated_changedAttributes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -16985,9 +21629,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } + size += attributes_.CalculateSize(_repeated_attributes_codec); + size += changedAttributes_.CalculateSize(_repeated_changedAttributes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -16996,13 +21642,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomSidChanged other) { + public void MergeFrom(ParticipantAttributesChanged other) { if (other == null) { return; } - if (other.Sid.Length != 0) { - Sid = other.Sid; + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; } + attributes_.Add(other.attributes_); + changedAttributes_.Add(other.changedAttributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17014,12 +21662,24 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Sid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + attributes_.AddEntriesFrom(input, _repeated_attributes_codec); + break; + } + case 26: { + changedAttributes_.AddEntriesFrom(input, _repeated_changedAttributes_codec); break; } } @@ -17033,12 +21693,24 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Sid = input.ReadString(); + ParticipantIdentity = input.ReadString(); + break; + } + case 18: { + attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); + break; + } + case 26: { + changedAttributes_.AddEntriesFrom(ref input, _repeated_changedAttributes_codec); break; } } @@ -17049,21 +21721,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantMetadataChanged : pb::IMessage + public sealed partial class ParticipantNameChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantMetadataChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantNameChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[63]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[70]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17074,7 +21746,7 @@ public sealed partial class ParticipantMetadataChanged : pb::IMessageField number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 2; - private string metadata_ = ""; + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Metadata { - get { return metadata_; } + public string Name { + get { return name_ ?? NameDefaultValue; } set { - metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantMetadataChanged); + return Equals(other as ParticipantNameChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantMetadataChanged other) { + public bool Equals(ParticipantNameChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -17134,7 +21834,7 @@ public bool Equals(ParticipantMetadataChanged other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (Metadata != other.Metadata) return false; + if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -17142,8 +21842,8 @@ public bool Equals(ParticipantMetadataChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (Metadata.Length != 0) hash ^= Metadata.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -17162,13 +21862,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (Metadata.Length != 0) { + if (HasName) { output.WriteRawTag(18); - output.WriteString(Metadata); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -17180,13 +21880,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - if (Metadata.Length != 0) { + if (HasName) { output.WriteRawTag(18); - output.WriteString(Metadata); + output.WriteString(Name); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -17198,11 +21898,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - if (Metadata.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata); + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -17212,15 +21912,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantMetadataChanged other) { + public void MergeFrom(ParticipantNameChanged other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - if (other.Metadata.Length != 0) { - Metadata = other.Metadata; + if (other.HasName) { + Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17233,7 +21933,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -17242,7 +21946,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Metadata = input.ReadString(); + Name = input.ReadString(); break; } } @@ -17256,7 +21960,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -17265,7 +21973,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - Metadata = input.ReadString(); + Name = input.ReadString(); break; } } @@ -17276,21 +21984,22 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantAttributesChanged : pb::IMessage + public sealed partial class ConnectionQualityChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantAttributesChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityChanged()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[64]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[71]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17301,7 +22010,7 @@ public sealed partial class ParticipantAttributesChanged : pb::IMessageField number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 2; - private static readonly pbc::MapField.Codec _map_attributes_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18); - private readonly pbc::MapField attributes_ = new pbc::MapField(); + /// Gets whether the "participant_identity" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField Attributes { - get { return attributes_; } + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; } - /// Field number for the "changed_attributes" field. - public const int ChangedAttributesFieldNumber = 3; - private static readonly pbc::MapField.Codec _map_changedAttributes_codec - = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 26); - private readonly pbc::MapField changedAttributes_ = new pbc::MapField(); + /// Field number for the "quality" field. + public const int QualityFieldNumber = 2; + private readonly static global::LiveKit.Proto.ConnectionQuality QualityDefaultValue = global::LiveKit.Proto.ConnectionQuality.QualityPoor; + + private global::LiveKit.Proto.ConnectionQuality quality_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::MapField ChangedAttributes { - get { return changedAttributes_; } + public global::LiveKit.Proto.ConnectionQuality Quality { + get { if ((_hasBits0 & 1) != 0) { return quality_; } else { return QualityDefaultValue; } } + set { + _hasBits0 |= 1; + quality_ = value; + } + } + /// Gets whether the "quality" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuality { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "quality" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuality() { + _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantAttributesChanged); + return Equals(other as ConnectionQualityChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantAttributesChanged other) { + public bool Equals(ConnectionQualityChanged other) { if (ReferenceEquals(other, null)) { return false; } @@ -17372,8 +22100,7 @@ public bool Equals(ParticipantAttributesChanged other) { return true; } if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (!Attributes.Equals(other.Attributes)) return false; - if (!ChangedAttributes.Equals(other.ChangedAttributes)) return false; + if (Quality != other.Quality) return false; return Equals(_unknownFields, other._unknownFields); } @@ -17381,9 +22108,8 @@ public bool Equals(ParticipantAttributesChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - hash ^= Attributes.GetHashCode(); - hash ^= ChangedAttributes.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); + if (HasQuality) hash ^= Quality.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -17402,12 +22128,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - attributes_.WriteTo(output, _map_attributes_codec); - changedAttributes_.WriteTo(output, _map_changedAttributes_codec); + if (HasQuality) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -17418,12 +22146,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 (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(10); output.WriteString(ParticipantIdentity); } - attributes_.WriteTo(ref output, _map_attributes_codec); - changedAttributes_.WriteTo(ref output, _map_changedAttributes_codec); + if (HasQuality) { + output.WriteRawTag(16); + output.WriteEnum((int) Quality); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -17434,11 +22164,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } - size += attributes_.CalculateSize(_map_attributes_codec); - size += changedAttributes_.CalculateSize(_map_changedAttributes_codec); + if (HasQuality) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -17447,15 +22178,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantAttributesChanged other) { + public void MergeFrom(ConnectionQualityChanged other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } - attributes_.MergeFrom(other.attributes_); - changedAttributes_.MergeFrom(other.changedAttributes_); + if (other.HasQuality) { + Quality = other.Quality; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17467,20 +22199,20 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - ParticipantIdentity = input.ReadString(); - break; - } - case 18: { - attributes_.AddEntriesFrom(input, _map_attributes_codec); + case 10: { + ParticipantIdentity = input.ReadString(); break; } - case 26: { - changedAttributes_.AddEntriesFrom(input, _map_changedAttributes_codec); + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -17494,7 +22226,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -17502,12 +22238,8 @@ public void MergeFrom(pb::CodedInputStream input) { ParticipantIdentity = input.ReadString(); break; } - case 18: { - attributes_.AddEntriesFrom(ref input, _map_attributes_codec); - break; - } - case 26: { - changedAttributes_.AddEntriesFrom(ref input, _map_changedAttributes_codec); + case 16: { + Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); break; } } @@ -17518,21 +22250,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParticipantNameChanged : pb::IMessage + public sealed partial class UserPacket : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantNameChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserPacket()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[65]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[72]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17543,7 +22275,7 @@ public sealed partial class ParticipantNameChanged : pb::IMessageField number for the "participant_identity" field. - public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private global::LiveKit.Proto.OwnedBuffer data_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantIdentity { - get { return participantIdentity_; } + public global::LiveKit.Proto.OwnedBuffer Data { + get { return data_; } set { - participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + data_ = value; } } - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; + /// Field number for the "topic" field. + public const int TopicFieldNumber = 2; + private readonly static string TopicDefaultValue = ""; + + private string topic_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string Topic { + get { return topic_ ?? TopicDefaultValue; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "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 ParticipantNameChanged); + return Equals(other as UserPacket); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantNameChanged other) { + public bool Equals(UserPacket other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (Name != other.Name) return false; + if (!object.Equals(Data, other.Data)) return false; + if (Topic != other.Topic) return false; return Equals(_unknownFields, other._unknownFields); } @@ -17611,8 +22357,8 @@ public bool Equals(ParticipantNameChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (data_ != null) hash ^= Data.GetHashCode(); + if (HasTopic) hash ^= Topic.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -17631,13 +22377,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (data_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteMessage(Data); } - if (Name.Length != 0) { + if (HasTopic) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -17649,13 +22395,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 (ParticipantIdentity.Length != 0) { + if (data_ != null) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteMessage(Data); } - if (Name.Length != 0) { + if (HasTopic) { output.WriteRawTag(18); - output.WriteString(Name); + output.WriteString(Topic); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -17667,11 +22413,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + if (data_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (HasTopic) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -17681,15 +22427,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantNameChanged other) { + public void MergeFrom(UserPacket other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { - ParticipantIdentity = other.ParticipantIdentity; + if (other.data_ != null) { + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + Data.MergeFrom(other.Data); } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.HasTopic) { + Topic = other.Topic; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17702,16 +22451,23 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantIdentity = input.ReadString(); + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); break; } case 18: { - Name = input.ReadString(); + Topic = input.ReadString(); break; } } @@ -17725,16 +22481,23 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantIdentity = input.ReadString(); + if (data_ == null) { + Data = new global::LiveKit.Proto.OwnedBuffer(); + } + input.ReadMessage(Data); break; } case 18: { - Name = input.ReadString(); + Topic = input.ReadString(); break; } } @@ -17745,21 +22508,22 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConnectionQualityChanged : pb::IMessage + public sealed partial class ChatMessage : 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 ChatMessage()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[66]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[73]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17770,7 +22534,7 @@ public sealed partial class ConnectionQualityChanged : pb::IMessageField number for the "participant_identity" field. - public const int ParticipantIdentityFieldNumber = 1; - private string participantIdentity_ = ""; + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static string IdDefaultValue = ""; + + private string id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParticipantIdentity { - get { return participantIdentity_; } + public string Id { + get { return id_ ?? IdDefaultValue; } set { - participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + id_ = null; + } - /// 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 "timestamp" field. + public const int TimestampFieldNumber = 2; + private readonly static long TimestampDefaultValue = 0L; + + private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.ConnectionQuality Quality { - get { return quality_; } + public long Timestamp { + get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } set { - quality_ = value; + _hasBits0 |= 1; + timestamp_ = value; + } + } + /// Gets whether the "timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestamp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestamp() { + _hasBits0 &= ~1; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 3; + private readonly static string MessageDefaultValue = ""; + + private string message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + /// Field number for the "edit_timestamp" field. + public const int EditTimestampFieldNumber = 4; + private readonly static long EditTimestampDefaultValue = 0L; + + private long editTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EditTimestamp { + get { if ((_hasBits0 & 2) != 0) { return editTimestamp_; } else { return EditTimestampDefaultValue; } } + set { + _hasBits0 |= 2; + editTimestamp_ = value; + } + } + /// Gets whether the "edit_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEditTimestamp { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "edit_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEditTimestamp() { + _hasBits0 &= ~2; + } + + /// Field number for the "deleted" field. + public const int DeletedFieldNumber = 5; + private readonly static bool DeletedDefaultValue = false; + + private bool deleted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Deleted { + get { if ((_hasBits0 & 4) != 0) { return deleted_; } else { return DeletedDefaultValue; } } + set { + _hasBits0 |= 4; + deleted_ = value; + } + } + /// Gets whether the "deleted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDeleted { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "deleted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDeleted() { + _hasBits0 &= ~4; + } + + /// Field number for the "generated" field. + public const int GeneratedFieldNumber = 6; + private readonly static bool GeneratedDefaultValue = false; + + private bool generated_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Generated { + get { if ((_hasBits0 & 8) != 0) { return generated_; } else { return GeneratedDefaultValue; } } + set { + _hasBits0 |= 8; + generated_ = value; } } + /// Gets whether the "generated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasGenerated { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "generated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearGenerated() { + _hasBits0 &= ~8; + } [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 ChatMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnectionQualityChanged other) { + public bool Equals(ChatMessage other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ParticipantIdentity != other.ParticipantIdentity) return false; - if (Quality != other.Quality) return false; + if (Id != other.Id) return false; + if (Timestamp != other.Timestamp) return false; + if (Message != other.Message) return false; + if (EditTimestamp != other.EditTimestamp) return false; + if (Deleted != other.Deleted) return false; + if (Generated != other.Generated) return false; return Equals(_unknownFields, other._unknownFields); } @@ -17838,8 +22747,12 @@ public bool Equals(ConnectionQualityChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) hash ^= Quality.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (HasTimestamp) hash ^= Timestamp.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (HasEditTimestamp) hash ^= EditTimestamp.GetHashCode(); + if (HasDeleted) hash ^= Deleted.GetHashCode(); + if (HasGenerated) hash ^= Generated.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -17858,13 +22771,29 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantIdentity.Length != 0) { + if (HasId) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteString(Id); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + if (HasTimestamp) { output.WriteRawTag(16); - output.WriteEnum((int) Quality); + output.WriteInt64(Timestamp); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasEditTimestamp) { + output.WriteRawTag(32); + output.WriteInt64(EditTimestamp); + } + if (HasDeleted) { + output.WriteRawTag(40); + output.WriteBool(Deleted); + } + if (HasGenerated) { + output.WriteRawTag(48); + output.WriteBool(Generated); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -17876,13 +22805,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 (ParticipantIdentity.Length != 0) { + if (HasId) { output.WriteRawTag(10); - output.WriteString(ParticipantIdentity); + output.WriteString(Id); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { + if (HasTimestamp) { output.WriteRawTag(16); - output.WriteEnum((int) Quality); + output.WriteInt64(Timestamp); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasEditTimestamp) { + output.WriteRawTag(32); + output.WriteInt64(EditTimestamp); + } + if (HasDeleted) { + output.WriteRawTag(40); + output.WriteBool(Deleted); + } + if (HasGenerated) { + output.WriteRawTag(48); + output.WriteBool(Generated); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -17894,11 +22839,23 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantIdentity.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (HasTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (HasEditTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EditTimestamp); } - if (Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality); + if (HasDeleted) { + size += 1 + 1; + } + if (HasGenerated) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -17908,15 +22865,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnectionQualityChanged other) { + public void MergeFrom(ChatMessage other) { if (other == null) { return; } - if (other.ParticipantIdentity.Length != 0) { - ParticipantIdentity = other.ParticipantIdentity; + if (other.HasId) { + Id = other.Id; } - if (other.Quality != global::LiveKit.Proto.ConnectionQuality.QualityPoor) { - Quality = other.Quality; + if (other.HasTimestamp) { + Timestamp = other.Timestamp; + } + if (other.HasMessage) { + Message = other.Message; + } + if (other.HasEditTimestamp) { + EditTimestamp = other.EditTimestamp; + } + if (other.HasDeleted) { + Deleted = other.Deleted; + } + if (other.HasGenerated) { + Generated = other.Generated; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -17929,16 +22898,36 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - ParticipantIdentity = input.ReadString(); + Id = input.ReadString(); break; } case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + Timestamp = input.ReadInt64(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 32: { + EditTimestamp = input.ReadInt64(); + break; + } + case 40: { + Deleted = input.ReadBool(); + break; + } + case 48: { + Generated = input.ReadBool(); break; } } @@ -17952,16 +22941,36 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - ParticipantIdentity = input.ReadString(); + Id = input.ReadString(); break; } case 16: { - Quality = (global::LiveKit.Proto.ConnectionQuality) input.ReadEnum(); + Timestamp = input.ReadInt64(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 32: { + EditTimestamp = input.ReadInt64(); + break; + } + case 40: { + Deleted = input.ReadBool(); + break; + } + case 48: { + Generated = input.ReadBool(); break; } } @@ -17972,21 +22981,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UserPacket : pb::IMessage + public sealed partial class ChatMessageReceived : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserPacket()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChatMessageReceived()); 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[67]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[74]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -17997,7 +23006,7 @@ public sealed partial class UserPacket : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket() { + public ChatMessageReceived() { OnConstruction(); } @@ -18005,73 +23014,73 @@ public UserPacket() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket(UserPacket other) : this() { - data_ = other.data_ != null ? other.data_.Clone() : null; - topic_ = other.topic_; + public ChatMessageReceived(ChatMessageReceived other) : this() { + message_ = other.message_ != null ? other.message_.Clone() : null; + participantIdentity_ = other.participantIdentity_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserPacket Clone() { - return new UserPacket(this); + public ChatMessageReceived Clone() { + return new ChatMessageReceived(this); } - /// Field number for the "data" field. - public const int DataFieldNumber = 1; - private global::LiveKit.Proto.OwnedBuffer data_; + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::LiveKit.Proto.ChatMessage message_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::LiveKit.Proto.OwnedBuffer Data { - get { return data_; } + public global::LiveKit.Proto.ChatMessage Message { + get { return message_; } set { - data_ = value; + message_ = value; } } - /// Field number for the "topic" field. - public const int TopicFieldNumber = 2; - private readonly static string TopicDefaultValue = ""; + /// Field number for the "participant_identity" field. + public const int ParticipantIdentityFieldNumber = 2; + private readonly static string ParticipantIdentityDefaultValue = ""; - private string topic_; + private string participantIdentity_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Topic { - get { return topic_ ?? TopicDefaultValue; } + public string ParticipantIdentity { + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { - topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "topic" field is set + /// Gets whether the "participant_identity" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTopic { - get { return topic_ != null; } + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } } - /// Clears the value of the "topic" field + /// Clears the value of the "participant_identity" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopic() { - topic_ = null; + public void ClearParticipantIdentity() { + participantIdentity_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UserPacket); + return Equals(other as ChatMessageReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserPacket other) { + public bool Equals(ChatMessageReceived other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Data, other.Data)) return false; - if (Topic != other.Topic) return false; + if (!object.Equals(Message, other.Message)) return false; + if (ParticipantIdentity != other.ParticipantIdentity) return false; return Equals(_unknownFields, other._unknownFields); } @@ -18079,8 +23088,8 @@ public bool Equals(UserPacket other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (data_ != null) hash ^= Data.GetHashCode(); - if (HasTopic) hash ^= Topic.GetHashCode(); + if (message_ != null) hash ^= Message.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -18099,13 +23108,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (data_ != null) { + if (message_ != null) { output.WriteRawTag(10); - output.WriteMessage(Data); + output.WriteMessage(Message); } - if (HasTopic) { + if (HasParticipantIdentity) { output.WriteRawTag(18); - output.WriteString(Topic); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -18117,13 +23126,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (data_ != null) { + if (message_ != null) { output.WriteRawTag(10); - output.WriteMessage(Data); + output.WriteMessage(Message); } - if (HasTopic) { + if (HasParticipantIdentity) { output.WriteRawTag(18); - output.WriteString(Topic); + output.WriteString(ParticipantIdentity); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -18135,11 +23144,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); + if (message_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); } - if (HasTopic) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic); + if (HasParticipantIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -18149,18 +23158,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserPacket other) { + public void MergeFrom(ChatMessageReceived other) { if (other == null) { return; } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); + if (other.message_ != null) { + if (message_ == null) { + Message = new global::LiveKit.Proto.ChatMessage(); } - Data.MergeFrom(other.Data); + Message.MergeFrom(other.Message); } - if (other.HasTopic) { - Topic = other.Topic; + if (other.HasParticipantIdentity) { + ParticipantIdentity = other.ParticipantIdentity; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -18173,19 +23182,23 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); + if (message_ == null) { + Message = new global::LiveKit.Proto.ChatMessage(); } - input.ReadMessage(Data); + input.ReadMessage(Message); break; } case 18: { - Topic = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } } @@ -18199,19 +23212,23 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (data_ == null) { - Data = new global::LiveKit.Proto.OwnedBuffer(); + if (message_ == null) { + Message = new global::LiveKit.Proto.ChatMessage(); } - input.ReadMessage(Data); + input.ReadMessage(Message); break; } case 18: { - Topic = input.ReadString(); + ParticipantIdentity = input.ReadString(); break; } } @@ -18229,6 +23246,7 @@ public sealed partial class SipDTMF : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipDTMF()); 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; } } @@ -18236,7 +23254,7 @@ public sealed partial class SipDTMF : 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[68]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[75]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -18256,6 +23274,7 @@ public SipDTMF() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipDTMF(SipDTMF other) : this() { + _hasBits0 = other._hasBits0; code_ = other.code_; digit_ = other.digit_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -18269,15 +23288,30 @@ public SipDTMF Clone() { /// Field number for the "code" field. public const int CodeFieldNumber = 1; + private readonly static uint CodeDefaultValue = 0; + private uint code_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Code { - get { return code_; } + get { if ((_hasBits0 & 1) != 0) { return code_; } else { return CodeDefaultValue; } } set { + _hasBits0 |= 1; code_ = value; } } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~1; + } /// Field number for the "digit" field. public const int DigitFieldNumber = 2; @@ -18329,7 +23363,7 @@ public bool Equals(SipDTMF other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Code != 0) hash ^= Code.GetHashCode(); + if (HasCode) hash ^= Code.GetHashCode(); if (HasDigit) hash ^= Digit.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -18349,7 +23383,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Code != 0) { + if (HasCode) { output.WriteRawTag(8); output.WriteUInt32(Code); } @@ -18367,7 +23401,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 (Code != 0) { + if (HasCode) { output.WriteRawTag(8); output.WriteUInt32(Code); } @@ -18385,7 +23419,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Code != 0) { + if (HasCode) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); } if (HasDigit) { @@ -18403,7 +23437,7 @@ public void MergeFrom(SipDTMF other) { if (other == null) { return; } - if (other.Code != 0) { + if (other.HasCode) { Code = other.Code; } if (other.HasDigit) { @@ -18420,7 +23454,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -18443,7 +23481,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -18470,6 +23512,7 @@ public sealed partial class DataPacketReceived : pb::IMessage _parser = new pb::MessageParser(() => new DataPacketReceived()); 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; } } @@ -18477,7 +23520,7 @@ public sealed partial class DataPacketReceived : pb::IMessageField number for the "kind" field. public const int KindFieldNumber = 1; - private global::LiveKit.Proto.DataPacketKind kind_ = global::LiveKit.Proto.DataPacketKind.KindLossy; + private readonly static global::LiveKit.Proto.DataPacketKind KindDefaultValue = global::LiveKit.Proto.DataPacketKind.KindLossy; + + private global::LiveKit.Proto.DataPacketKind kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.DataPacketKind Kind { - get { return kind_; } + get { if ((_hasBits0 & 1) != 0) { return kind_; } else { return KindDefaultValue; } } set { + _hasBits0 |= 1; kind_ = value; } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + _hasBits0 &= ~1; + } /// Field number for the "participant_identity" field. public const int ParticipantIdentityFieldNumber = 2; - private string participantIdentity_ = ""; + private readonly static string ParticipantIdentityDefaultValue = ""; + + private string participantIdentity_; /// /// Can be empty if the data is sent a server SDK /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ParticipantIdentity { - get { return participantIdentity_; } + get { return participantIdentity_ ?? ParticipantIdentityDefaultValue; } set { participantIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "participant_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantIdentity { + get { return participantIdentity_ != null; } + } + /// Clears the value of the "participant_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantIdentity() { + participantIdentity_ = null; + } /// Field number for the "user" field. public const int UserFieldNumber = 4; @@ -18616,8 +23689,8 @@ public bool Equals(DataPacketReceived other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) hash ^= Kind.GetHashCode(); - if (ParticipantIdentity.Length != 0) hash ^= ParticipantIdentity.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); + if (HasParticipantIdentity) hash ^= ParticipantIdentity.GetHashCode(); if (valueCase_ == ValueOneofCase.User) hash ^= User.GetHashCode(); if (valueCase_ == ValueOneofCase.SipDtmf) hash ^= SipDtmf.GetHashCode(); hash ^= (int) valueCase_; @@ -18639,11 +23712,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + if (HasKind) { output.WriteRawTag(8); output.WriteEnum((int) Kind); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(18); output.WriteString(ParticipantIdentity); } @@ -18665,11 +23738,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + if (HasKind) { output.WriteRawTag(8); output.WriteEnum((int) Kind); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { output.WriteRawTag(18); output.WriteString(ParticipantIdentity); } @@ -18691,10 +23764,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } - if (ParticipantIdentity.Length != 0) { + if (HasParticipantIdentity) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParticipantIdentity); } if (valueCase_ == ValueOneofCase.User) { @@ -18715,10 +23788,10 @@ public void MergeFrom(DataPacketReceived other) { if (other == null) { return; } - if (other.Kind != global::LiveKit.Proto.DataPacketKind.KindLossy) { + if (other.HasKind) { Kind = other.Kind; } - if (other.ParticipantIdentity.Length != 0) { + if (other.HasParticipantIdentity) { ParticipantIdentity = other.ParticipantIdentity; } switch (other.ValueCase) { @@ -18747,7 +23820,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -18788,7 +23865,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -18840,7 +23921,7 @@ public sealed partial class TranscriptionReceived : pb::IMessage _parser = new pb::MessageParser(() => new ConnectionStateChanged()); 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; } } @@ -19121,7 +24211,7 @@ public sealed partial class ConnectionStateChanged : pb::IMessageField number for the "state" field. public const int StateFieldNumber = 1; - private global::LiveKit.Proto.ConnectionState state_ = global::LiveKit.Proto.ConnectionState.ConnDisconnected; + private readonly static global::LiveKit.Proto.ConnectionState StateDefaultValue = global::LiveKit.Proto.ConnectionState.ConnDisconnected; + + private global::LiveKit.Proto.ConnectionState state_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.ConnectionState State { - get { return 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; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -19186,7 +24292,7 @@ public bool Equals(ConnectionStateChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (State != global::LiveKit.Proto.ConnectionState.ConnDisconnected) hash ^= State.GetHashCode(); + if (HasState) hash ^= State.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -19205,7 +24311,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (State != global::LiveKit.Proto.ConnectionState.ConnDisconnected) { + if (HasState) { output.WriteRawTag(8); output.WriteEnum((int) State); } @@ -19219,7 +24325,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 (State != global::LiveKit.Proto.ConnectionState.ConnDisconnected) { + if (HasState) { output.WriteRawTag(8); output.WriteEnum((int) State); } @@ -19233,7 +24339,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (State != global::LiveKit.Proto.ConnectionState.ConnDisconnected) { + if (HasState) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } if (_unknownFields != null) { @@ -19248,7 +24354,7 @@ public void MergeFrom(ConnectionStateChanged other) { if (other == null) { return; } - if (other.State != global::LiveKit.Proto.ConnectionState.ConnDisconnected) { + if (other.HasState) { State = other.State; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -19262,7 +24368,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -19281,7 +24391,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -19311,7 +24425,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[72]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[79]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -19423,7 +24537,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -19438,7 +24556,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -19457,6 +24579,7 @@ public sealed partial class Disconnected : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Disconnected()); 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; } } @@ -19464,7 +24587,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[73]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[80]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -19484,6 +24607,7 @@ public Disconnected() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Disconnected(Disconnected other) : this() { + _hasBits0 = other._hasBits0; reason_ = other.reason_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -19496,15 +24620,30 @@ public Disconnected Clone() { /// Field number for the "reason" field. public const int ReasonFieldNumber = 1; - private global::LiveKit.Proto.DisconnectReason reason_ = global::LiveKit.Proto.DisconnectReason.UnknownReason; + private readonly static global::LiveKit.Proto.DisconnectReason ReasonDefaultValue = global::LiveKit.Proto.DisconnectReason.UnknownReason; + + private global::LiveKit.Proto.DisconnectReason reason_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.DisconnectReason Reason { - get { return reason_; } + get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } } set { + _hasBits0 |= 1; reason_ = value; } } + /// Gets whether the "reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReason { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReason() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -19529,7 +24668,7 @@ public bool Equals(Disconnected other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) hash ^= Reason.GetHashCode(); + if (HasReason) hash ^= Reason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -19548,7 +24687,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + if (HasReason) { output.WriteRawTag(8); output.WriteEnum((int) Reason); } @@ -19562,7 +24701,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 (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + if (HasReason) { output.WriteRawTag(8); output.WriteEnum((int) Reason); } @@ -19576,7 +24715,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + if (HasReason) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); } if (_unknownFields != null) { @@ -19591,7 +24730,7 @@ public void MergeFrom(Disconnected other) { if (other == null) { return; } - if (other.Reason != global::LiveKit.Proto.DisconnectReason.UnknownReason) { + if (other.HasReason) { Reason = other.Reason; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -19605,7 +24744,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -19624,7 +24767,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -19654,7 +24801,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[74]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[81]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -19766,7 +24913,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -19781,7 +24932,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -19807,7 +24962,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[75]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[82]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -19919,7 +25074,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -19934,7 +25093,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -19960,7 +25123,7 @@ public sealed partial class RoomEOS : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[76]; } + get { return global::LiveKit.Proto.RoomReflection.Descriptor.MessageTypes[83]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -20072,7 +25235,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -20087,7 +25254,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Rpc.cs b/Runtime/Scripts/Proto/Rpc.cs new file mode 100644 index 0000000..3404191 --- /dev/null +++ b/Runtime/Scripts/Proto/Rpc.cs @@ -0,0 +1,3303 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rpc.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 rpc.proto + public static partial class RpcReflection { + + #region Descriptor + /// File descriptor for rpc.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RpcReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CglycGMucHJvdG8SDWxpdmVraXQucHJvdG8iNwoIUnBjRXJyb3ISDAoEY29k", + "ZRgBIAIoDRIPCgdtZXNzYWdlGAIgAigJEgwKBGRhdGEYAyABKAkikQEKEVBl", + "cmZvcm1ScGNSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgB", + "IAIoBBIcChRkZXN0aW5hdGlvbl9pZGVudGl0eRgCIAIoCRIOCgZtZXRob2QY", + "AyACKAkSDwoHcGF5bG9hZBgEIAIoCRIbChNyZXNwb25zZV90aW1lb3V0X21z", + "GAUgASgNIkwKGFJlZ2lzdGVyUnBjTWV0aG9kUmVxdWVzdBIgChhsb2NhbF9w", + "YXJ0aWNpcGFudF9oYW5kbGUYASACKAQSDgoGbWV0aG9kGAIgAigJIk4KGlVu", + "cmVnaXN0ZXJScGNNZXRob2RSZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50", + "X2hhbmRsZRgBIAIoBBIOCgZtZXRob2QYAiACKAkilgEKIlJwY01ldGhvZElu", + "dm9jYXRpb25SZXNwb25zZVJlcXVlc3QSIAoYbG9jYWxfcGFydGljaXBhbnRf", + "aGFuZGxlGAEgAigEEhUKDWludm9jYXRpb25faWQYAiACKAQSDwoHcGF5bG9h", + "ZBgDIAEoCRImCgVlcnJvchgEIAEoCzIXLmxpdmVraXQucHJvdG8uUnBjRXJy", + "b3IiJgoSUGVyZm9ybVJwY1Jlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIhsK", + "GVJlZ2lzdGVyUnBjTWV0aG9kUmVzcG9uc2UiHQobVW5yZWdpc3RlclJwY01l", + "dGhvZFJlc3BvbnNlIjQKI1JwY01ldGhvZEludm9jYXRpb25SZXNwb25zZVJl", + "c3BvbnNlEg0KBWVycm9yGAEgASgJIl8KElBlcmZvcm1ScGNDYWxsYmFjaxIQ", + "Cghhc3luY19pZBgBIAIoBBIPCgdwYXlsb2FkGAIgASgJEiYKBWVycm9yGAMg", + "ASgLMhcubGl2ZWtpdC5wcm90by5ScGNFcnJvciK+AQoYUnBjTWV0aG9kSW52", + "b2NhdGlvbkV2ZW50EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIo", + "BBIVCg1pbnZvY2F0aW9uX2lkGAIgAigEEg4KBm1ldGhvZBgDIAIoCRISCgpy", + "ZXF1ZXN0X2lkGAQgAigJEhcKD2NhbGxlcl9pZGVudGl0eRgFIAIoCRIPCgdw", + "YXlsb2FkGAYgAigJEhsKE3Jlc3BvbnNlX3RpbWVvdXRfbXMYByACKA1CEKoC", + "DUxpdmVLaXQuUHJvdG8=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RpcError), global::LiveKit.Proto.RpcError.Parser, new[]{ "Code", "Message", "Data" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PerformRpcRequest), global::LiveKit.Proto.PerformRpcRequest.Parser, new[]{ "LocalParticipantHandle", "DestinationIdentity", "Method", "Payload", "ResponseTimeoutMs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RegisterRpcMethodRequest), global::LiveKit.Proto.RegisterRpcMethodRequest.Parser, new[]{ "LocalParticipantHandle", "Method" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnregisterRpcMethodRequest), global::LiveKit.Proto.UnregisterRpcMethodRequest.Parser, new[]{ "LocalParticipantHandle", "Method" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RpcMethodInvocationResponseRequest), global::LiveKit.Proto.RpcMethodInvocationResponseRequest.Parser, new[]{ "LocalParticipantHandle", "InvocationId", "Payload", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PerformRpcResponse), global::LiveKit.Proto.PerformRpcResponse.Parser, new[]{ "AsyncId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RegisterRpcMethodResponse), global::LiveKit.Proto.RegisterRpcMethodResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.UnregisterRpcMethodResponse), global::LiveKit.Proto.UnregisterRpcMethodResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RpcMethodInvocationResponseResponse), global::LiveKit.Proto.RpcMethodInvocationResponseResponse.Parser, new[]{ "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PerformRpcCallback), global::LiveKit.Proto.PerformRpcCallback.Parser, new[]{ "AsyncId", "Payload", "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RpcMethodInvocationEvent), global::LiveKit.Proto.RpcMethodInvocationEvent.Parser, new[]{ "LocalParticipantHandle", "InvocationId", "Method", "RequestId", "CallerIdentity", "Payload", "ResponseTimeoutMs" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RpcError : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RpcError()); + 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.RpcReflection.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 RpcError() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcError(RpcError other) : this() { + _hasBits0 = other._hasBits0; + code_ = other.code_; + message_ = other.message_; + data_ = other.data_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcError Clone() { + return new RpcError(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private readonly static uint CodeDefaultValue = 0; + + private uint code_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Code { + get { if ((_hasBits0 & 1) != 0) { return code_; } else { return CodeDefaultValue; } } + set { + _hasBits0 |= 1; + code_ = value; + } + } + /// Gets whether the "code" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCode { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "code" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCode() { + _hasBits0 &= ~1; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private readonly static string MessageDefaultValue = ""; + + private string message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 3; + private readonly static string DataDefaultValue = ""; + + private string data_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Data { + get { return data_ ?? DataDefaultValue; } + set { + data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "data" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasData { + get { return data_ != null; } + } + /// Clears the value of the "data" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearData() { + data_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RpcError); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RpcError other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Message != other.Message) return false; + if (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 (HasCode) hash ^= Code.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (HasData) 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 (HasCode) { + output.WriteRawTag(8); + output.WriteUInt32(Code); + } + if (HasMessage) { + output.WriteRawTag(18); + output.WriteString(Message); + } + if (HasData) { + output.WriteRawTag(26); + output.WriteString(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 (HasCode) { + output.WriteRawTag(8); + output.WriteUInt32(Code); + } + if (HasMessage) { + output.WriteRawTag(18); + output.WriteString(Message); + } + if (HasData) { + output.WriteRawTag(26); + output.WriteString(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 (HasCode) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Code); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (HasData) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Data); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RpcError other) { + if (other == null) { + return; + } + if (other.HasCode) { + Code = other.Code; + } + if (other.HasMessage) { + Message = other.Message; + } + if (other.HasData) { + Data = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = input.ReadUInt32(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + case 26: { + Data = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = input.ReadUInt32(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + case 26: { + Data = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// FFI Requests + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PerformRpcRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformRpcRequest()); + 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.RpcReflection.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 PerformRpcRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcRequest(PerformRpcRequest other) : this() { + _hasBits0 = other._hasBits0; + localParticipantHandle_ = other.localParticipantHandle_; + destinationIdentity_ = other.destinationIdentity_; + method_ = other.method_; + payload_ = other.payload_; + responseTimeoutMs_ = other.responseTimeoutMs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcRequest Clone() { + return new PerformRpcRequest(this); + } + + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } + set { + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "destination_identity" field. + public const int DestinationIdentityFieldNumber = 2; + private readonly static string DestinationIdentityDefaultValue = ""; + + private string destinationIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DestinationIdentity { + get { return destinationIdentity_ ?? DestinationIdentityDefaultValue; } + set { + destinationIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "destination_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDestinationIdentity { + get { return destinationIdentity_ != null; } + } + /// Clears the value of the "destination_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDestinationIdentity() { + destinationIdentity_ = null; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 3; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 4; + private readonly static string PayloadDefaultValue = ""; + + private string payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payload_ = null; + } + + /// Field number for the "response_timeout_ms" field. + public const int ResponseTimeoutMsFieldNumber = 5; + private readonly static uint ResponseTimeoutMsDefaultValue = 0; + + private uint responseTimeoutMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ResponseTimeoutMs { + get { if ((_hasBits0 & 2) != 0) { return responseTimeoutMs_; } else { return ResponseTimeoutMsDefaultValue; } } + set { + _hasBits0 |= 2; + responseTimeoutMs_ = value; + } + } + /// Gets whether the "response_timeout_ms" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResponseTimeoutMs { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "response_timeout_ms" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponseTimeoutMs() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PerformRpcRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerformRpcRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (DestinationIdentity != other.DestinationIdentity) return false; + if (Method != other.Method) return false; + if (Payload != other.Payload) return false; + if (ResponseTimeoutMs != other.ResponseTimeoutMs) 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 (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasDestinationIdentity) hash ^= DestinationIdentity.GetHashCode(); + if (HasMethod) hash ^= Method.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (HasResponseTimeoutMs) hash ^= ResponseTimeoutMs.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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasDestinationIdentity) { + output.WriteRawTag(18); + output.WriteString(DestinationIdentity); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasPayload) { + output.WriteRawTag(34); + output.WriteString(Payload); + } + if (HasResponseTimeoutMs) { + output.WriteRawTag(40); + output.WriteUInt32(ResponseTimeoutMs); + } + 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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasDestinationIdentity) { + output.WriteRawTag(18); + output.WriteString(DestinationIdentity); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasPayload) { + output.WriteRawTag(34); + output.WriteString(Payload); + } + if (HasResponseTimeoutMs) { + output.WriteRawTag(40); + output.WriteUInt32(ResponseTimeoutMs); + } + 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasDestinationIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationIdentity); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload); + } + if (HasResponseTimeoutMs) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ResponseTimeoutMs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PerformRpcRequest other) { + if (other == null) { + return; + } + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasDestinationIdentity) { + DestinationIdentity = other.DestinationIdentity; + } + if (other.HasMethod) { + Method = other.Method; + } + if (other.HasPayload) { + Payload = other.Payload; + } + if (other.HasResponseTimeoutMs) { + ResponseTimeoutMs = other.ResponseTimeoutMs; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + DestinationIdentity = input.ReadString(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 34: { + Payload = input.ReadString(); + break; + } + case 40: { + ResponseTimeoutMs = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + DestinationIdentity = input.ReadString(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 34: { + Payload = input.ReadString(); + break; + } + case 40: { + ResponseTimeoutMs = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RegisterRpcMethodRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterRpcMethodRequest()); + 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.RpcReflection.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 RegisterRpcMethodRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterRpcMethodRequest(RegisterRpcMethodRequest other) : this() { + _hasBits0 = other._hasBits0; + localParticipantHandle_ = other.localParticipantHandle_; + method_ = other.method_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterRpcMethodRequest Clone() { + return new RegisterRpcMethodRequest(this); + } + + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } + set { + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 2; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegisterRpcMethodRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegisterRpcMethodRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Method != other.Method) 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 (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasMethod) hash ^= Method.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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasMethod) { + output.WriteRawTag(18); + output.WriteString(Method); + } + 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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasMethod) { + output.WriteRawTag(18); + output.WriteString(Method); + } + 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RegisterRpcMethodRequest other) { + if (other == null) { + return; + } + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasMethod) { + Method = other.Method; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Method = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Method = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnregisterRpcMethodRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnregisterRpcMethodRequest()); + 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.RpcReflection.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 UnregisterRpcMethodRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterRpcMethodRequest(UnregisterRpcMethodRequest other) : this() { + _hasBits0 = other._hasBits0; + localParticipantHandle_ = other.localParticipantHandle_; + method_ = other.method_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterRpcMethodRequest Clone() { + return new UnregisterRpcMethodRequest(this); + } + + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } + set { + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 2; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnregisterRpcMethodRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnregisterRpcMethodRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (Method != other.Method) 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 (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasMethod) hash ^= Method.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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasMethod) { + output.WriteRawTag(18); + output.WriteString(Method); + } + 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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasMethod) { + output.WriteRawTag(18); + output.WriteString(Method); + } + 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnregisterRpcMethodRequest other) { + if (other == null) { + return; + } + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasMethod) { + Method = other.Method; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Method = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 18: { + Method = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RpcMethodInvocationResponseRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RpcMethodInvocationResponseRequest()); + 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.RpcReflection.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 RpcMethodInvocationResponseRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationResponseRequest(RpcMethodInvocationResponseRequest other) : this() { + _hasBits0 = other._hasBits0; + localParticipantHandle_ = other.localParticipantHandle_; + invocationId_ = other.invocationId_; + payload_ = other.payload_; + error_ = other.error_ != null ? other.error_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationResponseRequest Clone() { + return new RpcMethodInvocationResponseRequest(this); + } + + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } + set { + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "invocation_id" field. + public const int InvocationIdFieldNumber = 2; + private readonly static ulong InvocationIdDefaultValue = 0UL; + + private ulong invocationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong InvocationId { + get { if ((_hasBits0 & 2) != 0) { return invocationId_; } else { return InvocationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invocationId_ = value; + } + } + /// Gets whether the "invocation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInvocationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invocation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInvocationId() { + _hasBits0 &= ~2; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 3; + private readonly static string PayloadDefaultValue = ""; + + private string payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payload_ = null; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 4; + private global::LiveKit.Proto.RpcError error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RpcError Error { + get { return error_; } + set { + error_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RpcMethodInvocationResponseRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RpcMethodInvocationResponseRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (InvocationId != other.InvocationId) return false; + if (Payload != other.Payload) return false; + if (!object.Equals(Error, other.Error)) 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 (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasInvocationId) hash ^= InvocationId.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (error_ != null) hash ^= Error.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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasInvocationId) { + output.WriteRawTag(16); + output.WriteUInt64(InvocationId); + } + if (HasPayload) { + output.WriteRawTag(26); + output.WriteString(Payload); + } + if (error_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Error); + } + 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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasInvocationId) { + output.WriteRawTag(16); + output.WriteUInt64(InvocationId); + } + if (HasPayload) { + output.WriteRawTag(26); + output.WriteString(Payload); + } + if (error_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Error); + } + 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasInvocationId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(InvocationId); + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RpcMethodInvocationResponseRequest other) { + if (other == null) { + return; + } + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasInvocationId) { + InvocationId = other.InvocationId; + } + if (other.HasPayload) { + Payload = other.Payload; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + Error.MergeFrom(other.Error); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + InvocationId = input.ReadUInt64(); + break; + } + case 26: { + Payload = input.ReadString(); + break; + } + case 34: { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + input.ReadMessage(Error); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + InvocationId = input.ReadUInt64(); + break; + } + case 26: { + Payload = input.ReadString(); + break; + } + case 34: { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + input.ReadMessage(Error); + break; + } + } + } + } + #endif + + } + + /// + /// FFI Responses + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PerformRpcResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformRpcResponse()); + 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.RpcReflection.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 PerformRpcResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcResponse(PerformRpcResponse other) : this() { + _hasBits0 = other._hasBits0; + asyncId_ = other.asyncId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcResponse Clone() { + return new PerformRpcResponse(this); + } + + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; + [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 PerformRpcResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerformRpcResponse 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 (HasAsyncId) 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 (HasAsyncId) { + 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 (HasAsyncId) { + 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 (HasAsyncId) { + 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(PerformRpcResponse other) { + if (other == null) { + return; + } + if (other.HasAsyncId) { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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 RegisterRpcMethodResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterRpcMethodResponse()); + 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.RpcReflection.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 RegisterRpcMethodResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterRpcMethodResponse(RegisterRpcMethodResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RegisterRpcMethodResponse Clone() { + return new RegisterRpcMethodResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RegisterRpcMethodResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RegisterRpcMethodResponse 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(RegisterRpcMethodResponse 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UnregisterRpcMethodResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnregisterRpcMethodResponse()); + 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.RpcReflection.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 UnregisterRpcMethodResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterRpcMethodResponse(UnregisterRpcMethodResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnregisterRpcMethodResponse Clone() { + return new UnregisterRpcMethodResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UnregisterRpcMethodResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnregisterRpcMethodResponse 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(UnregisterRpcMethodResponse 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RpcMethodInvocationResponseResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RpcMethodInvocationResponseResponse()); + 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.RpcReflection.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 RpcMethodInvocationResponseResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationResponseResponse(RpcMethodInvocationResponseResponse other) : this() { + error_ = other.error_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationResponseResponse Clone() { + return new RpcMethodInvocationResponseResponse(this); + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 1; + 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 RpcMethodInvocationResponseResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RpcMethodInvocationResponseResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Error != other.Error) 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 (HasError) hash ^= Error.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 (HasError) { + output.WriteRawTag(10); + output.WriteString(Error); + } + 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 (HasError) { + output.WriteRawTag(10); + output.WriteString(Error); + } + 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 (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RpcMethodInvocationResponseResponse other) { + if (other == null) { + return; + } + if (other.HasError) { + Error = other.Error; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Error = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// FFI Callbacks + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class PerformRpcCallback : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformRpcCallback()); + 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.RpcReflection.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 PerformRpcCallback() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcCallback(PerformRpcCallback other) : this() { + _hasBits0 = other._hasBits0; + asyncId_ = other.asyncId_; + payload_ = other.payload_; + error_ = other.error_ != null ? other.error_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformRpcCallback Clone() { + return new PerformRpcCallback(this); + } + + /// Field number for the "async_id" field. + public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + + private ulong asyncId_; + [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; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 2; + private readonly static string PayloadDefaultValue = ""; + + private string payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payload_ = null; + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 3; + private global::LiveKit.Proto.RpcError error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::LiveKit.Proto.RpcError Error { + get { return error_; } + set { + error_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PerformRpcCallback); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerformRpcCallback other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AsyncId != other.AsyncId) return false; + if (Payload != other.Payload) return false; + if (!object.Equals(Error, other.Error)) 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 (HasAsyncId) hash ^= AsyncId.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (error_ != null) hash ^= Error.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 (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (HasPayload) { + output.WriteRawTag(18); + output.WriteString(Payload); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + 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 (HasAsyncId) { + output.WriteRawTag(8); + output.WriteUInt64(AsyncId); + } + if (HasPayload) { + output.WriteRawTag(18); + output.WriteString(Payload); + } + if (error_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Error); + } + 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 (HasAsyncId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PerformRpcCallback other) { + if (other == null) { + return; + } + if (other.HasAsyncId) { + AsyncId = other.AsyncId; + } + if (other.HasPayload) { + Payload = other.Payload; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + Error.MergeFrom(other.Error); + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Payload = input.ReadString(); + break; + } + case 26: { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + input.ReadMessage(Error); + 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AsyncId = input.ReadUInt64(); + break; + } + case 18: { + Payload = input.ReadString(); + break; + } + case 26: { + if (error_ == null) { + Error = new global::LiveKit.Proto.RpcError(); + } + input.ReadMessage(Error); + break; + } + } + } + } + #endif + + } + + /// + /// FFI Events + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RpcMethodInvocationEvent : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RpcMethodInvocationEvent()); + 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.RpcReflection.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 RpcMethodInvocationEvent() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationEvent(RpcMethodInvocationEvent other) : this() { + _hasBits0 = other._hasBits0; + localParticipantHandle_ = other.localParticipantHandle_; + invocationId_ = other.invocationId_; + method_ = other.method_; + requestId_ = other.requestId_; + callerIdentity_ = other.callerIdentity_; + payload_ = other.payload_; + responseTimeoutMs_ = other.responseTimeoutMs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RpcMethodInvocationEvent Clone() { + return new RpcMethodInvocationEvent(this); + } + + /// Field number for the "local_participant_handle" field. + public const int LocalParticipantHandleFieldNumber = 1; + private readonly static ulong LocalParticipantHandleDefaultValue = 0UL; + + private ulong localParticipantHandle_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LocalParticipantHandle { + get { if ((_hasBits0 & 1) != 0) { return localParticipantHandle_; } else { return LocalParticipantHandleDefaultValue; } } + set { + _hasBits0 |= 1; + localParticipantHandle_ = value; + } + } + /// Gets whether the "local_participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "local_participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalParticipantHandle() { + _hasBits0 &= ~1; + } + + /// Field number for the "invocation_id" field. + public const int InvocationIdFieldNumber = 2; + private readonly static ulong InvocationIdDefaultValue = 0UL; + + private ulong invocationId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong InvocationId { + get { if ((_hasBits0 & 2) != 0) { return invocationId_; } else { return InvocationIdDefaultValue; } } + set { + _hasBits0 |= 2; + invocationId_ = value; + } + } + /// Gets whether the "invocation_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInvocationId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "invocation_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInvocationId() { + _hasBits0 &= ~2; + } + + /// Field number for the "method" field. + public const int MethodFieldNumber = 3; + private readonly static string MethodDefaultValue = ""; + + private string method_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Method { + get { return method_ ?? MethodDefaultValue; } + set { + method_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "method" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMethod { + get { return method_ != null; } + } + /// Clears the value of the "method" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMethod() { + method_ = null; + } + + /// Field number for the "request_id" field. + public const int RequestIdFieldNumber = 4; + private readonly static string RequestIdDefaultValue = ""; + + private string requestId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RequestId { + get { return requestId_ ?? RequestIdDefaultValue; } + set { + requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "request_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRequestId { + get { return requestId_ != null; } + } + /// Clears the value of the "request_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRequestId() { + requestId_ = null; + } + + /// Field number for the "caller_identity" field. + public const int CallerIdentityFieldNumber = 5; + private readonly static string CallerIdentityDefaultValue = ""; + + private string callerIdentity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CallerIdentity { + get { return callerIdentity_ ?? CallerIdentityDefaultValue; } + set { + callerIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "caller_identity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCallerIdentity { + get { return callerIdentity_ != null; } + } + /// Clears the value of the "caller_identity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCallerIdentity() { + callerIdentity_ = null; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 6; + private readonly static string PayloadDefaultValue = ""; + + private string payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Payload { + get { return payload_ ?? PayloadDefaultValue; } + set { + payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "payload" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPayload { + get { return payload_ != null; } + } + /// Clears the value of the "payload" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayload() { + payload_ = null; + } + + /// Field number for the "response_timeout_ms" field. + public const int ResponseTimeoutMsFieldNumber = 7; + private readonly static uint ResponseTimeoutMsDefaultValue = 0; + + private uint responseTimeoutMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ResponseTimeoutMs { + get { if ((_hasBits0 & 4) != 0) { return responseTimeoutMs_; } else { return ResponseTimeoutMsDefaultValue; } } + set { + _hasBits0 |= 4; + responseTimeoutMs_ = value; + } + } + /// Gets whether the "response_timeout_ms" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResponseTimeoutMs { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "response_timeout_ms" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponseTimeoutMs() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RpcMethodInvocationEvent); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RpcMethodInvocationEvent other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LocalParticipantHandle != other.LocalParticipantHandle) return false; + if (InvocationId != other.InvocationId) return false; + if (Method != other.Method) return false; + if (RequestId != other.RequestId) return false; + if (CallerIdentity != other.CallerIdentity) return false; + if (Payload != other.Payload) return false; + if (ResponseTimeoutMs != other.ResponseTimeoutMs) 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 (HasLocalParticipantHandle) hash ^= LocalParticipantHandle.GetHashCode(); + if (HasInvocationId) hash ^= InvocationId.GetHashCode(); + if (HasMethod) hash ^= Method.GetHashCode(); + if (HasRequestId) hash ^= RequestId.GetHashCode(); + if (HasCallerIdentity) hash ^= CallerIdentity.GetHashCode(); + if (HasPayload) hash ^= Payload.GetHashCode(); + if (HasResponseTimeoutMs) hash ^= ResponseTimeoutMs.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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasInvocationId) { + output.WriteRawTag(16); + output.WriteUInt64(InvocationId); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasRequestId) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (HasCallerIdentity) { + output.WriteRawTag(42); + output.WriteString(CallerIdentity); + } + if (HasPayload) { + output.WriteRawTag(50); + output.WriteString(Payload); + } + if (HasResponseTimeoutMs) { + output.WriteRawTag(56); + output.WriteUInt32(ResponseTimeoutMs); + } + 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 (HasLocalParticipantHandle) { + output.WriteRawTag(8); + output.WriteUInt64(LocalParticipantHandle); + } + if (HasInvocationId) { + output.WriteRawTag(16); + output.WriteUInt64(InvocationId); + } + if (HasMethod) { + output.WriteRawTag(26); + output.WriteString(Method); + } + if (HasRequestId) { + output.WriteRawTag(34); + output.WriteString(RequestId); + } + if (HasCallerIdentity) { + output.WriteRawTag(42); + output.WriteString(CallerIdentity); + } + if (HasPayload) { + output.WriteRawTag(50); + output.WriteString(Payload); + } + if (HasResponseTimeoutMs) { + output.WriteRawTag(56); + output.WriteUInt32(ResponseTimeoutMs); + } + 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 (HasLocalParticipantHandle) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocalParticipantHandle); + } + if (HasInvocationId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(InvocationId); + } + if (HasMethod) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Method); + } + if (HasRequestId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); + } + if (HasCallerIdentity) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerIdentity); + } + if (HasPayload) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload); + } + if (HasResponseTimeoutMs) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ResponseTimeoutMs); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RpcMethodInvocationEvent other) { + if (other == null) { + return; + } + if (other.HasLocalParticipantHandle) { + LocalParticipantHandle = other.LocalParticipantHandle; + } + if (other.HasInvocationId) { + InvocationId = other.InvocationId; + } + if (other.HasMethod) { + Method = other.Method; + } + if (other.HasRequestId) { + RequestId = other.RequestId; + } + if (other.HasCallerIdentity) { + CallerIdentity = other.CallerIdentity; + } + if (other.HasPayload) { + Payload = other.Payload; + } + if (other.HasResponseTimeoutMs) { + ResponseTimeoutMs = other.ResponseTimeoutMs; + } + _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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + InvocationId = input.ReadUInt64(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 42: { + CallerIdentity = input.ReadString(); + break; + } + case 50: { + Payload = input.ReadString(); + break; + } + case 56: { + ResponseTimeoutMs = 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) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LocalParticipantHandle = input.ReadUInt64(); + break; + } + case 16: { + InvocationId = input.ReadUInt64(); + break; + } + case 26: { + Method = input.ReadString(); + break; + } + case 34: { + RequestId = input.ReadString(); + break; + } + case 42: { + CallerIdentity = input.ReadString(); + break; + } + case 50: { + Payload = input.ReadString(); + break; + } + case 56: { + ResponseTimeoutMs = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Runtime/Scripts/Proto/Rpc.cs.meta b/Runtime/Scripts/Proto/Rpc.cs.meta new file mode 100644 index 0000000..42a5edd --- /dev/null +++ b/Runtime/Scripts/Proto/Rpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 932922b4415344002a9d00885b9bdf56 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Runtime/Scripts/Proto/Stats.cs b/Runtime/Scripts/Proto/Stats.cs index 5076c87..12d5f9c 100644 --- a/Runtime/Scripts/Proto/Stats.cs +++ b/Runtime/Scripts/Proto/Stats.cs @@ -46,189 +46,186 @@ static StatsReflection() { "bmRpZGF0ZUgAEjoKC2NlcnRpZmljYXRlGBAgASgLMiMubGl2ZWtpdC5wcm90", "by5SdGNTdGF0cy5DZXJ0aWZpY2F0ZUgAEi4KBXRyYWNrGBEgASgLMh0ubGl2", "ZWtpdC5wcm90by5SdGNTdGF0cy5UcmFja0gAGlsKBUNvZGVjEigKA3J0YxgB", - "IAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEigKBWNvZGVjGAIg", - "ASgLMhkubGl2ZWtpdC5wcm90by5Db2RlY1N0YXRzGtUBCgpJbmJvdW5kUnRw", - "EigKA3J0YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0K", - "BnN0cmVhbRgCIAEoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMS", - "NwoIcmVjZWl2ZWQYAyABKAsyJS5saXZla2l0LnByb3RvLlJlY2VpdmVkUnRw", - "U3RyZWFtU3RhdHMSNQoHaW5ib3VuZBgEIAEoCzIkLmxpdmVraXQucHJvdG8u", + "IAIoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEigKBWNvZGVjGAIg", + "AigLMhkubGl2ZWtpdC5wcm90by5Db2RlY1N0YXRzGtUBCgpJbmJvdW5kUnRw", + "EigKA3J0YxgBIAIoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0K", + "BnN0cmVhbRgCIAIoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMS", + "NwoIcmVjZWl2ZWQYAyACKAsyJS5saXZla2l0LnByb3RvLlJlY2VpdmVkUnRw", + "U3RyZWFtU3RhdHMSNQoHaW5ib3VuZBgEIAIoCzIkLmxpdmVraXQucHJvdG8u", "SW5ib3VuZFJ0cFN0cmVhbVN0YXRzGtABCgtPdXRib3VuZFJ0cBIoCgNydGMY", - "ASABKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0Y", - "AiABKAsyHS5saXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEi8KBHNlbnQY", - "AyABKAsyIS5saXZla2l0LnByb3RvLlNlbnRSdHBTdHJlYW1TdGF0cxI3Cghv", - "dXRib3VuZBgEIAEoCzIlLmxpdmVraXQucHJvdG8uT3V0Ym91bmRSdHBTdHJl", - "YW1TdGF0cxroAQoQUmVtb3RlSW5ib3VuZFJ0cBIoCgNydGMYASABKAsyGy5s", - "aXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0YAiABKAsyHS5s", - "aXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEjcKCHJlY2VpdmVkGAMgASgL", + "ASACKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0Y", + "AiACKAsyHS5saXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEi8KBHNlbnQY", + "AyACKAsyIS5saXZla2l0LnByb3RvLlNlbnRSdHBTdHJlYW1TdGF0cxI3Cghv", + "dXRib3VuZBgEIAIoCzIlLmxpdmVraXQucHJvdG8uT3V0Ym91bmRSdHBTdHJl", + "YW1TdGF0cxroAQoQUmVtb3RlSW5ib3VuZFJ0cBIoCgNydGMYASACKAsyGy5s", + "aXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRItCgZzdHJlYW0YAiACKAsyHS5s", + "aXZla2l0LnByb3RvLlJ0cFN0cmVhbVN0YXRzEjcKCHJlY2VpdmVkGAMgAigL", "MiUubGl2ZWtpdC5wcm90by5SZWNlaXZlZFJ0cFN0cmVhbVN0YXRzEkIKDnJl", - "bW90ZV9pbmJvdW5kGAQgASgLMioubGl2ZWtpdC5wcm90by5SZW1vdGVJbmJv", + "bW90ZV9pbmJvdW5kGAQgAigLMioubGl2ZWtpdC5wcm90by5SZW1vdGVJbmJv", "dW5kUnRwU3RyZWFtU3RhdHMa4wEKEVJlbW90ZU91dGJvdW5kUnRwEigKA3J0", - "YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0KBnN0cmVh", - "bRgCIAEoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMSLwoEc2Vu", - "dBgDIAEoCzIhLmxpdmVraXQucHJvdG8uU2VudFJ0cFN0cmVhbVN0YXRzEkQK", - "D3JlbW90ZV9vdXRib3VuZBgEIAEoCzIrLmxpdmVraXQucHJvdG8uUmVtb3Rl", + "YxgBIAIoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEi0KBnN0cmVh", + "bRgCIAIoCzIdLmxpdmVraXQucHJvdG8uUnRwU3RyZWFtU3RhdHMSLwoEc2Vu", + "dBgDIAIoCzIhLmxpdmVraXQucHJvdG8uU2VudFJ0cFN0cmVhbVN0YXRzEkQK", + "D3JlbW90ZV9vdXRib3VuZBgEIAIoCzIrLmxpdmVraXQucHJvdG8uUmVtb3Rl", "T3V0Ym91bmRSdHBTdHJlYW1TdGF0cxrIAQoLTWVkaWFTb3VyY2USKAoDcnRj", - "GAEgASgLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESLwoGc291cmNl", - "GAIgASgLMh8ubGl2ZWtpdC5wcm90by5NZWRpYVNvdXJjZVN0YXRzEi4KBWF1", - "ZGlvGAMgASgLMh8ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVN0YXRzEi4K", - "BXZpZGVvGAQgASgLMh8ubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVN0YXRz", - "GnEKDE1lZGlhUGxheW91dBIoCgNydGMYASABKAsyGy5saXZla2l0LnByb3Rv", - "LlJ0Y1N0YXRzRGF0YRI3Cg1hdWRpb19wbGF5b3V0GAIgASgLMiAubGl2ZWtp", + "GAEgAigLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESLwoGc291cmNl", + "GAIgAigLMh8ubGl2ZWtpdC5wcm90by5NZWRpYVNvdXJjZVN0YXRzEi4KBWF1", + "ZGlvGAMgAigLMh8ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVN0YXRzEi4K", + "BXZpZGVvGAQgAigLMh8ubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVN0YXRz", + "GnEKDE1lZGlhUGxheW91dBIoCgNydGMYASACKAsyGy5saXZla2l0LnByb3Rv", + "LlJ0Y1N0YXRzRGF0YRI3Cg1hdWRpb19wbGF5b3V0GAIgAigLMiAubGl2ZWtp", "dC5wcm90by5BdWRpb1BsYXlvdXRTdGF0cxpqCg5QZWVyQ29ubmVjdGlvbhIo", - "CgNydGMYASABKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRIuCgJw", - "YxgCIAEoCzIiLmxpdmVraXQucHJvdG8uUGVlckNvbm5lY3Rpb25TdGF0cxpk", - "CgtEYXRhQ2hhbm5lbBIoCgNydGMYASABKAsyGy5saXZla2l0LnByb3RvLlJ0", - "Y1N0YXRzRGF0YRIrCgJkYxgCIAEoCzIfLmxpdmVraXQucHJvdG8uRGF0YUNo", - "YW5uZWxTdGF0cxpnCglUcmFuc3BvcnQSKAoDcnRjGAEgASgLMhsubGl2ZWtp", - "dC5wcm90by5SdGNTdGF0c0RhdGESMAoJdHJhbnNwb3J0GAIgASgLMh0ubGl2", + "CgNydGMYASACKAsyGy5saXZla2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRIuCgJw", + "YxgCIAIoCzIiLmxpdmVraXQucHJvdG8uUGVlckNvbm5lY3Rpb25TdGF0cxpk", + "CgtEYXRhQ2hhbm5lbBIoCgNydGMYASACKAsyGy5saXZla2l0LnByb3RvLlJ0", + "Y1N0YXRzRGF0YRIrCgJkYxgCIAIoCzIfLmxpdmVraXQucHJvdG8uRGF0YUNo", + "YW5uZWxTdGF0cxpnCglUcmFuc3BvcnQSKAoDcnRjGAEgAigLMhsubGl2ZWtp", + "dC5wcm90by5SdGNTdGF0c0RhdGESMAoJdHJhbnNwb3J0GAIgAigLMh0ubGl2", "ZWtpdC5wcm90by5UcmFuc3BvcnRTdGF0cxp0Cg1DYW5kaWRhdGVQYWlyEigK", - "A3J0YxgBIAEoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEjkKDmNh", - "bmRpZGF0ZV9wYWlyGAIgASgLMiEubGl2ZWtpdC5wcm90by5DYW5kaWRhdGVQ", - "YWlyU3RhdHMabwoOTG9jYWxDYW5kaWRhdGUSKAoDcnRjGAEgASgLMhsubGl2", - "ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESMwoJY2FuZGlkYXRlGAIgASgLMiAu", + "A3J0YxgBIAIoCzIbLmxpdmVraXQucHJvdG8uUnRjU3RhdHNEYXRhEjkKDmNh", + "bmRpZGF0ZV9wYWlyGAIgAigLMiEubGl2ZWtpdC5wcm90by5DYW5kaWRhdGVQ", + "YWlyU3RhdHMabwoOTG9jYWxDYW5kaWRhdGUSKAoDcnRjGAEgAigLMhsubGl2", + "ZWtpdC5wcm90by5SdGNTdGF0c0RhdGESMwoJY2FuZGlkYXRlGAIgAigLMiAu", "bGl2ZWtpdC5wcm90by5JY2VDYW5kaWRhdGVTdGF0cxpwCg9SZW1vdGVDYW5k", - "aWRhdGUSKAoDcnRjGAEgASgLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0Rh", - "dGESMwoJY2FuZGlkYXRlGAIgASgLMiAubGl2ZWtpdC5wcm90by5JY2VDYW5k", - "aWRhdGVTdGF0cxptCgtDZXJ0aWZpY2F0ZRIoCgNydGMYASABKAsyGy5saXZl", - "a2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRI0CgtjZXJ0aWZpY2F0ZRgCIAEoCzIf", + "aWRhdGUSKAoDcnRjGAEgAigLMhsubGl2ZWtpdC5wcm90by5SdGNTdGF0c0Rh", + "dGESMwoJY2FuZGlkYXRlGAIgAigLMiAubGl2ZWtpdC5wcm90by5JY2VDYW5k", + "aWRhdGVTdGF0cxptCgtDZXJ0aWZpY2F0ZRIoCgNydGMYASACKAsyGy5saXZl", + "a2l0LnByb3RvLlJ0Y1N0YXRzRGF0YRI0CgtjZXJ0aWZpY2F0ZRgCIAIoCzIf", "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", + "dGF0cyItCgxSdGNTdGF0c0RhdGESCgoCaWQYASACKAkSEQoJdGltZXN0YW1w", + "GAIgAigDIogBCgpDb2RlY1N0YXRzEhQKDHBheWxvYWRfdHlwZRgBIAIoDRIU", + "Cgx0cmFuc3BvcnRfaWQYAiACKAkSEQoJbWltZV90eXBlGAMgAigJEhIKCmNs", + "b2NrX3JhdGUYBCACKA0SEAoIY2hhbm5lbHMYBSACKA0SFQoNc2RwX2ZtdHBf", + "bGluZRgGIAIoCSJUCg5SdHBTdHJlYW1TdGF0cxIMCgRzc3JjGAEgAigNEgwK", + "BGtpbmQYAiACKAkSFAoMdHJhbnNwb3J0X2lkGAMgAigJEhAKCGNvZGVjX2lk", + "GAQgAigJIlgKFlJlY2VpdmVkUnRwU3RyZWFtU3RhdHMSGAoQcGFja2V0c19y", + "ZWNlaXZlZBgBIAIoBBIUCgxwYWNrZXRzX2xvc3QYAiACKAMSDgoGaml0dGVy", + "GAMgAigBIoIMChVJbmJvdW5kUnRwU3RyZWFtU3RhdHMSGAoQdHJhY2tfaWRl", + "bnRpZmllchgBIAIoCRILCgNtaWQYAiACKAkSEQoJcmVtb3RlX2lkGAMgAigJ", + "EhYKDmZyYW1lc19kZWNvZGVkGAQgAigNEhoKEmtleV9mcmFtZXNfZGVjb2Rl", + "ZBgFIAIoDRIXCg9mcmFtZXNfcmVuZGVyZWQYBiACKA0SFgoOZnJhbWVzX2Ry", + "b3BwZWQYByACKA0SEwoLZnJhbWVfd2lkdGgYCCACKA0SFAoMZnJhbWVfaGVp", + "Z2h0GAkgAigNEhkKEWZyYW1lc19wZXJfc2Vjb25kGAogAigBEg4KBnFwX3N1", + "bRgLIAIoBBIZChF0b3RhbF9kZWNvZGVfdGltZRgMIAIoARIfChd0b3RhbF9p", + "bnRlcl9mcmFtZV9kZWxheRgNIAIoARInCh90b3RhbF9zcXVhcmVkX2ludGVy", + "X2ZyYW1lX2RlbGF5GA4gAigBEhMKC3BhdXNlX2NvdW50GA8gAigNEhwKFHRv", + "dGFsX3BhdXNlX2R1cmF0aW9uGBAgAigBEhQKDGZyZWV6ZV9jb3VudBgRIAIo", + "DRIdChV0b3RhbF9mcmVlemVfZHVyYXRpb24YEiACKAESJgoebGFzdF9wYWNr", + "ZXRfcmVjZWl2ZWRfdGltZXN0YW1wGBMgAigBEh0KFWhlYWRlcl9ieXRlc19y", + "ZWNlaXZlZBgUIAIoBBIZChFwYWNrZXRzX2Rpc2NhcmRlZBgVIAIoBBIaChJm", + "ZWNfYnl0ZXNfcmVjZWl2ZWQYFiACKAQSHAoUZmVjX3BhY2tldHNfcmVjZWl2", + "ZWQYFyACKAQSHQoVZmVjX3BhY2tldHNfZGlzY2FyZGVkGBggAigEEhYKDmJ5", + "dGVzX3JlY2VpdmVkGBkgAigEEhIKCm5hY2tfY291bnQYGiACKA0SEQoJZmly", + "X2NvdW50GBsgAigNEhEKCXBsaV9jb3VudBgcIAIoDRIeChZ0b3RhbF9wcm9j", + "ZXNzaW5nX2RlbGF5GB0gAigBEiMKG2VzdGltYXRlZF9wbGF5b3V0X3RpbWVz", + "dGFtcBgeIAIoARIbChNqaXR0ZXJfYnVmZmVyX2RlbGF5GB8gAigBEiIKGmpp", + "dHRlcl9idWZmZXJfdGFyZ2V0X2RlbGF5GCAgAigBEiMKG2ppdHRlcl9idWZm", + "ZXJfZW1pdHRlZF9jb3VudBghIAIoBBIjChtqaXR0ZXJfYnVmZmVyX21pbmlt", + "dW1fZGVsYXkYIiACKAESHgoWdG90YWxfc2FtcGxlc19yZWNlaXZlZBgjIAIo", + "BBIZChFjb25jZWFsZWRfc2FtcGxlcxgkIAIoBBIgChhzaWxlbnRfY29uY2Vh", + "bGVkX3NhbXBsZXMYJSACKAQSGgoSY29uY2VhbG1lbnRfZXZlbnRzGCYgAigE", + "EikKIWluc2VydGVkX3NhbXBsZXNfZm9yX2RlY2VsZXJhdGlvbhgnIAIoBBIo", + "CiByZW1vdmVkX3NhbXBsZXNfZm9yX2FjY2VsZXJhdGlvbhgoIAIoBBITCgth", + "dWRpb19sZXZlbBgpIAIoARIaChJ0b3RhbF9hdWRpb19lbmVyZ3kYKiACKAES", + "HgoWdG90YWxfc2FtcGxlc19kdXJhdGlvbhgrIAIoARIXCg9mcmFtZXNfcmVj", + "ZWl2ZWQYLCACKAQSHgoWZGVjb2Rlcl9pbXBsZW1lbnRhdGlvbhgtIAIoCRIS", + "CgpwbGF5b3V0X2lkGC4gAigJEh8KF3Bvd2VyX2VmZmljaWVudF9kZWNvZGVy", + "GC8gAigIEi4KJmZyYW1lc19hc3NlbWJsZWRfZnJvbV9tdWx0aXBsZV9wYWNr", + "ZXRzGDAgAigEEhsKE3RvdGFsX2Fzc2VtYmx5X3RpbWUYMSACKAESJgoecmV0", + "cmFuc21pdHRlZF9wYWNrZXRzX3JlY2VpdmVkGDIgAigEEiQKHHJldHJhbnNt", + "aXR0ZWRfYnl0ZXNfcmVjZWl2ZWQYMyACKAQSEAoIcnR4X3NzcmMYNCACKA0S", + "EAoIZmVjX3NzcmMYNSACKA0iPgoSU2VudFJ0cFN0cmVhbVN0YXRzEhQKDHBh", + "Y2tldHNfc2VudBgBIAIoBBISCgpieXRlc19zZW50GAIgAigEItEHChZPdXRi", + "b3VuZFJ0cFN0cmVhbVN0YXRzEgsKA21pZBgBIAIoCRIXCg9tZWRpYV9zb3Vy", + "Y2VfaWQYAiACKAkSEQoJcmVtb3RlX2lkGAMgAigJEgsKA3JpZBgEIAIoCRIZ", + "ChFoZWFkZXJfYnl0ZXNfc2VudBgFIAIoBBIiChpyZXRyYW5zbWl0dGVkX3Bh", + "Y2tldHNfc2VudBgGIAIoBBIgChhyZXRyYW5zbWl0dGVkX2J5dGVzX3NlbnQY", + "ByACKAQSEAoIcnR4X3NzcmMYCCACKA0SFgoOdGFyZ2V0X2JpdHJhdGUYCSAC", + "KAESIgoadG90YWxfZW5jb2RlZF9ieXRlc190YXJnZXQYCiACKAQSEwoLZnJh", + "bWVfd2lkdGgYCyACKA0SFAoMZnJhbWVfaGVpZ2h0GAwgAigNEhkKEWZyYW1l", + "c19wZXJfc2Vjb25kGA0gAigBEhMKC2ZyYW1lc19zZW50GA4gAigNEhgKEGh1", + "Z2VfZnJhbWVzX3NlbnQYDyACKA0SFgoOZnJhbWVzX2VuY29kZWQYECACKA0S", + "GgoSa2V5X2ZyYW1lc19lbmNvZGVkGBEgAigNEg4KBnFwX3N1bRgSIAIoBBIZ", + "ChF0b3RhbF9lbmNvZGVfdGltZRgTIAIoARIfChd0b3RhbF9wYWNrZXRfc2Vu", + "ZF9kZWxheRgUIAIoARJJChlxdWFsaXR5X2xpbWl0YXRpb25fcmVhc29uGBUg", + "AigOMiYubGl2ZWtpdC5wcm90by5RdWFsaXR5TGltaXRhdGlvblJlYXNvbhJr", "ChxxdWFsaXR5X2xpbWl0YXRpb25fZHVyYXRpb25zGBYgAygLMkUubGl2ZWtp", "dC5wcm90by5PdXRib3VuZFJ0cFN0cmVhbVN0YXRzLlF1YWxpdHlMaW1pdGF0", "aW9uRHVyYXRpb25zRW50cnkSLQolcXVhbGl0eV9saW1pdGF0aW9uX3Jlc29s", - "dXRpb25fY2hhbmdlcxgXIAEoDRISCgpuYWNrX2NvdW50GBggASgNEhEKCWZp", - "cl9jb3VudBgZIAEoDRIRCglwbGlfY291bnQYGiABKA0SHgoWZW5jb2Rlcl9p", - "bXBsZW1lbnRhdGlvbhgbIAEoCRIfChdwb3dlcl9lZmZpY2llbnRfZW5jb2Rl", - "chgcIAEoCBIOCgZhY3RpdmUYHSABKAgSGAoQc2NhbGliaWxpdHlfbW9kZRge", - "IAEoCRpBCh9RdWFsaXR5TGltaXRhdGlvbkR1cmF0aW9uc0VudHJ5EgsKA2tl", + "dXRpb25fY2hhbmdlcxgXIAIoDRISCgpuYWNrX2NvdW50GBggAigNEhEKCWZp", + "cl9jb3VudBgZIAIoDRIRCglwbGlfY291bnQYGiACKA0SHgoWZW5jb2Rlcl9p", + "bXBsZW1lbnRhdGlvbhgbIAIoCRIfChdwb3dlcl9lZmZpY2llbnRfZW5jb2Rl", + "chgcIAIoCBIOCgZhY3RpdmUYHSACKAgSGAoQc2NhbGFiaWxpdHlfbW9kZRge", + "IAIoCRpBCh9RdWFsaXR5TGltaXRhdGlvbkR1cmF0aW9uc0VudHJ5EgsKA2tl", "eRgBIAEoCRINCgV2YWx1ZRgCIAEoAToCOAEipAEKG1JlbW90ZUluYm91bmRS", - "dHBTdHJlYW1TdGF0cxIQCghsb2NhbF9pZBgBIAEoCRIXCg9yb3VuZF90cmlw", - "X3RpbWUYAiABKAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAMgASgBEhUK", - "DWZyYWN0aW9uX2xvc3QYBCABKAESJAoccm91bmRfdHJpcF90aW1lX21lYXN1", - "cmVtZW50cxgFIAEoBCK+AQocUmVtb3RlT3V0Ym91bmRSdHBTdHJlYW1TdGF0", - "cxIQCghsb2NhbF9pZBgBIAEoCRIYChByZW1vdGVfdGltZXN0YW1wGAIgASgB", - "EhQKDHJlcG9ydHNfc2VudBgDIAEoBBIXCg9yb3VuZF90cmlwX3RpbWUYBCAB", - "KAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAUgASgBEiQKHHJvdW5kX3Ry", - "aXBfdGltZV9tZWFzdXJlbWVudHMYBiABKAQiOgoQTWVkaWFTb3VyY2VTdGF0", - "cxIYChB0cmFja19pZGVudGlmaWVyGAEgASgJEgwKBGtpbmQYAiABKAkiogIK", - "EEF1ZGlvU291cmNlU3RhdHMSEwoLYXVkaW9fbGV2ZWwYASABKAESGgoSdG90", - "YWxfYXVkaW9fZW5lcmd5GAIgASgBEh4KFnRvdGFsX3NhbXBsZXNfZHVyYXRp", - "b24YAyABKAESGAoQZWNob19yZXR1cm5fbG9zcxgEIAEoARIkChxlY2hvX3Jl", - "dHVybl9sb3NzX2VuaGFuY2VtZW50GAUgASgBEiAKGGRyb3BwZWRfc2FtcGxl", - "c19kdXJhdGlvbhgGIAEoARIeChZkcm9wcGVkX3NhbXBsZXNfZXZlbnRzGAcg", - "ASgNEhsKE3RvdGFsX2NhcHR1cmVfZGVsYXkYCCABKAESHgoWdG90YWxfc2Ft", - "cGxlc19jYXB0dXJlZBgJIAEoBCJcChBWaWRlb1NvdXJjZVN0YXRzEg0KBXdp", - "ZHRoGAEgASgNEg4KBmhlaWdodBgCIAEoDRIOCgZmcmFtZXMYAyABKA0SGQoR", - "ZnJhbWVzX3Blcl9zZWNvbmQYBCABKAEixQEKEUF1ZGlvUGxheW91dFN0YXRz", - "EgwKBGtpbmQYASABKAkSJAocc3ludGhlc2l6ZWRfc2FtcGxlc19kdXJhdGlv", - "bhgCIAEoARIiChpzeW50aGVzaXplZF9zYW1wbGVzX2V2ZW50cxgDIAEoDRIe", - "ChZ0b3RhbF9zYW1wbGVzX2R1cmF0aW9uGAQgASgBEhsKE3RvdGFsX3BsYXlv", - "dXRfZGVsYXkYBSABKAESGwoTdG90YWxfc2FtcGxlc19jb3VudBgGIAEoBCJR", + "dHBTdHJlYW1TdGF0cxIQCghsb2NhbF9pZBgBIAIoCRIXCg9yb3VuZF90cmlw", + "X3RpbWUYAiACKAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAMgAigBEhUK", + "DWZyYWN0aW9uX2xvc3QYBCACKAESJAoccm91bmRfdHJpcF90aW1lX21lYXN1", + "cmVtZW50cxgFIAIoBCK+AQocUmVtb3RlT3V0Ym91bmRSdHBTdHJlYW1TdGF0", + "cxIQCghsb2NhbF9pZBgBIAIoCRIYChByZW1vdGVfdGltZXN0YW1wGAIgAigB", + "EhQKDHJlcG9ydHNfc2VudBgDIAIoBBIXCg9yb3VuZF90cmlwX3RpbWUYBCAC", + "KAESHQoVdG90YWxfcm91bmRfdHJpcF90aW1lGAUgAigBEiQKHHJvdW5kX3Ry", + "aXBfdGltZV9tZWFzdXJlbWVudHMYBiACKAQiOgoQTWVkaWFTb3VyY2VTdGF0", + "cxIYChB0cmFja19pZGVudGlmaWVyGAEgAigJEgwKBGtpbmQYAiACKAkiogIK", + "EEF1ZGlvU291cmNlU3RhdHMSEwoLYXVkaW9fbGV2ZWwYASACKAESGgoSdG90", + "YWxfYXVkaW9fZW5lcmd5GAIgAigBEh4KFnRvdGFsX3NhbXBsZXNfZHVyYXRp", + "b24YAyACKAESGAoQZWNob19yZXR1cm5fbG9zcxgEIAIoARIkChxlY2hvX3Jl", + "dHVybl9sb3NzX2VuaGFuY2VtZW50GAUgAigBEiAKGGRyb3BwZWRfc2FtcGxl", + "c19kdXJhdGlvbhgGIAIoARIeChZkcm9wcGVkX3NhbXBsZXNfZXZlbnRzGAcg", + "AigNEhsKE3RvdGFsX2NhcHR1cmVfZGVsYXkYCCACKAESHgoWdG90YWxfc2Ft", + "cGxlc19jYXB0dXJlZBgJIAIoBCJcChBWaWRlb1NvdXJjZVN0YXRzEg0KBXdp", + "ZHRoGAEgAigNEg4KBmhlaWdodBgCIAIoDRIOCgZmcmFtZXMYAyACKA0SGQoR", + "ZnJhbWVzX3Blcl9zZWNvbmQYBCACKAEixQEKEUF1ZGlvUGxheW91dFN0YXRz", + "EgwKBGtpbmQYASACKAkSJAocc3ludGhlc2l6ZWRfc2FtcGxlc19kdXJhdGlv", + "bhgCIAIoARIiChpzeW50aGVzaXplZF9zYW1wbGVzX2V2ZW50cxgDIAIoDRIe", + "ChZ0b3RhbF9zYW1wbGVzX2R1cmF0aW9uGAQgAigBEhsKE3RvdGFsX3BsYXlv", + "dXRfZGVsYXkYBSACKAESGwoTdG90YWxfc2FtcGxlc19jb3VudBgGIAIoBCJR", "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", + "GAEgAigNEhwKFGRhdGFfY2hhbm5lbHNfY2xvc2VkGAIgAigNIuIBChBEYXRh", + "Q2hhbm5lbFN0YXRzEg0KBWxhYmVsGAEgAigJEhAKCHByb3RvY29sGAIgAigJ", + "Eh8KF2RhdGFfY2hhbm5lbF9pZGVudGlmaWVyGAMgAigFEi4KBXN0YXRlGAQg", + "ASgOMh8ubGl2ZWtpdC5wcm90by5EYXRhQ2hhbm5lbFN0YXRlEhUKDW1lc3Nh", + "Z2VzX3NlbnQYBSACKA0SEgoKYnl0ZXNfc2VudBgGIAIoBBIZChFtZXNzYWdl", + "c19yZWNlaXZlZBgHIAIoDRIWCg5ieXRlc19yZWNlaXZlZBgIIAIoBCKcBAoO", + "VHJhbnNwb3J0U3RhdHMSFAoMcGFja2V0c19zZW50GAEgAigEEhgKEHBhY2tl", + "dHNfcmVjZWl2ZWQYAiACKAQSEgoKYnl0ZXNfc2VudBgDIAIoBBIWCg5ieXRl", + "c19yZWNlaXZlZBgEIAIoBBIoCghpY2Vfcm9sZRgFIAIoDjIWLmxpdmVraXQu", + "cHJvdG8uSWNlUm9sZRIjChtpY2VfbG9jYWxfdXNlcm5hbWVfZnJhZ21lbnQY", + "BiACKAkSNQoKZHRsc19zdGF0ZRgHIAEoDjIhLmxpdmVraXQucHJvdG8uRHRs", + "c1RyYW5zcG9ydFN0YXRlEjMKCWljZV9zdGF0ZRgIIAEoDjIgLmxpdmVraXQu", + "cHJvdG8uSWNlVHJhbnNwb3J0U3RhdGUSIgoac2VsZWN0ZWRfY2FuZGlkYXRl", + "X3BhaXJfaWQYCSACKAkSHAoUbG9jYWxfY2VydGlmaWNhdGVfaWQYCiACKAkS", + "HQoVcmVtb3RlX2NlcnRpZmljYXRlX2lkGAsgAigJEhMKC3Rsc192ZXJzaW9u", + "GAwgAigJEhMKC2R0bHNfY2lwaGVyGA0gAigJEioKCWR0bHNfcm9sZRgOIAIo", + "DjIXLmxpdmVraXQucHJvdG8uRHRsc1JvbGUSEwoLc3J0cF9jaXBoZXIYDyAC", + "KAkSJwofc2VsZWN0ZWRfY2FuZGlkYXRlX3BhaXJfY2hhbmdlcxgQIAIoDSKk", + "BQoSQ2FuZGlkYXRlUGFpclN0YXRzEhQKDHRyYW5zcG9ydF9pZBgBIAIoCRIa", + "ChJsb2NhbF9jYW5kaWRhdGVfaWQYAiACKAkSGwoTcmVtb3RlX2NhbmRpZGF0", + "ZV9pZBgDIAIoCRIzCgVzdGF0ZRgEIAEoDjIkLmxpdmVraXQucHJvdG8uSWNl", + "Q2FuZGlkYXRlUGFpclN0YXRlEhEKCW5vbWluYXRlZBgFIAIoCBIUCgxwYWNr", + "ZXRzX3NlbnQYBiACKAQSGAoQcGFja2V0c19yZWNlaXZlZBgHIAIoBBISCgpi", + "eXRlc19zZW50GAggAigEEhYKDmJ5dGVzX3JlY2VpdmVkGAkgAigEEiIKGmxh", + "c3RfcGFja2V0X3NlbnRfdGltZXN0YW1wGAogAigBEiYKHmxhc3RfcGFja2V0", + "X3JlY2VpdmVkX3RpbWVzdGFtcBgLIAIoARIdChV0b3RhbF9yb3VuZF90cmlw", + "X3RpbWUYDCACKAESHwoXY3VycmVudF9yb3VuZF90cmlwX3RpbWUYDSACKAES", + "IgoaYXZhaWxhYmxlX291dGdvaW5nX2JpdHJhdGUYDiACKAESIgoaYXZhaWxh", + "YmxlX2luY29taW5nX2JpdHJhdGUYDyACKAESGQoRcmVxdWVzdHNfcmVjZWl2", + "ZWQYECACKAQSFQoNcmVxdWVzdHNfc2VudBgRIAIoBBIaChJyZXNwb25zZXNf", + "cmVjZWl2ZWQYEiACKAQSFgoOcmVzcG9uc2VzX3NlbnQYEyACKAQSHQoVY29u", + "c2VudF9yZXF1ZXN0c19zZW50GBQgAigEEiEKGXBhY2tldHNfZGlzY2FyZGVk", + "X29uX3NlbmQYFSACKA0SHwoXYnl0ZXNfZGlzY2FyZGVkX29uX3NlbmQYFiAC", + "KAQiiQMKEUljZUNhbmRpZGF0ZVN0YXRzEhQKDHRyYW5zcG9ydF9pZBgBIAIo", + "CRIPCgdhZGRyZXNzGAIgAigJEgwKBHBvcnQYAyACKAUSEAoIcHJvdG9jb2wY", + "BCACKAkSNwoOY2FuZGlkYXRlX3R5cGUYBSABKA4yHy5saXZla2l0LnByb3Rv", + "LkljZUNhbmRpZGF0ZVR5cGUSEAoIcHJpb3JpdHkYBiACKAUSCwoDdXJsGAcg", + "AigJEkEKDnJlbGF5X3Byb3RvY29sGAggASgOMikubGl2ZWtpdC5wcm90by5J", + "Y2VTZXJ2ZXJUcmFuc3BvcnRQcm90b2NvbBISCgpmb3VuZGF0aW9uGAkgAigJ", + "EhcKD3JlbGF0ZWRfYWRkcmVzcxgKIAIoCRIUCgxyZWxhdGVkX3BvcnQYCyAC", + "KAUSGQoRdXNlcm5hbWVfZnJhZ21lbnQYDCACKAkSNAoIdGNwX3R5cGUYDSAB", + "KA4yIi5saXZla2l0LnByb3RvLkljZVRjcENhbmRpZGF0ZVR5cGUigQEKEENl", + "cnRpZmljYXRlU3RhdHMSEwoLZmluZ2VycHJpbnQYASACKAkSHQoVZmluZ2Vy", + "cHJpbnRfYWxnb3JpdGhtGAIgAigJEhoKEmJhc2U2NF9jZXJ0aWZpY2F0ZRgD", + "IAIoCRIdChVpc3N1ZXJfY2VydGlmaWNhdGVfaWQYBCACKAkqUQoQRGF0YUNo", "YW5uZWxTdGF0ZRIRCg1EQ19DT05ORUNUSU5HEAASCwoHRENfT1BFThABEg4K", "CkRDX0NMT1NJTkcQAhINCglEQ19DTE9TRUQQAypyChdRdWFsaXR5TGltaXRh", "dGlvblJlYXNvbhITCg9MSU1JVEFUSU9OX05PTkUQABISCg5MSU1JVEFUSU9O", @@ -252,7 +249,7 @@ static StatsReflection() { "b3J0UHJvdG9jb2wSEQoNVFJBTlNQT1JUX1VEUBAAEhEKDVRSQU5TUE9SVF9U", "Q1AQARIRCg1UUkFOU1BPUlRfVExTEAIqVAoTSWNlVGNwQ2FuZGlkYXRlVHlw", "ZRIUChBDQU5ESURBVEVfQUNUSVZFEAASFQoRQ0FORElEQVRFX1BBU1NJVkUQ", - "ARIQCgxDQU5ESURBVEVfU08QAkIQqgINTGl2ZUtpdC5Qcm90b2IGcHJvdG8z")); + "ARIQCgxDQU5ESURBVEVfU08QAkIQqgINTGl2ZUtpdC5Qcm90bw==")); 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[] { @@ -277,7 +274,7 @@ static StatsReflection() { 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.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", "ScalabilityMode" }, 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), @@ -285,10 +282,10 @@ static StatsReflection() { 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.DataChannelStats), global::LiveKit.Proto.DataChannelStats.Parser, new[]{ "Label", "Protocol", "DataChannelIdentifier", "State", "MessagesSent", "BytesSent", "MessagesReceived", "BytesReceived" }, null, 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" }, null, 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" }, null, 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" }, null, 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) })); } @@ -1049,7 +1046,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1199,7 +1200,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1539,7 +1544,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1568,7 +1577,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1848,7 +1861,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1891,7 +1908,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2185,7 +2206,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2228,7 +2253,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2522,7 +2551,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2565,7 +2598,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2859,7 +2896,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2902,7 +2943,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3196,7 +3241,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3239,7 +3288,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3469,7 +3522,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3498,7 +3555,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3714,7 +3775,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3743,7 +3808,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3959,7 +4028,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3988,7 +4061,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4204,7 +4281,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4233,7 +4314,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4449,7 +4534,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4478,7 +4567,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4694,7 +4787,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4723,7 +4820,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4939,7 +5040,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4968,7 +5073,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5184,7 +5293,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5213,7 +5326,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5368,7 +5485,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5383,7 +5504,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5407,6 +5532,7 @@ public sealed partial class RtcStatsData : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtcStatsData()); 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; } } @@ -5434,6 +5560,7 @@ public RtcStatsData() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RtcStatsData(RtcStatsData other) : this() { + _hasBits0 = other._hasBits0; id_ = other.id_; timestamp_ = other.timestamp_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5447,27 +5574,56 @@ public RtcStatsData Clone() { /// Field number for the "id" field. public const int IdFieldNumber = 1; - private string id_ = ""; + private readonly static string IdDefaultValue = ""; + + private string id_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { - get { return id_; } + get { return id_ ?? IdDefaultValue; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return id_ != null; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + id_ = null; + } /// Field number for the "timestamp" field. public const int TimestampFieldNumber = 2; + private readonly static long TimestampDefaultValue = 0L; + private long timestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Timestamp { - get { return timestamp_; } + get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } set { + _hasBits0 |= 1; timestamp_ = value; } } + /// Gets whether the "timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestamp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestamp() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5493,8 +5649,8 @@ public bool Equals(RtcStatsData other) { [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 (HasId) hash ^= Id.GetHashCode(); + if (HasTimestamp) hash ^= Timestamp.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5513,11 +5669,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Id.Length != 0) { + if (HasId) { output.WriteRawTag(10); output.WriteString(Id); } - if (Timestamp != 0L) { + if (HasTimestamp) { output.WriteRawTag(16); output.WriteInt64(Timestamp); } @@ -5531,11 +5687,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + if (HasId) { output.WriteRawTag(10); output.WriteString(Id); } - if (Timestamp != 0L) { + if (HasTimestamp) { output.WriteRawTag(16); output.WriteInt64(Timestamp); } @@ -5549,10 +5705,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Id.Length != 0) { + if (HasId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Timestamp != 0L) { + if (HasTimestamp) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); } if (_unknownFields != null) { @@ -5567,10 +5723,10 @@ public void MergeFrom(RtcStatsData other) { if (other == null) { return; } - if (other.Id.Length != 0) { + if (other.HasId) { Id = other.Id; } - if (other.Timestamp != 0L) { + if (other.HasTimestamp) { Timestamp = other.Timestamp; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5584,7 +5740,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5607,7 +5767,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5634,6 +5798,7 @@ public sealed partial class CodecStats : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodecStats()); 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; } } @@ -5661,6 +5826,7 @@ public CodecStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CodecStats(CodecStats other) : this() { + _hasBits0 = other._hasBits0; payloadType_ = other.payloadType_; transportId_ = other.transportId_; mimeType_ = other.mimeType_; @@ -5678,75 +5844,162 @@ public CodecStats Clone() { /// Field number for the "payload_type" field. public const int PayloadTypeFieldNumber = 1; + private readonly static uint PayloadTypeDefaultValue = 0; + private uint payloadType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PayloadType { - get { return payloadType_; } + get { if ((_hasBits0 & 1) != 0) { return payloadType_; } else { return PayloadTypeDefaultValue; } } set { + _hasBits0 |= 1; payloadType_ = value; } } + /// Gets whether the "payload_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPayloadType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "payload_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPayloadType() { + _hasBits0 &= ~1; + } /// Field number for the "transport_id" field. public const int TransportIdFieldNumber = 2; - private string transportId_ = ""; + private readonly static string TransportIdDefaultValue = ""; + + private string transportId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TransportId { - get { return transportId_; } + get { return transportId_ ?? TransportIdDefaultValue; } set { transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "transport_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTransportId { + get { return transportId_ != null; } + } + /// Clears the value of the "transport_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTransportId() { + transportId_ = null; + } /// Field number for the "mime_type" field. public const int MimeTypeFieldNumber = 3; - private string mimeType_ = ""; + private readonly static string MimeTypeDefaultValue = ""; + + private string mimeType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MimeType { - get { return mimeType_; } + get { return mimeType_ ?? MimeTypeDefaultValue; } set { mimeType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "mime_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMimeType { + get { return mimeType_ != null; } + } + /// Clears the value of the "mime_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMimeType() { + mimeType_ = null; + } /// Field number for the "clock_rate" field. public const int ClockRateFieldNumber = 4; + private readonly static uint ClockRateDefaultValue = 0; + private uint clockRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ClockRate { - get { return clockRate_; } + get { if ((_hasBits0 & 2) != 0) { return clockRate_; } else { return ClockRateDefaultValue; } } set { + _hasBits0 |= 2; clockRate_ = value; } } + /// Gets whether the "clock_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClockRate { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "clock_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClockRate() { + _hasBits0 &= ~2; + } /// Field number for the "channels" field. public const int ChannelsFieldNumber = 5; + private readonly static uint ChannelsDefaultValue = 0; + private uint channels_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Channels { - get { return channels_; } + get { if ((_hasBits0 & 4) != 0) { return channels_; } else { return ChannelsDefaultValue; } } set { + _hasBits0 |= 4; channels_ = value; } } + /// Gets whether the "channels" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasChannels { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "channels" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearChannels() { + _hasBits0 &= ~4; + } /// Field number for the "sdp_fmtp_line" field. public const int SdpFmtpLineFieldNumber = 6; - private string sdpFmtpLine_ = ""; + private readonly static string SdpFmtpLineDefaultValue = ""; + + private string sdpFmtpLine_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SdpFmtpLine { - get { return sdpFmtpLine_; } + get { return sdpFmtpLine_ ?? SdpFmtpLineDefaultValue; } set { sdpFmtpLine_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "sdp_fmtp_line" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSdpFmtpLine { + get { return sdpFmtpLine_ != null; } + } + /// Clears the value of the "sdp_fmtp_line" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSdpFmtpLine() { + sdpFmtpLine_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5776,12 +6029,12 @@ public bool Equals(CodecStats other) { [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 (HasPayloadType) hash ^= PayloadType.GetHashCode(); + if (HasTransportId) hash ^= TransportId.GetHashCode(); + if (HasMimeType) hash ^= MimeType.GetHashCode(); + if (HasClockRate) hash ^= ClockRate.GetHashCode(); + if (HasChannels) hash ^= Channels.GetHashCode(); + if (HasSdpFmtpLine) hash ^= SdpFmtpLine.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5800,27 +6053,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PayloadType != 0) { + if (HasPayloadType) { output.WriteRawTag(8); output.WriteUInt32(PayloadType); } - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(18); output.WriteString(TransportId); } - if (MimeType.Length != 0) { + if (HasMimeType) { output.WriteRawTag(26); output.WriteString(MimeType); } - if (ClockRate != 0) { + if (HasClockRate) { output.WriteRawTag(32); output.WriteUInt32(ClockRate); } - if (Channels != 0) { + if (HasChannels) { output.WriteRawTag(40); output.WriteUInt32(Channels); } - if (SdpFmtpLine.Length != 0) { + if (HasSdpFmtpLine) { output.WriteRawTag(50); output.WriteString(SdpFmtpLine); } @@ -5834,27 +6087,27 @@ 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 (PayloadType != 0) { + if (HasPayloadType) { output.WriteRawTag(8); output.WriteUInt32(PayloadType); } - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(18); output.WriteString(TransportId); } - if (MimeType.Length != 0) { + if (HasMimeType) { output.WriteRawTag(26); output.WriteString(MimeType); } - if (ClockRate != 0) { + if (HasClockRate) { output.WriteRawTag(32); output.WriteUInt32(ClockRate); } - if (Channels != 0) { + if (HasChannels) { output.WriteRawTag(40); output.WriteUInt32(Channels); } - if (SdpFmtpLine.Length != 0) { + if (HasSdpFmtpLine) { output.WriteRawTag(50); output.WriteString(SdpFmtpLine); } @@ -5868,22 +6121,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PayloadType != 0) { + if (HasPayloadType) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PayloadType); } - if (TransportId.Length != 0) { + if (HasTransportId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); } - if (MimeType.Length != 0) { + if (HasMimeType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MimeType); } - if (ClockRate != 0) { + if (HasClockRate) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClockRate); } - if (Channels != 0) { + if (HasChannels) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Channels); } - if (SdpFmtpLine.Length != 0) { + if (HasSdpFmtpLine) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SdpFmtpLine); } if (_unknownFields != null) { @@ -5898,22 +6151,22 @@ public void MergeFrom(CodecStats other) { if (other == null) { return; } - if (other.PayloadType != 0) { + if (other.HasPayloadType) { PayloadType = other.PayloadType; } - if (other.TransportId.Length != 0) { + if (other.HasTransportId) { TransportId = other.TransportId; } - if (other.MimeType.Length != 0) { + if (other.HasMimeType) { MimeType = other.MimeType; } - if (other.ClockRate != 0) { + if (other.HasClockRate) { ClockRate = other.ClockRate; } - if (other.Channels != 0) { + if (other.HasChannels) { Channels = other.Channels; } - if (other.SdpFmtpLine.Length != 0) { + if (other.HasSdpFmtpLine) { SdpFmtpLine = other.SdpFmtpLine; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5927,7 +6180,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5966,7 +6223,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6009,6 +6270,7 @@ public sealed partial class RtpStreamStats : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtpStreamStats()); 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; } } @@ -6036,6 +6298,7 @@ public RtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RtpStreamStats(RtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; ssrc_ = other.ssrc_; kind_ = other.kind_; transportId_ = other.transportId_; @@ -6051,51 +6314,108 @@ public RtpStreamStats Clone() { /// Field number for the "ssrc" field. public const int SsrcFieldNumber = 1; + private readonly static uint SsrcDefaultValue = 0; + private uint ssrc_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Ssrc { - get { return ssrc_; } + get { if ((_hasBits0 & 1) != 0) { return ssrc_; } else { return SsrcDefaultValue; } } set { + _hasBits0 |= 1; ssrc_ = value; } } + /// Gets whether the "ssrc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSsrc { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "ssrc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSsrc() { + _hasBits0 &= ~1; + } /// Field number for the "kind" field. public const int KindFieldNumber = 2; - private string kind_ = ""; + private readonly static string KindDefaultValue = ""; + + private string kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kind { - get { return kind_; } + get { return kind_ ?? KindDefaultValue; } set { kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return kind_ != null; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + kind_ = null; + } /// Field number for the "transport_id" field. public const int TransportIdFieldNumber = 3; - private string transportId_ = ""; + private readonly static string TransportIdDefaultValue = ""; + + private string transportId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TransportId { - get { return transportId_; } + get { return transportId_ ?? TransportIdDefaultValue; } set { transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "transport_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTransportId { + get { return transportId_ != null; } + } + /// Clears the value of the "transport_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTransportId() { + transportId_ = null; + } /// Field number for the "codec_id" field. public const int CodecIdFieldNumber = 4; - private string codecId_ = ""; + private readonly static string CodecIdDefaultValue = ""; + + private string codecId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CodecId { - get { return codecId_; } + get { return codecId_ ?? CodecIdDefaultValue; } set { codecId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "codec_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCodecId { + get { return codecId_ != null; } + } + /// Clears the value of the "codec_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCodecId() { + codecId_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6123,10 +6443,10 @@ public bool Equals(RtpStreamStats other) { [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 (HasSsrc) hash ^= Ssrc.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); + if (HasTransportId) hash ^= TransportId.GetHashCode(); + if (HasCodecId) hash ^= CodecId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6145,19 +6465,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Ssrc != 0) { + if (HasSsrc) { output.WriteRawTag(8); output.WriteUInt32(Ssrc); } - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(18); output.WriteString(Kind); } - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(26); output.WriteString(TransportId); } - if (CodecId.Length != 0) { + if (HasCodecId) { output.WriteRawTag(34); output.WriteString(CodecId); } @@ -6171,19 +6491,19 @@ 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 (Ssrc != 0) { + if (HasSsrc) { output.WriteRawTag(8); output.WriteUInt32(Ssrc); } - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(18); output.WriteString(Kind); } - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(26); output.WriteString(TransportId); } - if (CodecId.Length != 0) { + if (HasCodecId) { output.WriteRawTag(34); output.WriteString(CodecId); } @@ -6197,16 +6517,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Ssrc != 0) { + if (HasSsrc) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Ssrc); } - if (Kind.Length != 0) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); } - if (TransportId.Length != 0) { + if (HasTransportId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); } - if (CodecId.Length != 0) { + if (HasCodecId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CodecId); } if (_unknownFields != null) { @@ -6221,16 +6541,16 @@ public void MergeFrom(RtpStreamStats other) { if (other == null) { return; } - if (other.Ssrc != 0) { + if (other.HasSsrc) { Ssrc = other.Ssrc; } - if (other.Kind.Length != 0) { + if (other.HasKind) { Kind = other.Kind; } - if (other.TransportId.Length != 0) { + if (other.HasTransportId) { TransportId = other.TransportId; } - if (other.CodecId.Length != 0) { + if (other.HasCodecId) { CodecId = other.CodecId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6244,7 +6564,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6275,7 +6599,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6310,6 +6638,7 @@ public sealed partial class ReceivedRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new ReceivedRtpStreamStats()); 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; } } @@ -6337,6 +6666,7 @@ public ReceivedRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReceivedRtpStreamStats(ReceivedRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; packetsReceived_ = other.packetsReceived_; packetsLost_ = other.packetsLost_; jitter_ = other.jitter_; @@ -6351,39 +6681,84 @@ public ReceivedRtpStreamStats Clone() { /// Field number for the "packets_received" field. public const int PacketsReceivedFieldNumber = 1; + private readonly static ulong PacketsReceivedDefaultValue = 0UL; + private ulong packetsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsReceived { - get { return packetsReceived_; } + get { if ((_hasBits0 & 1) != 0) { return packetsReceived_; } else { return PacketsReceivedDefaultValue; } } set { + _hasBits0 |= 1; packetsReceived_ = value; } } + /// Gets whether the "packets_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsReceived { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "packets_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsReceived() { + _hasBits0 &= ~1; + } /// Field number for the "packets_lost" field. public const int PacketsLostFieldNumber = 2; + private readonly static long PacketsLostDefaultValue = 0L; + private long packetsLost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long PacketsLost { - get { return packetsLost_; } + get { if ((_hasBits0 & 2) != 0) { return packetsLost_; } else { return PacketsLostDefaultValue; } } set { + _hasBits0 |= 2; packetsLost_ = value; } } + /// Gets whether the "packets_lost" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsLost { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "packets_lost" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsLost() { + _hasBits0 &= ~2; + } /// Field number for the "jitter" field. public const int JitterFieldNumber = 3; + private readonly static double JitterDefaultValue = 0D; + private double jitter_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Jitter { - get { return jitter_; } + get { if ((_hasBits0 & 4) != 0) { return jitter_; } else { return JitterDefaultValue; } } set { + _hasBits0 |= 4; jitter_ = value; } } + /// Gets whether the "jitter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJitter { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "jitter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJitter() { + _hasBits0 &= ~4; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -6410,9 +6785,9 @@ public bool Equals(ReceivedRtpStreamStats other) { [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 (HasPacketsReceived) hash ^= PacketsReceived.GetHashCode(); + if (HasPacketsLost) hash ^= PacketsLost.GetHashCode(); + if (HasJitter) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Jitter); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6431,15 +6806,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(8); output.WriteUInt64(PacketsReceived); } - if (PacketsLost != 0L) { + if (HasPacketsLost) { output.WriteRawTag(16); output.WriteInt64(PacketsLost); } - if (Jitter != 0D) { + if (HasJitter) { output.WriteRawTag(25); output.WriteDouble(Jitter); } @@ -6453,15 +6828,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 (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(8); output.WriteUInt64(PacketsReceived); } - if (PacketsLost != 0L) { + if (HasPacketsLost) { output.WriteRawTag(16); output.WriteInt64(PacketsLost); } - if (Jitter != 0D) { + if (HasJitter) { output.WriteRawTag(25); output.WriteDouble(Jitter); } @@ -6475,13 +6850,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); } - if (PacketsLost != 0L) { + if (HasPacketsLost) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(PacketsLost); } - if (Jitter != 0D) { + if (HasJitter) { size += 1 + 8; } if (_unknownFields != null) { @@ -6496,13 +6871,13 @@ public void MergeFrom(ReceivedRtpStreamStats other) { if (other == null) { return; } - if (other.PacketsReceived != 0UL) { + if (other.HasPacketsReceived) { PacketsReceived = other.PacketsReceived; } - if (other.PacketsLost != 0L) { + if (other.HasPacketsLost) { PacketsLost = other.PacketsLost; } - if (other.Jitter != 0D) { + if (other.HasJitter) { Jitter = other.Jitter; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6516,7 +6891,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -6543,7 +6922,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -6574,6 +6957,8 @@ public sealed partial class InboundRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new InboundRtpStreamStats()); private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + private int _hasBits1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } @@ -6601,6 +6986,8 @@ public InboundRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InboundRtpStreamStats(InboundRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; + _hasBits1 = other._hasBits1; trackIdentifier_ = other.trackIdentifier_; mid_ = other.mid_; remoteId_ = other.remoteId_; @@ -6665,639 +7052,1429 @@ public InboundRtpStreamStats Clone() { /// Field number for the "track_identifier" field. public const int TrackIdentifierFieldNumber = 1; - private string trackIdentifier_ = ""; + private readonly static string TrackIdentifierDefaultValue = ""; + + private string trackIdentifier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackIdentifier { - get { return trackIdentifier_; } + get { return trackIdentifier_ ?? TrackIdentifierDefaultValue; } set { trackIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_identifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackIdentifier { + get { return trackIdentifier_ != null; } + } + /// Clears the value of the "track_identifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackIdentifier() { + trackIdentifier_ = null; + } /// Field number for the "mid" field. public const int MidFieldNumber = 2; - private string mid_ = ""; + private readonly static string MidDefaultValue = ""; + + private string mid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Mid { - get { return mid_; } + get { return mid_ ?? MidDefaultValue; } set { mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "mid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMid { + get { return mid_ != null; } + } + /// Clears the value of the "mid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMid() { + mid_ = null; + } /// Field number for the "remote_id" field. public const int RemoteIdFieldNumber = 3; - private string remoteId_ = ""; + private readonly static string RemoteIdDefaultValue = ""; + + private string remoteId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RemoteId { - get { return remoteId_; } + get { return remoteId_ ?? RemoteIdDefaultValue; } set { remoteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "remote_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemoteId { + get { return remoteId_ != null; } + } + /// Clears the value of the "remote_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemoteId() { + remoteId_ = null; + } /// Field number for the "frames_decoded" field. public const int FramesDecodedFieldNumber = 4; + private readonly static uint FramesDecodedDefaultValue = 0; + private uint framesDecoded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FramesDecoded { - get { return framesDecoded_; } + get { if ((_hasBits0 & 1) != 0) { return framesDecoded_; } else { return FramesDecodedDefaultValue; } } set { + _hasBits0 |= 1; framesDecoded_ = value; } } + /// Gets whether the "frames_decoded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesDecoded { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "frames_decoded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesDecoded() { + _hasBits0 &= ~1; + } /// Field number for the "key_frames_decoded" field. public const int KeyFramesDecodedFieldNumber = 5; + private readonly static uint KeyFramesDecodedDefaultValue = 0; + private uint keyFramesDecoded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint KeyFramesDecoded { - get { return keyFramesDecoded_; } + get { if ((_hasBits0 & 2) != 0) { return keyFramesDecoded_; } else { return KeyFramesDecodedDefaultValue; } } set { + _hasBits0 |= 2; keyFramesDecoded_ = value; } } - - /// Field number for the "frames_rendered" field. - public const int FramesRenderedFieldNumber = 6; - private uint framesRendered_; + /// Gets whether the "key_frames_decoded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyFramesDecoded { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "key_frames_decoded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyFramesDecoded() { + _hasBits0 &= ~2; + } + + /// Field number for the "frames_rendered" field. + public const int FramesRenderedFieldNumber = 6; + private readonly static uint FramesRenderedDefaultValue = 0; + + private uint framesRendered_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FramesRendered { - get { return framesRendered_; } + get { if ((_hasBits0 & 4) != 0) { return framesRendered_; } else { return FramesRenderedDefaultValue; } } set { + _hasBits0 |= 4; framesRendered_ = value; } } + /// Gets whether the "frames_rendered" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesRendered { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "frames_rendered" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesRendered() { + _hasBits0 &= ~4; + } /// Field number for the "frames_dropped" field. public const int FramesDroppedFieldNumber = 7; + private readonly static uint FramesDroppedDefaultValue = 0; + private uint framesDropped_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FramesDropped { - get { return framesDropped_; } + get { if ((_hasBits0 & 8) != 0) { return framesDropped_; } else { return FramesDroppedDefaultValue; } } set { + _hasBits0 |= 8; framesDropped_ = value; } } + /// Gets whether the "frames_dropped" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesDropped { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "frames_dropped" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesDropped() { + _hasBits0 &= ~8; + } /// Field number for the "frame_width" field. public const int FrameWidthFieldNumber = 8; + private readonly static uint FrameWidthDefaultValue = 0; + private uint frameWidth_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FrameWidth { - get { return frameWidth_; } + get { if ((_hasBits0 & 16) != 0) { return frameWidth_; } else { return FrameWidthDefaultValue; } } set { + _hasBits0 |= 16; frameWidth_ = value; } } + /// Gets whether the "frame_width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrameWidth { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "frame_width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrameWidth() { + _hasBits0 &= ~16; + } /// Field number for the "frame_height" field. public const int FrameHeightFieldNumber = 9; + private readonly static uint FrameHeightDefaultValue = 0; + private uint frameHeight_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FrameHeight { - get { return frameHeight_; } + get { if ((_hasBits0 & 32) != 0) { return frameHeight_; } else { return FrameHeightDefaultValue; } } set { + _hasBits0 |= 32; frameHeight_ = value; } } + /// Gets whether the "frame_height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrameHeight { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "frame_height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrameHeight() { + _hasBits0 &= ~32; + } /// Field number for the "frames_per_second" field. public const int FramesPerSecondFieldNumber = 10; + private readonly static double FramesPerSecondDefaultValue = 0D; + private double framesPerSecond_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double FramesPerSecond { - get { return framesPerSecond_; } + get { if ((_hasBits0 & 64) != 0) { return framesPerSecond_; } else { return FramesPerSecondDefaultValue; } } set { + _hasBits0 |= 64; framesPerSecond_ = value; } } + /// Gets whether the "frames_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesPerSecond { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "frames_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesPerSecond() { + _hasBits0 &= ~64; + } /// Field number for the "qp_sum" field. public const int QpSumFieldNumber = 11; + private readonly static ulong QpSumDefaultValue = 0UL; + private ulong qpSum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong QpSum { - get { return qpSum_; } + get { if ((_hasBits0 & 128) != 0) { return qpSum_; } else { return QpSumDefaultValue; } } set { + _hasBits0 |= 128; qpSum_ = value; } } + /// Gets whether the "qp_sum" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQpSum { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "qp_sum" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQpSum() { + _hasBits0 &= ~128; + } /// Field number for the "total_decode_time" field. public const int TotalDecodeTimeFieldNumber = 12; + private readonly static double TotalDecodeTimeDefaultValue = 0D; + private double totalDecodeTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalDecodeTime { - get { return totalDecodeTime_; } + get { if ((_hasBits0 & 256) != 0) { return totalDecodeTime_; } else { return TotalDecodeTimeDefaultValue; } } set { + _hasBits0 |= 256; totalDecodeTime_ = value; } } + /// Gets whether the "total_decode_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalDecodeTime { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "total_decode_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalDecodeTime() { + _hasBits0 &= ~256; + } /// Field number for the "total_inter_frame_delay" field. public const int TotalInterFrameDelayFieldNumber = 13; + private readonly static double TotalInterFrameDelayDefaultValue = 0D; + private double totalInterFrameDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalInterFrameDelay { - get { return totalInterFrameDelay_; } + get { if ((_hasBits0 & 512) != 0) { return totalInterFrameDelay_; } else { return TotalInterFrameDelayDefaultValue; } } set { + _hasBits0 |= 512; totalInterFrameDelay_ = value; } } + /// Gets whether the "total_inter_frame_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalInterFrameDelay { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "total_inter_frame_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalInterFrameDelay() { + _hasBits0 &= ~512; + } /// Field number for the "total_squared_inter_frame_delay" field. public const int TotalSquaredInterFrameDelayFieldNumber = 14; + private readonly static double TotalSquaredInterFrameDelayDefaultValue = 0D; + private double totalSquaredInterFrameDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalSquaredInterFrameDelay { - get { return totalSquaredInterFrameDelay_; } + get { if ((_hasBits0 & 1024) != 0) { return totalSquaredInterFrameDelay_; } else { return TotalSquaredInterFrameDelayDefaultValue; } } set { + _hasBits0 |= 1024; totalSquaredInterFrameDelay_ = value; } } + /// Gets whether the "total_squared_inter_frame_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSquaredInterFrameDelay { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "total_squared_inter_frame_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSquaredInterFrameDelay() { + _hasBits0 &= ~1024; + } /// Field number for the "pause_count" field. public const int PauseCountFieldNumber = 15; + private readonly static uint PauseCountDefaultValue = 0; + private uint pauseCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PauseCount { - get { return pauseCount_; } + get { if ((_hasBits0 & 2048) != 0) { return pauseCount_; } else { return PauseCountDefaultValue; } } set { + _hasBits0 |= 2048; pauseCount_ = value; } } + /// Gets whether the "pause_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPauseCount { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "pause_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPauseCount() { + _hasBits0 &= ~2048; + } /// Field number for the "total_pause_duration" field. public const int TotalPauseDurationFieldNumber = 16; + private readonly static double TotalPauseDurationDefaultValue = 0D; + private double totalPauseDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalPauseDuration { - get { return totalPauseDuration_; } + get { if ((_hasBits0 & 4096) != 0) { return totalPauseDuration_; } else { return TotalPauseDurationDefaultValue; } } set { + _hasBits0 |= 4096; totalPauseDuration_ = value; } } + /// Gets whether the "total_pause_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalPauseDuration { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "total_pause_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalPauseDuration() { + _hasBits0 &= ~4096; + } /// Field number for the "freeze_count" field. public const int FreezeCountFieldNumber = 17; + private readonly static uint FreezeCountDefaultValue = 0; + private uint freezeCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FreezeCount { - get { return freezeCount_; } + get { if ((_hasBits0 & 8192) != 0) { return freezeCount_; } else { return FreezeCountDefaultValue; } } set { + _hasBits0 |= 8192; freezeCount_ = value; } } + /// Gets whether the "freeze_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFreezeCount { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "freeze_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFreezeCount() { + _hasBits0 &= ~8192; + } /// Field number for the "total_freeze_duration" field. public const int TotalFreezeDurationFieldNumber = 18; + private readonly static double TotalFreezeDurationDefaultValue = 0D; + private double totalFreezeDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalFreezeDuration { - get { return totalFreezeDuration_; } + get { if ((_hasBits0 & 16384) != 0) { return totalFreezeDuration_; } else { return TotalFreezeDurationDefaultValue; } } set { + _hasBits0 |= 16384; totalFreezeDuration_ = value; } } + /// Gets whether the "total_freeze_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalFreezeDuration { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "total_freeze_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalFreezeDuration() { + _hasBits0 &= ~16384; + } /// Field number for the "last_packet_received_timestamp" field. public const int LastPacketReceivedTimestampFieldNumber = 19; + private readonly static double LastPacketReceivedTimestampDefaultValue = 0D; + private double lastPacketReceivedTimestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double LastPacketReceivedTimestamp { - get { return lastPacketReceivedTimestamp_; } + get { if ((_hasBits0 & 32768) != 0) { return lastPacketReceivedTimestamp_; } else { return LastPacketReceivedTimestampDefaultValue; } } set { + _hasBits0 |= 32768; lastPacketReceivedTimestamp_ = value; } } + /// Gets whether the "last_packet_received_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLastPacketReceivedTimestamp { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "last_packet_received_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLastPacketReceivedTimestamp() { + _hasBits0 &= ~32768; + } /// Field number for the "header_bytes_received" field. public const int HeaderBytesReceivedFieldNumber = 20; + private readonly static ulong HeaderBytesReceivedDefaultValue = 0UL; + private ulong headerBytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong HeaderBytesReceived { - get { return headerBytesReceived_; } + get { if ((_hasBits0 & 65536) != 0) { return headerBytesReceived_; } else { return HeaderBytesReceivedDefaultValue; } } set { + _hasBits0 |= 65536; headerBytesReceived_ = value; } } + /// Gets whether the "header_bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeaderBytesReceived { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "header_bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeaderBytesReceived() { + _hasBits0 &= ~65536; + } /// Field number for the "packets_discarded" field. public const int PacketsDiscardedFieldNumber = 21; + private readonly static ulong PacketsDiscardedDefaultValue = 0UL; + private ulong packetsDiscarded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsDiscarded { - get { return packetsDiscarded_; } + get { if ((_hasBits0 & 131072) != 0) { return packetsDiscarded_; } else { return PacketsDiscardedDefaultValue; } } set { + _hasBits0 |= 131072; packetsDiscarded_ = value; } } + /// Gets whether the "packets_discarded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsDiscarded { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "packets_discarded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsDiscarded() { + _hasBits0 &= ~131072; + } /// Field number for the "fec_bytes_received" field. public const int FecBytesReceivedFieldNumber = 22; + private readonly static ulong FecBytesReceivedDefaultValue = 0UL; + private ulong fecBytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FecBytesReceived { - get { return fecBytesReceived_; } + get { if ((_hasBits0 & 262144) != 0) { return fecBytesReceived_; } else { return FecBytesReceivedDefaultValue; } } set { + _hasBits0 |= 262144; fecBytesReceived_ = value; } } + /// Gets whether the "fec_bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFecBytesReceived { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "fec_bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFecBytesReceived() { + _hasBits0 &= ~262144; + } /// Field number for the "fec_packets_received" field. public const int FecPacketsReceivedFieldNumber = 23; + private readonly static ulong FecPacketsReceivedDefaultValue = 0UL; + private ulong fecPacketsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FecPacketsReceived { - get { return fecPacketsReceived_; } + get { if ((_hasBits0 & 524288) != 0) { return fecPacketsReceived_; } else { return FecPacketsReceivedDefaultValue; } } set { + _hasBits0 |= 524288; fecPacketsReceived_ = value; } } + /// Gets whether the "fec_packets_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFecPacketsReceived { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "fec_packets_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFecPacketsReceived() { + _hasBits0 &= ~524288; + } /// Field number for the "fec_packets_discarded" field. public const int FecPacketsDiscardedFieldNumber = 24; + private readonly static ulong FecPacketsDiscardedDefaultValue = 0UL; + private ulong fecPacketsDiscarded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FecPacketsDiscarded { - get { return fecPacketsDiscarded_; } + get { if ((_hasBits0 & 1048576) != 0) { return fecPacketsDiscarded_; } else { return FecPacketsDiscardedDefaultValue; } } set { + _hasBits0 |= 1048576; fecPacketsDiscarded_ = value; } } + /// Gets whether the "fec_packets_discarded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFecPacketsDiscarded { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "fec_packets_discarded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFecPacketsDiscarded() { + _hasBits0 &= ~1048576; + } /// Field number for the "bytes_received" field. public const int BytesReceivedFieldNumber = 25; + private readonly static ulong BytesReceivedDefaultValue = 0UL; + private ulong bytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesReceived { - get { return bytesReceived_; } + get { if ((_hasBits0 & 2097152) != 0) { return bytesReceived_; } else { return BytesReceivedDefaultValue; } } set { + _hasBits0 |= 2097152; bytesReceived_ = value; } } + /// Gets whether the "bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesReceived { + get { return (_hasBits0 & 2097152) != 0; } + } + /// Clears the value of the "bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesReceived() { + _hasBits0 &= ~2097152; + } /// Field number for the "nack_count" field. public const int NackCountFieldNumber = 26; + private readonly static uint NackCountDefaultValue = 0; + private uint nackCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NackCount { - get { return nackCount_; } + get { if ((_hasBits0 & 4194304) != 0) { return nackCount_; } else { return NackCountDefaultValue; } } set { + _hasBits0 |= 4194304; nackCount_ = value; } } + /// Gets whether the "nack_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNackCount { + get { return (_hasBits0 & 4194304) != 0; } + } + /// Clears the value of the "nack_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNackCount() { + _hasBits0 &= ~4194304; + } /// Field number for the "fir_count" field. public const int FirCountFieldNumber = 27; + private readonly static uint FirCountDefaultValue = 0; + private uint firCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FirCount { - get { return firCount_; } + get { if ((_hasBits0 & 8388608) != 0) { return firCount_; } else { return FirCountDefaultValue; } } set { + _hasBits0 |= 8388608; firCount_ = value; } } + /// Gets whether the "fir_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFirCount { + get { return (_hasBits0 & 8388608) != 0; } + } + /// Clears the value of the "fir_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFirCount() { + _hasBits0 &= ~8388608; + } /// Field number for the "pli_count" field. public const int PliCountFieldNumber = 28; + private readonly static uint PliCountDefaultValue = 0; + private uint pliCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PliCount { - get { return pliCount_; } + get { if ((_hasBits0 & 16777216) != 0) { return pliCount_; } else { return PliCountDefaultValue; } } set { + _hasBits0 |= 16777216; pliCount_ = value; } } + /// Gets whether the "pli_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPliCount { + get { return (_hasBits0 & 16777216) != 0; } + } + /// Clears the value of the "pli_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPliCount() { + _hasBits0 &= ~16777216; + } /// Field number for the "total_processing_delay" field. public const int TotalProcessingDelayFieldNumber = 29; + private readonly static double TotalProcessingDelayDefaultValue = 0D; + private double totalProcessingDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalProcessingDelay { - get { return totalProcessingDelay_; } + get { if ((_hasBits0 & 33554432) != 0) { return totalProcessingDelay_; } else { return TotalProcessingDelayDefaultValue; } } set { + _hasBits0 |= 33554432; totalProcessingDelay_ = value; } } + /// Gets whether the "total_processing_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalProcessingDelay { + get { return (_hasBits0 & 33554432) != 0; } + } + /// Clears the value of the "total_processing_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalProcessingDelay() { + _hasBits0 &= ~33554432; + } /// Field number for the "estimated_playout_timestamp" field. public const int EstimatedPlayoutTimestampFieldNumber = 30; + private readonly static double EstimatedPlayoutTimestampDefaultValue = 0D; + private double estimatedPlayoutTimestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double EstimatedPlayoutTimestamp { - get { return estimatedPlayoutTimestamp_; } + get { if ((_hasBits0 & 67108864) != 0) { return estimatedPlayoutTimestamp_; } else { return EstimatedPlayoutTimestampDefaultValue; } } set { + _hasBits0 |= 67108864; estimatedPlayoutTimestamp_ = value; } } + /// Gets whether the "estimated_playout_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEstimatedPlayoutTimestamp { + get { return (_hasBits0 & 67108864) != 0; } + } + /// Clears the value of the "estimated_playout_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEstimatedPlayoutTimestamp() { + _hasBits0 &= ~67108864; + } /// Field number for the "jitter_buffer_delay" field. public const int JitterBufferDelayFieldNumber = 31; + private readonly static double JitterBufferDelayDefaultValue = 0D; + private double jitterBufferDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double JitterBufferDelay { - get { return jitterBufferDelay_; } + get { if ((_hasBits0 & 134217728) != 0) { return jitterBufferDelay_; } else { return JitterBufferDelayDefaultValue; } } set { + _hasBits0 |= 134217728; jitterBufferDelay_ = value; } } + /// Gets whether the "jitter_buffer_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJitterBufferDelay { + get { return (_hasBits0 & 134217728) != 0; } + } + /// Clears the value of the "jitter_buffer_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJitterBufferDelay() { + _hasBits0 &= ~134217728; + } /// Field number for the "jitter_buffer_target_delay" field. public const int JitterBufferTargetDelayFieldNumber = 32; + private readonly static double JitterBufferTargetDelayDefaultValue = 0D; + private double jitterBufferTargetDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double JitterBufferTargetDelay { - get { return jitterBufferTargetDelay_; } + get { if ((_hasBits0 & 268435456) != 0) { return jitterBufferTargetDelay_; } else { return JitterBufferTargetDelayDefaultValue; } } set { + _hasBits0 |= 268435456; jitterBufferTargetDelay_ = value; } } + /// Gets whether the "jitter_buffer_target_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJitterBufferTargetDelay { + get { return (_hasBits0 & 268435456) != 0; } + } + /// Clears the value of the "jitter_buffer_target_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJitterBufferTargetDelay() { + _hasBits0 &= ~268435456; + } /// Field number for the "jitter_buffer_emitted_count" field. public const int JitterBufferEmittedCountFieldNumber = 33; + private readonly static ulong JitterBufferEmittedCountDefaultValue = 0UL; + private ulong jitterBufferEmittedCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong JitterBufferEmittedCount { - get { return jitterBufferEmittedCount_; } + get { if ((_hasBits0 & 536870912) != 0) { return jitterBufferEmittedCount_; } else { return JitterBufferEmittedCountDefaultValue; } } set { + _hasBits0 |= 536870912; jitterBufferEmittedCount_ = value; } } + /// Gets whether the "jitter_buffer_emitted_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJitterBufferEmittedCount { + get { return (_hasBits0 & 536870912) != 0; } + } + /// Clears the value of the "jitter_buffer_emitted_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJitterBufferEmittedCount() { + _hasBits0 &= ~536870912; + } /// Field number for the "jitter_buffer_minimum_delay" field. public const int JitterBufferMinimumDelayFieldNumber = 34; + private readonly static double JitterBufferMinimumDelayDefaultValue = 0D; + private double jitterBufferMinimumDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double JitterBufferMinimumDelay { - get { return jitterBufferMinimumDelay_; } + get { if ((_hasBits0 & 1073741824) != 0) { return jitterBufferMinimumDelay_; } else { return JitterBufferMinimumDelayDefaultValue; } } set { + _hasBits0 |= 1073741824; jitterBufferMinimumDelay_ = value; } } + /// Gets whether the "jitter_buffer_minimum_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJitterBufferMinimumDelay { + get { return (_hasBits0 & 1073741824) != 0; } + } + /// Clears the value of the "jitter_buffer_minimum_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJitterBufferMinimumDelay() { + _hasBits0 &= ~1073741824; + } /// Field number for the "total_samples_received" field. public const int TotalSamplesReceivedFieldNumber = 35; + private readonly static ulong TotalSamplesReceivedDefaultValue = 0UL; + private ulong totalSamplesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TotalSamplesReceived { - get { return totalSamplesReceived_; } + get { if ((_hasBits0 & -2147483648) != 0) { return totalSamplesReceived_; } else { return TotalSamplesReceivedDefaultValue; } } set { + _hasBits0 |= -2147483648; totalSamplesReceived_ = value; } } + /// Gets whether the "total_samples_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesReceived { + get { return (_hasBits0 & -2147483648) != 0; } + } + /// Clears the value of the "total_samples_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesReceived() { + _hasBits0 &= ~-2147483648; + } /// Field number for the "concealed_samples" field. public const int ConcealedSamplesFieldNumber = 36; + private readonly static ulong ConcealedSamplesDefaultValue = 0UL; + private ulong concealedSamples_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ConcealedSamples { - get { return concealedSamples_; } + get { if ((_hasBits1 & 1) != 0) { return concealedSamples_; } else { return ConcealedSamplesDefaultValue; } } set { + _hasBits1 |= 1; concealedSamples_ = value; } } + /// Gets whether the "concealed_samples" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasConcealedSamples { + get { return (_hasBits1 & 1) != 0; } + } + /// Clears the value of the "concealed_samples" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearConcealedSamples() { + _hasBits1 &= ~1; + } /// Field number for the "silent_concealed_samples" field. public const int SilentConcealedSamplesFieldNumber = 37; + private readonly static ulong SilentConcealedSamplesDefaultValue = 0UL; + private ulong silentConcealedSamples_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong SilentConcealedSamples { - get { return silentConcealedSamples_; } + get { if ((_hasBits1 & 2) != 0) { return silentConcealedSamples_; } else { return SilentConcealedSamplesDefaultValue; } } set { + _hasBits1 |= 2; silentConcealedSamples_ = value; } } + /// Gets whether the "silent_concealed_samples" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSilentConcealedSamples { + get { return (_hasBits1 & 2) != 0; } + } + /// Clears the value of the "silent_concealed_samples" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSilentConcealedSamples() { + _hasBits1 &= ~2; + } /// Field number for the "concealment_events" field. public const int ConcealmentEventsFieldNumber = 38; + private readonly static ulong ConcealmentEventsDefaultValue = 0UL; + private ulong concealmentEvents_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ConcealmentEvents { - get { return concealmentEvents_; } + get { if ((_hasBits1 & 4) != 0) { return concealmentEvents_; } else { return ConcealmentEventsDefaultValue; } } set { + _hasBits1 |= 4; concealmentEvents_ = value; } } + /// Gets whether the "concealment_events" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasConcealmentEvents { + get { return (_hasBits1 & 4) != 0; } + } + /// Clears the value of the "concealment_events" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearConcealmentEvents() { + _hasBits1 &= ~4; + } /// Field number for the "inserted_samples_for_deceleration" field. public const int InsertedSamplesForDecelerationFieldNumber = 39; + private readonly static ulong InsertedSamplesForDecelerationDefaultValue = 0UL; + private ulong insertedSamplesForDeceleration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong InsertedSamplesForDeceleration { - get { return insertedSamplesForDeceleration_; } + get { if ((_hasBits1 & 8) != 0) { return insertedSamplesForDeceleration_; } else { return InsertedSamplesForDecelerationDefaultValue; } } set { + _hasBits1 |= 8; insertedSamplesForDeceleration_ = value; } } + /// Gets whether the "inserted_samples_for_deceleration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasInsertedSamplesForDeceleration { + get { return (_hasBits1 & 8) != 0; } + } + /// Clears the value of the "inserted_samples_for_deceleration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearInsertedSamplesForDeceleration() { + _hasBits1 &= ~8; + } /// Field number for the "removed_samples_for_acceleration" field. public const int RemovedSamplesForAccelerationFieldNumber = 40; + private readonly static ulong RemovedSamplesForAccelerationDefaultValue = 0UL; + private ulong removedSamplesForAcceleration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RemovedSamplesForAcceleration { - get { return removedSamplesForAcceleration_; } + get { if ((_hasBits1 & 16) != 0) { return removedSamplesForAcceleration_; } else { return RemovedSamplesForAccelerationDefaultValue; } } set { + _hasBits1 |= 16; removedSamplesForAcceleration_ = value; } } + /// Gets whether the "removed_samples_for_acceleration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemovedSamplesForAcceleration { + get { return (_hasBits1 & 16) != 0; } + } + /// Clears the value of the "removed_samples_for_acceleration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemovedSamplesForAcceleration() { + _hasBits1 &= ~16; + } /// Field number for the "audio_level" field. public const int AudioLevelFieldNumber = 41; + private readonly static double AudioLevelDefaultValue = 0D; + private double audioLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double AudioLevel { - get { return audioLevel_; } + get { if ((_hasBits1 & 32) != 0) { return audioLevel_; } else { return AudioLevelDefaultValue; } } set { + _hasBits1 |= 32; audioLevel_ = value; } } + /// Gets whether the "audio_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioLevel { + get { return (_hasBits1 & 32) != 0; } + } + /// Clears the value of the "audio_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioLevel() { + _hasBits1 &= ~32; + } /// Field number for the "total_audio_energy" field. public const int TotalAudioEnergyFieldNumber = 42; + private readonly static double TotalAudioEnergyDefaultValue = 0D; + private double totalAudioEnergy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalAudioEnergy { - get { return totalAudioEnergy_; } + get { if ((_hasBits1 & 64) != 0) { return totalAudioEnergy_; } else { return TotalAudioEnergyDefaultValue; } } set { + _hasBits1 |= 64; totalAudioEnergy_ = value; } } + /// Gets whether the "total_audio_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalAudioEnergy { + get { return (_hasBits1 & 64) != 0; } + } + /// Clears the value of the "total_audio_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalAudioEnergy() { + _hasBits1 &= ~64; + } /// Field number for the "total_samples_duration" field. public const int TotalSamplesDurationFieldNumber = 43; + private readonly static double TotalSamplesDurationDefaultValue = 0D; + private double totalSamplesDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalSamplesDuration { - get { return totalSamplesDuration_; } + get { if ((_hasBits1 & 128) != 0) { return totalSamplesDuration_; } else { return TotalSamplesDurationDefaultValue; } } set { + _hasBits1 |= 128; totalSamplesDuration_ = value; } } + /// Gets whether the "total_samples_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesDuration { + get { return (_hasBits1 & 128) != 0; } + } + /// Clears the value of the "total_samples_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesDuration() { + _hasBits1 &= ~128; + } /// Field number for the "frames_received" field. public const int FramesReceivedFieldNumber = 44; + private readonly static ulong FramesReceivedDefaultValue = 0UL; + private ulong framesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FramesReceived { - get { return framesReceived_; } + get { if ((_hasBits1 & 256) != 0) { return framesReceived_; } else { return FramesReceivedDefaultValue; } } set { + _hasBits1 |= 256; framesReceived_ = value; } } + /// Gets whether the "frames_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesReceived { + get { return (_hasBits1 & 256) != 0; } + } + /// Clears the value of the "frames_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesReceived() { + _hasBits1 &= ~256; + } /// Field number for the "decoder_implementation" field. public const int DecoderImplementationFieldNumber = 45; - private string decoderImplementation_ = ""; + private readonly static string DecoderImplementationDefaultValue = ""; + + private string decoderImplementation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DecoderImplementation { - get { return decoderImplementation_; } + get { return decoderImplementation_ ?? DecoderImplementationDefaultValue; } set { decoderImplementation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "decoder_implementation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDecoderImplementation { + get { return decoderImplementation_ != null; } + } + /// Clears the value of the "decoder_implementation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDecoderImplementation() { + decoderImplementation_ = null; + } /// Field number for the "playout_id" field. public const int PlayoutIdFieldNumber = 46; - private string playoutId_ = ""; + private readonly static string PlayoutIdDefaultValue = ""; + + private string playoutId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PlayoutId { - get { return playoutId_; } + get { return playoutId_ ?? PlayoutIdDefaultValue; } set { playoutId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "playout_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayoutId { + get { return playoutId_ != null; } + } + /// Clears the value of the "playout_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayoutId() { + playoutId_ = null; + } /// Field number for the "power_efficient_decoder" field. public const int PowerEfficientDecoderFieldNumber = 47; + private readonly static bool PowerEfficientDecoderDefaultValue = false; + private bool powerEfficientDecoder_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool PowerEfficientDecoder { - get { return powerEfficientDecoder_; } + get { if ((_hasBits1 & 512) != 0) { return powerEfficientDecoder_; } else { return PowerEfficientDecoderDefaultValue; } } set { + _hasBits1 |= 512; powerEfficientDecoder_ = value; } } + /// Gets whether the "power_efficient_decoder" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPowerEfficientDecoder { + get { return (_hasBits1 & 512) != 0; } + } + /// Clears the value of the "power_efficient_decoder" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPowerEfficientDecoder() { + _hasBits1 &= ~512; + } /// Field number for the "frames_assembled_from_multiple_packets" field. public const int FramesAssembledFromMultiplePacketsFieldNumber = 48; + private readonly static ulong FramesAssembledFromMultiplePacketsDefaultValue = 0UL; + private ulong framesAssembledFromMultiplePackets_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong FramesAssembledFromMultiplePackets { - get { return framesAssembledFromMultiplePackets_; } + get { if ((_hasBits1 & 1024) != 0) { return framesAssembledFromMultiplePackets_; } else { return FramesAssembledFromMultiplePacketsDefaultValue; } } set { + _hasBits1 |= 1024; framesAssembledFromMultiplePackets_ = value; } } + /// Gets whether the "frames_assembled_from_multiple_packets" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesAssembledFromMultiplePackets { + get { return (_hasBits1 & 1024) != 0; } + } + /// Clears the value of the "frames_assembled_from_multiple_packets" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesAssembledFromMultiplePackets() { + _hasBits1 &= ~1024; + } /// Field number for the "total_assembly_time" field. public const int TotalAssemblyTimeFieldNumber = 49; + private readonly static double TotalAssemblyTimeDefaultValue = 0D; + private double totalAssemblyTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalAssemblyTime { - get { return totalAssemblyTime_; } + get { if ((_hasBits1 & 2048) != 0) { return totalAssemblyTime_; } else { return TotalAssemblyTimeDefaultValue; } } set { + _hasBits1 |= 2048; totalAssemblyTime_ = value; } } + /// Gets whether the "total_assembly_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalAssemblyTime { + get { return (_hasBits1 & 2048) != 0; } + } + /// Clears the value of the "total_assembly_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalAssemblyTime() { + _hasBits1 &= ~2048; + } /// Field number for the "retransmitted_packets_received" field. public const int RetransmittedPacketsReceivedFieldNumber = 50; + private readonly static ulong RetransmittedPacketsReceivedDefaultValue = 0UL; + private ulong retransmittedPacketsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RetransmittedPacketsReceived { - get { return retransmittedPacketsReceived_; } + get { if ((_hasBits1 & 4096) != 0) { return retransmittedPacketsReceived_; } else { return RetransmittedPacketsReceivedDefaultValue; } } set { + _hasBits1 |= 4096; retransmittedPacketsReceived_ = value; } } + /// Gets whether the "retransmitted_packets_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRetransmittedPacketsReceived { + get { return (_hasBits1 & 4096) != 0; } + } + /// Clears the value of the "retransmitted_packets_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRetransmittedPacketsReceived() { + _hasBits1 &= ~4096; + } /// Field number for the "retransmitted_bytes_received" field. public const int RetransmittedBytesReceivedFieldNumber = 51; + private readonly static ulong RetransmittedBytesReceivedDefaultValue = 0UL; + private ulong retransmittedBytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RetransmittedBytesReceived { - get { return retransmittedBytesReceived_; } + get { if ((_hasBits1 & 8192) != 0) { return retransmittedBytesReceived_; } else { return RetransmittedBytesReceivedDefaultValue; } } set { + _hasBits1 |= 8192; retransmittedBytesReceived_ = value; } } + /// Gets whether the "retransmitted_bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRetransmittedBytesReceived { + get { return (_hasBits1 & 8192) != 0; } + } + /// Clears the value of the "retransmitted_bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRetransmittedBytesReceived() { + _hasBits1 &= ~8192; + } /// Field number for the "rtx_ssrc" field. public const int RtxSsrcFieldNumber = 52; + private readonly static uint RtxSsrcDefaultValue = 0; + private uint rtxSsrc_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint RtxSsrc { - get { return rtxSsrc_; } + get { if ((_hasBits1 & 16384) != 0) { return rtxSsrc_; } else { return RtxSsrcDefaultValue; } } set { + _hasBits1 |= 16384; rtxSsrc_ = value; } } + /// Gets whether the "rtx_ssrc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRtxSsrc { + get { return (_hasBits1 & 16384) != 0; } + } + /// Clears the value of the "rtx_ssrc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRtxSsrc() { + _hasBits1 &= ~16384; + } /// Field number for the "fec_ssrc" field. public const int FecSsrcFieldNumber = 53; + private readonly static uint FecSsrcDefaultValue = 0; + private uint fecSsrc_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FecSsrc { - get { return fecSsrc_; } + get { if ((_hasBits1 & 32768) != 0) { return fecSsrc_; } else { return FecSsrcDefaultValue; } } set { + _hasBits1 |= 32768; fecSsrc_ = value; } } + /// Gets whether the "fec_ssrc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFecSsrc { + get { return (_hasBits1 & 32768) != 0; } + } + /// Clears the value of the "fec_ssrc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFecSsrc() { + _hasBits1 &= ~32768; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -7374,59 +8551,59 @@ public bool Equals(InboundRtpStreamStats other) { [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 (HasTrackIdentifier) hash ^= TrackIdentifier.GetHashCode(); + if (HasMid) hash ^= Mid.GetHashCode(); + if (HasRemoteId) hash ^= RemoteId.GetHashCode(); + if (HasFramesDecoded) hash ^= FramesDecoded.GetHashCode(); + if (HasKeyFramesDecoded) hash ^= KeyFramesDecoded.GetHashCode(); + if (HasFramesRendered) hash ^= FramesRendered.GetHashCode(); + if (HasFramesDropped) hash ^= FramesDropped.GetHashCode(); + if (HasFrameWidth) hash ^= FrameWidth.GetHashCode(); + if (HasFrameHeight) hash ^= FrameHeight.GetHashCode(); + if (HasFramesPerSecond) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); + if (HasQpSum) hash ^= QpSum.GetHashCode(); + if (HasTotalDecodeTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalDecodeTime); + if (HasTotalInterFrameDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalInterFrameDelay); + if (HasTotalSquaredInterFrameDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSquaredInterFrameDelay); + if (HasPauseCount) hash ^= PauseCount.GetHashCode(); + if (HasTotalPauseDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPauseDuration); + if (HasFreezeCount) hash ^= FreezeCount.GetHashCode(); + if (HasTotalFreezeDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalFreezeDuration); + if (HasLastPacketReceivedTimestamp) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketReceivedTimestamp); + if (HasHeaderBytesReceived) hash ^= HeaderBytesReceived.GetHashCode(); + if (HasPacketsDiscarded) hash ^= PacketsDiscarded.GetHashCode(); + if (HasFecBytesReceived) hash ^= FecBytesReceived.GetHashCode(); + if (HasFecPacketsReceived) hash ^= FecPacketsReceived.GetHashCode(); + if (HasFecPacketsDiscarded) hash ^= FecPacketsDiscarded.GetHashCode(); + if (HasBytesReceived) hash ^= BytesReceived.GetHashCode(); + if (HasNackCount) hash ^= NackCount.GetHashCode(); + if (HasFirCount) hash ^= FirCount.GetHashCode(); + if (HasPliCount) hash ^= PliCount.GetHashCode(); + if (HasTotalProcessingDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalProcessingDelay); + if (HasEstimatedPlayoutTimestamp) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EstimatedPlayoutTimestamp); + if (HasJitterBufferDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferDelay); + if (HasJitterBufferTargetDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferTargetDelay); + if (HasJitterBufferEmittedCount) hash ^= JitterBufferEmittedCount.GetHashCode(); + if (HasJitterBufferMinimumDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(JitterBufferMinimumDelay); + if (HasTotalSamplesReceived) hash ^= TotalSamplesReceived.GetHashCode(); + if (HasConcealedSamples) hash ^= ConcealedSamples.GetHashCode(); + if (HasSilentConcealedSamples) hash ^= SilentConcealedSamples.GetHashCode(); + if (HasConcealmentEvents) hash ^= ConcealmentEvents.GetHashCode(); + if (HasInsertedSamplesForDeceleration) hash ^= InsertedSamplesForDeceleration.GetHashCode(); + if (HasRemovedSamplesForAcceleration) hash ^= RemovedSamplesForAcceleration.GetHashCode(); + if (HasAudioLevel) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioLevel); + if (HasTotalAudioEnergy) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAudioEnergy); + if (HasTotalSamplesDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (HasFramesReceived) hash ^= FramesReceived.GetHashCode(); + if (HasDecoderImplementation) hash ^= DecoderImplementation.GetHashCode(); + if (HasPlayoutId) hash ^= PlayoutId.GetHashCode(); + if (HasPowerEfficientDecoder) hash ^= PowerEfficientDecoder.GetHashCode(); + if (HasFramesAssembledFromMultiplePackets) hash ^= FramesAssembledFromMultiplePackets.GetHashCode(); + if (HasTotalAssemblyTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAssemblyTime); + if (HasRetransmittedPacketsReceived) hash ^= RetransmittedPacketsReceived.GetHashCode(); + if (HasRetransmittedBytesReceived) hash ^= RetransmittedBytesReceived.GetHashCode(); + if (HasRtxSsrc) hash ^= RtxSsrc.GetHashCode(); + if (HasFecSsrc) hash ^= FecSsrc.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7445,215 +8622,215 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { output.WriteRawTag(10); output.WriteString(TrackIdentifier); } - if (Mid.Length != 0) { + if (HasMid) { output.WriteRawTag(18); output.WriteString(Mid); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { output.WriteRawTag(26); output.WriteString(RemoteId); } - if (FramesDecoded != 0) { + if (HasFramesDecoded) { output.WriteRawTag(32); output.WriteUInt32(FramesDecoded); } - if (KeyFramesDecoded != 0) { + if (HasKeyFramesDecoded) { output.WriteRawTag(40); output.WriteUInt32(KeyFramesDecoded); } - if (FramesRendered != 0) { + if (HasFramesRendered) { output.WriteRawTag(48); output.WriteUInt32(FramesRendered); } - if (FramesDropped != 0) { + if (HasFramesDropped) { output.WriteRawTag(56); output.WriteUInt32(FramesDropped); } - if (FrameWidth != 0) { + if (HasFrameWidth) { output.WriteRawTag(64); output.WriteUInt32(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { output.WriteRawTag(72); output.WriteUInt32(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(81); output.WriteDouble(FramesPerSecond); } - if (QpSum != 0UL) { + if (HasQpSum) { output.WriteRawTag(88); output.WriteUInt64(QpSum); } - if (TotalDecodeTime != 0D) { + if (HasTotalDecodeTime) { output.WriteRawTag(97); output.WriteDouble(TotalDecodeTime); } - if (TotalInterFrameDelay != 0D) { + if (HasTotalInterFrameDelay) { output.WriteRawTag(105); output.WriteDouble(TotalInterFrameDelay); } - if (TotalSquaredInterFrameDelay != 0D) { + if (HasTotalSquaredInterFrameDelay) { output.WriteRawTag(113); output.WriteDouble(TotalSquaredInterFrameDelay); } - if (PauseCount != 0) { + if (HasPauseCount) { output.WriteRawTag(120); output.WriteUInt32(PauseCount); } - if (TotalPauseDuration != 0D) { + if (HasTotalPauseDuration) { output.WriteRawTag(129, 1); output.WriteDouble(TotalPauseDuration); } - if (FreezeCount != 0) { + if (HasFreezeCount) { output.WriteRawTag(136, 1); output.WriteUInt32(FreezeCount); } - if (TotalFreezeDuration != 0D) { + if (HasTotalFreezeDuration) { output.WriteRawTag(145, 1); output.WriteDouble(TotalFreezeDuration); } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { output.WriteRawTag(153, 1); output.WriteDouble(LastPacketReceivedTimestamp); } - if (HeaderBytesReceived != 0UL) { + if (HasHeaderBytesReceived) { output.WriteRawTag(160, 1); output.WriteUInt64(HeaderBytesReceived); } - if (PacketsDiscarded != 0UL) { + if (HasPacketsDiscarded) { output.WriteRawTag(168, 1); output.WriteUInt64(PacketsDiscarded); } - if (FecBytesReceived != 0UL) { + if (HasFecBytesReceived) { output.WriteRawTag(176, 1); output.WriteUInt64(FecBytesReceived); } - if (FecPacketsReceived != 0UL) { + if (HasFecPacketsReceived) { output.WriteRawTag(184, 1); output.WriteUInt64(FecPacketsReceived); } - if (FecPacketsDiscarded != 0UL) { + if (HasFecPacketsDiscarded) { output.WriteRawTag(192, 1); output.WriteUInt64(FecPacketsDiscarded); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(200, 1); output.WriteUInt64(BytesReceived); } - if (NackCount != 0) { + if (HasNackCount) { output.WriteRawTag(208, 1); output.WriteUInt32(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { output.WriteRawTag(216, 1); output.WriteUInt32(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { output.WriteRawTag(224, 1); output.WriteUInt32(PliCount); } - if (TotalProcessingDelay != 0D) { + if (HasTotalProcessingDelay) { output.WriteRawTag(233, 1); output.WriteDouble(TotalProcessingDelay); } - if (EstimatedPlayoutTimestamp != 0D) { + if (HasEstimatedPlayoutTimestamp) { output.WriteRawTag(241, 1); output.WriteDouble(EstimatedPlayoutTimestamp); } - if (JitterBufferDelay != 0D) { + if (HasJitterBufferDelay) { output.WriteRawTag(249, 1); output.WriteDouble(JitterBufferDelay); } - if (JitterBufferTargetDelay != 0D) { + if (HasJitterBufferTargetDelay) { output.WriteRawTag(129, 2); output.WriteDouble(JitterBufferTargetDelay); } - if (JitterBufferEmittedCount != 0UL) { + if (HasJitterBufferEmittedCount) { output.WriteRawTag(136, 2); output.WriteUInt64(JitterBufferEmittedCount); } - if (JitterBufferMinimumDelay != 0D) { + if (HasJitterBufferMinimumDelay) { output.WriteRawTag(145, 2); output.WriteDouble(JitterBufferMinimumDelay); } - if (TotalSamplesReceived != 0UL) { + if (HasTotalSamplesReceived) { output.WriteRawTag(152, 2); output.WriteUInt64(TotalSamplesReceived); } - if (ConcealedSamples != 0UL) { + if (HasConcealedSamples) { output.WriteRawTag(160, 2); output.WriteUInt64(ConcealedSamples); } - if (SilentConcealedSamples != 0UL) { + if (HasSilentConcealedSamples) { output.WriteRawTag(168, 2); output.WriteUInt64(SilentConcealedSamples); } - if (ConcealmentEvents != 0UL) { + if (HasConcealmentEvents) { output.WriteRawTag(176, 2); output.WriteUInt64(ConcealmentEvents); } - if (InsertedSamplesForDeceleration != 0UL) { + if (HasInsertedSamplesForDeceleration) { output.WriteRawTag(184, 2); output.WriteUInt64(InsertedSamplesForDeceleration); } - if (RemovedSamplesForAcceleration != 0UL) { + if (HasRemovedSamplesForAcceleration) { output.WriteRawTag(192, 2); output.WriteUInt64(RemovedSamplesForAcceleration); } - if (AudioLevel != 0D) { + if (HasAudioLevel) { output.WriteRawTag(201, 2); output.WriteDouble(AudioLevel); } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { output.WriteRawTag(209, 2); output.WriteDouble(TotalAudioEnergy); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(217, 2); output.WriteDouble(TotalSamplesDuration); } - if (FramesReceived != 0UL) { + if (HasFramesReceived) { output.WriteRawTag(224, 2); output.WriteUInt64(FramesReceived); } - if (DecoderImplementation.Length != 0) { + if (HasDecoderImplementation) { output.WriteRawTag(234, 2); output.WriteString(DecoderImplementation); } - if (PlayoutId.Length != 0) { + if (HasPlayoutId) { output.WriteRawTag(242, 2); output.WriteString(PlayoutId); } - if (PowerEfficientDecoder != false) { + if (HasPowerEfficientDecoder) { output.WriteRawTag(248, 2); output.WriteBool(PowerEfficientDecoder); } - if (FramesAssembledFromMultiplePackets != 0UL) { + if (HasFramesAssembledFromMultiplePackets) { output.WriteRawTag(128, 3); output.WriteUInt64(FramesAssembledFromMultiplePackets); } - if (TotalAssemblyTime != 0D) { + if (HasTotalAssemblyTime) { output.WriteRawTag(137, 3); output.WriteDouble(TotalAssemblyTime); } - if (RetransmittedPacketsReceived != 0UL) { + if (HasRetransmittedPacketsReceived) { output.WriteRawTag(144, 3); output.WriteUInt64(RetransmittedPacketsReceived); } - if (RetransmittedBytesReceived != 0UL) { + if (HasRetransmittedBytesReceived) { output.WriteRawTag(152, 3); output.WriteUInt64(RetransmittedBytesReceived); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { output.WriteRawTag(160, 3); output.WriteUInt32(RtxSsrc); } - if (FecSsrc != 0) { + if (HasFecSsrc) { output.WriteRawTag(168, 3); output.WriteUInt32(FecSsrc); } @@ -7667,215 +8844,215 @@ 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 (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { output.WriteRawTag(10); output.WriteString(TrackIdentifier); } - if (Mid.Length != 0) { + if (HasMid) { output.WriteRawTag(18); output.WriteString(Mid); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { output.WriteRawTag(26); output.WriteString(RemoteId); } - if (FramesDecoded != 0) { + if (HasFramesDecoded) { output.WriteRawTag(32); output.WriteUInt32(FramesDecoded); } - if (KeyFramesDecoded != 0) { + if (HasKeyFramesDecoded) { output.WriteRawTag(40); output.WriteUInt32(KeyFramesDecoded); } - if (FramesRendered != 0) { + if (HasFramesRendered) { output.WriteRawTag(48); output.WriteUInt32(FramesRendered); } - if (FramesDropped != 0) { + if (HasFramesDropped) { output.WriteRawTag(56); output.WriteUInt32(FramesDropped); } - if (FrameWidth != 0) { + if (HasFrameWidth) { output.WriteRawTag(64); output.WriteUInt32(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { output.WriteRawTag(72); output.WriteUInt32(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(81); output.WriteDouble(FramesPerSecond); } - if (QpSum != 0UL) { + if (HasQpSum) { output.WriteRawTag(88); output.WriteUInt64(QpSum); } - if (TotalDecodeTime != 0D) { + if (HasTotalDecodeTime) { output.WriteRawTag(97); output.WriteDouble(TotalDecodeTime); } - if (TotalInterFrameDelay != 0D) { + if (HasTotalInterFrameDelay) { output.WriteRawTag(105); output.WriteDouble(TotalInterFrameDelay); } - if (TotalSquaredInterFrameDelay != 0D) { + if (HasTotalSquaredInterFrameDelay) { output.WriteRawTag(113); output.WriteDouble(TotalSquaredInterFrameDelay); } - if (PauseCount != 0) { + if (HasPauseCount) { output.WriteRawTag(120); output.WriteUInt32(PauseCount); } - if (TotalPauseDuration != 0D) { + if (HasTotalPauseDuration) { output.WriteRawTag(129, 1); output.WriteDouble(TotalPauseDuration); } - if (FreezeCount != 0) { + if (HasFreezeCount) { output.WriteRawTag(136, 1); output.WriteUInt32(FreezeCount); } - if (TotalFreezeDuration != 0D) { + if (HasTotalFreezeDuration) { output.WriteRawTag(145, 1); output.WriteDouble(TotalFreezeDuration); } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { output.WriteRawTag(153, 1); output.WriteDouble(LastPacketReceivedTimestamp); } - if (HeaderBytesReceived != 0UL) { + if (HasHeaderBytesReceived) { output.WriteRawTag(160, 1); output.WriteUInt64(HeaderBytesReceived); } - if (PacketsDiscarded != 0UL) { + if (HasPacketsDiscarded) { output.WriteRawTag(168, 1); output.WriteUInt64(PacketsDiscarded); } - if (FecBytesReceived != 0UL) { + if (HasFecBytesReceived) { output.WriteRawTag(176, 1); output.WriteUInt64(FecBytesReceived); } - if (FecPacketsReceived != 0UL) { + if (HasFecPacketsReceived) { output.WriteRawTag(184, 1); output.WriteUInt64(FecPacketsReceived); } - if (FecPacketsDiscarded != 0UL) { + if (HasFecPacketsDiscarded) { output.WriteRawTag(192, 1); output.WriteUInt64(FecPacketsDiscarded); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(200, 1); output.WriteUInt64(BytesReceived); } - if (NackCount != 0) { + if (HasNackCount) { output.WriteRawTag(208, 1); output.WriteUInt32(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { output.WriteRawTag(216, 1); output.WriteUInt32(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { output.WriteRawTag(224, 1); output.WriteUInt32(PliCount); } - if (TotalProcessingDelay != 0D) { + if (HasTotalProcessingDelay) { output.WriteRawTag(233, 1); output.WriteDouble(TotalProcessingDelay); } - if (EstimatedPlayoutTimestamp != 0D) { + if (HasEstimatedPlayoutTimestamp) { output.WriteRawTag(241, 1); output.WriteDouble(EstimatedPlayoutTimestamp); } - if (JitterBufferDelay != 0D) { + if (HasJitterBufferDelay) { output.WriteRawTag(249, 1); output.WriteDouble(JitterBufferDelay); } - if (JitterBufferTargetDelay != 0D) { + if (HasJitterBufferTargetDelay) { output.WriteRawTag(129, 2); output.WriteDouble(JitterBufferTargetDelay); } - if (JitterBufferEmittedCount != 0UL) { + if (HasJitterBufferEmittedCount) { output.WriteRawTag(136, 2); output.WriteUInt64(JitterBufferEmittedCount); } - if (JitterBufferMinimumDelay != 0D) { + if (HasJitterBufferMinimumDelay) { output.WriteRawTag(145, 2); output.WriteDouble(JitterBufferMinimumDelay); } - if (TotalSamplesReceived != 0UL) { + if (HasTotalSamplesReceived) { output.WriteRawTag(152, 2); output.WriteUInt64(TotalSamplesReceived); } - if (ConcealedSamples != 0UL) { + if (HasConcealedSamples) { output.WriteRawTag(160, 2); output.WriteUInt64(ConcealedSamples); } - if (SilentConcealedSamples != 0UL) { + if (HasSilentConcealedSamples) { output.WriteRawTag(168, 2); output.WriteUInt64(SilentConcealedSamples); } - if (ConcealmentEvents != 0UL) { + if (HasConcealmentEvents) { output.WriteRawTag(176, 2); output.WriteUInt64(ConcealmentEvents); } - if (InsertedSamplesForDeceleration != 0UL) { + if (HasInsertedSamplesForDeceleration) { output.WriteRawTag(184, 2); output.WriteUInt64(InsertedSamplesForDeceleration); } - if (RemovedSamplesForAcceleration != 0UL) { + if (HasRemovedSamplesForAcceleration) { output.WriteRawTag(192, 2); output.WriteUInt64(RemovedSamplesForAcceleration); } - if (AudioLevel != 0D) { + if (HasAudioLevel) { output.WriteRawTag(201, 2); output.WriteDouble(AudioLevel); } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { output.WriteRawTag(209, 2); output.WriteDouble(TotalAudioEnergy); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(217, 2); output.WriteDouble(TotalSamplesDuration); } - if (FramesReceived != 0UL) { + if (HasFramesReceived) { output.WriteRawTag(224, 2); output.WriteUInt64(FramesReceived); } - if (DecoderImplementation.Length != 0) { + if (HasDecoderImplementation) { output.WriteRawTag(234, 2); output.WriteString(DecoderImplementation); } - if (PlayoutId.Length != 0) { + if (HasPlayoutId) { output.WriteRawTag(242, 2); output.WriteString(PlayoutId); } - if (PowerEfficientDecoder != false) { + if (HasPowerEfficientDecoder) { output.WriteRawTag(248, 2); output.WriteBool(PowerEfficientDecoder); } - if (FramesAssembledFromMultiplePackets != 0UL) { + if (HasFramesAssembledFromMultiplePackets) { output.WriteRawTag(128, 3); output.WriteUInt64(FramesAssembledFromMultiplePackets); } - if (TotalAssemblyTime != 0D) { + if (HasTotalAssemblyTime) { output.WriteRawTag(137, 3); output.WriteDouble(TotalAssemblyTime); } - if (RetransmittedPacketsReceived != 0UL) { + if (HasRetransmittedPacketsReceived) { output.WriteRawTag(144, 3); output.WriteUInt64(RetransmittedPacketsReceived); } - if (RetransmittedBytesReceived != 0UL) { + if (HasRetransmittedBytesReceived) { output.WriteRawTag(152, 3); output.WriteUInt64(RetransmittedBytesReceived); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { output.WriteRawTag(160, 3); output.WriteUInt32(RtxSsrc); } - if (FecSsrc != 0) { + if (HasFecSsrc) { output.WriteRawTag(168, 3); output.WriteUInt32(FecSsrc); } @@ -7889,163 +9066,163 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackIdentifier); } - if (Mid.Length != 0) { + if (HasMid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteId); } - if (FramesDecoded != 0) { + if (HasFramesDecoded) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesDecoded); } - if (KeyFramesDecoded != 0) { + if (HasKeyFramesDecoded) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KeyFramesDecoded); } - if (FramesRendered != 0) { + if (HasFramesRendered) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesRendered); } - if (FramesDropped != 0) { + if (HasFramesDropped) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesDropped); } - if (FrameWidth != 0) { + if (HasFrameWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { size += 1 + 8; } - if (QpSum != 0UL) { + if (HasQpSum) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(QpSum); } - if (TotalDecodeTime != 0D) { + if (HasTotalDecodeTime) { size += 1 + 8; } - if (TotalInterFrameDelay != 0D) { + if (HasTotalInterFrameDelay) { size += 1 + 8; } - if (TotalSquaredInterFrameDelay != 0D) { + if (HasTotalSquaredInterFrameDelay) { size += 1 + 8; } - if (PauseCount != 0) { + if (HasPauseCount) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PauseCount); } - if (TotalPauseDuration != 0D) { + if (HasTotalPauseDuration) { size += 2 + 8; } - if (FreezeCount != 0) { + if (HasFreezeCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FreezeCount); } - if (TotalFreezeDuration != 0D) { + if (HasTotalFreezeDuration) { size += 2 + 8; } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { size += 2 + 8; } - if (HeaderBytesReceived != 0UL) { + if (HasHeaderBytesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(HeaderBytesReceived); } - if (PacketsDiscarded != 0UL) { + if (HasPacketsDiscarded) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(PacketsDiscarded); } - if (FecBytesReceived != 0UL) { + if (HasFecBytesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecBytesReceived); } - if (FecPacketsReceived != 0UL) { + if (HasFecPacketsReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecPacketsReceived); } - if (FecPacketsDiscarded != 0UL) { + if (HasFecPacketsDiscarded) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FecPacketsDiscarded); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); } - if (NackCount != 0) { + if (HasNackCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PliCount); } - if (TotalProcessingDelay != 0D) { + if (HasTotalProcessingDelay) { size += 2 + 8; } - if (EstimatedPlayoutTimestamp != 0D) { + if (HasEstimatedPlayoutTimestamp) { size += 2 + 8; } - if (JitterBufferDelay != 0D) { + if (HasJitterBufferDelay) { size += 2 + 8; } - if (JitterBufferTargetDelay != 0D) { + if (HasJitterBufferTargetDelay) { size += 2 + 8; } - if (JitterBufferEmittedCount != 0UL) { + if (HasJitterBufferEmittedCount) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(JitterBufferEmittedCount); } - if (JitterBufferMinimumDelay != 0D) { + if (HasJitterBufferMinimumDelay) { size += 2 + 8; } - if (TotalSamplesReceived != 0UL) { + if (HasTotalSamplesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesReceived); } - if (ConcealedSamples != 0UL) { + if (HasConcealedSamples) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConcealedSamples); } - if (SilentConcealedSamples != 0UL) { + if (HasSilentConcealedSamples) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(SilentConcealedSamples); } - if (ConcealmentEvents != 0UL) { + if (HasConcealmentEvents) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConcealmentEvents); } - if (InsertedSamplesForDeceleration != 0UL) { + if (HasInsertedSamplesForDeceleration) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(InsertedSamplesForDeceleration); } - if (RemovedSamplesForAcceleration != 0UL) { + if (HasRemovedSamplesForAcceleration) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RemovedSamplesForAcceleration); } - if (AudioLevel != 0D) { + if (HasAudioLevel) { size += 2 + 8; } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { size += 2 + 8; } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { size += 2 + 8; } - if (FramesReceived != 0UL) { + if (HasFramesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FramesReceived); } - if (DecoderImplementation.Length != 0) { + if (HasDecoderImplementation) { size += 2 + pb::CodedOutputStream.ComputeStringSize(DecoderImplementation); } - if (PlayoutId.Length != 0) { + if (HasPlayoutId) { size += 2 + pb::CodedOutputStream.ComputeStringSize(PlayoutId); } - if (PowerEfficientDecoder != false) { + if (HasPowerEfficientDecoder) { size += 2 + 1; } - if (FramesAssembledFromMultiplePackets != 0UL) { + if (HasFramesAssembledFromMultiplePackets) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(FramesAssembledFromMultiplePackets); } - if (TotalAssemblyTime != 0D) { + if (HasTotalAssemblyTime) { size += 2 + 8; } - if (RetransmittedPacketsReceived != 0UL) { + if (HasRetransmittedPacketsReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedPacketsReceived); } - if (RetransmittedBytesReceived != 0UL) { + if (HasRetransmittedBytesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedBytesReceived); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(RtxSsrc); } - if (FecSsrc != 0) { + if (HasFecSsrc) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FecSsrc); } if (_unknownFields != null) { @@ -8060,163 +9237,163 @@ public void MergeFrom(InboundRtpStreamStats other) { if (other == null) { return; } - if (other.TrackIdentifier.Length != 0) { + if (other.HasTrackIdentifier) { TrackIdentifier = other.TrackIdentifier; } - if (other.Mid.Length != 0) { + if (other.HasMid) { Mid = other.Mid; } - if (other.RemoteId.Length != 0) { + if (other.HasRemoteId) { RemoteId = other.RemoteId; } - if (other.FramesDecoded != 0) { + if (other.HasFramesDecoded) { FramesDecoded = other.FramesDecoded; } - if (other.KeyFramesDecoded != 0) { + if (other.HasKeyFramesDecoded) { KeyFramesDecoded = other.KeyFramesDecoded; } - if (other.FramesRendered != 0) { + if (other.HasFramesRendered) { FramesRendered = other.FramesRendered; } - if (other.FramesDropped != 0) { + if (other.HasFramesDropped) { FramesDropped = other.FramesDropped; } - if (other.FrameWidth != 0) { + if (other.HasFrameWidth) { FrameWidth = other.FrameWidth; } - if (other.FrameHeight != 0) { + if (other.HasFrameHeight) { FrameHeight = other.FrameHeight; } - if (other.FramesPerSecond != 0D) { + if (other.HasFramesPerSecond) { FramesPerSecond = other.FramesPerSecond; } - if (other.QpSum != 0UL) { + if (other.HasQpSum) { QpSum = other.QpSum; } - if (other.TotalDecodeTime != 0D) { + if (other.HasTotalDecodeTime) { TotalDecodeTime = other.TotalDecodeTime; } - if (other.TotalInterFrameDelay != 0D) { + if (other.HasTotalInterFrameDelay) { TotalInterFrameDelay = other.TotalInterFrameDelay; } - if (other.TotalSquaredInterFrameDelay != 0D) { + if (other.HasTotalSquaredInterFrameDelay) { TotalSquaredInterFrameDelay = other.TotalSquaredInterFrameDelay; } - if (other.PauseCount != 0) { + if (other.HasPauseCount) { PauseCount = other.PauseCount; } - if (other.TotalPauseDuration != 0D) { + if (other.HasTotalPauseDuration) { TotalPauseDuration = other.TotalPauseDuration; } - if (other.FreezeCount != 0) { + if (other.HasFreezeCount) { FreezeCount = other.FreezeCount; } - if (other.TotalFreezeDuration != 0D) { + if (other.HasTotalFreezeDuration) { TotalFreezeDuration = other.TotalFreezeDuration; } - if (other.LastPacketReceivedTimestamp != 0D) { + if (other.HasLastPacketReceivedTimestamp) { LastPacketReceivedTimestamp = other.LastPacketReceivedTimestamp; } - if (other.HeaderBytesReceived != 0UL) { + if (other.HasHeaderBytesReceived) { HeaderBytesReceived = other.HeaderBytesReceived; } - if (other.PacketsDiscarded != 0UL) { + if (other.HasPacketsDiscarded) { PacketsDiscarded = other.PacketsDiscarded; } - if (other.FecBytesReceived != 0UL) { + if (other.HasFecBytesReceived) { FecBytesReceived = other.FecBytesReceived; } - if (other.FecPacketsReceived != 0UL) { + if (other.HasFecPacketsReceived) { FecPacketsReceived = other.FecPacketsReceived; } - if (other.FecPacketsDiscarded != 0UL) { + if (other.HasFecPacketsDiscarded) { FecPacketsDiscarded = other.FecPacketsDiscarded; } - if (other.BytesReceived != 0UL) { + if (other.HasBytesReceived) { BytesReceived = other.BytesReceived; } - if (other.NackCount != 0) { + if (other.HasNackCount) { NackCount = other.NackCount; } - if (other.FirCount != 0) { + if (other.HasFirCount) { FirCount = other.FirCount; } - if (other.PliCount != 0) { + if (other.HasPliCount) { PliCount = other.PliCount; } - if (other.TotalProcessingDelay != 0D) { + if (other.HasTotalProcessingDelay) { TotalProcessingDelay = other.TotalProcessingDelay; } - if (other.EstimatedPlayoutTimestamp != 0D) { + if (other.HasEstimatedPlayoutTimestamp) { EstimatedPlayoutTimestamp = other.EstimatedPlayoutTimestamp; } - if (other.JitterBufferDelay != 0D) { + if (other.HasJitterBufferDelay) { JitterBufferDelay = other.JitterBufferDelay; } - if (other.JitterBufferTargetDelay != 0D) { + if (other.HasJitterBufferTargetDelay) { JitterBufferTargetDelay = other.JitterBufferTargetDelay; } - if (other.JitterBufferEmittedCount != 0UL) { + if (other.HasJitterBufferEmittedCount) { JitterBufferEmittedCount = other.JitterBufferEmittedCount; } - if (other.JitterBufferMinimumDelay != 0D) { + if (other.HasJitterBufferMinimumDelay) { JitterBufferMinimumDelay = other.JitterBufferMinimumDelay; } - if (other.TotalSamplesReceived != 0UL) { + if (other.HasTotalSamplesReceived) { TotalSamplesReceived = other.TotalSamplesReceived; } - if (other.ConcealedSamples != 0UL) { + if (other.HasConcealedSamples) { ConcealedSamples = other.ConcealedSamples; } - if (other.SilentConcealedSamples != 0UL) { + if (other.HasSilentConcealedSamples) { SilentConcealedSamples = other.SilentConcealedSamples; } - if (other.ConcealmentEvents != 0UL) { + if (other.HasConcealmentEvents) { ConcealmentEvents = other.ConcealmentEvents; } - if (other.InsertedSamplesForDeceleration != 0UL) { + if (other.HasInsertedSamplesForDeceleration) { InsertedSamplesForDeceleration = other.InsertedSamplesForDeceleration; } - if (other.RemovedSamplesForAcceleration != 0UL) { + if (other.HasRemovedSamplesForAcceleration) { RemovedSamplesForAcceleration = other.RemovedSamplesForAcceleration; } - if (other.AudioLevel != 0D) { + if (other.HasAudioLevel) { AudioLevel = other.AudioLevel; } - if (other.TotalAudioEnergy != 0D) { + if (other.HasTotalAudioEnergy) { TotalAudioEnergy = other.TotalAudioEnergy; } - if (other.TotalSamplesDuration != 0D) { + if (other.HasTotalSamplesDuration) { TotalSamplesDuration = other.TotalSamplesDuration; } - if (other.FramesReceived != 0UL) { + if (other.HasFramesReceived) { FramesReceived = other.FramesReceived; } - if (other.DecoderImplementation.Length != 0) { + if (other.HasDecoderImplementation) { DecoderImplementation = other.DecoderImplementation; } - if (other.PlayoutId.Length != 0) { + if (other.HasPlayoutId) { PlayoutId = other.PlayoutId; } - if (other.PowerEfficientDecoder != false) { + if (other.HasPowerEfficientDecoder) { PowerEfficientDecoder = other.PowerEfficientDecoder; } - if (other.FramesAssembledFromMultiplePackets != 0UL) { + if (other.HasFramesAssembledFromMultiplePackets) { FramesAssembledFromMultiplePackets = other.FramesAssembledFromMultiplePackets; } - if (other.TotalAssemblyTime != 0D) { + if (other.HasTotalAssemblyTime) { TotalAssemblyTime = other.TotalAssemblyTime; } - if (other.RetransmittedPacketsReceived != 0UL) { + if (other.HasRetransmittedPacketsReceived) { RetransmittedPacketsReceived = other.RetransmittedPacketsReceived; } - if (other.RetransmittedBytesReceived != 0UL) { + if (other.HasRetransmittedBytesReceived) { RetransmittedBytesReceived = other.RetransmittedBytesReceived; } - if (other.RtxSsrc != 0) { + if (other.HasRtxSsrc) { RtxSsrc = other.RtxSsrc; } - if (other.FecSsrc != 0) { + if (other.HasFecSsrc) { FecSsrc = other.FecSsrc; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -8230,7 +9407,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -8457,7 +9638,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -8688,6 +9873,7 @@ public sealed partial class SentRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new SentRtpStreamStats()); 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; } } @@ -8715,6 +9901,7 @@ public SentRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SentRtpStreamStats(SentRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; packetsSent_ = other.packetsSent_; bytesSent_ = other.bytesSent_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -8728,27 +9915,57 @@ public SentRtpStreamStats Clone() { /// Field number for the "packets_sent" field. public const int PacketsSentFieldNumber = 1; + private readonly static ulong PacketsSentDefaultValue = 0UL; + private ulong packetsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsSent { - get { return packetsSent_; } + get { if ((_hasBits0 & 1) != 0) { return packetsSent_; } else { return PacketsSentDefaultValue; } } set { + _hasBits0 |= 1; packetsSent_ = value; } } + /// Gets whether the "packets_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsSent { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "packets_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsSent() { + _hasBits0 &= ~1; + } /// Field number for the "bytes_sent" field. public const int BytesSentFieldNumber = 2; + private readonly static ulong BytesSentDefaultValue = 0UL; + private ulong bytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesSent { - get { return bytesSent_; } + get { if ((_hasBits0 & 2) != 0) { return bytesSent_; } else { return BytesSentDefaultValue; } } set { + _hasBits0 |= 2; bytesSent_ = value; } } + /// Gets whether the "bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesSent { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesSent() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8774,8 +9991,8 @@ public bool Equals(SentRtpStreamStats other) { [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 (HasPacketsSent) hash ^= PacketsSent.GetHashCode(); + if (HasBytesSent) hash ^= BytesSent.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8794,11 +10011,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(8); output.WriteUInt64(PacketsSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(16); output.WriteUInt64(BytesSent); } @@ -8812,11 +10029,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(8); output.WriteUInt64(PacketsSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(16); output.WriteUInt64(BytesSent); } @@ -8830,10 +10047,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PacketsSent != 0UL) { + if (HasPacketsSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); } if (_unknownFields != null) { @@ -8848,10 +10065,10 @@ public void MergeFrom(SentRtpStreamStats other) { if (other == null) { return; } - if (other.PacketsSent != 0UL) { + if (other.HasPacketsSent) { PacketsSent = other.PacketsSent; } - if (other.BytesSent != 0UL) { + if (other.HasBytesSent) { BytesSent = other.BytesSent; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -8865,7 +10082,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -8888,7 +10109,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -8915,6 +10140,7 @@ public sealed partial class OutboundRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new OutboundRtpStreamStats()); 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; } } @@ -8942,6 +10168,7 @@ public OutboundRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutboundRtpStreamStats(OutboundRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; mid_ = other.mid_; mediaSourceId_ = other.mediaSourceId_; remoteId_ = other.remoteId_; @@ -8971,7 +10198,7 @@ public OutboundRtpStreamStats(OutboundRtpStreamStats other) : this() { encoderImplementation_ = other.encoderImplementation_; powerEfficientEncoder_ = other.powerEfficientEncoder_; active_ = other.active_; - scalibilityMode_ = other.scalibilityMode_; + scalabilityMode_ = other.scalabilityMode_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -8983,255 +10210,566 @@ public OutboundRtpStreamStats Clone() { /// Field number for the "mid" field. public const int MidFieldNumber = 1; - private string mid_ = ""; + private readonly static string MidDefaultValue = ""; + + private string mid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Mid { - get { return mid_; } + get { return mid_ ?? MidDefaultValue; } set { mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "mid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMid { + get { return mid_ != null; } + } + /// Clears the value of the "mid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMid() { + mid_ = null; + } /// Field number for the "media_source_id" field. public const int MediaSourceIdFieldNumber = 2; - private string mediaSourceId_ = ""; + private readonly static string MediaSourceIdDefaultValue = ""; + + private string mediaSourceId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MediaSourceId { - get { return mediaSourceId_; } + get { return mediaSourceId_ ?? MediaSourceIdDefaultValue; } set { mediaSourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "media_source_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMediaSourceId { + get { return mediaSourceId_ != null; } + } + /// Clears the value of the "media_source_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMediaSourceId() { + mediaSourceId_ = null; + } /// Field number for the "remote_id" field. public const int RemoteIdFieldNumber = 3; - private string remoteId_ = ""; + private readonly static string RemoteIdDefaultValue = ""; + + private string remoteId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RemoteId { - get { return remoteId_; } + get { return remoteId_ ?? RemoteIdDefaultValue; } set { remoteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "remote_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemoteId { + get { return remoteId_ != null; } + } + /// Clears the value of the "remote_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemoteId() { + remoteId_ = null; + } /// Field number for the "rid" field. public const int RidFieldNumber = 4; - private string rid_ = ""; + private readonly static string RidDefaultValue = ""; + + private string rid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Rid { - get { return rid_; } + get { return rid_ ?? RidDefaultValue; } set { rid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "rid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRid { + get { return rid_ != null; } + } + /// Clears the value of the "rid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRid() { + rid_ = null; + } /// Field number for the "header_bytes_sent" field. public const int HeaderBytesSentFieldNumber = 5; + private readonly static ulong HeaderBytesSentDefaultValue = 0UL; + private ulong headerBytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong HeaderBytesSent { - get { return headerBytesSent_; } + get { if ((_hasBits0 & 1) != 0) { return headerBytesSent_; } else { return HeaderBytesSentDefaultValue; } } set { + _hasBits0 |= 1; headerBytesSent_ = value; } } + /// Gets whether the "header_bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeaderBytesSent { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "header_bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeaderBytesSent() { + _hasBits0 &= ~1; + } /// Field number for the "retransmitted_packets_sent" field. public const int RetransmittedPacketsSentFieldNumber = 6; + private readonly static ulong RetransmittedPacketsSentDefaultValue = 0UL; + private ulong retransmittedPacketsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RetransmittedPacketsSent { - get { return retransmittedPacketsSent_; } + get { if ((_hasBits0 & 2) != 0) { return retransmittedPacketsSent_; } else { return RetransmittedPacketsSentDefaultValue; } } set { + _hasBits0 |= 2; retransmittedPacketsSent_ = value; } } + /// Gets whether the "retransmitted_packets_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRetransmittedPacketsSent { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "retransmitted_packets_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRetransmittedPacketsSent() { + _hasBits0 &= ~2; + } /// Field number for the "retransmitted_bytes_sent" field. public const int RetransmittedBytesSentFieldNumber = 7; + private readonly static ulong RetransmittedBytesSentDefaultValue = 0UL; + private ulong retransmittedBytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RetransmittedBytesSent { - get { return retransmittedBytesSent_; } + get { if ((_hasBits0 & 4) != 0) { return retransmittedBytesSent_; } else { return RetransmittedBytesSentDefaultValue; } } set { + _hasBits0 |= 4; retransmittedBytesSent_ = value; } } + /// Gets whether the "retransmitted_bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRetransmittedBytesSent { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "retransmitted_bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRetransmittedBytesSent() { + _hasBits0 &= ~4; + } /// Field number for the "rtx_ssrc" field. public const int RtxSsrcFieldNumber = 8; + private readonly static uint RtxSsrcDefaultValue = 0; + private uint rtxSsrc_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint RtxSsrc { - get { return rtxSsrc_; } + get { if ((_hasBits0 & 8) != 0) { return rtxSsrc_; } else { return RtxSsrcDefaultValue; } } set { + _hasBits0 |= 8; rtxSsrc_ = value; } } + /// Gets whether the "rtx_ssrc" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRtxSsrc { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "rtx_ssrc" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRtxSsrc() { + _hasBits0 &= ~8; + } /// Field number for the "target_bitrate" field. public const int TargetBitrateFieldNumber = 9; + private readonly static double TargetBitrateDefaultValue = 0D; + private double targetBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TargetBitrate { - get { return targetBitrate_; } + get { if ((_hasBits0 & 16) != 0) { return targetBitrate_; } else { return TargetBitrateDefaultValue; } } set { + _hasBits0 |= 16; targetBitrate_ = value; } } + /// Gets whether the "target_bitrate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTargetBitrate { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "target_bitrate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTargetBitrate() { + _hasBits0 &= ~16; + } /// Field number for the "total_encoded_bytes_target" field. public const int TotalEncodedBytesTargetFieldNumber = 10; + private readonly static ulong TotalEncodedBytesTargetDefaultValue = 0UL; + private ulong totalEncodedBytesTarget_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TotalEncodedBytesTarget { - get { return totalEncodedBytesTarget_; } + get { if ((_hasBits0 & 32) != 0) { return totalEncodedBytesTarget_; } else { return TotalEncodedBytesTargetDefaultValue; } } set { + _hasBits0 |= 32; totalEncodedBytesTarget_ = value; } } + /// Gets whether the "total_encoded_bytes_target" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalEncodedBytesTarget { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "total_encoded_bytes_target" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalEncodedBytesTarget() { + _hasBits0 &= ~32; + } /// Field number for the "frame_width" field. public const int FrameWidthFieldNumber = 11; + private readonly static uint FrameWidthDefaultValue = 0; + private uint frameWidth_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FrameWidth { - get { return frameWidth_; } + get { if ((_hasBits0 & 64) != 0) { return frameWidth_; } else { return FrameWidthDefaultValue; } } set { + _hasBits0 |= 64; frameWidth_ = value; } } + /// Gets whether the "frame_width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrameWidth { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "frame_width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrameWidth() { + _hasBits0 &= ~64; + } /// Field number for the "frame_height" field. public const int FrameHeightFieldNumber = 12; + private readonly static uint FrameHeightDefaultValue = 0; + private uint frameHeight_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FrameHeight { - get { return frameHeight_; } + get { if ((_hasBits0 & 128) != 0) { return frameHeight_; } else { return FrameHeightDefaultValue; } } set { + _hasBits0 |= 128; frameHeight_ = value; } } + /// Gets whether the "frame_height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrameHeight { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "frame_height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrameHeight() { + _hasBits0 &= ~128; + } /// Field number for the "frames_per_second" field. public const int FramesPerSecondFieldNumber = 13; + private readonly static double FramesPerSecondDefaultValue = 0D; + private double framesPerSecond_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double FramesPerSecond { - get { return framesPerSecond_; } + get { if ((_hasBits0 & 256) != 0) { return framesPerSecond_; } else { return FramesPerSecondDefaultValue; } } set { + _hasBits0 |= 256; framesPerSecond_ = value; } } + /// Gets whether the "frames_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesPerSecond { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "frames_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesPerSecond() { + _hasBits0 &= ~256; + } /// Field number for the "frames_sent" field. public const int FramesSentFieldNumber = 14; + private readonly static uint FramesSentDefaultValue = 0; + private uint framesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FramesSent { - get { return framesSent_; } + get { if ((_hasBits0 & 512) != 0) { return framesSent_; } else { return FramesSentDefaultValue; } } set { + _hasBits0 |= 512; framesSent_ = value; } } + /// Gets whether the "frames_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesSent { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "frames_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesSent() { + _hasBits0 &= ~512; + } /// Field number for the "huge_frames_sent" field. public const int HugeFramesSentFieldNumber = 15; + private readonly static uint HugeFramesSentDefaultValue = 0; + private uint hugeFramesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint HugeFramesSent { - get { return hugeFramesSent_; } + get { if ((_hasBits0 & 1024) != 0) { return hugeFramesSent_; } else { return HugeFramesSentDefaultValue; } } set { + _hasBits0 |= 1024; hugeFramesSent_ = value; } } + /// Gets whether the "huge_frames_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHugeFramesSent { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "huge_frames_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHugeFramesSent() { + _hasBits0 &= ~1024; + } /// Field number for the "frames_encoded" field. public const int FramesEncodedFieldNumber = 16; + private readonly static uint FramesEncodedDefaultValue = 0; + private uint framesEncoded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FramesEncoded { - get { return framesEncoded_; } + get { if ((_hasBits0 & 2048) != 0) { return framesEncoded_; } else { return FramesEncodedDefaultValue; } } set { + _hasBits0 |= 2048; framesEncoded_ = value; } } + /// Gets whether the "frames_encoded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesEncoded { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "frames_encoded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesEncoded() { + _hasBits0 &= ~2048; + } /// Field number for the "key_frames_encoded" field. public const int KeyFramesEncodedFieldNumber = 17; + private readonly static uint KeyFramesEncodedDefaultValue = 0; + private uint keyFramesEncoded_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint KeyFramesEncoded { - get { return keyFramesEncoded_; } + get { if ((_hasBits0 & 4096) != 0) { return keyFramesEncoded_; } else { return KeyFramesEncodedDefaultValue; } } set { + _hasBits0 |= 4096; keyFramesEncoded_ = value; } } + /// Gets whether the "key_frames_encoded" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKeyFramesEncoded { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "key_frames_encoded" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKeyFramesEncoded() { + _hasBits0 &= ~4096; + } /// Field number for the "qp_sum" field. public const int QpSumFieldNumber = 18; + private readonly static ulong QpSumDefaultValue = 0UL; + private ulong qpSum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong QpSum { - get { return qpSum_; } + get { if ((_hasBits0 & 8192) != 0) { return qpSum_; } else { return QpSumDefaultValue; } } set { + _hasBits0 |= 8192; qpSum_ = value; } } + /// Gets whether the "qp_sum" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQpSum { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "qp_sum" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQpSum() { + _hasBits0 &= ~8192; + } /// Field number for the "total_encode_time" field. public const int TotalEncodeTimeFieldNumber = 19; + private readonly static double TotalEncodeTimeDefaultValue = 0D; + private double totalEncodeTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalEncodeTime { - get { return totalEncodeTime_; } + get { if ((_hasBits0 & 16384) != 0) { return totalEncodeTime_; } else { return TotalEncodeTimeDefaultValue; } } set { + _hasBits0 |= 16384; totalEncodeTime_ = value; } } + /// Gets whether the "total_encode_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalEncodeTime { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "total_encode_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalEncodeTime() { + _hasBits0 &= ~16384; + } /// Field number for the "total_packet_send_delay" field. public const int TotalPacketSendDelayFieldNumber = 20; + private readonly static double TotalPacketSendDelayDefaultValue = 0D; + private double totalPacketSendDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalPacketSendDelay { - get { return totalPacketSendDelay_; } + get { if ((_hasBits0 & 32768) != 0) { return totalPacketSendDelay_; } else { return TotalPacketSendDelayDefaultValue; } } set { + _hasBits0 |= 32768; totalPacketSendDelay_ = value; } } + /// Gets whether the "total_packet_send_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalPacketSendDelay { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "total_packet_send_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalPacketSendDelay() { + _hasBits0 &= ~32768; + } /// Field number for the "quality_limitation_reason" field. public const int QualityLimitationReasonFieldNumber = 21; - private global::LiveKit.Proto.QualityLimitationReason qualityLimitationReason_ = global::LiveKit.Proto.QualityLimitationReason.LimitationNone; + private readonly static global::LiveKit.Proto.QualityLimitationReason QualityLimitationReasonDefaultValue = global::LiveKit.Proto.QualityLimitationReason.LimitationNone; + + private global::LiveKit.Proto.QualityLimitationReason qualityLimitationReason_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.QualityLimitationReason QualityLimitationReason { - get { return qualityLimitationReason_; } + get { if ((_hasBits0 & 65536) != 0) { return qualityLimitationReason_; } else { return QualityLimitationReasonDefaultValue; } } set { + _hasBits0 |= 65536; qualityLimitationReason_ = value; } } + /// Gets whether the "quality_limitation_reason" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQualityLimitationReason { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "quality_limitation_reason" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQualityLimitationReason() { + _hasBits0 &= ~65536; + } /// Field number for the "quality_limitation_durations" field. public const int QualityLimitationDurationsFieldNumber = 22; @@ -9246,99 +10784,217 @@ public double TotalPacketSendDelay { /// Field number for the "quality_limitation_resolution_changes" field. public const int QualityLimitationResolutionChangesFieldNumber = 23; + private readonly static uint QualityLimitationResolutionChangesDefaultValue = 0; + private uint qualityLimitationResolutionChanges_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint QualityLimitationResolutionChanges { - get { return qualityLimitationResolutionChanges_; } + get { if ((_hasBits0 & 131072) != 0) { return qualityLimitationResolutionChanges_; } else { return QualityLimitationResolutionChangesDefaultValue; } } set { + _hasBits0 |= 131072; qualityLimitationResolutionChanges_ = value; } } + /// Gets whether the "quality_limitation_resolution_changes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQualityLimitationResolutionChanges { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "quality_limitation_resolution_changes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQualityLimitationResolutionChanges() { + _hasBits0 &= ~131072; + } /// Field number for the "nack_count" field. public const int NackCountFieldNumber = 24; + private readonly static uint NackCountDefaultValue = 0; + private uint nackCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint NackCount { - get { return nackCount_; } + get { if ((_hasBits0 & 262144) != 0) { return nackCount_; } else { return NackCountDefaultValue; } } set { + _hasBits0 |= 262144; nackCount_ = value; } } + /// Gets whether the "nack_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNackCount { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "nack_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNackCount() { + _hasBits0 &= ~262144; + } /// Field number for the "fir_count" field. public const int FirCountFieldNumber = 25; + private readonly static uint FirCountDefaultValue = 0; + private uint firCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint FirCount { - get { return firCount_; } + get { if ((_hasBits0 & 524288) != 0) { return firCount_; } else { return FirCountDefaultValue; } } set { + _hasBits0 |= 524288; firCount_ = value; } } + /// Gets whether the "fir_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFirCount { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "fir_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFirCount() { + _hasBits0 &= ~524288; + } /// Field number for the "pli_count" field. public const int PliCountFieldNumber = 26; + private readonly static uint PliCountDefaultValue = 0; + private uint pliCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PliCount { - get { return pliCount_; } + get { if ((_hasBits0 & 1048576) != 0) { return pliCount_; } else { return PliCountDefaultValue; } } set { + _hasBits0 |= 1048576; pliCount_ = value; } } + /// Gets whether the "pli_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPliCount { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "pli_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPliCount() { + _hasBits0 &= ~1048576; + } /// Field number for the "encoder_implementation" field. public const int EncoderImplementationFieldNumber = 27; - private string encoderImplementation_ = ""; + private readonly static string EncoderImplementationDefaultValue = ""; + + private string encoderImplementation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EncoderImplementation { - get { return encoderImplementation_; } + get { return encoderImplementation_ ?? EncoderImplementationDefaultValue; } set { encoderImplementation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "encoder_implementation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEncoderImplementation { + get { return encoderImplementation_ != null; } + } + /// Clears the value of the "encoder_implementation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncoderImplementation() { + encoderImplementation_ = null; + } /// Field number for the "power_efficient_encoder" field. public const int PowerEfficientEncoderFieldNumber = 28; + private readonly static bool PowerEfficientEncoderDefaultValue = false; + private bool powerEfficientEncoder_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool PowerEfficientEncoder { - get { return powerEfficientEncoder_; } + get { if ((_hasBits0 & 2097152) != 0) { return powerEfficientEncoder_; } else { return PowerEfficientEncoderDefaultValue; } } set { + _hasBits0 |= 2097152; powerEfficientEncoder_ = value; } } + /// Gets whether the "power_efficient_encoder" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPowerEfficientEncoder { + get { return (_hasBits0 & 2097152) != 0; } + } + /// Clears the value of the "power_efficient_encoder" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPowerEfficientEncoder() { + _hasBits0 &= ~2097152; + } /// Field number for the "active" field. public const int ActiveFieldNumber = 29; + private readonly static bool ActiveDefaultValue = false; + private bool active_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Active { - get { return active_; } + get { if ((_hasBits0 & 4194304) != 0) { return active_; } else { return ActiveDefaultValue; } } set { + _hasBits0 |= 4194304; active_ = value; } } + /// Gets whether the "active" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasActive { + get { return (_hasBits0 & 4194304) != 0; } + } + /// Clears the value of the "active" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearActive() { + _hasBits0 &= ~4194304; + } - /// Field number for the "scalibility_mode" field. - public const int ScalibilityModeFieldNumber = 30; - private string scalibilityMode_ = ""; + /// Field number for the "scalability_mode" field. + public const int ScalabilityModeFieldNumber = 30; + private readonly static string ScalabilityModeDefaultValue = ""; + + private string scalabilityMode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ScalibilityMode { - get { return scalibilityMode_; } + public string ScalabilityMode { + get { return scalabilityMode_ ?? ScalabilityModeDefaultValue; } set { - scalibilityMode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + scalabilityMode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "scalability_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasScalabilityMode { + get { return scalabilityMode_ != null; } + } + /// Clears the value of the "scalability_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearScalabilityMode() { + scalabilityMode_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9384,7 +11040,7 @@ public bool Equals(OutboundRtpStreamStats other) { if (EncoderImplementation != other.EncoderImplementation) return false; if (PowerEfficientEncoder != other.PowerEfficientEncoder) return false; if (Active != other.Active) return false; - if (ScalibilityMode != other.ScalibilityMode) return false; + if (ScalabilityMode != other.ScalabilityMode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9392,36 +11048,36 @@ public bool Equals(OutboundRtpStreamStats other) { [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(); + if (HasMid) hash ^= Mid.GetHashCode(); + if (HasMediaSourceId) hash ^= MediaSourceId.GetHashCode(); + if (HasRemoteId) hash ^= RemoteId.GetHashCode(); + if (HasRid) hash ^= Rid.GetHashCode(); + if (HasHeaderBytesSent) hash ^= HeaderBytesSent.GetHashCode(); + if (HasRetransmittedPacketsSent) hash ^= RetransmittedPacketsSent.GetHashCode(); + if (HasRetransmittedBytesSent) hash ^= RetransmittedBytesSent.GetHashCode(); + if (HasRtxSsrc) hash ^= RtxSsrc.GetHashCode(); + if (HasTargetBitrate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetBitrate); + if (HasTotalEncodedBytesTarget) hash ^= TotalEncodedBytesTarget.GetHashCode(); + if (HasFrameWidth) hash ^= FrameWidth.GetHashCode(); + if (HasFrameHeight) hash ^= FrameHeight.GetHashCode(); + if (HasFramesPerSecond) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); + if (HasFramesSent) hash ^= FramesSent.GetHashCode(); + if (HasHugeFramesSent) hash ^= HugeFramesSent.GetHashCode(); + if (HasFramesEncoded) hash ^= FramesEncoded.GetHashCode(); + if (HasKeyFramesEncoded) hash ^= KeyFramesEncoded.GetHashCode(); + if (HasQpSum) hash ^= QpSum.GetHashCode(); + if (HasTotalEncodeTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalEncodeTime); + if (HasTotalPacketSendDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPacketSendDelay); + if (HasQualityLimitationReason) 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 (HasQualityLimitationResolutionChanges) hash ^= QualityLimitationResolutionChanges.GetHashCode(); + if (HasNackCount) hash ^= NackCount.GetHashCode(); + if (HasFirCount) hash ^= FirCount.GetHashCode(); + if (HasPliCount) hash ^= PliCount.GetHashCode(); + if (HasEncoderImplementation) hash ^= EncoderImplementation.GetHashCode(); + if (HasPowerEfficientEncoder) hash ^= PowerEfficientEncoder.GetHashCode(); + if (HasActive) hash ^= Active.GetHashCode(); + if (HasScalabilityMode) hash ^= ScalabilityMode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9440,122 +11096,122 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Mid.Length != 0) { + if (HasMid) { output.WriteRawTag(10); output.WriteString(Mid); } - if (MediaSourceId.Length != 0) { + if (HasMediaSourceId) { output.WriteRawTag(18); output.WriteString(MediaSourceId); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { output.WriteRawTag(26); output.WriteString(RemoteId); } - if (Rid.Length != 0) { + if (HasRid) { output.WriteRawTag(34); output.WriteString(Rid); } - if (HeaderBytesSent != 0UL) { + if (HasHeaderBytesSent) { output.WriteRawTag(40); output.WriteUInt64(HeaderBytesSent); } - if (RetransmittedPacketsSent != 0UL) { + if (HasRetransmittedPacketsSent) { output.WriteRawTag(48); output.WriteUInt64(RetransmittedPacketsSent); } - if (RetransmittedBytesSent != 0UL) { + if (HasRetransmittedBytesSent) { output.WriteRawTag(56); output.WriteUInt64(RetransmittedBytesSent); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { output.WriteRawTag(64); output.WriteUInt32(RtxSsrc); } - if (TargetBitrate != 0D) { + if (HasTargetBitrate) { output.WriteRawTag(73); output.WriteDouble(TargetBitrate); } - if (TotalEncodedBytesTarget != 0UL) { + if (HasTotalEncodedBytesTarget) { output.WriteRawTag(80); output.WriteUInt64(TotalEncodedBytesTarget); } - if (FrameWidth != 0) { + if (HasFrameWidth) { output.WriteRawTag(88); output.WriteUInt32(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { output.WriteRawTag(96); output.WriteUInt32(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(105); output.WriteDouble(FramesPerSecond); } - if (FramesSent != 0) { + if (HasFramesSent) { output.WriteRawTag(112); output.WriteUInt32(FramesSent); } - if (HugeFramesSent != 0) { + if (HasHugeFramesSent) { output.WriteRawTag(120); output.WriteUInt32(HugeFramesSent); } - if (FramesEncoded != 0) { + if (HasFramesEncoded) { output.WriteRawTag(128, 1); output.WriteUInt32(FramesEncoded); } - if (KeyFramesEncoded != 0) { + if (HasKeyFramesEncoded) { output.WriteRawTag(136, 1); output.WriteUInt32(KeyFramesEncoded); } - if (QpSum != 0UL) { + if (HasQpSum) { output.WriteRawTag(144, 1); output.WriteUInt64(QpSum); } - if (TotalEncodeTime != 0D) { + if (HasTotalEncodeTime) { output.WriteRawTag(153, 1); output.WriteDouble(TotalEncodeTime); } - if (TotalPacketSendDelay != 0D) { + if (HasTotalPacketSendDelay) { output.WriteRawTag(161, 1); output.WriteDouble(TotalPacketSendDelay); } - if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + if (HasQualityLimitationReason) { output.WriteRawTag(168, 1); output.WriteEnum((int) QualityLimitationReason); } qualityLimitationDurations_.WriteTo(output, _map_qualityLimitationDurations_codec); - if (QualityLimitationResolutionChanges != 0) { + if (HasQualityLimitationResolutionChanges) { output.WriteRawTag(184, 1); output.WriteUInt32(QualityLimitationResolutionChanges); } - if (NackCount != 0) { + if (HasNackCount) { output.WriteRawTag(192, 1); output.WriteUInt32(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { output.WriteRawTag(200, 1); output.WriteUInt32(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { output.WriteRawTag(208, 1); output.WriteUInt32(PliCount); } - if (EncoderImplementation.Length != 0) { + if (HasEncoderImplementation) { output.WriteRawTag(218, 1); output.WriteString(EncoderImplementation); } - if (PowerEfficientEncoder != false) { + if (HasPowerEfficientEncoder) { output.WriteRawTag(224, 1); output.WriteBool(PowerEfficientEncoder); } - if (Active != false) { + if (HasActive) { output.WriteRawTag(232, 1); output.WriteBool(Active); } - if (ScalibilityMode.Length != 0) { + if (HasScalabilityMode) { output.WriteRawTag(242, 1); - output.WriteString(ScalibilityMode); + output.WriteString(ScalabilityMode); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9567,122 +11223,122 @@ 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 (Mid.Length != 0) { + if (HasMid) { output.WriteRawTag(10); output.WriteString(Mid); } - if (MediaSourceId.Length != 0) { + if (HasMediaSourceId) { output.WriteRawTag(18); output.WriteString(MediaSourceId); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { output.WriteRawTag(26); output.WriteString(RemoteId); } - if (Rid.Length != 0) { + if (HasRid) { output.WriteRawTag(34); output.WriteString(Rid); } - if (HeaderBytesSent != 0UL) { + if (HasHeaderBytesSent) { output.WriteRawTag(40); output.WriteUInt64(HeaderBytesSent); } - if (RetransmittedPacketsSent != 0UL) { + if (HasRetransmittedPacketsSent) { output.WriteRawTag(48); output.WriteUInt64(RetransmittedPacketsSent); } - if (RetransmittedBytesSent != 0UL) { + if (HasRetransmittedBytesSent) { output.WriteRawTag(56); output.WriteUInt64(RetransmittedBytesSent); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { output.WriteRawTag(64); output.WriteUInt32(RtxSsrc); } - if (TargetBitrate != 0D) { + if (HasTargetBitrate) { output.WriteRawTag(73); output.WriteDouble(TargetBitrate); } - if (TotalEncodedBytesTarget != 0UL) { + if (HasTotalEncodedBytesTarget) { output.WriteRawTag(80); output.WriteUInt64(TotalEncodedBytesTarget); } - if (FrameWidth != 0) { + if (HasFrameWidth) { output.WriteRawTag(88); output.WriteUInt32(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { output.WriteRawTag(96); output.WriteUInt32(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(105); output.WriteDouble(FramesPerSecond); } - if (FramesSent != 0) { + if (HasFramesSent) { output.WriteRawTag(112); output.WriteUInt32(FramesSent); } - if (HugeFramesSent != 0) { + if (HasHugeFramesSent) { output.WriteRawTag(120); output.WriteUInt32(HugeFramesSent); } - if (FramesEncoded != 0) { + if (HasFramesEncoded) { output.WriteRawTag(128, 1); output.WriteUInt32(FramesEncoded); } - if (KeyFramesEncoded != 0) { + if (HasKeyFramesEncoded) { output.WriteRawTag(136, 1); output.WriteUInt32(KeyFramesEncoded); } - if (QpSum != 0UL) { + if (HasQpSum) { output.WriteRawTag(144, 1); output.WriteUInt64(QpSum); } - if (TotalEncodeTime != 0D) { + if (HasTotalEncodeTime) { output.WriteRawTag(153, 1); output.WriteDouble(TotalEncodeTime); } - if (TotalPacketSendDelay != 0D) { + if (HasTotalPacketSendDelay) { output.WriteRawTag(161, 1); output.WriteDouble(TotalPacketSendDelay); } - if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + if (HasQualityLimitationReason) { output.WriteRawTag(168, 1); output.WriteEnum((int) QualityLimitationReason); } qualityLimitationDurations_.WriteTo(ref output, _map_qualityLimitationDurations_codec); - if (QualityLimitationResolutionChanges != 0) { + if (HasQualityLimitationResolutionChanges) { output.WriteRawTag(184, 1); output.WriteUInt32(QualityLimitationResolutionChanges); } - if (NackCount != 0) { + if (HasNackCount) { output.WriteRawTag(192, 1); output.WriteUInt32(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { output.WriteRawTag(200, 1); output.WriteUInt32(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { output.WriteRawTag(208, 1); output.WriteUInt32(PliCount); } - if (EncoderImplementation.Length != 0) { + if (HasEncoderImplementation) { output.WriteRawTag(218, 1); output.WriteString(EncoderImplementation); } - if (PowerEfficientEncoder != false) { + if (HasPowerEfficientEncoder) { output.WriteRawTag(224, 1); output.WriteBool(PowerEfficientEncoder); } - if (Active != false) { + if (HasActive) { output.WriteRawTag(232, 1); output.WriteBool(Active); } - if (ScalibilityMode.Length != 0) { + if (HasScalabilityMode) { output.WriteRawTag(242, 1); - output.WriteString(ScalibilityMode); + output.WriteString(ScalabilityMode); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9694,93 +11350,93 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Mid.Length != 0) { + if (HasMid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); } - if (MediaSourceId.Length != 0) { + if (HasMediaSourceId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MediaSourceId); } - if (RemoteId.Length != 0) { + if (HasRemoteId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteId); } - if (Rid.Length != 0) { + if (HasRid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Rid); } - if (HeaderBytesSent != 0UL) { + if (HasHeaderBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(HeaderBytesSent); } - if (RetransmittedPacketsSent != 0UL) { + if (HasRetransmittedPacketsSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedPacketsSent); } - if (RetransmittedBytesSent != 0UL) { + if (HasRetransmittedBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RetransmittedBytesSent); } - if (RtxSsrc != 0) { + if (HasRtxSsrc) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RtxSsrc); } - if (TargetBitrate != 0D) { + if (HasTargetBitrate) { size += 1 + 8; } - if (TotalEncodedBytesTarget != 0UL) { + if (HasTotalEncodedBytesTarget) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalEncodedBytesTarget); } - if (FrameWidth != 0) { + if (HasFrameWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameWidth); } - if (FrameHeight != 0) { + if (HasFrameHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameHeight); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { size += 1 + 8; } - if (FramesSent != 0) { + if (HasFramesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FramesSent); } - if (HugeFramesSent != 0) { + if (HasHugeFramesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(HugeFramesSent); } - if (FramesEncoded != 0) { + if (HasFramesEncoded) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FramesEncoded); } - if (KeyFramesEncoded != 0) { + if (HasKeyFramesEncoded) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(KeyFramesEncoded); } - if (QpSum != 0UL) { + if (HasQpSum) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(QpSum); } - if (TotalEncodeTime != 0D) { + if (HasTotalEncodeTime) { size += 2 + 8; } - if (TotalPacketSendDelay != 0D) { + if (HasTotalPacketSendDelay) { size += 2 + 8; } - if (QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + if (HasQualityLimitationReason) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) QualityLimitationReason); } size += qualityLimitationDurations_.CalculateSize(_map_qualityLimitationDurations_codec); - if (QualityLimitationResolutionChanges != 0) { + if (HasQualityLimitationResolutionChanges) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(QualityLimitationResolutionChanges); } - if (NackCount != 0) { + if (HasNackCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(NackCount); } - if (FirCount != 0) { + if (HasFirCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FirCount); } - if (PliCount != 0) { + if (HasPliCount) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PliCount); } - if (EncoderImplementation.Length != 0) { + if (HasEncoderImplementation) { size += 2 + pb::CodedOutputStream.ComputeStringSize(EncoderImplementation); } - if (PowerEfficientEncoder != false) { + if (HasPowerEfficientEncoder) { size += 2 + 1; } - if (Active != false) { + if (HasActive) { size += 2 + 1; } - if (ScalibilityMode.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ScalibilityMode); + if (HasScalabilityMode) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ScalabilityMode); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9794,93 +11450,93 @@ public void MergeFrom(OutboundRtpStreamStats other) { if (other == null) { return; } - if (other.Mid.Length != 0) { + if (other.HasMid) { Mid = other.Mid; } - if (other.MediaSourceId.Length != 0) { + if (other.HasMediaSourceId) { MediaSourceId = other.MediaSourceId; } - if (other.RemoteId.Length != 0) { + if (other.HasRemoteId) { RemoteId = other.RemoteId; } - if (other.Rid.Length != 0) { + if (other.HasRid) { Rid = other.Rid; } - if (other.HeaderBytesSent != 0UL) { + if (other.HasHeaderBytesSent) { HeaderBytesSent = other.HeaderBytesSent; } - if (other.RetransmittedPacketsSent != 0UL) { + if (other.HasRetransmittedPacketsSent) { RetransmittedPacketsSent = other.RetransmittedPacketsSent; } - if (other.RetransmittedBytesSent != 0UL) { + if (other.HasRetransmittedBytesSent) { RetransmittedBytesSent = other.RetransmittedBytesSent; } - if (other.RtxSsrc != 0) { + if (other.HasRtxSsrc) { RtxSsrc = other.RtxSsrc; } - if (other.TargetBitrate != 0D) { + if (other.HasTargetBitrate) { TargetBitrate = other.TargetBitrate; } - if (other.TotalEncodedBytesTarget != 0UL) { + if (other.HasTotalEncodedBytesTarget) { TotalEncodedBytesTarget = other.TotalEncodedBytesTarget; } - if (other.FrameWidth != 0) { + if (other.HasFrameWidth) { FrameWidth = other.FrameWidth; } - if (other.FrameHeight != 0) { + if (other.HasFrameHeight) { FrameHeight = other.FrameHeight; } - if (other.FramesPerSecond != 0D) { + if (other.HasFramesPerSecond) { FramesPerSecond = other.FramesPerSecond; } - if (other.FramesSent != 0) { + if (other.HasFramesSent) { FramesSent = other.FramesSent; } - if (other.HugeFramesSent != 0) { + if (other.HasHugeFramesSent) { HugeFramesSent = other.HugeFramesSent; } - if (other.FramesEncoded != 0) { + if (other.HasFramesEncoded) { FramesEncoded = other.FramesEncoded; } - if (other.KeyFramesEncoded != 0) { + if (other.HasKeyFramesEncoded) { KeyFramesEncoded = other.KeyFramesEncoded; } - if (other.QpSum != 0UL) { + if (other.HasQpSum) { QpSum = other.QpSum; } - if (other.TotalEncodeTime != 0D) { + if (other.HasTotalEncodeTime) { TotalEncodeTime = other.TotalEncodeTime; } - if (other.TotalPacketSendDelay != 0D) { + if (other.HasTotalPacketSendDelay) { TotalPacketSendDelay = other.TotalPacketSendDelay; } - if (other.QualityLimitationReason != global::LiveKit.Proto.QualityLimitationReason.LimitationNone) { + if (other.HasQualityLimitationReason) { QualityLimitationReason = other.QualityLimitationReason; } qualityLimitationDurations_.MergeFrom(other.qualityLimitationDurations_); - if (other.QualityLimitationResolutionChanges != 0) { + if (other.HasQualityLimitationResolutionChanges) { QualityLimitationResolutionChanges = other.QualityLimitationResolutionChanges; } - if (other.NackCount != 0) { + if (other.HasNackCount) { NackCount = other.NackCount; } - if (other.FirCount != 0) { + if (other.HasFirCount) { FirCount = other.FirCount; } - if (other.PliCount != 0) { + if (other.HasPliCount) { PliCount = other.PliCount; } - if (other.EncoderImplementation.Length != 0) { + if (other.HasEncoderImplementation) { EncoderImplementation = other.EncoderImplementation; } - if (other.PowerEfficientEncoder != false) { + if (other.HasPowerEfficientEncoder) { PowerEfficientEncoder = other.PowerEfficientEncoder; } - if (other.Active != false) { + if (other.HasActive) { Active = other.Active; } - if (other.ScalibilityMode.Length != 0) { - ScalibilityMode = other.ScalibilityMode; + if (other.HasScalabilityMode) { + ScalabilityMode = other.ScalabilityMode; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9893,7 +11549,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -10014,7 +11674,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 242: { - ScalibilityMode = input.ReadString(); + ScalabilityMode = input.ReadString(); break; } } @@ -10028,7 +11688,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -10149,7 +11813,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 242: { - ScalibilityMode = input.ReadString(); + ScalabilityMode = input.ReadString(); break; } } @@ -10167,6 +11831,7 @@ public sealed partial class RemoteInboundRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new RemoteInboundRtpStreamStats()); 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; } } @@ -10194,6 +11859,7 @@ public RemoteInboundRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteInboundRtpStreamStats(RemoteInboundRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; localId_ = other.localId_; roundTripTime_ = other.roundTripTime_; totalRoundTripTime_ = other.totalRoundTripTime_; @@ -10210,63 +11876,137 @@ public RemoteInboundRtpStreamStats Clone() { /// Field number for the "local_id" field. public const int LocalIdFieldNumber = 1; - private string localId_ = ""; + private readonly static string LocalIdDefaultValue = ""; + + private string localId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string LocalId { - get { return localId_; } + get { return localId_ ?? LocalIdDefaultValue; } set { localId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "local_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalId { + get { return localId_ != null; } + } + /// Clears the value of the "local_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalId() { + localId_ = null; + } /// Field number for the "round_trip_time" field. public const int RoundTripTimeFieldNumber = 2; + private readonly static double RoundTripTimeDefaultValue = 0D; + private double roundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double RoundTripTime { - get { return roundTripTime_; } + get { if ((_hasBits0 & 1) != 0) { return roundTripTime_; } else { return RoundTripTimeDefaultValue; } } set { + _hasBits0 |= 1; roundTripTime_ = value; } } + /// Gets whether the "round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoundTripTime { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoundTripTime() { + _hasBits0 &= ~1; + } /// Field number for the "total_round_trip_time" field. public const int TotalRoundTripTimeFieldNumber = 3; + private readonly static double TotalRoundTripTimeDefaultValue = 0D; + private double totalRoundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalRoundTripTime { - get { return totalRoundTripTime_; } + get { if ((_hasBits0 & 2) != 0) { return totalRoundTripTime_; } else { return TotalRoundTripTimeDefaultValue; } } set { + _hasBits0 |= 2; totalRoundTripTime_ = value; } } + /// Gets whether the "total_round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalRoundTripTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "total_round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalRoundTripTime() { + _hasBits0 &= ~2; + } /// Field number for the "fraction_lost" field. public const int FractionLostFieldNumber = 4; + private readonly static double FractionLostDefaultValue = 0D; + private double fractionLost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double FractionLost { - get { return fractionLost_; } - set { - fractionLost_ = value; - } + public double FractionLost { + get { if ((_hasBits0 & 4) != 0) { return fractionLost_; } else { return FractionLostDefaultValue; } } + set { + _hasBits0 |= 4; + fractionLost_ = value; + } + } + /// Gets whether the "fraction_lost" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFractionLost { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "fraction_lost" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFractionLost() { + _hasBits0 &= ~4; } /// Field number for the "round_trip_time_measurements" field. public const int RoundTripTimeMeasurementsFieldNumber = 5; + private readonly static ulong RoundTripTimeMeasurementsDefaultValue = 0UL; + private ulong roundTripTimeMeasurements_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RoundTripTimeMeasurements { - get { return roundTripTimeMeasurements_; } + get { if ((_hasBits0 & 8) != 0) { return roundTripTimeMeasurements_; } else { return RoundTripTimeMeasurementsDefaultValue; } } set { + _hasBits0 |= 8; roundTripTimeMeasurements_ = value; } } + /// Gets whether the "round_trip_time_measurements" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoundTripTimeMeasurements { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "round_trip_time_measurements" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoundTripTimeMeasurements() { + _hasBits0 &= ~8; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10295,11 +12035,11 @@ public bool Equals(RemoteInboundRtpStreamStats other) { [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 (HasLocalId) hash ^= LocalId.GetHashCode(); + if (HasRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RoundTripTime); + if (HasTotalRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (HasFractionLost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FractionLost); + if (HasRoundTripTimeMeasurements) hash ^= RoundTripTimeMeasurements.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10318,23 +12058,23 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalId.Length != 0) { + if (HasLocalId) { output.WriteRawTag(10); output.WriteString(LocalId); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { output.WriteRawTag(17); output.WriteDouble(RoundTripTime); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(25); output.WriteDouble(TotalRoundTripTime); } - if (FractionLost != 0D) { + if (HasFractionLost) { output.WriteRawTag(33); output.WriteDouble(FractionLost); } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { output.WriteRawTag(40); output.WriteUInt64(RoundTripTimeMeasurements); } @@ -10348,23 +12088,23 @@ 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 (LocalId.Length != 0) { + if (HasLocalId) { output.WriteRawTag(10); output.WriteString(LocalId); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { output.WriteRawTag(17); output.WriteDouble(RoundTripTime); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(25); output.WriteDouble(TotalRoundTripTime); } - if (FractionLost != 0D) { + if (HasFractionLost) { output.WriteRawTag(33); output.WriteDouble(FractionLost); } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { output.WriteRawTag(40); output.WriteUInt64(RoundTripTimeMeasurements); } @@ -10378,19 +12118,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalId.Length != 0) { + if (HasLocalId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalId); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { size += 1 + 8; } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { size += 1 + 8; } - if (FractionLost != 0D) { + if (HasFractionLost) { size += 1 + 8; } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoundTripTimeMeasurements); } if (_unknownFields != null) { @@ -10405,19 +12145,19 @@ public void MergeFrom(RemoteInboundRtpStreamStats other) { if (other == null) { return; } - if (other.LocalId.Length != 0) { + if (other.HasLocalId) { LocalId = other.LocalId; } - if (other.RoundTripTime != 0D) { + if (other.HasRoundTripTime) { RoundTripTime = other.RoundTripTime; } - if (other.TotalRoundTripTime != 0D) { + if (other.HasTotalRoundTripTime) { TotalRoundTripTime = other.TotalRoundTripTime; } - if (other.FractionLost != 0D) { + if (other.HasFractionLost) { FractionLost = other.FractionLost; } - if (other.RoundTripTimeMeasurements != 0UL) { + if (other.HasRoundTripTimeMeasurements) { RoundTripTimeMeasurements = other.RoundTripTimeMeasurements; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -10431,7 +12171,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -10466,7 +12210,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -10505,6 +12253,7 @@ public sealed partial class RemoteOutboundRtpStreamStats : pb::IMessage _parser = new pb::MessageParser(() => new RemoteOutboundRtpStreamStats()); 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; } } @@ -10532,6 +12281,7 @@ public RemoteOutboundRtpStreamStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoteOutboundRtpStreamStats(RemoteOutboundRtpStreamStats other) : this() { + _hasBits0 = other._hasBits0; localId_ = other.localId_; remoteTimestamp_ = other.remoteTimestamp_; reportsSent_ = other.reportsSent_; @@ -10549,75 +12299,164 @@ public RemoteOutboundRtpStreamStats Clone() { /// Field number for the "local_id" field. public const int LocalIdFieldNumber = 1; - private string localId_ = ""; + private readonly static string LocalIdDefaultValue = ""; + + private string localId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string LocalId { - get { return localId_; } + get { return localId_ ?? LocalIdDefaultValue; } set { localId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "local_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalId { + get { return localId_ != null; } + } + /// Clears the value of the "local_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalId() { + localId_ = null; + } /// Field number for the "remote_timestamp" field. public const int RemoteTimestampFieldNumber = 2; + private readonly static double RemoteTimestampDefaultValue = 0D; + private double remoteTimestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double RemoteTimestamp { - get { return remoteTimestamp_; } + get { if ((_hasBits0 & 1) != 0) { return remoteTimestamp_; } else { return RemoteTimestampDefaultValue; } } set { + _hasBits0 |= 1; remoteTimestamp_ = value; } } + /// Gets whether the "remote_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemoteTimestamp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "remote_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemoteTimestamp() { + _hasBits0 &= ~1; + } /// Field number for the "reports_sent" field. public const int ReportsSentFieldNumber = 3; + private readonly static ulong ReportsSentDefaultValue = 0UL; + private ulong reportsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ReportsSent { - get { return reportsSent_; } + get { if ((_hasBits0 & 2) != 0) { return reportsSent_; } else { return ReportsSentDefaultValue; } } set { + _hasBits0 |= 2; reportsSent_ = value; } } + /// Gets whether the "reports_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasReportsSent { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "reports_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReportsSent() { + _hasBits0 &= ~2; + } /// Field number for the "round_trip_time" field. public const int RoundTripTimeFieldNumber = 4; + private readonly static double RoundTripTimeDefaultValue = 0D; + private double roundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double RoundTripTime { - get { return roundTripTime_; } + get { if ((_hasBits0 & 4) != 0) { return roundTripTime_; } else { return RoundTripTimeDefaultValue; } } set { + _hasBits0 |= 4; roundTripTime_ = value; } } + /// Gets whether the "round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoundTripTime { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoundTripTime() { + _hasBits0 &= ~4; + } /// Field number for the "total_round_trip_time" field. public const int TotalRoundTripTimeFieldNumber = 5; + private readonly static double TotalRoundTripTimeDefaultValue = 0D; + private double totalRoundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalRoundTripTime { - get { return totalRoundTripTime_; } + get { if ((_hasBits0 & 8) != 0) { return totalRoundTripTime_; } else { return TotalRoundTripTimeDefaultValue; } } set { + _hasBits0 |= 8; totalRoundTripTime_ = value; } } + /// Gets whether the "total_round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalRoundTripTime { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "total_round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalRoundTripTime() { + _hasBits0 &= ~8; + } /// Field number for the "round_trip_time_measurements" field. public const int RoundTripTimeMeasurementsFieldNumber = 6; + private readonly static ulong RoundTripTimeMeasurementsDefaultValue = 0UL; + private ulong roundTripTimeMeasurements_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RoundTripTimeMeasurements { - get { return roundTripTimeMeasurements_; } + get { if ((_hasBits0 & 16) != 0) { return roundTripTimeMeasurements_; } else { return RoundTripTimeMeasurementsDefaultValue; } } set { + _hasBits0 |= 16; roundTripTimeMeasurements_ = value; } } + /// Gets whether the "round_trip_time_measurements" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoundTripTimeMeasurements { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "round_trip_time_measurements" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoundTripTimeMeasurements() { + _hasBits0 &= ~16; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10647,12 +12486,12 @@ public bool Equals(RemoteOutboundRtpStreamStats other) { [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 (HasLocalId) hash ^= LocalId.GetHashCode(); + if (HasRemoteTimestamp) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RemoteTimestamp); + if (HasReportsSent) hash ^= ReportsSent.GetHashCode(); + if (HasRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RoundTripTime); + if (HasTotalRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (HasRoundTripTimeMeasurements) hash ^= RoundTripTimeMeasurements.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10671,27 +12510,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (LocalId.Length != 0) { + if (HasLocalId) { output.WriteRawTag(10); output.WriteString(LocalId); } - if (RemoteTimestamp != 0D) { + if (HasRemoteTimestamp) { output.WriteRawTag(17); output.WriteDouble(RemoteTimestamp); } - if (ReportsSent != 0UL) { + if (HasReportsSent) { output.WriteRawTag(24); output.WriteUInt64(ReportsSent); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { output.WriteRawTag(33); output.WriteDouble(RoundTripTime); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(41); output.WriteDouble(TotalRoundTripTime); } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { output.WriteRawTag(48); output.WriteUInt64(RoundTripTimeMeasurements); } @@ -10705,27 +12544,27 @@ 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 (LocalId.Length != 0) { + if (HasLocalId) { output.WriteRawTag(10); output.WriteString(LocalId); } - if (RemoteTimestamp != 0D) { + if (HasRemoteTimestamp) { output.WriteRawTag(17); output.WriteDouble(RemoteTimestamp); } - if (ReportsSent != 0UL) { + if (HasReportsSent) { output.WriteRawTag(24); output.WriteUInt64(ReportsSent); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { output.WriteRawTag(33); output.WriteDouble(RoundTripTime); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(41); output.WriteDouble(TotalRoundTripTime); } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { output.WriteRawTag(48); output.WriteUInt64(RoundTripTimeMeasurements); } @@ -10739,22 +12578,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (LocalId.Length != 0) { + if (HasLocalId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalId); } - if (RemoteTimestamp != 0D) { + if (HasRemoteTimestamp) { size += 1 + 8; } - if (ReportsSent != 0UL) { + if (HasReportsSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ReportsSent); } - if (RoundTripTime != 0D) { + if (HasRoundTripTime) { size += 1 + 8; } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { size += 1 + 8; } - if (RoundTripTimeMeasurements != 0UL) { + if (HasRoundTripTimeMeasurements) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoundTripTimeMeasurements); } if (_unknownFields != null) { @@ -10769,22 +12608,22 @@ public void MergeFrom(RemoteOutboundRtpStreamStats other) { if (other == null) { return; } - if (other.LocalId.Length != 0) { + if (other.HasLocalId) { LocalId = other.LocalId; } - if (other.RemoteTimestamp != 0D) { + if (other.HasRemoteTimestamp) { RemoteTimestamp = other.RemoteTimestamp; } - if (other.ReportsSent != 0UL) { + if (other.HasReportsSent) { ReportsSent = other.ReportsSent; } - if (other.RoundTripTime != 0D) { + if (other.HasRoundTripTime) { RoundTripTime = other.RoundTripTime; } - if (other.TotalRoundTripTime != 0D) { + if (other.HasTotalRoundTripTime) { TotalRoundTripTime = other.TotalRoundTripTime; } - if (other.RoundTripTimeMeasurements != 0UL) { + if (other.HasRoundTripTimeMeasurements) { RoundTripTimeMeasurements = other.RoundTripTimeMeasurements; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -10798,7 +12637,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -10837,7 +12680,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -10920,27 +12767,55 @@ public MediaSourceStats Clone() { /// Field number for the "track_identifier" field. public const int TrackIdentifierFieldNumber = 1; - private string trackIdentifier_ = ""; + private readonly static string TrackIdentifierDefaultValue = ""; + + private string trackIdentifier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TrackIdentifier { - get { return trackIdentifier_; } + get { return trackIdentifier_ ?? TrackIdentifierDefaultValue; } set { trackIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "track_identifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackIdentifier { + get { return trackIdentifier_ != null; } + } + /// Clears the value of the "track_identifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackIdentifier() { + trackIdentifier_ = null; + } /// Field number for the "kind" field. public const int KindFieldNumber = 2; - private string kind_ = ""; + private readonly static string KindDefaultValue = ""; + + private string kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kind { - get { return kind_; } + get { return kind_ ?? KindDefaultValue; } set { kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return kind_ != null; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + kind_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10966,8 +12841,8 @@ public bool Equals(MediaSourceStats other) { [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 (HasTrackIdentifier) hash ^= TrackIdentifier.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10986,11 +12861,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { output.WriteRawTag(10); output.WriteString(TrackIdentifier); } - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(18); output.WriteString(Kind); } @@ -11004,11 +12879,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { output.WriteRawTag(10); output.WriteString(TrackIdentifier); } - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(18); output.WriteString(Kind); } @@ -11022,10 +12897,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackIdentifier.Length != 0) { + if (HasTrackIdentifier) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackIdentifier); } - if (Kind.Length != 0) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); } if (_unknownFields != null) { @@ -11040,10 +12915,10 @@ public void MergeFrom(MediaSourceStats other) { if (other == null) { return; } - if (other.TrackIdentifier.Length != 0) { + if (other.HasTrackIdentifier) { TrackIdentifier = other.TrackIdentifier; } - if (other.Kind.Length != 0) { + if (other.HasKind) { Kind = other.Kind; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -11057,7 +12932,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -11080,7 +12959,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -11107,6 +12990,7 @@ public sealed partial class AudioSourceStats : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceStats()); 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; } } @@ -11134,6 +13018,7 @@ public AudioSourceStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AudioSourceStats(AudioSourceStats other) : this() { + _hasBits0 = other._hasBits0; audioLevel_ = other.audioLevel_; totalAudioEnergy_ = other.totalAudioEnergy_; totalSamplesDuration_ = other.totalSamplesDuration_; @@ -11154,111 +13039,246 @@ public AudioSourceStats Clone() { /// Field number for the "audio_level" field. public const int AudioLevelFieldNumber = 1; + private readonly static double AudioLevelDefaultValue = 0D; + private double audioLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double AudioLevel { - get { return audioLevel_; } + get { if ((_hasBits0 & 1) != 0) { return audioLevel_; } else { return AudioLevelDefaultValue; } } set { + _hasBits0 |= 1; audioLevel_ = value; } } + /// Gets whether the "audio_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAudioLevel { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "audio_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAudioLevel() { + _hasBits0 &= ~1; + } /// Field number for the "total_audio_energy" field. public const int TotalAudioEnergyFieldNumber = 2; + private readonly static double TotalAudioEnergyDefaultValue = 0D; + private double totalAudioEnergy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalAudioEnergy { - get { return totalAudioEnergy_; } + get { if ((_hasBits0 & 2) != 0) { return totalAudioEnergy_; } else { return TotalAudioEnergyDefaultValue; } } set { + _hasBits0 |= 2; totalAudioEnergy_ = value; } } + /// Gets whether the "total_audio_energy" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalAudioEnergy { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "total_audio_energy" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalAudioEnergy() { + _hasBits0 &= ~2; + } /// Field number for the "total_samples_duration" field. public const int TotalSamplesDurationFieldNumber = 3; + private readonly static double TotalSamplesDurationDefaultValue = 0D; + private double totalSamplesDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalSamplesDuration { - get { return totalSamplesDuration_; } + get { if ((_hasBits0 & 4) != 0) { return totalSamplesDuration_; } else { return TotalSamplesDurationDefaultValue; } } set { + _hasBits0 |= 4; totalSamplesDuration_ = value; } } + /// Gets whether the "total_samples_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesDuration { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "total_samples_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesDuration() { + _hasBits0 &= ~4; + } /// Field number for the "echo_return_loss" field. public const int EchoReturnLossFieldNumber = 4; + private readonly static double EchoReturnLossDefaultValue = 0D; + private double echoReturnLoss_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double EchoReturnLoss { - get { return echoReturnLoss_; } + get { if ((_hasBits0 & 8) != 0) { return echoReturnLoss_; } else { return EchoReturnLossDefaultValue; } } set { + _hasBits0 |= 8; echoReturnLoss_ = value; } } + /// Gets whether the "echo_return_loss" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEchoReturnLoss { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "echo_return_loss" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEchoReturnLoss() { + _hasBits0 &= ~8; + } /// Field number for the "echo_return_loss_enhancement" field. public const int EchoReturnLossEnhancementFieldNumber = 5; + private readonly static double EchoReturnLossEnhancementDefaultValue = 0D; + private double echoReturnLossEnhancement_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double EchoReturnLossEnhancement { - get { return echoReturnLossEnhancement_; } + get { if ((_hasBits0 & 16) != 0) { return echoReturnLossEnhancement_; } else { return EchoReturnLossEnhancementDefaultValue; } } set { + _hasBits0 |= 16; echoReturnLossEnhancement_ = value; } } + /// Gets whether the "echo_return_loss_enhancement" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEchoReturnLossEnhancement { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "echo_return_loss_enhancement" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEchoReturnLossEnhancement() { + _hasBits0 &= ~16; + } /// Field number for the "dropped_samples_duration" field. public const int DroppedSamplesDurationFieldNumber = 6; + private readonly static double DroppedSamplesDurationDefaultValue = 0D; + private double droppedSamplesDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double DroppedSamplesDuration { - get { return droppedSamplesDuration_; } + get { if ((_hasBits0 & 32) != 0) { return droppedSamplesDuration_; } else { return DroppedSamplesDurationDefaultValue; } } set { + _hasBits0 |= 32; droppedSamplesDuration_ = value; } } + /// Gets whether the "dropped_samples_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDroppedSamplesDuration { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "dropped_samples_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDroppedSamplesDuration() { + _hasBits0 &= ~32; + } /// Field number for the "dropped_samples_events" field. public const int DroppedSamplesEventsFieldNumber = 7; + private readonly static uint DroppedSamplesEventsDefaultValue = 0; + private uint droppedSamplesEvents_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DroppedSamplesEvents { - get { return droppedSamplesEvents_; } + get { if ((_hasBits0 & 64) != 0) { return droppedSamplesEvents_; } else { return DroppedSamplesEventsDefaultValue; } } set { + _hasBits0 |= 64; droppedSamplesEvents_ = value; } } + /// Gets whether the "dropped_samples_events" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDroppedSamplesEvents { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "dropped_samples_events" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDroppedSamplesEvents() { + _hasBits0 &= ~64; + } /// Field number for the "total_capture_delay" field. public const int TotalCaptureDelayFieldNumber = 8; + private readonly static double TotalCaptureDelayDefaultValue = 0D; + private double totalCaptureDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalCaptureDelay { - get { return totalCaptureDelay_; } + get { if ((_hasBits0 & 128) != 0) { return totalCaptureDelay_; } else { return TotalCaptureDelayDefaultValue; } } set { + _hasBits0 |= 128; totalCaptureDelay_ = value; } } + /// Gets whether the "total_capture_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalCaptureDelay { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "total_capture_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalCaptureDelay() { + _hasBits0 &= ~128; + } /// Field number for the "total_samples_captured" field. public const int TotalSamplesCapturedFieldNumber = 9; + private readonly static ulong TotalSamplesCapturedDefaultValue = 0UL; + private ulong totalSamplesCaptured_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TotalSamplesCaptured { - get { return totalSamplesCaptured_; } + get { if ((_hasBits0 & 256) != 0) { return totalSamplesCaptured_; } else { return TotalSamplesCapturedDefaultValue; } } set { + _hasBits0 |= 256; totalSamplesCaptured_ = value; } } + /// Gets whether the "total_samples_captured" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesCaptured { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "total_samples_captured" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesCaptured() { + _hasBits0 &= ~256; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -11291,15 +13311,15 @@ public bool Equals(AudioSourceStats other) { [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 (HasAudioLevel) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioLevel); + if (HasTotalAudioEnergy) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalAudioEnergy); + if (HasTotalSamplesDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (HasEchoReturnLoss) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EchoReturnLoss); + if (HasEchoReturnLossEnhancement) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EchoReturnLossEnhancement); + if (HasDroppedSamplesDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DroppedSamplesDuration); + if (HasDroppedSamplesEvents) hash ^= DroppedSamplesEvents.GetHashCode(); + if (HasTotalCaptureDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalCaptureDelay); + if (HasTotalSamplesCaptured) hash ^= TotalSamplesCaptured.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11318,39 +13338,39 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AudioLevel != 0D) { + if (HasAudioLevel) { output.WriteRawTag(9); output.WriteDouble(AudioLevel); } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { output.WriteRawTag(17); output.WriteDouble(TotalAudioEnergy); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(25); output.WriteDouble(TotalSamplesDuration); } - if (EchoReturnLoss != 0D) { + if (HasEchoReturnLoss) { output.WriteRawTag(33); output.WriteDouble(EchoReturnLoss); } - if (EchoReturnLossEnhancement != 0D) { + if (HasEchoReturnLossEnhancement) { output.WriteRawTag(41); output.WriteDouble(EchoReturnLossEnhancement); } - if (DroppedSamplesDuration != 0D) { + if (HasDroppedSamplesDuration) { output.WriteRawTag(49); output.WriteDouble(DroppedSamplesDuration); } - if (DroppedSamplesEvents != 0) { + if (HasDroppedSamplesEvents) { output.WriteRawTag(56); output.WriteUInt32(DroppedSamplesEvents); } - if (TotalCaptureDelay != 0D) { + if (HasTotalCaptureDelay) { output.WriteRawTag(65); output.WriteDouble(TotalCaptureDelay); } - if (TotalSamplesCaptured != 0UL) { + if (HasTotalSamplesCaptured) { output.WriteRawTag(72); output.WriteUInt64(TotalSamplesCaptured); } @@ -11364,39 +13384,39 @@ 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 (AudioLevel != 0D) { + if (HasAudioLevel) { output.WriteRawTag(9); output.WriteDouble(AudioLevel); } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { output.WriteRawTag(17); output.WriteDouble(TotalAudioEnergy); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(25); output.WriteDouble(TotalSamplesDuration); } - if (EchoReturnLoss != 0D) { + if (HasEchoReturnLoss) { output.WriteRawTag(33); output.WriteDouble(EchoReturnLoss); } - if (EchoReturnLossEnhancement != 0D) { + if (HasEchoReturnLossEnhancement) { output.WriteRawTag(41); output.WriteDouble(EchoReturnLossEnhancement); } - if (DroppedSamplesDuration != 0D) { + if (HasDroppedSamplesDuration) { output.WriteRawTag(49); output.WriteDouble(DroppedSamplesDuration); } - if (DroppedSamplesEvents != 0) { + if (HasDroppedSamplesEvents) { output.WriteRawTag(56); output.WriteUInt32(DroppedSamplesEvents); } - if (TotalCaptureDelay != 0D) { + if (HasTotalCaptureDelay) { output.WriteRawTag(65); output.WriteDouble(TotalCaptureDelay); } - if (TotalSamplesCaptured != 0UL) { + if (HasTotalSamplesCaptured) { output.WriteRawTag(72); output.WriteUInt64(TotalSamplesCaptured); } @@ -11410,31 +13430,31 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AudioLevel != 0D) { + if (HasAudioLevel) { size += 1 + 8; } - if (TotalAudioEnergy != 0D) { + if (HasTotalAudioEnergy) { size += 1 + 8; } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { size += 1 + 8; } - if (EchoReturnLoss != 0D) { + if (HasEchoReturnLoss) { size += 1 + 8; } - if (EchoReturnLossEnhancement != 0D) { + if (HasEchoReturnLossEnhancement) { size += 1 + 8; } - if (DroppedSamplesDuration != 0D) { + if (HasDroppedSamplesDuration) { size += 1 + 8; } - if (DroppedSamplesEvents != 0) { + if (HasDroppedSamplesEvents) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DroppedSamplesEvents); } - if (TotalCaptureDelay != 0D) { + if (HasTotalCaptureDelay) { size += 1 + 8; } - if (TotalSamplesCaptured != 0UL) { + if (HasTotalSamplesCaptured) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesCaptured); } if (_unknownFields != null) { @@ -11449,31 +13469,31 @@ public void MergeFrom(AudioSourceStats other) { if (other == null) { return; } - if (other.AudioLevel != 0D) { + if (other.HasAudioLevel) { AudioLevel = other.AudioLevel; } - if (other.TotalAudioEnergy != 0D) { + if (other.HasTotalAudioEnergy) { TotalAudioEnergy = other.TotalAudioEnergy; } - if (other.TotalSamplesDuration != 0D) { + if (other.HasTotalSamplesDuration) { TotalSamplesDuration = other.TotalSamplesDuration; } - if (other.EchoReturnLoss != 0D) { + if (other.HasEchoReturnLoss) { EchoReturnLoss = other.EchoReturnLoss; } - if (other.EchoReturnLossEnhancement != 0D) { + if (other.HasEchoReturnLossEnhancement) { EchoReturnLossEnhancement = other.EchoReturnLossEnhancement; } - if (other.DroppedSamplesDuration != 0D) { + if (other.HasDroppedSamplesDuration) { DroppedSamplesDuration = other.DroppedSamplesDuration; } - if (other.DroppedSamplesEvents != 0) { + if (other.HasDroppedSamplesEvents) { DroppedSamplesEvents = other.DroppedSamplesEvents; } - if (other.TotalCaptureDelay != 0D) { + if (other.HasTotalCaptureDelay) { TotalCaptureDelay = other.TotalCaptureDelay; } - if (other.TotalSamplesCaptured != 0UL) { + if (other.HasTotalSamplesCaptured) { TotalSamplesCaptured = other.TotalSamplesCaptured; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -11487,7 +13507,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -11538,7 +13562,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -11593,6 +13621,7 @@ public sealed partial class VideoSourceStats : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceStats()); 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; } } @@ -11620,6 +13649,7 @@ public VideoSourceStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoSourceStats(VideoSourceStats other) : this() { + _hasBits0 = other._hasBits0; width_ = other.width_; height_ = other.height_; frames_ = other.frames_; @@ -11635,51 +13665,111 @@ public VideoSourceStats Clone() { /// Field number for the "width" field. public const int WidthFieldNumber = 1; + private readonly static uint WidthDefaultValue = 0; + private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Width { - get { return width_; } + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } set { + _hasBits0 |= 1; width_ = value; } } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } /// Field number for the "height" field. public const int HeightFieldNumber = 2; + private readonly static uint HeightDefaultValue = 0; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Height { - get { return height_; } + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } set { + _hasBits0 |= 2; height_ = value; } } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } /// Field number for the "frames" field. public const int FramesFieldNumber = 3; + private readonly static uint FramesDefaultValue = 0; + private uint frames_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Frames { - get { return frames_; } + get { if ((_hasBits0 & 4) != 0) { return frames_; } else { return FramesDefaultValue; } } set { + _hasBits0 |= 4; frames_ = value; } } + /// Gets whether the "frames" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrames { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "frames" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrames() { + _hasBits0 &= ~4; + } /// Field number for the "frames_per_second" field. public const int FramesPerSecondFieldNumber = 4; + private readonly static double FramesPerSecondDefaultValue = 0D; + private double framesPerSecond_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double FramesPerSecond { - get { return framesPerSecond_; } + get { if ((_hasBits0 & 8) != 0) { return framesPerSecond_; } else { return FramesPerSecondDefaultValue; } } set { + _hasBits0 |= 8; framesPerSecond_ = value; } } + /// Gets whether the "frames_per_second" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFramesPerSecond { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "frames_per_second" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFramesPerSecond() { + _hasBits0 &= ~8; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -11707,10 +13797,10 @@ public bool Equals(VideoSourceStats other) { [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 (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasFrames) hash ^= Frames.GetHashCode(); + if (HasFramesPerSecond) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FramesPerSecond); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11729,19 +13819,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } - if (Frames != 0) { + if (HasFrames) { output.WriteRawTag(24); output.WriteUInt32(Frames); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(33); output.WriteDouble(FramesPerSecond); } @@ -11755,19 +13845,19 @@ 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 (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } - if (Frames != 0) { + if (HasFrames) { output.WriteRawTag(24); output.WriteUInt32(Frames); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { output.WriteRawTag(33); output.WriteDouble(FramesPerSecond); } @@ -11781,16 +13871,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Width != 0) { + if (HasWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Height != 0) { + if (HasHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } - if (Frames != 0) { + if (HasFrames) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Frames); } - if (FramesPerSecond != 0D) { + if (HasFramesPerSecond) { size += 1 + 8; } if (_unknownFields != null) { @@ -11805,16 +13895,16 @@ public void MergeFrom(VideoSourceStats other) { if (other == null) { return; } - if (other.Width != 0) { + if (other.HasWidth) { Width = other.Width; } - if (other.Height != 0) { + if (other.HasHeight) { Height = other.Height; } - if (other.Frames != 0) { + if (other.HasFrames) { Frames = other.Frames; } - if (other.FramesPerSecond != 0D) { + if (other.HasFramesPerSecond) { FramesPerSecond = other.FramesPerSecond; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -11828,7 +13918,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -11859,7 +13953,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -11894,6 +13992,7 @@ public sealed partial class AudioPlayoutStats : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioPlayoutStats()); 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; } } @@ -11921,6 +14020,7 @@ public AudioPlayoutStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AudioPlayoutStats(AudioPlayoutStats other) : this() { + _hasBits0 = other._hasBits0; kind_ = other.kind_; synthesizedSamplesDuration_ = other.synthesizedSamplesDuration_; synthesizedSamplesEvents_ = other.synthesizedSamplesEvents_; @@ -11938,75 +14038,164 @@ public AudioPlayoutStats Clone() { /// Field number for the "kind" field. public const int KindFieldNumber = 1; - private string kind_ = ""; + private readonly static string KindDefaultValue = ""; + + private string kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kind { - get { return kind_; } + get { return kind_ ?? KindDefaultValue; } set { kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return kind_ != null; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + kind_ = null; + } /// Field number for the "synthesized_samples_duration" field. public const int SynthesizedSamplesDurationFieldNumber = 2; + private readonly static double SynthesizedSamplesDurationDefaultValue = 0D; + private double synthesizedSamplesDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double SynthesizedSamplesDuration { - get { return synthesizedSamplesDuration_; } + get { if ((_hasBits0 & 1) != 0) { return synthesizedSamplesDuration_; } else { return SynthesizedSamplesDurationDefaultValue; } } set { + _hasBits0 |= 1; synthesizedSamplesDuration_ = value; } } + /// Gets whether the "synthesized_samples_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSynthesizedSamplesDuration { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "synthesized_samples_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSynthesizedSamplesDuration() { + _hasBits0 &= ~1; + } /// Field number for the "synthesized_samples_events" field. public const int SynthesizedSamplesEventsFieldNumber = 3; + private readonly static uint SynthesizedSamplesEventsDefaultValue = 0; + private uint synthesizedSamplesEvents_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SynthesizedSamplesEvents { - get { return synthesizedSamplesEvents_; } + get { if ((_hasBits0 & 2) != 0) { return synthesizedSamplesEvents_; } else { return SynthesizedSamplesEventsDefaultValue; } } set { + _hasBits0 |= 2; synthesizedSamplesEvents_ = value; } } + /// Gets whether the "synthesized_samples_events" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSynthesizedSamplesEvents { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "synthesized_samples_events" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSynthesizedSamplesEvents() { + _hasBits0 &= ~2; + } /// Field number for the "total_samples_duration" field. public const int TotalSamplesDurationFieldNumber = 4; + private readonly static double TotalSamplesDurationDefaultValue = 0D; + private double totalSamplesDuration_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalSamplesDuration { - get { return totalSamplesDuration_; } + get { if ((_hasBits0 & 4) != 0) { return totalSamplesDuration_; } else { return TotalSamplesDurationDefaultValue; } } set { + _hasBits0 |= 4; totalSamplesDuration_ = value; } } + /// Gets whether the "total_samples_duration" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesDuration { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "total_samples_duration" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesDuration() { + _hasBits0 &= ~4; + } /// Field number for the "total_playout_delay" field. public const int TotalPlayoutDelayFieldNumber = 5; + private readonly static double TotalPlayoutDelayDefaultValue = 0D; + private double totalPlayoutDelay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalPlayoutDelay { - get { return totalPlayoutDelay_; } + get { if ((_hasBits0 & 8) != 0) { return totalPlayoutDelay_; } else { return TotalPlayoutDelayDefaultValue; } } set { + _hasBits0 |= 8; totalPlayoutDelay_ = value; } } + /// Gets whether the "total_playout_delay" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalPlayoutDelay { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "total_playout_delay" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalPlayoutDelay() { + _hasBits0 &= ~8; + } /// Field number for the "total_samples_count" field. public const int TotalSamplesCountFieldNumber = 6; + private readonly static ulong TotalSamplesCountDefaultValue = 0UL; + private ulong totalSamplesCount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TotalSamplesCount { - get { return totalSamplesCount_; } + get { if ((_hasBits0 & 16) != 0) { return totalSamplesCount_; } else { return TotalSamplesCountDefaultValue; } } set { + _hasBits0 |= 16; totalSamplesCount_ = value; } } + /// Gets whether the "total_samples_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalSamplesCount { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "total_samples_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalSamplesCount() { + _hasBits0 &= ~16; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12036,12 +14225,12 @@ public bool Equals(AudioPlayoutStats other) { [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 (HasKind) hash ^= Kind.GetHashCode(); + if (HasSynthesizedSamplesDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SynthesizedSamplesDuration); + if (HasSynthesizedSamplesEvents) hash ^= SynthesizedSamplesEvents.GetHashCode(); + if (HasTotalSamplesDuration) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalSamplesDuration); + if (HasTotalPlayoutDelay) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalPlayoutDelay); + if (HasTotalSamplesCount) hash ^= TotalSamplesCount.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12060,27 +14249,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(10); output.WriteString(Kind); } - if (SynthesizedSamplesDuration != 0D) { + if (HasSynthesizedSamplesDuration) { output.WriteRawTag(17); output.WriteDouble(SynthesizedSamplesDuration); } - if (SynthesizedSamplesEvents != 0) { + if (HasSynthesizedSamplesEvents) { output.WriteRawTag(24); output.WriteUInt32(SynthesizedSamplesEvents); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(33); output.WriteDouble(TotalSamplesDuration); } - if (TotalPlayoutDelay != 0D) { + if (HasTotalPlayoutDelay) { output.WriteRawTag(41); output.WriteDouble(TotalPlayoutDelay); } - if (TotalSamplesCount != 0UL) { + if (HasTotalSamplesCount) { output.WriteRawTag(48); output.WriteUInt64(TotalSamplesCount); } @@ -12094,27 +14283,27 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Kind.Length != 0) { + if (HasKind) { output.WriteRawTag(10); output.WriteString(Kind); } - if (SynthesizedSamplesDuration != 0D) { + if (HasSynthesizedSamplesDuration) { output.WriteRawTag(17); output.WriteDouble(SynthesizedSamplesDuration); } - if (SynthesizedSamplesEvents != 0) { + if (HasSynthesizedSamplesEvents) { output.WriteRawTag(24); output.WriteUInt32(SynthesizedSamplesEvents); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { output.WriteRawTag(33); output.WriteDouble(TotalSamplesDuration); } - if (TotalPlayoutDelay != 0D) { + if (HasTotalPlayoutDelay) { output.WriteRawTag(41); output.WriteDouble(TotalPlayoutDelay); } - if (TotalSamplesCount != 0UL) { + if (HasTotalSamplesCount) { output.WriteRawTag(48); output.WriteUInt64(TotalSamplesCount); } @@ -12128,22 +14317,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Kind.Length != 0) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); } - if (SynthesizedSamplesDuration != 0D) { + if (HasSynthesizedSamplesDuration) { size += 1 + 8; } - if (SynthesizedSamplesEvents != 0) { + if (HasSynthesizedSamplesEvents) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SynthesizedSamplesEvents); } - if (TotalSamplesDuration != 0D) { + if (HasTotalSamplesDuration) { size += 1 + 8; } - if (TotalPlayoutDelay != 0D) { + if (HasTotalPlayoutDelay) { size += 1 + 8; } - if (TotalSamplesCount != 0UL) { + if (HasTotalSamplesCount) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalSamplesCount); } if (_unknownFields != null) { @@ -12158,22 +14347,22 @@ public void MergeFrom(AudioPlayoutStats other) { if (other == null) { return; } - if (other.Kind.Length != 0) { + if (other.HasKind) { Kind = other.Kind; } - if (other.SynthesizedSamplesDuration != 0D) { + if (other.HasSynthesizedSamplesDuration) { SynthesizedSamplesDuration = other.SynthesizedSamplesDuration; } - if (other.SynthesizedSamplesEvents != 0) { + if (other.HasSynthesizedSamplesEvents) { SynthesizedSamplesEvents = other.SynthesizedSamplesEvents; } - if (other.TotalSamplesDuration != 0D) { + if (other.HasTotalSamplesDuration) { TotalSamplesDuration = other.TotalSamplesDuration; } - if (other.TotalPlayoutDelay != 0D) { + if (other.HasTotalPlayoutDelay) { TotalPlayoutDelay = other.TotalPlayoutDelay; } - if (other.TotalSamplesCount != 0UL) { + if (other.HasTotalSamplesCount) { TotalSamplesCount = other.TotalSamplesCount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12187,7 +14376,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -12226,7 +14419,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -12269,6 +14466,7 @@ public sealed partial class PeerConnectionStats : pb::IMessage _parser = new pb::MessageParser(() => new PeerConnectionStats()); 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; } } @@ -12296,6 +14494,7 @@ public PeerConnectionStats() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PeerConnectionStats(PeerConnectionStats other) : this() { + _hasBits0 = other._hasBits0; dataChannelsOpened_ = other.dataChannelsOpened_; dataChannelsClosed_ = other.dataChannelsClosed_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -12309,27 +14508,57 @@ public PeerConnectionStats Clone() { /// Field number for the "data_channels_opened" field. public const int DataChannelsOpenedFieldNumber = 1; + private readonly static uint DataChannelsOpenedDefaultValue = 0; + private uint dataChannelsOpened_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DataChannelsOpened { - get { return dataChannelsOpened_; } + get { if ((_hasBits0 & 1) != 0) { return dataChannelsOpened_; } else { return DataChannelsOpenedDefaultValue; } } set { + _hasBits0 |= 1; dataChannelsOpened_ = value; } } + /// Gets whether the "data_channels_opened" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataChannelsOpened { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_channels_opened" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataChannelsOpened() { + _hasBits0 &= ~1; + } /// Field number for the "data_channels_closed" field. public const int DataChannelsClosedFieldNumber = 2; + private readonly static uint DataChannelsClosedDefaultValue = 0; + private uint dataChannelsClosed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint DataChannelsClosed { - get { return dataChannelsClosed_; } + get { if ((_hasBits0 & 2) != 0) { return dataChannelsClosed_; } else { return DataChannelsClosedDefaultValue; } } set { + _hasBits0 |= 2; dataChannelsClosed_ = value; } } + /// Gets whether the "data_channels_closed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataChannelsClosed { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "data_channels_closed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataChannelsClosed() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12355,8 +14584,8 @@ public bool Equals(PeerConnectionStats other) { [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 (HasDataChannelsOpened) hash ^= DataChannelsOpened.GetHashCode(); + if (HasDataChannelsClosed) hash ^= DataChannelsClosed.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12375,11 +14604,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (DataChannelsOpened != 0) { + if (HasDataChannelsOpened) { output.WriteRawTag(8); output.WriteUInt32(DataChannelsOpened); } - if (DataChannelsClosed != 0) { + if (HasDataChannelsClosed) { output.WriteRawTag(16); output.WriteUInt32(DataChannelsClosed); } @@ -12393,11 +14622,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataChannelsOpened != 0) { + if (HasDataChannelsOpened) { output.WriteRawTag(8); output.WriteUInt32(DataChannelsOpened); } - if (DataChannelsClosed != 0) { + if (HasDataChannelsClosed) { output.WriteRawTag(16); output.WriteUInt32(DataChannelsClosed); } @@ -12411,10 +14640,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (DataChannelsOpened != 0) { + if (HasDataChannelsOpened) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DataChannelsOpened); } - if (DataChannelsClosed != 0) { + if (HasDataChannelsClosed) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DataChannelsClosed); } if (_unknownFields != null) { @@ -12429,10 +14658,10 @@ public void MergeFrom(PeerConnectionStats other) { if (other == null) { return; } - if (other.DataChannelsOpened != 0) { + if (other.HasDataChannelsOpened) { DataChannelsOpened = other.DataChannelsOpened; } - if (other.DataChannelsClosed != 0) { + if (other.HasDataChannelsClosed) { DataChannelsClosed = other.DataChannelsClosed; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12446,7 +14675,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -12469,7 +14702,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -12544,39 +14781,82 @@ public DataChannelStats Clone() { /// Field number for the "label" field. public const int LabelFieldNumber = 1; - private string label_ = ""; + private readonly static string LabelDefaultValue = ""; + + private string label_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Label { - get { return label_; } + get { return label_ ?? LabelDefaultValue; } set { label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "label" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLabel { + get { return label_ != null; } + } + /// Clears the value of the "label" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLabel() { + label_ = null; + } /// Field number for the "protocol" field. public const int ProtocolFieldNumber = 2; - private string protocol_ = ""; + private readonly static string ProtocolDefaultValue = ""; + + private string protocol_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Protocol { - get { return protocol_; } + get { return protocol_ ?? ProtocolDefaultValue; } set { protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "protocol" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProtocol { + get { return protocol_ != null; } + } + /// Clears the value of the "protocol" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProtocol() { + protocol_ = null; + } /// Field number for the "data_channel_identifier" field. public const int DataChannelIdentifierFieldNumber = 3; + private readonly static int DataChannelIdentifierDefaultValue = 0; + private int dataChannelIdentifier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DataChannelIdentifier { - get { return dataChannelIdentifier_; } + get { if ((_hasBits0 & 1) != 0) { return dataChannelIdentifier_; } else { return DataChannelIdentifierDefaultValue; } } set { + _hasBits0 |= 1; dataChannelIdentifier_ = value; } } + /// Gets whether the "data_channel_identifier" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataChannelIdentifier { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_channel_identifier" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataChannelIdentifier() { + _hasBits0 &= ~1; + } /// Field number for the "state" field. public const int StateFieldNumber = 4; @@ -12586,9 +14866,9 @@ public int DataChannelIdentifier { [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; } } + get { if ((_hasBits0 & 2) != 0) { return state_; } else { return StateDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 2; state_ = value; } } @@ -12596,62 +14876,122 @@ public int DataChannelIdentifier { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasState { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "state" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearState() { - _hasBits0 &= ~1; + _hasBits0 &= ~2; } /// Field number for the "messages_sent" field. public const int MessagesSentFieldNumber = 5; + private readonly static uint MessagesSentDefaultValue = 0; + private uint messagesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MessagesSent { - get { return messagesSent_; } + get { if ((_hasBits0 & 4) != 0) { return messagesSent_; } else { return MessagesSentDefaultValue; } } set { + _hasBits0 |= 4; messagesSent_ = value; } } + /// Gets whether the "messages_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessagesSent { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "messages_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessagesSent() { + _hasBits0 &= ~4; + } /// Field number for the "bytes_sent" field. public const int BytesSentFieldNumber = 6; + private readonly static ulong BytesSentDefaultValue = 0UL; + private ulong bytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesSent { - get { return bytesSent_; } + get { if ((_hasBits0 & 8) != 0) { return bytesSent_; } else { return BytesSentDefaultValue; } } set { + _hasBits0 |= 8; bytesSent_ = value; } } + /// Gets whether the "bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesSent { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesSent() { + _hasBits0 &= ~8; + } /// Field number for the "messages_received" field. public const int MessagesReceivedFieldNumber = 7; + private readonly static uint MessagesReceivedDefaultValue = 0; + private uint messagesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint MessagesReceived { - get { return messagesReceived_; } + get { if ((_hasBits0 & 16) != 0) { return messagesReceived_; } else { return MessagesReceivedDefaultValue; } } set { + _hasBits0 |= 16; messagesReceived_ = value; } } + /// Gets whether the "messages_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessagesReceived { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "messages_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessagesReceived() { + _hasBits0 &= ~16; + } /// Field number for the "bytes_received" field. public const int BytesReceivedFieldNumber = 8; + private readonly static ulong BytesReceivedDefaultValue = 0UL; + private ulong bytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesReceived { - get { return bytesReceived_; } + get { if ((_hasBits0 & 32) != 0) { return bytesReceived_; } else { return BytesReceivedDefaultValue; } } set { + _hasBits0 |= 32; bytesReceived_ = value; } } + /// Gets whether the "bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesReceived { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesReceived() { + _hasBits0 &= ~32; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12683,14 +15023,14 @@ public bool Equals(DataChannelStats other) { [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 (HasLabel) hash ^= Label.GetHashCode(); + if (HasProtocol) hash ^= Protocol.GetHashCode(); + if (HasDataChannelIdentifier) 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 (HasMessagesSent) hash ^= MessagesSent.GetHashCode(); + if (HasBytesSent) hash ^= BytesSent.GetHashCode(); + if (HasMessagesReceived) hash ^= MessagesReceived.GetHashCode(); + if (HasBytesReceived) hash ^= BytesReceived.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12709,15 +15049,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Label.Length != 0) { + if (HasLabel) { output.WriteRawTag(10); output.WriteString(Label); } - if (Protocol.Length != 0) { + if (HasProtocol) { output.WriteRawTag(18); output.WriteString(Protocol); } - if (DataChannelIdentifier != 0) { + if (HasDataChannelIdentifier) { output.WriteRawTag(24); output.WriteInt32(DataChannelIdentifier); } @@ -12725,19 +15065,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) State); } - if (MessagesSent != 0) { + if (HasMessagesSent) { output.WriteRawTag(40); output.WriteUInt32(MessagesSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(48); output.WriteUInt64(BytesSent); } - if (MessagesReceived != 0) { + if (HasMessagesReceived) { output.WriteRawTag(56); output.WriteUInt32(MessagesReceived); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(64); output.WriteUInt64(BytesReceived); } @@ -12751,15 +15091,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 (Label.Length != 0) { + if (HasLabel) { output.WriteRawTag(10); output.WriteString(Label); } - if (Protocol.Length != 0) { + if (HasProtocol) { output.WriteRawTag(18); output.WriteString(Protocol); } - if (DataChannelIdentifier != 0) { + if (HasDataChannelIdentifier) { output.WriteRawTag(24); output.WriteInt32(DataChannelIdentifier); } @@ -12767,19 +15107,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) State); } - if (MessagesSent != 0) { + if (HasMessagesSent) { output.WriteRawTag(40); output.WriteUInt32(MessagesSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(48); output.WriteUInt64(BytesSent); } - if (MessagesReceived != 0) { + if (HasMessagesReceived) { output.WriteRawTag(56); output.WriteUInt32(MessagesReceived); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(64); output.WriteUInt64(BytesReceived); } @@ -12793,28 +15133,28 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Label.Length != 0) { + if (HasLabel) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); } - if (Protocol.Length != 0) { + if (HasProtocol) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); } - if (DataChannelIdentifier != 0) { + if (HasDataChannelIdentifier) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DataChannelIdentifier); } if (HasState) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } - if (MessagesSent != 0) { + if (HasMessagesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessagesSent); } - if (BytesSent != 0UL) { + if (HasBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); } - if (MessagesReceived != 0) { + if (HasMessagesReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MessagesReceived); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); } if (_unknownFields != null) { @@ -12829,28 +15169,28 @@ public void MergeFrom(DataChannelStats other) { if (other == null) { return; } - if (other.Label.Length != 0) { + if (other.HasLabel) { Label = other.Label; } - if (other.Protocol.Length != 0) { + if (other.HasProtocol) { Protocol = other.Protocol; } - if (other.DataChannelIdentifier != 0) { + if (other.HasDataChannelIdentifier) { DataChannelIdentifier = other.DataChannelIdentifier; } if (other.HasState) { State = other.State; } - if (other.MessagesSent != 0) { + if (other.HasMessagesSent) { MessagesSent = other.MessagesSent; } - if (other.BytesSent != 0UL) { + if (other.HasBytesSent) { BytesSent = other.BytesSent; } - if (other.MessagesReceived != 0) { + if (other.HasMessagesReceived) { MessagesReceived = other.MessagesReceived; } - if (other.BytesReceived != 0UL) { + if (other.HasBytesReceived) { BytesReceived = other.BytesReceived; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12864,7 +15204,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -12911,7 +15255,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -13018,75 +15366,164 @@ public TransportStats Clone() { /// Field number for the "packets_sent" field. public const int PacketsSentFieldNumber = 1; + private readonly static ulong PacketsSentDefaultValue = 0UL; + private ulong packetsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsSent { - get { return packetsSent_; } + get { if ((_hasBits0 & 1) != 0) { return packetsSent_; } else { return PacketsSentDefaultValue; } } set { + _hasBits0 |= 1; packetsSent_ = value; } } + /// Gets whether the "packets_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsSent { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "packets_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsSent() { + _hasBits0 &= ~1; + } /// Field number for the "packets_received" field. public const int PacketsReceivedFieldNumber = 2; + private readonly static ulong PacketsReceivedDefaultValue = 0UL; + private ulong packetsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsReceived { - get { return packetsReceived_; } + get { if ((_hasBits0 & 2) != 0) { return packetsReceived_; } else { return PacketsReceivedDefaultValue; } } set { + _hasBits0 |= 2; packetsReceived_ = value; } } + /// Gets whether the "packets_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsReceived { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "packets_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsReceived() { + _hasBits0 &= ~2; + } /// Field number for the "bytes_sent" field. public const int BytesSentFieldNumber = 3; + private readonly static ulong BytesSentDefaultValue = 0UL; + private ulong bytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesSent { - get { return bytesSent_; } + get { if ((_hasBits0 & 4) != 0) { return bytesSent_; } else { return BytesSentDefaultValue; } } set { + _hasBits0 |= 4; bytesSent_ = value; } } + /// Gets whether the "bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesSent { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesSent() { + _hasBits0 &= ~4; + } /// Field number for the "bytes_received" field. public const int BytesReceivedFieldNumber = 4; + private readonly static ulong BytesReceivedDefaultValue = 0UL; + private ulong bytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesReceived { - get { return bytesReceived_; } + get { if ((_hasBits0 & 8) != 0) { return bytesReceived_; } else { return BytesReceivedDefaultValue; } } set { + _hasBits0 |= 8; bytesReceived_ = value; } } + /// Gets whether the "bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesReceived { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesReceived() { + _hasBits0 &= ~8; + } /// Field number for the "ice_role" field. public const int IceRoleFieldNumber = 5; - private global::LiveKit.Proto.IceRole iceRole_ = global::LiveKit.Proto.IceRole.IceUnknown; + private readonly static global::LiveKit.Proto.IceRole IceRoleDefaultValue = global::LiveKit.Proto.IceRole.IceUnknown; + + private global::LiveKit.Proto.IceRole iceRole_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.IceRole IceRole { - get { return iceRole_; } + get { if ((_hasBits0 & 16) != 0) { return iceRole_; } else { return IceRoleDefaultValue; } } set { + _hasBits0 |= 16; iceRole_ = value; } } + /// Gets whether the "ice_role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIceRole { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "ice_role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIceRole() { + _hasBits0 &= ~16; + } /// Field number for the "ice_local_username_fragment" field. public const int IceLocalUsernameFragmentFieldNumber = 6; - private string iceLocalUsernameFragment_ = ""; + private readonly static string IceLocalUsernameFragmentDefaultValue = ""; + + private string iceLocalUsernameFragment_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IceLocalUsernameFragment { - get { return iceLocalUsernameFragment_; } + get { return iceLocalUsernameFragment_ ?? IceLocalUsernameFragmentDefaultValue; } set { iceLocalUsernameFragment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "ice_local_username_fragment" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIceLocalUsernameFragment { + get { return iceLocalUsernameFragment_ != null; } + } + /// Clears the value of the "ice_local_username_fragment" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIceLocalUsernameFragment() { + iceLocalUsernameFragment_ = null; + } /// Field number for the "dtls_state" field. public const int DtlsStateFieldNumber = 7; @@ -13096,9 +15533,9 @@ public string IceLocalUsernameFragment { [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; } } + get { if ((_hasBits0 & 32) != 0) { return dtlsState_; } else { return DtlsStateDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 32; dtlsState_ = value; } } @@ -13106,13 +15543,13 @@ public string IceLocalUsernameFragment { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDtlsState { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 32) != 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; + _hasBits0 &= ~32; } /// Field number for the "ice_state" field. @@ -13123,9 +15560,9 @@ public void ClearDtlsState() { [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; } } + get { if ((_hasBits0 & 64) != 0) { return iceState_; } else { return IceStateDefaultValue; } } set { - _hasBits0 |= 2; + _hasBits0 |= 64; iceState_ = value; } } @@ -13133,110 +15570,224 @@ public void ClearDtlsState() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasIceState { - get { return (_hasBits0 & 2) != 0; } + get { return (_hasBits0 & 64) != 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; + _hasBits0 &= ~64; } /// Field number for the "selected_candidate_pair_id" field. public const int SelectedCandidatePairIdFieldNumber = 9; - private string selectedCandidatePairId_ = ""; + private readonly static string SelectedCandidatePairIdDefaultValue = ""; + + private string selectedCandidatePairId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SelectedCandidatePairId { - get { return selectedCandidatePairId_; } + get { return selectedCandidatePairId_ ?? SelectedCandidatePairIdDefaultValue; } set { selectedCandidatePairId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "selected_candidate_pair_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSelectedCandidatePairId { + get { return selectedCandidatePairId_ != null; } + } + /// Clears the value of the "selected_candidate_pair_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSelectedCandidatePairId() { + selectedCandidatePairId_ = null; + } /// Field number for the "local_certificate_id" field. public const int LocalCertificateIdFieldNumber = 10; - private string localCertificateId_ = ""; + private readonly static string LocalCertificateIdDefaultValue = ""; + + private string localCertificateId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string LocalCertificateId { - get { return localCertificateId_; } + get { return localCertificateId_ ?? LocalCertificateIdDefaultValue; } set { localCertificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "local_certificate_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalCertificateId { + get { return localCertificateId_ != null; } + } + /// Clears the value of the "local_certificate_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalCertificateId() { + localCertificateId_ = null; + } /// Field number for the "remote_certificate_id" field. public const int RemoteCertificateIdFieldNumber = 11; - private string remoteCertificateId_ = ""; + private readonly static string RemoteCertificateIdDefaultValue = ""; + + private string remoteCertificateId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RemoteCertificateId { - get { return remoteCertificateId_; } + get { return remoteCertificateId_ ?? RemoteCertificateIdDefaultValue; } set { remoteCertificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "remote_certificate_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemoteCertificateId { + get { return remoteCertificateId_ != null; } + } + /// Clears the value of the "remote_certificate_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemoteCertificateId() { + remoteCertificateId_ = null; + } /// Field number for the "tls_version" field. public const int TlsVersionFieldNumber = 12; - private string tlsVersion_ = ""; + private readonly static string TlsVersionDefaultValue = ""; + + private string tlsVersion_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TlsVersion { - get { return tlsVersion_; } + get { return tlsVersion_ ?? TlsVersionDefaultValue; } set { tlsVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "tls_version" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTlsVersion { + get { return tlsVersion_ != null; } + } + /// Clears the value of the "tls_version" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTlsVersion() { + tlsVersion_ = null; + } /// Field number for the "dtls_cipher" field. public const int DtlsCipherFieldNumber = 13; - private string dtlsCipher_ = ""; + private readonly static string DtlsCipherDefaultValue = ""; + + private string dtlsCipher_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DtlsCipher { - get { return dtlsCipher_; } + get { return dtlsCipher_ ?? DtlsCipherDefaultValue; } set { dtlsCipher_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "dtls_cipher" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDtlsCipher { + get { return dtlsCipher_ != null; } + } + /// Clears the value of the "dtls_cipher" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDtlsCipher() { + dtlsCipher_ = null; + } /// Field number for the "dtls_role" field. public const int DtlsRoleFieldNumber = 14; - private global::LiveKit.Proto.DtlsRole dtlsRole_ = global::LiveKit.Proto.DtlsRole.DtlsClient; + private readonly static global::LiveKit.Proto.DtlsRole DtlsRoleDefaultValue = global::LiveKit.Proto.DtlsRole.DtlsClient; + + private global::LiveKit.Proto.DtlsRole dtlsRole_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.DtlsRole DtlsRole { - get { return dtlsRole_; } + get { if ((_hasBits0 & 128) != 0) { return dtlsRole_; } else { return DtlsRoleDefaultValue; } } set { + _hasBits0 |= 128; dtlsRole_ = value; } } + /// Gets whether the "dtls_role" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDtlsRole { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "dtls_role" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDtlsRole() { + _hasBits0 &= ~128; + } /// Field number for the "srtp_cipher" field. public const int SrtpCipherFieldNumber = 15; - private string srtpCipher_ = ""; + private readonly static string SrtpCipherDefaultValue = ""; + + private string srtpCipher_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SrtpCipher { - get { return srtpCipher_; } + get { return srtpCipher_ ?? SrtpCipherDefaultValue; } set { srtpCipher_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "srtp_cipher" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSrtpCipher { + get { return srtpCipher_ != null; } + } + /// Clears the value of the "srtp_cipher" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSrtpCipher() { + srtpCipher_ = null; + } /// Field number for the "selected_candidate_pair_changes" field. public const int SelectedCandidatePairChangesFieldNumber = 16; + private readonly static uint SelectedCandidatePairChangesDefaultValue = 0; + private uint selectedCandidatePairChanges_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint SelectedCandidatePairChanges { - get { return selectedCandidatePairChanges_; } + get { if ((_hasBits0 & 256) != 0) { return selectedCandidatePairChanges_; } else { return SelectedCandidatePairChangesDefaultValue; } } set { + _hasBits0 |= 256; selectedCandidatePairChanges_ = value; } } + /// Gets whether the "selected_candidate_pair_changes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSelectedCandidatePairChanges { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "selected_candidate_pair_changes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSelectedCandidatePairChanges() { + _hasBits0 &= ~256; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -13276,22 +15827,22 @@ public bool Equals(TransportStats other) { [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 (HasPacketsSent) hash ^= PacketsSent.GetHashCode(); + if (HasPacketsReceived) hash ^= PacketsReceived.GetHashCode(); + if (HasBytesSent) hash ^= BytesSent.GetHashCode(); + if (HasBytesReceived) hash ^= BytesReceived.GetHashCode(); + if (HasIceRole) hash ^= IceRole.GetHashCode(); + if (HasIceLocalUsernameFragment) 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 (HasSelectedCandidatePairId) hash ^= SelectedCandidatePairId.GetHashCode(); + if (HasLocalCertificateId) hash ^= LocalCertificateId.GetHashCode(); + if (HasRemoteCertificateId) hash ^= RemoteCertificateId.GetHashCode(); + if (HasTlsVersion) hash ^= TlsVersion.GetHashCode(); + if (HasDtlsCipher) hash ^= DtlsCipher.GetHashCode(); + if (HasDtlsRole) hash ^= DtlsRole.GetHashCode(); + if (HasSrtpCipher) hash ^= SrtpCipher.GetHashCode(); + if (HasSelectedCandidatePairChanges) hash ^= SelectedCandidatePairChanges.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -13310,27 +15861,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(8); output.WriteUInt64(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(16); output.WriteUInt64(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(24); output.WriteUInt64(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(32); output.WriteUInt64(BytesReceived); } - if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + if (HasIceRole) { output.WriteRawTag(40); output.WriteEnum((int) IceRole); } - if (IceLocalUsernameFragment.Length != 0) { + if (HasIceLocalUsernameFragment) { output.WriteRawTag(50); output.WriteString(IceLocalUsernameFragment); } @@ -13342,35 +15893,35 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(64); output.WriteEnum((int) IceState); } - if (SelectedCandidatePairId.Length != 0) { + if (HasSelectedCandidatePairId) { output.WriteRawTag(74); output.WriteString(SelectedCandidatePairId); } - if (LocalCertificateId.Length != 0) { + if (HasLocalCertificateId) { output.WriteRawTag(82); output.WriteString(LocalCertificateId); } - if (RemoteCertificateId.Length != 0) { + if (HasRemoteCertificateId) { output.WriteRawTag(90); output.WriteString(RemoteCertificateId); } - if (TlsVersion.Length != 0) { + if (HasTlsVersion) { output.WriteRawTag(98); output.WriteString(TlsVersion); } - if (DtlsCipher.Length != 0) { + if (HasDtlsCipher) { output.WriteRawTag(106); output.WriteString(DtlsCipher); } - if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + if (HasDtlsRole) { output.WriteRawTag(112); output.WriteEnum((int) DtlsRole); } - if (SrtpCipher.Length != 0) { + if (HasSrtpCipher) { output.WriteRawTag(122); output.WriteString(SrtpCipher); } - if (SelectedCandidatePairChanges != 0) { + if (HasSelectedCandidatePairChanges) { output.WriteRawTag(128, 1); output.WriteUInt32(SelectedCandidatePairChanges); } @@ -13384,27 +15935,27 @@ 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 (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(8); output.WriteUInt64(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(16); output.WriteUInt64(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(24); output.WriteUInt64(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(32); output.WriteUInt64(BytesReceived); } - if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + if (HasIceRole) { output.WriteRawTag(40); output.WriteEnum((int) IceRole); } - if (IceLocalUsernameFragment.Length != 0) { + if (HasIceLocalUsernameFragment) { output.WriteRawTag(50); output.WriteString(IceLocalUsernameFragment); } @@ -13416,35 +15967,35 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(64); output.WriteEnum((int) IceState); } - if (SelectedCandidatePairId.Length != 0) { + if (HasSelectedCandidatePairId) { output.WriteRawTag(74); output.WriteString(SelectedCandidatePairId); } - if (LocalCertificateId.Length != 0) { + if (HasLocalCertificateId) { output.WriteRawTag(82); output.WriteString(LocalCertificateId); } - if (RemoteCertificateId.Length != 0) { + if (HasRemoteCertificateId) { output.WriteRawTag(90); output.WriteString(RemoteCertificateId); } - if (TlsVersion.Length != 0) { + if (HasTlsVersion) { output.WriteRawTag(98); output.WriteString(TlsVersion); } - if (DtlsCipher.Length != 0) { + if (HasDtlsCipher) { output.WriteRawTag(106); output.WriteString(DtlsCipher); } - if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + if (HasDtlsRole) { output.WriteRawTag(112); output.WriteEnum((int) DtlsRole); } - if (SrtpCipher.Length != 0) { + if (HasSrtpCipher) { output.WriteRawTag(122); output.WriteString(SrtpCipher); } - if (SelectedCandidatePairChanges != 0) { + if (HasSelectedCandidatePairChanges) { output.WriteRawTag(128, 1); output.WriteUInt32(SelectedCandidatePairChanges); } @@ -13458,22 +16009,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PacketsSent != 0UL) { + if (HasPacketsSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); } - if (IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + if (HasIceRole) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceRole); } - if (IceLocalUsernameFragment.Length != 0) { + if (HasIceLocalUsernameFragment) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IceLocalUsernameFragment); } if (HasDtlsState) { @@ -13482,28 +16033,28 @@ public int CalculateSize() { if (HasIceState) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IceState); } - if (SelectedCandidatePairId.Length != 0) { + if (HasSelectedCandidatePairId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectedCandidatePairId); } - if (LocalCertificateId.Length != 0) { + if (HasLocalCertificateId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalCertificateId); } - if (RemoteCertificateId.Length != 0) { + if (HasRemoteCertificateId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteCertificateId); } - if (TlsVersion.Length != 0) { + if (HasTlsVersion) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TlsVersion); } - if (DtlsCipher.Length != 0) { + if (HasDtlsCipher) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DtlsCipher); } - if (DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + if (HasDtlsRole) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DtlsRole); } - if (SrtpCipher.Length != 0) { + if (HasSrtpCipher) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SrtpCipher); } - if (SelectedCandidatePairChanges != 0) { + if (HasSelectedCandidatePairChanges) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(SelectedCandidatePairChanges); } if (_unknownFields != null) { @@ -13518,22 +16069,22 @@ public void MergeFrom(TransportStats other) { if (other == null) { return; } - if (other.PacketsSent != 0UL) { + if (other.HasPacketsSent) { PacketsSent = other.PacketsSent; } - if (other.PacketsReceived != 0UL) { + if (other.HasPacketsReceived) { PacketsReceived = other.PacketsReceived; } - if (other.BytesSent != 0UL) { + if (other.HasBytesSent) { BytesSent = other.BytesSent; } - if (other.BytesReceived != 0UL) { + if (other.HasBytesReceived) { BytesReceived = other.BytesReceived; } - if (other.IceRole != global::LiveKit.Proto.IceRole.IceUnknown) { + if (other.HasIceRole) { IceRole = other.IceRole; } - if (other.IceLocalUsernameFragment.Length != 0) { + if (other.HasIceLocalUsernameFragment) { IceLocalUsernameFragment = other.IceLocalUsernameFragment; } if (other.HasDtlsState) { @@ -13542,28 +16093,28 @@ public void MergeFrom(TransportStats other) { if (other.HasIceState) { IceState = other.IceState; } - if (other.SelectedCandidatePairId.Length != 0) { + if (other.HasSelectedCandidatePairId) { SelectedCandidatePairId = other.SelectedCandidatePairId; } - if (other.LocalCertificateId.Length != 0) { + if (other.HasLocalCertificateId) { LocalCertificateId = other.LocalCertificateId; } - if (other.RemoteCertificateId.Length != 0) { + if (other.HasRemoteCertificateId) { RemoteCertificateId = other.RemoteCertificateId; } - if (other.TlsVersion.Length != 0) { + if (other.HasTlsVersion) { TlsVersion = other.TlsVersion; } - if (other.DtlsCipher.Length != 0) { + if (other.HasDtlsCipher) { DtlsCipher = other.DtlsCipher; } - if (other.DtlsRole != global::LiveKit.Proto.DtlsRole.DtlsClient) { + if (other.HasDtlsRole) { DtlsRole = other.DtlsRole; } - if (other.SrtpCipher.Length != 0) { + if (other.HasSrtpCipher) { SrtpCipher = other.SrtpCipher; } - if (other.SelectedCandidatePairChanges != 0) { + if (other.HasSelectedCandidatePairChanges) { SelectedCandidatePairChanges = other.SelectedCandidatePairChanges; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -13577,7 +16128,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -13656,7 +16211,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -13801,39 +16360,81 @@ public CandidatePairStats Clone() { /// Field number for the "transport_id" field. public const int TransportIdFieldNumber = 1; - private string transportId_ = ""; + private readonly static string TransportIdDefaultValue = ""; + + private string transportId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TransportId { - get { return transportId_; } + get { return transportId_ ?? TransportIdDefaultValue; } set { transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "transport_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTransportId { + get { return transportId_ != null; } + } + /// Clears the value of the "transport_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTransportId() { + transportId_ = null; + } /// Field number for the "local_candidate_id" field. public const int LocalCandidateIdFieldNumber = 2; - private string localCandidateId_ = ""; + private readonly static string LocalCandidateIdDefaultValue = ""; + + private string localCandidateId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string LocalCandidateId { - get { return localCandidateId_; } + get { return localCandidateId_ ?? LocalCandidateIdDefaultValue; } set { localCandidateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "local_candidate_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLocalCandidateId { + get { return localCandidateId_ != null; } + } + /// Clears the value of the "local_candidate_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLocalCandidateId() { + localCandidateId_ = null; + } /// Field number for the "remote_candidate_id" field. public const int RemoteCandidateIdFieldNumber = 3; - private string remoteCandidateId_ = ""; + private readonly static string RemoteCandidateIdDefaultValue = ""; + + private string remoteCandidateId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RemoteCandidateId { - get { return remoteCandidateId_; } + get { return remoteCandidateId_ ?? RemoteCandidateIdDefaultValue; } set { remoteCandidateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "remote_candidate_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemoteCandidateId { + get { return remoteCandidateId_ != null; } + } + /// Clears the value of the "remote_candidate_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemoteCandidateId() { + remoteCandidateId_ = null; + } /// Field number for the "state" field. public const int StateFieldNumber = 4; @@ -13864,219 +16465,489 @@ public void ClearState() { /// Field number for the "nominated" field. public const int NominatedFieldNumber = 5; + private readonly static bool NominatedDefaultValue = false; + private bool nominated_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Nominated { - get { return nominated_; } - set { - nominated_ = value; - } + public bool Nominated { + get { if ((_hasBits0 & 2) != 0) { return nominated_; } else { return NominatedDefaultValue; } } + set { + _hasBits0 |= 2; + nominated_ = value; + } + } + /// Gets whether the "nominated" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNominated { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "nominated" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNominated() { + _hasBits0 &= ~2; } /// Field number for the "packets_sent" field. public const int PacketsSentFieldNumber = 6; + private readonly static ulong PacketsSentDefaultValue = 0UL; + private ulong packetsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsSent { - get { return packetsSent_; } + get { if ((_hasBits0 & 4) != 0) { return packetsSent_; } else { return PacketsSentDefaultValue; } } set { + _hasBits0 |= 4; packetsSent_ = value; } } + /// Gets whether the "packets_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsSent { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "packets_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsSent() { + _hasBits0 &= ~4; + } /// Field number for the "packets_received" field. public const int PacketsReceivedFieldNumber = 7; + private readonly static ulong PacketsReceivedDefaultValue = 0UL; + private ulong packetsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong PacketsReceived { - get { return packetsReceived_; } + get { if ((_hasBits0 & 8) != 0) { return packetsReceived_; } else { return PacketsReceivedDefaultValue; } } set { + _hasBits0 |= 8; packetsReceived_ = value; } } + /// Gets whether the "packets_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsReceived { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "packets_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsReceived() { + _hasBits0 &= ~8; + } /// Field number for the "bytes_sent" field. public const int BytesSentFieldNumber = 8; + private readonly static ulong BytesSentDefaultValue = 0UL; + private ulong bytesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesSent { - get { return bytesSent_; } + get { if ((_hasBits0 & 16) != 0) { return bytesSent_; } else { return BytesSentDefaultValue; } } set { + _hasBits0 |= 16; bytesSent_ = value; } } + /// Gets whether the "bytes_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesSent { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bytes_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesSent() { + _hasBits0 &= ~16; + } /// Field number for the "bytes_received" field. public const int BytesReceivedFieldNumber = 9; + private readonly static ulong BytesReceivedDefaultValue = 0UL; + private ulong bytesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesReceived { - get { return bytesReceived_; } + get { if ((_hasBits0 & 32) != 0) { return bytesReceived_; } else { return BytesReceivedDefaultValue; } } set { + _hasBits0 |= 32; bytesReceived_ = value; } } + /// Gets whether the "bytes_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesReceived { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "bytes_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesReceived() { + _hasBits0 &= ~32; + } /// Field number for the "last_packet_sent_timestamp" field. public const int LastPacketSentTimestampFieldNumber = 10; + private readonly static double LastPacketSentTimestampDefaultValue = 0D; + private double lastPacketSentTimestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double LastPacketSentTimestamp { - get { return lastPacketSentTimestamp_; } + get { if ((_hasBits0 & 64) != 0) { return lastPacketSentTimestamp_; } else { return LastPacketSentTimestampDefaultValue; } } set { + _hasBits0 |= 64; lastPacketSentTimestamp_ = value; } } + /// Gets whether the "last_packet_sent_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLastPacketSentTimestamp { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "last_packet_sent_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLastPacketSentTimestamp() { + _hasBits0 &= ~64; + } /// Field number for the "last_packet_received_timestamp" field. public const int LastPacketReceivedTimestampFieldNumber = 11; + private readonly static double LastPacketReceivedTimestampDefaultValue = 0D; + private double lastPacketReceivedTimestamp_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double LastPacketReceivedTimestamp { - get { return lastPacketReceivedTimestamp_; } + get { if ((_hasBits0 & 128) != 0) { return lastPacketReceivedTimestamp_; } else { return LastPacketReceivedTimestampDefaultValue; } } set { + _hasBits0 |= 128; lastPacketReceivedTimestamp_ = value; } } + /// Gets whether the "last_packet_received_timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLastPacketReceivedTimestamp { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "last_packet_received_timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLastPacketReceivedTimestamp() { + _hasBits0 &= ~128; + } /// Field number for the "total_round_trip_time" field. public const int TotalRoundTripTimeFieldNumber = 12; + private readonly static double TotalRoundTripTimeDefaultValue = 0D; + private double totalRoundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TotalRoundTripTime { - get { return totalRoundTripTime_; } + get { if ((_hasBits0 & 256) != 0) { return totalRoundTripTime_; } else { return TotalRoundTripTimeDefaultValue; } } set { + _hasBits0 |= 256; totalRoundTripTime_ = value; } } + /// Gets whether the "total_round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTotalRoundTripTime { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "total_round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTotalRoundTripTime() { + _hasBits0 &= ~256; + } /// Field number for the "current_round_trip_time" field. public const int CurrentRoundTripTimeFieldNumber = 13; + private readonly static double CurrentRoundTripTimeDefaultValue = 0D; + private double currentRoundTripTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double CurrentRoundTripTime { - get { return currentRoundTripTime_; } + get { if ((_hasBits0 & 512) != 0) { return currentRoundTripTime_; } else { return CurrentRoundTripTimeDefaultValue; } } set { + _hasBits0 |= 512; currentRoundTripTime_ = value; } } + /// Gets whether the "current_round_trip_time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCurrentRoundTripTime { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "current_round_trip_time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCurrentRoundTripTime() { + _hasBits0 &= ~512; + } /// Field number for the "available_outgoing_bitrate" field. public const int AvailableOutgoingBitrateFieldNumber = 14; + private readonly static double AvailableOutgoingBitrateDefaultValue = 0D; + private double availableOutgoingBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double AvailableOutgoingBitrate { - get { return availableOutgoingBitrate_; } + get { if ((_hasBits0 & 1024) != 0) { return availableOutgoingBitrate_; } else { return AvailableOutgoingBitrateDefaultValue; } } set { + _hasBits0 |= 1024; availableOutgoingBitrate_ = value; } } + /// Gets whether the "available_outgoing_bitrate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvailableOutgoingBitrate { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "available_outgoing_bitrate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvailableOutgoingBitrate() { + _hasBits0 &= ~1024; + } /// Field number for the "available_incoming_bitrate" field. public const int AvailableIncomingBitrateFieldNumber = 15; + private readonly static double AvailableIncomingBitrateDefaultValue = 0D; + private double availableIncomingBitrate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double AvailableIncomingBitrate { - get { return availableIncomingBitrate_; } + get { if ((_hasBits0 & 2048) != 0) { return availableIncomingBitrate_; } else { return AvailableIncomingBitrateDefaultValue; } } set { + _hasBits0 |= 2048; availableIncomingBitrate_ = value; } } + /// Gets whether the "available_incoming_bitrate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAvailableIncomingBitrate { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "available_incoming_bitrate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAvailableIncomingBitrate() { + _hasBits0 &= ~2048; + } /// Field number for the "requests_received" field. public const int RequestsReceivedFieldNumber = 16; + private readonly static ulong RequestsReceivedDefaultValue = 0UL; + private ulong requestsReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RequestsReceived { - get { return requestsReceived_; } + get { if ((_hasBits0 & 4096) != 0) { return requestsReceived_; } else { return RequestsReceivedDefaultValue; } } set { + _hasBits0 |= 4096; requestsReceived_ = value; } } + /// Gets whether the "requests_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRequestsReceived { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "requests_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRequestsReceived() { + _hasBits0 &= ~4096; + } /// Field number for the "requests_sent" field. public const int RequestsSentFieldNumber = 17; + private readonly static ulong RequestsSentDefaultValue = 0UL; + private ulong requestsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong RequestsSent { - get { return requestsSent_; } + get { if ((_hasBits0 & 8192) != 0) { return requestsSent_; } else { return RequestsSentDefaultValue; } } set { + _hasBits0 |= 8192; requestsSent_ = value; } } + /// Gets whether the "requests_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRequestsSent { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "requests_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRequestsSent() { + _hasBits0 &= ~8192; + } /// Field number for the "responses_received" field. public const int ResponsesReceivedFieldNumber = 18; + private readonly static ulong ResponsesReceivedDefaultValue = 0UL; + private ulong responsesReceived_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ResponsesReceived { - get { return responsesReceived_; } + get { if ((_hasBits0 & 16384) != 0) { return responsesReceived_; } else { return ResponsesReceivedDefaultValue; } } set { + _hasBits0 |= 16384; responsesReceived_ = value; } } + /// Gets whether the "responses_received" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResponsesReceived { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "responses_received" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponsesReceived() { + _hasBits0 &= ~16384; + } /// Field number for the "responses_sent" field. public const int ResponsesSentFieldNumber = 19; + private readonly static ulong ResponsesSentDefaultValue = 0UL; + private ulong responsesSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ResponsesSent { - get { return responsesSent_; } + get { if ((_hasBits0 & 32768) != 0) { return responsesSent_; } else { return ResponsesSentDefaultValue; } } set { + _hasBits0 |= 32768; responsesSent_ = value; } } + /// Gets whether the "responses_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResponsesSent { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "responses_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponsesSent() { + _hasBits0 &= ~32768; + } /// Field number for the "consent_requests_sent" field. public const int ConsentRequestsSentFieldNumber = 20; + private readonly static ulong ConsentRequestsSentDefaultValue = 0UL; + private ulong consentRequestsSent_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ConsentRequestsSent { - get { return consentRequestsSent_; } + get { if ((_hasBits0 & 65536) != 0) { return consentRequestsSent_; } else { return ConsentRequestsSentDefaultValue; } } set { + _hasBits0 |= 65536; consentRequestsSent_ = value; } } + /// Gets whether the "consent_requests_sent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasConsentRequestsSent { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "consent_requests_sent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearConsentRequestsSent() { + _hasBits0 &= ~65536; + } /// Field number for the "packets_discarded_on_send" field. public const int PacketsDiscardedOnSendFieldNumber = 21; + private readonly static uint PacketsDiscardedOnSendDefaultValue = 0; + private uint packetsDiscardedOnSend_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PacketsDiscardedOnSend { - get { return packetsDiscardedOnSend_; } + get { if ((_hasBits0 & 131072) != 0) { return packetsDiscardedOnSend_; } else { return PacketsDiscardedOnSendDefaultValue; } } set { + _hasBits0 |= 131072; packetsDiscardedOnSend_ = value; } } + /// Gets whether the "packets_discarded_on_send" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPacketsDiscardedOnSend { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "packets_discarded_on_send" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPacketsDiscardedOnSend() { + _hasBits0 &= ~131072; + } /// Field number for the "bytes_discarded_on_send" field. public const int BytesDiscardedOnSendFieldNumber = 22; + private readonly static ulong BytesDiscardedOnSendDefaultValue = 0UL; + private ulong bytesDiscardedOnSend_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong BytesDiscardedOnSend { - get { return bytesDiscardedOnSend_; } + get { if ((_hasBits0 & 262144) != 0) { return bytesDiscardedOnSend_; } else { return BytesDiscardedOnSendDefaultValue; } } set { + _hasBits0 |= 262144; bytesDiscardedOnSend_ = value; } } + /// Gets whether the "bytes_discarded_on_send" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBytesDiscardedOnSend { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "bytes_discarded_on_send" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBytesDiscardedOnSend() { + _hasBits0 &= ~262144; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -14122,28 +16993,28 @@ public bool Equals(CandidatePairStats other) { [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 (HasTransportId) hash ^= TransportId.GetHashCode(); + if (HasLocalCandidateId) hash ^= LocalCandidateId.GetHashCode(); + if (HasRemoteCandidateId) 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 (HasNominated) hash ^= Nominated.GetHashCode(); + if (HasPacketsSent) hash ^= PacketsSent.GetHashCode(); + if (HasPacketsReceived) hash ^= PacketsReceived.GetHashCode(); + if (HasBytesSent) hash ^= BytesSent.GetHashCode(); + if (HasBytesReceived) hash ^= BytesReceived.GetHashCode(); + if (HasLastPacketSentTimestamp) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketSentTimestamp); + if (HasLastPacketReceivedTimestamp) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LastPacketReceivedTimestamp); + if (HasTotalRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalRoundTripTime); + if (HasCurrentRoundTripTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CurrentRoundTripTime); + if (HasAvailableOutgoingBitrate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvailableOutgoingBitrate); + if (HasAvailableIncomingBitrate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvailableIncomingBitrate); + if (HasRequestsReceived) hash ^= RequestsReceived.GetHashCode(); + if (HasRequestsSent) hash ^= RequestsSent.GetHashCode(); + if (HasResponsesReceived) hash ^= ResponsesReceived.GetHashCode(); + if (HasResponsesSent) hash ^= ResponsesSent.GetHashCode(); + if (HasConsentRequestsSent) hash ^= ConsentRequestsSent.GetHashCode(); + if (HasPacketsDiscardedOnSend) hash ^= PacketsDiscardedOnSend.GetHashCode(); + if (HasBytesDiscardedOnSend) hash ^= BytesDiscardedOnSend.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -14162,15 +17033,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(10); output.WriteString(TransportId); } - if (LocalCandidateId.Length != 0) { + if (HasLocalCandidateId) { output.WriteRawTag(18); output.WriteString(LocalCandidateId); } - if (RemoteCandidateId.Length != 0) { + if (HasRemoteCandidateId) { output.WriteRawTag(26); output.WriteString(RemoteCandidateId); } @@ -14178,75 +17049,75 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) State); } - if (Nominated != false) { + if (HasNominated) { output.WriteRawTag(40); output.WriteBool(Nominated); } - if (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(48); output.WriteUInt64(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(56); output.WriteUInt64(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(64); output.WriteUInt64(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(72); output.WriteUInt64(BytesReceived); } - if (LastPacketSentTimestamp != 0D) { + if (HasLastPacketSentTimestamp) { output.WriteRawTag(81); output.WriteDouble(LastPacketSentTimestamp); } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { output.WriteRawTag(89); output.WriteDouble(LastPacketReceivedTimestamp); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(97); output.WriteDouble(TotalRoundTripTime); } - if (CurrentRoundTripTime != 0D) { + if (HasCurrentRoundTripTime) { output.WriteRawTag(105); output.WriteDouble(CurrentRoundTripTime); } - if (AvailableOutgoingBitrate != 0D) { + if (HasAvailableOutgoingBitrate) { output.WriteRawTag(113); output.WriteDouble(AvailableOutgoingBitrate); } - if (AvailableIncomingBitrate != 0D) { + if (HasAvailableIncomingBitrate) { output.WriteRawTag(121); output.WriteDouble(AvailableIncomingBitrate); } - if (RequestsReceived != 0UL) { + if (HasRequestsReceived) { output.WriteRawTag(128, 1); output.WriteUInt64(RequestsReceived); } - if (RequestsSent != 0UL) { + if (HasRequestsSent) { output.WriteRawTag(136, 1); output.WriteUInt64(RequestsSent); } - if (ResponsesReceived != 0UL) { + if (HasResponsesReceived) { output.WriteRawTag(144, 1); output.WriteUInt64(ResponsesReceived); } - if (ResponsesSent != 0UL) { + if (HasResponsesSent) { output.WriteRawTag(152, 1); output.WriteUInt64(ResponsesSent); } - if (ConsentRequestsSent != 0UL) { + if (HasConsentRequestsSent) { output.WriteRawTag(160, 1); output.WriteUInt64(ConsentRequestsSent); } - if (PacketsDiscardedOnSend != 0) { + if (HasPacketsDiscardedOnSend) { output.WriteRawTag(168, 1); output.WriteUInt32(PacketsDiscardedOnSend); } - if (BytesDiscardedOnSend != 0UL) { + if (HasBytesDiscardedOnSend) { output.WriteRawTag(176, 1); output.WriteUInt64(BytesDiscardedOnSend); } @@ -14260,15 +17131,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 (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(10); output.WriteString(TransportId); } - if (LocalCandidateId.Length != 0) { + if (HasLocalCandidateId) { output.WriteRawTag(18); output.WriteString(LocalCandidateId); } - if (RemoteCandidateId.Length != 0) { + if (HasRemoteCandidateId) { output.WriteRawTag(26); output.WriteString(RemoteCandidateId); } @@ -14276,75 +17147,75 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) State); } - if (Nominated != false) { + if (HasNominated) { output.WriteRawTag(40); output.WriteBool(Nominated); } - if (PacketsSent != 0UL) { + if (HasPacketsSent) { output.WriteRawTag(48); output.WriteUInt64(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { output.WriteRawTag(56); output.WriteUInt64(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { output.WriteRawTag(64); output.WriteUInt64(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { output.WriteRawTag(72); output.WriteUInt64(BytesReceived); } - if (LastPacketSentTimestamp != 0D) { + if (HasLastPacketSentTimestamp) { output.WriteRawTag(81); output.WriteDouble(LastPacketSentTimestamp); } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { output.WriteRawTag(89); output.WriteDouble(LastPacketReceivedTimestamp); } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { output.WriteRawTag(97); output.WriteDouble(TotalRoundTripTime); } - if (CurrentRoundTripTime != 0D) { + if (HasCurrentRoundTripTime) { output.WriteRawTag(105); output.WriteDouble(CurrentRoundTripTime); } - if (AvailableOutgoingBitrate != 0D) { + if (HasAvailableOutgoingBitrate) { output.WriteRawTag(113); output.WriteDouble(AvailableOutgoingBitrate); } - if (AvailableIncomingBitrate != 0D) { + if (HasAvailableIncomingBitrate) { output.WriteRawTag(121); output.WriteDouble(AvailableIncomingBitrate); } - if (RequestsReceived != 0UL) { + if (HasRequestsReceived) { output.WriteRawTag(128, 1); output.WriteUInt64(RequestsReceived); } - if (RequestsSent != 0UL) { + if (HasRequestsSent) { output.WriteRawTag(136, 1); output.WriteUInt64(RequestsSent); } - if (ResponsesReceived != 0UL) { + if (HasResponsesReceived) { output.WriteRawTag(144, 1); output.WriteUInt64(ResponsesReceived); } - if (ResponsesSent != 0UL) { + if (HasResponsesSent) { output.WriteRawTag(152, 1); output.WriteUInt64(ResponsesSent); } - if (ConsentRequestsSent != 0UL) { + if (HasConsentRequestsSent) { output.WriteRawTag(160, 1); output.WriteUInt64(ConsentRequestsSent); } - if (PacketsDiscardedOnSend != 0) { + if (HasPacketsDiscardedOnSend) { output.WriteRawTag(168, 1); output.WriteUInt32(PacketsDiscardedOnSend); } - if (BytesDiscardedOnSend != 0UL) { + if (HasBytesDiscardedOnSend) { output.WriteRawTag(176, 1); output.WriteUInt64(BytesDiscardedOnSend); } @@ -14358,70 +17229,70 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TransportId.Length != 0) { + if (HasTransportId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); } - if (LocalCandidateId.Length != 0) { + if (HasLocalCandidateId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalCandidateId); } - if (RemoteCandidateId.Length != 0) { + if (HasRemoteCandidateId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteCandidateId); } if (HasState) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); } - if (Nominated != false) { + if (HasNominated) { size += 1 + 1; } - if (PacketsSent != 0UL) { + if (HasPacketsSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsSent); } - if (PacketsReceived != 0UL) { + if (HasPacketsReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PacketsReceived); } - if (BytesSent != 0UL) { + if (HasBytesSent) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesSent); } - if (BytesReceived != 0UL) { + if (HasBytesReceived) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(BytesReceived); } - if (LastPacketSentTimestamp != 0D) { + if (HasLastPacketSentTimestamp) { size += 1 + 8; } - if (LastPacketReceivedTimestamp != 0D) { + if (HasLastPacketReceivedTimestamp) { size += 1 + 8; } - if (TotalRoundTripTime != 0D) { + if (HasTotalRoundTripTime) { size += 1 + 8; } - if (CurrentRoundTripTime != 0D) { + if (HasCurrentRoundTripTime) { size += 1 + 8; } - if (AvailableOutgoingBitrate != 0D) { + if (HasAvailableOutgoingBitrate) { size += 1 + 8; } - if (AvailableIncomingBitrate != 0D) { + if (HasAvailableIncomingBitrate) { size += 1 + 8; } - if (RequestsReceived != 0UL) { + if (HasRequestsReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RequestsReceived); } - if (RequestsSent != 0UL) { + if (HasRequestsSent) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(RequestsSent); } - if (ResponsesReceived != 0UL) { + if (HasResponsesReceived) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ResponsesReceived); } - if (ResponsesSent != 0UL) { + if (HasResponsesSent) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ResponsesSent); } - if (ConsentRequestsSent != 0UL) { + if (HasConsentRequestsSent) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ConsentRequestsSent); } - if (PacketsDiscardedOnSend != 0) { + if (HasPacketsDiscardedOnSend) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PacketsDiscardedOnSend); } - if (BytesDiscardedOnSend != 0UL) { + if (HasBytesDiscardedOnSend) { size += 2 + pb::CodedOutputStream.ComputeUInt64Size(BytesDiscardedOnSend); } if (_unknownFields != null) { @@ -14436,70 +17307,70 @@ public void MergeFrom(CandidatePairStats other) { if (other == null) { return; } - if (other.TransportId.Length != 0) { + if (other.HasTransportId) { TransportId = other.TransportId; } - if (other.LocalCandidateId.Length != 0) { + if (other.HasLocalCandidateId) { LocalCandidateId = other.LocalCandidateId; } - if (other.RemoteCandidateId.Length != 0) { + if (other.HasRemoteCandidateId) { RemoteCandidateId = other.RemoteCandidateId; } if (other.HasState) { State = other.State; } - if (other.Nominated != false) { + if (other.HasNominated) { Nominated = other.Nominated; } - if (other.PacketsSent != 0UL) { + if (other.HasPacketsSent) { PacketsSent = other.PacketsSent; } - if (other.PacketsReceived != 0UL) { + if (other.HasPacketsReceived) { PacketsReceived = other.PacketsReceived; } - if (other.BytesSent != 0UL) { + if (other.HasBytesSent) { BytesSent = other.BytesSent; } - if (other.BytesReceived != 0UL) { + if (other.HasBytesReceived) { BytesReceived = other.BytesReceived; } - if (other.LastPacketSentTimestamp != 0D) { + if (other.HasLastPacketSentTimestamp) { LastPacketSentTimestamp = other.LastPacketSentTimestamp; } - if (other.LastPacketReceivedTimestamp != 0D) { + if (other.HasLastPacketReceivedTimestamp) { LastPacketReceivedTimestamp = other.LastPacketReceivedTimestamp; } - if (other.TotalRoundTripTime != 0D) { + if (other.HasTotalRoundTripTime) { TotalRoundTripTime = other.TotalRoundTripTime; } - if (other.CurrentRoundTripTime != 0D) { + if (other.HasCurrentRoundTripTime) { CurrentRoundTripTime = other.CurrentRoundTripTime; } - if (other.AvailableOutgoingBitrate != 0D) { + if (other.HasAvailableOutgoingBitrate) { AvailableOutgoingBitrate = other.AvailableOutgoingBitrate; } - if (other.AvailableIncomingBitrate != 0D) { + if (other.HasAvailableIncomingBitrate) { AvailableIncomingBitrate = other.AvailableIncomingBitrate; } - if (other.RequestsReceived != 0UL) { + if (other.HasRequestsReceived) { RequestsReceived = other.RequestsReceived; } - if (other.RequestsSent != 0UL) { + if (other.HasRequestsSent) { RequestsSent = other.RequestsSent; } - if (other.ResponsesReceived != 0UL) { + if (other.HasResponsesReceived) { ResponsesReceived = other.ResponsesReceived; } - if (other.ResponsesSent != 0UL) { + if (other.HasResponsesSent) { ResponsesSent = other.ResponsesSent; } - if (other.ConsentRequestsSent != 0UL) { + if (other.HasConsentRequestsSent) { ConsentRequestsSent = other.ConsentRequestsSent; } - if (other.PacketsDiscardedOnSend != 0) { + if (other.HasPacketsDiscardedOnSend) { PacketsDiscardedOnSend = other.PacketsDiscardedOnSend; } - if (other.BytesDiscardedOnSend != 0UL) { + if (other.HasBytesDiscardedOnSend) { BytesDiscardedOnSend = other.BytesDiscardedOnSend; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -14513,7 +17384,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -14616,7 +17491,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -14776,51 +17655,108 @@ public IceCandidateStats Clone() { /// Field number for the "transport_id" field. public const int TransportIdFieldNumber = 1; - private string transportId_ = ""; + private readonly static string TransportIdDefaultValue = ""; + + private string transportId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TransportId { - get { return transportId_; } + get { return transportId_ ?? TransportIdDefaultValue; } set { transportId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "transport_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTransportId { + get { return transportId_ != null; } + } + /// Clears the value of the "transport_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTransportId() { + transportId_ = null; + } /// Field number for the "address" field. public const int AddressFieldNumber = 2; - private string address_ = ""; + private readonly static string AddressDefaultValue = ""; + + private string address_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Address { - get { return address_; } + get { return address_ ?? AddressDefaultValue; } set { address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAddress { + get { return address_ != null; } + } + /// Clears the value of the "address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAddress() { + address_ = null; + } /// Field number for the "port" field. public const int PortFieldNumber = 3; + private readonly static int PortDefaultValue = 0; + private int port_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Port { - get { return port_; } + get { if ((_hasBits0 & 1) != 0) { return port_; } else { return PortDefaultValue; } } set { + _hasBits0 |= 1; port_ = value; } } + /// Gets whether the "port" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPort { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "port" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPort() { + _hasBits0 &= ~1; + } /// Field number for the "protocol" field. public const int ProtocolFieldNumber = 4; - private string protocol_ = ""; + private readonly static string ProtocolDefaultValue = ""; + + private string protocol_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Protocol { - get { return protocol_; } + get { return protocol_ ?? ProtocolDefaultValue; } set { protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "protocol" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProtocol { + get { return protocol_ != null; } + } + /// Clears the value of the "protocol" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProtocol() { + protocol_ = null; + } /// Field number for the "candidate_type" field. public const int CandidateTypeFieldNumber = 5; @@ -14830,9 +17766,9 @@ public string Protocol { [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; } } + get { if ((_hasBits0 & 2) != 0) { return candidateType_; } else { return CandidateTypeDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 2; candidateType_ = value; } } @@ -14840,38 +17776,67 @@ public string Protocol { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasCandidateType { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 2) != 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; + _hasBits0 &= ~2; } /// Field number for the "priority" field. public const int PriorityFieldNumber = 6; + private readonly static int PriorityDefaultValue = 0; + private int priority_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Priority { - get { return priority_; } + get { if ((_hasBits0 & 4) != 0) { return priority_; } else { return PriorityDefaultValue; } } set { + _hasBits0 |= 4; priority_ = value; } } + /// Gets whether the "priority" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPriority { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "priority" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPriority() { + _hasBits0 &= ~4; + } /// Field number for the "url" field. public const int UrlFieldNumber = 7; - private string url_ = ""; + private readonly static string UrlDefaultValue = ""; + + private string url_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Url { - get { return url_; } + get { return url_ ?? UrlDefaultValue; } set { url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUrl() { + url_ = null; + } /// Field number for the "relay_protocol" field. public const int RelayProtocolFieldNumber = 8; @@ -14881,9 +17846,9 @@ public string Url { [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; } } + get { if ((_hasBits0 & 8) != 0) { return relayProtocol_; } else { return RelayProtocolDefaultValue; } } set { - _hasBits0 |= 2; + _hasBits0 |= 8; relayProtocol_ = value; } } @@ -14891,62 +17856,119 @@ public string Url { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasRelayProtocol { - get { return (_hasBits0 & 2) != 0; } + get { return (_hasBits0 & 8) != 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; + _hasBits0 &= ~8; } /// Field number for the "foundation" field. public const int FoundationFieldNumber = 9; - private string foundation_ = ""; + private readonly static string FoundationDefaultValue = ""; + + private string foundation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Foundation { - get { return foundation_; } + get { return foundation_ ?? FoundationDefaultValue; } set { foundation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "foundation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFoundation { + get { return foundation_ != null; } + } + /// Clears the value of the "foundation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFoundation() { + foundation_ = null; + } /// Field number for the "related_address" field. public const int RelatedAddressFieldNumber = 10; - private string relatedAddress_ = ""; + private readonly static string RelatedAddressDefaultValue = ""; + + private string relatedAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RelatedAddress { - get { return relatedAddress_; } + get { return relatedAddress_ ?? RelatedAddressDefaultValue; } set { relatedAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "related_address" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRelatedAddress { + get { return relatedAddress_ != null; } + } + /// Clears the value of the "related_address" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRelatedAddress() { + relatedAddress_ = null; + } /// Field number for the "related_port" field. public const int RelatedPortFieldNumber = 11; + private readonly static int RelatedPortDefaultValue = 0; + private int relatedPort_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RelatedPort { - get { return relatedPort_; } + get { if ((_hasBits0 & 16) != 0) { return relatedPort_; } else { return RelatedPortDefaultValue; } } set { + _hasBits0 |= 16; relatedPort_ = value; } } + /// Gets whether the "related_port" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRelatedPort { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "related_port" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRelatedPort() { + _hasBits0 &= ~16; + } /// Field number for the "username_fragment" field. public const int UsernameFragmentFieldNumber = 12; - private string usernameFragment_ = ""; + private readonly static string UsernameFragmentDefaultValue = ""; + + private string usernameFragment_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UsernameFragment { - get { return usernameFragment_; } + get { return usernameFragment_ ?? UsernameFragmentDefaultValue; } set { usernameFragment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "username_fragment" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUsernameFragment { + get { return usernameFragment_ != null; } + } + /// Clears the value of the "username_fragment" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUsernameFragment() { + usernameFragment_ = null; + } /// Field number for the "tcp_type" field. public const int TcpTypeFieldNumber = 13; @@ -14956,9 +17978,9 @@ public string UsernameFragment { [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; } } + get { if ((_hasBits0 & 32) != 0) { return tcpType_; } else { return TcpTypeDefaultValue; } } set { - _hasBits0 |= 4; + _hasBits0 |= 32; tcpType_ = value; } } @@ -14966,13 +17988,13 @@ public string UsernameFragment { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasTcpType { - get { return (_hasBits0 & 4) != 0; } + get { return (_hasBits0 & 32) != 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; + _hasBits0 &= ~32; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15010,18 +18032,18 @@ public bool Equals(IceCandidateStats other) { [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 (HasTransportId) hash ^= TransportId.GetHashCode(); + if (HasAddress) hash ^= Address.GetHashCode(); + if (HasPort) hash ^= Port.GetHashCode(); + if (HasProtocol) hash ^= Protocol.GetHashCode(); if (HasCandidateType) hash ^= CandidateType.GetHashCode(); - if (Priority != 0) hash ^= Priority.GetHashCode(); - if (Url.Length != 0) hash ^= Url.GetHashCode(); + if (HasPriority) hash ^= Priority.GetHashCode(); + if (HasUrl) 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 (HasFoundation) hash ^= Foundation.GetHashCode(); + if (HasRelatedAddress) hash ^= RelatedAddress.GetHashCode(); + if (HasRelatedPort) hash ^= RelatedPort.GetHashCode(); + if (HasUsernameFragment) hash ^= UsernameFragment.GetHashCode(); if (HasTcpType) hash ^= TcpType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -15041,19 +18063,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(10); output.WriteString(TransportId); } - if (Address.Length != 0) { + if (HasAddress) { output.WriteRawTag(18); output.WriteString(Address); } - if (Port != 0) { + if (HasPort) { output.WriteRawTag(24); output.WriteInt32(Port); } - if (Protocol.Length != 0) { + if (HasProtocol) { output.WriteRawTag(34); output.WriteString(Protocol); } @@ -15061,11 +18083,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(40); output.WriteEnum((int) CandidateType); } - if (Priority != 0) { + if (HasPriority) { output.WriteRawTag(48); output.WriteInt32(Priority); } - if (Url.Length != 0) { + if (HasUrl) { output.WriteRawTag(58); output.WriteString(Url); } @@ -15073,19 +18095,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(64); output.WriteEnum((int) RelayProtocol); } - if (Foundation.Length != 0) { + if (HasFoundation) { output.WriteRawTag(74); output.WriteString(Foundation); } - if (RelatedAddress.Length != 0) { + if (HasRelatedAddress) { output.WriteRawTag(82); output.WriteString(RelatedAddress); } - if (RelatedPort != 0) { + if (HasRelatedPort) { output.WriteRawTag(88); output.WriteInt32(RelatedPort); } - if (UsernameFragment.Length != 0) { + if (HasUsernameFragment) { output.WriteRawTag(98); output.WriteString(UsernameFragment); } @@ -15103,19 +18125,19 @@ 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 (TransportId.Length != 0) { + if (HasTransportId) { output.WriteRawTag(10); output.WriteString(TransportId); } - if (Address.Length != 0) { + if (HasAddress) { output.WriteRawTag(18); output.WriteString(Address); } - if (Port != 0) { + if (HasPort) { output.WriteRawTag(24); output.WriteInt32(Port); } - if (Protocol.Length != 0) { + if (HasProtocol) { output.WriteRawTag(34); output.WriteString(Protocol); } @@ -15123,11 +18145,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(40); output.WriteEnum((int) CandidateType); } - if (Priority != 0) { + if (HasPriority) { output.WriteRawTag(48); output.WriteInt32(Priority); } - if (Url.Length != 0) { + if (HasUrl) { output.WriteRawTag(58); output.WriteString(Url); } @@ -15135,19 +18157,19 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(64); output.WriteEnum((int) RelayProtocol); } - if (Foundation.Length != 0) { + if (HasFoundation) { output.WriteRawTag(74); output.WriteString(Foundation); } - if (RelatedAddress.Length != 0) { + if (HasRelatedAddress) { output.WriteRawTag(82); output.WriteString(RelatedAddress); } - if (RelatedPort != 0) { + if (HasRelatedPort) { output.WriteRawTag(88); output.WriteInt32(RelatedPort); } - if (UsernameFragment.Length != 0) { + if (HasUsernameFragment) { output.WriteRawTag(98); output.WriteString(UsernameFragment); } @@ -15165,40 +18187,40 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TransportId.Length != 0) { + if (HasTransportId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TransportId); } - if (Address.Length != 0) { + if (HasAddress) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); } - if (Port != 0) { + if (HasPort) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); } - if (Protocol.Length != 0) { + if (HasProtocol) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol); } if (HasCandidateType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CandidateType); } - if (Priority != 0) { + if (HasPriority) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority); } - if (Url.Length != 0) { + if (HasUrl) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); } if (HasRelayProtocol) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RelayProtocol); } - if (Foundation.Length != 0) { + if (HasFoundation) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Foundation); } - if (RelatedAddress.Length != 0) { + if (HasRelatedAddress) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RelatedAddress); } - if (RelatedPort != 0) { + if (HasRelatedPort) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RelatedPort); } - if (UsernameFragment.Length != 0) { + if (HasUsernameFragment) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UsernameFragment); } if (HasTcpType) { @@ -15216,40 +18238,40 @@ public void MergeFrom(IceCandidateStats other) { if (other == null) { return; } - if (other.TransportId.Length != 0) { + if (other.HasTransportId) { TransportId = other.TransportId; } - if (other.Address.Length != 0) { + if (other.HasAddress) { Address = other.Address; } - if (other.Port != 0) { + if (other.HasPort) { Port = other.Port; } - if (other.Protocol.Length != 0) { + if (other.HasProtocol) { Protocol = other.Protocol; } if (other.HasCandidateType) { CandidateType = other.CandidateType; } - if (other.Priority != 0) { + if (other.HasPriority) { Priority = other.Priority; } - if (other.Url.Length != 0) { + if (other.HasUrl) { Url = other.Url; } if (other.HasRelayProtocol) { RelayProtocol = other.RelayProtocol; } - if (other.Foundation.Length != 0) { + if (other.HasFoundation) { Foundation = other.Foundation; } - if (other.RelatedAddress.Length != 0) { + if (other.HasRelatedAddress) { RelatedAddress = other.RelatedAddress; } - if (other.RelatedPort != 0) { + if (other.HasRelatedPort) { RelatedPort = other.RelatedPort; } - if (other.UsernameFragment.Length != 0) { + if (other.HasUsernameFragment) { UsernameFragment = other.UsernameFragment; } if (other.HasTcpType) { @@ -15266,7 +18288,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15333,7 +18359,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -15446,51 +18476,107 @@ public CertificateStats Clone() { /// Field number for the "fingerprint" field. public const int FingerprintFieldNumber = 1; - private string fingerprint_ = ""; + private readonly static string FingerprintDefaultValue = ""; + + private string fingerprint_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Fingerprint { - get { return fingerprint_; } + get { return fingerprint_ ?? FingerprintDefaultValue; } set { fingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "fingerprint" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFingerprint { + get { return fingerprint_ != null; } + } + /// Clears the value of the "fingerprint" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFingerprint() { + fingerprint_ = null; + } /// Field number for the "fingerprint_algorithm" field. public const int FingerprintAlgorithmFieldNumber = 2; - private string fingerprintAlgorithm_ = ""; + private readonly static string FingerprintAlgorithmDefaultValue = ""; + + private string fingerprintAlgorithm_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FingerprintAlgorithm { - get { return fingerprintAlgorithm_; } + get { return fingerprintAlgorithm_ ?? FingerprintAlgorithmDefaultValue; } set { fingerprintAlgorithm_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "fingerprint_algorithm" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFingerprintAlgorithm { + get { return fingerprintAlgorithm_ != null; } + } + /// Clears the value of the "fingerprint_algorithm" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFingerprintAlgorithm() { + fingerprintAlgorithm_ = null; + } /// Field number for the "base64_certificate" field. public const int Base64CertificateFieldNumber = 3; - private string base64Certificate_ = ""; + private readonly static string Base64CertificateDefaultValue = ""; + + private string base64Certificate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Base64Certificate { - get { return base64Certificate_; } + get { return base64Certificate_ ?? Base64CertificateDefaultValue; } set { base64Certificate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "base64_certificate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBase64Certificate { + get { return base64Certificate_ != null; } + } + /// Clears the value of the "base64_certificate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBase64Certificate() { + base64Certificate_ = null; + } /// Field number for the "issuer_certificate_id" field. public const int IssuerCertificateIdFieldNumber = 4; - private string issuerCertificateId_ = ""; + private readonly static string IssuerCertificateIdDefaultValue = ""; + + private string issuerCertificateId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IssuerCertificateId { - get { return issuerCertificateId_; } + get { return issuerCertificateId_ ?? IssuerCertificateIdDefaultValue; } set { issuerCertificateId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "issuer_certificate_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIssuerCertificateId { + get { return issuerCertificateId_ != null; } + } + /// Clears the value of the "issuer_certificate_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIssuerCertificateId() { + issuerCertificateId_ = null; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -15518,10 +18604,10 @@ public bool Equals(CertificateStats other) { [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 (HasFingerprint) hash ^= Fingerprint.GetHashCode(); + if (HasFingerprintAlgorithm) hash ^= FingerprintAlgorithm.GetHashCode(); + if (HasBase64Certificate) hash ^= Base64Certificate.GetHashCode(); + if (HasIssuerCertificateId) hash ^= IssuerCertificateId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -15540,19 +18626,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Fingerprint.Length != 0) { + if (HasFingerprint) { output.WriteRawTag(10); output.WriteString(Fingerprint); } - if (FingerprintAlgorithm.Length != 0) { + if (HasFingerprintAlgorithm) { output.WriteRawTag(18); output.WriteString(FingerprintAlgorithm); } - if (Base64Certificate.Length != 0) { + if (HasBase64Certificate) { output.WriteRawTag(26); output.WriteString(Base64Certificate); } - if (IssuerCertificateId.Length != 0) { + if (HasIssuerCertificateId) { output.WriteRawTag(34); output.WriteString(IssuerCertificateId); } @@ -15566,19 +18652,19 @@ 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 (Fingerprint.Length != 0) { + if (HasFingerprint) { output.WriteRawTag(10); output.WriteString(Fingerprint); } - if (FingerprintAlgorithm.Length != 0) { + if (HasFingerprintAlgorithm) { output.WriteRawTag(18); output.WriteString(FingerprintAlgorithm); } - if (Base64Certificate.Length != 0) { + if (HasBase64Certificate) { output.WriteRawTag(26); output.WriteString(Base64Certificate); } - if (IssuerCertificateId.Length != 0) { + if (HasIssuerCertificateId) { output.WriteRawTag(34); output.WriteString(IssuerCertificateId); } @@ -15592,16 +18678,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Fingerprint.Length != 0) { + if (HasFingerprint) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Fingerprint); } - if (FingerprintAlgorithm.Length != 0) { + if (HasFingerprintAlgorithm) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FingerprintAlgorithm); } - if (Base64Certificate.Length != 0) { + if (HasBase64Certificate) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Base64Certificate); } - if (IssuerCertificateId.Length != 0) { + if (HasIssuerCertificateId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(IssuerCertificateId); } if (_unknownFields != null) { @@ -15616,16 +18702,16 @@ public void MergeFrom(CertificateStats other) { if (other == null) { return; } - if (other.Fingerprint.Length != 0) { + if (other.HasFingerprint) { Fingerprint = other.Fingerprint; } - if (other.FingerprintAlgorithm.Length != 0) { + if (other.HasFingerprintAlgorithm) { FingerprintAlgorithm = other.FingerprintAlgorithm; } - if (other.Base64Certificate.Length != 0) { + if (other.HasBase64Certificate) { Base64Certificate = other.Base64Certificate; } - if (other.IssuerCertificateId.Length != 0) { + if (other.HasIssuerCertificateId) { IssuerCertificateId = other.IssuerCertificateId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -15639,7 +18725,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -15670,7 +18760,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/Track.cs b/Runtime/Scripts/Proto/Track.cs index 47ccd60..b81b56a 100644 --- a/Runtime/Scripts/Proto/Track.cs +++ b/Runtime/Scripts/Proto/Track.cs @@ -26,43 +26,42 @@ static TrackReflection() { string.Concat( "Cgt0cmFjay5wcm90bxINbGl2ZWtpdC5wcm90bxoKZTJlZS5wcm90bxoMaGFu", "ZGxlLnByb3RvGgtzdGF0cy5wcm90byI+ChdDcmVhdGVWaWRlb1RyYWNrUmVx", - "dWVzdBIMCgRuYW1lGAEgASgJEhUKDXNvdXJjZV9oYW5kbGUYAiABKAQiRAoY", - "Q3JlYXRlVmlkZW9UcmFja1Jlc3BvbnNlEigKBXRyYWNrGAEgASgLMhkubGl2", + "dWVzdBIMCgRuYW1lGAEgAigJEhUKDXNvdXJjZV9oYW5kbGUYAiACKAQiRAoY", + "Q3JlYXRlVmlkZW9UcmFja1Jlc3BvbnNlEigKBXRyYWNrGAEgAigLMhkubGl2", "ZWtpdC5wcm90by5Pd25lZFRyYWNrIj4KF0NyZWF0ZUF1ZGlvVHJhY2tSZXF1", - "ZXN0EgwKBG5hbWUYASABKAkSFQoNc291cmNlX2hhbmRsZRgCIAEoBCJEChhD", - "cmVhdGVBdWRpb1RyYWNrUmVzcG9uc2USKAoFdHJhY2sYASABKAsyGS5saXZl", + "ZXN0EgwKBG5hbWUYASACKAkSFQoNc291cmNlX2hhbmRsZRgCIAIoBCJEChhD", + "cmVhdGVBdWRpb1RyYWNrUmVzcG9uc2USKAoFdHJhY2sYASACKAsyGS5saXZl", "a2l0LnByb3RvLk93bmVkVHJhY2siJwoPR2V0U3RhdHNSZXF1ZXN0EhQKDHRy", - "YWNrX2hhbmRsZRgBIAEoBCIkChBHZXRTdGF0c1Jlc3BvbnNlEhAKCGFzeW5j", - "X2lkGAEgASgEImoKEEdldFN0YXRzQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASAB", - "KAQSEgoFZXJyb3IYAiABKAlIAIgBARImCgVzdGF0cxgDIAMoCzIXLmxpdmVr", - "aXQucHJvdG8uUnRjU3RhdHNCCAoGX2Vycm9yIgwKClRyYWNrRXZlbnQiowIK", - "FFRyYWNrUHVibGljYXRpb25JbmZvEgsKA3NpZBgBIAEoCRIMCgRuYW1lGAIg", - "ASgJEiYKBGtpbmQYAyABKA4yGC5saXZla2l0LnByb3RvLlRyYWNrS2luZBIq", - "CgZzb3VyY2UYBCABKA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMK", - "C3NpbXVsY2FzdGVkGAUgASgIEg0KBXdpZHRoGAYgASgNEg4KBmhlaWdodBgH", - "IAEoDRIRCgltaW1lX3R5cGUYCCABKAkSDQoFbXV0ZWQYCSABKAgSDgoGcmVt", - "b3RlGAogASgIEjYKD2VuY3J5cHRpb25fdHlwZRgLIAEoDjIdLmxpdmVraXQu", - "cHJvdG8uRW5jcnlwdGlvblR5cGUieQoVT3duZWRUcmFja1B1YmxpY2F0aW9u", - "Ei0KBmhhbmRsZRgBIAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k", - "bGUSMQoEaW5mbxgCIAEoCzIjLmxpdmVraXQucHJvdG8uVHJhY2tQdWJsaWNh", - "dGlvbkluZm8inwEKCVRyYWNrSW5mbxILCgNzaWQYASABKAkSDAoEbmFtZRgC", - "IAEoCRImCgRraW5kGAMgASgOMhgubGl2ZWtpdC5wcm90by5UcmFja0tpbmQS", - "MAoMc3RyZWFtX3N0YXRlGAQgASgOMhoubGl2ZWtpdC5wcm90by5TdHJlYW1T", - "dGF0ZRINCgVtdXRlZBgFIAEoCBIOCgZyZW1vdGUYBiABKAgiYwoKT3duZWRU", - "cmFjaxItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", - "SGFuZGxlEiYKBGluZm8YAiABKAsyGC5saXZla2l0LnByb3RvLlRyYWNrSW5m", - "byI7ChVMb2NhbFRyYWNrTXV0ZVJlcXVlc3QSFAoMdHJhY2tfaGFuZGxlGAEg", - "ASgEEgwKBG11dGUYAiABKAgiJwoWTG9jYWxUcmFja011dGVSZXNwb25zZRIN", - "CgVtdXRlZBgBIAEoCCJBChhFbmFibGVSZW1vdGVUcmFja1JlcXVlc3QSFAoM", - "dHJhY2tfaGFuZGxlGAEgASgEEg8KB2VuYWJsZWQYAiABKAgiLAoZRW5hYmxl", - "UmVtb3RlVHJhY2tSZXNwb25zZRIPCgdlbmFibGVkGAEgASgIKj0KCVRyYWNr", - "S2luZBIQCgxLSU5EX1VOS05PV04QABIOCgpLSU5EX0FVRElPEAESDgoKS0lO", - "RF9WSURFTxACKoEBCgtUcmFja1NvdXJjZRISCg5TT1VSQ0VfVU5LTk9XThAA", - "EhEKDVNPVVJDRV9DQU1FUkEQARIVChFTT1VSQ0VfTUlDUk9QSE9ORRACEhYK", - "ElNPVVJDRV9TQ1JFRU5TSEFSRRADEhwKGFNPVVJDRV9TQ1JFRU5TSEFSRV9B", - "VURJTxAEKkQKC1N0cmVhbVN0YXRlEhEKDVNUQVRFX1VOS05PV04QABIQCgxT", - "VEFURV9BQ1RJVkUQARIQCgxTVEFURV9QQVVTRUQQAkIQqgINTGl2ZUtpdC5Q", - "cm90b2IGcHJvdG8z")); + "YWNrX2hhbmRsZRgBIAIoBCIkChBHZXRTdGF0c1Jlc3BvbnNlEhAKCGFzeW5j", + "X2lkGAEgAigEIlsKEEdldFN0YXRzQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASAC", + "KAQSDQoFZXJyb3IYAiABKAkSJgoFc3RhdHMYAyADKAsyFy5saXZla2l0LnBy", + "b3RvLlJ0Y1N0YXRzIgwKClRyYWNrRXZlbnQiowIKFFRyYWNrUHVibGljYXRp", + "b25JbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEiYKBGtpbmQYAyAC", + "KA4yGC5saXZla2l0LnByb3RvLlRyYWNrS2luZBIqCgZzb3VyY2UYBCACKA4y", + "Gi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NpbXVsY2FzdGVkGAUg", + "AigIEg0KBXdpZHRoGAYgAigNEg4KBmhlaWdodBgHIAIoDRIRCgltaW1lX3R5", + "cGUYCCACKAkSDQoFbXV0ZWQYCSACKAgSDgoGcmVtb3RlGAogAigIEjYKD2Vu", + "Y3J5cHRpb25fdHlwZRgLIAIoDjIdLmxpdmVraXQucHJvdG8uRW5jcnlwdGlv", + "blR5cGUieQoVT3duZWRUcmFja1B1YmxpY2F0aW9uEi0KBmhhbmRsZRgBIAIo", + "CzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSMQoEaW5mbxgCIAIo", + "CzIjLmxpdmVraXQucHJvdG8uVHJhY2tQdWJsaWNhdGlvbkluZm8inwEKCVRy", + "YWNrSW5mbxILCgNzaWQYASACKAkSDAoEbmFtZRgCIAIoCRImCgRraW5kGAMg", + "AigOMhgubGl2ZWtpdC5wcm90by5UcmFja0tpbmQSMAoMc3RyZWFtX3N0YXRl", + "GAQgAigOMhoubGl2ZWtpdC5wcm90by5TdHJlYW1TdGF0ZRINCgVtdXRlZBgF", + "IAIoCBIOCgZyZW1vdGUYBiACKAgiYwoKT3duZWRUcmFjaxItCgZoYW5kbGUY", + "ASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiYKBGluZm8Y", + "AiACKAsyGC5saXZla2l0LnByb3RvLlRyYWNrSW5mbyI7ChVMb2NhbFRyYWNr", + "TXV0ZVJlcXVlc3QSFAoMdHJhY2tfaGFuZGxlGAEgAigEEgwKBG11dGUYAiAC", + "KAgiJwoWTG9jYWxUcmFja011dGVSZXNwb25zZRINCgVtdXRlZBgBIAIoCCJB", + "ChhFbmFibGVSZW1vdGVUcmFja1JlcXVlc3QSFAoMdHJhY2tfaGFuZGxlGAEg", + "AigEEg8KB2VuYWJsZWQYAiACKAgiLAoZRW5hYmxlUmVtb3RlVHJhY2tSZXNw", + "b25zZRIPCgdlbmFibGVkGAEgAigIKj0KCVRyYWNrS2luZBIQCgxLSU5EX1VO", + "S05PV04QABIOCgpLSU5EX0FVRElPEAESDgoKS0lORF9WSURFTxACKoEBCgtU", + "cmFja1NvdXJjZRISCg5TT1VSQ0VfVU5LTk9XThAAEhEKDVNPVVJDRV9DQU1F", + "UkEQARIVChFTT1VSQ0VfTUlDUk9QSE9ORRACEhYKElNPVVJDRV9TQ1JFRU5T", + "SEFSRRADEhwKGFNPVVJDRV9TQ1JFRU5TSEFSRV9BVURJTxAEKkQKC1N0cmVh", + "bVN0YXRlEhEKDVNUQVRFX1VOS05PV04QABIQCgxTVEFURV9BQ1RJVkUQARIQ", + "CgxTVEFURV9QQVVTRUQQAkIQqgINTGl2ZUtpdC5Qcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.E2EeReflection.Descriptor, global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.StatsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.TrackKind), typeof(global::LiveKit.Proto.TrackSource), typeof(global::LiveKit.Proto.StreamState), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -72,7 +71,7 @@ static TrackReflection() { 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.GetStatsCallback), global::LiveKit.Proto.GetStatsCallback.Parser, new[]{ "AsyncId", "Error", "Stats" }, null, 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", "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), @@ -122,6 +121,7 @@ public sealed partial class CreateVideoTrackRequest : pb::IMessage _parser = new pb::MessageParser(() => new CreateVideoTrackRequest()); 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; } } @@ -149,6 +149,7 @@ public CreateVideoTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateVideoTrackRequest(CreateVideoTrackRequest other) : this() { + _hasBits0 = other._hasBits0; name_ = other.name_; sourceHandle_ = other.sourceHandle_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -162,27 +163,56 @@ public CreateVideoTrackRequest Clone() { /// Field number for the "name" field. public const int NameFieldNumber = 1; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 2; + private readonly static ulong SourceHandleDefaultValue = 0UL; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong SourceHandle { - get { return sourceHandle_; } + get { if ((_hasBits0 & 1) != 0) { return sourceHandle_; } else { return SourceHandleDefaultValue; } } set { + _hasBits0 |= 1; sourceHandle_ = value; } } + /// Gets whether the "source_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSourceHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceHandle() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -208,8 +238,8 @@ public bool Equals(CreateVideoTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSourceHandle) hash ^= SourceHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -228,11 +258,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(10); output.WriteString(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(16); output.WriteUInt64(SourceHandle); } @@ -246,11 +276,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(10); output.WriteString(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(16); output.WriteUInt64(SourceHandle); } @@ -264,10 +294,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (_unknownFields != null) { @@ -282,10 +312,10 @@ public void MergeFrom(CreateVideoTrackRequest other) { if (other == null) { return; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.SourceHandle != 0UL) { + if (other.HasSourceHandle) { SourceHandle = other.SourceHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -299,7 +329,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -322,7 +356,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -500,7 +538,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -522,7 +564,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -551,6 +597,7 @@ public sealed partial class CreateAudioTrackRequest : pb::IMessage _parser = new pb::MessageParser(() => new CreateAudioTrackRequest()); 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; } } @@ -578,6 +625,7 @@ public CreateAudioTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateAudioTrackRequest(CreateAudioTrackRequest other) : this() { + _hasBits0 = other._hasBits0; name_ = other.name_; sourceHandle_ = other.sourceHandle_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -591,27 +639,56 @@ public CreateAudioTrackRequest Clone() { /// Field number for the "name" field. public const int NameFieldNumber = 1; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 2; + private readonly static ulong SourceHandleDefaultValue = 0UL; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong SourceHandle { - get { return sourceHandle_; } + get { if ((_hasBits0 & 1) != 0) { return sourceHandle_; } else { return SourceHandleDefaultValue; } } set { + _hasBits0 |= 1; sourceHandle_ = value; } } + /// Gets whether the "source_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSourceHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceHandle() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -637,8 +714,8 @@ 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 (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasSourceHandle) hash ^= SourceHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -657,11 +734,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(10); output.WriteString(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(16); output.WriteUInt64(SourceHandle); } @@ -675,11 +752,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(10); output.WriteString(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(16); output.WriteUInt64(SourceHandle); } @@ -693,10 +770,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (SourceHandle != 0UL) { + if (HasSourceHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (_unknownFields != null) { @@ -711,10 +788,10 @@ public void MergeFrom(CreateAudioTrackRequest other) { if (other == null) { return; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.SourceHandle != 0UL) { + if (other.HasSourceHandle) { SourceHandle = other.SourceHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -728,7 +805,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -751,7 +832,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -929,7 +1014,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -951,7 +1040,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -977,6 +1070,7 @@ public sealed partial class GetStatsRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsRequest()); 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; } } @@ -1004,6 +1098,7 @@ public GetStatsRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetStatsRequest(GetStatsRequest other) : this() { + _hasBits0 = other._hasBits0; trackHandle_ = other.trackHandle_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1016,15 +1111,30 @@ public GetStatsRequest Clone() { /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 1; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 1) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 1; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1049,7 +1159,7 @@ public bool Equals(GetStatsRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1068,7 +1178,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } @@ -1082,7 +1192,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 (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } @@ -1096,7 +1206,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } if (_unknownFields != null) { @@ -1111,7 +1221,7 @@ public void MergeFrom(GetStatsRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1125,7 +1235,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1144,7 +1258,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1167,6 +1285,7 @@ public sealed partial class GetStatsResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsResponse()); 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; } } @@ -1194,6 +1313,7 @@ public GetStatsResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetStatsResponse(GetStatsResponse other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1206,15 +1326,30 @@ public GetStatsResponse Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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)] @@ -1239,7 +1374,7 @@ public bool Equals(GetStatsResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1258,7 +1393,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1272,7 +1407,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1286,7 +1421,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (_unknownFields != null) { @@ -1301,7 +1436,7 @@ public void MergeFrom(GetStatsResponse other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1315,7 +1450,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1334,7 +1473,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1357,6 +1500,7 @@ public sealed partial class GetStatsCallback : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStatsCallback()); 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; } } @@ -1384,6 +1528,7 @@ public GetStatsCallback() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetStatsCallback(GetStatsCallback other) : this() { + _hasBits0 = other._hasBits0; asyncId_ = other.asyncId_; error_ = other.error_; stats_ = other.stats_.Clone(); @@ -1398,15 +1543,30 @@ public GetStatsCallback Clone() { /// Field number for the "async_id" field. public const int AsyncIdFieldNumber = 1; + private readonly static ulong AsyncIdDefaultValue = 0UL; + private ulong asyncId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong AsyncId { - get { return 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; + } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; @@ -1470,7 +1630,7 @@ public bool Equals(GetStatsCallback other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (AsyncId != 0UL) hash ^= AsyncId.GetHashCode(); + if (HasAsyncId) hash ^= AsyncId.GetHashCode(); if (HasError) hash ^= Error.GetHashCode(); hash ^= stats_.GetHashCode(); if (_unknownFields != null) { @@ -1491,7 +1651,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (AsyncId != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1510,7 +1670,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 != 0UL) { + if (HasAsyncId) { output.WriteRawTag(8); output.WriteUInt64(AsyncId); } @@ -1529,7 +1689,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (AsyncId != 0UL) { + if (HasAsyncId) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AsyncId); } if (HasError) { @@ -1548,7 +1708,7 @@ public void MergeFrom(GetStatsCallback other) { if (other == null) { return; } - if (other.AsyncId != 0UL) { + if (other.HasAsyncId) { AsyncId = other.AsyncId; } if (other.HasError) { @@ -1566,7 +1726,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1593,7 +1757,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1743,7 +1911,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1758,7 +1930,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1777,6 +1953,7 @@ public sealed partial class TrackPublicationInfo : pb::IMessage _parser = new pb::MessageParser(() => new TrackPublicationInfo()); 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; } } @@ -1804,6 +1981,7 @@ public TrackPublicationInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TrackPublicationInfo(TrackPublicationInfo other) : this() { + _hasBits0 = other._hasBits0; sid_ = other.sid_; name_ = other.name_; kind_ = other.kind_; @@ -1826,135 +2004,297 @@ public TrackPublicationInfo Clone() { /// Field number for the "sid" field. public const int SidFieldNumber = 1; - private string sid_ = ""; + private readonly static string SidDefaultValue = ""; + + private string sid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Sid { - get { return sid_; } + get { return sid_ ?? SidDefaultValue; } set { sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; + } /// Field number for the "name" field. public const int NameFieldNumber = 2; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } /// Field number for the "kind" field. public const int KindFieldNumber = 3; - private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; + private readonly static global::LiveKit.Proto.TrackKind KindDefaultValue = global::LiveKit.Proto.TrackKind.KindUnknown; + + private global::LiveKit.Proto.TrackKind kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.TrackKind Kind { - get { return kind_; } + get { if ((_hasBits0 & 1) != 0) { return kind_; } else { return KindDefaultValue; } } set { + _hasBits0 |= 1; kind_ = value; } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + _hasBits0 &= ~1; + } /// Field number for the "source" field. public const int SourceFieldNumber = 4; - private global::LiveKit.Proto.TrackSource source_ = global::LiveKit.Proto.TrackSource.SourceUnknown; + private readonly static global::LiveKit.Proto.TrackSource SourceDefaultValue = global::LiveKit.Proto.TrackSource.SourceUnknown; + + private global::LiveKit.Proto.TrackSource source_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.TrackSource Source { - get { return source_; } + get { if ((_hasBits0 & 2) != 0) { return source_; } else { return SourceDefaultValue; } } set { + _hasBits0 |= 2; source_ = value; } } + /// Gets whether the "source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSource { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSource() { + _hasBits0 &= ~2; + } /// Field number for the "simulcasted" field. public const int SimulcastedFieldNumber = 5; + private readonly static bool SimulcastedDefaultValue = false; + private bool simulcasted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Simulcasted { - get { return simulcasted_; } + get { if ((_hasBits0 & 4) != 0) { return simulcasted_; } else { return SimulcastedDefaultValue; } } set { + _hasBits0 |= 4; simulcasted_ = value; } } + /// Gets whether the "simulcasted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSimulcasted { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "simulcasted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSimulcasted() { + _hasBits0 &= ~4; + } /// Field number for the "width" field. public const int WidthFieldNumber = 6; + private readonly static uint WidthDefaultValue = 0; + private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Width { - get { return width_; } + get { if ((_hasBits0 & 8) != 0) { return width_; } else { return WidthDefaultValue; } } set { + _hasBits0 |= 8; width_ = value; } } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~8; + } /// Field number for the "height" field. public const int HeightFieldNumber = 7; + private readonly static uint HeightDefaultValue = 0; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Height { - get { return height_; } + get { if ((_hasBits0 & 16) != 0) { return height_; } else { return HeightDefaultValue; } } set { + _hasBits0 |= 16; height_ = value; } } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~16; + } /// Field number for the "mime_type" field. public const int MimeTypeFieldNumber = 8; - private string mimeType_ = ""; + private readonly static string MimeTypeDefaultValue = ""; + + private string mimeType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MimeType { - get { return mimeType_; } + get { return mimeType_ ?? MimeTypeDefaultValue; } set { mimeType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "mime_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMimeType { + get { return mimeType_ != null; } + } + /// Clears the value of the "mime_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMimeType() { + mimeType_ = null; + } /// Field number for the "muted" field. public const int MutedFieldNumber = 9; + private readonly static bool MutedDefaultValue = false; + private bool muted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Muted { - get { return muted_; } + get { if ((_hasBits0 & 32) != 0) { return muted_; } else { return MutedDefaultValue; } } set { + _hasBits0 |= 32; muted_ = value; } } + /// Gets whether the "muted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMuted { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "muted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMuted() { + _hasBits0 &= ~32; + } /// Field number for the "remote" field. public const int RemoteFieldNumber = 10; + private readonly static bool RemoteDefaultValue = false; + private bool remote_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Remote { - get { return remote_; } + get { if ((_hasBits0 & 64) != 0) { return remote_; } else { return RemoteDefaultValue; } } set { + _hasBits0 |= 64; remote_ = value; } } + /// Gets whether the "remote" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemote { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "remote" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemote() { + _hasBits0 &= ~64; + } /// Field number for the "encryption_type" field. public const int EncryptionTypeFieldNumber = 11; - private global::LiveKit.Proto.EncryptionType encryptionType_ = global::LiveKit.Proto.EncryptionType.None; + private readonly static global::LiveKit.Proto.EncryptionType EncryptionTypeDefaultValue = global::LiveKit.Proto.EncryptionType.None; + + private global::LiveKit.Proto.EncryptionType encryptionType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.EncryptionType EncryptionType { - get { return encryptionType_; } + get { if ((_hasBits0 & 128) != 0) { return encryptionType_; } else { return EncryptionTypeDefaultValue; } } set { + _hasBits0 |= 128; encryptionType_ = value; } } + /// Gets whether the "encryption_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEncryptionType { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "encryption_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEncryptionType() { + _hasBits0 &= ~128; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1989,17 +2329,17 @@ public bool Equals(TrackPublicationInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) hash ^= Kind.GetHashCode(); - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= Source.GetHashCode(); - if (Simulcasted != false) hash ^= Simulcasted.GetHashCode(); - if (Width != 0) hash ^= Width.GetHashCode(); - if (Height != 0) hash ^= Height.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 (HasSid) hash ^= Sid.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); + if (HasSource) hash ^= Source.GetHashCode(); + if (HasSimulcasted) hash ^= Simulcasted.GetHashCode(); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasMimeType) hash ^= MimeType.GetHashCode(); + if (HasMuted) hash ^= Muted.GetHashCode(); + if (HasRemote) hash ^= Remote.GetHashCode(); + if (HasEncryptionType) hash ^= EncryptionType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2018,47 +2358,47 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { output.WriteRawTag(24); output.WriteEnum((int) Kind); } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasSource) { output.WriteRawTag(32); output.WriteEnum((int) Source); } - if (Simulcasted != false) { + if (HasSimulcasted) { output.WriteRawTag(40); output.WriteBool(Simulcasted); } - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(48); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(56); output.WriteUInt32(Height); } - if (MimeType.Length != 0) { + if (HasMimeType) { output.WriteRawTag(66); output.WriteString(MimeType); } - if (Muted != false) { + if (HasMuted) { output.WriteRawTag(72); output.WriteBool(Muted); } - if (Remote != false) { + if (HasRemote) { output.WriteRawTag(80); output.WriteBool(Remote); } - if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { output.WriteRawTag(88); output.WriteEnum((int) EncryptionType); } @@ -2072,47 +2412,47 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { output.WriteRawTag(24); output.WriteEnum((int) Kind); } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasSource) { output.WriteRawTag(32); output.WriteEnum((int) Source); } - if (Simulcasted != false) { + if (HasSimulcasted) { output.WriteRawTag(40); output.WriteBool(Simulcasted); } - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(48); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(56); output.WriteUInt32(Height); } - if (MimeType.Length != 0) { + if (HasMimeType) { output.WriteRawTag(66); output.WriteString(MimeType); } - if (Muted != false) { + if (HasMuted) { output.WriteRawTag(72); output.WriteBool(Muted); } - if (Remote != false) { + if (HasRemote) { output.WriteRawTag(80); output.WriteBool(Remote); } - if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { output.WriteRawTag(88); output.WriteEnum((int) EncryptionType); } @@ -2126,37 +2466,37 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { + if (HasSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } - if (Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasSource) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); } - if (Simulcasted != false) { + if (HasSimulcasted) { size += 1 + 1; } - if (Width != 0) { + if (HasWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Height != 0) { + if (HasHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } - if (MimeType.Length != 0) { + if (HasMimeType) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MimeType); } - if (Muted != false) { + if (HasMuted) { size += 1 + 1; } - if (Remote != false) { + if (HasRemote) { size += 1 + 1; } - if (EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (HasEncryptionType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType); } if (_unknownFields != null) { @@ -2171,37 +2511,37 @@ public void MergeFrom(TrackPublicationInfo other) { if (other == null) { return; } - if (other.Sid.Length != 0) { + if (other.HasSid) { Sid = other.Sid; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (other.HasKind) { Kind = other.Kind; } - if (other.Source != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (other.HasSource) { Source = other.Source; } - if (other.Simulcasted != false) { + if (other.HasSimulcasted) { Simulcasted = other.Simulcasted; } - if (other.Width != 0) { + if (other.HasWidth) { Width = other.Width; } - if (other.Height != 0) { + if (other.HasHeight) { Height = other.Height; } - if (other.MimeType.Length != 0) { + if (other.HasMimeType) { MimeType = other.MimeType; } - if (other.Muted != false) { + if (other.HasMuted) { Muted = other.Muted; } - if (other.Remote != false) { + if (other.HasRemote) { Remote = other.Remote; } - if (other.EncryptionType != global::LiveKit.Proto.EncryptionType.None) { + if (other.HasEncryptionType) { EncryptionType = other.EncryptionType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2215,7 +2555,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2274,7 +2618,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2520,7 +2868,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2549,7 +2901,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2582,6 +2938,7 @@ public sealed partial class TrackInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackInfo()); 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; } } @@ -2609,6 +2966,7 @@ public TrackInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TrackInfo(TrackInfo other) : this() { + _hasBits0 = other._hasBits0; sid_ = other.sid_; name_ = other.name_; kind_ = other.kind_; @@ -2626,75 +2984,163 @@ public TrackInfo Clone() { /// Field number for the "sid" field. public const int SidFieldNumber = 1; - private string sid_ = ""; + private readonly static string SidDefaultValue = ""; + + private string sid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Sid { - get { return sid_; } + get { return sid_ ?? SidDefaultValue; } set { sid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "sid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSid { + get { return sid_ != null; } + } + /// Clears the value of the "sid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSid() { + sid_ = null; + } /// Field number for the "name" field. public const int NameFieldNumber = 2; - private string name_ = ""; + private readonly static string NameDefaultValue = ""; + + private string name_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { - get { return name_; } + get { return name_ ?? NameDefaultValue; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } /// Field number for the "kind" field. public const int KindFieldNumber = 3; - private global::LiveKit.Proto.TrackKind kind_ = global::LiveKit.Proto.TrackKind.KindUnknown; + private readonly static global::LiveKit.Proto.TrackKind KindDefaultValue = global::LiveKit.Proto.TrackKind.KindUnknown; + + private global::LiveKit.Proto.TrackKind kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.TrackKind Kind { - get { return kind_; } + get { if ((_hasBits0 & 1) != 0) { return kind_; } else { return KindDefaultValue; } } set { + _hasBits0 |= 1; kind_ = value; } } + /// Gets whether the "kind" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKind { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "kind" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKind() { + _hasBits0 &= ~1; + } /// Field number for the "stream_state" field. public const int StreamStateFieldNumber = 4; - private global::LiveKit.Proto.StreamState streamState_ = global::LiveKit.Proto.StreamState.StateUnknown; + private readonly static global::LiveKit.Proto.StreamState StreamStateDefaultValue = global::LiveKit.Proto.StreamState.StateUnknown; + + private global::LiveKit.Proto.StreamState streamState_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.StreamState StreamState { - get { return streamState_; } + get { if ((_hasBits0 & 2) != 0) { return streamState_; } else { return StreamStateDefaultValue; } } set { + _hasBits0 |= 2; streamState_ = value; } } + /// Gets whether the "stream_state" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStreamState { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stream_state" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStreamState() { + _hasBits0 &= ~2; + } /// Field number for the "muted" field. public const int MutedFieldNumber = 5; + private readonly static bool MutedDefaultValue = false; + private bool muted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Muted { - get { return muted_; } + get { if ((_hasBits0 & 4) != 0) { return muted_; } else { return MutedDefaultValue; } } set { + _hasBits0 |= 4; muted_ = value; } } + /// Gets whether the "muted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMuted { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "muted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMuted() { + _hasBits0 &= ~4; + } /// Field number for the "remote" field. public const int RemoteFieldNumber = 6; + private readonly static bool RemoteDefaultValue = false; + private bool remote_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Remote { - get { return remote_; } + get { if ((_hasBits0 & 8) != 0) { return remote_; } else { return RemoteDefaultValue; } } set { + _hasBits0 |= 8; remote_ = value; } } + /// Gets whether the "remote" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRemote { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "remote" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRemote() { + _hasBits0 &= ~8; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2724,12 +3170,12 @@ public bool Equals(TrackInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sid.Length != 0) hash ^= Sid.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) hash ^= Kind.GetHashCode(); - if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) hash ^= StreamState.GetHashCode(); - if (Muted != false) hash ^= Muted.GetHashCode(); - if (Remote != false) hash ^= Remote.GetHashCode(); + if (HasSid) hash ^= Sid.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasKind) hash ^= Kind.GetHashCode(); + if (HasStreamState) hash ^= StreamState.GetHashCode(); + if (HasMuted) hash ^= Muted.GetHashCode(); + if (HasRemote) hash ^= Remote.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2748,27 +3194,27 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { output.WriteRawTag(24); output.WriteEnum((int) Kind); } - if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { + if (HasStreamState) { output.WriteRawTag(32); output.WriteEnum((int) StreamState); } - if (Muted != false) { + if (HasMuted) { output.WriteRawTag(40); output.WriteBool(Muted); } - if (Remote != false) { + if (HasRemote) { output.WriteRawTag(48); output.WriteBool(Remote); } @@ -2782,27 +3228,27 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Sid.Length != 0) { + if (HasSid) { output.WriteRawTag(10); output.WriteString(Sid); } - if (Name.Length != 0) { + if (HasName) { output.WriteRawTag(18); output.WriteString(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { output.WriteRawTag(24); output.WriteEnum((int) Kind); } - if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { + if (HasStreamState) { output.WriteRawTag(32); output.WriteEnum((int) StreamState); } - if (Muted != false) { + if (HasMuted) { output.WriteRawTag(40); output.WriteBool(Muted); } - if (Remote != false) { + if (HasRemote) { output.WriteRawTag(48); output.WriteBool(Remote); } @@ -2816,22 +3262,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sid.Length != 0) { + if (HasSid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Sid); } - if (Name.Length != 0) { + if (HasName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } - if (StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { + if (HasStreamState) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StreamState); } - if (Muted != false) { + if (HasMuted) { size += 1 + 1; } - if (Remote != false) { + if (HasRemote) { size += 1 + 1; } if (_unknownFields != null) { @@ -2846,22 +3292,22 @@ public void MergeFrom(TrackInfo other) { if (other == null) { return; } - if (other.Sid.Length != 0) { + if (other.HasSid) { Sid = other.Sid; } - if (other.Name.Length != 0) { + if (other.HasName) { Name = other.Name; } - if (other.Kind != global::LiveKit.Proto.TrackKind.KindUnknown) { + if (other.HasKind) { Kind = other.Kind; } - if (other.StreamState != global::LiveKit.Proto.StreamState.StateUnknown) { + if (other.HasStreamState) { StreamState = other.StreamState; } - if (other.Muted != false) { + if (other.HasMuted) { Muted = other.Muted; } - if (other.Remote != false) { + if (other.HasRemote) { Remote = other.Remote; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2875,7 +3321,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2914,7 +3364,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3140,7 +3594,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3169,7 +3627,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3205,6 +3667,7 @@ public sealed partial class LocalTrackMuteRequest : pb::IMessage _parser = new pb::MessageParser(() => new LocalTrackMuteRequest()); 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; } } @@ -3232,6 +3695,7 @@ public LocalTrackMuteRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LocalTrackMuteRequest(LocalTrackMuteRequest other) : this() { + _hasBits0 = other._hasBits0; trackHandle_ = other.trackHandle_; mute_ = other.mute_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3245,27 +3709,57 @@ public LocalTrackMuteRequest Clone() { /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 1; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 1) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 1; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~1; + } /// Field number for the "mute" field. public const int MuteFieldNumber = 2; + private readonly static bool MuteDefaultValue = false; + private bool mute_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Mute { - get { return mute_; } + get { if ((_hasBits0 & 2) != 0) { return mute_; } else { return MuteDefaultValue; } } set { + _hasBits0 |= 2; mute_ = value; } } + /// Gets whether the "mute" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMute { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "mute" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMute() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3291,8 +3785,8 @@ public bool Equals(LocalTrackMuteRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); - if (Mute != false) hash ^= Mute.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); + if (HasMute) hash ^= Mute.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3311,11 +3805,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Mute != false) { + if (HasMute) { output.WriteRawTag(16); output.WriteBool(Mute); } @@ -3329,11 +3823,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Mute != false) { + if (HasMute) { output.WriteRawTag(16); output.WriteBool(Mute); } @@ -3347,10 +3841,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } - if (Mute != false) { + if (HasMute) { size += 1 + 1; } if (_unknownFields != null) { @@ -3365,10 +3859,10 @@ public void MergeFrom(LocalTrackMuteRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } - if (other.Mute != false) { + if (other.HasMute) { Mute = other.Mute; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3382,7 +3876,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3405,7 +3903,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3432,6 +3934,7 @@ public sealed partial class LocalTrackMuteResponse : pb::IMessage _parser = new pb::MessageParser(() => new LocalTrackMuteResponse()); 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; } } @@ -3459,6 +3962,7 @@ public LocalTrackMuteResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LocalTrackMuteResponse(LocalTrackMuteResponse other) : this() { + _hasBits0 = other._hasBits0; muted_ = other.muted_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3471,15 +3975,30 @@ public LocalTrackMuteResponse Clone() { /// Field number for the "muted" field. public const int MutedFieldNumber = 1; + private readonly static bool MutedDefaultValue = false; + private bool muted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Muted { - get { return muted_; } + get { if ((_hasBits0 & 1) != 0) { return muted_; } else { return MutedDefaultValue; } } set { + _hasBits0 |= 1; muted_ = value; } } + /// Gets whether the "muted" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMuted { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "muted" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMuted() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3504,7 +4023,7 @@ public bool Equals(LocalTrackMuteResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Muted != false) hash ^= Muted.GetHashCode(); + if (HasMuted) hash ^= Muted.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3523,7 +4042,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Muted != false) { + if (HasMuted) { output.WriteRawTag(8); output.WriteBool(Muted); } @@ -3537,7 +4056,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 (Muted != false) { + if (HasMuted) { output.WriteRawTag(8); output.WriteBool(Muted); } @@ -3551,7 +4070,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Muted != false) { + if (HasMuted) { size += 1 + 1; } if (_unknownFields != null) { @@ -3566,7 +4085,7 @@ public void MergeFrom(LocalTrackMuteResponse other) { if (other == null) { return; } - if (other.Muted != false) { + if (other.HasMuted) { Muted = other.Muted; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3580,7 +4099,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3599,7 +4122,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3625,6 +4152,7 @@ public sealed partial class EnableRemoteTrackRequest : pb::IMessage _parser = new pb::MessageParser(() => new EnableRemoteTrackRequest()); 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; } } @@ -3652,6 +4180,7 @@ public EnableRemoteTrackRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnableRemoteTrackRequest(EnableRemoteTrackRequest other) : this() { + _hasBits0 = other._hasBits0; trackHandle_ = other.trackHandle_; enabled_ = other.enabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3665,27 +4194,57 @@ public EnableRemoteTrackRequest Clone() { /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 1; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 1) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 1; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~1; + } /// Field number for the "enabled" field. public const int EnabledFieldNumber = 2; + private readonly static bool EnabledDefaultValue = false; + private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { - get { return enabled_; } + get { if ((_hasBits0 & 2) != 0) { return enabled_; } else { return EnabledDefaultValue; } } set { + _hasBits0 |= 2; enabled_ = value; } } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3711,8 +4270,8 @@ public bool Equals(EnableRemoteTrackRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); - if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3731,11 +4290,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(16); output.WriteBool(Enabled); } @@ -3749,11 +4308,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(16); output.WriteBool(Enabled); } @@ -3767,10 +4326,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } - if (Enabled != false) { + if (HasEnabled) { size += 1 + 1; } if (_unknownFields != null) { @@ -3785,10 +4344,10 @@ public void MergeFrom(EnableRemoteTrackRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } - if (other.Enabled != false) { + if (other.HasEnabled) { Enabled = other.Enabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3802,7 +4361,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3825,7 +4388,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3852,6 +4419,7 @@ public sealed partial class EnableRemoteTrackResponse : pb::IMessage _parser = new pb::MessageParser(() => new EnableRemoteTrackResponse()); 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; } } @@ -3879,6 +4447,7 @@ public EnableRemoteTrackResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EnableRemoteTrackResponse(EnableRemoteTrackResponse other) : this() { + _hasBits0 = other._hasBits0; enabled_ = other.enabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3891,15 +4460,30 @@ public EnableRemoteTrackResponse Clone() { /// Field number for the "enabled" field. public const int EnabledFieldNumber = 1; + private readonly static bool EnabledDefaultValue = false; + private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Enabled { - get { return enabled_; } + get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return EnabledDefaultValue; } } set { + _hasBits0 |= 1; enabled_ = value; } } + /// Gets whether the "enabled" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEnabled { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "enabled" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEnabled() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3924,7 +4508,7 @@ public bool Equals(EnableRemoteTrackResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (HasEnabled) hash ^= Enabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3943,7 +4527,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(8); output.WriteBool(Enabled); } @@ -3957,7 +4541,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 (Enabled != false) { + if (HasEnabled) { output.WriteRawTag(8); output.WriteBool(Enabled); } @@ -3971,7 +4555,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Enabled != false) { + if (HasEnabled) { size += 1 + 1; } if (_unknownFields != null) { @@ -3986,7 +4570,7 @@ public void MergeFrom(EnableRemoteTrackResponse other) { if (other == null) { return; } - if (other.Enabled != false) { + if (other.HasEnabled) { Enabled = other.Enabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4000,7 +4584,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4019,7 +4607,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Proto/VideoFrame.cs b/Runtime/Scripts/Proto/VideoFrame.cs index 8cbd0f1..631693e 100644 --- a/Runtime/Scripts/Proto/VideoFrame.cs +++ b/Runtime/Scripts/Proto/VideoFrame.cs @@ -25,84 +25,83 @@ static VideoFrameReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChF2aWRlb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy", - "b3RvGgt0cmFjay5wcm90byK1AQoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQK", - "DHRyYWNrX2hhbmRsZRgBIAEoBBIsCgR0eXBlGAIgASgOMh4ubGl2ZWtpdC5w", - "cm90by5WaWRlb1N0cmVhbVR5cGUSMwoGZm9ybWF0GAMgASgOMh4ubGl2ZWtp", - "dC5wcm90by5WaWRlb0J1ZmZlclR5cGVIAIgBARIYChBub3JtYWxpemVfc3Ry", - "aWRlGAQgASgIQgkKB19mb3JtYXQiSQoWTmV3VmlkZW9TdHJlYW1SZXNwb25z", - "ZRIvCgZzdHJlYW0YASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlkZW9T", - "dHJlYW0i+QEKIVZpZGVvU3RyZWFtRnJvbVBhcnRpY2lwYW50UmVxdWVzdBIa", - "ChJwYXJ0aWNpcGFudF9oYW5kbGUYASABKAQSLAoEdHlwZRgCIAEoDjIeLmxp", - "dmVraXQucHJvdG8uVmlkZW9TdHJlYW1UeXBlEjAKDHRyYWNrX3NvdXJjZRgD", - "IAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tTb3VyY2USMwoGZm9ybWF0GAQg", - "ASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGVIAIgBARIYChBu", - "b3JtYWxpemVfc3RyaWRlGAUgASgIQgkKB19mb3JtYXQiVQoiVmlkZW9TdHJl", - "YW1Gcm9tUGFydGljaXBhbnRSZXNwb25zZRIvCgZzdHJlYW0YASABKAsyHy5s", - "aXZla2l0LnByb3RvLk93bmVkVmlkZW9TdHJlYW0ifwoVTmV3VmlkZW9Tb3Vy", - "Y2VSZXF1ZXN0EiwKBHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZpZGVv", - "U291cmNlVHlwZRI4CgpyZXNvbHV0aW9uGAIgASgLMiQubGl2ZWtpdC5wcm90", - "by5WaWRlb1NvdXJjZVJlc29sdXRpb24iSQoWTmV3VmlkZW9Tb3VyY2VSZXNw", - "b25zZRIvCgZzb3VyY2UYASABKAsyHy5saXZla2l0LnByb3RvLk93bmVkVmlk", - "ZW9Tb3VyY2UipwEKGENhcHR1cmVWaWRlb0ZyYW1lUmVxdWVzdBIVCg1zb3Vy", - "Y2VfaGFuZGxlGAEgASgEEi4KBmJ1ZmZlchgCIAEoCzIeLmxpdmVraXQucHJv", - "dG8uVmlkZW9CdWZmZXJJbmZvEhQKDHRpbWVzdGFtcF91cxgDIAEoAxIuCghy", - "b3RhdGlvbhgEIAEoDjIcLmxpdmVraXQucHJvdG8uVmlkZW9Sb3RhdGlvbiIb", - "ChlDYXB0dXJlVmlkZW9GcmFtZVJlc3BvbnNlIocBChNWaWRlb0NvbnZlcnRS", - "ZXF1ZXN0Eg4KBmZsaXBfeRgBIAEoCBIuCgZidWZmZXIYAiABKAsyHi5saXZl", - "a2l0LnByb3RvLlZpZGVvQnVmZmVySW5mbxIwCghkc3RfdHlwZRgDIAEoDjIe", - "LmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJUeXBlImUKFFZpZGVvQ29udmVy", - "dFJlc3BvbnNlEhIKBWVycm9yGAEgASgJSACIAQESLwoGYnVmZmVyGAIgASgL", - "Mh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvQnVmZmVyQggKBl9lcnJvciJE", - "Cg9WaWRlb1Jlc29sdXRpb24SDQoFd2lkdGgYASABKA0SDgoGaGVpZ2h0GAIg", - "ASgNEhIKCmZyYW1lX3JhdGUYAyABKAEigwIKD1ZpZGVvQnVmZmVySW5mbxIs", - "CgR0eXBlGAEgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGUS", - "DQoFd2lkdGgYAiABKA0SDgoGaGVpZ2h0GAMgASgNEhAKCGRhdGFfcHRyGAQg", - "ASgEEg4KBnN0cmlkZRgGIAEoDRJACgpjb21wb25lbnRzGAcgAygLMiwubGl2", - "ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8uQ29tcG9uZW50SW5mbxo/Cg1D", - "b21wb25lbnRJbmZvEhAKCGRhdGFfcHRyGAEgASgEEg4KBnN0cmlkZRgCIAEo", - "DRIMCgRzaXplGAMgASgNIm8KEE93bmVkVmlkZW9CdWZmZXISLQoGaGFuZGxl", - "GAEgASgLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZv", - "GAIgASgLMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8iPwoPVmlk", - "ZW9TdHJlYW1JbmZvEiwKBHR5cGUYASABKA4yHi5saXZla2l0LnByb3RvLlZp", - "ZGVvU3RyZWFtVHlwZSJvChBPd25lZFZpZGVvU3RyZWFtEi0KBmhhbmRsZRgB", - "IAEoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgC", - "IAEoCzIeLmxpdmVraXQucHJvdG8uVmlkZW9TdHJlYW1JbmZvIp8BChBWaWRl", - "b1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUYASABKAQSOwoOZnJhbWVf", - "cmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3RvLlZpZGVvRnJhbWVSZWNl", - "aXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQucHJvdG8uVmlkZW9TdHJl", - "YW1FT1NIAEIJCgdtZXNzYWdlIosBChJWaWRlb0ZyYW1lUmVjZWl2ZWQSLwoG", - "YnVmZmVyGAEgASgLMh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvQnVmZmVy", - "EhQKDHRpbWVzdGFtcF91cxgCIAEoAxIuCghyb3RhdGlvbhgDIAEoDjIcLmxp", - "dmVraXQucHJvdG8uVmlkZW9Sb3RhdGlvbiIQCg5WaWRlb1N0cmVhbUVPUyI2", - "ChVWaWRlb1NvdXJjZVJlc29sdXRpb24SDQoFd2lkdGgYASABKA0SDgoGaGVp", - "Z2h0GAIgASgNIj8KD1ZpZGVvU291cmNlSW5mbxIsCgR0eXBlGAEgASgOMh4u", - "bGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVR5cGUibwoQT3duZWRWaWRlb1Nv", - "dXJjZRItCgZoYW5kbGUYASABKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk", - "SGFuZGxlEiwKBGluZm8YAiABKAsyHi5saXZla2l0LnByb3RvLlZpZGVvU291", - "cmNlSW5mbyoxCgpWaWRlb0NvZGVjEgcKA1ZQOBAAEggKBEgyNjQQARIHCgNB", - "VjEQAhIHCgNWUDkQAypsCg1WaWRlb1JvdGF0aW9uEhQKEFZJREVPX1JPVEFU", - "SU9OXzAQABIVChFWSURFT19ST1RBVElPTl85MBABEhYKElZJREVPX1JPVEFU", - "SU9OXzE4MBACEhYKElZJREVPX1JPVEFUSU9OXzI3MBADKoEBCg9WaWRlb0J1", - "ZmZlclR5cGUSCAoEUkdCQRAAEggKBEFCR1IQARIICgRBUkdCEAISCAoEQkdS", - "QRADEgkKBVJHQjI0EAQSCAoESTQyMBAFEgkKBUk0MjBBEAYSCAoESTQyMhAH", - "EggKBEk0NDQQCBIICgRJMDEwEAkSCAoETlYxMhAKKlkKD1ZpZGVvU3RyZWFt", - "VHlwZRIXChNWSURFT19TVFJFQU1fTkFUSVZFEAASFgoSVklERU9fU1RSRUFN", - "X1dFQkdMEAESFQoRVklERU9fU1RSRUFNX0hUTUwQAioqCg9WaWRlb1NvdXJj", - "ZVR5cGUSFwoTVklERU9fU09VUkNFX05BVElWRRAAQhCqAg1MaXZlS2l0LlBy", - "b3RvYgZwcm90bzM=")); + "b3RvGgt0cmFjay5wcm90byKlAQoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQK", + "DHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5w", + "cm90by5WaWRlb1N0cmVhbVR5cGUSLgoGZm9ybWF0GAMgASgOMh4ubGl2ZWtp", + "dC5wcm90by5WaWRlb0J1ZmZlclR5cGUSGAoQbm9ybWFsaXplX3N0cmlkZRgE", + "IAEoCCJJChZOZXdWaWRlb1N0cmVhbVJlc3BvbnNlEi8KBnN0cmVhbRgBIAIo", + "CzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb1N0cmVhbSLpAQohVmlkZW9T", + "dHJlYW1Gcm9tUGFydGljaXBhbnRSZXF1ZXN0EhoKEnBhcnRpY2lwYW50X2hh", + "bmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRl", + "b1N0cmVhbVR5cGUSMAoMdHJhY2tfc291cmNlGAMgAigOMhoubGl2ZWtpdC5w", + "cm90by5UcmFja1NvdXJjZRIuCgZmb3JtYXQYBCABKA4yHi5saXZla2l0LnBy", + "b3RvLlZpZGVvQnVmZmVyVHlwZRIYChBub3JtYWxpemVfc3RyaWRlGAUgASgI", + "IlUKIlZpZGVvU3RyZWFtRnJvbVBhcnRpY2lwYW50UmVzcG9uc2USLwoGc3Ry", + "ZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvU3RyZWFtIn8K", + "FU5ld1ZpZGVvU291cmNlUmVxdWVzdBIsCgR0eXBlGAEgAigOMh4ubGl2ZWtp", + "dC5wcm90by5WaWRlb1NvdXJjZVR5cGUSOAoKcmVzb2x1dGlvbhgCIAIoCzIk", + "LmxpdmVraXQucHJvdG8uVmlkZW9Tb3VyY2VSZXNvbHV0aW9uIkkKFk5ld1Zp", + "ZGVvU291cmNlUmVzcG9uc2USLwoGc291cmNlGAEgAigLMh8ubGl2ZWtpdC5w", + "cm90by5Pd25lZFZpZGVvU291cmNlIqcBChhDYXB0dXJlVmlkZW9GcmFtZVJl", + "cXVlc3QSFQoNc291cmNlX2hhbmRsZRgBIAIoBBIuCgZidWZmZXIYAiACKAsy", + "Hi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVySW5mbxIUCgx0aW1lc3RhbXBf", + "dXMYAyACKAMSLgoIcm90YXRpb24YBCACKA4yHC5saXZla2l0LnByb3RvLlZp", + "ZGVvUm90YXRpb24iGwoZQ2FwdHVyZVZpZGVvRnJhbWVSZXNwb25zZSKHAQoT", + "VmlkZW9Db252ZXJ0UmVxdWVzdBIOCgZmbGlwX3kYASABKAgSLgoGYnVmZmVy", + "GAIgAigLMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8SMAoIZHN0", + "X3R5cGUYAyACKA4yHi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVyVHlwZSJl", + "ChRWaWRlb0NvbnZlcnRSZXNwb25zZRIPCgVlcnJvchgBIAEoCUgAEjEKBmJ1", + "ZmZlchgCIAEoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb0J1ZmZlckgA", + "QgkKB21lc3NhZ2UiRAoPVmlkZW9SZXNvbHV0aW9uEg0KBXdpZHRoGAEgAigN", + "Eg4KBmhlaWdodBgCIAIoDRISCgpmcmFtZV9yYXRlGAMgAigBIoMCCg9WaWRl", + "b0J1ZmZlckluZm8SLAoEdHlwZRgBIAIoDjIeLmxpdmVraXQucHJvdG8uVmlk", + "ZW9CdWZmZXJUeXBlEg0KBXdpZHRoGAIgAigNEg4KBmhlaWdodBgDIAIoDRIQ", + "CghkYXRhX3B0chgEIAIoBBIOCgZzdHJpZGUYBiACKA0SQAoKY29tcG9uZW50", + "cxgHIAMoCzIsLmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJJbmZvLkNvbXBv", + "bmVudEluZm8aPwoNQ29tcG9uZW50SW5mbxIQCghkYXRhX3B0chgBIAIoBBIO", + "CgZzdHJpZGUYAiACKA0SDAoEc2l6ZRgDIAIoDSJvChBPd25lZFZpZGVvQnVm", + "ZmVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRI", + "YW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uVmlkZW9CdWZm", + "ZXJJbmZvIj8KD1ZpZGVvU3RyZWFtSW5mbxIsCgR0eXBlGAEgAigOMh4ubGl2", + "ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUibwoQT3duZWRWaWRlb1N0cmVh", + "bRItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFu", + "ZGxlEiwKBGluZm8YAiACKAsyHi5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFt", + "SW5mbyKfAQoQVmlkZW9TdHJlYW1FdmVudBIVCg1zdHJlYW1faGFuZGxlGAEg", + "AigEEjsKDmZyYW1lX3JlY2VpdmVkGAIgASgLMiEubGl2ZWtpdC5wcm90by5W", + "aWRlb0ZyYW1lUmVjZWl2ZWRIABIsCgNlb3MYAyABKAsyHS5saXZla2l0LnBy", + "b3RvLlZpZGVvU3RyZWFtRU9TSABCCQoHbWVzc2FnZSKLAQoSVmlkZW9GcmFt", + "ZVJlY2VpdmVkEi8KBmJ1ZmZlchgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3du", + "ZWRWaWRlb0J1ZmZlchIUCgx0aW1lc3RhbXBfdXMYAiACKAMSLgoIcm90YXRp", + "b24YAyACKA4yHC5saXZla2l0LnByb3RvLlZpZGVvUm90YXRpb24iEAoOVmlk", + "ZW9TdHJlYW1FT1MiNgoVVmlkZW9Tb3VyY2VSZXNvbHV0aW9uEg0KBXdpZHRo", + "GAEgAigNEg4KBmhlaWdodBgCIAIoDSI/Cg9WaWRlb1NvdXJjZUluZm8SLAoE", + "dHlwZRgBIAIoDjIeLmxpdmVraXQucHJvdG8uVmlkZW9Tb3VyY2VUeXBlIm8K", + "EE93bmVkVmlkZW9Tb3VyY2USLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5w", + "cm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5w", + "cm90by5WaWRlb1NvdXJjZUluZm8qMQoKVmlkZW9Db2RlYxIHCgNWUDgQABII", + "CgRIMjY0EAESBwoDQVYxEAISBwoDVlA5EAMqbAoNVmlkZW9Sb3RhdGlvbhIU", + "ChBWSURFT19ST1RBVElPTl8wEAASFQoRVklERU9fUk9UQVRJT05fOTAQARIW", + "ChJWSURFT19ST1RBVElPTl8xODAQAhIWChJWSURFT19ST1RBVElPTl8yNzAQ", + "AyqBAQoPVmlkZW9CdWZmZXJUeXBlEggKBFJHQkEQABIICgRBQkdSEAESCAoE", + "QVJHQhACEggKBEJHUkEQAxIJCgVSR0IyNBAEEggKBEk0MjAQBRIJCgVJNDIw", + "QRAGEggKBEk0MjIQBxIICgRJNDQ0EAgSCAoESTAxMBAJEggKBE5WMTIQCipZ", + "Cg9WaWRlb1N0cmVhbVR5cGUSFwoTVklERU9fU1RSRUFNX05BVElWRRAAEhYK", + "ElZJREVPX1NUUkVBTV9XRUJHTBABEhUKEVZJREVPX1NUUkVBTV9IVE1MEAIq", + "KgoPVmlkZW9Tb3VyY2VUeXBlEhcKE1ZJREVPX1NPVVJDRV9OQVRJVkUQAEIQ", + "qgINTGl2ZUtpdC5Qcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.VideoCodec), typeof(global::LiveKit.Proto.VideoRotation), typeof(global::LiveKit.Proto.VideoBufferType), typeof(global::LiveKit.Proto.VideoStreamType), typeof(global::LiveKit.Proto.VideoSourceType), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamRequest), global::LiveKit.Proto.NewVideoStreamRequest.Parser, new[]{ "TrackHandle", "Type", "Format", "NormalizeStride" }, new[]{ "Format" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoStreamRequest), global::LiveKit.Proto.NewVideoStreamRequest.Parser, new[]{ "TrackHandle", "Type", "Format", "NormalizeStride" }, 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.VideoStreamFromParticipantRequest), global::LiveKit.Proto.VideoStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "Format", "NormalizeStride" }, new[]{ "Format" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamFromParticipantRequest), global::LiveKit.Proto.VideoStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "Format", "NormalizeStride" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoStreamFromParticipantResponse), global::LiveKit.Proto.VideoStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoSourceRequest), global::LiveKit.Proto.NewVideoSourceRequest.Parser, new[]{ "Type", "Resolution" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewVideoSourceResponse), global::LiveKit.Proto.NewVideoSourceResponse.Parser, new[]{ "Source" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.CaptureVideoFrameRequest), global::LiveKit.Proto.CaptureVideoFrameRequest.Parser, new[]{ "SourceHandle", "Buffer", "TimestampUs", "Rotation" }, null, null, null, null), 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.VideoConvertRequest), global::LiveKit.Proto.VideoConvertRequest.Parser, new[]{ "FlipY", "Buffer", "DstType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoConvertResponse), global::LiveKit.Proto.VideoConvertResponse.Parser, new[]{ "Error", "Buffer" }, new[]{ "Error" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoConvertResponse), global::LiveKit.Proto.VideoConvertResponse.Parser, new[]{ "Error", "Buffer" }, new[]{ "Message" }, 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.VideoBufferInfo), global::LiveKit.Proto.VideoBufferInfo.Parser, new[]{ "Type", "Width", "Height", "DataPtr", "Stride", "Components" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.VideoBufferInfo.Types.ComponentInfo), global::LiveKit.Proto.VideoBufferInfo.Types.ComponentInfo.Parser, new[]{ "DataPtr", "Stride", "Size" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedVideoBuffer), global::LiveKit.Proto.OwnedVideoBuffer.Parser, new[]{ "Handle", "Info" }, null, null, null, null), @@ -217,27 +216,57 @@ public NewVideoStreamRequest Clone() { /// Field number for the "track_handle" field. public const int TrackHandleFieldNumber = 1; + private readonly static ulong TrackHandleDefaultValue = 0UL; + private ulong trackHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong TrackHandle { - get { return trackHandle_; } + get { if ((_hasBits0 & 1) != 0) { return trackHandle_; } else { return TrackHandleDefaultValue; } } set { + _hasBits0 |= 1; trackHandle_ = value; } } + /// Gets whether the "track_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "track_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackHandle() { + _hasBits0 &= ~1; + } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.VideoStreamType type_ = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + private readonly static global::LiveKit.Proto.VideoStreamType TypeDefaultValue = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + + private global::LiveKit.Proto.VideoStreamType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoStreamType Type { - get { return type_; } + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 2; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } /// Field number for the "format" field. public const int FormatFieldNumber = 3; @@ -250,9 +279,9 @@ public ulong TrackHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoBufferType Format { - get { if ((_hasBits0 & 1) != 0) { return format_; } else { return FormatDefaultValue; } } + get { if ((_hasBits0 & 4) != 0) { return format_; } else { return FormatDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 4; format_ = value; } } @@ -260,17 +289,19 @@ public ulong TrackHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFormat { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "format" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearFormat() { - _hasBits0 &= ~1; + _hasBits0 &= ~4; } /// Field number for the "normalize_stride" field. public const int NormalizeStrideFieldNumber = 4; + private readonly static bool NormalizeStrideDefaultValue = false; + private bool normalizeStride_; /// /// if true, stride will be set to width/chroma_width @@ -278,11 +309,24 @@ public void ClearFormat() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool NormalizeStride { - get { return normalizeStride_; } + get { if ((_hasBits0 & 8) != 0) { return normalizeStride_; } else { return NormalizeStrideDefaultValue; } } set { + _hasBits0 |= 8; normalizeStride_ = value; } } + /// Gets whether the "normalize_stride" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNormalizeStride { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "normalize_stride" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNormalizeStride() { + _hasBits0 &= ~8; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -310,10 +354,10 @@ public bool Equals(NewVideoStreamRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackHandle != 0UL) hash ^= TrackHandle.GetHashCode(); - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); + if (HasTrackHandle) hash ^= TrackHandle.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (HasFormat) hash ^= Format.GetHashCode(); - if (NormalizeStride != false) hash ^= NormalizeStride.GetHashCode(); + if (HasNormalizeStride) hash ^= NormalizeStride.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -332,11 +376,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } @@ -344,7 +388,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { output.WriteRawTag(32); output.WriteBool(NormalizeStride); } @@ -358,11 +402,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TrackHandle != 0UL) { + if (HasTrackHandle) { output.WriteRawTag(8); output.WriteUInt64(TrackHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } @@ -370,7 +414,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteEnum((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { output.WriteRawTag(32); output.WriteBool(NormalizeStride); } @@ -384,16 +428,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackHandle != 0UL) { + if (HasTrackHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TrackHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (HasFormat) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { size += 1 + 1; } if (_unknownFields != null) { @@ -408,16 +452,16 @@ public void MergeFrom(NewVideoStreamRequest other) { if (other == null) { return; } - if (other.TrackHandle != 0UL) { + if (other.HasTrackHandle) { TrackHandle = other.TrackHandle; } - if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (other.HasType) { Type = other.Type; } if (other.HasFormat) { Format = other.Format; } - if (other.NormalizeStride != false) { + if (other.HasNormalizeStride) { NormalizeStride = other.NormalizeStride; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -431,7 +475,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -462,7 +510,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -648,7 +700,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -670,7 +726,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -744,39 +804,84 @@ public VideoStreamFromParticipantRequest Clone() { /// Field number for the "participant_handle" field. public const int ParticipantHandleFieldNumber = 1; + private readonly static ulong ParticipantHandleDefaultValue = 0UL; + private ulong participantHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong ParticipantHandle { - get { return participantHandle_; } + get { if ((_hasBits0 & 1) != 0) { return participantHandle_; } else { return ParticipantHandleDefaultValue; } } set { + _hasBits0 |= 1; participantHandle_ = value; } } + /// Gets whether the "participant_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasParticipantHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "participant_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearParticipantHandle() { + _hasBits0 &= ~1; + } /// Field number for the "type" field. public const int TypeFieldNumber = 2; - private global::LiveKit.Proto.VideoStreamType type_ = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + private readonly static global::LiveKit.Proto.VideoStreamType TypeDefaultValue = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + + private global::LiveKit.Proto.VideoStreamType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoStreamType Type { - get { return type_; } + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 2; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } /// Field number for the "track_source" field. public const int TrackSourceFieldNumber = 3; - private global::LiveKit.Proto.TrackSource trackSource_ = global::LiveKit.Proto.TrackSource.SourceUnknown; + private readonly static global::LiveKit.Proto.TrackSource TrackSourceDefaultValue = global::LiveKit.Proto.TrackSource.SourceUnknown; + + private global::LiveKit.Proto.TrackSource trackSource_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.TrackSource TrackSource { - get { return trackSource_; } + get { if ((_hasBits0 & 4) != 0) { return trackSource_; } else { return TrackSourceDefaultValue; } } set { + _hasBits0 |= 4; trackSource_ = value; } } + /// Gets whether the "track_source" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTrackSource { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "track_source" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTrackSource() { + _hasBits0 &= ~4; + } /// Field number for the "format" field. public const int FormatFieldNumber = 4; @@ -786,9 +891,9 @@ public ulong ParticipantHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoBufferType Format { - get { if ((_hasBits0 & 1) != 0) { return format_; } else { return FormatDefaultValue; } } + get { if ((_hasBits0 & 8) != 0) { return format_; } else { return FormatDefaultValue; } } set { - _hasBits0 |= 1; + _hasBits0 |= 8; format_ = value; } } @@ -796,26 +901,41 @@ public ulong ParticipantHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFormat { - get { return (_hasBits0 & 1) != 0; } + get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "format" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearFormat() { - _hasBits0 &= ~1; + _hasBits0 &= ~8; } /// Field number for the "normalize_stride" field. public const int NormalizeStrideFieldNumber = 5; + private readonly static bool NormalizeStrideDefaultValue = false; + private bool normalizeStride_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool NormalizeStride { - get { return normalizeStride_; } + get { if ((_hasBits0 & 16) != 0) { return normalizeStride_; } else { return NormalizeStrideDefaultValue; } } set { + _hasBits0 |= 16; normalizeStride_ = value; } } + /// Gets whether the "normalize_stride" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNormalizeStride { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "normalize_stride" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNormalizeStride() { + _hasBits0 &= ~16; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -844,11 +964,11 @@ public bool Equals(VideoStreamFromParticipantRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ParticipantHandle != 0UL) hash ^= ParticipantHandle.GetHashCode(); - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); - if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) hash ^= TrackSource.GetHashCode(); + if (HasParticipantHandle) hash ^= ParticipantHandle.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasTrackSource) hash ^= TrackSource.GetHashCode(); if (HasFormat) hash ^= Format.GetHashCode(); - if (NormalizeStride != false) hash ^= NormalizeStride.GetHashCode(); + if (HasNormalizeStride) hash ^= NormalizeStride.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -867,15 +987,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(ParticipantHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasTrackSource) { output.WriteRawTag(24); output.WriteEnum((int) TrackSource); } @@ -883,7 +1003,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { output.WriteRawTag(40); output.WriteBool(NormalizeStride); } @@ -897,15 +1017,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 (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { output.WriteRawTag(8); output.WriteUInt64(ParticipantHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(16); output.WriteEnum((int) Type); } - if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasTrackSource) { output.WriteRawTag(24); output.WriteEnum((int) TrackSource); } @@ -913,7 +1033,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteEnum((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { output.WriteRawTag(40); output.WriteBool(NormalizeStride); } @@ -927,19 +1047,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ParticipantHandle != 0UL) { + if (HasParticipantHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ParticipantHandle); } - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } - if (TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (HasTrackSource) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackSource); } if (HasFormat) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Format); } - if (NormalizeStride != false) { + if (HasNormalizeStride) { size += 1 + 1; } if (_unknownFields != null) { @@ -954,19 +1074,19 @@ public void MergeFrom(VideoStreamFromParticipantRequest other) { if (other == null) { return; } - if (other.ParticipantHandle != 0UL) { + if (other.HasParticipantHandle) { ParticipantHandle = other.ParticipantHandle; } - if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (other.HasType) { Type = other.Type; } - if (other.TrackSource != global::LiveKit.Proto.TrackSource.SourceUnknown) { + if (other.HasTrackSource) { TrackSource = other.TrackSource; } if (other.HasFormat) { Format = other.Format; } - if (other.NormalizeStride != false) { + if (other.HasNormalizeStride) { NormalizeStride = other.NormalizeStride; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -980,7 +1100,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1015,7 +1139,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1205,7 +1333,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1227,7 +1359,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1257,6 +1393,7 @@ public sealed partial class NewVideoSourceRequest : pb::IMessage _parser = new pb::MessageParser(() => new NewVideoSourceRequest()); 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; } } @@ -1284,6 +1421,7 @@ public NewVideoSourceRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NewVideoSourceRequest(NewVideoSourceRequest other) : this() { + _hasBits0 = other._hasBits0; type_ = other.type_; resolution_ = other.resolution_ != null ? other.resolution_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -1297,15 +1435,30 @@ public NewVideoSourceRequest Clone() { /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.VideoSourceType type_ = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; + private readonly static global::LiveKit.Proto.VideoSourceType TypeDefaultValue = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; + + private global::LiveKit.Proto.VideoSourceType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoSourceType Type { - get { return type_; } + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 1; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } /// Field number for the "resolution" field. public const int ResolutionFieldNumber = 2; @@ -1347,7 +1500,7 @@ public bool Equals(NewVideoSourceRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) hash ^= Type.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (resolution_ != null) hash ^= Resolution.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1367,7 +1520,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -1385,7 +1538,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 (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -1403,7 +1556,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (resolution_ != null) { @@ -1421,7 +1574,7 @@ public void MergeFrom(NewVideoSourceRequest other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (other.HasType) { Type = other.Type; } if (other.resolution_ != null) { @@ -1441,7 +1594,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1467,7 +1624,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1648,7 +1809,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1670,7 +1835,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -1699,6 +1868,7 @@ public sealed partial class CaptureVideoFrameRequest : pb::IMessage _parser = new pb::MessageParser(() => new CaptureVideoFrameRequest()); 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; } } @@ -1726,6 +1896,7 @@ public CaptureVideoFrameRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CaptureVideoFrameRequest(CaptureVideoFrameRequest other) : this() { + _hasBits0 = other._hasBits0; sourceHandle_ = other.sourceHandle_; buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; timestampUs_ = other.timestampUs_; @@ -1741,15 +1912,30 @@ public CaptureVideoFrameRequest Clone() { /// Field number for the "source_handle" field. public const int SourceHandleFieldNumber = 1; + private readonly static ulong SourceHandleDefaultValue = 0UL; + private ulong sourceHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong SourceHandle { - get { return sourceHandle_; } + get { if ((_hasBits0 & 1) != 0) { return sourceHandle_; } else { return SourceHandleDefaultValue; } } set { + _hasBits0 |= 1; sourceHandle_ = value; } } + /// Gets whether the "source_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSourceHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "source_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSourceHandle() { + _hasBits0 &= ~1; + } /// Field number for the "buffer" field. public const int BufferFieldNumber = 2; @@ -1765,6 +1951,8 @@ public ulong SourceHandle { /// Field number for the "timestamp_us" field. public const int TimestampUsFieldNumber = 3; + private readonly static long TimestampUsDefaultValue = 0L; + private long timestampUs_; /// /// In microseconds @@ -1772,23 +1960,51 @@ public ulong SourceHandle { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TimestampUs { - get { return timestampUs_; } + get { if ((_hasBits0 & 2) != 0) { return timestampUs_; } else { return TimestampUsDefaultValue; } } set { + _hasBits0 |= 2; timestampUs_ = value; } } + /// Gets whether the "timestamp_us" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestampUs { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "timestamp_us" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestampUs() { + _hasBits0 &= ~2; + } /// Field number for the "rotation" field. public const int RotationFieldNumber = 4; - private global::LiveKit.Proto.VideoRotation rotation_ = global::LiveKit.Proto.VideoRotation._0; + private readonly static global::LiveKit.Proto.VideoRotation RotationDefaultValue = global::LiveKit.Proto.VideoRotation._0; + + private global::LiveKit.Proto.VideoRotation rotation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoRotation Rotation { - get { return rotation_; } + get { if ((_hasBits0 & 4) != 0) { return rotation_; } else { return RotationDefaultValue; } } set { + _hasBits0 |= 4; rotation_ = value; } } + /// Gets whether the "rotation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRotation { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "rotation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRotation() { + _hasBits0 &= ~4; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1816,10 +2032,10 @@ public bool Equals(CaptureVideoFrameRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (SourceHandle != 0UL) hash ^= SourceHandle.GetHashCode(); + if (HasSourceHandle) hash ^= SourceHandle.GetHashCode(); if (buffer_ != null) hash ^= Buffer.GetHashCode(); - if (TimestampUs != 0L) hash ^= TimestampUs.GetHashCode(); - if (Rotation != global::LiveKit.Proto.VideoRotation._0) hash ^= Rotation.GetHashCode(); + if (HasTimestampUs) hash ^= TimestampUs.GetHashCode(); + if (HasRotation) hash ^= Rotation.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1838,7 +2054,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(8); output.WriteUInt64(SourceHandle); } @@ -1846,11 +2062,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { output.WriteRawTag(24); output.WriteInt64(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { output.WriteRawTag(32); output.WriteEnum((int) Rotation); } @@ -1864,7 +2080,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 (SourceHandle != 0UL) { + if (HasSourceHandle) { output.WriteRawTag(8); output.WriteUInt64(SourceHandle); } @@ -1872,11 +2088,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { output.WriteRawTag(24); output.WriteInt64(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { output.WriteRawTag(32); output.WriteEnum((int) Rotation); } @@ -1890,16 +2106,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (SourceHandle != 0UL) { + if (HasSourceHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SourceHandle); } if (buffer_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Rotation); } if (_unknownFields != null) { @@ -1914,7 +2130,7 @@ public void MergeFrom(CaptureVideoFrameRequest other) { if (other == null) { return; } - if (other.SourceHandle != 0UL) { + if (other.HasSourceHandle) { SourceHandle = other.SourceHandle; } if (other.buffer_ != null) { @@ -1923,10 +2139,10 @@ public void MergeFrom(CaptureVideoFrameRequest other) { } Buffer.MergeFrom(other.Buffer); } - if (other.TimestampUs != 0L) { + if (other.HasTimestampUs) { TimestampUs = other.TimestampUs; } - if (other.Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (other.HasRotation) { Rotation = other.Rotation; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1940,7 +2156,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1974,7 +2194,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2131,7 +2355,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2146,7 +2374,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2165,6 +2397,7 @@ public sealed partial class VideoConvertRequest : pb::IMessage _parser = new pb::MessageParser(() => new VideoConvertRequest()); 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; } } @@ -2192,6 +2425,7 @@ public VideoConvertRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoConvertRequest(VideoConvertRequest other) : this() { + _hasBits0 = other._hasBits0; flipY_ = other.flipY_; buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; dstType_ = other.dstType_; @@ -2206,15 +2440,30 @@ public VideoConvertRequest Clone() { /// Field number for the "flip_y" field. public const int FlipYFieldNumber = 1; + private readonly static bool FlipYDefaultValue = false; + private bool flipY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool FlipY { - get { return flipY_; } + get { if ((_hasBits0 & 1) != 0) { return flipY_; } else { return FlipYDefaultValue; } } set { + _hasBits0 |= 1; flipY_ = value; } } + /// Gets whether the "flip_y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFlipY { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "flip_y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFlipY() { + _hasBits0 &= ~1; + } /// Field number for the "buffer" field. public const int BufferFieldNumber = 2; @@ -2230,15 +2479,30 @@ public bool FlipY { /// Field number for the "dst_type" field. public const int DstTypeFieldNumber = 3; - private global::LiveKit.Proto.VideoBufferType dstType_ = global::LiveKit.Proto.VideoBufferType.Rgba; + private readonly static global::LiveKit.Proto.VideoBufferType DstTypeDefaultValue = global::LiveKit.Proto.VideoBufferType.Rgba; + + private global::LiveKit.Proto.VideoBufferType dstType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoBufferType DstType { - get { return dstType_; } + get { if ((_hasBits0 & 2) != 0) { return dstType_; } else { return DstTypeDefaultValue; } } set { + _hasBits0 |= 2; dstType_ = value; } } + /// Gets whether the "dst_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDstType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "dst_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDstType() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2265,9 +2529,9 @@ public bool Equals(VideoConvertRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (FlipY != false) hash ^= FlipY.GetHashCode(); + if (HasFlipY) hash ^= FlipY.GetHashCode(); if (buffer_ != null) hash ^= Buffer.GetHashCode(); - if (DstType != global::LiveKit.Proto.VideoBufferType.Rgba) hash ^= DstType.GetHashCode(); + if (HasDstType) hash ^= DstType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2286,7 +2550,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (FlipY != false) { + if (HasFlipY) { output.WriteRawTag(8); output.WriteBool(FlipY); } @@ -2294,7 +2558,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Buffer); } - if (DstType != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasDstType) { output.WriteRawTag(24); output.WriteEnum((int) DstType); } @@ -2308,7 +2572,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 (FlipY != false) { + if (HasFlipY) { output.WriteRawTag(8); output.WriteBool(FlipY); } @@ -2316,7 +2580,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteMessage(Buffer); } - if (DstType != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasDstType) { output.WriteRawTag(24); output.WriteEnum((int) DstType); } @@ -2330,13 +2594,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (FlipY != false) { + if (HasFlipY) { size += 1 + 1; } if (buffer_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } - if (DstType != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasDstType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DstType); } if (_unknownFields != null) { @@ -2351,7 +2615,7 @@ public void MergeFrom(VideoConvertRequest other) { if (other == null) { return; } - if (other.FlipY != false) { + if (other.HasFlipY) { FlipY = other.FlipY; } if (other.buffer_ != null) { @@ -2360,7 +2624,7 @@ public void MergeFrom(VideoConvertRequest other) { } Buffer.MergeFrom(other.Buffer); } - if (other.DstType != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (other.HasDstType) { DstType = other.DstType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2374,7 +2638,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2404,7 +2672,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2465,8 +2737,15 @@ public VideoConvertResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoConvertResponse(VideoConvertResponse other) : this() { - error_ = other.error_; - buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Buffer: + Buffer = other.Buffer.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2478,42 +2757,63 @@ public VideoConvertResponse Clone() { /// Field number for the "error" field. public const int ErrorFieldNumber = 1; - 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; } + get { return HasError ? (string) message_ : ""; } set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + messageCase_ = MessageOneofCase.Error; } } /// 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; } + get { return messageCase_ == MessageOneofCase.Error; } } - /// Clears the value of the "error" field + /// Clears the value of the oneof if it's currently set to "error" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearError() { - error_ = null; + if (HasError) { + ClearMessage(); + } } /// Field number for the "buffer" field. public const int BufferFieldNumber = 2; - private global::LiveKit.Proto.OwnedVideoBuffer buffer_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.OwnedVideoBuffer Buffer { - get { return buffer_; } + get { return messageCase_ == MessageOneofCase.Buffer ? (global::LiveKit.Proto.OwnedVideoBuffer) message_ : null; } set { - buffer_ = value; + message_ = value; + messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Buffer; } } + private object message_; + /// Enum of possible cases for the "message" oneof. + public enum MessageOneofCase { + None = 0, + Error = 1, + Buffer = 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) { @@ -2531,6 +2831,7 @@ public bool Equals(VideoConvertResponse other) { } if (Error != other.Error) return false; if (!object.Equals(Buffer, other.Buffer)) return false; + if (MessageCase != other.MessageCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2539,7 +2840,8 @@ public bool Equals(VideoConvertResponse other) { public override int GetHashCode() { int hash = 1; if (HasError) hash ^= Error.GetHashCode(); - if (buffer_ != null) hash ^= Buffer.GetHashCode(); + if (messageCase_ == MessageOneofCase.Buffer) hash ^= Buffer.GetHashCode(); + hash ^= (int) messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2562,7 +2864,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Error); } - if (buffer_ != null) { + if (messageCase_ == MessageOneofCase.Buffer) { output.WriteRawTag(18); output.WriteMessage(Buffer); } @@ -2580,7 +2882,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Error); } - if (buffer_ != null) { + if (messageCase_ == MessageOneofCase.Buffer) { output.WriteRawTag(18); output.WriteMessage(Buffer); } @@ -2597,7 +2899,7 @@ public int CalculateSize() { if (HasError) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); } - if (buffer_ != null) { + if (messageCase_ == MessageOneofCase.Buffer) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } if (_unknownFields != null) { @@ -2612,15 +2914,18 @@ public void MergeFrom(VideoConvertResponse other) { if (other == null) { return; } - if (other.HasError) { - Error = other.Error; - } - if (other.buffer_ != null) { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedVideoBuffer(); - } - Buffer.MergeFrom(other.Buffer); + switch (other.MessageCase) { + case MessageOneofCase.Error: + Error = other.Error; + break; + case MessageOneofCase.Buffer: + if (Buffer == null) { + Buffer = new global::LiveKit.Proto.OwnedVideoBuffer(); + } + Buffer.MergeFrom(other.Buffer); + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2632,7 +2937,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2641,10 +2950,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedVideoBuffer(); + global::LiveKit.Proto.OwnedVideoBuffer subBuilder = new global::LiveKit.Proto.OwnedVideoBuffer(); + if (messageCase_ == MessageOneofCase.Buffer) { + subBuilder.MergeFrom(Buffer); } - input.ReadMessage(Buffer); + input.ReadMessage(subBuilder); + Buffer = subBuilder; break; } } @@ -2658,7 +2969,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2667,10 +2982,12 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (buffer_ == null) { - Buffer = new global::LiveKit.Proto.OwnedVideoBuffer(); + global::LiveKit.Proto.OwnedVideoBuffer subBuilder = new global::LiveKit.Proto.OwnedVideoBuffer(); + if (messageCase_ == MessageOneofCase.Buffer) { + subBuilder.MergeFrom(Buffer); } - input.ReadMessage(Buffer); + input.ReadMessage(subBuilder); + Buffer = subBuilder; break; } } @@ -2688,6 +3005,7 @@ public sealed partial class VideoResolution : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoResolution()); 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; } } @@ -2715,6 +3033,7 @@ public VideoResolution() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoResolution(VideoResolution other) : this() { + _hasBits0 = other._hasBits0; width_ = other.width_; height_ = other.height_; frameRate_ = other.frameRate_; @@ -2729,39 +3048,84 @@ public VideoResolution Clone() { /// Field number for the "width" field. public const int WidthFieldNumber = 1; + private readonly static uint WidthDefaultValue = 0; + private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Width { - get { return width_; } + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } set { + _hasBits0 |= 1; width_ = value; } } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } /// Field number for the "height" field. public const int HeightFieldNumber = 2; + private readonly static uint HeightDefaultValue = 0; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Height { - get { return height_; } + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } set { + _hasBits0 |= 2; height_ = value; } } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } /// Field number for the "frame_rate" field. public const int FrameRateFieldNumber = 3; + private readonly static double FrameRateDefaultValue = 0D; + private double frameRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double FrameRate { - get { return frameRate_; } + get { if ((_hasBits0 & 4) != 0) { return frameRate_; } else { return FrameRateDefaultValue; } } set { + _hasBits0 |= 4; frameRate_ = value; } } + /// Gets whether the "frame_rate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFrameRate { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "frame_rate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFrameRate() { + _hasBits0 &= ~4; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2788,9 +3152,9 @@ public bool Equals(VideoResolution other) { [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 (FrameRate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameRate); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasFrameRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameRate); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2809,15 +3173,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } - if (FrameRate != 0D) { + if (HasFrameRate) { output.WriteRawTag(25); output.WriteDouble(FrameRate); } @@ -2831,15 +3195,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 (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } - if (FrameRate != 0D) { + if (HasFrameRate) { output.WriteRawTag(25); output.WriteDouble(FrameRate); } @@ -2853,13 +3217,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Width != 0) { + if (HasWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Height != 0) { + if (HasHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } - if (FrameRate != 0D) { + if (HasFrameRate) { size += 1 + 8; } if (_unknownFields != null) { @@ -2874,13 +3238,13 @@ public void MergeFrom(VideoResolution other) { if (other == null) { return; } - if (other.Width != 0) { + if (other.HasWidth) { Width = other.Width; } - if (other.Height != 0) { + if (other.HasHeight) { Height = other.Height; } - if (other.FrameRate != 0D) { + if (other.HasFrameRate) { FrameRate = other.FrameRate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2894,7 +3258,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -2921,7 +3289,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -2952,6 +3324,7 @@ public sealed partial class VideoBufferInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoBufferInfo()); 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; } } @@ -2979,6 +3352,7 @@ public VideoBufferInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoBufferInfo(VideoBufferInfo other) : this() { + _hasBits0 = other._hasBits0; type_ = other.type_; width_ = other.width_; height_ = other.height_; @@ -2996,54 +3370,116 @@ public VideoBufferInfo Clone() { /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.VideoBufferType type_ = global::LiveKit.Proto.VideoBufferType.Rgba; + private readonly static global::LiveKit.Proto.VideoBufferType TypeDefaultValue = global::LiveKit.Proto.VideoBufferType.Rgba; + + private global::LiveKit.Proto.VideoBufferType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoBufferType Type { - get { return type_; } + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 1; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } /// Field number for the "width" field. public const int WidthFieldNumber = 2; + private readonly static uint WidthDefaultValue = 0; + private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Width { - get { return width_; } + get { if ((_hasBits0 & 2) != 0) { return width_; } else { return WidthDefaultValue; } } set { + _hasBits0 |= 2; width_ = value; } } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~2; + } /// Field number for the "height" field. public const int HeightFieldNumber = 3; + private readonly static uint HeightDefaultValue = 0; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Height { - get { return height_; } + get { if ((_hasBits0 & 4) != 0) { return height_; } else { return HeightDefaultValue; } } set { + _hasBits0 |= 4; height_ = value; } } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~4; + } /// Field number for the "data_ptr" field. public const int DataPtrFieldNumber = 4; + private readonly static ulong DataPtrDefaultValue = 0UL; + private ulong dataPtr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong DataPtr { - get { return dataPtr_; } + get { if ((_hasBits0 & 8) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } set { + _hasBits0 |= 8; dataPtr_ = value; } } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~8; + } /// Field number for the "stride" field. public const int StrideFieldNumber = 6; + private readonly static uint StrideDefaultValue = 0; + private uint stride_; /// /// only for packed formats @@ -3051,11 +3487,24 @@ public ulong DataPtr { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Stride { - get { return stride_; } + get { if ((_hasBits0 & 16) != 0) { return stride_; } else { return StrideDefaultValue; } } set { + _hasBits0 |= 16; stride_ = value; } } + /// Gets whether the "stride" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStride { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "stride" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStride() { + _hasBits0 &= ~16; + } /// Field number for the "components" field. public const int ComponentsFieldNumber = 7; @@ -3096,11 +3545,11 @@ public bool Equals(VideoBufferInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.VideoBufferType.Rgba) hash ^= Type.GetHashCode(); - if (Width != 0) hash ^= Width.GetHashCode(); - if (Height != 0) hash ^= Height.GetHashCode(); - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (Stride != 0) hash ^= Stride.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasStride) hash ^= Stride.GetHashCode(); hash ^= components_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -3120,23 +3569,23 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(16); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(24); output.WriteUInt32(Height); } - if (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(32); output.WriteUInt64(DataPtr); } - if (Stride != 0) { + if (HasStride) { output.WriteRawTag(48); output.WriteUInt32(Stride); } @@ -3151,23 +3600,23 @@ 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 (Type != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(16); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(24); output.WriteUInt32(Height); } - if (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(32); output.WriteUInt64(DataPtr); } - if (Stride != 0) { + if (HasStride) { output.WriteRawTag(48); output.WriteUInt32(Stride); } @@ -3182,19 +3631,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } - if (Width != 0) { + if (HasWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Height != 0) { + if (HasHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } - if (DataPtr != 0UL) { + if (HasDataPtr) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); } - if (Stride != 0) { + if (HasStride) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stride); } size += components_.CalculateSize(_repeated_components_codec); @@ -3210,19 +3659,19 @@ public void MergeFrom(VideoBufferInfo other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.VideoBufferType.Rgba) { + if (other.HasType) { Type = other.Type; } - if (other.Width != 0) { + if (other.HasWidth) { Width = other.Width; } - if (other.Height != 0) { + if (other.HasHeight) { Height = other.Height; } - if (other.DataPtr != 0UL) { + if (other.HasDataPtr) { DataPtr = other.DataPtr; } - if (other.Stride != 0) { + if (other.HasStride) { Stride = other.Stride; } components_.Add(other.components_); @@ -3237,7 +3686,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3276,7 +3729,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3322,6 +3779,7 @@ public sealed partial class ComponentInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ComponentInfo()); 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; } } @@ -3349,6 +3807,7 @@ public ComponentInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ComponentInfo(ComponentInfo other) : this() { + _hasBits0 = other._hasBits0; dataPtr_ = other.dataPtr_; stride_ = other.stride_; size_ = other.size_; @@ -3363,39 +3822,84 @@ public ComponentInfo Clone() { /// Field number for the "data_ptr" field. public const int DataPtrFieldNumber = 1; + private readonly static ulong DataPtrDefaultValue = 0UL; + private ulong dataPtr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong DataPtr { - get { return dataPtr_; } + get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } } set { + _hasBits0 |= 1; dataPtr_ = value; } } + /// Gets whether the "data_ptr" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataPtr { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_ptr" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataPtr() { + _hasBits0 &= ~1; + } /// Field number for the "stride" field. public const int StrideFieldNumber = 2; + private readonly static uint StrideDefaultValue = 0; + private uint stride_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Stride { - get { return stride_; } + get { if ((_hasBits0 & 2) != 0) { return stride_; } else { return StrideDefaultValue; } } set { + _hasBits0 |= 2; stride_ = value; } } + /// Gets whether the "stride" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStride { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "stride" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStride() { + _hasBits0 &= ~2; + } /// Field number for the "size" field. public const int SizeFieldNumber = 3; + private readonly static uint SizeDefaultValue = 0; + private uint size_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Size { - get { return size_; } + get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } } set { + _hasBits0 |= 4; size_ = value; } } + /// Gets whether the "size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSize { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSize() { + _hasBits0 &= ~4; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3422,9 +3926,9 @@ public bool Equals(ComponentInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (DataPtr != 0UL) hash ^= DataPtr.GetHashCode(); - if (Stride != 0) hash ^= Stride.GetHashCode(); - if (Size != 0) hash ^= Size.GetHashCode(); + if (HasDataPtr) hash ^= DataPtr.GetHashCode(); + if (HasStride) hash ^= Stride.GetHashCode(); + if (HasSize) hash ^= Size.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3443,15 +3947,15 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(8); output.WriteUInt64(DataPtr); } - if (Stride != 0) { + if (HasStride) { output.WriteRawTag(16); output.WriteUInt32(Stride); } - if (Size != 0) { + if (HasSize) { output.WriteRawTag(24); output.WriteUInt32(Size); } @@ -3465,15 +3969,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 (DataPtr != 0UL) { + if (HasDataPtr) { output.WriteRawTag(8); output.WriteUInt64(DataPtr); } - if (Stride != 0) { + if (HasStride) { output.WriteRawTag(16); output.WriteUInt32(Stride); } - if (Size != 0) { + if (HasSize) { output.WriteRawTag(24); output.WriteUInt32(Size); } @@ -3487,13 +3991,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (DataPtr != 0UL) { + if (HasDataPtr) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr); } - if (Stride != 0) { + if (HasStride) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Stride); } - if (Size != 0) { + if (HasSize) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size); } if (_unknownFields != null) { @@ -3508,13 +4012,13 @@ public void MergeFrom(ComponentInfo other) { if (other == null) { return; } - if (other.DataPtr != 0UL) { + if (other.HasDataPtr) { DataPtr = other.DataPtr; } - if (other.Stride != 0) { + if (other.HasStride) { Stride = other.Stride; } - if (other.Size != 0) { + if (other.HasSize) { Size = other.Size; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3528,7 +4032,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3555,7 +4063,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3774,7 +4286,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -3803,7 +4319,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -3836,6 +4356,7 @@ public sealed partial class VideoStreamInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoStreamInfo()); 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; } } @@ -3863,6 +4384,7 @@ public VideoStreamInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoStreamInfo(VideoStreamInfo other) : this() { + _hasBits0 = other._hasBits0; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3875,15 +4397,30 @@ public VideoStreamInfo Clone() { /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.VideoStreamType type_ = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + private readonly static global::LiveKit.Proto.VideoStreamType TypeDefaultValue = global::LiveKit.Proto.VideoStreamType.VideoStreamNative; + + private global::LiveKit.Proto.VideoStreamType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoStreamType Type { - get { return type_; } + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 1; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3908,7 +4445,7 @@ public bool Equals(VideoStreamInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) hash ^= Type.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3927,7 +4464,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -3941,7 +4478,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 (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -3955,7 +4492,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (_unknownFields != null) { @@ -3970,7 +4507,7 @@ public void MergeFrom(VideoStreamInfo other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.VideoStreamType.VideoStreamNative) { + if (other.HasType) { Type = other.Type; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3984,7 +4521,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4003,7 +4544,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4209,7 +4754,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4238,7 +4787,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4271,6 +4824,7 @@ public sealed partial class VideoStreamEvent : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoStreamEvent()); 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; } } @@ -4298,6 +4852,7 @@ public VideoStreamEvent() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoStreamEvent(VideoStreamEvent other) : this() { + _hasBits0 = other._hasBits0; streamHandle_ = other.streamHandle_; switch (other.MessageCase) { case MessageOneofCase.FrameReceived: @@ -4319,15 +4874,30 @@ public VideoStreamEvent Clone() { /// Field number for the "stream_handle" field. public const int StreamHandleFieldNumber = 1; + private readonly static ulong StreamHandleDefaultValue = 0UL; + private ulong streamHandle_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ulong StreamHandle { - get { return streamHandle_; } + get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } } set { + _hasBits0 |= 1; streamHandle_ = value; } } + /// Gets whether the "stream_handle" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasStreamHandle { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "stream_handle" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearStreamHandle() { + _hasBits0 &= ~1; + } /// Field number for the "frame_received" field. public const int FrameReceivedFieldNumber = 2; @@ -4400,7 +4970,7 @@ public bool Equals(VideoStreamEvent other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (StreamHandle != 0UL) hash ^= StreamHandle.GetHashCode(); + if (HasStreamHandle) hash ^= StreamHandle.GetHashCode(); if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode(); if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode(); hash ^= (int) messageCase_; @@ -4422,7 +4992,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (StreamHandle != 0UL) { + if (HasStreamHandle) { output.WriteRawTag(8); output.WriteUInt64(StreamHandle); } @@ -4444,7 +5014,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 (StreamHandle != 0UL) { + if (HasStreamHandle) { output.WriteRawTag(8); output.WriteUInt64(StreamHandle); } @@ -4466,7 +5036,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (StreamHandle != 0UL) { + if (HasStreamHandle) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle); } if (messageCase_ == MessageOneofCase.FrameReceived) { @@ -4487,7 +5057,7 @@ public void MergeFrom(VideoStreamEvent other) { if (other == null) { return; } - if (other.StreamHandle != 0UL) { + if (other.HasStreamHandle) { StreamHandle = other.StreamHandle; } switch (other.MessageCase) { @@ -4516,7 +5086,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4553,7 +5127,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4594,6 +5172,7 @@ public sealed partial class VideoFrameReceived : pb::IMessage _parser = new pb::MessageParser(() => new VideoFrameReceived()); 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; } } @@ -4621,6 +5200,7 @@ public VideoFrameReceived() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoFrameReceived(VideoFrameReceived other) : this() { + _hasBits0 = other._hasBits0; buffer_ = other.buffer_ != null ? other.buffer_.Clone() : null; timestampUs_ = other.timestampUs_; rotation_ = other.rotation_; @@ -4647,6 +5227,8 @@ public VideoFrameReceived Clone() { /// Field number for the "timestamp_us" field. public const int TimestampUsFieldNumber = 2; + private readonly static long TimestampUsDefaultValue = 0L; + private long timestampUs_; /// /// In microseconds @@ -4654,23 +5236,51 @@ public VideoFrameReceived Clone() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TimestampUs { - get { return timestampUs_; } + get { if ((_hasBits0 & 1) != 0) { return timestampUs_; } else { return TimestampUsDefaultValue; } } set { + _hasBits0 |= 1; timestampUs_ = value; } } + /// Gets whether the "timestamp_us" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestampUs { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "timestamp_us" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestampUs() { + _hasBits0 &= ~1; + } /// Field number for the "rotation" field. public const int RotationFieldNumber = 3; - private global::LiveKit.Proto.VideoRotation rotation_ = global::LiveKit.Proto.VideoRotation._0; + private readonly static global::LiveKit.Proto.VideoRotation RotationDefaultValue = global::LiveKit.Proto.VideoRotation._0; + + private global::LiveKit.Proto.VideoRotation rotation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoRotation Rotation { - get { return rotation_; } + get { if ((_hasBits0 & 2) != 0) { return rotation_; } else { return RotationDefaultValue; } } set { + _hasBits0 |= 2; rotation_ = value; } } + /// Gets whether the "rotation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRotation { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rotation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRotation() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -4698,8 +5308,8 @@ public bool Equals(VideoFrameReceived other) { public override int GetHashCode() { int hash = 1; if (buffer_ != null) hash ^= Buffer.GetHashCode(); - if (TimestampUs != 0L) hash ^= TimestampUs.GetHashCode(); - if (Rotation != global::LiveKit.Proto.VideoRotation._0) hash ^= Rotation.GetHashCode(); + if (HasTimestampUs) hash ^= TimestampUs.GetHashCode(); + if (HasRotation) hash ^= Rotation.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4722,11 +5332,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { output.WriteRawTag(16); output.WriteInt64(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { output.WriteRawTag(24); output.WriteEnum((int) Rotation); } @@ -4744,11 +5354,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteMessage(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { output.WriteRawTag(16); output.WriteInt64(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { output.WriteRawTag(24); output.WriteEnum((int) Rotation); } @@ -4765,10 +5375,10 @@ public int CalculateSize() { if (buffer_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Buffer); } - if (TimestampUs != 0L) { + if (HasTimestampUs) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimestampUs); } - if (Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (HasRotation) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Rotation); } if (_unknownFields != null) { @@ -4789,10 +5399,10 @@ public void MergeFrom(VideoFrameReceived other) { } Buffer.MergeFrom(other.Buffer); } - if (other.TimestampUs != 0L) { + if (other.HasTimestampUs) { TimestampUs = other.TimestampUs; } - if (other.Rotation != global::LiveKit.Proto.VideoRotation._0) { + if (other.HasRotation) { Rotation = other.Rotation; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4806,7 +5416,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -4836,7 +5450,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -4989,7 +5607,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5004,7 +5626,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5023,6 +5649,7 @@ public sealed partial class VideoSourceResolution : pb::IMessage _parser = new pb::MessageParser(() => new VideoSourceResolution()); 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; } } @@ -5050,6 +5677,7 @@ public VideoSourceResolution() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoSourceResolution(VideoSourceResolution other) : this() { + _hasBits0 = other._hasBits0; width_ = other.width_; height_ = other.height_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5063,27 +5691,57 @@ public VideoSourceResolution Clone() { /// Field number for the "width" field. public const int WidthFieldNumber = 1; + private readonly static uint WidthDefaultValue = 0; + private uint width_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Width { - get { return width_; } + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } set { + _hasBits0 |= 1; width_ = value; } } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } /// Field number for the "height" field. public const int HeightFieldNumber = 2; + private readonly static uint HeightDefaultValue = 0; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Height { - get { return height_; } + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } set { + _hasBits0 |= 2; height_ = value; } } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5109,8 +5767,8 @@ public bool Equals(VideoSourceResolution other) { [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 (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5129,11 +5787,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } @@ -5147,11 +5805,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Width != 0) { + if (HasWidth) { output.WriteRawTag(8); output.WriteUInt32(Width); } - if (Height != 0) { + if (HasHeight) { output.WriteRawTag(16); output.WriteUInt32(Height); } @@ -5165,10 +5823,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Width != 0) { + if (HasWidth) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Height != 0) { + if (HasHeight) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } if (_unknownFields != null) { @@ -5183,10 +5841,10 @@ public void MergeFrom(VideoSourceResolution other) { if (other == null) { return; } - if (other.Width != 0) { + if (other.HasWidth) { Width = other.Width; } - if (other.Height != 0) { + if (other.HasHeight) { Height = other.Height; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5200,7 +5858,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5223,7 +5885,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5250,6 +5916,7 @@ public sealed partial class VideoSourceInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoSourceInfo()); 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; } } @@ -5277,6 +5944,7 @@ public VideoSourceInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoSourceInfo(VideoSourceInfo other) : this() { + _hasBits0 = other._hasBits0; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5289,15 +5957,30 @@ public VideoSourceInfo Clone() { /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::LiveKit.Proto.VideoSourceType type_ = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; + private readonly static global::LiveKit.Proto.VideoSourceType TypeDefaultValue = global::LiveKit.Proto.VideoSourceType.VideoSourceNative; + + private global::LiveKit.Proto.VideoSourceType type_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::LiveKit.Proto.VideoSourceType Type { - get { return type_; } + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } set { + _hasBits0 |= 1; type_ = value; } } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5322,7 +6005,7 @@ public bool Equals(VideoSourceInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) hash ^= Type.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5341,7 +6024,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -5355,7 +6038,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 (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { output.WriteRawTag(8); output.WriteEnum((int) Type); } @@ -5369,7 +6052,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (_unknownFields != null) { @@ -5384,7 +6067,7 @@ public void MergeFrom(VideoSourceInfo other) { if (other == null) { return; } - if (other.Type != global::LiveKit.Proto.VideoSourceType.VideoSourceNative) { + if (other.HasType) { Type = other.Type; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5398,7 +6081,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5417,7 +6104,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; @@ -5623,7 +6314,11 @@ public void MergeFrom(pb::CodedInputStream input) { #else uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -5652,7 +6347,11 @@ public void MergeFrom(pb::CodedInputStream input) { void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { - switch(tag) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; diff --git a/Runtime/Scripts/Room.cs b/Runtime/Scripts/Room.cs index 8a92141..fb885f9 100644 --- a/Runtime/Scripts/Room.cs +++ b/Runtime/Scripts/Room.cs @@ -184,7 +184,20 @@ internal void UpdateFromInfo(RoomInfo info) Metadata = info.Metadata; } - + internal void OnRpcMethodInvocationReceived(RpcMethodInvocationEvent e) + { + if (e.LocalParticipantHandle == (ulong)LocalParticipant.Handle.DangerousGetHandle()) + { + // Async but no need to await the response + LocalParticipant.HandleRpcMethodInvocation( + e.InvocationId, + e.Method, + e.RequestId, + e.CallerIdentity, + e.Payload, + e.ResponseTimeoutMs / 1000f); + } + } internal void OnEventReceived(RoomEvent e) { if (e.RoomHandle != (ulong)RoomHandle.DangerousGetHandle()) @@ -401,17 +414,18 @@ internal void OnEventReceived(RoomEvent e) internal void OnConnect(ConnectCallback info) { - RoomHandle = FfiHandle.FromOwnedHandle(info.Room.Handle); + RoomHandle = FfiHandle.FromOwnedHandle(info.Result.Room.Handle); - UpdateFromInfo(info.Room.Info); - LocalParticipant = new LocalParticipant(info.LocalParticipant, this); + UpdateFromInfo(info.Result.Room.Info); + LocalParticipant = new LocalParticipant(info.Result.LocalParticipant, this); // Add already connected participant - foreach (var p in info.Participants) + foreach (var p in info.Result.Participants) CreateRemoteParticipantWithTracks(p); FfiClient.Instance.RoomEventReceived += OnEventReceived; FfiClient.Instance.DisconnectReceived += OnDisconnectReceived; + FfiClient.Instance.RpcMethodInvocationReceived += OnRpcMethodInvocationReceived; Connected?.Invoke(this); } diff --git a/Runtime/Scripts/Rpc.cs b/Runtime/Scripts/Rpc.cs new file mode 100644 index 0000000..2998fbf --- /dev/null +++ b/Runtime/Scripts/Rpc.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace LiveKit +{ + /// + /// Parameters for . + /// + /// + public class PerformRpcParams + { + /// + /// The identity of the RemoteParticipant to send the request to. + /// + public string DestinationIdentity { get; set; } + + /// + /// The name of the RPC method to call. Max 64 bytes UTF-8. + /// + public string Method { get; set; } + + /// + /// String payload data to send to the remote participant. Max 15KiB UTF-8. + /// + public string Payload { get; set; } + + /// + /// The maximum time to wait for a response from the remote participant. Default is 10 seconds. + /// + public float ResponseTimeout { get; set; } = 10f; + } + + /// + /// Data supplied to an RPC method handler registered with . + /// + public class RpcInvocationData + { + /// + /// A unique identifier for the RPC request. + /// + public string RequestId { get; set; } + + /// + /// The identity of the RemoteParticipant that made the RPC call. + /// + public string CallerIdentity { get; set; } + + /// + /// The string payload data sent by the caller. + /// + public string Payload { get; set; } + + /// + /// The maximum time available to respond before the caller times out. + /// + public float ResponseTimeout { get; set; } + } + + + /// + /// Errors thrown by RPC method handlers or generated due to a failure in the RPC call. + /// + /// Built-in error codes are listed in . + /// + /// You may also throw custom errors with your own code and data. + /// Errors of this type thrown in your handler will be transmitted as-is without modification. + /// All other errors will be converted to a generic APPLICATION_ERROR (1500). + /// + public class RpcError : Exception + { + /// + /// Integer error code. Values 1000-1999 are reserved for the framework, see . + /// + public uint Code { get; private set; } + + /// + /// String error data. Max 15KiB UTF-8. + /// + public string RpcData { get; private set; } + + public RpcError(uint code, string message, string rpcData = null) : base(message) + { + Code = code; + RpcData = rpcData; + } + + internal static RpcError FromProto(Proto.RpcError proto) + { + Debug.Log($"RPC error received: {proto.Code} {proto.Message} {proto.Data}"); + return new RpcError(proto.Code, proto.Message, proto.Data); + } + + internal Proto.RpcError ToProto() + { + return new Proto.RpcError + { + Code = Code, + Message = Message, + Data = RpcData ?? "" + }; + } + + /// + /// Built-in error codes. See https://docs.livekit.io/home/client/data/rpc/#errors for more information. + /// + public enum ErrorCode : uint + { + APPLICATION_ERROR = 1500, + CONNECTION_TIMEOUT = 1501, + RESPONSE_TIMEOUT = 1502, + RECIPIENT_DISCONNECTED = 1503, + RESPONSE_PAYLOAD_TOO_LARGE = 1504, + SEND_FAILED = 1505, + UNSUPPORTED_METHOD = 1400, + RECIPIENT_NOT_FOUND = 1401, + REQUEST_PAYLOAD_TOO_LARGE = 1402, + UNSUPPORTED_SERVER = 1403 + } + + private static readonly Dictionary ErrorMessages = new() + { + { ErrorCode.APPLICATION_ERROR, "Application error in method handler" }, + { ErrorCode.CONNECTION_TIMEOUT, "Connection timeout" }, + { ErrorCode.RESPONSE_TIMEOUT, "Response timeout" }, + { ErrorCode.RECIPIENT_DISCONNECTED, "Recipient disconnected" }, + { ErrorCode.RESPONSE_PAYLOAD_TOO_LARGE, "Response payload too large" }, + { ErrorCode.SEND_FAILED, "Failed to send" }, + { ErrorCode.UNSUPPORTED_METHOD, "Method not supported at destination" }, + { ErrorCode.RECIPIENT_NOT_FOUND, "Recipient not found" }, + { ErrorCode.REQUEST_PAYLOAD_TOO_LARGE, "Request payload too large" }, + { ErrorCode.UNSUPPORTED_SERVER, "RPC not supported by server" } + }; + + internal static RpcError BuiltIn(ErrorCode code, string rpcData = null) + { + return new RpcError((uint)code, ErrorMessages[code], rpcData); + } + } +} diff --git a/Runtime/Scripts/Rpc.cs.meta b/Runtime/Scripts/Rpc.cs.meta new file mode 100644 index 0000000..b9f0f57 --- /dev/null +++ b/Runtime/Scripts/Rpc.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 37d27b373fe44458fbe9f5929a01ac61 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/client-sdk-rust~ b/client-sdk-rust~ index 170bb3a..8cb2024 160000 --- a/client-sdk-rust~ +++ b/client-sdk-rust~ @@ -1 +1 @@ -Subproject commit 170bb3a2a9cd8b09e3f81b835fdc2a966e9b9b07 +Subproject commit 8cb20245841442a7a88766a372002f0eccbf0d58 diff --git a/version.ini b/version.ini index c3e4773..20c5532 100644 --- a/version.ini +++ b/version.ini @@ -1,3 +1,3 @@ [ffi] -version = v0.9.0 +version = v0.12.2 url = https://github.com/livekit/rust-sdks/releases/download \ No newline at end of file