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