From aa371c06aac08daa6c5e4a9364f8bcc1fc1c6e62 Mon Sep 17 00:00:00 2001 From: Daniel Sierpinski Date: Fri, 14 Feb 2025 13:55:35 +0100 Subject: [PATCH] Upgrade protobuff models & RPC client --- .../Runtime/Core/InternalDTO/Sfu/Events.cs | 4555 ++++++++++----- .../Core/InternalDTO/Sfu/GeneratedAPI.cs | 191 +- .../Runtime/Core/InternalDTO/Sfu/Models.cs | 4905 ++++++++++++----- .../Runtime/Core/InternalDTO/Sfu/Signal.cs | 1805 +++++- .../Runtime/Core/LowLevelClient/RtcSession.cs | 38 +- .../LowLevelClient/WebSockets/SfuWebSocket.cs | 17 +- 6 files changed, 8507 insertions(+), 3004 deletions(-) diff --git a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Events.cs b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Events.cs index 2b86c1d6..ca47d7b7 100644 --- a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Events.cs +++ b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Events.cs @@ -26,7 +26,7 @@ static EventsReflection() { string.Concat( "Chx2aWRlby9zZnUvZXZlbnQvZXZlbnRzLnByb3RvEhZzdHJlYW0udmlkZW8u", "c2Z1LmV2ZW50Gh12aWRlby9zZnUvbW9kZWxzL21vZGVscy5wcm90bxohdmlk", - "ZW8vc2Z1L3NpZ25hbF9ycGMvc2lnbmFsLnByb3RvIvEJCghTZnVFdmVudBJD", + "ZW8vc2Z1L3NpZ25hbF9ycGMvc2lnbmFsLnByb3RvIqUMCghTZnVFdmVudBJD", "ChBzdWJzY3JpYmVyX29mZmVyGAEgASgLMicuc3RyZWFtLnZpZGVvLnNmdS5l", "dmVudC5TdWJzY3JpYmVyT2ZmZXJIABJDChBwdWJsaXNoZXJfYW5zd2VyGAIg", "ASgLMicuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5QdWJsaXNoZXJBbnN3ZXJI", @@ -54,101 +54,135 @@ static EventsReflection() { "KAsyHi5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LkdvQXdheUgAEjkKC2ljZV9y", "ZXN0YXJ0GBUgASgLMiIuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5JQ0VSZXN0", "YXJ0SAASOwoMcGluc191cGRhdGVkGBYgASgLMiMuc3RyZWFtLnZpZGVvLnNm", - "dS5ldmVudC5QaW5zQ2hhbmdlZEgAQg8KDWV2ZW50X3BheWxvYWQiOQoLUGlu", - "c0NoYW5nZWQSKgoEcGlucxgBIAMoCzIcLnN0cmVhbS52aWRlby5zZnUubW9k", - "ZWxzLlBpbiI2CgVFcnJvchItCgVlcnJvchgEIAEoCzIeLnN0cmVhbS52aWRl", - "by5zZnUubW9kZWxzLkVycm9yIlkKCklDRVRyaWNrbGUSNAoJcGVlcl90eXBl", - "GAEgASgOMiEuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGVlclR5cGUSFQoN", - "aWNlX2NhbmRpZGF0ZRgCIAEoCSJCCgpJQ0VSZXN0YXJ0EjQKCXBlZXJfdHlw", - "ZRgBIAEoDjIhLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlBlZXJUeXBlIqgB", - "CgpTZnVSZXF1ZXN0EjsKDGpvaW5fcmVxdWVzdBgBIAEoCzIjLnN0cmVhbS52", - "aWRlby5zZnUuZXZlbnQuSm9pblJlcXVlc3RIABJKChRoZWFsdGhfY2hlY2tf", - "cmVxdWVzdBgCIAEoCzIqLnN0cmVhbS52aWRlby5zZnUuZXZlbnQuSGVhbHRo", - "Q2hlY2tSZXF1ZXN0SABCEQoPcmVxdWVzdF9wYXlsb2FkIhQKEkhlYWx0aENo", - "ZWNrUmVxdWVzdCJbChNIZWFsdGhDaGVja1Jlc3BvbnNlEkQKEXBhcnRpY2lw", - "YW50X2NvdW50GAEgASgLMikuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFy", - "dGljaXBhbnRDb3VudCKiAQoOVHJhY2tQdWJsaXNoZWQSDwoHdXNlcl9pZBgB", - "IAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEjAKBHR5cGUYAyABKA4yIi5zdHJl", - "YW0udmlkZW8uc2Z1Lm1vZGVscy5UcmFja1R5cGUSOQoLcGFydGljaXBhbnQY", - "BCABKAsyJC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5QYXJ0aWNpcGFudCLi", - "AQoQVHJhY2tVbnB1Ymxpc2hlZBIPCgd1c2VyX2lkGAEgASgJEhIKCnNlc3Np", - "b25faWQYAiABKAkSMAoEdHlwZRgDIAEoDjIiLnN0cmVhbS52aWRlby5zZnUu", - "bW9kZWxzLlRyYWNrVHlwZRI8CgVjYXVzZRgEIAEoDjItLnN0cmVhbS52aWRl", - "by5zZnUubW9kZWxzLlRyYWNrVW5wdWJsaXNoUmVhc29uEjkKC3BhcnRpY2lw", - "YW50GAUgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFydGljaXBh", - "bnQi1gEKC0pvaW5SZXF1ZXN0Eg0KBXRva2VuGAEgASgJEhIKCnNlc3Npb25f", - "aWQYAiABKAkSFgoOc3Vic2NyaWJlcl9zZHAYAyABKAkSPgoOY2xpZW50X2Rl", - "dGFpbHMYBCABKAsyJi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5DbGllbnRE", - "ZXRhaWxzEjQKCW1pZ3JhdGlvbhgFIAEoCzIhLnN0cmVhbS52aWRlby5zZnUu", - "ZXZlbnQuTWlncmF0aW9uEhYKDmZhc3RfcmVjb25uZWN0GAYgASgIIqgBCglN", - "aWdyYXRpb24SEwoLZnJvbV9zZnVfaWQYASABKAkSPAoQYW5ub3VuY2VkX3Ry", - "YWNrcxgCIAMoCzIiLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlRyYWNrSW5m", - "bxJICg1zdWJzY3JpcHRpb25zGAMgAygLMjEuc3RyZWFtLnZpZGVvLnNmdS5z", - "aWduYWwuVHJhY2tTdWJzY3JpcHRpb25EZXRhaWxzIlsKDEpvaW5SZXNwb25z", - "ZRI2CgpjYWxsX3N0YXRlGAEgASgLMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2Rl", - "bHMuQ2FsbFN0YXRlEhMKC3JlY29ubmVjdGVkGAIgASgIImAKEVBhcnRpY2lw", - "YW50Sm9pbmVkEhAKCGNhbGxfY2lkGAEgASgJEjkKC3BhcnRpY2lwYW50GAIg", - "ASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFydGljaXBhbnQiXgoP", - "UGFydGljaXBhbnRMZWZ0EhAKCGNhbGxfY2lkGAEgASgJEjkKC3BhcnRpY2lw", - "YW50GAIgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFydGljaXBh", - "bnQiMwoPU3Vic2NyaWJlck9mZmVyEhMKC2ljZV9yZXN0YXJ0GAEgASgIEgsK", - "A3NkcBgCIAEoCSIeCg9QdWJsaXNoZXJBbnN3ZXISCwoDc2RwGAEgASgJIm0K", - "GENvbm5lY3Rpb25RdWFsaXR5Q2hhbmdlZBJRChpjb25uZWN0aW9uX3F1YWxp", - "dHlfdXBkYXRlcxgBIAMoCzItLnN0cmVhbS52aWRlby5zZnUuZXZlbnQuQ29u", - "bmVjdGlvblF1YWxpdHlJbmZvIoQBChVDb25uZWN0aW9uUXVhbGl0eUluZm8S", - "DwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEkYKEmNvbm5l", - "Y3Rpb25fcXVhbGl0eRgDIAEoDjIqLnN0cmVhbS52aWRlby5zZnUubW9kZWxz", - "LkNvbm5lY3Rpb25RdWFsaXR5Ij0KFkRvbWluYW50U3BlYWtlckNoYW5nZWQS", - "DwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJIlUKCkF1ZGlv", - "TGV2ZWwSDwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEg0K", - "BWxldmVsGAMgASgCEhMKC2lzX3NwZWFraW5nGAQgASgIIk0KEUF1ZGlvTGV2", - "ZWxDaGFuZ2VkEjgKDGF1ZGlvX2xldmVscxgBIAMoCzIiLnN0cmVhbS52aWRl", - "by5zZnUuZXZlbnQuQXVkaW9MZXZlbCIqChFBdWRpb01lZGlhUmVxdWVzdBIV", - "Cg1jaGFubmVsX2NvdW50GAEgASgFIn4KC0F1ZGlvU2VuZGVyEkAKDW1lZGlh", - "X3JlcXVlc3QYASABKAsyKS5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LkF1ZGlv", - "TWVkaWFSZXF1ZXN0Ei0KBWNvZGVjGAIgASgLMh4uc3RyZWFtLnZpZGVvLnNm", - "dS5tb2RlbHMuQ29kZWMiWAoRVmlkZW9NZWRpYVJlcXVlc3QSFAoMaWRlYWxf", - "aGVpZ2h0GAEgASgFEhMKC2lkZWFsX3dpZHRoGAIgASgFEhgKEGlkZWFsX2Zy", - "YW1lX3JhdGUYAyABKAUi3QIKEVZpZGVvTGF5ZXJTZXR0aW5nEgwKBG5hbWUY", - "ASABKAkSDgoGYWN0aXZlGAIgASgIEhMKC21heF9iaXRyYXRlGAMgASgFEiAK", - "GHNjYWxlX3Jlc29sdXRpb25fZG93bl9ieRgEIAEoAhJECghwcmlvcml0eRgF", - "IAEoDjIyLnN0cmVhbS52aWRlby5zZnUuZXZlbnQuVmlkZW9MYXllclNldHRp", - "bmcuUHJpb3JpdHkSLQoFY29kZWMYBiABKAsyHi5zdHJlYW0udmlkZW8uc2Z1", - "Lm1vZGVscy5Db2RlYxIVCg1tYXhfZnJhbWVyYXRlGAcgASgNImcKCFByaW9y", - "aXR5Eh0KGVBSSU9SSVRZX0hJR0hfVU5TUEVDSUZJRUQQABIQCgxQUklPUklU", - "WV9MT1cQARITCg9QUklPUklUWV9NRURJVU0QAhIVChFQUklPUklUWV9WRVJZ", - "X0xPVxADIrkBCgtWaWRlb1NlbmRlchJACg1tZWRpYV9yZXF1ZXN0GAEgASgL", - "Mikuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5WaWRlb01lZGlhUmVxdWVzdBIt", - "CgVjb2RlYxgCIAEoCzIeLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkNvZGVj", - "EjkKBmxheWVycxgDIAMoCzIpLnN0cmVhbS52aWRlby5zZnUuZXZlbnQuVmlk", - "ZW9MYXllclNldHRpbmcijgEKFENoYW5nZVB1Ymxpc2hRdWFsaXR5EjoKDWF1", - "ZGlvX3NlbmRlcnMYASADKAsyIy5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LkF1", - "ZGlvU2VuZGVyEjoKDXZpZGVvX3NlbmRlcnMYAiADKAsyIy5zdHJlYW0udmlk", - "ZW8uc2Z1LmV2ZW50LlZpZGVvU2VuZGVyImEKEUNhbGxHcmFudHNVcGRhdGVk", - "EjsKDmN1cnJlbnRfZ3JhbnRzGAEgASgLMiMuc3RyZWFtLnZpZGVvLnNmdS5t", - "b2RlbHMuQ2FsbEdyYW50cxIPCgdtZXNzYWdlGAIgASgJIj8KBkdvQXdheRI1", - "CgZyZWFzb24YASABKA4yJS5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5Hb0F3", - "YXlSZWFzb25CY0ILU2Z1RXZlbnRzVjFQAVo2Z2l0aHViLmNvbS9HZXRTdHJl", - "YW0vcHJvdG9jb2wvcHJvdG9idWYvdmlkZW8vc2Z1L2V2ZW50qgIZU3RyZWFt", - "VmlkZW8udjEuU2Z1LkV2ZW50c2IGcHJvdG8z")); + "dS5ldmVudC5QaW5zQ2hhbmdlZEgAEjcKCmNhbGxfZW5kZWQYFyABKAsyIS5z", + "dHJlYW0udmlkZW8uc2Z1LmV2ZW50LkNhbGxFbmRlZEgAEkkKE3BhcnRpY2lw", + "YW50X3VwZGF0ZWQYGCABKAsyKi5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LlBh", + "cnRpY2lwYW50VXBkYXRlZEgAEl4KHnBhcnRpY2lwYW50X21pZ3JhdGlvbl9j", + "b21wbGV0ZRgZIAEoCzI0LnN0cmVhbS52aWRlby5zZnUuZXZlbnQuUGFydGlj", + "aXBhbnRNaWdyYXRpb25Db21wbGV0ZUgAEk4KFmNoYW5nZV9wdWJsaXNoX29w", + "dGlvbnMYGyABKAsyLC5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LkNoYW5nZVB1", + "Ymxpc2hPcHRpb25zSABCDwoNZXZlbnRfcGF5bG9hZCJnChRDaGFuZ2VQdWJs", + "aXNoT3B0aW9ucxI/Cg9wdWJsaXNoX29wdGlvbnMYASADKAsyJi5zdHJlYW0u", + "dmlkZW8uc2Z1Lm1vZGVscy5QdWJsaXNoT3B0aW9uEg4KBnJlYXNvbhgCIAEo", + "CSIeChxDaGFuZ2VQdWJsaXNoT3B0aW9uc0NvbXBsZXRlIh4KHFBhcnRpY2lw", + "YW50TWlncmF0aW9uQ29tcGxldGUiOQoLUGluc0NoYW5nZWQSKgoEcGlucxgB", + "IAMoCzIcLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlBpbiKHAQoFRXJyb3IS", + "LQoFZXJyb3IYBCABKAsyHi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5FcnJv", + "chJPChJyZWNvbm5lY3Rfc3RyYXRlZ3kYBSABKA4yMy5zdHJlYW0udmlkZW8u", + "c2Z1Lm1vZGVscy5XZWJzb2NrZXRSZWNvbm5lY3RTdHJhdGVneSJZCgpJQ0VU", + "cmlja2xlEjQKCXBlZXJfdHlwZRgBIAEoDjIhLnN0cmVhbS52aWRlby5zZnUu", + "bW9kZWxzLlBlZXJUeXBlEhUKDWljZV9jYW5kaWRhdGUYAiABKAkiQgoKSUNF", + "UmVzdGFydBI0CglwZWVyX3R5cGUYASABKA4yIS5zdHJlYW0udmlkZW8uc2Z1", + "Lm1vZGVscy5QZWVyVHlwZSLwAQoKU2Z1UmVxdWVzdBI7Cgxqb2luX3JlcXVl", + "c3QYASABKAsyIy5zdHJlYW0udmlkZW8uc2Z1LmV2ZW50LkpvaW5SZXF1ZXN0", + "SAASSgoUaGVhbHRoX2NoZWNrX3JlcXVlc3QYAiABKAsyKi5zdHJlYW0udmlk", + "ZW8uc2Z1LmV2ZW50LkhlYWx0aENoZWNrUmVxdWVzdEgAEkYKEmxlYXZlX2Nh", + "bGxfcmVxdWVzdBgDIAEoCzIoLnN0cmVhbS52aWRlby5zZnUuZXZlbnQuTGVh", + "dmVDYWxsUmVxdWVzdEgAQhEKD3JlcXVlc3RfcGF5bG9hZCI2ChBMZWF2ZUNh", + "bGxSZXF1ZXN0EhIKCnNlc3Npb25faWQYASABKAkSDgoGcmVhc29uGAIgASgJ", + "IhQKEkhlYWx0aENoZWNrUmVxdWVzdCJbChNIZWFsdGhDaGVja1Jlc3BvbnNl", + "EkQKEXBhcnRpY2lwYW50X2NvdW50GAEgASgLMikuc3RyZWFtLnZpZGVvLnNm", + "dS5tb2RlbHMuUGFydGljaXBhbnRDb3VudCKiAQoOVHJhY2tQdWJsaXNoZWQS", + "DwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEjAKBHR5cGUY", + "AyABKA4yIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5UcmFja1R5cGUSOQoL", + "cGFydGljaXBhbnQYBCABKAsyJC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5Q", + "YXJ0aWNpcGFudCLiAQoQVHJhY2tVbnB1Ymxpc2hlZBIPCgd1c2VyX2lkGAEg", + "ASgJEhIKCnNlc3Npb25faWQYAiABKAkSMAoEdHlwZRgDIAEoDjIiLnN0cmVh", + "bS52aWRlby5zZnUubW9kZWxzLlRyYWNrVHlwZRI8CgVjYXVzZRgEIAEoDjIt", + "LnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlRyYWNrVW5wdWJsaXNoUmVhc29u", + "EjkKC3BhcnRpY2lwYW50GAUgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2Rl", + "bHMuUGFydGljaXBhbnQi1AMKC0pvaW5SZXF1ZXN0Eg0KBXRva2VuGAEgASgJ", + "EhIKCnNlc3Npb25faWQYAiABKAkSFgoOc3Vic2NyaWJlcl9zZHAYAyABKAkS", + "FQoNcHVibGlzaGVyX3NkcBgIIAEoCRI+Cg5jbGllbnRfZGV0YWlscxgEIAEo", + "CzImLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkNsaWVudERldGFpbHMSOAoJ", + "bWlncmF0aW9uGAUgASgLMiEuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5NaWdy", + "YXRpb25CAhgBEhoKDmZhc3RfcmVjb25uZWN0GAYgASgIQgIYARJDChFyZWNv", + "bm5lY3RfZGV0YWlscxgHIAEoCzIoLnN0cmVhbS52aWRlby5zZnUuZXZlbnQu", + "UmVjb25uZWN0RGV0YWlscxJJChlwcmVmZXJyZWRfcHVibGlzaF9vcHRpb25z", + "GAkgAygLMiYuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUHVibGlzaE9wdGlv", + "bhJNChtwcmVmZXJyZWRfc3Vic2NyaWJlX29wdGlvbnMYCiADKAsyKC5zdHJl", + "YW0udmlkZW8uc2Z1Lm1vZGVscy5TdWJzY3JpYmVPcHRpb24irgIKEFJlY29u", + "bmVjdERldGFpbHMSRQoIc3RyYXRlZ3kYASABKA4yMy5zdHJlYW0udmlkZW8u", + "c2Z1Lm1vZGVscy5XZWJzb2NrZXRSZWNvbm5lY3RTdHJhdGVneRI8ChBhbm5v", + "dW5jZWRfdHJhY2tzGAMgAygLMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMu", + "VHJhY2tJbmZvEkgKDXN1YnNjcmlwdGlvbnMYBCADKAsyMS5zdHJlYW0udmlk", + "ZW8uc2Z1LnNpZ25hbC5UcmFja1N1YnNjcmlwdGlvbkRldGFpbHMSGQoRcmVj", + "b25uZWN0X2F0dGVtcHQYBSABKA0SEwoLZnJvbV9zZnVfaWQYBiABKAkSGwoT", + "cHJldmlvdXNfc2Vzc2lvbl9pZBgHIAEoCSKoAQoJTWlncmF0aW9uEhMKC2Zy", + "b21fc2Z1X2lkGAEgASgJEjwKEGFubm91bmNlZF90cmFja3MYAiADKAsyIi5z", + "dHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5UcmFja0luZm8SSAoNc3Vic2NyaXB0", + "aW9ucxgDIAMoCzIxLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlRyYWNrU3Vi", + "c2NyaXB0aW9uRGV0YWlscyLFAQoMSm9pblJlc3BvbnNlEjYKCmNhbGxfc3Rh", + "dGUYASABKAsyIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5DYWxsU3RhdGUS", + "EwoLcmVjb25uZWN0ZWQYAiABKAgSJwofZmFzdF9yZWNvbm5lY3RfZGVhZGxp", + "bmVfc2Vjb25kcxgDIAEoBRI/Cg9wdWJsaXNoX29wdGlvbnMYBCADKAsyJi5z", + "dHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5QdWJsaXNoT3B0aW9uImAKEVBhcnRp", + "Y2lwYW50Sm9pbmVkEhAKCGNhbGxfY2lkGAEgASgJEjkKC3BhcnRpY2lwYW50", + "GAIgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFydGljaXBhbnQi", + "XgoPUGFydGljaXBhbnRMZWZ0EhAKCGNhbGxfY2lkGAEgASgJEjkKC3BhcnRp", + "Y2lwYW50GAIgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGFydGlj", + "aXBhbnQiYQoSUGFydGljaXBhbnRVcGRhdGVkEhAKCGNhbGxfY2lkGAEgASgJ", + "EjkKC3BhcnRpY2lwYW50GAIgASgLMiQuc3RyZWFtLnZpZGVvLnNmdS5tb2Rl", + "bHMuUGFydGljaXBhbnQiMwoPU3Vic2NyaWJlck9mZmVyEhMKC2ljZV9yZXN0", + "YXJ0GAEgASgIEgsKA3NkcBgCIAEoCSIeCg9QdWJsaXNoZXJBbnN3ZXISCwoD", + "c2RwGAEgASgJIm0KGENvbm5lY3Rpb25RdWFsaXR5Q2hhbmdlZBJRChpjb25u", + "ZWN0aW9uX3F1YWxpdHlfdXBkYXRlcxgBIAMoCzItLnN0cmVhbS52aWRlby5z", + "ZnUuZXZlbnQuQ29ubmVjdGlvblF1YWxpdHlJbmZvIoQBChVDb25uZWN0aW9u", + "UXVhbGl0eUluZm8SDwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIg", + "ASgJEkYKEmNvbm5lY3Rpb25fcXVhbGl0eRgDIAEoDjIqLnN0cmVhbS52aWRl", + "by5zZnUubW9kZWxzLkNvbm5lY3Rpb25RdWFsaXR5Ij0KFkRvbWluYW50U3Bl", + "YWtlckNoYW5nZWQSDwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIg", + "ASgJIlUKCkF1ZGlvTGV2ZWwSDwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9u", + "X2lkGAIgASgJEg0KBWxldmVsGAMgASgCEhMKC2lzX3NwZWFraW5nGAQgASgI", + "Ik0KEUF1ZGlvTGV2ZWxDaGFuZ2VkEjgKDGF1ZGlvX2xldmVscxgBIAMoCzIi", + "LnN0cmVhbS52aWRlby5zZnUuZXZlbnQuQXVkaW9MZXZlbCKPAQoLQXVkaW9T", + "ZW5kZXISLQoFY29kZWMYAiABKAsyHi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVs", + "cy5Db2RlYxI2Cgp0cmFja190eXBlGAMgASgOMiIuc3RyZWFtLnZpZGVvLnNm", + "dS5tb2RlbHMuVHJhY2tUeXBlEhkKEXB1Ymxpc2hfb3B0aW9uX2lkGAQgASgF", + "IsgBChFWaWRlb0xheWVyU2V0dGluZxIMCgRuYW1lGAEgASgJEg4KBmFjdGl2", + "ZRgCIAEoCBITCgttYXhfYml0cmF0ZRgDIAEoBRIgChhzY2FsZV9yZXNvbHV0", + "aW9uX2Rvd25fYnkYBCABKAISLQoFY29kZWMYBiABKAsyHi5zdHJlYW0udmlk", + "ZW8uc2Z1Lm1vZGVscy5Db2RlYxIVCg1tYXhfZnJhbWVyYXRlGAcgASgNEhgK", + "EHNjYWxhYmlsaXR5X21vZGUYCCABKAkiygEKC1ZpZGVvU2VuZGVyEi0KBWNv", + "ZGVjGAIgASgLMh4uc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuQ29kZWMSOQoG", + "bGF5ZXJzGAMgAygLMikuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5WaWRlb0xh", + "eWVyU2V0dGluZxI2Cgp0cmFja190eXBlGAQgASgOMiIuc3RyZWFtLnZpZGVv", + "LnNmdS5tb2RlbHMuVHJhY2tUeXBlEhkKEXB1Ymxpc2hfb3B0aW9uX2lkGAUg", + "ASgFIo4BChRDaGFuZ2VQdWJsaXNoUXVhbGl0eRI6Cg1hdWRpb19zZW5kZXJz", + "GAEgAygLMiMuc3RyZWFtLnZpZGVvLnNmdS5ldmVudC5BdWRpb1NlbmRlchI6", + "Cg12aWRlb19zZW5kZXJzGAIgAygLMiMuc3RyZWFtLnZpZGVvLnNmdS5ldmVu", + "dC5WaWRlb1NlbmRlciJhChFDYWxsR3JhbnRzVXBkYXRlZBI7Cg5jdXJyZW50", + "X2dyYW50cxgBIAEoCzIjLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkNhbGxH", + "cmFudHMSDwoHbWVzc2FnZRgCIAEoCSI/CgZHb0F3YXkSNQoGcmVhc29uGAEg", + "ASgOMiUuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuR29Bd2F5UmVhc29uIkUK", + "CUNhbGxFbmRlZBI4CgZyZWFzb24YASABKA4yKC5zdHJlYW0udmlkZW8uc2Z1", + "Lm1vZGVscy5DYWxsRW5kZWRSZWFzb25CZEILU2Z1RXZlbnRzVjFQAVo2Z2l0", + "aHViLmNvbS9HZXRTdHJlYW0vcHJvdG9jb2wvcHJvdG9idWYvdmlkZW8vc2Z1", + "L2V2ZW50qgIaU3RyZWFtLlZpZGVvLnYxLlNmdS5FdmVudHNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor, global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.SfuEvent), global::StreamVideo.v1.Sfu.Events.SfuEvent.Parser, new[]{ "SubscriberOffer", "PublisherAnswer", "ConnectionQualityChanged", "AudioLevelChanged", "IceTrickle", "ChangePublishQuality", "ParticipantJoined", "ParticipantLeft", "DominantSpeakerChanged", "JoinResponse", "HealthCheckResponse", "TrackPublished", "TrackUnpublished", "Error", "CallGrantsUpdated", "GoAway", "IceRestart", "PinsUpdated" }, new[]{ "EventPayload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.SfuEvent), global::StreamVideo.v1.Sfu.Events.SfuEvent.Parser, new[]{ "SubscriberOffer", "PublisherAnswer", "ConnectionQualityChanged", "AudioLevelChanged", "IceTrickle", "ChangePublishQuality", "ParticipantJoined", "ParticipantLeft", "DominantSpeakerChanged", "JoinResponse", "HealthCheckResponse", "TrackPublished", "TrackUnpublished", "Error", "CallGrantsUpdated", "GoAway", "IceRestart", "PinsUpdated", "CallEnded", "ParticipantUpdated", "ParticipantMigrationComplete", "ChangePublishOptions" }, new[]{ "EventPayload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ChangePublishOptions), global::StreamVideo.v1.Sfu.Events.ChangePublishOptions.Parser, new[]{ "PublishOptions", "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ChangePublishOptionsComplete), global::StreamVideo.v1.Sfu.Events.ChangePublishOptionsComplete.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete), global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.PinsChanged), global::StreamVideo.v1.Sfu.Events.PinsChanged.Parser, new[]{ "Pins" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.Error), global::StreamVideo.v1.Sfu.Events.Error.Parser, new[]{ "Error_" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.Error), global::StreamVideo.v1.Sfu.Events.Error.Parser, new[]{ "Error_", "ReconnectStrategy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ICETrickle), global::StreamVideo.v1.Sfu.Events.ICETrickle.Parser, new[]{ "PeerType", "IceCandidate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ICERestart), global::StreamVideo.v1.Sfu.Events.ICERestart.Parser, new[]{ "PeerType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.SfuRequest), global::StreamVideo.v1.Sfu.Events.SfuRequest.Parser, new[]{ "JoinRequest", "HealthCheckRequest" }, new[]{ "RequestPayload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.SfuRequest), global::StreamVideo.v1.Sfu.Events.SfuRequest.Parser, new[]{ "JoinRequest", "HealthCheckRequest", "LeaveCallRequest" }, new[]{ "RequestPayload" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.LeaveCallRequest), global::StreamVideo.v1.Sfu.Events.LeaveCallRequest.Parser, new[]{ "SessionId", "Reason" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.HealthCheckRequest), global::StreamVideo.v1.Sfu.Events.HealthCheckRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.HealthCheckResponse), global::StreamVideo.v1.Sfu.Events.HealthCheckResponse.Parser, new[]{ "ParticipantCount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.TrackPublished), global::StreamVideo.v1.Sfu.Events.TrackPublished.Parser, new[]{ "UserId", "SessionId", "Type", "Participant" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.TrackUnpublished), global::StreamVideo.v1.Sfu.Events.TrackUnpublished.Parser, new[]{ "UserId", "SessionId", "Type", "Cause", "Participant" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.JoinRequest), global::StreamVideo.v1.Sfu.Events.JoinRequest.Parser, new[]{ "Token", "SessionId", "SubscriberSdp", "ClientDetails", "Migration", "FastReconnect" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.JoinRequest), global::StreamVideo.v1.Sfu.Events.JoinRequest.Parser, new[]{ "Token", "SessionId", "SubscriberSdp", "PublisherSdp", "ClientDetails", "Migration", "FastReconnect", "ReconnectDetails", "PreferredPublishOptions", "PreferredSubscribeOptions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ReconnectDetails), global::StreamVideo.v1.Sfu.Events.ReconnectDetails.Parser, new[]{ "Strategy", "AnnouncedTracks", "Subscriptions", "ReconnectAttempt", "FromSfuId", "PreviousSessionId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.Migration), global::StreamVideo.v1.Sfu.Events.Migration.Parser, new[]{ "FromSfuId", "AnnouncedTracks", "Subscriptions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.JoinResponse), global::StreamVideo.v1.Sfu.Events.JoinResponse.Parser, new[]{ "CallState", "Reconnected" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.JoinResponse), global::StreamVideo.v1.Sfu.Events.JoinResponse.Parser, new[]{ "CallState", "Reconnected", "FastReconnectDeadlineSeconds", "PublishOptions" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ParticipantJoined), global::StreamVideo.v1.Sfu.Events.ParticipantJoined.Parser, new[]{ "CallCid", "Participant" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ParticipantLeft), global::StreamVideo.v1.Sfu.Events.ParticipantLeft.Parser, new[]{ "CallCid", "Participant" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ParticipantUpdated), global::StreamVideo.v1.Sfu.Events.ParticipantUpdated.Parser, new[]{ "CallCid", "Participant" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.SubscriberOffer), global::StreamVideo.v1.Sfu.Events.SubscriberOffer.Parser, new[]{ "IceRestart", "Sdp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.PublisherAnswer), global::StreamVideo.v1.Sfu.Events.PublisherAnswer.Parser, new[]{ "Sdp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ConnectionQualityChanged), global::StreamVideo.v1.Sfu.Events.ConnectionQualityChanged.Parser, new[]{ "ConnectionQualityUpdates" }, null, null, null, null), @@ -156,14 +190,13 @@ static EventsReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.DominantSpeakerChanged), global::StreamVideo.v1.Sfu.Events.DominantSpeakerChanged.Parser, new[]{ "UserId", "SessionId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.AudioLevel), global::StreamVideo.v1.Sfu.Events.AudioLevel.Parser, new[]{ "UserId", "SessionId", "Level", "IsSpeaking" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.AudioLevelChanged), global::StreamVideo.v1.Sfu.Events.AudioLevelChanged.Parser, new[]{ "AudioLevels" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.AudioMediaRequest), global::StreamVideo.v1.Sfu.Events.AudioMediaRequest.Parser, new[]{ "ChannelCount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.AudioSender), global::StreamVideo.v1.Sfu.Events.AudioSender.Parser, new[]{ "MediaRequest", "Codec" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.VideoMediaRequest), global::StreamVideo.v1.Sfu.Events.VideoMediaRequest.Parser, new[]{ "IdealHeight", "IdealWidth", "IdealFrameRate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.VideoLayerSetting), global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Parser, new[]{ "Name", "Active", "MaxBitrate", "ScaleResolutionDownBy", "Priority", "Codec", "MaxFramerate" }, null, new[]{ typeof(global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.VideoSender), global::StreamVideo.v1.Sfu.Events.VideoSender.Parser, new[]{ "MediaRequest", "Codec", "Layers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.AudioSender), global::StreamVideo.v1.Sfu.Events.AudioSender.Parser, new[]{ "Codec", "TrackType", "PublishOptionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.VideoLayerSetting), global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Parser, new[]{ "Name", "Active", "MaxBitrate", "ScaleResolutionDownBy", "Codec", "MaxFramerate", "ScalabilityMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.VideoSender), global::StreamVideo.v1.Sfu.Events.VideoSender.Parser, new[]{ "Codec", "Layers", "TrackType", "PublishOptionId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.ChangePublishQuality), global::StreamVideo.v1.Sfu.Events.ChangePublishQuality.Parser, new[]{ "AudioSenders", "VideoSenders" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.CallGrantsUpdated), global::StreamVideo.v1.Sfu.Events.CallGrantsUpdated.Parser, new[]{ "CurrentGrants", "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.GoAway), global::StreamVideo.v1.Sfu.Events.GoAway.Parser, new[]{ "Reason" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.GoAway), global::StreamVideo.v1.Sfu.Events.GoAway.Parser, new[]{ "Reason" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Events.CallEnded), global::StreamVideo.v1.Sfu.Events.CallEnded.Parser, new[]{ "Reason" }, null, null, null, null) })); } #endregion @@ -173,6 +206,7 @@ static EventsReflection() { /// /// SFUEvent is a message that is sent from the SFU to the client. /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class SfuEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -262,6 +296,18 @@ public SfuEvent(SfuEvent other) : this() { case EventPayloadOneofCase.PinsUpdated: PinsUpdated = other.PinsUpdated.Clone(); break; + case EventPayloadOneofCase.CallEnded: + CallEnded = other.CallEnded.Clone(); + break; + case EventPayloadOneofCase.ParticipantUpdated: + ParticipantUpdated = other.ParticipantUpdated.Clone(); + break; + case EventPayloadOneofCase.ParticipantMigrationComplete: + ParticipantMigrationComplete = other.ParticipantMigrationComplete.Clone(); + break; + case EventPayloadOneofCase.ChangePublishOptions: + ChangePublishOptions = other.ChangePublishOptions.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -564,6 +610,67 @@ public SfuEvent Clone() { } } + /// Field number for the "call_ended" field. + public const int CallEndedFieldNumber = 23; + /// + /// CallEnded is sent by the SFU to the client to signal that the call has ended. + /// The reason may specify why the call has ended. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Events.CallEnded CallEnded { + get { return eventPayloadCase_ == EventPayloadOneofCase.CallEnded ? (global::StreamVideo.v1.Sfu.Events.CallEnded) eventPayload_ : null; } + set { + eventPayload_ = value; + eventPayloadCase_ = value == null ? EventPayloadOneofCase.None : EventPayloadOneofCase.CallEnded; + } + } + + /// Field number for the "participant_updated" field. + public const int ParticipantUpdatedFieldNumber = 24; + /// + /// ParticipantUpdated is sent when user data is updated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Events.ParticipantUpdated ParticipantUpdated { + get { return eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated ? (global::StreamVideo.v1.Sfu.Events.ParticipantUpdated) eventPayload_ : null; } + set { + eventPayload_ = value; + eventPayloadCase_ = value == null ? EventPayloadOneofCase.None : EventPayloadOneofCase.ParticipantUpdated; + } + } + + /// Field number for the "participant_migration_complete" field. + public const int ParticipantMigrationCompleteFieldNumber = 25; + /// + /// ParticipantMigrationComplete is sent when the participant migration is complete + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete ParticipantMigrationComplete { + get { return eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete ? (global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete) eventPayload_ : null; } + set { + eventPayload_ = value; + eventPayloadCase_ = value == null ? EventPayloadOneofCase.None : EventPayloadOneofCase.ParticipantMigrationComplete; + } + } + + /// Field number for the "change_publish_options" field. + public const int ChangePublishOptionsFieldNumber = 27; + /// + /// ChangePublishOptions is sent to signal the change in publish options such as a new codec or simulcast layers + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Events.ChangePublishOptions ChangePublishOptions { + get { return eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions ? (global::StreamVideo.v1.Sfu.Events.ChangePublishOptions) eventPayload_ : null; } + set { + eventPayload_ = value; + eventPayloadCase_ = value == null ? EventPayloadOneofCase.None : EventPayloadOneofCase.ChangePublishOptions; + } + } + private object eventPayload_; /// Enum of possible cases for the "event_payload" oneof. public enum EventPayloadOneofCase { @@ -586,6 +693,10 @@ public enum EventPayloadOneofCase { GoAway = 20, IceRestart = 21, PinsUpdated = 22, + CallEnded = 23, + ParticipantUpdated = 24, + ParticipantMigrationComplete = 25, + ChangePublishOptions = 27, } private EventPayloadOneofCase eventPayloadCase_ = EventPayloadOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -634,6 +745,10 @@ public bool Equals(SfuEvent other) { if (!object.Equals(GoAway, other.GoAway)) return false; if (!object.Equals(IceRestart, other.IceRestart)) return false; if (!object.Equals(PinsUpdated, other.PinsUpdated)) return false; + if (!object.Equals(CallEnded, other.CallEnded)) return false; + if (!object.Equals(ParticipantUpdated, other.ParticipantUpdated)) return false; + if (!object.Equals(ParticipantMigrationComplete, other.ParticipantMigrationComplete)) return false; + if (!object.Equals(ChangePublishOptions, other.ChangePublishOptions)) return false; if (EventPayloadCase != other.EventPayloadCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -660,6 +775,10 @@ public override int GetHashCode() { if (eventPayloadCase_ == EventPayloadOneofCase.GoAway) hash ^= GoAway.GetHashCode(); if (eventPayloadCase_ == EventPayloadOneofCase.IceRestart) hash ^= IceRestart.GetHashCode(); if (eventPayloadCase_ == EventPayloadOneofCase.PinsUpdated) hash ^= PinsUpdated.GetHashCode(); + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) hash ^= CallEnded.GetHashCode(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) hash ^= ParticipantUpdated.GetHashCode(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) hash ^= ParticipantMigrationComplete.GetHashCode(); + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) hash ^= ChangePublishOptions.GetHashCode(); hash ^= (int) eventPayloadCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -751,6 +870,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 1); output.WriteMessage(PinsUpdated); } + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) { + output.WriteRawTag(186, 1); + output.WriteMessage(CallEnded); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) { + output.WriteRawTag(194, 1); + output.WriteMessage(ParticipantUpdated); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) { + output.WriteRawTag(202, 1); + output.WriteMessage(ParticipantMigrationComplete); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) { + output.WriteRawTag(218, 1); + output.WriteMessage(ChangePublishOptions); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -833,6 +968,22 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 1); output.WriteMessage(PinsUpdated); } + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) { + output.WriteRawTag(186, 1); + output.WriteMessage(CallEnded); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) { + output.WriteRawTag(194, 1); + output.WriteMessage(ParticipantUpdated); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) { + output.WriteRawTag(202, 1); + output.WriteMessage(ParticipantMigrationComplete); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) { + output.WriteRawTag(218, 1); + output.WriteMessage(ChangePublishOptions); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -897,6 +1048,18 @@ public int CalculateSize() { if (eventPayloadCase_ == EventPayloadOneofCase.PinsUpdated) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(PinsUpdated); } + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CallEnded); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantUpdated); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParticipantMigrationComplete); + } + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChangePublishOptions); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1018,6 +1181,30 @@ public void MergeFrom(SfuEvent other) { } PinsUpdated.MergeFrom(other.PinsUpdated); break; + case EventPayloadOneofCase.CallEnded: + if (CallEnded == null) { + CallEnded = new global::StreamVideo.v1.Sfu.Events.CallEnded(); + } + CallEnded.MergeFrom(other.CallEnded); + break; + case EventPayloadOneofCase.ParticipantUpdated: + if (ParticipantUpdated == null) { + ParticipantUpdated = new global::StreamVideo.v1.Sfu.Events.ParticipantUpdated(); + } + ParticipantUpdated.MergeFrom(other.ParticipantUpdated); + break; + case EventPayloadOneofCase.ParticipantMigrationComplete: + if (ParticipantMigrationComplete == null) { + ParticipantMigrationComplete = new global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete(); + } + ParticipantMigrationComplete.MergeFrom(other.ParticipantMigrationComplete); + break; + case EventPayloadOneofCase.ChangePublishOptions: + if (ChangePublishOptions == null) { + ChangePublishOptions = new global::StreamVideo.v1.Sfu.Events.ChangePublishOptions(); + } + ChangePublishOptions.MergeFrom(other.ChangePublishOptions); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1197,6 +1384,42 @@ public void MergeFrom(pb::CodedInputStream input) { PinsUpdated = subBuilder; break; } + case 186: { + global::StreamVideo.v1.Sfu.Events.CallEnded subBuilder = new global::StreamVideo.v1.Sfu.Events.CallEnded(); + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) { + subBuilder.MergeFrom(CallEnded); + } + input.ReadMessage(subBuilder); + CallEnded = subBuilder; + break; + } + case 194: { + global::StreamVideo.v1.Sfu.Events.ParticipantUpdated subBuilder = new global::StreamVideo.v1.Sfu.Events.ParticipantUpdated(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) { + subBuilder.MergeFrom(ParticipantUpdated); + } + input.ReadMessage(subBuilder); + ParticipantUpdated = subBuilder; + break; + } + case 202: { + global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete subBuilder = new global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) { + subBuilder.MergeFrom(ParticipantMigrationComplete); + } + input.ReadMessage(subBuilder); + ParticipantMigrationComplete = subBuilder; + break; + } + case 218: { + global::StreamVideo.v1.Sfu.Events.ChangePublishOptions subBuilder = new global::StreamVideo.v1.Sfu.Events.ChangePublishOptions(); + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) { + subBuilder.MergeFrom(ChangePublishOptions); + } + input.ReadMessage(subBuilder); + ChangePublishOptions = subBuilder; + break; + } } } #endif @@ -1374,6 +1597,42 @@ public void MergeFrom(pb::CodedInputStream input) { PinsUpdated = subBuilder; break; } + case 186: { + global::StreamVideo.v1.Sfu.Events.CallEnded subBuilder = new global::StreamVideo.v1.Sfu.Events.CallEnded(); + if (eventPayloadCase_ == EventPayloadOneofCase.CallEnded) { + subBuilder.MergeFrom(CallEnded); + } + input.ReadMessage(subBuilder); + CallEnded = subBuilder; + break; + } + case 194: { + global::StreamVideo.v1.Sfu.Events.ParticipantUpdated subBuilder = new global::StreamVideo.v1.Sfu.Events.ParticipantUpdated(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantUpdated) { + subBuilder.MergeFrom(ParticipantUpdated); + } + input.ReadMessage(subBuilder); + ParticipantUpdated = subBuilder; + break; + } + case 202: { + global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete subBuilder = new global::StreamVideo.v1.Sfu.Events.ParticipantMigrationComplete(); + if (eventPayloadCase_ == EventPayloadOneofCase.ParticipantMigrationComplete) { + subBuilder.MergeFrom(ParticipantMigrationComplete); + } + input.ReadMessage(subBuilder); + ParticipantMigrationComplete = subBuilder; + break; + } + case 218: { + global::StreamVideo.v1.Sfu.Events.ChangePublishOptions subBuilder = new global::StreamVideo.v1.Sfu.Events.ChangePublishOptions(); + if (eventPayloadCase_ == EventPayloadOneofCase.ChangePublishOptions) { + subBuilder.MergeFrom(ChangePublishOptions); + } + input.ReadMessage(subBuilder); + ChangePublishOptions = subBuilder; + break; + } } } } @@ -1381,16 +1640,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class PinsChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ChangePublishOptions : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PinsChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangePublishOptions()); 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)] @@ -1406,7 +1666,7 @@ internal sealed partial class PinsChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PinsChanged() { + public ChangePublishOptions() { OnConstruction(); } @@ -1414,48 +1674,58 @@ public PinsChanged() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PinsChanged(PinsChanged other) : this() { - pins_ = other.pins_.Clone(); + public ChangePublishOptions(ChangePublishOptions other) : this() { + publishOptions_ = other.publishOptions_.Clone(); + reason_ = other.reason_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PinsChanged Clone() { - return new PinsChanged(this); + public ChangePublishOptions Clone() { + return new ChangePublishOptions(this); } - /// Field number for the "pins" field. - public const int PinsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_pins_codec - = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Models.Pin.Parser); - private readonly pbc::RepeatedField pins_ = new pbc::RepeatedField(); - /// - /// the list of pins in the call. - /// Pins are ordered in descending order (most important first). - /// + /// Field number for the "publish_options" field. + public const int PublishOptionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_publishOptions_codec + = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Models.PublishOption.Parser); + private readonly pbc::RepeatedField publishOptions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Pins { - get { return pins_; } + public pbc::RepeatedField PublishOptions { + get { return publishOptions_; } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private string reason_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = 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 PinsChanged); + return Equals(other as ChangePublishOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PinsChanged other) { + public bool Equals(ChangePublishOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!pins_.Equals(other.pins_)) return false; + if(!publishOptions_.Equals(other.publishOptions_)) return false; + if (Reason != other.Reason) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1463,7 +1733,8 @@ public bool Equals(PinsChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= pins_.GetHashCode(); + hash ^= publishOptions_.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1482,7 +1753,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - pins_.WriteTo(output, _repeated_pins_codec); + publishOptions_.WriteTo(output, _repeated_publishOptions_codec); + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1493,7 +1768,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) { - pins_.WriteTo(ref output, _repeated_pins_codec); + publishOptions_.WriteTo(ref output, _repeated_publishOptions_codec); + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1504,7 +1783,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += pins_.CalculateSize(_repeated_pins_codec); + size += publishOptions_.CalculateSize(_repeated_publishOptions_codec); + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1513,11 +1795,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PinsChanged other) { + public void MergeFrom(ChangePublishOptions other) { if (other == null) { return; } - pins_.Add(other.pins_); + publishOptions_.Add(other.publishOptions_); + if (other.Reason.Length != 0) { + Reason = other.Reason; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1534,7 +1819,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - pins_.AddEntriesFrom(input, _repeated_pins_codec); + publishOptions_.AddEntriesFrom(input, _repeated_publishOptions_codec); + break; + } + case 18: { + Reason = input.ReadString(); break; } } @@ -1553,7 +1842,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - pins_.AddEntriesFrom(ref input, _repeated_pins_codec); + publishOptions_.AddEntriesFrom(ref input, _repeated_publishOptions_codec); + break; + } + case 18: { + Reason = input.ReadString(); break; } } @@ -1563,16 +1856,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Error : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ChangePublishOptionsComplete : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangePublishOptionsComplete()); 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)] @@ -1588,7 +1882,7 @@ internal sealed partial class Error : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error() { + public ChangePublishOptionsComplete() { OnConstruction(); } @@ -1596,45 +1890,31 @@ public Error() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error(Error other) : this() { - error_ = other.error_ != null ? other.error_.Clone() : null; + public ChangePublishOptionsComplete(ChangePublishOptionsComplete other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error Clone() { - return new Error(this); - } - - /// Field number for the "error" field. - public const int Error_FieldNumber = 4; - private global::StreamVideo.v1.Sfu.Models.Error error_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Error Error_ { - get { return error_; } - set { - error_ = value; - } + public ChangePublishOptionsComplete Clone() { + return new ChangePublishOptionsComplete(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Error); + return Equals(other as ChangePublishOptionsComplete); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Error other) { + public bool Equals(ChangePublishOptionsComplete other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Error_, other.Error_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1642,7 +1922,6 @@ public bool Equals(Error other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (error_ != null) hash ^= Error_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1661,10 +1940,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (error_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Error_); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1675,10 +1950,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 (error_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Error_); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1689,9 +1960,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (error_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error_); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1700,16 +1968,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Error other) { + public void MergeFrom(ChangePublishOptionsComplete other) { if (other == null) { return; } - if (other.error_ != null) { - if (error_ == null) { - Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); - } - Error_.MergeFrom(other.Error_); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1725,13 +1987,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 34: { - if (error_ == null) { - Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); - } - input.ReadMessage(Error_); - break; - } } } #endif @@ -1747,13 +2002,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 34: { - if (error_ == null) { - Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); - } - input.ReadMessage(Error_); - break; - } } } } @@ -1761,16 +2009,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ICETrickle : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ParticipantMigrationComplete : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICETrickle()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantMigrationComplete()); 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)] @@ -1786,7 +2035,7 @@ internal sealed partial class ICETrickle : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle() { + public ParticipantMigrationComplete() { OnConstruction(); } @@ -1794,59 +2043,31 @@ public ICETrickle() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle(ICETrickle other) : this() { - peerType_ = other.peerType_; - iceCandidate_ = other.iceCandidate_; + public ParticipantMigrationComplete(ParticipantMigrationComplete other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle Clone() { - return new ICETrickle(this); - } - - /// Field number for the "peer_type" field. - public const int PeerTypeFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { - get { return peerType_; } - set { - peerType_ = value; - } - } - - /// Field number for the "ice_candidate" field. - public const int IceCandidateFieldNumber = 2; - private string iceCandidate_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IceCandidate { - get { return iceCandidate_; } - set { - iceCandidate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ParticipantMigrationComplete Clone() { + return new ParticipantMigrationComplete(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ICETrickle); + return Equals(other as ParticipantMigrationComplete); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ICETrickle other) { + public bool Equals(ParticipantMigrationComplete other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PeerType != other.PeerType) return false; - if (IceCandidate != other.IceCandidate) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1854,8 +2075,6 @@ public bool Equals(ICETrickle other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); - if (IceCandidate.Length != 0) hash ^= IceCandidate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1874,14 +2093,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PeerType); - } - if (IceCandidate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(IceCandidate); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1892,14 +2103,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 (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PeerType); - } - if (IceCandidate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(IceCandidate); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1910,12 +2113,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); - } - if (IceCandidate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IceCandidate); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1924,16 +2121,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ICETrickle other) { + public void MergeFrom(ParticipantMigrationComplete other) { if (other == null) { return; } - if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - PeerType = other.PeerType; - } - if (other.IceCandidate.Length != 0) { - IceCandidate = other.IceCandidate; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1949,14 +2140,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); - break; - } - case 18: { - IceCandidate = input.ReadString(); - break; - } } } #endif @@ -1972,14 +2155,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); - break; - } - case 18: { - IceCandidate = input.ReadString(); - break; - } } } } @@ -1987,16 +2162,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ICERestart : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class PinsChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICERestart()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PinsChanged()); 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)] @@ -2012,7 +2188,7 @@ internal sealed partial class ICERestart : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICERestart() { + public PinsChanged() { OnConstruction(); } @@ -2020,45 +2196,48 @@ public ICERestart() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICERestart(ICERestart other) : this() { - peerType_ = other.peerType_; + public PinsChanged(PinsChanged other) : this() { + pins_ = other.pins_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICERestart Clone() { - return new ICERestart(this); + public PinsChanged Clone() { + return new PinsChanged(this); } - /// Field number for the "peer_type" field. - public const int PeerTypeFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; + /// Field number for the "pins" field. + public const int PinsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_pins_codec + = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Models.Pin.Parser); + private readonly pbc::RepeatedField pins_ = new pbc::RepeatedField(); + /// + /// the list of pins in the call. + /// Pins are ordered in descending order (most important first). + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { - get { return peerType_; } - set { - peerType_ = value; - } + public pbc::RepeatedField Pins { + get { return pins_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ICERestart); + return Equals(other as PinsChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ICERestart other) { + public bool Equals(PinsChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PeerType != other.PeerType) return false; + if(!pins_.Equals(other.pins_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2066,7 +2245,7 @@ public bool Equals(ICERestart other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); + hash ^= pins_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2085,10 +2264,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PeerType); - } + pins_.WriteTo(output, _repeated_pins_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2099,10 +2275,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 (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PeerType); - } + pins_.WriteTo(ref output, _repeated_pins_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2113,9 +2286,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); - } + size += pins_.CalculateSize(_repeated_pins_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2124,13 +2295,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ICERestart other) { + public void MergeFrom(PinsChanged other) { if (other == null) { return; } - if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - PeerType = other.PeerType; - } + pins_.Add(other.pins_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2146,8 +2315,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + case 10: { + pins_.AddEntriesFrom(input, _repeated_pins_codec); break; } } @@ -2165,8 +2334,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + case 10: { + pins_.AddEntriesFrom(ref input, _repeated_pins_codec); break; } } @@ -2176,19 +2345,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// SfuRequest is a message that is sent from the client to the SFU. - /// - internal sealed partial class SfuRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SfuRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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)] @@ -2204,7 +2371,7 @@ internal sealed partial class SfuRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SfuRequest() { + public Error() { OnConstruction(); } @@ -2212,88 +2379,62 @@ public SfuRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SfuRequest(SfuRequest other) : this() { - switch (other.RequestPayloadCase) { - case RequestPayloadOneofCase.JoinRequest: - JoinRequest = other.JoinRequest.Clone(); - break; - case RequestPayloadOneofCase.HealthCheckRequest: - HealthCheckRequest = other.HealthCheckRequest.Clone(); - break; - } - + public Error(Error other) : this() { + error_ = other.error_ != null ? other.error_.Clone() : null; + reconnectStrategy_ = other.reconnectStrategy_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SfuRequest Clone() { - return new SfuRequest(this); + public Error Clone() { + return new Error(this); } - /// Field number for the "join_request" field. - public const int JoinRequestFieldNumber = 1; + /// Field number for the "error" field. + public const int Error_FieldNumber = 4; + private global::StreamVideo.v1.Sfu.Models.Error error_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Events.JoinRequest JoinRequest { - get { return requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest ? (global::StreamVideo.v1.Sfu.Events.JoinRequest) requestPayload_ : null; } + public global::StreamVideo.v1.Sfu.Models.Error Error_ { + get { return error_; } set { - requestPayload_ = value; - requestPayloadCase_ = value == null ? RequestPayloadOneofCase.None : RequestPayloadOneofCase.JoinRequest; + error_ = value; } } - /// Field number for the "health_check_request" field. - public const int HealthCheckRequestFieldNumber = 2; + /// Field number for the "reconnect_strategy" field. + public const int ReconnectStrategyFieldNumber = 5; + private global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy reconnectStrategy_ = global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified; + /// + /// returns the reconnect strategy to be used by the client + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Events.HealthCheckRequest HealthCheckRequest { - get { return requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest ? (global::StreamVideo.v1.Sfu.Events.HealthCheckRequest) requestPayload_ : null; } + public global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy ReconnectStrategy { + get { return reconnectStrategy_; } set { - requestPayload_ = value; - requestPayloadCase_ = value == null ? RequestPayloadOneofCase.None : RequestPayloadOneofCase.HealthCheckRequest; + reconnectStrategy_ = value; } } - private object requestPayload_; - /// Enum of possible cases for the "request_payload" oneof. - public enum RequestPayloadOneofCase { - None = 0, - JoinRequest = 1, - HealthCheckRequest = 2, - } - private RequestPayloadOneofCase requestPayloadCase_ = RequestPayloadOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestPayloadOneofCase RequestPayloadCase { - get { return requestPayloadCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRequestPayload() { - requestPayloadCase_ = RequestPayloadOneofCase.None; - requestPayload_ = null; - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SfuRequest); + return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SfuRequest other) { + public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(JoinRequest, other.JoinRequest)) return false; - if (!object.Equals(HealthCheckRequest, other.HealthCheckRequest)) return false; - if (RequestPayloadCase != other.RequestPayloadCase) return false; + if (!object.Equals(Error_, other.Error_)) return false; + if (ReconnectStrategy != other.ReconnectStrategy) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2301,9 +2442,8 @@ public bool Equals(SfuRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) hash ^= JoinRequest.GetHashCode(); - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) hash ^= HealthCheckRequest.GetHashCode(); - hash ^= (int) requestPayloadCase_; + if (error_ != null) hash ^= Error_.GetHashCode(); + if (ReconnectStrategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) hash ^= ReconnectStrategy.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2322,13 +2462,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { - output.WriteRawTag(10); - output.WriteMessage(JoinRequest); + if (error_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Error_); } - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { - output.WriteRawTag(18); - output.WriteMessage(HealthCheckRequest); + if (ReconnectStrategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) ReconnectStrategy); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2340,13 +2480,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 (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { - output.WriteRawTag(10); - output.WriteMessage(JoinRequest); + if (error_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Error_); } - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { - output.WriteRawTag(18); - output.WriteMessage(HealthCheckRequest); + if (ReconnectStrategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(40); + output.WriteEnum((int) ReconnectStrategy); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2358,11 +2498,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinRequest); + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error_); } - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HealthCheckRequest); + if (ReconnectStrategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReconnectStrategy); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2372,25 +2512,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SfuRequest other) { + public void MergeFrom(Error other) { if (other == null) { return; } - switch (other.RequestPayloadCase) { - case RequestPayloadOneofCase.JoinRequest: - if (JoinRequest == null) { - JoinRequest = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); - } - JoinRequest.MergeFrom(other.JoinRequest); - break; - case RequestPayloadOneofCase.HealthCheckRequest: - if (HealthCheckRequest == null) { - HealthCheckRequest = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); - } - HealthCheckRequest.MergeFrom(other.HealthCheckRequest); - break; + if (other.error_ != null) { + if (error_ == null) { + Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); + } + Error_.MergeFrom(other.Error_); + } + if (other.ReconnectStrategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + ReconnectStrategy = other.ReconnectStrategy; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2406,22 +2540,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - global::StreamVideo.v1.Sfu.Events.JoinRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); - if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { - subBuilder.MergeFrom(JoinRequest); + case 34: { + if (error_ == null) { + Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); } - input.ReadMessage(subBuilder); - JoinRequest = subBuilder; + input.ReadMessage(Error_); break; } - case 18: { - global::StreamVideo.v1.Sfu.Events.HealthCheckRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { - subBuilder.MergeFrom(HealthCheckRequest); - } - input.ReadMessage(subBuilder); - HealthCheckRequest = subBuilder; + case 40: { + ReconnectStrategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); break; } } @@ -2439,22 +2566,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - global::StreamVideo.v1.Sfu.Events.JoinRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); - if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { - subBuilder.MergeFrom(JoinRequest); + case 34: { + if (error_ == null) { + Error_ = new global::StreamVideo.v1.Sfu.Models.Error(); } - input.ReadMessage(subBuilder); - JoinRequest = subBuilder; + input.ReadMessage(Error_); break; } - case 18: { - global::StreamVideo.v1.Sfu.Events.HealthCheckRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); - if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { - subBuilder.MergeFrom(HealthCheckRequest); - } - input.ReadMessage(subBuilder); - HealthCheckRequest = subBuilder; + case 40: { + ReconnectStrategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); break; } } @@ -2464,16 +2584,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class HealthCheckRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ICETrickle : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HealthCheckRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICETrickle()); 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)] @@ -2489,7 +2610,7 @@ internal sealed partial class HealthCheckRequest : pb::IMessageField number for the "peer_type" field. + public const int PeerTypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { + get { return peerType_; } + set { + peerType_ = value; + } + } + + /// Field number for the "ice_candidate" field. + public const int IceCandidateFieldNumber = 2; + private string iceCandidate_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IceCandidate { + get { return iceCandidate_; } + set { + iceCandidate_ = 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 HealthCheckRequest); + return Equals(other as ICETrickle); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HealthCheckRequest other) { + public bool Equals(ICETrickle other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (PeerType != other.PeerType) return false; + if (IceCandidate != other.IceCandidate) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2529,6 +2678,8 @@ public bool Equals(HealthCheckRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); + if (IceCandidate.Length != 0) hash ^= IceCandidate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2547,6 +2698,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); + } + if (IceCandidate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(IceCandidate); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2557,6 +2716,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 (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); + } + if (IceCandidate.Length != 0) { + output.WriteRawTag(18); + output.WriteString(IceCandidate); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2567,6 +2734,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); + } + if (IceCandidate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IceCandidate); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2575,10 +2748,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HealthCheckRequest other) { + public void MergeFrom(ICETrickle other) { if (other == null) { return; } + if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + PeerType = other.PeerType; + } + if (other.IceCandidate.Length != 0) { + IceCandidate = other.IceCandidate; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2594,6 +2773,14 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + break; + } + case 18: { + IceCandidate = input.ReadString(); + break; + } } } #endif @@ -2609,6 +2796,14 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + break; + } + case 18: { + IceCandidate = input.ReadString(); + break; + } } } } @@ -2616,16 +2811,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class HealthCheckResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ICERestart : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HealthCheckResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICERestart()); 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)] @@ -2641,7 +2837,7 @@ internal sealed partial class HealthCheckResponse : pb::IMessageField number for the "participant_count" field. - public const int ParticipantCountFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.ParticipantCount participantCount_; + /// Field number for the "peer_type" field. + public const int PeerTypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.ParticipantCount ParticipantCount { - get { return participantCount_; } + public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { + get { return peerType_; } set { - participantCount_ = value; + peerType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as HealthCheckResponse); + return Equals(other as ICERestart); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HealthCheckResponse other) { + public bool Equals(ICERestart other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(ParticipantCount, other.ParticipantCount)) return false; + if (PeerType != other.PeerType) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2695,7 +2891,7 @@ public bool Equals(HealthCheckResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (participantCount_ != null) hash ^= ParticipantCount.GetHashCode(); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2714,9 +2910,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (participantCount_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ParticipantCount); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2728,9 +2924,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 (participantCount_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ParticipantCount); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -2742,8 +2938,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (participantCount_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantCount); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -2753,15 +2949,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HealthCheckResponse other) { + public void MergeFrom(ICERestart other) { if (other == null) { return; } - if (other.participantCount_ != null) { - if (participantCount_ == null) { - ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); - } - ParticipantCount.MergeFrom(other.ParticipantCount); + if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + PeerType = other.PeerType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2778,11 +2971,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (participantCount_ == null) { - ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); - } - input.ReadMessage(ParticipantCount); + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); break; } } @@ -2800,11 +2990,8 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (participantCount_ == null) { - ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); - } - input.ReadMessage(ParticipantCount); + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); break; } } @@ -2814,16 +3001,20 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class TrackPublished : pb::IMessage + /// + /// SfuRequest is a message that is sent from the client to the SFU. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class SfuRequest : 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 SfuRequest()); 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)] @@ -2839,7 +3030,7 @@ internal sealed partial class TrackPublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished() { + public SfuRequest() { OnConstruction(); } @@ -2847,73 +3038,991 @@ public TrackPublished() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackPublished(TrackPublished other) : this() { - userId_ = other.userId_; - sessionId_ = other.sessionId_; - type_ = other.type_; - participant_ = other.participant_ != null ? other.participant_.Clone() : null; + public SfuRequest(SfuRequest other) : this() { + switch (other.RequestPayloadCase) { + case RequestPayloadOneofCase.JoinRequest: + JoinRequest = other.JoinRequest.Clone(); + break; + case RequestPayloadOneofCase.HealthCheckRequest: + HealthCheckRequest = other.HealthCheckRequest.Clone(); + break; + case RequestPayloadOneofCase.LeaveCallRequest: + LeaveCallRequest = other.LeaveCallRequest.Clone(); + break; + } + _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 SfuRequest Clone() { + return new SfuRequest(this); } - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; + /// Field number for the "join_request" field. + public const int JoinRequestFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } + public global::StreamVideo.v1.Sfu.Events.JoinRequest JoinRequest { + get { return requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest ? (global::StreamVideo.v1.Sfu.Events.JoinRequest) requestPayload_ : null; } set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + requestPayload_ = value; + requestPayloadCase_ = value == null ? RequestPayloadOneofCase.None : RequestPayloadOneofCase.JoinRequest; } } - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 2; - private string sessionId_ = ""; + /// Field number for the "health_check_request" field. + public const int HealthCheckRequestFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SessionId { - get { return sessionId_; } + public global::StreamVideo.v1.Sfu.Events.HealthCheckRequest HealthCheckRequest { + get { return requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest ? (global::StreamVideo.v1.Sfu.Events.HealthCheckRequest) requestPayload_ : null; } set { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + requestPayload_ = value; + requestPayloadCase_ = value == null ? RequestPayloadOneofCase.None : RequestPayloadOneofCase.HealthCheckRequest; } } - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::StreamVideo.v1.Sfu.Models.TrackType type_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + /// Field number for the "leave_call_request" field. + public const int LeaveCallRequestFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.TrackType Type { - get { return type_; } + public global::StreamVideo.v1.Sfu.Events.LeaveCallRequest LeaveCallRequest { + get { return requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest ? (global::StreamVideo.v1.Sfu.Events.LeaveCallRequest) requestPayload_ : null; } set { - type_ = value; + requestPayload_ = value; + requestPayloadCase_ = value == null ? RequestPayloadOneofCase.None : RequestPayloadOneofCase.LeaveCallRequest; } } - /// Field number for the "participant" field. - public const int ParticipantFieldNumber = 4; - private global::StreamVideo.v1.Sfu.Models.Participant participant_; - /// - /// Participant information here is included as an optimisation - /// for large calls where broadcasting on every participant join - /// is expensive. You should **NOT** assume that this will always - /// be available though you can use it to update the participant - /// list when it is there. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Participant Participant { - get { return participant_; } - set { - participant_ = value; - } + private object requestPayload_; + /// Enum of possible cases for the "request_payload" oneof. + public enum RequestPayloadOneofCase { + None = 0, + JoinRequest = 1, + HealthCheckRequest = 2, + LeaveCallRequest = 3, + } + private RequestPayloadOneofCase requestPayloadCase_ = RequestPayloadOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RequestPayloadOneofCase RequestPayloadCase { + get { return requestPayloadCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRequestPayload() { + requestPayloadCase_ = RequestPayloadOneofCase.None; + requestPayload_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SfuRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SfuRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(JoinRequest, other.JoinRequest)) return false; + if (!object.Equals(HealthCheckRequest, other.HealthCheckRequest)) return false; + if (!object.Equals(LeaveCallRequest, other.LeaveCallRequest)) return false; + if (RequestPayloadCase != other.RequestPayloadCase) 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 (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) hash ^= JoinRequest.GetHashCode(); + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) hash ^= HealthCheckRequest.GetHashCode(); + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) hash ^= LeaveCallRequest.GetHashCode(); + hash ^= (int) requestPayloadCase_; + 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 (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { + output.WriteRawTag(10); + output.WriteMessage(JoinRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { + output.WriteRawTag(18); + output.WriteMessage(HealthCheckRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) { + output.WriteRawTag(26); + output.WriteMessage(LeaveCallRequest); + } + 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 (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { + output.WriteRawTag(10); + output.WriteMessage(JoinRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { + output.WriteRawTag(18); + output.WriteMessage(HealthCheckRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) { + output.WriteRawTag(26); + output.WriteMessage(LeaveCallRequest); + } + 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 (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(JoinRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(HealthCheckRequest); + } + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LeaveCallRequest); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SfuRequest other) { + if (other == null) { + return; + } + switch (other.RequestPayloadCase) { + case RequestPayloadOneofCase.JoinRequest: + if (JoinRequest == null) { + JoinRequest = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); + } + JoinRequest.MergeFrom(other.JoinRequest); + break; + case RequestPayloadOneofCase.HealthCheckRequest: + if (HealthCheckRequest == null) { + HealthCheckRequest = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); + } + HealthCheckRequest.MergeFrom(other.HealthCheckRequest); + break; + case RequestPayloadOneofCase.LeaveCallRequest: + if (LeaveCallRequest == null) { + LeaveCallRequest = new global::StreamVideo.v1.Sfu.Events.LeaveCallRequest(); + } + LeaveCallRequest.MergeFrom(other.LeaveCallRequest); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::StreamVideo.v1.Sfu.Events.JoinRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { + subBuilder.MergeFrom(JoinRequest); + } + input.ReadMessage(subBuilder); + JoinRequest = subBuilder; + break; + } + case 18: { + global::StreamVideo.v1.Sfu.Events.HealthCheckRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { + subBuilder.MergeFrom(HealthCheckRequest); + } + input.ReadMessage(subBuilder); + HealthCheckRequest = subBuilder; + break; + } + case 26: { + global::StreamVideo.v1.Sfu.Events.LeaveCallRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.LeaveCallRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) { + subBuilder.MergeFrom(LeaveCallRequest); + } + input.ReadMessage(subBuilder); + LeaveCallRequest = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::StreamVideo.v1.Sfu.Events.JoinRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.JoinRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.JoinRequest) { + subBuilder.MergeFrom(JoinRequest); + } + input.ReadMessage(subBuilder); + JoinRequest = subBuilder; + break; + } + case 18: { + global::StreamVideo.v1.Sfu.Events.HealthCheckRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.HealthCheckRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.HealthCheckRequest) { + subBuilder.MergeFrom(HealthCheckRequest); + } + input.ReadMessage(subBuilder); + HealthCheckRequest = subBuilder; + break; + } + case 26: { + global::StreamVideo.v1.Sfu.Events.LeaveCallRequest subBuilder = new global::StreamVideo.v1.Sfu.Events.LeaveCallRequest(); + if (requestPayloadCase_ == RequestPayloadOneofCase.LeaveCallRequest) { + subBuilder.MergeFrom(LeaveCallRequest); + } + input.ReadMessage(subBuilder); + LeaveCallRequest = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class LeaveCallRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeaveCallRequest()); + 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::StreamVideo.v1.Sfu.Events.EventsReflection.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 LeaveCallRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LeaveCallRequest(LeaveCallRequest other) : this() { + sessionId_ = other.sessionId_; + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LeaveCallRequest Clone() { + return new LeaveCallRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 2; + private string reason_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reason { + get { return reason_; } + set { + reason_ = 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 LeaveCallRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LeaveCallRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) return false; + if (Reason != other.Reason) 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 (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (Reason.Length != 0) hash ^= Reason.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + if (Reason.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Reason); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (Reason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LeaveCallRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.Reason.Length != 0) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + case 18: { + Reason = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class HealthCheckRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HealthCheckRequest()); + 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::StreamVideo.v1.Sfu.Events.EventsReflection.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 HealthCheckRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HealthCheckRequest(HealthCheckRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HealthCheckRequest Clone() { + return new HealthCheckRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HealthCheckRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HealthCheckRequest 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(HealthCheckRequest other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class HealthCheckResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HealthCheckResponse()); + 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HealthCheckResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HealthCheckResponse(HealthCheckResponse other) : this() { + participantCount_ = other.participantCount_ != null ? other.participantCount_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public HealthCheckResponse Clone() { + return new HealthCheckResponse(this); + } + + /// Field number for the "participant_count" field. + public const int ParticipantCountFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.ParticipantCount participantCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.ParticipantCount ParticipantCount { + get { return participantCount_; } + set { + participantCount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as HealthCheckResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(HealthCheckResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ParticipantCount, other.ParticipantCount)) 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 (participantCount_ != null) hash ^= ParticipantCount.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 (participantCount_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ParticipantCount); + } + 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 (participantCount_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ParticipantCount); + } + 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 (participantCount_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParticipantCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(HealthCheckResponse other) { + if (other == null) { + return; + } + if (other.participantCount_ != null) { + if (participantCount_ == null) { + ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); + } + ParticipantCount.MergeFrom(other.ParticipantCount); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (participantCount_ == null) { + ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); + } + input.ReadMessage(ParticipantCount); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (participantCount_ == null) { + ParticipantCount = new global::StreamVideo.v1.Sfu.Models.ParticipantCount(); + } + input.ReadMessage(ParticipantCount); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class TrackPublished : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackPublished()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublished() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublished(TrackPublished other) : this() { + userId_ = other.userId_; + sessionId_ = other.sessionId_; + type_ = other.type_; + participant_ = other.participant_ != null ? other.participant_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackPublished Clone() { + return new TrackPublished(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 2; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 3; + private global::StreamVideo.v1.Sfu.Models.TrackType type_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.TrackType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "participant" field. + public const int ParticipantFieldNumber = 4; + private global::StreamVideo.v1.Sfu.Models.Participant participant_; + /// + /// Participant information here is included as an optimisation + /// for large calls where broadcasting on every participant join + /// is expensive. You should **NOT** assume that this will always + /// be available though you can use it to update the participant + /// list when it is there. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Participant Participant { + get { return participant_; } + set { + participant_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3130,6 +4239,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class TrackUnpublished : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3144,7 +4254,7 @@ internal sealed partial class TrackUnpublished : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[9]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3483,6 +4593,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class JoinRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3497,7 +4608,7 @@ internal sealed partial class JoinRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[10]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3520,9 +4631,13 @@ public JoinRequest(JoinRequest other) : this() { token_ = other.token_; sessionId_ = other.sessionId_; subscriberSdp_ = other.subscriberSdp_; + publisherSdp_ = other.publisherSdp_; clientDetails_ = other.clientDetails_ != null ? other.clientDetails_.Clone() : null; migration_ = other.migration_ != null ? other.migration_.Clone() : null; fastReconnect_ = other.fastReconnect_; + reconnectDetails_ = other.reconnectDetails_ != null ? other.reconnectDetails_.Clone() : null; + preferredPublishOptions_ = other.preferredPublishOptions_.Clone(); + preferredSubscribeOptions_ = other.preferredSubscribeOptions_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -3571,6 +4686,18 @@ public string SubscriberSdp { } } + /// Field number for the "publisher_sdp" field. + public const int PublisherSdpFieldNumber = 8; + private string publisherSdp_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PublisherSdp { + get { return publisherSdp_; } + set { + publisherSdp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "client_details" field. public const int ClientDetailsFieldNumber = 4; private global::StreamVideo.v1.Sfu.Models.ClientDetails clientDetails_; @@ -3587,9 +4714,9 @@ public string SubscriberSdp { public const int MigrationFieldNumber = 5; private global::StreamVideo.v1.Sfu.Events.Migration migration_; /// - /// TODO: we should know if this is going to be - /// - publishing and subscribing, or just subscribing for future routing + /// Deprecated: use ReconnectDetails instead /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::StreamVideo.v1.Sfu.Events.Migration Migration { @@ -3613,6 +4740,7 @@ public string SubscriberSdp { /// cached, the client state is not in sync and hence it must be cleaned up before /// proceeding further. /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool FastReconnect { @@ -3622,6 +4750,40 @@ public bool FastReconnect { } } + /// Field number for the "reconnect_details" field. + public const int ReconnectDetailsFieldNumber = 7; + private global::StreamVideo.v1.Sfu.Events.ReconnectDetails reconnectDetails_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Events.ReconnectDetails ReconnectDetails { + get { return reconnectDetails_; } + set { + reconnectDetails_ = value; + } + } + + /// Field number for the "preferred_publish_options" field. + public const int PreferredPublishOptionsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_preferredPublishOptions_codec + = pb::FieldCodec.ForMessage(74, global::StreamVideo.v1.Sfu.Models.PublishOption.Parser); + private readonly pbc::RepeatedField preferredPublishOptions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PreferredPublishOptions { + get { return preferredPublishOptions_; } + } + + /// Field number for the "preferred_subscribe_options" field. + public const int PreferredSubscribeOptionsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_preferredSubscribeOptions_codec + = pb::FieldCodec.ForMessage(82, global::StreamVideo.v1.Sfu.Models.SubscribeOption.Parser); + private readonly pbc::RepeatedField preferredSubscribeOptions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PreferredSubscribeOptions { + get { return preferredSubscribeOptions_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -3640,9 +4802,13 @@ public bool Equals(JoinRequest other) { if (Token != other.Token) return false; if (SessionId != other.SessionId) return false; if (SubscriberSdp != other.SubscriberSdp) return false; + if (PublisherSdp != other.PublisherSdp) return false; if (!object.Equals(ClientDetails, other.ClientDetails)) return false; if (!object.Equals(Migration, other.Migration)) return false; if (FastReconnect != other.FastReconnect) return false; + if (!object.Equals(ReconnectDetails, other.ReconnectDetails)) return false; + if(!preferredPublishOptions_.Equals(other.preferredPublishOptions_)) return false; + if(!preferredSubscribeOptions_.Equals(other.preferredSubscribeOptions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3653,9 +4819,13 @@ public override int GetHashCode() { if (Token.Length != 0) hash ^= Token.GetHashCode(); if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); if (SubscriberSdp.Length != 0) hash ^= SubscriberSdp.GetHashCode(); + if (PublisherSdp.Length != 0) hash ^= PublisherSdp.GetHashCode(); if (clientDetails_ != null) hash ^= ClientDetails.GetHashCode(); if (migration_ != null) hash ^= Migration.GetHashCode(); if (FastReconnect != false) hash ^= FastReconnect.GetHashCode(); + if (reconnectDetails_ != null) hash ^= ReconnectDetails.GetHashCode(); + hash ^= preferredPublishOptions_.GetHashCode(); + hash ^= preferredSubscribeOptions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3698,6 +4868,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(48); output.WriteBool(FastReconnect); } + if (reconnectDetails_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ReconnectDetails); + } + if (PublisherSdp.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PublisherSdp); + } + preferredPublishOptions_.WriteTo(output, _repeated_preferredPublishOptions_codec); + preferredSubscribeOptions_.WriteTo(output, _repeated_preferredSubscribeOptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3732,6 +4912,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(48); output.WriteBool(FastReconnect); } + if (reconnectDetails_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ReconnectDetails); + } + if (PublisherSdp.Length != 0) { + output.WriteRawTag(66); + output.WriteString(PublisherSdp); + } + preferredPublishOptions_.WriteTo(ref output, _repeated_preferredPublishOptions_codec); + preferredSubscribeOptions_.WriteTo(ref output, _repeated_preferredSubscribeOptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3751,6 +4941,9 @@ public int CalculateSize() { if (SubscriberSdp.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SubscriberSdp); } + if (PublisherSdp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PublisherSdp); + } if (clientDetails_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientDetails); } @@ -3760,6 +4953,11 @@ public int CalculateSize() { if (FastReconnect != false) { size += 1 + 1; } + if (reconnectDetails_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReconnectDetails); + } + size += preferredPublishOptions_.CalculateSize(_repeated_preferredPublishOptions_codec); + size += preferredSubscribeOptions_.CalculateSize(_repeated_preferredSubscribeOptions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3781,6 +4979,9 @@ public void MergeFrom(JoinRequest other) { if (other.SubscriberSdp.Length != 0) { SubscriberSdp = other.SubscriberSdp; } + if (other.PublisherSdp.Length != 0) { + PublisherSdp = other.PublisherSdp; + } if (other.clientDetails_ != null) { if (clientDetails_ == null) { ClientDetails = new global::StreamVideo.v1.Sfu.Models.ClientDetails(); @@ -3796,6 +4997,14 @@ public void MergeFrom(JoinRequest other) { if (other.FastReconnect != false) { FastReconnect = other.FastReconnect; } + if (other.reconnectDetails_ != null) { + if (reconnectDetails_ == null) { + ReconnectDetails = new global::StreamVideo.v1.Sfu.Events.ReconnectDetails(); + } + ReconnectDetails.MergeFrom(other.ReconnectDetails); + } + preferredPublishOptions_.Add(other.preferredPublishOptions_); + preferredSubscribeOptions_.Add(other.preferredSubscribeOptions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3841,6 +5050,25 @@ public void MergeFrom(pb::CodedInputStream input) { FastReconnect = input.ReadBool(); break; } + case 58: { + if (reconnectDetails_ == null) { + ReconnectDetails = new global::StreamVideo.v1.Sfu.Events.ReconnectDetails(); + } + input.ReadMessage(ReconnectDetails); + break; + } + case 66: { + PublisherSdp = input.ReadString(); + break; + } + case 74: { + preferredPublishOptions_.AddEntriesFrom(input, _repeated_preferredPublishOptions_codec); + break; + } + case 82: { + preferredSubscribeOptions_.AddEntriesFrom(input, _repeated_preferredSubscribeOptions_codec); + break; + } } } #endif @@ -3886,6 +5114,25 @@ public void MergeFrom(pb::CodedInputStream input) { FastReconnect = input.ReadBool(); break; } + case 58: { + if (reconnectDetails_ == null) { + ReconnectDetails = new global::StreamVideo.v1.Sfu.Events.ReconnectDetails(); + } + input.ReadMessage(ReconnectDetails); + break; + } + case 66: { + PublisherSdp = input.ReadString(); + break; + } + case 74: { + preferredPublishOptions_.AddEntriesFrom(ref input, _repeated_preferredPublishOptions_codec); + break; + } + case 82: { + preferredSubscribeOptions_.AddEntriesFrom(ref input, _repeated_preferredSubscribeOptions_codec); + break; + } } } } @@ -3893,21 +5140,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Migration : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ReconnectDetails : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Migration()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReconnectDetails()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[11]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3918,7 +5166,7 @@ internal sealed partial class Migration : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Migration() { + public ReconnectDetails() { OnConstruction(); } @@ -3926,71 +5174,116 @@ public Migration() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Migration(Migration other) : this() { - fromSfuId_ = other.fromSfuId_; + public ReconnectDetails(ReconnectDetails other) : this() { + strategy_ = other.strategy_; announcedTracks_ = other.announcedTracks_.Clone(); subscriptions_ = other.subscriptions_.Clone(); + reconnectAttempt_ = other.reconnectAttempt_; + fromSfuId_ = other.fromSfuId_; + previousSessionId_ = other.previousSessionId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Migration Clone() { - return new Migration(this); + public ReconnectDetails Clone() { + return new ReconnectDetails(this); } - /// Field number for the "from_sfu_id" field. - public const int FromSfuIdFieldNumber = 1; - private string fromSfuId_ = ""; + /// Field number for the "strategy" field. + public const int StrategyFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy strategy_ = global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FromSfuId { - get { return fromSfuId_; } + public global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy Strategy { + get { return strategy_; } set { - fromSfuId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + strategy_ = value; } } /// Field number for the "announced_tracks" field. - public const int AnnouncedTracksFieldNumber = 2; + public const int AnnouncedTracksFieldNumber = 3; private static readonly pb::FieldCodec _repeated_announcedTracks_codec - = pb::FieldCodec.ForMessage(18, global::StreamVideo.v1.Sfu.Models.TrackInfo.Parser); + = pb::FieldCodec.ForMessage(26, global::StreamVideo.v1.Sfu.Models.TrackInfo.Parser); private readonly pbc::RepeatedField announcedTracks_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AnnouncedTracks { - get { return announcedTracks_; } + public pbc::RepeatedField AnnouncedTracks { + get { return announcedTracks_; } + } + + /// Field number for the "subscriptions" field. + public const int SubscriptionsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_subscriptions_codec + = pb::FieldCodec.ForMessage(34, global::StreamVideo.v1.Sfu.Signal.TrackSubscriptionDetails.Parser); + private readonly pbc::RepeatedField subscriptions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Subscriptions { + get { return subscriptions_; } + } + + /// Field number for the "reconnect_attempt" field. + public const int ReconnectAttemptFieldNumber = 5; + private uint reconnectAttempt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ReconnectAttempt { + get { return reconnectAttempt_; } + set { + reconnectAttempt_ = value; + } + } + + /// Field number for the "from_sfu_id" field. + public const int FromSfuIdFieldNumber = 6; + private string fromSfuId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FromSfuId { + get { return fromSfuId_; } + set { + fromSfuId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// Field number for the "subscriptions" field. - public const int SubscriptionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_subscriptions_codec - = pb::FieldCodec.ForMessage(26, global::StreamVideo.v1.Sfu.Signal.TrackSubscriptionDetails.Parser); - private readonly pbc::RepeatedField subscriptions_ = new pbc::RepeatedField(); + /// Field number for the "previous_session_id" field. + public const int PreviousSessionIdFieldNumber = 7; + private string previousSessionId_ = ""; + /// + /// only set in case of rejoin + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Subscriptions { - get { return subscriptions_; } + public string PreviousSessionId { + get { return previousSessionId_; } + set { + previousSessionId_ = 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 Migration); + return Equals(other as ReconnectDetails); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Migration other) { + public bool Equals(ReconnectDetails other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (FromSfuId != other.FromSfuId) return false; + if (Strategy != other.Strategy) return false; if(!announcedTracks_.Equals(other.announcedTracks_)) return false; if(!subscriptions_.Equals(other.subscriptions_)) return false; + if (ReconnectAttempt != other.ReconnectAttempt) return false; + if (FromSfuId != other.FromSfuId) return false; + if (PreviousSessionId != other.PreviousSessionId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3998,9 +5291,12 @@ public bool Equals(Migration other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (FromSfuId.Length != 0) hash ^= FromSfuId.GetHashCode(); + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) hash ^= Strategy.GetHashCode(); hash ^= announcedTracks_.GetHashCode(); hash ^= subscriptions_.GetHashCode(); + if (ReconnectAttempt != 0) hash ^= ReconnectAttempt.GetHashCode(); + if (FromSfuId.Length != 0) hash ^= FromSfuId.GetHashCode(); + if (PreviousSessionId.Length != 0) hash ^= PreviousSessionId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4019,12 +5315,24 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (FromSfuId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FromSfuId); + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Strategy); } announcedTracks_.WriteTo(output, _repeated_announcedTracks_codec); subscriptions_.WriteTo(output, _repeated_subscriptions_codec); + if (ReconnectAttempt != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ReconnectAttempt); + } + if (FromSfuId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FromSfuId); + } + if (PreviousSessionId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PreviousSessionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4035,12 +5343,24 @@ 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 (FromSfuId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FromSfuId); + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Strategy); } announcedTracks_.WriteTo(ref output, _repeated_announcedTracks_codec); subscriptions_.WriteTo(ref output, _repeated_subscriptions_codec); + if (ReconnectAttempt != 0) { + output.WriteRawTag(40); + output.WriteUInt32(ReconnectAttempt); + } + if (FromSfuId.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FromSfuId); + } + if (PreviousSessionId.Length != 0) { + output.WriteRawTag(58); + output.WriteString(PreviousSessionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4051,11 +5371,20 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (FromSfuId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FromSfuId); + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Strategy); } size += announcedTracks_.CalculateSize(_repeated_announcedTracks_codec); size += subscriptions_.CalculateSize(_repeated_subscriptions_codec); + if (ReconnectAttempt != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ReconnectAttempt); + } + if (FromSfuId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromSfuId); + } + if (PreviousSessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousSessionId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4064,15 +5393,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Migration other) { + public void MergeFrom(ReconnectDetails other) { if (other == null) { return; } - if (other.FromSfuId.Length != 0) { - FromSfuId = other.FromSfuId; + if (other.Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + Strategy = other.Strategy; } announcedTracks_.Add(other.announcedTracks_); subscriptions_.Add(other.subscriptions_); + if (other.ReconnectAttempt != 0) { + ReconnectAttempt = other.ReconnectAttempt; + } + if (other.FromSfuId.Length != 0) { + FromSfuId = other.FromSfuId; + } + if (other.PreviousSessionId.Length != 0) { + PreviousSessionId = other.PreviousSessionId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4088,18 +5426,30 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - FromSfuId = input.ReadString(); + case 8: { + Strategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); break; } - case 18: { + case 26: { announcedTracks_.AddEntriesFrom(input, _repeated_announcedTracks_codec); break; } - case 26: { + case 34: { subscriptions_.AddEntriesFrom(input, _repeated_subscriptions_codec); break; } + case 40: { + ReconnectAttempt = input.ReadUInt32(); + break; + } + case 50: { + FromSfuId = input.ReadString(); + break; + } + case 58: { + PreviousSessionId = input.ReadString(); + break; + } } } #endif @@ -4115,18 +5465,30 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - FromSfuId = input.ReadString(); + case 8: { + Strategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); break; } - case 18: { + case 26: { announcedTracks_.AddEntriesFrom(ref input, _repeated_announcedTracks_codec); break; } - case 26: { + case 34: { subscriptions_.AddEntriesFrom(ref input, _repeated_subscriptions_codec); break; } + case 40: { + ReconnectAttempt = input.ReadUInt32(); + break; + } + case 50: { + FromSfuId = input.ReadString(); + break; + } + case 58: { + PreviousSessionId = input.ReadString(); + break; + } } } } @@ -4134,21 +5496,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class JoinResponse : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Migration : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Migration()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[12]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4159,7 +5522,7 @@ internal sealed partial class JoinResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinResponse() { + public Migration() { OnConstruction(); } @@ -4167,59 +5530,71 @@ public JoinResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinResponse(JoinResponse other) : this() { - callState_ = other.callState_ != null ? other.callState_.Clone() : null; - reconnected_ = other.reconnected_; + public Migration(Migration other) : this() { + fromSfuId_ = other.fromSfuId_; + announcedTracks_ = other.announcedTracks_.Clone(); + subscriptions_ = other.subscriptions_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinResponse Clone() { - return new JoinResponse(this); + public Migration Clone() { + return new Migration(this); } - /// Field number for the "call_state" field. - public const int CallStateFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.CallState callState_; + /// Field number for the "from_sfu_id" field. + public const int FromSfuIdFieldNumber = 1; + private string fromSfuId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.CallState CallState { - get { return callState_; } + public string FromSfuId { + get { return fromSfuId_; } set { - callState_ = value; + fromSfuId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "reconnected" field. - public const int ReconnectedFieldNumber = 2; - private bool reconnected_; + /// Field number for the "announced_tracks" field. + public const int AnnouncedTracksFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_announcedTracks_codec + = pb::FieldCodec.ForMessage(18, global::StreamVideo.v1.Sfu.Models.TrackInfo.Parser); + private readonly pbc::RepeatedField announcedTracks_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Reconnected { - get { return reconnected_; } - set { - reconnected_ = value; - } + public pbc::RepeatedField AnnouncedTracks { + get { return announcedTracks_; } + } + + /// Field number for the "subscriptions" field. + public const int SubscriptionsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_subscriptions_codec + = pb::FieldCodec.ForMessage(26, global::StreamVideo.v1.Sfu.Signal.TrackSubscriptionDetails.Parser); + private readonly pbc::RepeatedField subscriptions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Subscriptions { + get { return subscriptions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as JoinResponse); + return Equals(other as Migration); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JoinResponse other) { + public bool Equals(Migration other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(CallState, other.CallState)) return false; - if (Reconnected != other.Reconnected) return false; + if (FromSfuId != other.FromSfuId) return false; + if(!announcedTracks_.Equals(other.announcedTracks_)) return false; + if(!subscriptions_.Equals(other.subscriptions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4227,8 +5602,9 @@ public bool Equals(JoinResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (callState_ != null) hash ^= CallState.GetHashCode(); - if (Reconnected != false) hash ^= Reconnected.GetHashCode(); + if (FromSfuId.Length != 0) hash ^= FromSfuId.GetHashCode(); + hash ^= announcedTracks_.GetHashCode(); + hash ^= subscriptions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4247,14 +5623,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (callState_ != null) { + if (FromSfuId.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(CallState); - } - if (Reconnected != false) { - output.WriteRawTag(16); - output.WriteBool(Reconnected); + output.WriteString(FromSfuId); } + announcedTracks_.WriteTo(output, _repeated_announcedTracks_codec); + subscriptions_.WriteTo(output, _repeated_subscriptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4265,14 +5639,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 (callState_ != null) { + if (FromSfuId.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(CallState); - } - if (Reconnected != false) { - output.WriteRawTag(16); - output.WriteBool(Reconnected); + output.WriteString(FromSfuId); } + announcedTracks_.WriteTo(ref output, _repeated_announcedTracks_codec); + subscriptions_.WriteTo(ref output, _repeated_subscriptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4283,12 +5655,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (callState_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallState); - } - if (Reconnected != false) { - size += 1 + 1; + if (FromSfuId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FromSfuId); } + size += announcedTracks_.CalculateSize(_repeated_announcedTracks_codec); + size += subscriptions_.CalculateSize(_repeated_subscriptions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4297,19 +5668,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(JoinResponse other) { + public void MergeFrom(Migration other) { if (other == null) { return; } - if (other.callState_ != null) { - if (callState_ == null) { - CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); - } - CallState.MergeFrom(other.CallState); - } - if (other.Reconnected != false) { - Reconnected = other.Reconnected; + if (other.FromSfuId.Length != 0) { + FromSfuId = other.FromSfuId; } + announcedTracks_.Add(other.announcedTracks_); + subscriptions_.Add(other.subscriptions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4326,14 +5693,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (callState_ == null) { - CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); - } - input.ReadMessage(CallState); + FromSfuId = input.ReadString(); break; } - case 16: { - Reconnected = input.ReadBool(); + case 18: { + announcedTracks_.AddEntriesFrom(input, _repeated_announcedTracks_codec); + break; + } + case 26: { + subscriptions_.AddEntriesFrom(input, _repeated_subscriptions_codec); break; } } @@ -4352,14 +5720,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (callState_ == null) { - CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); - } - input.ReadMessage(CallState); + FromSfuId = input.ReadString(); break; } - case 16: { - Reconnected = input.ReadBool(); + case 18: { + announcedTracks_.AddEntriesFrom(ref input, _repeated_announcedTracks_codec); + break; + } + case 26: { + subscriptions_.AddEntriesFrom(ref input, _repeated_subscriptions_codec); break; } } @@ -4369,24 +5738,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// ParticipantJoined is fired when a user joins a call - /// - internal sealed partial class ParticipantJoined : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class JoinResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantJoined()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinResponse()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[13]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4397,7 +5764,7 @@ internal sealed partial class ParticipantJoined : pb::IMessageField number for the "call_state" field. + public const int CallStateFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.CallState callState_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantJoined Clone() { - return new ParticipantJoined(this); + public global::StreamVideo.v1.Sfu.Models.CallState CallState { + get { return callState_; } + set { + callState_ = value; + } } - /// Field number for the "call_cid" field. - public const int CallCidFieldNumber = 1; - private string callCid_ = ""; + /// Field number for the "reconnected" field. + public const int ReconnectedFieldNumber = 2; + private bool reconnected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallCid { - get { return callCid_; } + public bool Reconnected { + get { return reconnected_; } set { - callCid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + reconnected_ = value; } } - /// Field number for the "participant" field. - public const int ParticipantFieldNumber = 2; - private global::StreamVideo.v1.Sfu.Models.Participant participant_; + /// Field number for the "fast_reconnect_deadline_seconds" field. + public const int FastReconnectDeadlineSecondsFieldNumber = 3; + private int fastReconnectDeadlineSeconds_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Participant Participant { - get { return participant_; } + public int FastReconnectDeadlineSeconds { + get { return fastReconnectDeadlineSeconds_; } set { - participant_ = value; + fastReconnectDeadlineSeconds_ = value; } } + /// Field number for the "publish_options" field. + public const int PublishOptionsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_publishOptions_codec + = pb::FieldCodec.ForMessage(34, global::StreamVideo.v1.Sfu.Models.PublishOption.Parser); + private readonly pbc::RepeatedField publishOptions_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PublishOptions { + get { return publishOptions_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantJoined); + return Equals(other as JoinResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantJoined other) { + public bool Equals(JoinResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (CallCid != other.CallCid) return false; - if (!object.Equals(Participant, other.Participant)) return false; + if (!object.Equals(CallState, other.CallState)) return false; + if (Reconnected != other.Reconnected) return false; + if (FastReconnectDeadlineSeconds != other.FastReconnectDeadlineSeconds) return false; + if(!publishOptions_.Equals(other.publishOptions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4465,8 +5859,10 @@ public bool Equals(ParticipantJoined other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (CallCid.Length != 0) hash ^= CallCid.GetHashCode(); - if (participant_ != null) hash ^= Participant.GetHashCode(); + if (callState_ != null) hash ^= CallState.GetHashCode(); + if (Reconnected != false) hash ^= Reconnected.GetHashCode(); + if (FastReconnectDeadlineSeconds != 0) hash ^= FastReconnectDeadlineSeconds.GetHashCode(); + hash ^= publishOptions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4485,14 +5881,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (CallCid.Length != 0) { + if (callState_ != null) { output.WriteRawTag(10); - output.WriteString(CallCid); + output.WriteMessage(CallState); } - if (participant_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Participant); + if (Reconnected != false) { + output.WriteRawTag(16); + output.WriteBool(Reconnected); + } + if (FastReconnectDeadlineSeconds != 0) { + output.WriteRawTag(24); + output.WriteInt32(FastReconnectDeadlineSeconds); } + publishOptions_.WriteTo(output, _repeated_publishOptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4503,14 +5904,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 (CallCid.Length != 0) { + if (callState_ != null) { output.WriteRawTag(10); - output.WriteString(CallCid); + output.WriteMessage(CallState); } - if (participant_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Participant); + if (Reconnected != false) { + output.WriteRawTag(16); + output.WriteBool(Reconnected); + } + if (FastReconnectDeadlineSeconds != 0) { + output.WriteRawTag(24); + output.WriteInt32(FastReconnectDeadlineSeconds); } + publishOptions_.WriteTo(ref output, _repeated_publishOptions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4521,12 +5927,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (CallCid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallCid); + if (callState_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallState); } - if (participant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Participant); + if (Reconnected != false) { + size += 1 + 1; + } + if (FastReconnectDeadlineSeconds != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FastReconnectDeadlineSeconds); } + size += publishOptions_.CalculateSize(_repeated_publishOptions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4535,19 +5945,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantJoined other) { + public void MergeFrom(JoinResponse other) { if (other == null) { return; } - if (other.CallCid.Length != 0) { - CallCid = other.CallCid; - } - if (other.participant_ != null) { - if (participant_ == null) { - Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + if (other.callState_ != null) { + if (callState_ == null) { + CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); } - Participant.MergeFrom(other.Participant); + CallState.MergeFrom(other.CallState); + } + if (other.Reconnected != false) { + Reconnected = other.Reconnected; } + if (other.FastReconnectDeadlineSeconds != 0) { + FastReconnectDeadlineSeconds = other.FastReconnectDeadlineSeconds; + } + publishOptions_.Add(other.publishOptions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4564,14 +5978,22 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - CallCid = input.ReadString(); + if (callState_ == null) { + CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); + } + input.ReadMessage(CallState); break; } - case 18: { - if (participant_ == null) { - Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); - } - input.ReadMessage(Participant); + case 16: { + Reconnected = input.ReadBool(); + break; + } + case 24: { + FastReconnectDeadlineSeconds = input.ReadInt32(); + break; + } + case 34: { + publishOptions_.AddEntriesFrom(input, _repeated_publishOptions_codec); break; } } @@ -4590,14 +6012,22 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - CallCid = input.ReadString(); + if (callState_ == null) { + CallState = new global::StreamVideo.v1.Sfu.Models.CallState(); + } + input.ReadMessage(CallState); break; } - case 18: { - if (participant_ == null) { - Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); - } - input.ReadMessage(Participant); + case 16: { + Reconnected = input.ReadBool(); + break; + } + case 24: { + FastReconnectDeadlineSeconds = input.ReadInt32(); + break; + } + case 34: { + publishOptions_.AddEntriesFrom(ref input, _repeated_publishOptions_codec); break; } } @@ -4608,23 +6038,24 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// ParticipantJoined is fired when a user leaves a call + /// ParticipantJoined is fired when a user joins a call /// - internal sealed partial class ParticipantLeft : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ParticipantJoined : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantLeft()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantJoined()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[14]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4635,7 +6066,7 @@ internal sealed partial class ParticipantLeft : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantLeft() { + public ParticipantJoined() { OnConstruction(); } @@ -4643,7 +6074,7 @@ public ParticipantLeft() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantLeft(ParticipantLeft other) : this() { + public ParticipantJoined(ParticipantJoined other) : this() { callCid_ = other.callCid_; participant_ = other.participant_ != null ? other.participant_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4651,8 +6082,8 @@ public ParticipantLeft(ParticipantLeft other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParticipantLeft Clone() { - return new ParticipantLeft(this); + public ParticipantJoined Clone() { + return new ParticipantJoined(this); } /// Field number for the "call_cid" field. @@ -4682,12 +6113,12 @@ public string CallCid { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ParticipantLeft); + return Equals(other as ParticipantJoined); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParticipantLeft other) { + public bool Equals(ParticipantJoined other) { if (ReferenceEquals(other, null)) { return false; } @@ -4773,7 +6204,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParticipantLeft other) { + public void MergeFrom(ParticipantJoined other) { if (other == null) { return; } @@ -4846,23 +6277,24 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// SubscriberOffer is sent when the SFU adds tracks to a subscription + /// ParticipantJoined is fired when a user leaves a call /// - internal sealed partial class SubscriberOffer : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ParticipantLeft : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscriberOffer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantLeft()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[15]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4873,7 +6305,7 @@ internal sealed partial class SubscriberOffer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SubscriberOffer() { + public ParticipantLeft() { OnConstruction(); } @@ -4881,59 +6313,59 @@ public SubscriberOffer() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SubscriberOffer(SubscriberOffer other) : this() { - iceRestart_ = other.iceRestart_; - sdp_ = other.sdp_; + public ParticipantLeft(ParticipantLeft other) : this() { + callCid_ = other.callCid_; + participant_ = other.participant_ != null ? other.participant_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SubscriberOffer Clone() { - return new SubscriberOffer(this); + public ParticipantLeft Clone() { + return new ParticipantLeft(this); } - /// Field number for the "ice_restart" field. - public const int IceRestartFieldNumber = 1; - private bool iceRestart_; + /// Field number for the "call_cid" field. + public const int CallCidFieldNumber = 1; + private string callCid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IceRestart { - get { return iceRestart_; } + public string CallCid { + get { return callCid_; } set { - iceRestart_ = value; + callCid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "sdp" field. - public const int SdpFieldNumber = 2; - private string sdp_ = ""; + /// Field number for the "participant" field. + public const int ParticipantFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.Participant participant_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sdp { - get { return sdp_; } + public global::StreamVideo.v1.Sfu.Models.Participant Participant { + get { return participant_; } set { - sdp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + participant_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SubscriberOffer); + return Equals(other as ParticipantLeft); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SubscriberOffer other) { + public bool Equals(ParticipantLeft other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (IceRestart != other.IceRestart) return false; - if (Sdp != other.Sdp) return false; + if (CallCid != other.CallCid) return false; + if (!object.Equals(Participant, other.Participant)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4941,8 +6373,8 @@ public bool Equals(SubscriberOffer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (IceRestart != false) hash ^= IceRestart.GetHashCode(); - if (Sdp.Length != 0) hash ^= Sdp.GetHashCode(); + if (CallCid.Length != 0) hash ^= CallCid.GetHashCode(); + if (participant_ != null) hash ^= Participant.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4961,13 +6393,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (IceRestart != false) { - output.WriteRawTag(8); - output.WriteBool(IceRestart); + if (CallCid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CallCid); } - if (Sdp.Length != 0) { + if (participant_ != null) { output.WriteRawTag(18); - output.WriteString(Sdp); + output.WriteMessage(Participant); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4979,13 +6411,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 (IceRestart != false) { - output.WriteRawTag(8); - output.WriteBool(IceRestart); + if (CallCid.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CallCid); } - if (Sdp.Length != 0) { + if (participant_ != null) { output.WriteRawTag(18); - output.WriteString(Sdp); + output.WriteMessage(Participant); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4997,11 +6429,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (IceRestart != false) { - size += 1 + 1; + if (CallCid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CallCid); } - if (Sdp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sdp); + if (participant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Participant); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5011,15 +6443,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SubscriberOffer other) { + public void MergeFrom(ParticipantLeft other) { if (other == null) { return; } - if (other.IceRestart != false) { - IceRestart = other.IceRestart; - } - if (other.Sdp.Length != 0) { - Sdp = other.Sdp; + if (other.CallCid.Length != 0) { + CallCid = other.CallCid; + } + if (other.participant_ != null) { + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + Participant.MergeFrom(other.Participant); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5036,12 +6471,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - IceRestart = input.ReadBool(); + case 10: { + CallCid = input.ReadString(); break; } case 18: { - Sdp = input.ReadString(); + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + input.ReadMessage(Participant); break; } } @@ -5059,12 +6497,15 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - IceRestart = input.ReadBool(); + case 10: { + CallCid = input.ReadString(); break; } case 18: { - Sdp = input.ReadString(); + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + input.ReadMessage(Participant); break; } } @@ -5074,21 +6515,25 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class PublisherAnswer : pb::IMessage + /// + /// ParticipantUpdated is fired when user data is updated + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ParticipantUpdated : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublisherAnswer()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParticipantUpdated()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[16]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5099,7 +6544,7 @@ internal sealed partial class PublisherAnswer : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PublisherAnswer() { + public ParticipantUpdated() { OnConstruction(); } @@ -5107,45 +6552,59 @@ public PublisherAnswer() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PublisherAnswer(PublisherAnswer other) : this() { - sdp_ = other.sdp_; + public ParticipantUpdated(ParticipantUpdated other) : this() { + callCid_ = other.callCid_; + participant_ = other.participant_ != null ? other.participant_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PublisherAnswer Clone() { - return new PublisherAnswer(this); + public ParticipantUpdated Clone() { + return new ParticipantUpdated(this); } - /// Field number for the "sdp" field. - public const int SdpFieldNumber = 1; - private string sdp_ = ""; + /// Field number for the "call_cid" field. + public const int CallCidFieldNumber = 1; + private string callCid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Sdp { - get { return sdp_; } + public string CallCid { + get { return callCid_; } set { - sdp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + callCid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "participant" field. + public const int ParticipantFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.Participant participant_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Participant Participant { + get { return participant_; } + set { + participant_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PublisherAnswer); + return Equals(other as ParticipantUpdated); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PublisherAnswer other) { + public bool Equals(ParticipantUpdated other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Sdp != other.Sdp) return false; + if (CallCid != other.CallCid) return false; + if (!object.Equals(Participant, other.Participant)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5153,7 +6612,8 @@ public bool Equals(PublisherAnswer other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Sdp.Length != 0) hash ^= Sdp.GetHashCode(); + if (CallCid.Length != 0) hash ^= CallCid.GetHashCode(); + if (participant_ != null) hash ^= Participant.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5172,9 +6632,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Sdp.Length != 0) { + if (CallCid.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sdp); + output.WriteString(CallCid); + } + if (participant_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Participant); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5186,9 +6650,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 (Sdp.Length != 0) { + if (CallCid.Length != 0) { output.WriteRawTag(10); - output.WriteString(Sdp); + output.WriteString(CallCid); + } + if (participant_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Participant); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5200,8 +6668,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Sdp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Sdp); + if (CallCid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CallCid); + } + if (participant_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Participant); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5211,12 +6682,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PublisherAnswer other) { + public void MergeFrom(ParticipantUpdated other) { if (other == null) { return; } - if (other.Sdp.Length != 0) { - Sdp = other.Sdp; + if (other.CallCid.Length != 0) { + CallCid = other.CallCid; + } + if (other.participant_ != null) { + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + Participant.MergeFrom(other.Participant); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5234,7 +6711,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Sdp = input.ReadString(); + CallCid = input.ReadString(); + break; + } + case 18: { + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + input.ReadMessage(Participant); break; } } @@ -5253,7 +6737,14 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Sdp = input.ReadString(); + CallCid = input.ReadString(); + break; + } + case 18: { + if (participant_ == null) { + Participant = new global::StreamVideo.v1.Sfu.Models.Participant(); + } + input.ReadMessage(Participant); break; } } @@ -5264,24 +6755,24 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// ConnectionQuality is sent to inform about connection quality changes - /// eg. thierry's connection is not good -> render a red icon Zoom style + /// SubscriberOffer is sent when the SFU adds tracks to a subscription /// - internal sealed partial class ConnectionQualityChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class SubscriberOffer : 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 SubscriberOffer()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[17]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5292,7 +6783,7 @@ internal sealed partial class ConnectionQualityChanged : pb::IMessageField number for the "connection_quality_updates" field. - public const int ConnectionQualityUpdatesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_connectionQualityUpdates_codec - = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Events.ConnectionQualityInfo.Parser); - private readonly pbc::RepeatedField connectionQualityUpdates_ = new pbc::RepeatedField(); + /// Field number for the "ice_restart" field. + public const int IceRestartFieldNumber = 1; + private bool iceRestart_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConnectionQualityUpdates { - get { return connectionQualityUpdates_; } + public bool IceRestart { + get { return iceRestart_; } + set { + iceRestart_ = value; + } + } + + /// Field number for the "sdp" field. + public const int SdpFieldNumber = 2; + private string sdp_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Sdp { + get { return sdp_; } + set { + sdp_ = 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 ConnectionQualityChanged); + return Equals(other as SubscriberOffer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnectionQualityChanged other) { + public bool Equals(SubscriberOffer other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!connectionQualityUpdates_.Equals(other.connectionQualityUpdates_)) return false; + if (IceRestart != other.IceRestart) return false; + if (Sdp != other.Sdp) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5345,7 +6851,8 @@ public bool Equals(ConnectionQualityChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= connectionQualityUpdates_.GetHashCode(); + if (IceRestart != false) hash ^= IceRestart.GetHashCode(); + if (Sdp.Length != 0) hash ^= Sdp.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5364,7 +6871,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - connectionQualityUpdates_.WriteTo(output, _repeated_connectionQualityUpdates_codec); + if (IceRestart != false) { + output.WriteRawTag(8); + output.WriteBool(IceRestart); + } + if (Sdp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Sdp); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5375,7 +6889,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) { - connectionQualityUpdates_.WriteTo(ref output, _repeated_connectionQualityUpdates_codec); + if (IceRestart != false) { + output.WriteRawTag(8); + output.WriteBool(IceRestart); + } + if (Sdp.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Sdp); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5386,7 +6907,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += connectionQualityUpdates_.CalculateSize(_repeated_connectionQualityUpdates_codec); + if (IceRestart != false) { + size += 1 + 1; + } + if (Sdp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sdp); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5395,11 +6921,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnectionQualityChanged other) { + public void MergeFrom(SubscriberOffer other) { if (other == null) { return; } - connectionQualityUpdates_.Add(other.connectionQualityUpdates_); + if (other.IceRestart != false) { + IceRestart = other.IceRestart; + } + if (other.Sdp.Length != 0) { + Sdp = other.Sdp; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5415,8 +6946,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - connectionQualityUpdates_.AddEntriesFrom(input, _repeated_connectionQualityUpdates_codec); + case 8: { + IceRestart = input.ReadBool(); + break; + } + case 18: { + Sdp = input.ReadString(); break; } } @@ -5434,8 +6969,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - connectionQualityUpdates_.AddEntriesFrom(ref input, _repeated_connectionQualityUpdates_codec); + case 8: { + IceRestart = input.ReadBool(); + break; + } + case 18: { + Sdp = input.ReadString(); break; } } @@ -5445,21 +6984,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ConnectionQualityInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class PublisherAnswer : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublisherAnswer()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[18]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5470,81 +7010,53 @@ internal sealed partial class ConnectionQualityInfo : pb::IMessageField number for the "user_id" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; + partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public PublisherAnswer(PublisherAnswer other) : this() { + sdp_ = other.sdp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 2; - private string sessionId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SessionId { - get { return sessionId_; } - set { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public PublisherAnswer Clone() { + return new PublisherAnswer(this); } - /// Field number for the "connection_quality" field. - public const int ConnectionQualityFieldNumber = 3; - private global::StreamVideo.v1.Sfu.Models.ConnectionQuality connectionQuality_ = global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified; + /// Field number for the "sdp" field. + public const int SdpFieldNumber = 1; + private string sdp_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.ConnectionQuality ConnectionQuality { - get { return connectionQuality_; } + public string Sdp { + get { return sdp_; } set { - connectionQuality_ = value; + sdp_ = 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 ConnectionQualityInfo); + return Equals(other as PublisherAnswer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConnectionQualityInfo other) { + public bool Equals(PublisherAnswer other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (UserId != other.UserId) return false; - if (SessionId != other.SessionId) return false; - if (ConnectionQuality != other.ConnectionQuality) return false; + if (Sdp != other.Sdp) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5552,9 +7064,7 @@ public bool Equals(ConnectionQualityInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); - if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) hash ^= ConnectionQuality.GetHashCode(); + if (Sdp.Length != 0) hash ^= Sdp.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5573,17 +7083,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (UserId.Length != 0) { + if (Sdp.Length != 0) { output.WriteRawTag(10); - output.WriteString(UserId); - } - if (SessionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SessionId); - } - if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ConnectionQuality); + output.WriteString(Sdp); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5595,17 +7097,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 (UserId.Length != 0) { + if (Sdp.Length != 0) { output.WriteRawTag(10); - output.WriteString(UserId); - } - if (SessionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SessionId); - } - if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ConnectionQuality); + output.WriteString(Sdp); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5617,14 +7111,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (SessionId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); - } - if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConnectionQuality); + if (Sdp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Sdp); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5634,18 +7122,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConnectionQualityInfo other) { + public void MergeFrom(PublisherAnswer other) { if (other == null) { return; } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.SessionId.Length != 0) { - SessionId = other.SessionId; - } - if (other.ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { - ConnectionQuality = other.ConnectionQuality; + if (other.Sdp.Length != 0) { + Sdp = other.Sdp; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5663,15 +7145,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - SessionId = input.ReadString(); - break; - } - case 24: { - ConnectionQuality = (global::StreamVideo.v1.Sfu.Models.ConnectionQuality) input.ReadEnum(); + Sdp = input.ReadString(); break; } } @@ -5690,15 +7164,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - SessionId = input.ReadString(); - break; - } - case 24: { - ConnectionQuality = (global::StreamVideo.v1.Sfu.Models.ConnectionQuality) input.ReadEnum(); + Sdp = input.ReadString(); break; } } @@ -5709,23 +7175,25 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// DominantSpeakerChanged is sent by the SFU to notify when there is a new dominant speaker in the call + /// ConnectionQuality is sent to inform about connection quality changes + /// eg. thierry's connection is not good -> render a red icon Zoom style /// - internal sealed partial class DominantSpeakerChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal 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 DominantSpeakerChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[19]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5736,7 +7204,7 @@ internal sealed partial class DominantSpeakerChanged : pb::IMessageField number for the "user_id" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ConnectionQualityChanged Clone() { + return new ConnectionQualityChanged(this); } - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 2; - private string sessionId_ = ""; + /// Field number for the "connection_quality_updates" field. + public const int ConnectionQualityUpdatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_connectionQualityUpdates_codec + = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Events.ConnectionQualityInfo.Parser); + private readonly pbc::RepeatedField connectionQualityUpdates_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SessionId { - get { return sessionId_; } - set { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField ConnectionQualityUpdates { + get { return connectionQualityUpdates_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DominantSpeakerChanged); + return Equals(other as ConnectionQualityChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DominantSpeakerChanged other) { + public bool Equals(ConnectionQualityChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (UserId != other.UserId) return false; - if (SessionId != other.SessionId) return false; + if(!connectionQualityUpdates_.Equals(other.connectionQualityUpdates_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5804,8 +7257,7 @@ public bool Equals(DominantSpeakerChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + hash ^= connectionQualityUpdates_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5824,14 +7276,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (SessionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SessionId); - } + connectionQualityUpdates_.WriteTo(output, _repeated_connectionQualityUpdates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5842,14 +7287,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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (SessionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SessionId); - } + connectionQualityUpdates_.WriteTo(ref output, _repeated_connectionQualityUpdates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5860,12 +7298,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (SessionId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); - } + size += connectionQualityUpdates_.CalculateSize(_repeated_connectionQualityUpdates_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5874,16 +7307,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DominantSpeakerChanged other) { + public void MergeFrom(ConnectionQualityChanged other) { if (other == null) { return; } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.SessionId.Length != 0) { - SessionId = other.SessionId; - } + connectionQualityUpdates_.Add(other.connectionQualityUpdates_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5900,11 +7328,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - SessionId = input.ReadString(); + connectionQualityUpdates_.AddEntriesFrom(input, _repeated_connectionQualityUpdates_codec); break; } } @@ -5923,11 +7347,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - SessionId = input.ReadString(); + connectionQualityUpdates_.AddEntriesFrom(ref input, _repeated_connectionQualityUpdates_codec); break; } } @@ -5937,21 +7357,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class AudioLevel : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ConnectionQualityInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioLevel()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionQualityInfo()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[20]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5962,7 +7383,7 @@ internal sealed partial class AudioLevel : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioLevel() { + public ConnectionQualityInfo() { OnConstruction(); } @@ -5970,18 +7391,17 @@ public AudioLevel() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioLevel(AudioLevel other) : this() { + public ConnectionQualityInfo(ConnectionQualityInfo other) : this() { userId_ = other.userId_; sessionId_ = other.sessionId_; - level_ = other.level_; - isSpeaking_ = other.isSpeaking_; + connectionQuality_ = other.connectionQuality_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioLevel Clone() { - return new AudioLevel(this); + public ConnectionQualityInfo Clone() { + return new ConnectionQualityInfo(this); } /// Field number for the "user_id" field. @@ -6004,46 +7424,31 @@ public string UserId { public string SessionId { get { return sessionId_; } set { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 3; - private float level_; - /// - /// 0.0 means complete silence, 1.0 loudest - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Level { - get { return level_; } - set { - level_ = value; + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "is_speaking" field. - public const int IsSpeakingFieldNumber = 4; - private bool isSpeaking_; + /// Field number for the "connection_quality" field. + public const int ConnectionQualityFieldNumber = 3; + private global::StreamVideo.v1.Sfu.Models.ConnectionQuality connectionQuality_ = global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsSpeaking { - get { return isSpeaking_; } + public global::StreamVideo.v1.Sfu.Models.ConnectionQuality ConnectionQuality { + get { return connectionQuality_; } set { - isSpeaking_ = value; + connectionQuality_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioLevel); + return Equals(other as ConnectionQualityInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioLevel other) { + public bool Equals(ConnectionQualityInfo other) { if (ReferenceEquals(other, null)) { return false; } @@ -6052,8 +7457,7 @@ public bool Equals(AudioLevel other) { } if (UserId != other.UserId) return false; if (SessionId != other.SessionId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Level, other.Level)) return false; - if (IsSpeaking != other.IsSpeaking) return false; + if (ConnectionQuality != other.ConnectionQuality) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6063,8 +7467,7 @@ public override int GetHashCode() { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); - if (Level != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Level); - if (IsSpeaking != false) hash ^= IsSpeaking.GetHashCode(); + if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) hash ^= ConnectionQuality.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6091,13 +7494,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(SessionId); } - if (Level != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Level); - } - if (IsSpeaking != false) { - output.WriteRawTag(32); - output.WriteBool(IsSpeaking); + if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) ConnectionQuality); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6117,13 +7516,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(18); output.WriteString(SessionId); } - if (Level != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Level); - } - if (IsSpeaking != false) { - output.WriteRawTag(32); - output.WriteBool(IsSpeaking); + if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { + output.WriteRawTag(24); + output.WriteEnum((int) ConnectionQuality); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6141,11 +7536,8 @@ public int CalculateSize() { if (SessionId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); } - if (Level != 0F) { - size += 1 + 4; - } - if (IsSpeaking != false) { - size += 1 + 1; + if (ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConnectionQuality); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6155,7 +7547,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioLevel other) { + public void MergeFrom(ConnectionQualityInfo other) { if (other == null) { return; } @@ -6165,11 +7557,8 @@ public void MergeFrom(AudioLevel other) { if (other.SessionId.Length != 0) { SessionId = other.SessionId; } - if (other.Level != 0F) { - Level = other.Level; - } - if (other.IsSpeaking != false) { - IsSpeaking = other.IsSpeaking; + if (other.ConnectionQuality != global::StreamVideo.v1.Sfu.Models.ConnectionQuality.Unspecified) { + ConnectionQuality = other.ConnectionQuality; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6194,12 +7583,8 @@ public void MergeFrom(pb::CodedInputStream input) { SessionId = input.ReadString(); break; } - case 29: { - Level = input.ReadFloat(); - break; - } - case 32: { - IsSpeaking = input.ReadBool(); + case 24: { + ConnectionQuality = (global::StreamVideo.v1.Sfu.Models.ConnectionQuality) input.ReadEnum(); break; } } @@ -6225,12 +7610,8 @@ public void MergeFrom(pb::CodedInputStream input) { SessionId = input.ReadString(); break; } - case 29: { - Level = input.ReadFloat(); - break; - } - case 32: { - IsSpeaking = input.ReadBool(); + case 24: { + ConnectionQuality = (global::StreamVideo.v1.Sfu.Models.ConnectionQuality) input.ReadEnum(); break; } } @@ -6241,23 +7622,24 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// AudioLevelChanged is sent by the SFU to notify about audio levels by user + /// DominantSpeakerChanged is sent by the SFU to notify when there is a new dominant speaker in the call /// - internal sealed partial class AudioLevelChanged : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class DominantSpeakerChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioLevelChanged()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DominantSpeakerChanged()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[21]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6268,7 +7650,7 @@ internal sealed partial class AudioLevelChanged : pb::IMessageField number for the "audio_levels" field. - public const int AudioLevelsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_audioLevels_codec - = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Events.AudioLevel.Parser); - private readonly pbc::RepeatedField audioLevels_ = new pbc::RepeatedField(); + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AudioLevels { - get { return audioLevels_; } + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 2; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = 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 AudioLevelChanged); + return Equals(other as DominantSpeakerChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioLevelChanged other) { + public bool Equals(DominantSpeakerChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!audioLevels_.Equals(other.audioLevels_)) return false; + if (UserId != other.UserId) return false; + if (SessionId != other.SessionId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6321,7 +7718,8 @@ public bool Equals(AudioLevelChanged other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= audioLevels_.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6340,7 +7738,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - audioLevels_.WriteTo(output, _repeated_audioLevels_codec); + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6351,7 +7756,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) { - audioLevels_.WriteTo(ref output, _repeated_audioLevels_codec); + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6362,7 +7774,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += audioLevels_.CalculateSize(_repeated_audioLevels_codec); + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6371,11 +7788,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioLevelChanged other) { + public void MergeFrom(DominantSpeakerChanged other) { if (other == null) { return; } - audioLevels_.Add(other.audioLevels_); + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6392,7 +7814,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - audioLevels_.AddEntriesFrom(input, _repeated_audioLevels_codec); + UserId = input.ReadString(); + break; + } + case 18: { + SessionId = input.ReadString(); break; } } @@ -6411,7 +7837,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - audioLevels_.AddEntriesFrom(ref input, _repeated_audioLevels_codec); + UserId = input.ReadString(); + break; + } + case 18: { + SessionId = input.ReadString(); break; } } @@ -6421,21 +7851,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class AudioMediaRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class AudioLevel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioMediaRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioLevel()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[22]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6446,7 +7877,7 @@ internal sealed partial class AudioMediaRequest : pb::IMessageField number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 2; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "level" field. + public const int LevelFieldNumber = 3; + private float level_; + /// + /// 0.0 means complete silence, 1.0 loudest + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Level { + get { return level_; } + set { + level_ = value; + } } - /// Field number for the "channel_count" field. - public const int ChannelCountFieldNumber = 1; - private int channelCount_; + /// Field number for the "is_speaking" field. + public const int IsSpeakingFieldNumber = 4; + private bool isSpeaking_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ChannelCount { - get { return channelCount_; } + public bool IsSpeaking { + get { return isSpeaking_; } set { - channelCount_ = value; + isSpeaking_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioMediaRequest); + return Equals(other as AudioLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioMediaRequest other) { + public bool Equals(AudioLevel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ChannelCount != other.ChannelCount) return false; + if (UserId != other.UserId) return false; + if (SessionId != other.SessionId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Level, other.Level)) return false; + if (IsSpeaking != other.IsSpeaking) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6500,7 +7976,10 @@ public bool Equals(AudioMediaRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ChannelCount != 0) hash ^= ChannelCount.GetHashCode(); + if (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (Level != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Level); + if (IsSpeaking != false) hash ^= IsSpeaking.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6519,9 +7998,21 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ChannelCount != 0) { - output.WriteRawTag(8); - output.WriteInt32(ChannelCount); + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (Level != 0F) { + output.WriteRawTag(29); + output.WriteFloat(Level); + } + if (IsSpeaking != false) { + output.WriteRawTag(32); + output.WriteBool(IsSpeaking); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6533,9 +8024,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 (ChannelCount != 0) { - output.WriteRawTag(8); - output.WriteInt32(ChannelCount); + if (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (SessionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SessionId); + } + if (Level != 0F) { + output.WriteRawTag(29); + output.WriteFloat(Level); + } + if (IsSpeaking != false) { + output.WriteRawTag(32); + output.WriteBool(IsSpeaking); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6547,8 +8050,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ChannelCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChannelCount); + if (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (Level != 0F) { + size += 1 + 4; + } + if (IsSpeaking != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6558,12 +8070,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioMediaRequest other) { + public void MergeFrom(AudioLevel other) { if (other == null) { return; } - if (other.ChannelCount != 0) { - ChannelCount = other.ChannelCount; + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + if (other.Level != 0F) { + Level = other.Level; + } + if (other.IsSpeaking != false) { + IsSpeaking = other.IsSpeaking; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6580,8 +8101,20 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - ChannelCount = input.ReadInt32(); + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 29: { + Level = input.ReadFloat(); + break; + } + case 32: { + IsSpeaking = input.ReadBool(); break; } } @@ -6599,8 +8132,20 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - ChannelCount = input.ReadInt32(); + case 10: { + UserId = input.ReadString(); + break; + } + case 18: { + SessionId = input.ReadString(); + break; + } + case 29: { + Level = input.ReadFloat(); + break; + } + case 32: { + IsSpeaking = input.ReadBool(); break; } } @@ -6610,21 +8155,25 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class AudioSender : pb::IMessage + /// + /// AudioLevelChanged is sent by the SFU to notify about audio levels by user + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class AudioLevelChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSender()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioLevelChanged()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[23]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6635,7 +8184,7 @@ internal sealed partial class AudioSender : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSender() { + public AudioLevelChanged() { OnConstruction(); } @@ -6643,59 +8192,44 @@ public AudioSender() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSender(AudioSender other) : this() { - mediaRequest_ = other.mediaRequest_ != null ? other.mediaRequest_.Clone() : null; - codec_ = other.codec_ != null ? other.codec_.Clone() : null; + public AudioLevelChanged(AudioLevelChanged other) : this() { + audioLevels_ = other.audioLevels_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudioSender Clone() { - return new AudioSender(this); - } - - /// Field number for the "media_request" field. - public const int MediaRequestFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Events.AudioMediaRequest mediaRequest_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Events.AudioMediaRequest MediaRequest { - get { return mediaRequest_; } - set { - mediaRequest_ = value; - } + public AudioLevelChanged Clone() { + return new AudioLevelChanged(this); } - /// Field number for the "codec" field. - public const int CodecFieldNumber = 2; - private global::StreamVideo.v1.Sfu.Models.Codec codec_; + /// Field number for the "audio_levels" field. + public const int AudioLevelsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_audioLevels_codec + = pb::FieldCodec.ForMessage(10, global::StreamVideo.v1.Sfu.Events.AudioLevel.Parser); + private readonly pbc::RepeatedField audioLevels_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Codec Codec { - get { return codec_; } - set { - codec_ = value; - } + public pbc::RepeatedField AudioLevels { + get { return audioLevels_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AudioSender); + return Equals(other as AudioLevelChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudioSender other) { + public bool Equals(AudioLevelChanged other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(MediaRequest, other.MediaRequest)) return false; - if (!object.Equals(Codec, other.Codec)) return false; + if(!audioLevels_.Equals(other.audioLevels_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6703,8 +8237,7 @@ public bool Equals(AudioSender other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (mediaRequest_ != null) hash ^= MediaRequest.GetHashCode(); - if (codec_ != null) hash ^= Codec.GetHashCode(); + hash ^= audioLevels_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6723,14 +8256,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (mediaRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MediaRequest); - } - if (codec_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Codec); - } + audioLevels_.WriteTo(output, _repeated_audioLevels_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6741,14 +8267,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 (mediaRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MediaRequest); - } - if (codec_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Codec); - } + audioLevels_.WriteTo(ref output, _repeated_audioLevels_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6759,12 +8278,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (mediaRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaRequest); - } - if (codec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); - } + size += audioLevels_.CalculateSize(_repeated_audioLevels_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6773,22 +8287,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudioSender other) { + public void MergeFrom(AudioLevelChanged other) { if (other == null) { return; } - if (other.mediaRequest_ != null) { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.AudioMediaRequest(); - } - MediaRequest.MergeFrom(other.MediaRequest); - } - if (other.codec_ != null) { - if (codec_ == null) { - Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); - } - Codec.MergeFrom(other.Codec); - } + audioLevels_.Add(other.audioLevels_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6805,17 +8308,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.AudioMediaRequest(); - } - input.ReadMessage(MediaRequest); - break; - } - case 18: { - if (codec_ == null) { - Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); - } - input.ReadMessage(Codec); + audioLevels_.AddEntriesFrom(input, _repeated_audioLevels_codec); break; } } @@ -6834,17 +8327,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.AudioMediaRequest(); - } - input.ReadMessage(MediaRequest); - break; - } - case 18: { - if (codec_ == null) { - Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); - } - input.ReadMessage(Codec); + audioLevels_.AddEntriesFrom(ref input, _repeated_audioLevels_codec); break; } } @@ -6854,21 +8337,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class VideoMediaRequest : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class AudioSender : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoMediaRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSender()); 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[24]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6879,7 +8363,7 @@ internal sealed partial class VideoMediaRequest : pb::IMessageField number for the "ideal_height" field. - public const int IdealHeightFieldNumber = 1; - private int idealHeight_; + /// Field number for the "codec" field. + public const int CodecFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.Codec codec_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int IdealHeight { - get { return idealHeight_; } + public global::StreamVideo.v1.Sfu.Models.Codec Codec { + get { return codec_; } set { - idealHeight_ = value; + codec_ = value; } } - /// Field number for the "ideal_width" field. - public const int IdealWidthFieldNumber = 2; - private int idealWidth_; + /// Field number for the "track_type" field. + public const int TrackTypeFieldNumber = 3; + private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int IdealWidth { - get { return idealWidth_; } + public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { + get { return trackType_; } set { - idealWidth_ = value; + trackType_ = value; } } - /// Field number for the "ideal_frame_rate" field. - public const int IdealFrameRateFieldNumber = 3; - private int idealFrameRate_; + /// Field number for the "publish_option_id" field. + public const int PublishOptionIdFieldNumber = 4; + private int publishOptionId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int IdealFrameRate { - get { return idealFrameRate_; } + public int PublishOptionId { + get { return publishOptionId_; } set { - idealFrameRate_ = value; + publishOptionId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as VideoMediaRequest); + return Equals(other as AudioSender); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoMediaRequest other) { + public bool Equals(AudioSender other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (IdealHeight != other.IdealHeight) return false; - if (IdealWidth != other.IdealWidth) return false; - if (IdealFrameRate != other.IdealFrameRate) return false; + if (!object.Equals(Codec, other.Codec)) return false; + if (TrackType != other.TrackType) return false; + if (PublishOptionId != other.PublishOptionId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6961,9 +8445,9 @@ public bool Equals(VideoMediaRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (IdealHeight != 0) hash ^= IdealHeight.GetHashCode(); - if (IdealWidth != 0) hash ^= IdealWidth.GetHashCode(); - if (IdealFrameRate != 0) hash ^= IdealFrameRate.GetHashCode(); + if (codec_ != null) hash ^= Codec.GetHashCode(); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); + if (PublishOptionId != 0) hash ^= PublishOptionId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6982,17 +8466,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (IdealHeight != 0) { - output.WriteRawTag(8); - output.WriteInt32(IdealHeight); - } - if (IdealWidth != 0) { - output.WriteRawTag(16); - output.WriteInt32(IdealWidth); + if (codec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Codec); } - if (IdealFrameRate != 0) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(24); - output.WriteInt32(IdealFrameRate); + output.WriteEnum((int) TrackType); + } + if (PublishOptionId != 0) { + output.WriteRawTag(32); + output.WriteInt32(PublishOptionId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7004,17 +8488,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 (IdealHeight != 0) { - output.WriteRawTag(8); - output.WriteInt32(IdealHeight); - } - if (IdealWidth != 0) { - output.WriteRawTag(16); - output.WriteInt32(IdealWidth); + if (codec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Codec); } - if (IdealFrameRate != 0) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(24); - output.WriteInt32(IdealFrameRate); + output.WriteEnum((int) TrackType); + } + if (PublishOptionId != 0) { + output.WriteRawTag(32); + output.WriteInt32(PublishOptionId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7026,14 +8510,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (IdealHeight != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdealHeight); + if (codec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); } - if (IdealWidth != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdealWidth); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); } - if (IdealFrameRate != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdealFrameRate); + if (PublishOptionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PublishOptionId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7043,18 +8527,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoMediaRequest other) { + public void MergeFrom(AudioSender other) { if (other == null) { return; } - if (other.IdealHeight != 0) { - IdealHeight = other.IdealHeight; + if (other.codec_ != null) { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + Codec.MergeFrom(other.Codec); } - if (other.IdealWidth != 0) { - IdealWidth = other.IdealWidth; + if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + TrackType = other.TrackType; } - if (other.IdealFrameRate != 0) { - IdealFrameRate = other.IdealFrameRate; + if (other.PublishOptionId != 0) { + PublishOptionId = other.PublishOptionId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7071,16 +8558,19 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - IdealHeight = input.ReadInt32(); + case 18: { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); break; } - case 16: { - IdealWidth = input.ReadInt32(); + case 24: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } - case 24: { - IdealFrameRate = input.ReadInt32(); + case 32: { + PublishOptionId = input.ReadInt32(); break; } } @@ -7098,16 +8588,19 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - IdealHeight = input.ReadInt32(); + case 18: { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); break; } - case 16: { - IdealWidth = input.ReadInt32(); + case 24: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } - case 24: { - IdealFrameRate = input.ReadInt32(); + case 32: { + PublishOptionId = input.ReadInt32(); break; } } @@ -7122,6 +8615,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// The parameters are specified here - https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpEncodingParameters /// SDKs use these parameters sent from the server to dynamically adjust these parameters to save CPU, bandwidth /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class VideoLayerSetting : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -7136,7 +8630,7 @@ internal sealed partial class VideoLayerSetting : pb::IMessageField number for the "priority" field. - public const int PriorityFieldNumber = 5; - private global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority priority_ = global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority Priority { - get { return priority_; } - set { - priority_ = value; - } - } - /// Field number for the "codec" field. public const int CodecFieldNumber = 6; private global::StreamVideo.v1.Sfu.Models.Codec codec_; @@ -7256,6 +8738,18 @@ public uint MaxFramerate { } } + /// Field number for the "scalability_mode" field. + public const int ScalabilityModeFieldNumber = 8; + private string scalabilityMode_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ScalabilityMode { + get { return scalabilityMode_; } + set { + scalabilityMode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -7275,9 +8769,9 @@ public bool Equals(VideoLayerSetting other) { if (Active != other.Active) return false; if (MaxBitrate != other.MaxBitrate) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ScaleResolutionDownBy, other.ScaleResolutionDownBy)) return false; - if (Priority != other.Priority) return false; if (!object.Equals(Codec, other.Codec)) return false; if (MaxFramerate != other.MaxFramerate) return false; + if (ScalabilityMode != other.ScalabilityMode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7289,9 +8783,9 @@ public override int GetHashCode() { if (Active != false) hash ^= Active.GetHashCode(); if (MaxBitrate != 0) hash ^= MaxBitrate.GetHashCode(); if (ScaleResolutionDownBy != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ScaleResolutionDownBy); - if (Priority != global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified) hash ^= Priority.GetHashCode(); if (codec_ != null) hash ^= Codec.GetHashCode(); if (MaxFramerate != 0) hash ^= MaxFramerate.GetHashCode(); + if (ScalabilityMode.Length != 0) hash ^= ScalabilityMode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7326,10 +8820,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(37); output.WriteFloat(ScaleResolutionDownBy); } - if (Priority != global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Priority); - } if (codec_ != null) { output.WriteRawTag(50); output.WriteMessage(Codec); @@ -7338,6 +8828,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(56); output.WriteUInt32(MaxFramerate); } + if (ScalabilityMode.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ScalabilityMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7364,10 +8858,6 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(37); output.WriteFloat(ScaleResolutionDownBy); } - if (Priority != global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Priority); - } if (codec_ != null) { output.WriteRawTag(50); output.WriteMessage(Codec); @@ -7376,6 +8866,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(56); output.WriteUInt32(MaxFramerate); } + if (ScalabilityMode.Length != 0) { + output.WriteRawTag(66); + output.WriteString(ScalabilityMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7398,15 +8892,15 @@ public int CalculateSize() { if (ScaleResolutionDownBy != 0F) { size += 1 + 4; } - if (Priority != global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Priority); - } if (codec_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); } if (MaxFramerate != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxFramerate); } + if (ScalabilityMode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ScalabilityMode); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7431,9 +8925,6 @@ public void MergeFrom(VideoLayerSetting other) { if (other.ScaleResolutionDownBy != 0F) { ScaleResolutionDownBy = other.ScaleResolutionDownBy; } - if (other.Priority != global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority.HighUnspecified) { - Priority = other.Priority; - } if (other.codec_ != null) { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7443,6 +8934,9 @@ public void MergeFrom(VideoLayerSetting other) { if (other.MaxFramerate != 0) { MaxFramerate = other.MaxFramerate; } + if (other.ScalabilityMode.Length != 0) { + ScalabilityMode = other.ScalabilityMode; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7474,10 +8968,6 @@ public void MergeFrom(pb::CodedInputStream input) { ScaleResolutionDownBy = input.ReadFloat(); break; } - case 40: { - Priority = (global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority) input.ReadEnum(); - break; - } case 50: { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7489,6 +8979,10 @@ public void MergeFrom(pb::CodedInputStream input) { MaxFramerate = input.ReadUInt32(); break; } + case 66: { + ScalabilityMode = input.ReadString(); + break; + } } } #endif @@ -7520,10 +9014,6 @@ public void MergeFrom(pb::CodedInputStream input) { ScaleResolutionDownBy = input.ReadFloat(); break; } - case 40: { - Priority = (global::StreamVideo.v1.Sfu.Events.VideoLayerSetting.Types.Priority) input.ReadEnum(); - break; - } case 50: { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7535,28 +9025,18 @@ public void MergeFrom(pb::CodedInputStream input) { MaxFramerate = input.ReadUInt32(); break; } + case 66: { + ScalabilityMode = input.ReadString(); + break; + } } } } #endif - #region Nested types - /// Container for nested types declared in the VideoLayerSetting message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - internal enum Priority { - [pbr::OriginalName("PRIORITY_HIGH_UNSPECIFIED")] HighUnspecified = 0, - [pbr::OriginalName("PRIORITY_LOW")] Low = 1, - [pbr::OriginalName("PRIORITY_MEDIUM")] Medium = 2, - [pbr::OriginalName("PRIORITY_VERY_LOW")] VeryLow = 3, - } - - } - #endregion - } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class VideoSender : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -7571,7 +9051,7 @@ internal sealed partial class VideoSender : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[26]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7591,9 +9071,10 @@ public VideoSender() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoSender(VideoSender other) : this() { - mediaRequest_ = other.mediaRequest_ != null ? other.mediaRequest_.Clone() : null; codec_ = other.codec_ != null ? other.codec_.Clone() : null; layers_ = other.layers_.Clone(); + trackType_ = other.trackType_; + publishOptionId_ = other.publishOptionId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -7603,18 +9084,6 @@ public VideoSender Clone() { return new VideoSender(this); } - /// Field number for the "media_request" field. - public const int MediaRequestFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Events.VideoMediaRequest mediaRequest_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Events.VideoMediaRequest MediaRequest { - get { return mediaRequest_; } - set { - mediaRequest_ = value; - } - } - /// Field number for the "codec" field. public const int CodecFieldNumber = 2; private global::StreamVideo.v1.Sfu.Models.Codec codec_; @@ -7638,6 +9107,30 @@ public VideoSender Clone() { get { return layers_; } } + /// Field number for the "track_type" field. + public const int TrackTypeFieldNumber = 4; + private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { + get { return trackType_; } + set { + trackType_ = value; + } + } + + /// Field number for the "publish_option_id" field. + public const int PublishOptionIdFieldNumber = 5; + private int publishOptionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PublishOptionId { + get { return publishOptionId_; } + set { + publishOptionId_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -7653,9 +9146,10 @@ public bool Equals(VideoSender other) { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(MediaRequest, other.MediaRequest)) return false; if (!object.Equals(Codec, other.Codec)) return false; if(!layers_.Equals(other.layers_)) return false; + if (TrackType != other.TrackType) return false; + if (PublishOptionId != other.PublishOptionId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7663,9 +9157,10 @@ public bool Equals(VideoSender other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (mediaRequest_ != null) hash ^= MediaRequest.GetHashCode(); if (codec_ != null) hash ^= Codec.GetHashCode(); hash ^= layers_.GetHashCode(); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); + if (PublishOptionId != 0) hash ^= PublishOptionId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7684,15 +9179,19 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (mediaRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MediaRequest); - } if (codec_ != null) { output.WriteRawTag(18); output.WriteMessage(Codec); } layers_.WriteTo(output, _repeated_layers_codec); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) TrackType); + } + if (PublishOptionId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PublishOptionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7703,15 +9202,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 (mediaRequest_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MediaRequest); - } if (codec_ != null) { output.WriteRawTag(18); output.WriteMessage(Codec); } layers_.WriteTo(ref output, _repeated_layers_codec); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) TrackType); + } + if (PublishOptionId != 0) { + output.WriteRawTag(40); + output.WriteInt32(PublishOptionId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7722,13 +9225,16 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (mediaRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaRequest); - } if (codec_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); } size += layers_.CalculateSize(_repeated_layers_codec); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); + } + if (PublishOptionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PublishOptionId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7741,12 +9247,6 @@ public void MergeFrom(VideoSender other) { if (other == null) { return; } - if (other.mediaRequest_ != null) { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.VideoMediaRequest(); - } - MediaRequest.MergeFrom(other.MediaRequest); - } if (other.codec_ != null) { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7754,6 +9254,12 @@ public void MergeFrom(VideoSender other) { Codec.MergeFrom(other.Codec); } layers_.Add(other.layers_); + if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + TrackType = other.TrackType; + } + if (other.PublishOptionId != 0) { + PublishOptionId = other.PublishOptionId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7769,13 +9275,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.VideoMediaRequest(); - } - input.ReadMessage(MediaRequest); - break; - } case 18: { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7787,6 +9286,14 @@ public void MergeFrom(pb::CodedInputStream input) { layers_.AddEntriesFrom(input, _repeated_layers_codec); break; } + case 32: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); + break; + } + case 40: { + PublishOptionId = input.ReadInt32(); + break; + } } } #endif @@ -7802,13 +9309,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (mediaRequest_ == null) { - MediaRequest = new global::StreamVideo.v1.Sfu.Events.VideoMediaRequest(); - } - input.ReadMessage(MediaRequest); - break; - } case 18: { if (codec_ == null) { Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); @@ -7820,6 +9320,14 @@ public void MergeFrom(pb::CodedInputStream input) { layers_.AddEntriesFrom(ref input, _repeated_layers_codec); break; } + case 32: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); + break; + } + case 40: { + PublishOptionId = input.ReadInt32(); + break; + } } } } @@ -7830,6 +9338,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// sent to users when they need to change the quality of their video /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class ChangePublishQuality : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -7844,7 +9353,7 @@ internal sealed partial class ChangePublishQuality : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class CallGrantsUpdated : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8066,7 +9576,7 @@ internal sealed partial class CallGrantsUpdated : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class GoAway : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -8305,7 +9816,7 @@ internal sealed partial class GoAway : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[29]; } + get { return global::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8480,6 +9991,200 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// CallEnded is sent by the SFU to the client to signal that the call has ended. + /// The reason may specify why the call has ended. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class CallEnded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallEnded()); + 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::StreamVideo.v1.Sfu.Events.EventsReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CallEnded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CallEnded(CallEnded other) : this() { + reason_ = other.reason_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CallEnded Clone() { + return new CallEnded(this); + } + + /// Field number for the "reason" field. + public const int ReasonFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.CallEndedReason reason_ = global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.CallEndedReason Reason { + get { return reason_; } + set { + reason_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CallEnded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CallEnded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Reason != other.Reason) 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 (Reason != global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified) hash ^= Reason.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 (Reason != global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Reason); + } + 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 (Reason != global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Reason); + } + 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 (Reason != global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Reason); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CallEnded other) { + if (other == null) { + return; + } + if (other.Reason != global::StreamVideo.v1.Sfu.Models.CallEndedReason.Unspecified) { + Reason = other.Reason; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Reason = (global::StreamVideo.v1.Sfu.Models.CallEndedReason) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Reason = (global::StreamVideo.v1.Sfu.Models.CallEndedReason) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/GeneratedAPI.cs b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/GeneratedAPI.cs index aac48aba..cf3cbd58 100644 --- a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/GeneratedAPI.cs +++ b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/GeneratedAPI.cs @@ -1,117 +1,104 @@ -// +namespace StreamVideo.Core.Sfu { +using Signal = StreamVideo.v1.Sfu.Signal; // Generated by protoc-gen-twirpcs. DO NOT EDIT! // using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using Google.Protobuf; // For ".ToByteArray()" -using Signal = StreamVideo.v1.Sfu.Signal; - -namespace StreamVideo.Core.Sfu -{ - - internal class GeneratedAPI - { - public static readonly MediaTypeWithQualityHeaderValue CONTENT_TYPE_PROTOBUF = new MediaTypeWithQualityHeaderValue("application/protobuf"); - - public enum ErrorCode - { - NoError, Canceled, Unknown, Invalid_Argument, Malformed, Deadline_Exceeded, Not_Found, Bad_Route, Already_Exists, Permission_Denied, - Unauthenticated, Resource_Exhausted, Failed_Precondition, Aborted, Out_Of_Range, Unimplemented, Internal, Unavailable, Data_Loss - }; - - public class Exception : System.Exception - { - public readonly ErrorCode Type; - - public Exception(ErrorCode type, string message) : base(message) { Type = type; } - } - - private static GeneratedAPI.Exception createException(string jsonData) - { - var codeStr = parseJSONString(jsonData, "code"); - if (codeStr == null) - { - return new GeneratedAPI.Exception(ErrorCode.Unknown, jsonData); - } - - ErrorCode errorCode = ErrorCode.Unknown; - System.Enum.TryParse(codeStr, true, out errorCode); - var msg = parseJSONString(jsonData, "msg"); - if (msg == null) - { - msg = jsonData; - } - return new GeneratedAPI.Exception(errorCode, msg); - } - - private static string parseJSONString(string jsonData, string key) - { - var keyIndex = jsonData.IndexOf(key + "\":\""); - if (keyIndex == -1) { return null; } - keyIndex += key.Length + 3; - var dataEnd = jsonData.IndexOf("\"", keyIndex); - if (dataEnd == -1) { return null; } - return jsonData.Substring(keyIndex, dataEnd - keyIndex); - } - private delegate Resp doParsing(byte[] data) where Resp : IMessage; - private static async Task DoRequest(HttpClient client, string address, Req req, doParsing parserFunc) where Req : IMessage where Resp : IMessage - { - using (var content = new ByteArrayContent(req.ToByteArray())) - { - content.Headers.ContentType = CONTENT_TYPE_PROTOBUF; - using (HttpResponseMessage response = await client.PostAsync(address, content)) - { - var byteArr = await response.Content.ReadAsByteArrayAsync(); - if (!response.IsSuccessStatusCode) - { - string errorJSON = System.Text.Encoding.UTF8.GetString(byteArr, 0, byteArr.Length); - throw createException(errorJSON); - } - return parserFunc(byteArr); - } - } - } - - // SetPublisher sends the WebRTC offer for the peer connection used to publish A/V - public static async Task SetPublisher(HttpClient client, Signal.SetPublisherRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SetPublisher", req, Signal.SetPublisherResponse.Parser.ParseFrom); - } +internal class GeneratedAPI { + public static readonly MediaTypeWithQualityHeaderValue CONTENT_TYPE_PROTOBUF = new MediaTypeWithQualityHeaderValue("application/protobuf"); - // answer is sent by the client to the SFU after receiving a subscriber_offer. - public static async Task SendAnswer(HttpClient client, Signal.SendAnswerRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SendAnswer", req, Signal.SendAnswerResponse.Parser.ParseFrom); - } - - // SendICECandidate sends an ICE candidate to the client - public static async Task IceTrickle(HttpClient client, StreamVideo.v1.Sfu.Models.ICETrickle req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/IceTrickle", req, Signal.ICETrickleResponse.Parser.ParseFrom); - } + public enum ErrorCode { + NoError, Canceled, Unknown, Invalid_Argument, Malformed, Deadline_Exceeded, Not_Found, Bad_Route, Already_Exists, Permission_Denied, + Unauthenticated, Resource_Exhausted, Failed_Precondition, Aborted, Out_Of_Range, Unimplemented, Internal, Unavailable, Data_Loss + }; - // UpdateSubscribers is used to notify the SFU about the list of video subscriptions - // TODO: sync subscriptions based on this + update tracks using the dimension info sent by the user - public static async Task UpdateSubscriptions(HttpClient client, Signal.UpdateSubscriptionsRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/UpdateSubscriptions", req, Signal.UpdateSubscriptionsResponse.Parser.ParseFrom); - } + public class Exception : System.Exception { + public readonly ErrorCode Type; - public static async Task UpdateMuteStates(HttpClient client, Signal.UpdateMuteStatesRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/UpdateMuteStates", req, Signal.UpdateMuteStatesResponse.Parser.ParseFrom); - } + public Exception(ErrorCode type, string message) : base(message) { Type = type; } + } - public static async Task IceRestart(HttpClient client, Signal.ICERestartRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/IceRestart", req, Signal.ICERestartResponse.Parser.ParseFrom); - } + private static GeneratedAPI.Exception createException(string jsonData) { + var codeStr = parseJSONString(jsonData, "code"); + if (codeStr == null) { + return new GeneratedAPI.Exception(ErrorCode.Unknown, jsonData); + } - public static async Task SendStats(HttpClient client, Signal.SendStatsRequest req) - { - return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SendStats", req, Signal.SendStatsResponse.Parser.ParseFrom); + ErrorCode errorCode = ErrorCode.Unknown; + System.Enum.TryParse(codeStr, true, out errorCode); + var msg = parseJSONString(jsonData, "msg"); + if (msg == null) { + msg = jsonData; + } + return new GeneratedAPI.Exception(errorCode, msg); + } + + private static string parseJSONString(string jsonData, string key) { + var keyIndex = jsonData.IndexOf(key + "\":\""); + if (keyIndex == -1) { return null; } + keyIndex += key.Length + 3; + var dataEnd = jsonData.IndexOf("\"", keyIndex); + if (dataEnd == -1) { return null; } + return jsonData.Substring(keyIndex, dataEnd - keyIndex); + } + + private delegate Resp doParsing(byte[] data) where Resp : IMessage; + private static async Task DoRequest(HttpClient client, string address, Req req, doParsing parserFunc) where Req : IMessage where Resp : IMessage { + using (var content = new ByteArrayContent(req.ToByteArray())) { + content.Headers.ContentType = CONTENT_TYPE_PROTOBUF; + using (HttpResponseMessage response = await client.PostAsync(address, content)) { + var byteArr = await response.Content.ReadAsByteArrayAsync(); + if (!response.IsSuccessStatusCode) { + string errorJSON = System.Text.Encoding.UTF8.GetString(byteArr, 0, byteArr.Length); + throw createException(errorJSON); } + return parserFunc(byteArr); + } } + } + + // SetPublisher sends the WebRTC offer for the peer connection used to publish A/V + public static async Task SetPublisher(HttpClient client, Signal.SetPublisherRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SetPublisher", req, Signal.SetPublisherResponse.Parser.ParseFrom); + } + + // answer is sent by the client to the SFU after receiving a subscriber_offer. + public static async Task SendAnswer(HttpClient client, Signal.SendAnswerRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SendAnswer", req, Signal.SendAnswerResponse.Parser.ParseFrom); + } + + // SendICECandidate sends an ICE candidate to the client + public static async Task IceTrickle(HttpClient client, StreamVideo.v1.Sfu.Models.ICETrickle req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/IceTrickle", req, StreamVideo.v1.Sfu.Signal.ICETrickleResponse.Parser.ParseFrom); + } + + // UpdateSubscribers is used to notify the SFU about the list of video subscriptions + // TODO: sync subscriptions based on this + update tracks using the dimension info sent by the user + public static async Task UpdateSubscriptions(HttpClient client, Signal.UpdateSubscriptionsRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/UpdateSubscriptions", req, Signal.UpdateSubscriptionsResponse.Parser.ParseFrom); + } + + public static async Task UpdateMuteStates(HttpClient client, Signal.UpdateMuteStatesRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/UpdateMuteStates", req, Signal.UpdateMuteStatesResponse.Parser.ParseFrom); + } + + public static async Task IceRestart(HttpClient client, Signal.ICERestartRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/IceRestart", req, Signal.ICERestartResponse.Parser.ParseFrom); + } + + public static async Task SendStats(HttpClient client, Signal.SendStatsRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/SendStats", req, Signal.SendStatsResponse.Parser.ParseFrom); + } + + public static async Task StartNoiseCancellation(HttpClient client, Signal.StartNoiseCancellationRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/StartNoiseCancellation", req, Signal.StartNoiseCancellationResponse.Parser.ParseFrom); + } + + public static async Task StopNoiseCancellation(HttpClient client, Signal.StopNoiseCancellationRequest req) { + return await DoRequest(client, "/twirp/stream.video.sfu.signal.SignalServer/StopNoiseCancellation", req, Signal.StopNoiseCancellationResponse.Parser.ParseFrom); + } +} } diff --git a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Models.cs b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Models.cs index 762af899..06dc7a7f 100644 --- a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Models.cs +++ b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Models.cs @@ -50,81 +50,123 @@ static ModelsReflection() { "A3JpZBgBIAEoCRJACg92aWRlb19kaW1lbnNpb24YAiABKAsyJy5zdHJlYW0u", "dmlkZW8uc2Z1Lm1vZGVscy5WaWRlb0RpbWVuc2lvbhIPCgdiaXRyYXRlGAQg", "ASgNEgsKA2ZwcxgFIAEoDRI2CgdxdWFsaXR5GAYgASgOMiUuc3RyZWFtLnZp", - "ZGVvLnNmdS5tb2RlbHMuVmlkZW9RdWFsaXR5IoIBCgVDb2RlYxIUCgxwYXls", - "b2FkX3R5cGUYASABKA0SDAoEbmFtZRgCIAEoCRIRCglmbXRwX2xpbmUYAyAB", - "KAkSEgoKY2xvY2tfcmF0ZRgEIAEoDRIbChNlbmNvZGluZ19wYXJhbWV0ZXJz", - "GAUgASgJEhEKCWZlZWRiYWNrcxgGIAMoCSJtCgpJQ0VUcmlja2xlEjQKCXBl", - "ZXJfdHlwZRgBIAEoDjIhLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlBlZXJU", - "eXBlEhUKDWljZV9jYW5kaWRhdGUYAiABKAkSEgoKc2Vzc2lvbl9pZBgDIAEo", - "CSLBAQoJVHJhY2tJbmZvEhAKCHRyYWNrX2lkGAEgASgJEjYKCnRyYWNrX3R5", - "cGUYAiABKA4yIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5UcmFja1R5cGUS", - "MwoGbGF5ZXJzGAUgAygLMiMuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuVmlk", - "ZW9MYXllchILCgNtaWQYBiABKAkSCwoDZHR4GAcgASgIEg4KBnN0ZXJlbxgI", - "IAEoCBILCgNyZWQYCSABKAgi2wEKBENhbGwSDAoEdHlwZRgBIAEoCRIKCgJp", - "ZBgCIAEoCRIaChJjcmVhdGVkX2J5X3VzZXJfaWQYAyABKAkSFAoMaG9zdF91", - "c2VyX2lkGAQgASgJEicKBmN1c3RvbRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1", - "Zi5TdHJ1Y3QSLgoKY3JlYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90", - "b2J1Zi5UaW1lc3RhbXAiYAoFRXJyb3ISMAoEY29kZRgBIAEoDjIiLnN0cmVh", - "bS52aWRlby5zZnUubW9kZWxzLkVycm9yQ29kZRIPCgdtZXNzYWdlGAIgASgJ", - "EhQKDHNob3VsZF9yZXRyeRgDIAEoCCLHAQoNQ2xpZW50RGV0YWlscxIpCgNz", - "ZGsYASABKAsyHC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5TZGsSJwoCb3MY", - "AiABKAsyGy5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5PUxIxCgdicm93c2Vy", - "GAMgASgLMiAuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuQnJvd3NlchIvCgZk", - "ZXZpY2UYBCABKAsyHy5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5EZXZpY2Ui", - "YgoDU2RrEi4KBHR5cGUYASABKA4yIC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVs", - "cy5TZGtUeXBlEg0KBW1ham9yGAIgASgJEg0KBW1pbm9yGAMgASgJEg0KBXBh", - "dGNoGAQgASgJIjkKAk9TEgwKBG5hbWUYASABKAkSDwoHdmVyc2lvbhgCIAEo", - "CRIUCgxhcmNoaXRlY3R1cmUYAyABKAkiKAoHQnJvd3NlchIMCgRuYW1lGAEg", - "ASgJEg8KB3ZlcnNpb24YAiABKAkiJwoGRGV2aWNlEgwKBG5hbWUYASABKAkS", - "DwoHdmVyc2lvbhgCIAEoCSJbCgpDYWxsR3JhbnRzEhkKEWNhbl9wdWJsaXNo", - "X2F1ZGlvGAEgASgIEhkKEWNhbl9wdWJsaXNoX3ZpZGVvGAIgASgIEhcKD2Nh", - "bl9zY3JlZW5zaGFyZRgDIAEoCCpJCghQZWVyVHlwZRIjCh9QRUVSX1RZUEVf", - "UFVCTElTSEVSX1VOU1BFQ0lGSUVEEAASGAoUUEVFUl9UWVBFX1NVQlNDUklC", - "RVIQASqTAQoRQ29ubmVjdGlvblF1YWxpdHkSIgoeQ09OTkVDVElPTl9RVUFM", - "SVRZX1VOU1BFQ0lGSUVEEAASGwoXQ09OTkVDVElPTl9RVUFMSVRZX1BPT1IQ", - "ARIbChdDT05ORUNUSU9OX1FVQUxJVFlfR09PRBACEiAKHENPTk5FQ1RJT05f", - "UVVBTElUWV9FWENFTExFTlQQAyp3CgxWaWRlb1F1YWxpdHkSIQodVklERU9f", - "UVVBTElUWV9MT1dfVU5TUEVDSUZJRUQQABIVChFWSURFT19RVUFMSVRZX01J", - "RBABEhYKElZJREVPX1FVQUxJVFlfSElHSBACEhUKEVZJREVPX1FVQUxJVFlf", - "T0ZGEAMqkwEKCVRyYWNrVHlwZRIaChZUUkFDS19UWVBFX1VOU1BFQ0lGSUVE", - "EAASFAoQVFJBQ0tfVFlQRV9BVURJTxABEhQKEFRSQUNLX1RZUEVfVklERU8Q", - "AhIbChdUUkFDS19UWVBFX1NDUkVFTl9TSEFSRRADEiEKHVRSQUNLX1RZUEVf", - "U0NSRUVOX1NIQVJFX0FVRElPEAQqkQYKCUVycm9yQ29kZRIaChZFUlJPUl9D", - "T0RFX1VOU1BFQ0lGSUVEEAASJgoiRVJST1JfQ09ERV9QVUJMSVNIX1RSQUNL", - "X05PVF9GT1VORBBkEiYKIkVSUk9SX0NPREVfUFVCTElTSF9UUkFDS1NfTUlT", - "TUFUQ0gQZRIpCiVFUlJPUl9DT0RFX1BVQkxJU0hfVFJBQ0tfT1VUX09GX09S", - "REVSEGYSMgouRVJST1JfQ09ERV9QVUJMSVNIX1RSQUNLX1ZJREVPX0xBWUVS", - "X05PVF9GT1VORBBnEhkKFUVSUk9SX0NPREVfTElWRV9FTkRFRBBoEiUKIEVS", - "Uk9SX0NPREVfUEFSVElDSVBBTlRfTk9UX0ZPVU5EEMgBEikKJEVSUk9SX0NP", - "REVfUEFSVElDSVBBTlRfTUlHUkFUSU5HX09VVBDJARIsCidFUlJPUl9DT0RF", - "X1BBUlRJQ0lQQU5UX01JR1JBVElPTl9GQUlMRUQQygESJQogRVJST1JfQ09E", - "RV9QQVJUSUNJUEFOVF9NSUdSQVRJTkcQywESLAonRVJST1JfQ09ERV9QQVJU", - "SUNJUEFOVF9SRUNPTk5FQ1RfRkFJTEVEEMwBEjMKLkVSUk9SX0NPREVfUEFS", - "VElDSVBBTlRfTUVESUFfVFJBTlNQT1JUX0ZBSUxVUkUQzQESHgoZRVJST1Jf", - "Q09ERV9DQUxMX05PVF9GT1VORBCsAhIpCiRFUlJPUl9DT0RFX1JFUVVFU1Rf", - "VkFMSURBVElPTl9GQUlMRUQQkAMSHwoaRVJST1JfQ09ERV9VTkFVVEhFTlRJ", - "Q0FURUQQkQMSIQocRVJST1JfQ09ERV9QRVJNSVNTSU9OX0RFTklFRBCTAxIh", - "ChxFUlJPUl9DT0RFX1RPT19NQU5ZX1JFUVVFU1RTEK0DEiUKIEVSUk9SX0NP", - "REVfSU5URVJOQUxfU0VSVkVSX0VSUk9SEPQDEiEKHEVSUk9SX0NPREVfU0ZV", - "X1NIVVRUSU5HX0RPV04Q2AQSGAoTRVJST1JfQ09ERV9TRlVfRlVMTBC8BSq6", - "AQoHU2RrVHlwZRIYChRTREtfVFlQRV9VTlNQRUNJRklFRBAAEhIKDlNES19U", - "WVBFX1JFQUNUEAESFAoQU0RLX1RZUEVfQU5HVUxBUhACEhQKEFNES19UWVBF", - "X0FORFJPSUQQAxIQCgxTREtfVFlQRV9JT1MQBBIUChBTREtfVFlQRV9GTFVU", - "VEVSEAUSGQoVU0RLX1RZUEVfUkVBQ1RfTkFUSVZFEAYSEgoOU0RLX1RZUEVf", - "VU5JVFkQByq7AQoUVHJhY2tVbnB1Ymxpc2hSZWFzb24SJgoiVFJBQ0tfVU5Q", - "VUJMSVNIX1JFQVNPTl9VTlNQRUNJRklFRBAAEiUKIVRSQUNLX1VOUFVCTElT", - "SF9SRUFTT05fVVNFUl9NVVRFRBABEi0KKVRSQUNLX1VOUFVCTElTSF9SRUFT", - "T05fUEVSTUlTU0lPTl9SRVZPS0VEEAISJQohVFJBQ0tfVU5QVUJMSVNIX1JF", - "QVNPTl9NT0RFUkFUSU9OEAMqbgoMR29Bd2F5UmVhc29uEh4KGkdPX0FXQVlf", - "UkVBU09OX1VOU1BFQ0lGSUVEEAASIAocR09fQVdBWV9SRUFTT05fU0hVVFRJ", - "TkdfRE9XThABEhwKGEdPX0FXQVlfUkVBU09OX1JFQkFMQU5DRRACQmRCC1Nm", - "dU1vZGVsc1YxUAFaN2dpdGh1Yi5jb20vR2V0U3RyZWFtL3Byb3RvY29sL3By", - "b3RvYnVmL3ZpZGVvL3NmdS9tb2RlbHOqAhlTdHJlYW1WaWRlby52MS5TZnUu", - "TW9kZWxzYgZwcm90bzM=")); + "ZGVvLnNmdS5tb2RlbHMuVmlkZW9RdWFsaXR5InkKD1N1YnNjcmliZU9wdGlv", + "bhI2Cgp0cmFja190eXBlGAEgASgOMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2Rl", + "bHMuVHJhY2tUeXBlEi4KBmNvZGVjcxgCIAMoCzIeLnN0cmVhbS52aWRlby5z", + "ZnUubW9kZWxzLkNvZGVjIpsCCg1QdWJsaXNoT3B0aW9uEjYKCnRyYWNrX3R5", + "cGUYASABKA4yIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5UcmFja1R5cGUS", + "LQoFY29kZWMYAiABKAsyHi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5Db2Rl", + "YxIPCgdiaXRyYXRlGAMgASgFEgsKA2ZwcxgEIAEoBRIaChJtYXhfc3BhdGlh", + "bF9sYXllcnMYBSABKAUSGwoTbWF4X3RlbXBvcmFsX2xheWVycxgGIAEoBRJA", + "Cg92aWRlb19kaW1lbnNpb24YByABKAsyJy5zdHJlYW0udmlkZW8uc2Z1Lm1v", + "ZGVscy5WaWRlb0RpbWVuc2lvbhIKCgJpZBgIIAEoBSJqCgVDb2RlYxIUCgxw", + "YXlsb2FkX3R5cGUYECABKA0SDAoEbmFtZRgKIAEoCRISCgpjbG9ja19yYXRl", + "GA4gASgNEhsKE2VuY29kaW5nX3BhcmFtZXRlcnMYDyABKAkSDAoEZm10cBgM", + "IAEoCSJtCgpJQ0VUcmlja2xlEjQKCXBlZXJfdHlwZRgBIAEoDjIhLnN0cmVh", + "bS52aWRlby5zZnUubW9kZWxzLlBlZXJUeXBlEhUKDWljZV9jYW5kaWRhdGUY", + "AiABKAkSEgoKc2Vzc2lvbl9pZBgDIAEoCSKaAgoJVHJhY2tJbmZvEhAKCHRy", + "YWNrX2lkGAEgASgJEjYKCnRyYWNrX3R5cGUYAiABKA4yIi5zdHJlYW0udmlk", + "ZW8uc2Z1Lm1vZGVscy5UcmFja1R5cGUSMwoGbGF5ZXJzGAUgAygLMiMuc3Ry", + "ZWFtLnZpZGVvLnNmdS5tb2RlbHMuVmlkZW9MYXllchILCgNtaWQYBiABKAkS", + "CwoDZHR4GAcgASgIEg4KBnN0ZXJlbxgIIAEoCBILCgNyZWQYCSABKAgSDQoF", + "bXV0ZWQYCiABKAgSLQoFY29kZWMYCyABKAsyHi5zdHJlYW0udmlkZW8uc2Z1", + "Lm1vZGVscy5Db2RlYxIZChFwdWJsaXNoX29wdGlvbl9pZBgMIAEoBSJgCgVF", + "cnJvchIwCgRjb2RlGAEgASgOMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMu", + "RXJyb3JDb2RlEg8KB21lc3NhZ2UYAiABKAkSFAoMc2hvdWxkX3JldHJ5GAMg", + "ASgIIscBCg1DbGllbnREZXRhaWxzEikKA3NkaxgBIAEoCzIcLnN0cmVhbS52", + "aWRlby5zZnUubW9kZWxzLlNkaxInCgJvcxgCIAEoCzIbLnN0cmVhbS52aWRl", + "by5zZnUubW9kZWxzLk9TEjEKB2Jyb3dzZXIYAyABKAsyIC5zdHJlYW0udmlk", + "ZW8uc2Z1Lm1vZGVscy5Ccm93c2VyEi8KBmRldmljZRgEIAEoCzIfLnN0cmVh", + "bS52aWRlby5zZnUubW9kZWxzLkRldmljZSJiCgNTZGsSLgoEdHlwZRgBIAEo", + "DjIgLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlNka1R5cGUSDQoFbWFqb3IY", + "AiABKAkSDQoFbWlub3IYAyABKAkSDQoFcGF0Y2gYBCABKAkiOQoCT1MSDAoE", + "bmFtZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEhQKDGFyY2hpdGVjdHVyZRgD", + "IAEoCSIoCgdCcm93c2VyEgwKBG5hbWUYASABKAkSDwoHdmVyc2lvbhgCIAEo", + "CSKJAQoLUlRNUEluZ3Jlc3MSDQoFd2lkdGgYASABKA0SDgoGaGVpZ2h0GAIg", + "ASgNEhIKCmZyYW1lX3JhdGUYAyABKAESEAoIc29mdHdhcmUYBCABKAkSDwoH", + "dmVyc2lvbhgFIAEoCRIPCgdlbmNvZGVyGAYgASgJEhMKC3JlbW90ZV9hZGRy", + "GAcgASgJIicKBkRldmljZRIMCgRuYW1lGAEgASgJEg8KB3ZlcnNpb24YAiAB", + "KAki2wEKBENhbGwSDAoEdHlwZRgBIAEoCRIKCgJpZBgCIAEoCRIaChJjcmVh", + "dGVkX2J5X3VzZXJfaWQYAyABKAkSFAoMaG9zdF91c2VyX2lkGAQgASgJEicK", + "BmN1c3RvbRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSLgoKY3Jl", + "YXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoK", + "dXBkYXRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi", + "WwoKQ2FsbEdyYW50cxIZChFjYW5fcHVibGlzaF9hdWRpbxgBIAEoCBIZChFj", + "YW5fcHVibGlzaF92aWRlbxgCIAEoCBIXCg9jYW5fc2NyZWVuc2hhcmUYAyAB", + "KAgiVwoMSW5wdXREZXZpY2VzEhkKEWF2YWlsYWJsZV9kZXZpY2VzGAEgAygJ", + "EhYKDmN1cnJlbnRfZGV2aWNlGAIgASgJEhQKDGlzX3Blcm1pdHRlZBgDIAEo", + "CCJwCgxBbmRyb2lkU3RhdGUSQwoNdGhlcm1hbF9zdGF0ZRgBIAEoDjIsLnN0", + "cmVhbS52aWRlby5zZnUubW9kZWxzLkFuZHJvaWRUaGVybWFsU3RhdGUSGwoT", + "aXNfcG93ZXJfc2F2ZXJfbW9kZRgCIAEoCCJyCgpBcHBsZVN0YXRlEkEKDXRo", + "ZXJtYWxfc3RhdGUYASABKA4yKi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5B", + "cHBsZVRoZXJtYWxTdGF0ZRIhChlpc19sb3dfcG93ZXJfbW9kZV9lbmFibGVk", + "GAIgASgIKkkKCFBlZXJUeXBlEiMKH1BFRVJfVFlQRV9QVUJMSVNIRVJfVU5T", + "UEVDSUZJRUQQABIYChRQRUVSX1RZUEVfU1VCU0NSSUJFUhABKpMBChFDb25u", + "ZWN0aW9uUXVhbGl0eRIiCh5DT05ORUNUSU9OX1FVQUxJVFlfVU5TUEVDSUZJ", + "RUQQABIbChdDT05ORUNUSU9OX1FVQUxJVFlfUE9PUhABEhsKF0NPTk5FQ1RJ", + "T05fUVVBTElUWV9HT09EEAISIAocQ09OTkVDVElPTl9RVUFMSVRZX0VYQ0VM", + "TEVOVBADKncKDFZpZGVvUXVhbGl0eRIhCh1WSURFT19RVUFMSVRZX0xPV19V", + "TlNQRUNJRklFRBAAEhUKEVZJREVPX1FVQUxJVFlfTUlEEAESFgoSVklERU9f", + "UVVBTElUWV9ISUdIEAISFQoRVklERU9fUVVBTElUWV9PRkYQAyqTAQoJVHJh", + "Y2tUeXBlEhoKFlRSQUNLX1RZUEVfVU5TUEVDSUZJRUQQABIUChBUUkFDS19U", + "WVBFX0FVRElPEAESFAoQVFJBQ0tfVFlQRV9WSURFTxACEhsKF1RSQUNLX1RZ", + "UEVfU0NSRUVOX1NIQVJFEAMSIQodVFJBQ0tfVFlQRV9TQ1JFRU5fU0hBUkVf", + "QVVESU8QBCqRBgoJRXJyb3JDb2RlEhoKFkVSUk9SX0NPREVfVU5TUEVDSUZJ", + "RUQQABImCiJFUlJPUl9DT0RFX1BVQkxJU0hfVFJBQ0tfTk9UX0ZPVU5EEGQS", + "JgoiRVJST1JfQ09ERV9QVUJMSVNIX1RSQUNLU19NSVNNQVRDSBBlEikKJUVS", + "Uk9SX0NPREVfUFVCTElTSF9UUkFDS19PVVRfT0ZfT1JERVIQZhIyCi5FUlJP", + "Ul9DT0RFX1BVQkxJU0hfVFJBQ0tfVklERU9fTEFZRVJfTk9UX0ZPVU5EEGcS", + "GQoVRVJST1JfQ09ERV9MSVZFX0VOREVEEGgSJQogRVJST1JfQ09ERV9QQVJU", + "SUNJUEFOVF9OT1RfRk9VTkQQyAESKQokRVJST1JfQ09ERV9QQVJUSUNJUEFO", + "VF9NSUdSQVRJTkdfT1VUEMkBEiwKJ0VSUk9SX0NPREVfUEFSVElDSVBBTlRf", + "TUlHUkFUSU9OX0ZBSUxFRBDKARIlCiBFUlJPUl9DT0RFX1BBUlRJQ0lQQU5U", + "X01JR1JBVElORxDLARIsCidFUlJPUl9DT0RFX1BBUlRJQ0lQQU5UX1JFQ09O", + "TkVDVF9GQUlMRUQQzAESMwouRVJST1JfQ09ERV9QQVJUSUNJUEFOVF9NRURJ", + "QV9UUkFOU1BPUlRfRkFJTFVSRRDNARIeChlFUlJPUl9DT0RFX0NBTExfTk9U", + "X0ZPVU5EEKwCEikKJEVSUk9SX0NPREVfUkVRVUVTVF9WQUxJREFUSU9OX0ZB", + "SUxFRBCQAxIfChpFUlJPUl9DT0RFX1VOQVVUSEVOVElDQVRFRBCRAxIhChxF", + "UlJPUl9DT0RFX1BFUk1JU1NJT05fREVOSUVEEJMDEiEKHEVSUk9SX0NPREVf", + "VE9PX01BTllfUkVRVUVTVFMQrQMSJQogRVJST1JfQ09ERV9JTlRFUk5BTF9T", + "RVJWRVJfRVJST1IQ9AMSIQocRVJST1JfQ09ERV9TRlVfU0hVVFRJTkdfRE9X", + "ThDYBBIYChNFUlJPUl9DT0RFX1NGVV9GVUxMELwFKuoBCgdTZGtUeXBlEhgK", + "FFNES19UWVBFX1VOU1BFQ0lGSUVEEAASEgoOU0RLX1RZUEVfUkVBQ1QQARIU", + "ChBTREtfVFlQRV9BTkdVTEFSEAISFAoQU0RLX1RZUEVfQU5EUk9JRBADEhAK", + "DFNES19UWVBFX0lPUxAEEhQKEFNES19UWVBFX0ZMVVRURVIQBRIZChVTREtf", + "VFlQRV9SRUFDVF9OQVRJVkUQBhISCg5TREtfVFlQRV9VTklUWRAHEg8KC1NE", + "S19UWVBFX0dPEAgSHQoZU0RLX1RZUEVfUExBSU5fSkFWQVNDUklQVBAJKrsB", + "ChRUcmFja1VucHVibGlzaFJlYXNvbhImCiJUUkFDS19VTlBVQkxJU0hfUkVB", + "U09OX1VOU1BFQ0lGSUVEEAASJQohVFJBQ0tfVU5QVUJMSVNIX1JFQVNPTl9V", + "U0VSX01VVEVEEAESLQopVFJBQ0tfVU5QVUJMSVNIX1JFQVNPTl9QRVJNSVNT", + "SU9OX1JFVk9LRUQQAhIlCiFUUkFDS19VTlBVQkxJU0hfUkVBU09OX01PREVS", + "QVRJT04QAypuCgxHb0F3YXlSZWFzb24SHgoaR09fQVdBWV9SRUFTT05fVU5T", + "UEVDSUZJRUQQABIgChxHT19BV0FZX1JFQVNPTl9TSFVUVElOR19ET1dOEAES", + "HAoYR09fQVdBWV9SRUFTT05fUkVCQUxBTkNFEAIqtgEKD0NhbGxFbmRlZFJl", + "YXNvbhIhCh1DQUxMX0VOREVEX1JFQVNPTl9VTlNQRUNJRklFRBAAEhsKF0NB", + "TExfRU5ERURfUkVBU09OX0VOREVEEAESIAocQ0FMTF9FTkRFRF9SRUFTT05f", + "TElWRV9FTkRFRBACEhwKGENBTExfRU5ERURfUkVBU09OX0tJQ0tFRBADEiMK", + "H0NBTExfRU5ERURfUkVBU09OX1NFU1NJT05fRU5ERUQQBCrxAQoaV2Vic29j", + "a2V0UmVjb25uZWN0U3RyYXRlZ3kSLAooV0VCU09DS0VUX1JFQ09OTkVDVF9T", + "VFJBVEVHWV9VTlNQRUNJRklFRBAAEisKJ1dFQlNPQ0tFVF9SRUNPTk5FQ1Rf", + "U1RSQVRFR1lfRElTQ09OTkVDVBABEiUKIVdFQlNPQ0tFVF9SRUNPTk5FQ1Rf", + "U1RSQVRFR1lfRkFTVBACEicKI1dFQlNPQ0tFVF9SRUNPTk5FQ1RfU1RSQVRF", + "R1lfUkVKT0lOEAMSKAokV0VCU09DS0VUX1JFQ09OTkVDVF9TVFJBVEVHWV9N", + "SUdSQVRFEAQqsAIKE0FuZHJvaWRUaGVybWFsU3RhdGUSJQohQU5EUk9JRF9U", + "SEVSTUFMX1NUQVRFX1VOU1BFQ0lGSUVEEAASHgoaQU5EUk9JRF9USEVSTUFM", + "X1NUQVRFX05PTkUQARIfChtBTkRST0lEX1RIRVJNQUxfU1RBVEVfTElHSFQQ", + "AhIiCh5BTkRST0lEX1RIRVJNQUxfU1RBVEVfTU9ERVJBVEUQAxIgChxBTkRS", + "T0lEX1RIRVJNQUxfU1RBVEVfU0VWRVJFEAQSIgoeQU5EUk9JRF9USEVSTUFM", + "X1NUQVRFX0NSSVRJQ0FMEAUSIwofQU5EUk9JRF9USEVSTUFMX1NUQVRFX0VN", + "RVJHRU5DWRAGEiIKHkFORFJPSURfVEhFUk1BTF9TVEFURV9TSFVURE9XThAH", + "KroBChFBcHBsZVRoZXJtYWxTdGF0ZRIjCh9BUFBMRV9USEVSTUFMX1NUQVRF", + "X1VOU1BFQ0lGSUVEEAASHwobQVBQTEVfVEhFUk1BTF9TVEFURV9OT01JTkFM", + "EAESHAoYQVBQTEVfVEhFUk1BTF9TVEFURV9GQUlSEAISHwobQVBQTEVfVEhF", + "Uk1BTF9TVEFURV9TRVJJT1VTEAMSIAocQVBQTEVfVEhFUk1BTF9TVEFURV9D", + "UklUSUNBTBAEQmVCC1NmdU1vZGVsc1YxUAFaN2dpdGh1Yi5jb20vR2V0U3Ry", + "ZWFtL3Byb3RvY29sL3Byb3RvYnVmL3ZpZGVvL3NmdS9tb2RlbHOqAhpTdHJl", + "YW0uVmlkZW8udjEuU2Z1Lk1vZGVsc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::StreamVideo.v1.Sfu.Models.PeerType), typeof(global::StreamVideo.v1.Sfu.Models.ConnectionQuality), typeof(global::StreamVideo.v1.Sfu.Models.VideoQuality), typeof(global::StreamVideo.v1.Sfu.Models.TrackType), typeof(global::StreamVideo.v1.Sfu.Models.ErrorCode), typeof(global::StreamVideo.v1.Sfu.Models.SdkType), typeof(global::StreamVideo.v1.Sfu.Models.TrackUnpublishReason), typeof(global::StreamVideo.v1.Sfu.Models.GoAwayReason), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::StreamVideo.v1.Sfu.Models.PeerType), typeof(global::StreamVideo.v1.Sfu.Models.ConnectionQuality), typeof(global::StreamVideo.v1.Sfu.Models.VideoQuality), typeof(global::StreamVideo.v1.Sfu.Models.TrackType), typeof(global::StreamVideo.v1.Sfu.Models.ErrorCode), typeof(global::StreamVideo.v1.Sfu.Models.SdkType), typeof(global::StreamVideo.v1.Sfu.Models.TrackUnpublishReason), typeof(global::StreamVideo.v1.Sfu.Models.GoAwayReason), typeof(global::StreamVideo.v1.Sfu.Models.CallEndedReason), typeof(global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy), typeof(global::StreamVideo.v1.Sfu.Models.AndroidThermalState), typeof(global::StreamVideo.v1.Sfu.Models.AppleThermalState), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.CallState), global::StreamVideo.v1.Sfu.Models.CallState.Parser, new[]{ "Participants", "StartedAt", "ParticipantCount", "Pins" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.ParticipantCount), global::StreamVideo.v1.Sfu.Models.ParticipantCount.Parser, new[]{ "Total", "Anonymous" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Pin), global::StreamVideo.v1.Sfu.Models.Pin.Parser, new[]{ "UserId", "SessionId" }, null, null, null, null), @@ -132,17 +174,23 @@ static ModelsReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.StreamQuality), global::StreamVideo.v1.Sfu.Models.StreamQuality.Parser, new[]{ "VideoQuality", "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.VideoDimension), global::StreamVideo.v1.Sfu.Models.VideoDimension.Parser, new[]{ "Width", "Height" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.VideoLayer), global::StreamVideo.v1.Sfu.Models.VideoLayer.Parser, new[]{ "Rid", "VideoDimension", "Bitrate", "Fps", "Quality" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Codec), global::StreamVideo.v1.Sfu.Models.Codec.Parser, new[]{ "PayloadType", "Name", "FmtpLine", "ClockRate", "EncodingParameters", "Feedbacks" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.SubscribeOption), global::StreamVideo.v1.Sfu.Models.SubscribeOption.Parser, new[]{ "TrackType", "Codecs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.PublishOption), global::StreamVideo.v1.Sfu.Models.PublishOption.Parser, new[]{ "TrackType", "Codec", "Bitrate", "Fps", "MaxSpatialLayers", "MaxTemporalLayers", "VideoDimension", "Id" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Codec), global::StreamVideo.v1.Sfu.Models.Codec.Parser, new[]{ "PayloadType", "Name", "ClockRate", "EncodingParameters", "Fmtp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.ICETrickle), global::StreamVideo.v1.Sfu.Models.ICETrickle.Parser, new[]{ "PeerType", "IceCandidate", "SessionId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.TrackInfo), global::StreamVideo.v1.Sfu.Models.TrackInfo.Parser, new[]{ "TrackId", "TrackType", "Layers", "Mid", "Dtx", "Stereo", "Red" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Call), global::StreamVideo.v1.Sfu.Models.Call.Parser, new[]{ "Type", "Id", "CreatedByUserId", "HostUserId", "Custom", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.TrackInfo), global::StreamVideo.v1.Sfu.Models.TrackInfo.Parser, new[]{ "TrackId", "TrackType", "Layers", "Mid", "Dtx", "Stereo", "Red", "Muted", "Codec", "PublishOptionId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Error), global::StreamVideo.v1.Sfu.Models.Error.Parser, new[]{ "Code", "Message", "ShouldRetry" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.ClientDetails), global::StreamVideo.v1.Sfu.Models.ClientDetails.Parser, new[]{ "Sdk", "Os", "Browser", "Device" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Sdk), global::StreamVideo.v1.Sfu.Models.Sdk.Parser, new[]{ "Type", "Major", "Minor", "Patch" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.OS), global::StreamVideo.v1.Sfu.Models.OS.Parser, new[]{ "Name", "Version", "Architecture" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Browser), global::StreamVideo.v1.Sfu.Models.Browser.Parser, new[]{ "Name", "Version" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.RTMPIngress), global::StreamVideo.v1.Sfu.Models.RTMPIngress.Parser, new[]{ "Width", "Height", "FrameRate", "Software", "Version", "Encoder", "RemoteAddr" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Device), global::StreamVideo.v1.Sfu.Models.Device.Parser, new[]{ "Name", "Version" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.CallGrants), global::StreamVideo.v1.Sfu.Models.CallGrants.Parser, new[]{ "CanPublishAudio", "CanPublishVideo", "CanScreenshare" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.Call), global::StreamVideo.v1.Sfu.Models.Call.Parser, new[]{ "Type", "Id", "CreatedByUserId", "HostUserId", "Custom", "CreatedAt", "UpdatedAt" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.CallGrants), global::StreamVideo.v1.Sfu.Models.CallGrants.Parser, new[]{ "CanPublishAudio", "CanPublishVideo", "CanScreenshare" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.InputDevices), global::StreamVideo.v1.Sfu.Models.InputDevices.Parser, new[]{ "AvailableDevices", "CurrentDevice", "IsPermitted" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.AndroidState), global::StreamVideo.v1.Sfu.Models.AndroidState.Parser, new[]{ "ThermalState", "IsPowerSaverMode" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Models.AppleState), global::StreamVideo.v1.Sfu.Models.AppleState.Parser, new[]{ "ThermalState", "IsLowPowerModeEnabled" }, null, null, null, null) })); } #endregion @@ -211,6 +259,8 @@ internal enum SdkType { [pbr::OriginalName("SDK_TYPE_FLUTTER")] Flutter = 5, [pbr::OriginalName("SDK_TYPE_REACT_NATIVE")] ReactNative = 6, [pbr::OriginalName("SDK_TYPE_UNITY")] Unity = 7, + [pbr::OriginalName("SDK_TYPE_GO")] Go = 8, + [pbr::OriginalName("SDK_TYPE_PLAIN_JAVASCRIPT")] PlainJavascript = 9, } internal enum TrackUnpublishReason { @@ -238,12 +288,79 @@ internal enum TrackUnpublishReason { [pbr::OriginalName("TRACK_UNPUBLISH_REASON_MODERATION")] Moderation = 3, } + /// + /// GoAwayReason represents the reason for the SFU to + /// disconnect the client. + /// internal enum GoAwayReason { [pbr::OriginalName("GO_AWAY_REASON_UNSPECIFIED")] Unspecified = 0, [pbr::OriginalName("GO_AWAY_REASON_SHUTTING_DOWN")] ShuttingDown = 1, [pbr::OriginalName("GO_AWAY_REASON_REBALANCE")] Rebalance = 2, } + /// + /// CallEndedReason represents the reason for the call to end. + /// + internal enum CallEndedReason { + [pbr::OriginalName("CALL_ENDED_REASON_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("CALL_ENDED_REASON_ENDED")] Ended = 1, + [pbr::OriginalName("CALL_ENDED_REASON_LIVE_ENDED")] LiveEnded = 2, + [pbr::OriginalName("CALL_ENDED_REASON_KICKED")] Kicked = 3, + [pbr::OriginalName("CALL_ENDED_REASON_SESSION_ENDED")] SessionEnded = 4, + } + + /// + /// WebsocketReconnectStrategy defines the ws strategies available for handling reconnections. + /// + internal enum WebsocketReconnectStrategy { + [pbr::OriginalName("WEBSOCKET_RECONNECT_STRATEGY_UNSPECIFIED")] Unspecified = 0, + /// + /// Sent after reaching the maximum reconnection attempts, or any other unrecoverable error leading to permanent disconnect. + /// + [pbr::OriginalName("WEBSOCKET_RECONNECT_STRATEGY_DISCONNECT")] Disconnect = 1, + /// + /// SDK should maintaining existing publisher/subscriber pc instances + /// and establish a new WebSocket connection. + /// + [pbr::OriginalName("WEBSOCKET_RECONNECT_STRATEGY_FAST")] Fast = 2, + /// + /// SDK should obtain new credentials from the coordinator, drops existing pc instances, set a new session_id and initializes + /// a completely new WebSocket connection, ensuring a comprehensive reset. + /// + [pbr::OriginalName("WEBSOCKET_RECONNECT_STRATEGY_REJOIN")] Rejoin = 3, + /// + /// SDK should migrate to a new SFU instance + /// + [pbr::OriginalName("WEBSOCKET_RECONNECT_STRATEGY_MIGRATE")] Migrate = 4, + } + + /// + /// AndroidThermalState is reported by the Android API. The full list of values is documented here + /// https://developer.android.com/reference/android/os/PowerManager.html#getCurrentThermalStatus() + /// + internal enum AndroidThermalState { + [pbr::OriginalName("ANDROID_THERMAL_STATE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("ANDROID_THERMAL_STATE_NONE")] None = 1, + [pbr::OriginalName("ANDROID_THERMAL_STATE_LIGHT")] Light = 2, + [pbr::OriginalName("ANDROID_THERMAL_STATE_MODERATE")] Moderate = 3, + [pbr::OriginalName("ANDROID_THERMAL_STATE_SEVERE")] Severe = 4, + [pbr::OriginalName("ANDROID_THERMAL_STATE_CRITICAL")] Critical = 5, + [pbr::OriginalName("ANDROID_THERMAL_STATE_EMERGENCY")] Emergency = 6, + [pbr::OriginalName("ANDROID_THERMAL_STATE_SHUTDOWN")] Shutdown = 7, + } + + /// + /// AppleThermalState is the thermal state as reported by Apple devices when available or applicable to the platform. + /// The full list of states (enum) is available here: https://developer.apple.com/documentation/foundation/processinfo/thermalstate + /// + internal enum AppleThermalState { + [pbr::OriginalName("APPLE_THERMAL_STATE_UNSPECIFIED")] Unspecified = 0, + [pbr::OriginalName("APPLE_THERMAL_STATE_NOMINAL")] Nominal = 1, + [pbr::OriginalName("APPLE_THERMAL_STATE_FAIR")] Fair = 2, + [pbr::OriginalName("APPLE_THERMAL_STATE_SERIOUS")] Serious = 3, + [pbr::OriginalName("APPLE_THERMAL_STATE_CRITICAL")] Critical = 4, + } + #endregion #region Messages @@ -251,6 +368,7 @@ internal enum GoAwayReason { /// CallState is the current state of the call /// as seen by an SFU. /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class CallState : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -564,6 +682,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class ParticipantCount : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -797,6 +916,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class Pin : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1032,6 +1152,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// those who are online in the call /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class Participant : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1666,6 +1787,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class StreamQuality : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1892,6 +2014,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class VideoDimension : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2118,6 +2241,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class VideoLayer : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2470,16 +2594,20 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Codec : pb::IMessage + /// + /// SubscribeOption represents the configuration options for subscribing to a track. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class SubscribeOption : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Codec()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SubscribeOption()); 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)] @@ -2495,7 +2623,7 @@ internal sealed partial class Codec : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Codec() { + public SubscribeOption() { OnConstruction(); } @@ -2503,114 +2631,64 @@ public Codec() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Codec(Codec other) : this() { - payloadType_ = other.payloadType_; - name_ = other.name_; - fmtpLine_ = other.fmtpLine_; - clockRate_ = other.clockRate_; - encodingParameters_ = other.encodingParameters_; - feedbacks_ = other.feedbacks_.Clone(); + public SubscribeOption(SubscribeOption other) : this() { + trackType_ = other.trackType_; + codecs_ = other.codecs_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Codec Clone() { - return new Codec(this); - } - - /// Field number for the "payload_type" field. - public const int PayloadTypeFieldNumber = 1; - private uint payloadType_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PayloadType { - get { return payloadType_; } - set { - payloadType_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fmtp_line" field. - public const int FmtpLineFieldNumber = 3; - private string fmtpLine_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FmtpLine { - get { return fmtpLine_; } - set { - fmtpLine_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "clock_rate" field. - public const int ClockRateFieldNumber = 4; - private uint clockRate_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ClockRate { - get { return clockRate_; } - set { - clockRate_ = value; - } + public SubscribeOption Clone() { + return new SubscribeOption(this); } - /// Field number for the "encoding_parameters" field. - public const int EncodingParametersFieldNumber = 5; - private string encodingParameters_ = ""; + /// Field number for the "track_type" field. + public const int TrackTypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + /// + /// The type of the track being subscribed (e.g., video, screenshare). + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EncodingParameters { - get { return encodingParameters_; } + public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { + get { return trackType_; } set { - encodingParameters_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + trackType_ = value; } } - /// Field number for the "feedbacks" field. - public const int FeedbacksFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_feedbacks_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField feedbacks_ = new pbc::RepeatedField(); + /// Field number for the "codecs" field. + public const int CodecsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_codecs_codec + = pb::FieldCodec.ForMessage(18, global::StreamVideo.v1.Sfu.Models.Codec.Parser); + private readonly pbc::RepeatedField codecs_ = new pbc::RepeatedField(); + /// + /// The codecs supported by the subscriber for decoding tracks. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Feedbacks { - get { return feedbacks_; } + public pbc::RepeatedField Codecs { + get { return codecs_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Codec); + return Equals(other as SubscribeOption); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Codec other) { + public bool Equals(SubscribeOption other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PayloadType != other.PayloadType) return false; - if (Name != other.Name) return false; - if (FmtpLine != other.FmtpLine) return false; - if (ClockRate != other.ClockRate) return false; - if (EncodingParameters != other.EncodingParameters) return false; - if(!feedbacks_.Equals(other.feedbacks_)) return false; + if (TrackType != other.TrackType) return false; + if(!codecs_.Equals(other.codecs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2618,12 +2696,8 @@ public bool Equals(Codec other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PayloadType != 0) hash ^= PayloadType.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (FmtpLine.Length != 0) hash ^= FmtpLine.GetHashCode(); - if (ClockRate != 0) hash ^= ClockRate.GetHashCode(); - if (EncodingParameters.Length != 0) hash ^= EncodingParameters.GetHashCode(); - hash ^= feedbacks_.GetHashCode(); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); + hash ^= codecs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2642,27 +2716,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PayloadType != 0) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(8); - output.WriteUInt32(PayloadType); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (FmtpLine.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FmtpLine); - } - if (ClockRate != 0) { - output.WriteRawTag(32); - output.WriteUInt32(ClockRate); - } - if (EncodingParameters.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EncodingParameters); + output.WriteEnum((int) TrackType); } - feedbacks_.WriteTo(output, _repeated_feedbacks_codec); + codecs_.WriteTo(output, _repeated_codecs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2673,27 +2731,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 (PayloadType != 0) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(8); - output.WriteUInt32(PayloadType); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (FmtpLine.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FmtpLine); - } - if (ClockRate != 0) { - output.WriteRawTag(32); - output.WriteUInt32(ClockRate); - } - if (EncodingParameters.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EncodingParameters); + output.WriteEnum((int) TrackType); } - feedbacks_.WriteTo(ref output, _repeated_feedbacks_codec); + codecs_.WriteTo(ref output, _repeated_codecs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2704,22 +2746,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PayloadType != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PayloadType); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (FmtpLine.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FmtpLine); - } - if (ClockRate != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClockRate); - } - if (EncodingParameters.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EncodingParameters); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); } - size += feedbacks_.CalculateSize(_repeated_feedbacks_codec); + size += codecs_.CalculateSize(_repeated_codecs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2728,26 +2758,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Codec other) { + public void MergeFrom(SubscribeOption other) { if (other == null) { return; } - if (other.PayloadType != 0) { - PayloadType = other.PayloadType; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.FmtpLine.Length != 0) { - FmtpLine = other.FmtpLine; - } - if (other.ClockRate != 0) { - ClockRate = other.ClockRate; - } - if (other.EncodingParameters.Length != 0) { - EncodingParameters = other.EncodingParameters; + if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + TrackType = other.TrackType; } - feedbacks_.Add(other.feedbacks_); + codecs_.Add(other.codecs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2764,27 +2782,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - PayloadType = input.ReadUInt32(); + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } case 18: { - Name = input.ReadString(); - break; - } - case 26: { - FmtpLine = input.ReadString(); - break; - } - case 32: { - ClockRate = input.ReadUInt32(); - break; - } - case 42: { - EncodingParameters = input.ReadString(); - break; - } - case 50: { - feedbacks_.AddEntriesFrom(input, _repeated_feedbacks_codec); + codecs_.AddEntriesFrom(input, _repeated_codecs_codec); break; } } @@ -2803,27 +2805,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - PayloadType = input.ReadUInt32(); + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } case 18: { - Name = input.ReadString(); - break; - } - case 26: { - FmtpLine = input.ReadString(); - break; - } - case 32: { - ClockRate = input.ReadUInt32(); - break; - } - case 42: { - EncodingParameters = input.ReadString(); - break; - } - case 50: { - feedbacks_.AddEntriesFrom(ref input, _repeated_feedbacks_codec); + codecs_.AddEntriesFrom(ref input, _repeated_codecs_codec); break; } } @@ -2833,16 +2819,20 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ICETrickle : pb::IMessage + /// + /// PublishOption represents the configuration options for publishing a track. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class PublishOption : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICETrickle()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishOption()); 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)] @@ -2858,7 +2848,7 @@ internal sealed partial class ICETrickle : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle() { + public PublishOption() { OnConstruction(); } @@ -2866,73 +2856,190 @@ public ICETrickle() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle(ICETrickle other) : this() { - peerType_ = other.peerType_; - iceCandidate_ = other.iceCandidate_; - sessionId_ = other.sessionId_; + public PublishOption(PublishOption other) : this() { + trackType_ = other.trackType_; + codec_ = other.codec_ != null ? other.codec_.Clone() : null; + bitrate_ = other.bitrate_; + fps_ = other.fps_; + maxSpatialLayers_ = other.maxSpatialLayers_; + maxTemporalLayers_ = other.maxTemporalLayers_; + videoDimension_ = other.videoDimension_ != null ? other.videoDimension_.Clone() : null; + id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ICETrickle Clone() { - return new ICETrickle(this); + public PublishOption Clone() { + return new PublishOption(this); } - /// Field number for the "peer_type" field. - public const int PeerTypeFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; + /// Field number for the "track_type" field. + public const int TrackTypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + /// + /// The type of the track being published (e.g., video, screenshare). + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { - get { return peerType_; } + public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { + get { return trackType_; } set { - peerType_ = value; + trackType_ = value; } } - /// Field number for the "ice_candidate" field. - public const int IceCandidateFieldNumber = 2; - private string iceCandidate_ = ""; + /// Field number for the "codec" field. + public const int CodecFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.Codec codec_; + /// + /// The codec to be used for encoding the track (e.g., VP8, VP9, H264). + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IceCandidate { - get { return iceCandidate_; } + public global::StreamVideo.v1.Sfu.Models.Codec Codec { + get { return codec_; } set { - iceCandidate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + codec_ = value; } } - /// Field number for the "session_id" field. - public const int SessionIdFieldNumber = 3; - private string sessionId_ = ""; + /// Field number for the "bitrate" field. + public const int BitrateFieldNumber = 3; + private int bitrate_; + /// + /// The target bitrate for the published track, in bits per second. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SessionId { - get { return sessionId_; } + public int Bitrate { + get { return bitrate_; } set { - sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + bitrate_ = value; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + /// Field number for the "fps" field. + public const int FpsFieldNumber = 4; + private int fps_; + /// + /// The target frames per second (FPS) for video encoding. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Fps { + get { return fps_; } + set { + fps_ = value; + } + } + + /// Field number for the "max_spatial_layers" field. + public const int MaxSpatialLayersFieldNumber = 5; + private int maxSpatialLayers_; + /// + /// The maximum number of spatial layers to send. + /// - For SVC (e.g., VP9), spatial layers downscale by a factor of 2: + /// - 1 layer: full resolution + /// - 2 layers: full resolution + half resolution + /// - 3 layers: full resolution + half resolution + quarter resolution + /// - For non-SVC codecs (e.g., VP8/H264), this determines the number of + /// encoded resolutions (e.g., quarter, half, full) sent for simulcast. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxSpatialLayers { + get { return maxSpatialLayers_; } + set { + maxSpatialLayers_ = value; + } + } + + /// Field number for the "max_temporal_layers" field. + public const int MaxTemporalLayersFieldNumber = 6; + private int maxTemporalLayers_; + /// + /// The maximum number of temporal layers for scalable video coding (SVC). + /// Temporal layers allow varying frame rates for different bandwidths. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxTemporalLayers { + get { return maxTemporalLayers_; } + set { + maxTemporalLayers_ = value; + } + } + + /// Field number for the "video_dimension" field. + public const int VideoDimensionFieldNumber = 7; + private global::StreamVideo.v1.Sfu.Models.VideoDimension videoDimension_; + /// + /// The dimensions of the video (e.g., width and height in pixels). + /// Spatial layers are based on this base resolution. For example, if the base + /// resolution is 1280x720: + /// - Full resolution (1 layer) = 1280x720 + /// - Half resolution (2 layers) = 640x360 + /// - Quarter resolution (3 layers) = 320x180 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.VideoDimension VideoDimension { + get { return videoDimension_; } + set { + videoDimension_ = value; + } + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 8; + private int id_; + /// + /// The unique identifier for the publish request. + /// - This `id` is assigned exclusively by the SFU. Any `id` set by the client + /// in the `PublishOption` will be ignored and overwritten by the SFU. + /// - The primary purpose of this `id` is to uniquely identify each publish + /// request, even in scenarios where multiple publish requests for the same + /// `track_type` and `codec` are active simultaneously. + /// For example: + /// - A user may publish two tracks of the same type (e.g., video) and codec + /// (e.g., VP9) concurrently. + /// - This uniqueness ensures that individual requests can be managed + /// independently. For instance, an `id` is critical when stopping a specific + /// publish request without affecting others. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Id { + get { return id_; } + set { + id_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ICETrickle); + return Equals(other as PublishOption); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ICETrickle other) { + public bool Equals(PublishOption other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PeerType != other.PeerType) return false; - if (IceCandidate != other.IceCandidate) return false; - if (SessionId != other.SessionId) return false; + if (TrackType != other.TrackType) return false; + if (!object.Equals(Codec, other.Codec)) return false; + if (Bitrate != other.Bitrate) return false; + if (Fps != other.Fps) return false; + if (MaxSpatialLayers != other.MaxSpatialLayers) return false; + if (MaxTemporalLayers != other.MaxTemporalLayers) return false; + if (!object.Equals(VideoDimension, other.VideoDimension)) return false; + if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2940,9 +3047,14 @@ public bool Equals(ICETrickle other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); - if (IceCandidate.Length != 0) hash ^= IceCandidate.GetHashCode(); - if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); + if (codec_ != null) hash ^= Codec.GetHashCode(); + if (Bitrate != 0) hash ^= Bitrate.GetHashCode(); + if (Fps != 0) hash ^= Fps.GetHashCode(); + if (MaxSpatialLayers != 0) hash ^= MaxSpatialLayers.GetHashCode(); + if (MaxTemporalLayers != 0) hash ^= MaxTemporalLayers.GetHashCode(); + if (videoDimension_ != null) hash ^= VideoDimension.GetHashCode(); + if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2961,17 +3073,37 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(8); - output.WriteEnum((int) PeerType); + output.WriteEnum((int) TrackType); } - if (IceCandidate.Length != 0) { + if (codec_ != null) { output.WriteRawTag(18); - output.WriteString(IceCandidate); + output.WriteMessage(Codec); } - if (SessionId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SessionId); + if (Bitrate != 0) { + output.WriteRawTag(24); + output.WriteInt32(Bitrate); + } + if (Fps != 0) { + output.WriteRawTag(32); + output.WriteInt32(Fps); + } + if (MaxSpatialLayers != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxSpatialLayers); + } + if (MaxTemporalLayers != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxTemporalLayers); + } + if (videoDimension_ != null) { + output.WriteRawTag(58); + output.WriteMessage(VideoDimension); + } + if (Id != 0) { + output.WriteRawTag(64); + output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -2983,17 +3115,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 (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { output.WriteRawTag(8); - output.WriteEnum((int) PeerType); + output.WriteEnum((int) TrackType); } - if (IceCandidate.Length != 0) { + if (codec_ != null) { output.WriteRawTag(18); - output.WriteString(IceCandidate); + output.WriteMessage(Codec); } - if (SessionId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SessionId); + if (Bitrate != 0) { + output.WriteRawTag(24); + output.WriteInt32(Bitrate); + } + if (Fps != 0) { + output.WriteRawTag(32); + output.WriteInt32(Fps); + } + if (MaxSpatialLayers != 0) { + output.WriteRawTag(40); + output.WriteInt32(MaxSpatialLayers); + } + if (MaxTemporalLayers != 0) { + output.WriteRawTag(48); + output.WriteInt32(MaxTemporalLayers); + } + if (videoDimension_ != null) { + output.WriteRawTag(58); + output.WriteMessage(VideoDimension); + } + if (Id != 0) { + output.WriteRawTag(64); + output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3005,14 +3157,29 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); } - if (IceCandidate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IceCandidate); + if (codec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); } - if (SessionId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + if (Bitrate != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Bitrate); + } + if (Fps != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fps); + } + if (MaxSpatialLayers != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxSpatialLayers); + } + if (MaxTemporalLayers != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxTemporalLayers); + } + if (videoDimension_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoDimension); + } + if (Id != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3022,18 +3189,39 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ICETrickle other) { + public void MergeFrom(PublishOption other) { if (other == null) { return; } - if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { - PeerType = other.PeerType; + if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + TrackType = other.TrackType; } - if (other.IceCandidate.Length != 0) { - IceCandidate = other.IceCandidate; + if (other.codec_ != null) { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + Codec.MergeFrom(other.Codec); } - if (other.SessionId.Length != 0) { - SessionId = other.SessionId; + if (other.Bitrate != 0) { + Bitrate = other.Bitrate; + } + if (other.Fps != 0) { + Fps = other.Fps; + } + if (other.MaxSpatialLayers != 0) { + MaxSpatialLayers = other.MaxSpatialLayers; + } + if (other.MaxTemporalLayers != 0) { + MaxTemporalLayers = other.MaxTemporalLayers; + } + if (other.videoDimension_ != null) { + if (videoDimension_ == null) { + VideoDimension = new global::StreamVideo.v1.Sfu.Models.VideoDimension(); + } + VideoDimension.MergeFrom(other.VideoDimension); + } + if (other.Id != 0) { + Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3051,15 +3239,41 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } case 18: { - IceCandidate = input.ReadString(); + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); break; } - case 26: { - SessionId = input.ReadString(); + case 24: { + Bitrate = input.ReadInt32(); + break; + } + case 32: { + Fps = input.ReadInt32(); + break; + } + case 40: { + MaxSpatialLayers = input.ReadInt32(); + break; + } + case 48: { + MaxTemporalLayers = input.ReadInt32(); + break; + } + case 58: { + if (videoDimension_ == null) { + VideoDimension = new global::StreamVideo.v1.Sfu.Models.VideoDimension(); + } + input.ReadMessage(VideoDimension); + break; + } + case 64: { + Id = input.ReadInt32(); break; } } @@ -3078,15 +3292,41 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); break; } case 18: { - IceCandidate = input.ReadString(); + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); break; } - case 26: { - SessionId = input.ReadString(); + case 24: { + Bitrate = input.ReadInt32(); + break; + } + case 32: { + Fps = input.ReadInt32(); + break; + } + case 40: { + MaxSpatialLayers = input.ReadInt32(); + break; + } + case 48: { + MaxTemporalLayers = input.ReadInt32(); + break; + } + case 58: { + if (videoDimension_ == null) { + VideoDimension = new global::StreamVideo.v1.Sfu.Models.VideoDimension(); + } + input.ReadMessage(VideoDimension); + break; + } + case 64: { + Id = input.ReadInt32(); break; } } @@ -3096,16 +3336,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class TrackInfo : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Codec : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Codec()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3121,7 +3362,7 @@ internal sealed partial class TrackInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackInfo() { + public Codec() { OnConstruction(); } @@ -3129,131 +3370,101 @@ public TrackInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackInfo(TrackInfo other) : this() { - trackId_ = other.trackId_; - trackType_ = other.trackType_; - layers_ = other.layers_.Clone(); - mid_ = other.mid_; - dtx_ = other.dtx_; - stereo_ = other.stereo_; - red_ = other.red_; + public Codec(Codec other) : this() { + payloadType_ = other.payloadType_; + name_ = other.name_; + clockRate_ = other.clockRate_; + encodingParameters_ = other.encodingParameters_; + fmtp_ = other.fmtp_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackInfo Clone() { - return new TrackInfo(this); + public Codec Clone() { + return new Codec(this); } - /// Field number for the "track_id" field. - public const int TrackIdFieldNumber = 1; - private string trackId_ = ""; + /// Field number for the "payload_type" field. + public const int PayloadTypeFieldNumber = 16; + private uint payloadType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackId { - get { return trackId_; } + public uint PayloadType { + get { return payloadType_; } set { - trackId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + payloadType_ = value; } } - /// Field number for the "track_type" field. - public const int TrackTypeFieldNumber = 2; - private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + /// Field number for the "name" field. + public const int NameFieldNumber = 10; + private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { - get { return trackType_; } - set { - trackType_ = value; - } - } - - /// Field number for the "layers" field. - public const int LayersFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_layers_codec - = pb::FieldCodec.ForMessage(42, global::StreamVideo.v1.Sfu.Models.VideoLayer.Parser); - private readonly pbc::RepeatedField layers_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Layers { - get { return layers_; } - } - - /// Field number for the "mid" field. - public const int MidFieldNumber = 6; - private string mid_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Mid { - get { return mid_; } + public string Name { + get { return name_; } set { - mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "dtx" field. - public const int DtxFieldNumber = 7; - private bool dtx_; - /// - /// for audio tracks - /// + /// Field number for the "clock_rate" field. + public const int ClockRateFieldNumber = 14; + private uint clockRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Dtx { - get { return dtx_; } + public uint ClockRate { + get { return clockRate_; } set { - dtx_ = value; + clockRate_ = value; } } - /// Field number for the "stereo" field. - public const int StereoFieldNumber = 8; - private bool stereo_; + /// Field number for the "encoding_parameters" field. + public const int EncodingParametersFieldNumber = 15; + private string encodingParameters_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Stereo { - get { return stereo_; } + public string EncodingParameters { + get { return encodingParameters_; } set { - stereo_ = value; + encodingParameters_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "red" field. - public const int RedFieldNumber = 9; - private bool red_; + /// Field number for the "fmtp" field. + public const int FmtpFieldNumber = 12; + private string fmtp_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Red { - get { return red_; } + public string Fmtp { + get { return fmtp_; } set { - red_ = value; + fmtp_ = 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 TrackInfo); + return Equals(other as Codec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackInfo other) { + public bool Equals(Codec other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (TrackId != other.TrackId) return false; - if (TrackType != other.TrackType) return false; - if(!layers_.Equals(other.layers_)) return false; - if (Mid != other.Mid) return false; - if (Dtx != other.Dtx) return false; - if (Stereo != other.Stereo) return false; - if (Red != other.Red) return false; + if (PayloadType != other.PayloadType) return false; + if (Name != other.Name) return false; + if (ClockRate != other.ClockRate) return false; + if (EncodingParameters != other.EncodingParameters) return false; + if (Fmtp != other.Fmtp) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3261,13 +3472,11 @@ public bool Equals(TrackInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TrackId.Length != 0) hash ^= TrackId.GetHashCode(); - if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); - hash ^= layers_.GetHashCode(); - if (Mid.Length != 0) hash ^= Mid.GetHashCode(); - if (Dtx != false) hash ^= Dtx.GetHashCode(); - if (Stereo != false) hash ^= Stereo.GetHashCode(); - if (Red != false) hash ^= Red.GetHashCode(); + if (PayloadType != 0) hash ^= PayloadType.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (ClockRate != 0) hash ^= ClockRate.GetHashCode(); + if (EncodingParameters.Length != 0) hash ^= EncodingParameters.GetHashCode(); + if (Fmtp.Length != 0) hash ^= Fmtp.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3286,30 +3495,25 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (TrackId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TrackId); - } - if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TrackType); + if (Name.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Name); } - layers_.WriteTo(output, _repeated_layers_codec); - if (Mid.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Mid); + if (Fmtp.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Fmtp); } - if (Dtx != false) { - output.WriteRawTag(56); - output.WriteBool(Dtx); + if (ClockRate != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ClockRate); } - if (Stereo != false) { - output.WriteRawTag(64); - output.WriteBool(Stereo); + if (EncodingParameters.Length != 0) { + output.WriteRawTag(122); + output.WriteString(EncodingParameters); } - if (Red != false) { - output.WriteRawTag(72); - output.WriteBool(Red); + if (PayloadType != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(PayloadType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3321,30 +3525,25 @@ 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 (TrackId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(TrackId); - } - if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TrackType); + if (Name.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Name); } - layers_.WriteTo(ref output, _repeated_layers_codec); - if (Mid.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Mid); + if (Fmtp.Length != 0) { + output.WriteRawTag(98); + output.WriteString(Fmtp); } - if (Dtx != false) { - output.WriteRawTag(56); - output.WriteBool(Dtx); + if (ClockRate != 0) { + output.WriteRawTag(112); + output.WriteUInt32(ClockRate); } - if (Stereo != false) { - output.WriteRawTag(64); - output.WriteBool(Stereo); + if (EncodingParameters.Length != 0) { + output.WriteRawTag(122); + output.WriteString(EncodingParameters); } - if (Red != false) { - output.WriteRawTag(72); - output.WriteBool(Red); + if (PayloadType != 0) { + output.WriteRawTag(128, 1); + output.WriteUInt32(PayloadType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3356,24 +3555,20 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TrackId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackId); - } - if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); + if (PayloadType != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(PayloadType); } - size += layers_.CalculateSize(_repeated_layers_codec); - if (Mid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Dtx != false) { - size += 1 + 1; + if (ClockRate != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ClockRate); } - if (Stereo != false) { - size += 1 + 1; + if (EncodingParameters.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EncodingParameters); } - if (Red != false) { - size += 1 + 1; + if (Fmtp.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Fmtp); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3383,28 +3578,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackInfo other) { + public void MergeFrom(Codec other) { if (other == null) { return; } - if (other.TrackId.Length != 0) { - TrackId = other.TrackId; - } - if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { - TrackType = other.TrackType; + if (other.PayloadType != 0) { + PayloadType = other.PayloadType; } - layers_.Add(other.layers_); - if (other.Mid.Length != 0) { - Mid = other.Mid; + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.Dtx != false) { - Dtx = other.Dtx; + if (other.ClockRate != 0) { + ClockRate = other.ClockRate; } - if (other.Stereo != false) { - Stereo = other.Stereo; + if (other.EncodingParameters.Length != 0) { + EncodingParameters = other.EncodingParameters; } - if (other.Red != false) { - Red = other.Red; + if (other.Fmtp.Length != 0) { + Fmtp = other.Fmtp; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3421,32 +3612,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - TrackId = input.ReadString(); - break; - } - case 16: { - TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); - break; - } - case 42: { - layers_.AddEntriesFrom(input, _repeated_layers_codec); + case 82: { + Name = input.ReadString(); break; } - case 50: { - Mid = input.ReadString(); + case 98: { + Fmtp = input.ReadString(); break; } - case 56: { - Dtx = input.ReadBool(); + case 112: { + ClockRate = input.ReadUInt32(); break; } - case 64: { - Stereo = input.ReadBool(); + case 122: { + EncodingParameters = input.ReadString(); break; } - case 72: { - Red = input.ReadBool(); + case 128: { + PayloadType = input.ReadUInt32(); break; } } @@ -3464,32 +3647,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - TrackId = input.ReadString(); - break; - } - case 16: { - TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); - break; - } - case 42: { - layers_.AddEntriesFrom(ref input, _repeated_layers_codec); + case 82: { + Name = input.ReadString(); break; } - case 50: { - Mid = input.ReadString(); + case 98: { + Fmtp = input.ReadString(); break; } - case 56: { - Dtx = input.ReadBool(); + case 112: { + ClockRate = input.ReadUInt32(); break; } - case 64: { - Stereo = input.ReadBool(); + case 122: { + EncodingParameters = input.ReadString(); break; } - case 72: { - Red = input.ReadBool(); + case 128: { + PayloadType = input.ReadUInt32(); break; } } @@ -3499,19 +3674,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// todo remove this - /// - internal sealed partial class Call : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ICETrickle : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Call()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ICETrickle()); 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)] @@ -3527,7 +3700,7 @@ internal sealed partial class Call : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Call() { + public ICETrickle() { OnConstruction(); } @@ -3535,141 +3708,73 @@ public Call() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Call(Call other) : this() { - type_ = other.type_; - id_ = other.id_; - createdByUserId_ = other.createdByUserId_; - hostUserId_ = other.hostUserId_; - custom_ = other.custom_ != null ? other.custom_.Clone() : null; - createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; - updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Call Clone() { - return new Call(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private string type_ = ""; - /// - /// the call type - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Type { - get { return type_; } - set { - type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private string id_ = ""; - /// - /// the call 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 "created_by_user_id" field. - public const int CreatedByUserIdFieldNumber = 3; - private string createdByUserId_ = ""; - /// - /// the id of the user that created this call - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreatedByUserId { - get { return createdByUserId_; } - set { - createdByUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ICETrickle(ICETrickle other) : this() { + peerType_ = other.peerType_; + iceCandidate_ = other.iceCandidate_; + sessionId_ = other.sessionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - /// Field number for the "host_user_id" field. - public const int HostUserIdFieldNumber = 4; - private string hostUserId_ = ""; - /// - /// the id of the current host for this call - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HostUserId { - get { return hostUserId_; } - set { - hostUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public ICETrickle Clone() { + return new ICETrickle(this); } - /// Field number for the "custom" field. - public const int CustomFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.Struct custom_; + /// Field number for the "peer_type" field. + public const int PeerTypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.PeerType peerType_ = global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Struct Custom { - get { return custom_; } + public global::StreamVideo.v1.Sfu.Models.PeerType PeerType { + get { return peerType_; } set { - custom_ = value; + peerType_ = value; } } - /// Field number for the "created_at" field. - public const int CreatedAtFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + /// Field number for the "ice_candidate" field. + public const int IceCandidateFieldNumber = 2; + private string iceCandidate_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { - get { return createdAt_; } + public string IceCandidate { + get { return iceCandidate_; } set { - createdAt_ = value; + iceCandidate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "updated_at" field. - public const int UpdatedAtFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 3; + private string sessionId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { - get { return updatedAt_; } + public string SessionId { + get { return sessionId_; } set { - updatedAt_ = value; + sessionId_ = 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 Call); + return Equals(other as ICETrickle); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Call other) { + public bool Equals(ICETrickle other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Type != other.Type) return false; - if (Id != other.Id) return false; - if (CreatedByUserId != other.CreatedByUserId) return false; - if (HostUserId != other.HostUserId) return false; - if (!object.Equals(Custom, other.Custom)) return false; - if (!object.Equals(CreatedAt, other.CreatedAt)) return false; - if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; + if (PeerType != other.PeerType) return false; + if (IceCandidate != other.IceCandidate) return false; + if (SessionId != other.SessionId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3677,13 +3782,9 @@ public bool Equals(Call other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (CreatedByUserId.Length != 0) hash ^= CreatedByUserId.GetHashCode(); - if (HostUserId.Length != 0) hash ^= HostUserId.GetHashCode(); - if (custom_ != null) hash ^= Custom.GetHashCode(); - if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); - if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) hash ^= PeerType.GetHashCode(); + if (IceCandidate.Length != 0) hash ^= IceCandidate.GetHashCode(); + if (SessionId.Length != 0) hash ^= SessionId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3702,33 +3803,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Type); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); } - if (Id.Length != 0) { + if (IceCandidate.Length != 0) { output.WriteRawTag(18); - output.WriteString(Id); + output.WriteString(IceCandidate); } - if (CreatedByUserId.Length != 0) { + if (SessionId.Length != 0) { output.WriteRawTag(26); - output.WriteString(CreatedByUserId); - } - if (HostUserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(HostUserId); - } - if (custom_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Custom); - } - if (createdAt_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CreatedAt); - } - if (updatedAt_ != null) { - output.WriteRawTag(58); - output.WriteMessage(UpdatedAt); + output.WriteString(SessionId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3740,33 +3825,1948 @@ 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.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Type); + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) PeerType); } - if (Id.Length != 0) { + if (IceCandidate.Length != 0) { output.WriteRawTag(18); - output.WriteString(Id); + output.WriteString(IceCandidate); } - if (CreatedByUserId.Length != 0) { + if (SessionId.Length != 0) { output.WriteRawTag(26); - output.WriteString(CreatedByUserId); + output.WriteString(SessionId); } - if (HostUserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(HostUserId); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (custom_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Custom); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeerType); } - if (createdAt_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CreatedAt); + if (IceCandidate.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IceCandidate); + } + if (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ICETrickle other) { + if (other == null) { + return; + } + if (other.PeerType != global::StreamVideo.v1.Sfu.Models.PeerType.PublisherUnspecified) { + PeerType = other.PeerType; + } + if (other.IceCandidate.Length != 0) { + IceCandidate = other.IceCandidate; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + break; + } + case 18: { + IceCandidate = input.ReadString(); + break; + } + case 26: { + SessionId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PeerType = (global::StreamVideo.v1.Sfu.Models.PeerType) input.ReadEnum(); + break; + } + case 18: { + IceCandidate = input.ReadString(); + break; + } + case 26: { + SessionId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class TrackInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackInfo(TrackInfo other) : this() { + trackId_ = other.trackId_; + trackType_ = other.trackType_; + layers_ = other.layers_.Clone(); + mid_ = other.mid_; + dtx_ = other.dtx_; + stereo_ = other.stereo_; + red_ = other.red_; + muted_ = other.muted_; + codec_ = other.codec_ != null ? other.codec_.Clone() : null; + publishOptionId_ = other.publishOptionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TrackInfo Clone() { + return new TrackInfo(this); + } + + /// Field number for the "track_id" field. + public const int TrackIdFieldNumber = 1; + private string trackId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TrackId { + get { return trackId_; } + set { + trackId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "track_type" field. + public const int TrackTypeFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.TrackType trackType_ = global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.TrackType TrackType { + get { return trackType_; } + set { + trackType_ = value; + } + } + + /// Field number for the "layers" field. + public const int LayersFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_layers_codec + = pb::FieldCodec.ForMessage(42, global::StreamVideo.v1.Sfu.Models.VideoLayer.Parser); + private readonly pbc::RepeatedField layers_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Layers { + get { return layers_; } + } + + /// Field number for the "mid" field. + public const int MidFieldNumber = 6; + private string mid_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mid { + get { return mid_; } + set { + mid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dtx" field. + public const int DtxFieldNumber = 7; + private bool dtx_; + /// + /// for audio tracks + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Dtx { + get { return dtx_; } + set { + dtx_ = value; + } + } + + /// Field number for the "stereo" field. + public const int StereoFieldNumber = 8; + private bool stereo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Stereo { + get { return stereo_; } + set { + stereo_ = value; + } + } + + /// Field number for the "red" field. + public const int RedFieldNumber = 9; + private bool red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Red { + get { return red_; } + set { + red_ = value; + } + } + + /// Field number for the "muted" field. + public const int MutedFieldNumber = 10; + private bool muted_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Muted { + get { return muted_; } + set { + muted_ = value; + } + } + + /// Field number for the "codec" field. + public const int CodecFieldNumber = 11; + private global::StreamVideo.v1.Sfu.Models.Codec codec_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Codec Codec { + get { return codec_; } + set { + codec_ = value; + } + } + + /// Field number for the "publish_option_id" field. + public const int PublishOptionIdFieldNumber = 12; + private int publishOptionId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PublishOptionId { + get { return publishOptionId_; } + set { + publishOptionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TrackInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TrackInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TrackId != other.TrackId) return false; + if (TrackType != other.TrackType) return false; + if(!layers_.Equals(other.layers_)) return false; + if (Mid != other.Mid) return false; + if (Dtx != other.Dtx) return false; + if (Stereo != other.Stereo) return false; + if (Red != other.Red) return false; + if (Muted != other.Muted) return false; + if (!object.Equals(Codec, other.Codec)) return false; + if (PublishOptionId != other.PublishOptionId) 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 (TrackId.Length != 0) hash ^= TrackId.GetHashCode(); + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) hash ^= TrackType.GetHashCode(); + hash ^= layers_.GetHashCode(); + if (Mid.Length != 0) hash ^= Mid.GetHashCode(); + if (Dtx != false) hash ^= Dtx.GetHashCode(); + if (Stereo != false) hash ^= Stereo.GetHashCode(); + if (Red != false) hash ^= Red.GetHashCode(); + if (Muted != false) hash ^= Muted.GetHashCode(); + if (codec_ != null) hash ^= Codec.GetHashCode(); + if (PublishOptionId != 0) hash ^= PublishOptionId.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 (TrackId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackId); + } + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) TrackType); + } + layers_.WriteTo(output, _repeated_layers_codec); + if (Mid.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Mid); + } + if (Dtx != false) { + output.WriteRawTag(56); + output.WriteBool(Dtx); + } + if (Stereo != false) { + output.WriteRawTag(64); + output.WriteBool(Stereo); + } + if (Red != false) { + output.WriteRawTag(72); + output.WriteBool(Red); + } + if (Muted != false) { + output.WriteRawTag(80); + output.WriteBool(Muted); + } + if (codec_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Codec); + } + if (PublishOptionId != 0) { + output.WriteRawTag(96); + output.WriteInt32(PublishOptionId); + } + 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 (TrackId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TrackId); + } + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) TrackType); + } + layers_.WriteTo(ref output, _repeated_layers_codec); + if (Mid.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Mid); + } + if (Dtx != false) { + output.WriteRawTag(56); + output.WriteBool(Dtx); + } + if (Stereo != false) { + output.WriteRawTag(64); + output.WriteBool(Stereo); + } + if (Red != false) { + output.WriteRawTag(72); + output.WriteBool(Red); + } + if (Muted != false) { + output.WriteRawTag(80); + output.WriteBool(Muted); + } + if (codec_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Codec); + } + if (PublishOptionId != 0) { + output.WriteRawTag(96); + output.WriteInt32(PublishOptionId); + } + 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 (TrackId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackId); + } + if (TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrackType); + } + size += layers_.CalculateSize(_repeated_layers_codec); + if (Mid.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Mid); + } + if (Dtx != false) { + size += 1 + 1; + } + if (Stereo != false) { + size += 1 + 1; + } + if (Red != false) { + size += 1 + 1; + } + if (Muted != false) { + size += 1 + 1; + } + if (codec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codec); + } + if (PublishOptionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PublishOptionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TrackInfo other) { + if (other == null) { + return; + } + if (other.TrackId.Length != 0) { + TrackId = other.TrackId; + } + if (other.TrackType != global::StreamVideo.v1.Sfu.Models.TrackType.Unspecified) { + TrackType = other.TrackType; + } + layers_.Add(other.layers_); + if (other.Mid.Length != 0) { + Mid = other.Mid; + } + if (other.Dtx != false) { + Dtx = other.Dtx; + } + if (other.Stereo != false) { + Stereo = other.Stereo; + } + if (other.Red != false) { + Red = other.Red; + } + if (other.Muted != false) { + Muted = other.Muted; + } + if (other.codec_ != null) { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + Codec.MergeFrom(other.Codec); + } + if (other.PublishOptionId != 0) { + PublishOptionId = other.PublishOptionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TrackId = input.ReadString(); + break; + } + case 16: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); + break; + } + case 42: { + layers_.AddEntriesFrom(input, _repeated_layers_codec); + break; + } + case 50: { + Mid = input.ReadString(); + break; + } + case 56: { + Dtx = input.ReadBool(); + break; + } + case 64: { + Stereo = input.ReadBool(); + break; + } + case 72: { + Red = input.ReadBool(); + break; + } + case 80: { + Muted = input.ReadBool(); + break; + } + case 90: { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); + break; + } + case 96: { + PublishOptionId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TrackId = input.ReadString(); + break; + } + case 16: { + TrackType = (global::StreamVideo.v1.Sfu.Models.TrackType) input.ReadEnum(); + break; + } + case 42: { + layers_.AddEntriesFrom(ref input, _repeated_layers_codec); + break; + } + case 50: { + Mid = input.ReadString(); + break; + } + case 56: { + Dtx = input.ReadBool(); + break; + } + case 64: { + Stereo = input.ReadBool(); + break; + } + case 72: { + Red = input.ReadBool(); + break; + } + case 80: { + Muted = input.ReadBool(); + break; + } + case 90: { + if (codec_ == null) { + Codec = new global::StreamVideo.v1.Sfu.Models.Codec(); + } + input.ReadMessage(Codec); + break; + } + case 96: { + PublishOptionId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Error : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); + 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Error() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Error(Error other) : this() { + code_ = other.code_; + message_ = other.message_; + shouldRetry_ = other.shouldRetry_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Error Clone() { + return new Error(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.ErrorCode code_ = global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.ErrorCode Code { + get { return code_; } + set { + code_ = value; + } + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "should_retry" field. + public const int ShouldRetryFieldNumber = 3; + private bool shouldRetry_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ShouldRetry { + get { return shouldRetry_; } + set { + shouldRetry_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Error); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Error 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 (ShouldRetry != other.ShouldRetry) 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 (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) hash ^= Code.GetHashCode(); + if (Message.Length != 0) hash ^= Message.GetHashCode(); + if (ShouldRetry != false) hash ^= ShouldRetry.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 (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + if (ShouldRetry != false) { + output.WriteRawTag(24); + output.WriteBool(ShouldRetry); + } + 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 (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + if (ShouldRetry != false) { + output.WriteRawTag(24); + output.WriteBool(ShouldRetry); + } + 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 (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (ShouldRetry != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Error other) { + if (other == null) { + return; + } + if (other.Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + Code = other.Code; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + if (other.ShouldRetry != false) { + ShouldRetry = other.ShouldRetry; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Code = (global::StreamVideo.v1.Sfu.Models.ErrorCode) input.ReadEnum(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + case 24: { + ShouldRetry = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Code = (global::StreamVideo.v1.Sfu.Models.ErrorCode) input.ReadEnum(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + case 24: { + ShouldRetry = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class ClientDetails : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientDetails()); + 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDetails() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDetails(ClientDetails other) : this() { + sdk_ = other.sdk_ != null ? other.sdk_.Clone() : null; + os_ = other.os_ != null ? other.os_.Clone() : null; + browser_ = other.browser_ != null ? other.browser_.Clone() : null; + device_ = other.device_ != null ? other.device_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClientDetails Clone() { + return new ClientDetails(this); + } + + /// Field number for the "sdk" field. + public const int SdkFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.Sdk sdk_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Sdk Sdk { + get { return sdk_; } + set { + sdk_ = value; + } + } + + /// Field number for the "os" field. + public const int OsFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.OS os_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.OS Os { + get { return os_; } + set { + os_ = value; + } + } + + /// Field number for the "browser" field. + public const int BrowserFieldNumber = 3; + private global::StreamVideo.v1.Sfu.Models.Browser browser_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Browser Browser { + get { return browser_; } + set { + browser_ = value; + } + } + + /// Field number for the "device" field. + public const int DeviceFieldNumber = 4; + private global::StreamVideo.v1.Sfu.Models.Device device_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Device Device { + get { return device_; } + set { + device_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClientDetails); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClientDetails other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sdk, other.Sdk)) return false; + if (!object.Equals(Os, other.Os)) return false; + if (!object.Equals(Browser, other.Browser)) return false; + if (!object.Equals(Device, other.Device)) 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 (sdk_ != null) hash ^= Sdk.GetHashCode(); + if (os_ != null) hash ^= Os.GetHashCode(); + if (browser_ != null) hash ^= Browser.GetHashCode(); + if (device_ != null) hash ^= Device.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 (sdk_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sdk); + } + if (os_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Os); + } + if (browser_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Browser); + } + if (device_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Device); + } + 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 (sdk_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sdk); + } + if (os_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Os); + } + if (browser_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Browser); + } + if (device_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Device); + } + 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 (sdk_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sdk); + } + if (os_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Os); + } + if (browser_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Browser); + } + if (device_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClientDetails other) { + if (other == null) { + return; + } + if (other.sdk_ != null) { + if (sdk_ == null) { + Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); + } + Sdk.MergeFrom(other.Sdk); + } + if (other.os_ != null) { + if (os_ == null) { + Os = new global::StreamVideo.v1.Sfu.Models.OS(); + } + Os.MergeFrom(other.Os); + } + if (other.browser_ != null) { + if (browser_ == null) { + Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); + } + Browser.MergeFrom(other.Browser); + } + if (other.device_ != null) { + if (device_ == null) { + Device = new global::StreamVideo.v1.Sfu.Models.Device(); + } + Device.MergeFrom(other.Device); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sdk_ == null) { + Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); + } + input.ReadMessage(Sdk); + break; + } + case 18: { + if (os_ == null) { + Os = new global::StreamVideo.v1.Sfu.Models.OS(); + } + input.ReadMessage(Os); + break; + } + case 26: { + if (browser_ == null) { + Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); + } + input.ReadMessage(Browser); + break; + } + case 34: { + if (device_ == null) { + Device = new global::StreamVideo.v1.Sfu.Models.Device(); + } + input.ReadMessage(Device); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sdk_ == null) { + Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); + } + input.ReadMessage(Sdk); + break; + } + case 18: { + if (os_ == null) { + Os = new global::StreamVideo.v1.Sfu.Models.OS(); + } + input.ReadMessage(Os); + break; + } + case 26: { + if (browser_ == null) { + Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); + } + input.ReadMessage(Browser); + break; + } + case 34: { + if (device_ == null) { + Device = new global::StreamVideo.v1.Sfu.Models.Device(); + } + input.ReadMessage(Device); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Sdk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sdk()); + 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sdk() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sdk(Sdk other) : this() { + type_ = other.type_; + major_ = other.major_; + minor_ = other.minor_; + patch_ = other.patch_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Sdk Clone() { + return new Sdk(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.SdkType type_ = global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.SdkType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "major" field. + public const int MajorFieldNumber = 2; + private string major_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Major { + get { return major_; } + set { + major_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "minor" field. + public const int MinorFieldNumber = 3; + private string minor_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Minor { + get { return minor_; } + set { + minor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "patch" field. + public const int PatchFieldNumber = 4; + private string patch_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Patch { + get { return patch_; } + set { + patch_ = 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 Sdk); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Sdk other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Major != other.Major) return false; + if (Minor != other.Minor) return false; + if (Patch != other.Patch) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) hash ^= Type.GetHashCode(); + if (Major.Length != 0) hash ^= Major.GetHashCode(); + if (Minor.Length != 0) hash ^= Minor.GetHashCode(); + if (Patch.Length != 0) hash ^= Patch.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Major.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Major); + } + if (Minor.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Minor); + } + if (Patch.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Patch); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Major.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Major); + } + if (Minor.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Minor); + } + if (Patch.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Patch); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Major.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Major); + } + if (Minor.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Minor); + } + if (Patch.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Sdk other) { + if (other == null) { + return; + } + if (other.Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { + Type = other.Type; + } + if (other.Major.Length != 0) { + Major = other.Major; + } + if (other.Minor.Length != 0) { + Minor = other.Minor; + } + if (other.Patch.Length != 0) { + Patch = other.Patch; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Type = (global::StreamVideo.v1.Sfu.Models.SdkType) input.ReadEnum(); + break; + } + case 18: { + Major = input.ReadString(); + break; + } + case 26: { + Minor = input.ReadString(); + break; + } + case 34: { + Patch = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::StreamVideo.v1.Sfu.Models.SdkType) input.ReadEnum(); + break; + } + case 18: { + Major = input.ReadString(); + break; + } + case 26: { + Minor = input.ReadString(); + break; + } + case 34: { + Patch = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class OS : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OS()); + 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OS() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OS(OS other) : this() { + name_ = other.name_; + version_ = other.version_; + architecture_ = other.architecture_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public OS Clone() { + return new OS(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "architecture" field. + public const int ArchitectureFieldNumber = 3; + private string architecture_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Architecture { + get { return architecture_; } + set { + architecture_ = 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 OS); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(OS other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Version != other.Version) return false; + if (Architecture != other.Architecture) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Architecture.Length != 0) hash ^= Architecture.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + if (Architecture.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Architecture); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + if (Architecture.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Architecture); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Architecture.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Architecture); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(OS other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Architecture.Length != 0) { + Architecture = other.Architecture; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + Architecture = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Version = input.ReadString(); + break; + } + case 26: { + Architecture = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Browser : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Browser()); + 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Browser() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Browser(Browser other) : this() { + name_ = other.name_; + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Browser Clone() { + return new Browser(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = 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 Browser); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Browser other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Version != other.Version) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Version.Length != 0) hash ^= Version.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (updatedAt_ != null) { - output.WriteRawTag(58); - output.WriteMessage(UpdatedAt); + #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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Version.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Version); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3778,26 +5778,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); - } - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (CreatedByUserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CreatedByUserId); - } - if (HostUserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HostUserId); - } - if (custom_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Custom); - } - if (createdAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (updatedAt_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -3807,39 +5792,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Call other) { + public void MergeFrom(Browser other) { if (other == null) { return; } - if (other.Type.Length != 0) { - Type = other.Type; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.CreatedByUserId.Length != 0) { - CreatedByUserId = other.CreatedByUserId; - } - if (other.HostUserId.Length != 0) { - HostUserId = other.HostUserId; - } - if (other.custom_ != null) { - if (custom_ == null) { - Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - Custom.MergeFrom(other.Custom); - } - if (other.createdAt_ != null) { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - CreatedAt.MergeFrom(other.CreatedAt); + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.updatedAt_ != null) { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - UpdatedAt.MergeFrom(other.UpdatedAt); + if (other.Version.Length != 0) { + Version = other.Version; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3857,40 +5818,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Type = input.ReadString(); + Name = input.ReadString(); break; } case 18: { - Id = input.ReadString(); - break; - } - case 26: { - CreatedByUserId = input.ReadString(); - break; - } - case 34: { - HostUserId = input.ReadString(); - break; - } - case 42: { - if (custom_ == null) { - Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Custom); - break; - } - case 50: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 58: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); + Version = input.ReadString(); break; } } @@ -3909,40 +5841,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Type = input.ReadString(); + Name = input.ReadString(); break; } case 18: { - Id = input.ReadString(); - break; - } - case 26: { - CreatedByUserId = input.ReadString(); - break; - } - case 34: { - HostUserId = input.ReadString(); - break; - } - case 42: { - if (custom_ == null) { - Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); - } - input.ReadMessage(Custom); - break; - } - case 50: { - if (createdAt_ == null) { - CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(CreatedAt); - break; - } - case 58: { - if (updatedAt_ == null) { - UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(UpdatedAt); + Version = input.ReadString(); break; } } @@ -3952,21 +5855,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Error : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class RTMPIngress : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RTMPIngress()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[11]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3977,7 +5881,7 @@ internal sealed partial class Error : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error() { + public RTMPIngress() { OnConstruction(); } @@ -3985,73 +5889,144 @@ public Error() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error(Error other) : this() { - code_ = other.code_; - message_ = other.message_; - shouldRetry_ = other.shouldRetry_; + public RTMPIngress(RTMPIngress other) : this() { + width_ = other.width_; + height_ = other.height_; + frameRate_ = other.frameRate_; + software_ = other.software_; + version_ = other.version_; + encoder_ = other.encoder_; + remoteAddr_ = other.remoteAddr_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error Clone() { - return new Error(this); + public RTMPIngress Clone() { + return new RTMPIngress(this); } - /// Field number for the "code" field. - public const int CodeFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.ErrorCode code_ = global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified; + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private uint width_; + /// + /// Video dimensions and frame rate + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.ErrorCode Code { - get { return code_; } + public uint Width { + get { return width_; } set { - code_ = value; + width_ = value; } } - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private string message_ = ""; + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private uint height_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_; } + public uint Height { + get { return height_; } set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + height_ = value; } } - /// Field number for the "should_retry" field. - public const int ShouldRetryFieldNumber = 3; - private bool shouldRetry_; + /// Field number for the "frame_rate" field. + public const int FrameRateFieldNumber = 3; + private double frameRate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ShouldRetry { - get { return shouldRetry_; } + public double FrameRate { + get { return frameRate_; } set { - shouldRetry_ = value; + frameRate_ = value; + } + } + + /// Field number for the "software" field. + public const int SoftwareFieldNumber = 4; + private string software_ = ""; + /// + /// Client info + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Software { + get { return software_; } + set { + software_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private string version_ = ""; + /// + /// e.g. "29.1.3" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "encoder" field. + public const int EncoderFieldNumber = 6; + private string encoder_ = ""; + /// + /// e.g. "x264" or "NVIDIA NVENC" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Encoder { + get { return encoder_; } + set { + encoder_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "remote_addr" field. + public const int RemoteAddrFieldNumber = 7; + private string remoteAddr_ = ""; + /// + /// Connection info + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RemoteAddr { + get { return remoteAddr_; } + set { + remoteAddr_ = 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 Error); + return Equals(other as RTMPIngress); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Error other) { + public bool Equals(RTMPIngress 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 (ShouldRetry != other.ShouldRetry) return false; + if (Width != other.Width) return false; + if (Height != other.Height) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FrameRate, other.FrameRate)) return false; + if (Software != other.Software) return false; + if (Version != other.Version) return false; + if (Encoder != other.Encoder) return false; + if (RemoteAddr != other.RemoteAddr) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4059,9 +6034,13 @@ public bool Equals(Error other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) hash ^= Code.GetHashCode(); - if (Message.Length != 0) hash ^= Message.GetHashCode(); - if (ShouldRetry != false) hash ^= ShouldRetry.GetHashCode(); + if (Width != 0) hash ^= Width.GetHashCode(); + if (Height != 0) hash ^= Height.GetHashCode(); + if (FrameRate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameRate); + if (Software.Length != 0) hash ^= Software.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (Encoder.Length != 0) hash ^= Encoder.GetHashCode(); + if (RemoteAddr.Length != 0) hash ^= RemoteAddr.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4080,17 +6059,33 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + if (Width != 0) { output.WriteRawTag(8); - output.WriteEnum((int) Code); + output.WriteUInt32(Width); } - if (Message.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Message); + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); + } + if (FrameRate != 0D) { + output.WriteRawTag(25); + output.WriteDouble(FrameRate); + } + if (Software.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Software); + } + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); } - if (ShouldRetry != false) { - output.WriteRawTag(24); - output.WriteBool(ShouldRetry); + if (Encoder.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Encoder); + } + if (RemoteAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RemoteAddr); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4102,17 +6097,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 (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { + if (Width != 0) { output.WriteRawTag(8); - output.WriteEnum((int) Code); + output.WriteUInt32(Width); } - if (Message.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Message); + if (Height != 0) { + output.WriteRawTag(16); + output.WriteUInt32(Height); } - if (ShouldRetry != false) { - output.WriteRawTag(24); - output.WriteBool(ShouldRetry); + if (FrameRate != 0D) { + output.WriteRawTag(25); + output.WriteDouble(FrameRate); + } + if (Software.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Software); + } + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + if (Encoder.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Encoder); + } + if (RemoteAddr.Length != 0) { + output.WriteRawTag(58); + output.WriteString(RemoteAddr); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4124,14 +6135,26 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Code); + if (Width != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); } - if (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + if (Height != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); } - if (ShouldRetry != false) { - size += 1 + 1; + if (FrameRate != 0D) { + size += 1 + 8; + } + if (Software.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Software); + } + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } + if (Encoder.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Encoder); + } + if (RemoteAddr.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RemoteAddr); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4141,18 +6164,30 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Error other) { + public void MergeFrom(RTMPIngress other) { if (other == null) { return; } - if (other.Code != global::StreamVideo.v1.Sfu.Models.ErrorCode.Unspecified) { - Code = other.Code; + if (other.Width != 0) { + Width = other.Width; } - if (other.Message.Length != 0) { - Message = other.Message; + if (other.Height != 0) { + Height = other.Height; } - if (other.ShouldRetry != false) { - ShouldRetry = other.ShouldRetry; + if (other.FrameRate != 0D) { + FrameRate = other.FrameRate; + } + if (other.Software.Length != 0) { + Software = other.Software; + } + if (other.Version.Length != 0) { + Version = other.Version; + } + if (other.Encoder.Length != 0) { + Encoder = other.Encoder; + } + if (other.RemoteAddr.Length != 0) { + RemoteAddr = other.RemoteAddr; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4170,15 +6205,31 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Code = (global::StreamVideo.v1.Sfu.Models.ErrorCode) input.ReadEnum(); + Width = input.ReadUInt32(); break; } - case 18: { - Message = input.ReadString(); + case 16: { + Height = input.ReadUInt32(); break; } - case 24: { - ShouldRetry = input.ReadBool(); + case 25: { + FrameRate = input.ReadDouble(); + break; + } + case 34: { + Software = input.ReadString(); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + Encoder = input.ReadString(); + break; + } + case 58: { + RemoteAddr = input.ReadString(); break; } } @@ -4197,15 +6248,31 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Code = (global::StreamVideo.v1.Sfu.Models.ErrorCode) input.ReadEnum(); + Width = input.ReadUInt32(); break; } - case 18: { - Message = input.ReadString(); + case 16: { + Height = input.ReadUInt32(); break; } - case 24: { - ShouldRetry = input.ReadBool(); + case 25: { + FrameRate = input.ReadDouble(); + break; + } + case 34: { + Software = input.ReadString(); + break; + } + case 42: { + Version = input.ReadString(); + break; + } + case 50: { + Encoder = input.ReadString(); + break; + } + case 58: { + RemoteAddr = input.ReadString(); break; } } @@ -4215,21 +6282,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class ClientDetails : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Device : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientDetails()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[12]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4240,7 +6308,7 @@ internal sealed partial class ClientDetails : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClientDetails() { + public Device() { OnConstruction(); } @@ -4248,87 +6316,59 @@ public ClientDetails() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClientDetails(ClientDetails other) : this() { - sdk_ = other.sdk_ != null ? other.sdk_.Clone() : null; - os_ = other.os_ != null ? other.os_.Clone() : null; - browser_ = other.browser_ != null ? other.browser_.Clone() : null; - device_ = other.device_ != null ? other.device_.Clone() : null; + public Device(Device other) : this() { + name_ = other.name_; + version_ = other.version_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClientDetails Clone() { - return new ClientDetails(this); - } - - /// Field number for the "sdk" field. - public const int SdkFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.Sdk sdk_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Sdk Sdk { - get { return sdk_; } - set { - sdk_ = value; - } - } - - /// Field number for the "os" field. - public const int OsFieldNumber = 2; - private global::StreamVideo.v1.Sfu.Models.OS os_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.OS Os { - get { return os_; } - set { - os_ = value; - } + public Device Clone() { + return new Device(this); } - /// Field number for the "browser" field. - public const int BrowserFieldNumber = 3; - private global::StreamVideo.v1.Sfu.Models.Browser browser_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Browser Browser { - get { return browser_; } + public string Name { + get { return name_; } set { - browser_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "device" field. - public const int DeviceFieldNumber = 4; - private global::StreamVideo.v1.Sfu.Models.Device device_; + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private string version_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.Device Device { - get { return device_; } + public string Version { + get { return version_; } set { - device_ = value; + version_ = 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 ClientDetails); + return Equals(other as Device); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClientDetails other) { + public bool Equals(Device other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Sdk, other.Sdk)) return false; - if (!object.Equals(Os, other.Os)) return false; - if (!object.Equals(Browser, other.Browser)) return false; - if (!object.Equals(Device, other.Device)) return false; + if (Name != other.Name) return false; + if (Version != other.Version) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4336,10 +6376,8 @@ public bool Equals(ClientDetails other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (sdk_ != null) hash ^= Sdk.GetHashCode(); - if (os_ != null) hash ^= Os.GetHashCode(); - if (browser_ != null) hash ^= Browser.GetHashCode(); - if (device_ != null) hash ^= Device.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Version.Length != 0) hash ^= Version.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4358,21 +6396,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (sdk_ != null) { + if (Name.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Sdk); + output.WriteString(Name); } - if (os_ != null) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Os); - } - if (browser_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Browser); - } - if (device_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Device); + output.WriteString(Version); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4384,21 +6414,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 (sdk_ != null) { + if (Name.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(Sdk); + output.WriteString(Name); } - if (os_ != null) { + if (Version.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(Os); - } - if (browser_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Browser); - } - if (device_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Device); + output.WriteString(Version); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4410,17 +6432,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (sdk_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sdk); - } - if (os_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Os); - } - if (browser_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Browser); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (device_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4430,33 +6446,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClientDetails other) { + public void MergeFrom(Device other) { if (other == null) { - return; - } - if (other.sdk_ != null) { - if (sdk_ == null) { - Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); - } - Sdk.MergeFrom(other.Sdk); - } - if (other.os_ != null) { - if (os_ == null) { - Os = new global::StreamVideo.v1.Sfu.Models.OS(); - } - Os.MergeFrom(other.Os); - } - if (other.browser_ != null) { - if (browser_ == null) { - Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); - } - Browser.MergeFrom(other.Browser); + return; } - if (other.device_ != null) { - if (device_ == null) { - Device = new global::StreamVideo.v1.Sfu.Models.Device(); - } - Device.MergeFrom(other.Device); + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Version.Length != 0) { + Version = other.Version; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4474,31 +6472,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (sdk_ == null) { - Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); - } - input.ReadMessage(Sdk); + Name = input.ReadString(); break; } case 18: { - if (os_ == null) { - Os = new global::StreamVideo.v1.Sfu.Models.OS(); - } - input.ReadMessage(Os); - break; - } - case 26: { - if (browser_ == null) { - Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); - } - input.ReadMessage(Browser); - break; - } - case 34: { - if (device_ == null) { - Device = new global::StreamVideo.v1.Sfu.Models.Device(); - } - input.ReadMessage(Device); + Version = input.ReadString(); break; } } @@ -4517,31 +6495,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - if (sdk_ == null) { - Sdk = new global::StreamVideo.v1.Sfu.Models.Sdk(); - } - input.ReadMessage(Sdk); + Name = input.ReadString(); break; } case 18: { - if (os_ == null) { - Os = new global::StreamVideo.v1.Sfu.Models.OS(); - } - input.ReadMessage(Os); - break; - } - case 26: { - if (browser_ == null) { - Browser = new global::StreamVideo.v1.Sfu.Models.Browser(); - } - input.ReadMessage(Browser); - break; - } - case 34: { - if (device_ == null) { - Device = new global::StreamVideo.v1.Sfu.Models.Device(); - } - input.ReadMessage(Device); + Version = input.ReadString(); break; } } @@ -4551,21 +6509,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Sdk : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Call : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sdk()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Call()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[13]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4576,7 +6535,7 @@ internal sealed partial class Sdk : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Sdk() { + public Call() { OnConstruction(); } @@ -4584,77 +6543,128 @@ public Sdk() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Sdk(Sdk other) : this() { + public Call(Call other) : this() { type_ = other.type_; - major_ = other.major_; - minor_ = other.minor_; - patch_ = other.patch_; + id_ = other.id_; + createdByUserId_ = other.createdByUserId_; + hostUserId_ = other.hostUserId_; + custom_ = other.custom_ != null ? other.custom_.Clone() : null; + createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; + updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Sdk Clone() { - return new Sdk(this); + public Call Clone() { + return new Call(this); } /// Field number for the "type" field. public const int TypeFieldNumber = 1; - private global::StreamVideo.v1.Sfu.Models.SdkType type_ = global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified; + private string type_ = ""; + /// + /// the call type + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::StreamVideo.v1.Sfu.Models.SdkType Type { + public string Type { get { return type_; } set { - type_ = value; + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "major" field. - public const int MajorFieldNumber = 2; - private string major_ = ""; + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private string id_ = ""; + /// + /// the call id + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Major { - get { return major_; } + public string Id { + get { return id_; } set { - major_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "minor" field. - public const int MinorFieldNumber = 3; - private string minor_ = ""; + /// Field number for the "created_by_user_id" field. + public const int CreatedByUserIdFieldNumber = 3; + private string createdByUserId_ = ""; + /// + /// the id of the user that created this call + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Minor { - get { return minor_; } + public string CreatedByUserId { + get { return createdByUserId_; } set { - minor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + createdByUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "patch" field. - public const int PatchFieldNumber = 4; - private string patch_ = ""; + /// Field number for the "host_user_id" field. + public const int HostUserIdFieldNumber = 4; + private string hostUserId_ = ""; + /// + /// the id of the current host for this call + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Patch { - get { return patch_; } + public string HostUserId { + get { return hostUserId_; } set { - patch_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + hostUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "custom" field. + public const int CustomFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Struct custom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Struct Custom { + get { return custom_; } + set { + custom_ = value; + } + } + + /// Field number for the "created_at" field. + public const int CreatedAtFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { + get { return createdAt_; } + set { + createdAt_ = value; + } + } + + /// Field number for the "updated_at" field. + public const int UpdatedAtFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { + get { return updatedAt_; } + set { + updatedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Sdk); + return Equals(other as Call); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Sdk other) { + public bool Equals(Call other) { if (ReferenceEquals(other, null)) { return false; } @@ -4662,9 +6672,12 @@ public bool Equals(Sdk other) { return true; } if (Type != other.Type) return false; - if (Major != other.Major) return false; - if (Minor != other.Minor) return false; - if (Patch != other.Patch) return false; + if (Id != other.Id) return false; + if (CreatedByUserId != other.CreatedByUserId) return false; + if (HostUserId != other.HostUserId) return false; + if (!object.Equals(Custom, other.Custom)) return false; + if (!object.Equals(CreatedAt, other.CreatedAt)) return false; + if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4672,10 +6685,13 @@ public bool Equals(Sdk other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) hash ^= Type.GetHashCode(); - if (Major.Length != 0) hash ^= Major.GetHashCode(); - if (Minor.Length != 0) hash ^= Minor.GetHashCode(); - if (Patch.Length != 0) hash ^= Patch.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (CreatedByUserId.Length != 0) hash ^= CreatedByUserId.GetHashCode(); + if (HostUserId.Length != 0) hash ^= HostUserId.GetHashCode(); + if (custom_ != null) hash ^= Custom.GetHashCode(); + if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); + if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4694,21 +6710,33 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); } - if (Major.Length != 0) { + if (Id.Length != 0) { output.WriteRawTag(18); - output.WriteString(Major); + output.WriteString(Id); } - if (Minor.Length != 0) { + if (CreatedByUserId.Length != 0) { output.WriteRawTag(26); - output.WriteString(Minor); + output.WriteString(CreatedByUserId); } - if (Patch.Length != 0) { + if (HostUserId.Length != 0) { output.WriteRawTag(34); - output.WriteString(Patch); + output.WriteString(HostUserId); + } + if (custom_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Custom); + } + if (createdAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdatedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4720,21 +6748,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 (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); + if (Type.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Type); } - if (Major.Length != 0) { + if (Id.Length != 0) { output.WriteRawTag(18); - output.WriteString(Major); + output.WriteString(Id); } - if (Minor.Length != 0) { + if (CreatedByUserId.Length != 0) { output.WriteRawTag(26); - output.WriteString(Minor); + output.WriteString(CreatedByUserId); } - if (Patch.Length != 0) { + if (HostUserId.Length != 0) { output.WriteRawTag(34); - output.WriteString(Patch); + output.WriteString(HostUserId); + } + if (custom_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Custom); + } + if (createdAt_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedAt); + } + if (updatedAt_ != null) { + output.WriteRawTag(58); + output.WriteMessage(UpdatedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4746,17 +6786,26 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); } - if (Major.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Major); + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Minor.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Minor); + if (CreatedByUserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CreatedByUserId); } - if (Patch.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Patch); + if (HostUserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HostUserId); + } + if (custom_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Custom); + } + if (createdAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); + } + if (updatedAt_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4766,21 +6815,39 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Sdk other) { + public void MergeFrom(Call other) { if (other == null) { return; } - if (other.Type != global::StreamVideo.v1.Sfu.Models.SdkType.Unspecified) { + if (other.Type.Length != 0) { Type = other.Type; } - if (other.Major.Length != 0) { - Major = other.Major; + if (other.Id.Length != 0) { + Id = other.Id; } - if (other.Minor.Length != 0) { - Minor = other.Minor; + if (other.CreatedByUserId.Length != 0) { + CreatedByUserId = other.CreatedByUserId; } - if (other.Patch.Length != 0) { - Patch = other.Patch; + if (other.HostUserId.Length != 0) { + HostUserId = other.HostUserId; + } + if (other.custom_ != null) { + if (custom_ == null) { + Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + Custom.MergeFrom(other.Custom); + } + if (other.createdAt_ != null) { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedAt.MergeFrom(other.CreatedAt); + } + if (other.updatedAt_ != null) { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + UpdatedAt.MergeFrom(other.UpdatedAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4797,20 +6864,41 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Type = (global::StreamVideo.v1.Sfu.Models.SdkType) input.ReadEnum(); + case 10: { + Type = input.ReadString(); break; } case 18: { - Major = input.ReadString(); + Id = input.ReadString(); break; } case 26: { - Minor = input.ReadString(); + CreatedByUserId = input.ReadString(); break; } case 34: { - Patch = input.ReadString(); + HostUserId = input.ReadString(); + break; + } + case 42: { + if (custom_ == null) { + Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Custom); + break; + } + case 50: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 58: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); break; } } @@ -4828,20 +6916,41 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Type = (global::StreamVideo.v1.Sfu.Models.SdkType) input.ReadEnum(); + case 10: { + Type = input.ReadString(); break; } case 18: { - Major = input.ReadString(); + Id = input.ReadString(); break; } case 26: { - Minor = input.ReadString(); + CreatedByUserId = input.ReadString(); break; } case 34: { - Patch = input.ReadString(); + HostUserId = input.ReadString(); + break; + } + case 42: { + if (custom_ == null) { + Custom = new global::Google.Protobuf.WellKnownTypes.Struct(); + } + input.ReadMessage(Custom); + break; + } + case 50: { + if (createdAt_ == null) { + CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedAt); + break; + } + case 58: { + if (updatedAt_ == null) { + UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(UpdatedAt); break; } } @@ -4851,21 +6960,26 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class OS : pb::IMessage + /// + /// CallGrants represents the set of permissions given + /// to the user for the current call. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class CallGrants : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OS()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallGrants()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[14]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4876,7 +6990,7 @@ internal sealed partial class OS : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OS() { + public CallGrants() { OnConstruction(); } @@ -4884,73 +6998,73 @@ public OS() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OS(OS other) : this() { - name_ = other.name_; - version_ = other.version_; - architecture_ = other.architecture_; + public CallGrants(CallGrants other) : this() { + canPublishAudio_ = other.canPublishAudio_; + canPublishVideo_ = other.canPublishVideo_; + canScreenshare_ = other.canScreenshare_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OS Clone() { - return new OS(this); + public CallGrants Clone() { + return new CallGrants(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "can_publish_audio" field. + public const int CanPublishAudioFieldNumber = 1; + private bool canPublishAudio_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public bool CanPublishAudio { + get { return canPublishAudio_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + canPublishAudio_ = value; } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; + /// Field number for the "can_publish_video" field. + public const int CanPublishVideoFieldNumber = 2; + private bool canPublishVideo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } + public bool CanPublishVideo { + get { return canPublishVideo_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + canPublishVideo_ = value; } } - /// Field number for the "architecture" field. - public const int ArchitectureFieldNumber = 3; - private string architecture_ = ""; + /// Field number for the "can_screenshare" field. + public const int CanScreenshareFieldNumber = 3; + private bool canScreenshare_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Architecture { - get { return architecture_; } + public bool CanScreenshare { + get { return canScreenshare_; } set { - architecture_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + canScreenshare_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as OS); + return Equals(other as CallGrants); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OS other) { + public bool Equals(CallGrants other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (Version != other.Version) return false; - if (Architecture != other.Architecture) return false; + if (CanPublishAudio != other.CanPublishAudio) return false; + if (CanPublishVideo != other.CanPublishVideo) return false; + if (CanScreenshare != other.CanScreenshare) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4958,9 +7072,9 @@ public bool Equals(OS other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); - if (Architecture.Length != 0) hash ^= Architecture.GetHashCode(); + if (CanPublishAudio != false) hash ^= CanPublishAudio.GetHashCode(); + if (CanPublishVideo != false) hash ^= CanPublishVideo.GetHashCode(); + if (CanScreenshare != false) hash ^= CanScreenshare.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4979,17 +7093,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); + if (CanPublishAudio != false) { + output.WriteRawTag(8); + output.WriteBool(CanPublishAudio); } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); + if (CanPublishVideo != false) { + output.WriteRawTag(16); + output.WriteBool(CanPublishVideo); } - if (Architecture.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Architecture); + if (CanScreenshare != false) { + output.WriteRawTag(24); + output.WriteBool(CanScreenshare); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5001,17 +7115,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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); + if (CanPublishAudio != false) { + output.WriteRawTag(8); + output.WriteBool(CanPublishAudio); } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); + if (CanPublishVideo != false) { + output.WriteRawTag(16); + output.WriteBool(CanPublishVideo); } - if (Architecture.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Architecture); + if (CanScreenshare != false) { + output.WriteRawTag(24); + output.WriteBool(CanScreenshare); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5023,14 +7137,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (CanPublishAudio != false) { + size += 1 + 1; } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + if (CanPublishVideo != false) { + size += 1 + 1; } - if (Architecture.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Architecture); + if (CanScreenshare != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5040,18 +7154,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OS other) { + public void MergeFrom(CallGrants other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Version.Length != 0) { - Version = other.Version; + if (other.CanPublishAudio != false) { + CanPublishAudio = other.CanPublishAudio; } - if (other.Architecture.Length != 0) { - Architecture = other.Architecture; + if (other.CanPublishVideo != false) { + CanPublishVideo = other.CanPublishVideo; + } + if (other.CanScreenshare != false) { + CanScreenshare = other.CanScreenshare; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5068,16 +7182,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Name = input.ReadString(); + case 8: { + CanPublishAudio = input.ReadBool(); break; } - case 18: { - Version = input.ReadString(); + case 16: { + CanPublishVideo = input.ReadBool(); break; } - case 26: { - Architecture = input.ReadString(); + case 24: { + CanScreenshare = input.ReadBool(); break; } } @@ -5095,16 +7209,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Name = input.ReadString(); + case 8: { + CanPublishAudio = input.ReadBool(); break; } - case 18: { - Version = input.ReadString(); + case 16: { + CanPublishVideo = input.ReadBool(); break; } - case 26: { - Architecture = input.ReadString(); + case 24: { + CanScreenshare = input.ReadBool(); break; } } @@ -5114,21 +7228,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Browser : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class InputDevices : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Browser()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputDevices()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[15]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5139,7 +7254,7 @@ internal sealed partial class Browser : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Browser() { + public InputDevices() { OnConstruction(); } @@ -5147,59 +7262,72 @@ public Browser() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Browser(Browser other) : this() { - name_ = other.name_; - version_ = other.version_; + public InputDevices(InputDevices other) : this() { + availableDevices_ = other.availableDevices_.Clone(); + currentDevice_ = other.currentDevice_; + isPermitted_ = other.isPermitted_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Browser Clone() { - return new Browser(this); + public InputDevices Clone() { + return new InputDevices(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "available_devices" field. + public const int AvailableDevicesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_availableDevices_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField availableDevices_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public pbc::RepeatedField AvailableDevices { + get { return availableDevices_; } + } + + /// Field number for the "current_device" field. + public const int CurrentDeviceFieldNumber = 2; + private string currentDevice_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CurrentDevice { + get { return currentDevice_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + currentDevice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; + /// Field number for the "is_permitted" field. + public const int IsPermittedFieldNumber = 3; + private bool isPermitted_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } + public bool IsPermitted { + get { return isPermitted_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + isPermitted_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Browser); + return Equals(other as InputDevices); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Browser other) { + public bool Equals(InputDevices other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (Version != other.Version) return false; + if(!availableDevices_.Equals(other.availableDevices_)) return false; + if (CurrentDevice != other.CurrentDevice) return false; + if (IsPermitted != other.IsPermitted) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5207,8 +7335,9 @@ public bool Equals(Browser other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); + hash ^= availableDevices_.GetHashCode(); + if (CurrentDevice.Length != 0) hash ^= CurrentDevice.GetHashCode(); + if (IsPermitted != false) hash ^= IsPermitted.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5227,13 +7356,14 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Version.Length != 0) { + availableDevices_.WriteTo(output, _repeated_availableDevices_codec); + if (CurrentDevice.Length != 0) { output.WriteRawTag(18); - output.WriteString(Version); + output.WriteString(CurrentDevice); + } + if (IsPermitted != false) { + output.WriteRawTag(24); + output.WriteBool(IsPermitted); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5245,13 +7375,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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Version.Length != 0) { + availableDevices_.WriteTo(ref output, _repeated_availableDevices_codec); + if (CurrentDevice.Length != 0) { output.WriteRawTag(18); - output.WriteString(Version); + output.WriteString(CurrentDevice); + } + if (IsPermitted != false) { + output.WriteRawTag(24); + output.WriteBool(IsPermitted); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5263,11 +7394,12 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + size += availableDevices_.CalculateSize(_repeated_availableDevices_codec); + if (CurrentDevice.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentDevice); } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + if (IsPermitted != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5277,15 +7409,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Browser other) { + public void MergeFrom(InputDevices other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + availableDevices_.Add(other.availableDevices_); + if (other.CurrentDevice.Length != 0) { + CurrentDevice = other.CurrentDevice; } - if (other.Version.Length != 0) { - Version = other.Version; + if (other.IsPermitted != false) { + IsPermitted = other.IsPermitted; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5303,11 +7436,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + availableDevices_.AddEntriesFrom(input, _repeated_availableDevices_codec); break; } case 18: { - Version = input.ReadString(); + CurrentDevice = input.ReadString(); + break; + } + case 24: { + IsPermitted = input.ReadBool(); break; } } @@ -5326,11 +7463,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + availableDevices_.AddEntriesFrom(ref input, _repeated_availableDevices_codec); break; } case 18: { - Version = input.ReadString(); + CurrentDevice = input.ReadString(); + break; + } + case 24: { + IsPermitted = input.ReadBool(); break; } } @@ -5340,21 +7481,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - internal sealed partial class Device : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class AndroidState : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidState()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[16]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5365,7 +7507,7 @@ internal sealed partial class Device : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device() { + public AndroidState() { OnConstruction(); } @@ -5373,59 +7515,59 @@ public Device() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device(Device other) : this() { - name_ = other.name_; - version_ = other.version_; + public AndroidState(AndroidState other) : this() { + thermalState_ = other.thermalState_; + isPowerSaverMode_ = other.isPowerSaverMode_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Device Clone() { - return new Device(this); + public AndroidState Clone() { + return new AndroidState(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "thermal_state" field. + public const int ThermalStateFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.AndroidThermalState thermalState_ = global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public global::StreamVideo.v1.Sfu.Models.AndroidThermalState ThermalState { + get { return thermalState_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + thermalState_ = value; } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private string version_ = ""; + /// Field number for the "is_power_saver_mode" field. + public const int IsPowerSaverModeFieldNumber = 2; + private bool isPowerSaverMode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } + public bool IsPowerSaverMode { + get { return isPowerSaverMode_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + isPowerSaverMode_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Device); + return Equals(other as AndroidState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Device other) { + public bool Equals(AndroidState other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (Version != other.Version) return false; + if (ThermalState != other.ThermalState) return false; + if (IsPowerSaverMode != other.IsPowerSaverMode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5433,8 +7575,8 @@ public bool Equals(Device other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified) hash ^= ThermalState.GetHashCode(); + if (IsPowerSaverMode != false) hash ^= IsPowerSaverMode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5453,13 +7595,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ThermalState); } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); + if (IsPowerSaverMode != false) { + output.WriteRawTag(16); + output.WriteBool(IsPowerSaverMode); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5471,13 +7613,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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified) { + output.WriteRawTag(8); + output.WriteEnum((int) ThermalState); } - if (Version.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Version); + if (IsPowerSaverMode != false) { + output.WriteRawTag(16); + output.WriteBool(IsPowerSaverMode); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5489,11 +7631,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ThermalState); } - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + if (IsPowerSaverMode != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5503,15 +7645,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Device other) { + public void MergeFrom(AndroidState other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.ThermalState != global::StreamVideo.v1.Sfu.Models.AndroidThermalState.Unspecified) { + ThermalState = other.ThermalState; } - if (other.Version.Length != 0) { - Version = other.Version; + if (other.IsPowerSaverMode != false) { + IsPowerSaverMode = other.IsPowerSaverMode; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5528,12 +7670,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Name = input.ReadString(); + case 8: { + ThermalState = (global::StreamVideo.v1.Sfu.Models.AndroidThermalState) input.ReadEnum(); break; } - case 18: { - Version = input.ReadString(); + case 16: { + IsPowerSaverMode = input.ReadBool(); break; } } @@ -5551,12 +7693,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Name = input.ReadString(); + case 8: { + ThermalState = (global::StreamVideo.v1.Sfu.Models.AndroidThermalState) input.ReadEnum(); break; } - case 18: { - Version = input.ReadString(); + case 16: { + IsPowerSaverMode = input.ReadBool(); break; } } @@ -5566,25 +7708,22 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// CallGrants represents the set of permissions given - /// to the user for the current call. - /// - internal sealed partial class CallGrants : pb::IMessage + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class AppleState : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallGrants()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppleState()); 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::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[17]; } + get { return global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5595,7 +7734,7 @@ internal sealed partial class CallGrants : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallGrants() { + public AppleState() { OnConstruction(); } @@ -5603,73 +7742,62 @@ public CallGrants() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallGrants(CallGrants other) : this() { - canPublishAudio_ = other.canPublishAudio_; - canPublishVideo_ = other.canPublishVideo_; - canScreenshare_ = other.canScreenshare_; + public AppleState(AppleState other) : this() { + thermalState_ = other.thermalState_; + isLowPowerModeEnabled_ = other.isLowPowerModeEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallGrants Clone() { - return new CallGrants(this); - } - - /// Field number for the "can_publish_audio" field. - public const int CanPublishAudioFieldNumber = 1; - private bool canPublishAudio_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanPublishAudio { - get { return canPublishAudio_; } - set { - canPublishAudio_ = value; - } + public AppleState Clone() { + return new AppleState(this); } - /// Field number for the "can_publish_video" field. - public const int CanPublishVideoFieldNumber = 2; - private bool canPublishVideo_; + /// Field number for the "thermal_state" field. + public const int ThermalStateFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.AppleThermalState thermalState_ = global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanPublishVideo { - get { return canPublishVideo_; } + public global::StreamVideo.v1.Sfu.Models.AppleThermalState ThermalState { + get { return thermalState_; } set { - canPublishVideo_ = value; + thermalState_ = value; } } - /// Field number for the "can_screenshare" field. - public const int CanScreenshareFieldNumber = 3; - private bool canScreenshare_; + /// Field number for the "is_low_power_mode_enabled" field. + public const int IsLowPowerModeEnabledFieldNumber = 2; + private bool isLowPowerModeEnabled_; + /// + /// https://developer.apple.com/documentation/foundation/processinfo/1617047-islowpowermodeenabled + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanScreenshare { - get { return canScreenshare_; } + public bool IsLowPowerModeEnabled { + get { return isLowPowerModeEnabled_; } set { - canScreenshare_ = value; + isLowPowerModeEnabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CallGrants); + return Equals(other as AppleState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallGrants other) { + public bool Equals(AppleState other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (CanPublishAudio != other.CanPublishAudio) return false; - if (CanPublishVideo != other.CanPublishVideo) return false; - if (CanScreenshare != other.CanScreenshare) return false; + if (ThermalState != other.ThermalState) return false; + if (IsLowPowerModeEnabled != other.IsLowPowerModeEnabled) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5677,9 +7805,8 @@ public bool Equals(CallGrants other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (CanPublishAudio != false) hash ^= CanPublishAudio.GetHashCode(); - if (CanPublishVideo != false) hash ^= CanPublishVideo.GetHashCode(); - if (CanScreenshare != false) hash ^= CanScreenshare.GetHashCode(); + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified) hash ^= ThermalState.GetHashCode(); + if (IsLowPowerModeEnabled != false) hash ^= IsLowPowerModeEnabled.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5698,17 +7825,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (CanPublishAudio != false) { + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified) { output.WriteRawTag(8); - output.WriteBool(CanPublishAudio); + output.WriteEnum((int) ThermalState); } - if (CanPublishVideo != false) { + if (IsLowPowerModeEnabled != false) { output.WriteRawTag(16); - output.WriteBool(CanPublishVideo); - } - if (CanScreenshare != false) { - output.WriteRawTag(24); - output.WriteBool(CanScreenshare); + output.WriteBool(IsLowPowerModeEnabled); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5720,17 +7843,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 (CanPublishAudio != false) { + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified) { output.WriteRawTag(8); - output.WriteBool(CanPublishAudio); + output.WriteEnum((int) ThermalState); } - if (CanPublishVideo != false) { + if (IsLowPowerModeEnabled != false) { output.WriteRawTag(16); - output.WriteBool(CanPublishVideo); - } - if (CanScreenshare != false) { - output.WriteRawTag(24); - output.WriteBool(CanScreenshare); + output.WriteBool(IsLowPowerModeEnabled); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5742,13 +7861,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (CanPublishAudio != false) { - size += 1 + 1; + if (ThermalState != global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ThermalState); } - if (CanPublishVideo != false) { - size += 1 + 1; - } - if (CanScreenshare != false) { + if (IsLowPowerModeEnabled != false) { size += 1 + 1; } if (_unknownFields != null) { @@ -5759,18 +7875,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallGrants other) { + public void MergeFrom(AppleState other) { if (other == null) { return; } - if (other.CanPublishAudio != false) { - CanPublishAudio = other.CanPublishAudio; - } - if (other.CanPublishVideo != false) { - CanPublishVideo = other.CanPublishVideo; + if (other.ThermalState != global::StreamVideo.v1.Sfu.Models.AppleThermalState.Unspecified) { + ThermalState = other.ThermalState; } - if (other.CanScreenshare != false) { - CanScreenshare = other.CanScreenshare; + if (other.IsLowPowerModeEnabled != false) { + IsLowPowerModeEnabled = other.IsLowPowerModeEnabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5788,15 +7901,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - CanPublishAudio = input.ReadBool(); + ThermalState = (global::StreamVideo.v1.Sfu.Models.AppleThermalState) input.ReadEnum(); break; } case 16: { - CanPublishVideo = input.ReadBool(); - break; - } - case 24: { - CanScreenshare = input.ReadBool(); + IsLowPowerModeEnabled = input.ReadBool(); break; } } @@ -5815,15 +7924,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - CanPublishAudio = input.ReadBool(); + ThermalState = (global::StreamVideo.v1.Sfu.Models.AppleThermalState) input.ReadEnum(); break; } case 16: { - CanPublishVideo = input.ReadBool(); - break; - } - case 24: { - CanScreenshare = input.ReadBool(); + IsLowPowerModeEnabled = input.ReadBool(); break; } } diff --git a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Signal.cs b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Signal.cs index c8211f8a..a72e9f6d 100644 --- a/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Signal.cs +++ b/Packages/StreamVideo/Runtime/Core/InternalDTO/Sfu/Signal.cs @@ -26,66 +26,97 @@ static SignalReflection() { string.Concat( "CiF2aWRlby9zZnUvc2lnbmFsX3JwYy9zaWduYWwucHJvdG8SF3N0cmVhbS52", "aWRlby5zZnUuc2lnbmFsGh12aWRlby9zZnUvbW9kZWxzL21vZGVscy5wcm90", - "byKTAQoQU2VuZFN0YXRzUmVxdWVzdBISCgpzZXNzaW9uX2lkGAEgASgJEhgK", - "EHN1YnNjcmliZXJfc3RhdHMYAiABKAkSFwoPcHVibGlzaGVyX3N0YXRzGAMg", - "ASgJEhYKDndlYnJ0Y192ZXJzaW9uGAQgASgJEgsKA3NkaxgFIAEoCRITCgtz", - "ZGtfdmVyc2lvbhgGIAEoCSJCChFTZW5kU3RhdHNSZXNwb25zZRItCgVlcnJv", - "chgBIAEoCzIeLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkVycm9yIl0KEUlD", - "RVJlc3RhcnRSZXF1ZXN0EhIKCnNlc3Npb25faWQYASABKAkSNAoJcGVlcl90", - "eXBlGAIgASgOMiEuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUGVlclR5cGUi", - "QwoSSUNFUmVzdGFydFJlc3BvbnNlEi0KBWVycm9yGAEgASgLMh4uc3RyZWFt", - "LnZpZGVvLnNmdS5tb2RlbHMuRXJyb3IiawoXVXBkYXRlTXV0ZVN0YXRlc1Jl", - "cXVlc3QSEgoKc2Vzc2lvbl9pZBgBIAEoCRI8CgttdXRlX3N0YXRlcxgDIAMo", - "CzInLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlRyYWNrTXV0ZVN0YXRlIkkK", - "GFVwZGF0ZU11dGVTdGF0ZXNSZXNwb25zZRItCgVlcnJvchgEIAEoCzIeLnN0", - "cmVhbS52aWRlby5zZnUubW9kZWxzLkVycm9yIlcKDlRyYWNrTXV0ZVN0YXRl", - "EjYKCnRyYWNrX3R5cGUYASABKA4yIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVs", - "cy5UcmFja1R5cGUSDQoFbXV0ZWQYAiABKAgiIQoQQXVkaW9NdXRlQ2hhbmdl", - "ZBINCgVtdXRlZBgBIAEoCCIhChBWaWRlb011dGVDaGFuZ2VkEg0KBW11dGVk", - "GAIgASgIInMKGlVwZGF0ZVN1YnNjcmlwdGlvbnNSZXF1ZXN0EhIKCnNlc3Np", - "b25faWQYAiABKAkSQQoGdHJhY2tzGAMgAygLMjEuc3RyZWFtLnZpZGVvLnNm", - "dS5zaWduYWwuVHJhY2tTdWJzY3JpcHRpb25EZXRhaWxzIkwKG1VwZGF0ZVN1", - "YnNjcmlwdGlvbnNSZXNwb25zZRItCgVlcnJvchgEIAEoCzIeLnN0cmVhbS52", - "aWRlby5zZnUubW9kZWxzLkVycm9yIrMBChhUcmFja1N1YnNjcmlwdGlvbkRl", - "dGFpbHMSDwoHdXNlcl9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEjYK", - "CnRyYWNrX3R5cGUYAyABKA4yIi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5U", - "cmFja1R5cGUSOgoJZGltZW5zaW9uGAQgASgLMicuc3RyZWFtLnZpZGVvLnNm", - "dS5tb2RlbHMuVmlkZW9EaW1lbnNpb24iagoRU2VuZEFuc3dlclJlcXVlc3QS", - "NAoJcGVlcl90eXBlGAEgASgOMiEuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMu", - "UGVlclR5cGUSCwoDc2RwGAIgASgJEhIKCnNlc3Npb25faWQYAyABKAkiQwoS", - "U2VuZEFuc3dlclJlc3BvbnNlEi0KBWVycm9yGAQgASgLMh4uc3RyZWFtLnZp", - "ZGVvLnNmdS5tb2RlbHMuRXJyb3IiQwoSSUNFVHJpY2tsZVJlc3BvbnNlEi0K", - "BWVycm9yGAQgASgLMh4uc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuRXJyb3Ii", - "agoTU2V0UHVibGlzaGVyUmVxdWVzdBILCgNzZHAYASABKAkSEgoKc2Vzc2lv", - "bl9pZBgCIAEoCRIyCgZ0cmFja3MYAyADKAsyIi5zdHJlYW0udmlkZW8uc2Z1", - "Lm1vZGVscy5UcmFja0luZm8iewoUU2V0UHVibGlzaGVyUmVzcG9uc2USCwoD", - "c2RwGAEgASgJEhIKCnNlc3Npb25faWQYAiABKAkSEwoLaWNlX3Jlc3RhcnQY", - "AyABKAgSLQoFZXJyb3IYBCABKAsyHi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVs", - "cy5FcnJvcjKJBgoMU2lnbmFsU2VydmVyEmsKDFNldFB1Ymxpc2hlchIsLnN0", - "cmVhbS52aWRlby5zZnUuc2lnbmFsLlNldFB1Ymxpc2hlclJlcXVlc3QaLS5z", - "dHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5TZXRQdWJsaXNoZXJSZXNwb25zZRJl", - "CgpTZW5kQW5zd2VyEiouc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU2VuZEFu", - "c3dlclJlcXVlc3QaKy5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5TZW5kQW5z", - "d2VyUmVzcG9uc2USXgoKSWNlVHJpY2tsZRIjLnN0cmVhbS52aWRlby5zZnUu", - "bW9kZWxzLklDRVRyaWNrbGUaKy5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5J", - "Q0VUcmlja2xlUmVzcG9uc2USgAEKE1VwZGF0ZVN1YnNjcmlwdGlvbnMSMy5z", - "dHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5VcGRhdGVTdWJzY3JpcHRpb25zUmVx", - "dWVzdBo0LnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlVwZGF0ZVN1YnNjcmlw", - "dGlvbnNSZXNwb25zZRJ3ChBVcGRhdGVNdXRlU3RhdGVzEjAuc3RyZWFtLnZp", - "ZGVvLnNmdS5zaWduYWwuVXBkYXRlTXV0ZVN0YXRlc1JlcXVlc3QaMS5zdHJl", - "YW0udmlkZW8uc2Z1LnNpZ25hbC5VcGRhdGVNdXRlU3RhdGVzUmVzcG9uc2US", - "ZQoKSWNlUmVzdGFydBIqLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLklDRVJl", - "c3RhcnRSZXF1ZXN0Gisuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuSUNFUmVz", - "dGFydFJlc3BvbnNlEmIKCVNlbmRTdGF0cxIpLnN0cmVhbS52aWRlby5zZnUu", - "c2lnbmFsLlNlbmRTdGF0c1JlcXVlc3QaKi5zdHJlYW0udmlkZW8uc2Z1LnNp", - "Z25hbC5TZW5kU3RhdHNSZXNwb25zZUJoQgtTZnVTaWduYWxWMVABWjtnaXRo", - "dWIuY29tL0dldFN0cmVhbS9wcm90b2NvbC9wcm90b2J1Zi92aWRlby9zZnUv", - "c2lnbmFsX3JwY6oCGVN0cmVhbVZpZGVvLnYxLlNmdS5TaWduYWxiBnByb3Rv", - "Mw==")); + "byIzCh1TdGFydE5vaXNlQ2FuY2VsbGF0aW9uUmVxdWVzdBISCgpzZXNzaW9u", + "X2lkGAEgASgJIk8KHlN0YXJ0Tm9pc2VDYW5jZWxsYXRpb25SZXNwb25zZRIt", + "CgVlcnJvchgBIAEoCzIeLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkVycm9y", + "IjIKHFN0b3BOb2lzZUNhbmNlbGxhdGlvblJlcXVlc3QSEgoKc2Vzc2lvbl9p", + "ZBgBIAEoCSJOCh1TdG9wTm9pc2VDYW5jZWxsYXRpb25SZXNwb25zZRItCgVl", + "cnJvchgBIAEoCzIeLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkVycm9yImsK", + "DFJlY29ubmVjdGlvbhIUCgx0aW1lX3NlY29uZHMYASABKAISRQoIc3RyYXRl", + "Z3kYAiABKA4yMy5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5XZWJzb2NrZXRS", + "ZWNvbm5lY3RTdHJhdGVneSJ1CglUZWxlbWV0cnkSIQoXY29ubmVjdGlvbl90", + "aW1lX3NlY29uZHMYASABKAJIABI9CgxyZWNvbm5lY3Rpb24YAiABKAsyJS5z", + "dHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5SZWNvbm5lY3Rpb25IAEIGCgRkYXRh", + "IvoDChBTZW5kU3RhdHNSZXF1ZXN0EhIKCnNlc3Npb25faWQYASABKAkSGAoQ", + "c3Vic2NyaWJlcl9zdGF0cxgCIAEoCRIXCg9wdWJsaXNoZXJfc3RhdHMYAyAB", + "KAkSFgoOd2VicnRjX3ZlcnNpb24YBCABKAkSCwoDc2RrGAUgASgJEhMKC3Nk", + "a192ZXJzaW9uGAYgASgJEjwKDWF1ZGlvX2RldmljZXMYByABKAsyJS5zdHJl", + "YW0udmlkZW8uc2Z1Lm1vZGVscy5JbnB1dERldmljZXMSPAoNdmlkZW9fZGV2", + "aWNlcxgIIAEoCzIlLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLklucHV0RGV2", + "aWNlcxI4CgdhbmRyb2lkGAkgASgLMiUuc3RyZWFtLnZpZGVvLnNmdS5tb2Rl", + "bHMuQW5kcm9pZFN0YXRlSAASNAoFYXBwbGUYCiABKAsyIy5zdHJlYW0udmlk", + "ZW8uc2Z1Lm1vZGVscy5BcHBsZVN0YXRlSAASNQoJdGVsZW1ldHJ5GAsgASgL", + "MiIuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuVGVsZW1ldHJ5EjIKBHJ0bXAY", + "DCABKAsyJC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5SVE1QSW5ncmVzc0IO", + "CgxkZXZpY2Vfc3RhdGUiQgoRU2VuZFN0YXRzUmVzcG9uc2USLQoFZXJyb3IY", + "ASABKAsyHi5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5FcnJvciJdChFJQ0VS", + "ZXN0YXJ0UmVxdWVzdBISCgpzZXNzaW9uX2lkGAEgASgJEjQKCXBlZXJfdHlw", + "ZRgCIAEoDjIhLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlBlZXJUeXBlIkMK", + "EklDRVJlc3RhcnRSZXNwb25zZRItCgVlcnJvchgBIAEoCzIeLnN0cmVhbS52", + "aWRlby5zZnUubW9kZWxzLkVycm9yImsKF1VwZGF0ZU11dGVTdGF0ZXNSZXF1", + "ZXN0EhIKCnNlc3Npb25faWQYASABKAkSPAoLbXV0ZV9zdGF0ZXMYAyADKAsy", + "Jy5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5UcmFja011dGVTdGF0ZSJJChhV", + "cGRhdGVNdXRlU3RhdGVzUmVzcG9uc2USLQoFZXJyb3IYBCABKAsyHi5zdHJl", + "YW0udmlkZW8uc2Z1Lm1vZGVscy5FcnJvciJXCg5UcmFja011dGVTdGF0ZRI2", + "Cgp0cmFja190eXBlGAEgASgOMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMu", + "VHJhY2tUeXBlEg0KBW11dGVkGAIgASgIIiEKEEF1ZGlvTXV0ZUNoYW5nZWQS", + "DQoFbXV0ZWQYASABKAgiIQoQVmlkZW9NdXRlQ2hhbmdlZBINCgVtdXRlZBgC", + "IAEoCCJzChpVcGRhdGVTdWJzY3JpcHRpb25zUmVxdWVzdBISCgpzZXNzaW9u", + "X2lkGAIgASgJEkEKBnRyYWNrcxgDIAMoCzIxLnN0cmVhbS52aWRlby5zZnUu", + "c2lnbmFsLlRyYWNrU3Vic2NyaXB0aW9uRGV0YWlscyJMChtVcGRhdGVTdWJz", + "Y3JpcHRpb25zUmVzcG9uc2USLQoFZXJyb3IYBCABKAsyHi5zdHJlYW0udmlk", + "ZW8uc2Z1Lm1vZGVscy5FcnJvciKzAQoYVHJhY2tTdWJzY3JpcHRpb25EZXRh", + "aWxzEg8KB3VzZXJfaWQYASABKAkSEgoKc2Vzc2lvbl9pZBgCIAEoCRI2Cgp0", + "cmFja190eXBlGAMgASgOMiIuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuVHJh", + "Y2tUeXBlEjoKCWRpbWVuc2lvbhgEIAEoCzInLnN0cmVhbS52aWRlby5zZnUu", + "bW9kZWxzLlZpZGVvRGltZW5zaW9uImoKEVNlbmRBbnN3ZXJSZXF1ZXN0EjQK", + "CXBlZXJfdHlwZRgBIAEoDjIhLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlBl", + "ZXJUeXBlEgsKA3NkcBgCIAEoCRISCgpzZXNzaW9uX2lkGAMgASgJIkMKElNl", + "bmRBbnN3ZXJSZXNwb25zZRItCgVlcnJvchgEIAEoCzIeLnN0cmVhbS52aWRl", + "by5zZnUubW9kZWxzLkVycm9yIkMKEklDRVRyaWNrbGVSZXNwb25zZRItCgVl", + "cnJvchgEIAEoCzIeLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkVycm9yImoK", + "E1NldFB1Ymxpc2hlclJlcXVlc3QSCwoDc2RwGAEgASgJEhIKCnNlc3Npb25f", + "aWQYAiABKAkSMgoGdHJhY2tzGAMgAygLMiIuc3RyZWFtLnZpZGVvLnNmdS5t", + "b2RlbHMuVHJhY2tJbmZvInsKFFNldFB1Ymxpc2hlclJlc3BvbnNlEgsKA3Nk", + "cBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEhMKC2ljZV9yZXN0YXJ0GAMg", + "ASgIEi0KBWVycm9yGAQgASgLMh4uc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMu", + "RXJyb3IynggKDFNpZ25hbFNlcnZlchJrCgxTZXRQdWJsaXNoZXISLC5zdHJl", + "YW0udmlkZW8uc2Z1LnNpZ25hbC5TZXRQdWJsaXNoZXJSZXF1ZXN0Gi0uc3Ry", + "ZWFtLnZpZGVvLnNmdS5zaWduYWwuU2V0UHVibGlzaGVyUmVzcG9uc2USZQoK", + "U2VuZEFuc3dlchIqLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlNlbmRBbnN3", + "ZXJSZXF1ZXN0Gisuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU2VuZEFuc3dl", + "clJlc3BvbnNlEl4KCkljZVRyaWNrbGUSIy5zdHJlYW0udmlkZW8uc2Z1Lm1v", + "ZGVscy5JQ0VUcmlja2xlGisuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuSUNF", + "VHJpY2tsZVJlc3BvbnNlEoABChNVcGRhdGVTdWJzY3JpcHRpb25zEjMuc3Ry", + "ZWFtLnZpZGVvLnNmdS5zaWduYWwuVXBkYXRlU3Vic2NyaXB0aW9uc1JlcXVl", + "c3QaNC5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5VcGRhdGVTdWJzY3JpcHRp", + "b25zUmVzcG9uc2USdwoQVXBkYXRlTXV0ZVN0YXRlcxIwLnN0cmVhbS52aWRl", + "by5zZnUuc2lnbmFsLlVwZGF0ZU11dGVTdGF0ZXNSZXF1ZXN0GjEuc3RyZWFt", + "LnZpZGVvLnNmdS5zaWduYWwuVXBkYXRlTXV0ZVN0YXRlc1Jlc3BvbnNlEmUK", + "CkljZVJlc3RhcnQSKi5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5JQ0VSZXN0", + "YXJ0UmVxdWVzdBorLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLklDRVJlc3Rh", + "cnRSZXNwb25zZRJiCglTZW5kU3RhdHMSKS5zdHJlYW0udmlkZW8uc2Z1LnNp", + "Z25hbC5TZW5kU3RhdHNSZXF1ZXN0Giouc3RyZWFtLnZpZGVvLnNmdS5zaWdu", + "YWwuU2VuZFN0YXRzUmVzcG9uc2USiQEKFlN0YXJ0Tm9pc2VDYW5jZWxsYXRp", + "b24SNi5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5TdGFydE5vaXNlQ2FuY2Vs", + "bGF0aW9uUmVxdWVzdBo3LnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlN0YXJ0", + "Tm9pc2VDYW5jZWxsYXRpb25SZXNwb25zZRKGAQoVU3RvcE5vaXNlQ2FuY2Vs", + "bGF0aW9uEjUuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU3RvcE5vaXNlQ2Fu", + "Y2VsbGF0aW9uUmVxdWVzdBo2LnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlN0", + "b3BOb2lzZUNhbmNlbGxhdGlvblJlc3BvbnNlQmlCC1NmdVNpZ25hbFYxUAFa", + "O2dpdGh1Yi5jb20vR2V0U3RyZWFtL3Byb3RvY29sL3Byb3RvYnVmL3ZpZGVv", + "L3NmdS9zaWduYWxfcnBjqgIaU3RyZWFtLlZpZGVvLnYxLlNmdS5TaWduYWxi", + "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::StreamVideo.v1.Sfu.Models.ModelsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.SendStatsRequest), global::StreamVideo.v1.Sfu.Signal.SendStatsRequest.Parser, new[]{ "SessionId", "SubscriberStats", "PublisherStats", "WebrtcVersion", "Sdk", "SdkVersion" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.StartNoiseCancellationRequest), global::StreamVideo.v1.Sfu.Signal.StartNoiseCancellationRequest.Parser, new[]{ "SessionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.StartNoiseCancellationResponse), global::StreamVideo.v1.Sfu.Signal.StartNoiseCancellationResponse.Parser, new[]{ "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.StopNoiseCancellationRequest), global::StreamVideo.v1.Sfu.Signal.StopNoiseCancellationRequest.Parser, new[]{ "SessionId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.StopNoiseCancellationResponse), global::StreamVideo.v1.Sfu.Signal.StopNoiseCancellationResponse.Parser, new[]{ "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.Reconnection), global::StreamVideo.v1.Sfu.Signal.Reconnection.Parser, new[]{ "TimeSeconds", "Strategy" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.Telemetry), global::StreamVideo.v1.Sfu.Signal.Telemetry.Parser, new[]{ "ConnectionTimeSeconds", "Reconnection" }, new[]{ "Data" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.SendStatsRequest), global::StreamVideo.v1.Sfu.Signal.SendStatsRequest.Parser, new[]{ "SessionId", "SubscriberStats", "PublisherStats", "WebrtcVersion", "Sdk", "SdkVersion", "AudioDevices", "VideoDevices", "Android", "Apple", "Telemetry", "Rtmp" }, new[]{ "DeviceState" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.SendStatsResponse), global::StreamVideo.v1.Sfu.Signal.SendStatsResponse.Parser, new[]{ "Error" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.ICERestartRequest), global::StreamVideo.v1.Sfu.Signal.ICERestartRequest.Parser, new[]{ "SessionId", "PeerType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::StreamVideo.v1.Sfu.Signal.ICERestartResponse), global::StreamVideo.v1.Sfu.Signal.ICERestartResponse.Parser, new[]{ "Error" }, null, null, null, null), @@ -108,6 +139,1299 @@ static SignalReflection() { } #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class StartNoiseCancellationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartNoiseCancellationRequest()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 StartNoiseCancellationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNoiseCancellationRequest(StartNoiseCancellationRequest other) : this() { + sessionId_ = other.sessionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNoiseCancellationRequest Clone() { + return new StartNoiseCancellationRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = 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 StartNoiseCancellationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartNoiseCancellationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) 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 (SessionId.Length != 0) hash ^= SessionId.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StartNoiseCancellationRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class StartNoiseCancellationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartNoiseCancellationResponse()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 StartNoiseCancellationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StartNoiseCancellationResponse(StartNoiseCancellationResponse other) : this() { + 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 StartNoiseCancellationResponse Clone() { + return new StartNoiseCancellationResponse(this); + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.Error error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Error 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 StartNoiseCancellationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StartNoiseCancellationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (error_ != null) { + output.WriteRawTag(10); + 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 (error_ != null) { + output.WriteRawTag(10); + 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 (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(StartNoiseCancellationResponse other) { + if (other == null) { + return; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + input.ReadMessage(Error); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class StopNoiseCancellationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StopNoiseCancellationRequest()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 StopNoiseCancellationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StopNoiseCancellationRequest(StopNoiseCancellationRequest other) : this() { + sessionId_ = other.sessionId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StopNoiseCancellationRequest Clone() { + return new StopNoiseCancellationRequest(this); + } + + /// Field number for the "session_id" field. + public const int SessionIdFieldNumber = 1; + private string sessionId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SessionId { + get { return sessionId_; } + set { + sessionId_ = 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 StopNoiseCancellationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StopNoiseCancellationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SessionId != other.SessionId) 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 (SessionId.Length != 0) hash ^= SessionId.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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + 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 (SessionId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SessionId); + } + 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 (SessionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StopNoiseCancellationRequest other) { + if (other == null) { + return; + } + if (other.SessionId.Length != 0) { + SessionId = other.SessionId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + SessionId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class StopNoiseCancellationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StopNoiseCancellationResponse()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 StopNoiseCancellationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StopNoiseCancellationResponse(StopNoiseCancellationResponse other) : this() { + 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 StopNoiseCancellationResponse Clone() { + return new StopNoiseCancellationResponse(this); + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 1; + private global::StreamVideo.v1.Sfu.Models.Error error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.Error 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 StopNoiseCancellationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StopNoiseCancellationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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 (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 (error_ != null) { + output.WriteRawTag(10); + 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 (error_ != null) { + output.WriteRawTag(10); + 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 (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(StopNoiseCancellationResponse other) { + if (other == null) { + return; + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + 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) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (error_ == null) { + Error = new global::StreamVideo.v1.Sfu.Models.Error(); + } + input.ReadMessage(Error); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Reconnection : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Reconnection()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 Reconnection() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Reconnection(Reconnection other) : this() { + timeSeconds_ = other.timeSeconds_; + strategy_ = other.strategy_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Reconnection Clone() { + return new Reconnection(this); + } + + /// Field number for the "time_seconds" field. + public const int TimeSecondsFieldNumber = 1; + private float timeSeconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float TimeSeconds { + get { return timeSeconds_; } + set { + timeSeconds_ = value; + } + } + + /// Field number for the "strategy" field. + public const int StrategyFieldNumber = 2; + private global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy strategy_ = global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy Strategy { + get { return strategy_; } + set { + strategy_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Reconnection); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Reconnection other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeSeconds, other.TimeSeconds)) return false; + if (Strategy != other.Strategy) 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 (TimeSeconds != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeSeconds); + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) hash ^= Strategy.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 (TimeSeconds != 0F) { + output.WriteRawTag(13); + output.WriteFloat(TimeSeconds); + } + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Strategy); + } + 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 (TimeSeconds != 0F) { + output.WriteRawTag(13); + output.WriteFloat(TimeSeconds); + } + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + output.WriteRawTag(16); + output.WriteEnum((int) Strategy); + } + 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 (TimeSeconds != 0F) { + size += 1 + 4; + } + if (Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Strategy); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Reconnection other) { + if (other == null) { + return; + } + if (other.TimeSeconds != 0F) { + TimeSeconds = other.TimeSeconds; + } + if (other.Strategy != global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy.Unspecified) { + Strategy = other.Strategy; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + TimeSeconds = input.ReadFloat(); + break; + } + case 16: { + Strategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + TimeSeconds = input.ReadFloat(); + break; + } + case 16: { + Strategy = (global::StreamVideo.v1.Sfu.Models.WebsocketReconnectStrategy) input.ReadEnum(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + internal sealed partial class Telemetry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Telemetry()); + 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::StreamVideo.v1.Sfu.Signal.SignalReflection.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 Telemetry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Telemetry(Telemetry other) : this() { + switch (other.DataCase) { + case DataOneofCase.ConnectionTimeSeconds: + ConnectionTimeSeconds = other.ConnectionTimeSeconds; + break; + case DataOneofCase.Reconnection: + Reconnection = other.Reconnection.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Telemetry Clone() { + return new Telemetry(this); + } + + /// Field number for the "connection_time_seconds" field. + public const int ConnectionTimeSecondsFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ConnectionTimeSeconds { + get { return HasConnectionTimeSeconds ? (float) data_ : 0F; } + set { + data_ = value; + dataCase_ = DataOneofCase.ConnectionTimeSeconds; + } + } + /// Gets whether the "connection_time_seconds" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasConnectionTimeSeconds { + get { return dataCase_ == DataOneofCase.ConnectionTimeSeconds; } + } + /// Clears the value of the oneof if it's currently set to "connection_time_seconds" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearConnectionTimeSeconds() { + if (HasConnectionTimeSeconds) { + ClearData(); + } + } + + /// Field number for the "reconnection" field. + public const int ReconnectionFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Signal.Reconnection Reconnection { + get { return dataCase_ == DataOneofCase.Reconnection ? (global::StreamVideo.v1.Sfu.Signal.Reconnection) data_ : null; } + set { + data_ = value; + dataCase_ = value == null ? DataOneofCase.None : DataOneofCase.Reconnection; + } + } + + private object data_; + /// Enum of possible cases for the "data" oneof. + public enum DataOneofCase { + None = 0, + ConnectionTimeSeconds = 1, + Reconnection = 2, + } + private DataOneofCase dataCase_ = DataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DataOneofCase DataCase { + get { return dataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearData() { + dataCase_ = DataOneofCase.None; + data_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Telemetry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Telemetry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ConnectionTimeSeconds, other.ConnectionTimeSeconds)) return false; + if (!object.Equals(Reconnection, other.Reconnection)) return false; + if (DataCase != other.DataCase) 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 (HasConnectionTimeSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ConnectionTimeSeconds); + if (dataCase_ == DataOneofCase.Reconnection) hash ^= Reconnection.GetHashCode(); + hash ^= (int) dataCase_; + 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 (HasConnectionTimeSeconds) { + output.WriteRawTag(13); + output.WriteFloat(ConnectionTimeSeconds); + } + if (dataCase_ == DataOneofCase.Reconnection) { + output.WriteRawTag(18); + output.WriteMessage(Reconnection); + } + 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 (HasConnectionTimeSeconds) { + output.WriteRawTag(13); + output.WriteFloat(ConnectionTimeSeconds); + } + if (dataCase_ == DataOneofCase.Reconnection) { + output.WriteRawTag(18); + output.WriteMessage(Reconnection); + } + 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 (HasConnectionTimeSeconds) { + size += 1 + 4; + } + if (dataCase_ == DataOneofCase.Reconnection) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Reconnection); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Telemetry other) { + if (other == null) { + return; + } + switch (other.DataCase) { + case DataOneofCase.ConnectionTimeSeconds: + ConnectionTimeSeconds = other.ConnectionTimeSeconds; + break; + case DataOneofCase.Reconnection: + if (Reconnection == null) { + Reconnection = new global::StreamVideo.v1.Sfu.Signal.Reconnection(); + } + Reconnection.MergeFrom(other.Reconnection); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 13: { + ConnectionTimeSeconds = input.ReadFloat(); + break; + } + case 18: { + global::StreamVideo.v1.Sfu.Signal.Reconnection subBuilder = new global::StreamVideo.v1.Sfu.Signal.Reconnection(); + if (dataCase_ == DataOneofCase.Reconnection) { + subBuilder.MergeFrom(Reconnection); + } + input.ReadMessage(subBuilder); + Reconnection = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + ConnectionTimeSeconds = input.ReadFloat(); + break; + } + case 18: { + global::StreamVideo.v1.Sfu.Signal.Reconnection subBuilder = new global::StreamVideo.v1.Sfu.Signal.Reconnection(); + if (dataCase_ == DataOneofCase.Reconnection) { + subBuilder.MergeFrom(Reconnection); + } + input.ReadMessage(subBuilder); + Reconnection = subBuilder; + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class SendStatsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -122,7 +1446,7 @@ internal sealed partial class SendStatsRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[0]; } + get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -148,6 +1472,19 @@ public SendStatsRequest(SendStatsRequest other) : this() { webrtcVersion_ = other.webrtcVersion_; sdk_ = other.sdk_; sdkVersion_ = other.sdkVersion_; + audioDevices_ = other.audioDevices_ != null ? other.audioDevices_.Clone() : null; + videoDevices_ = other.videoDevices_ != null ? other.videoDevices_.Clone() : null; + telemetry_ = other.telemetry_ != null ? other.telemetry_.Clone() : null; + rtmp_ = other.rtmp_ != null ? other.rtmp_.Clone() : null; + switch (other.DeviceStateCase) { + case DeviceStateOneofCase.Android: + Android = other.Android.Clone(); + break; + case DeviceStateOneofCase.Apple: + Apple = other.Apple.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -229,6 +1566,99 @@ public string SdkVersion { } } + /// Field number for the "audio_devices" field. + public const int AudioDevicesFieldNumber = 7; + private global::StreamVideo.v1.Sfu.Models.InputDevices audioDevices_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.InputDevices AudioDevices { + get { return audioDevices_; } + set { + audioDevices_ = value; + } + } + + /// Field number for the "video_devices" field. + public const int VideoDevicesFieldNumber = 8; + private global::StreamVideo.v1.Sfu.Models.InputDevices videoDevices_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.InputDevices VideoDevices { + get { return videoDevices_; } + set { + videoDevices_ = value; + } + } + + /// Field number for the "android" field. + public const int AndroidFieldNumber = 9; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.AndroidState Android { + get { return deviceStateCase_ == DeviceStateOneofCase.Android ? (global::StreamVideo.v1.Sfu.Models.AndroidState) deviceState_ : null; } + set { + deviceState_ = value; + deviceStateCase_ = value == null ? DeviceStateOneofCase.None : DeviceStateOneofCase.Android; + } + } + + /// Field number for the "apple" field. + public const int AppleFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.AppleState Apple { + get { return deviceStateCase_ == DeviceStateOneofCase.Apple ? (global::StreamVideo.v1.Sfu.Models.AppleState) deviceState_ : null; } + set { + deviceState_ = value; + deviceStateCase_ = value == null ? DeviceStateOneofCase.None : DeviceStateOneofCase.Apple; + } + } + + /// Field number for the "telemetry" field. + public const int TelemetryFieldNumber = 11; + private global::StreamVideo.v1.Sfu.Signal.Telemetry telemetry_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Signal.Telemetry Telemetry { + get { return telemetry_; } + set { + telemetry_ = value; + } + } + + /// Field number for the "rtmp" field. + public const int RtmpFieldNumber = 12; + private global::StreamVideo.v1.Sfu.Models.RTMPIngress rtmp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::StreamVideo.v1.Sfu.Models.RTMPIngress Rtmp { + get { return rtmp_; } + set { + rtmp_ = value; + } + } + + private object deviceState_; + /// Enum of possible cases for the "device_state" oneof. + public enum DeviceStateOneofCase { + None = 0, + Android = 9, + Apple = 10, + } + private DeviceStateOneofCase deviceStateCase_ = DeviceStateOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeviceStateOneofCase DeviceStateCase { + get { return deviceStateCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDeviceState() { + deviceStateCase_ = DeviceStateOneofCase.None; + deviceState_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -250,6 +1680,13 @@ public bool Equals(SendStatsRequest other) { if (WebrtcVersion != other.WebrtcVersion) return false; if (Sdk != other.Sdk) return false; if (SdkVersion != other.SdkVersion) return false; + if (!object.Equals(AudioDevices, other.AudioDevices)) return false; + if (!object.Equals(VideoDevices, other.VideoDevices)) return false; + if (!object.Equals(Android, other.Android)) return false; + if (!object.Equals(Apple, other.Apple)) return false; + if (!object.Equals(Telemetry, other.Telemetry)) return false; + if (!object.Equals(Rtmp, other.Rtmp)) return false; + if (DeviceStateCase != other.DeviceStateCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -263,6 +1700,13 @@ public override int GetHashCode() { if (WebrtcVersion.Length != 0) hash ^= WebrtcVersion.GetHashCode(); if (Sdk.Length != 0) hash ^= Sdk.GetHashCode(); if (SdkVersion.Length != 0) hash ^= SdkVersion.GetHashCode(); + if (audioDevices_ != null) hash ^= AudioDevices.GetHashCode(); + if (videoDevices_ != null) hash ^= VideoDevices.GetHashCode(); + if (deviceStateCase_ == DeviceStateOneofCase.Android) hash ^= Android.GetHashCode(); + if (deviceStateCase_ == DeviceStateOneofCase.Apple) hash ^= Apple.GetHashCode(); + if (telemetry_ != null) hash ^= Telemetry.GetHashCode(); + if (rtmp_ != null) hash ^= Rtmp.GetHashCode(); + hash ^= (int) deviceStateCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -305,6 +1749,30 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteString(SdkVersion); } + if (audioDevices_ != null) { + output.WriteRawTag(58); + output.WriteMessage(AudioDevices); + } + if (videoDevices_ != null) { + output.WriteRawTag(66); + output.WriteMessage(VideoDevices); + } + if (deviceStateCase_ == DeviceStateOneofCase.Android) { + output.WriteRawTag(74); + output.WriteMessage(Android); + } + if (deviceStateCase_ == DeviceStateOneofCase.Apple) { + output.WriteRawTag(82); + output.WriteMessage(Apple); + } + if (telemetry_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Telemetry); + } + if (rtmp_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Rtmp); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -339,6 +1807,30 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(50); output.WriteString(SdkVersion); } + if (audioDevices_ != null) { + output.WriteRawTag(58); + output.WriteMessage(AudioDevices); + } + if (videoDevices_ != null) { + output.WriteRawTag(66); + output.WriteMessage(VideoDevices); + } + if (deviceStateCase_ == DeviceStateOneofCase.Android) { + output.WriteRawTag(74); + output.WriteMessage(Android); + } + if (deviceStateCase_ == DeviceStateOneofCase.Apple) { + output.WriteRawTag(82); + output.WriteMessage(Apple); + } + if (telemetry_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Telemetry); + } + if (rtmp_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Rtmp); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -367,6 +1859,24 @@ public int CalculateSize() { if (SdkVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SdkVersion); } + if (audioDevices_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudioDevices); + } + if (videoDevices_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoDevices); + } + if (deviceStateCase_ == DeviceStateOneofCase.Android) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Android); + } + if (deviceStateCase_ == DeviceStateOneofCase.Apple) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Apple); + } + if (telemetry_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Telemetry); + } + if (rtmp_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rtmp); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -397,6 +1907,45 @@ public void MergeFrom(SendStatsRequest other) { if (other.SdkVersion.Length != 0) { SdkVersion = other.SdkVersion; } + if (other.audioDevices_ != null) { + if (audioDevices_ == null) { + AudioDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + AudioDevices.MergeFrom(other.AudioDevices); + } + if (other.videoDevices_ != null) { + if (videoDevices_ == null) { + VideoDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + VideoDevices.MergeFrom(other.VideoDevices); + } + if (other.telemetry_ != null) { + if (telemetry_ == null) { + Telemetry = new global::StreamVideo.v1.Sfu.Signal.Telemetry(); + } + Telemetry.MergeFrom(other.Telemetry); + } + if (other.rtmp_ != null) { + if (rtmp_ == null) { + Rtmp = new global::StreamVideo.v1.Sfu.Models.RTMPIngress(); + } + Rtmp.MergeFrom(other.Rtmp); + } + switch (other.DeviceStateCase) { + case DeviceStateOneofCase.Android: + if (Android == null) { + Android = new global::StreamVideo.v1.Sfu.Models.AndroidState(); + } + Android.MergeFrom(other.Android); + break; + case DeviceStateOneofCase.Apple: + if (Apple == null) { + Apple = new global::StreamVideo.v1.Sfu.Models.AppleState(); + } + Apple.MergeFrom(other.Apple); + break; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -436,6 +1985,52 @@ public void MergeFrom(pb::CodedInputStream input) { SdkVersion = input.ReadString(); break; } + case 58: { + if (audioDevices_ == null) { + AudioDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + input.ReadMessage(AudioDevices); + break; + } + case 66: { + if (videoDevices_ == null) { + VideoDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + input.ReadMessage(VideoDevices); + break; + } + case 74: { + global::StreamVideo.v1.Sfu.Models.AndroidState subBuilder = new global::StreamVideo.v1.Sfu.Models.AndroidState(); + if (deviceStateCase_ == DeviceStateOneofCase.Android) { + subBuilder.MergeFrom(Android); + } + input.ReadMessage(subBuilder); + Android = subBuilder; + break; + } + case 82: { + global::StreamVideo.v1.Sfu.Models.AppleState subBuilder = new global::StreamVideo.v1.Sfu.Models.AppleState(); + if (deviceStateCase_ == DeviceStateOneofCase.Apple) { + subBuilder.MergeFrom(Apple); + } + input.ReadMessage(subBuilder); + Apple = subBuilder; + break; + } + case 90: { + if (telemetry_ == null) { + Telemetry = new global::StreamVideo.v1.Sfu.Signal.Telemetry(); + } + input.ReadMessage(Telemetry); + break; + } + case 98: { + if (rtmp_ == null) { + Rtmp = new global::StreamVideo.v1.Sfu.Models.RTMPIngress(); + } + input.ReadMessage(Rtmp); + break; + } } } #endif @@ -475,6 +2070,52 @@ public void MergeFrom(pb::CodedInputStream input) { SdkVersion = input.ReadString(); break; } + case 58: { + if (audioDevices_ == null) { + AudioDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + input.ReadMessage(AudioDevices); + break; + } + case 66: { + if (videoDevices_ == null) { + VideoDevices = new global::StreamVideo.v1.Sfu.Models.InputDevices(); + } + input.ReadMessage(VideoDevices); + break; + } + case 74: { + global::StreamVideo.v1.Sfu.Models.AndroidState subBuilder = new global::StreamVideo.v1.Sfu.Models.AndroidState(); + if (deviceStateCase_ == DeviceStateOneofCase.Android) { + subBuilder.MergeFrom(Android); + } + input.ReadMessage(subBuilder); + Android = subBuilder; + break; + } + case 82: { + global::StreamVideo.v1.Sfu.Models.AppleState subBuilder = new global::StreamVideo.v1.Sfu.Models.AppleState(); + if (deviceStateCase_ == DeviceStateOneofCase.Apple) { + subBuilder.MergeFrom(Apple); + } + input.ReadMessage(subBuilder); + Apple = subBuilder; + break; + } + case 90: { + if (telemetry_ == null) { + Telemetry = new global::StreamVideo.v1.Sfu.Signal.Telemetry(); + } + input.ReadMessage(Telemetry); + break; + } + case 98: { + if (rtmp_ == null) { + Rtmp = new global::StreamVideo.v1.Sfu.Models.RTMPIngress(); + } + input.ReadMessage(Rtmp); + break; + } } } } @@ -482,6 +2123,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class SendStatsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -496,7 +2138,7 @@ internal sealed partial class SendStatsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -694,7 +2337,7 @@ internal sealed partial class ICERestartRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -920,7 +2564,7 @@ internal sealed partial class ICERestartResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1118,7 +2763,7 @@ internal sealed partial class UpdateMuteStatesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1333,7 +2979,7 @@ internal sealed partial class UpdateMuteStatesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1531,7 +3178,7 @@ internal sealed partial class TrackMuteState : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[6]; } + get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1743,6 +3390,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class AudioMuteChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1757,7 +3405,7 @@ internal sealed partial class AudioMuteChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[7]; } + get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1932,6 +3580,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class VideoMuteChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -1946,7 +3595,7 @@ internal sealed partial class VideoMuteChanged : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[8]; } + get { return global::StreamVideo.v1.Sfu.Signal.SignalReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2121,6 +3770,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] internal sealed partial class UpdateSubscriptionsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2135,7 +3785,7 @@ internal sealed partial class UpdateSubscriptionsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2350,7 +4001,7 @@ internal sealed partial class UpdateSubscriptionsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2548,7 +4200,7 @@ internal sealed partial class TrackSubscriptionDetails : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -2857,7 +4510,7 @@ internal sealed partial class SendAnswerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3120,7 +4774,7 @@ internal sealed partial class SendAnswerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3318,7 +4973,7 @@ internal sealed partial class ICETrickleResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3516,7 +5172,7 @@ internal sealed partial class SetPublisherRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3771,7 +5428,7 @@ internal sealed partial class SetPublisherResponse : pb::IMessage GoAway; public event Action IceRestart; public event Action PinsUpdated; + public event Action CallEnded; + public event Action ParticipantUpdated; + public event Action ParticipantMigrationComplete; + public event Action ChangePublishOptions; public SfuWebSocket(IWebsocketClient websocketClient, IReconnectScheduler reconnectScheduler, IAuthProvider authProvider, @@ -199,7 +203,18 @@ protected override void ProcessMessages() case SfuEvent.EventPayloadOneofCase.PinsUpdated: PinsUpdated?.Invoke(sfuEvent.PinsUpdated); break; - + case SfuEvent.EventPayloadOneofCase.CallEnded: + CallEnded?.Invoke(); + break; + case SfuEvent.EventPayloadOneofCase.ParticipantUpdated: + ParticipantUpdated?.Invoke(sfuEvent.ParticipantUpdated); + break; + case SfuEvent.EventPayloadOneofCase.ParticipantMigrationComplete: + ParticipantMigrationComplete?.Invoke(); + break; + case SfuEvent.EventPayloadOneofCase.ChangePublishOptions: + ChangePublishOptions?.Invoke(sfuEvent.ChangePublishOptions); + break; default: throw new ArgumentOutOfRangeException(nameof(sfuEvent.EventPayloadCase), sfuEvent.EventPayloadCase, null);