From b385ab4c7fd68abe8639b2850c0bdbd136111b65 Mon Sep 17 00:00:00 2001
From: Jacob Gelman <3182119+ladvoc@users.noreply.github.com>
Date: Fri, 21 Mar 2025 12:14:06 -0700
Subject: [PATCH 01/25] Add data streams proto to build script
---
BuildScripts~/generate_proto.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/BuildScripts~/generate_proto.sh b/BuildScripts~/generate_proto.sh
index 308d09bf..cf1c2e93 100755
--- a/BuildScripts~/generate_proto.sh
+++ b/BuildScripts~/generate_proto.sh
@@ -15,4 +15,5 @@ protoc \
$FFI_PROTOCOL/stats.proto \
$FFI_PROTOCOL/track.proto \
$FFI_PROTOCOL/video_frame.proto \
- $FFI_PROTOCOL/rpc.proto
+ $FFI_PROTOCOL/rpc.proto \
+ $FFI_PROTOCOL/data_stream.proto
From 2747bfff5e4b9c4edaf558594f12926e9e26de4d Mon Sep 17 00:00:00 2001
From: Jacob Gelman <3182119+ladvoc@users.noreply.github.com>
Date: Tue, 25 Mar 2025 10:36:42 +1100
Subject: [PATCH 02/25] Generate proto
---
Runtime/Scripts/Proto/AudioFrame.cs | 6471 +++++---
Runtime/Scripts/Proto/DataStream.cs | 16696 +++++++++++++++++++++
Runtime/Scripts/Proto/DataStream.cs.meta | 11 +
Runtime/Scripts/Proto/Ffi.cs | 4427 +++++-
Runtime/Scripts/Proto/Participant.cs | 140 +-
Runtime/Scripts/Proto/Room.cs | 6755 ++++++++-
Runtime/Scripts/Proto/Rpc.cs | 135 +-
Runtime/Scripts/Proto/Stats.cs | 1007 +-
Runtime/Scripts/Proto/Track.cs | 781 +-
Runtime/Scripts/Proto/VideoFrame.cs | 6 +-
10 files changed, 33897 insertions(+), 2532 deletions(-)
create mode 100644 Runtime/Scripts/Proto/DataStream.cs
create mode 100644 Runtime/Scripts/Proto/DataStream.cs.meta
diff --git a/Runtime/Scripts/Proto/AudioFrame.cs b/Runtime/Scripts/Proto/AudioFrame.cs
index ad11d265..ac000f37 100644
--- a/Runtime/Scripts/Proto/AudioFrame.cs
+++ b/Runtime/Scripts/Proto/AudioFrame.cs
@@ -25,98 +25,117 @@ static AudioFrameReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy",
- "b3RvGgt0cmFjay5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK",
+ "b3RvGgt0cmFjay5wcm90byLEAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK",
"DHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5w",
"cm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoM",
- "bnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2US",
- "LwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3Ry",
- "ZWFtIsoBCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoS",
- "cGFydGljaXBhbnRfaGFuZGxlGAEgAigEEiwKBHR5cGUYAiACKA4yHi5saXZl",
- "a2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRIwCgx0cmFja19zb3VyY2UYAyAB",
- "KA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NhbXBsZV9yYXRl",
- "GAUgASgNEhQKDG51bV9jaGFubmVscxgGIAEoDSJVCiJBdWRpb1N0cmVhbUZy",
- "b21QYXJ0aWNpcGFudFJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVr",
- "aXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK7AQoVTmV3QXVkaW9Tb3VyY2VS",
- "ZXF1ZXN0EiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU291",
- "cmNlVHlwZRIyCgdvcHRpb25zGAIgASgLMiEubGl2ZWtpdC5wcm90by5BdWRp",
- "b1NvdXJjZU9wdGlvbnMSEwoLc2FtcGxlX3JhdGUYAyACKA0SFAoMbnVtX2No",
- "YW5uZWxzGAQgAigNEhUKDXF1ZXVlX3NpemVfbXMYBSABKA0iSQoWTmV3QXVk",
- "aW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASACKAsyHy5saXZla2l0LnBy",
- "b3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVyZUF1ZGlvRnJhbWVSZXF1",
- "ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASACKAQSMwoGYnVmZmVyGAIgAigLMiMu",
- "bGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyItChlDYXB0dXJl",
- "QXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIjwKGUNhcHR1",
- "cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDQoFZXJy",
- "b3IYAiABKAkiMAoXQ2xlYXJBdWRpb0J1ZmZlclJlcXVlc3QSFQoNc291cmNl",
- "X2hhbmRsZRgBIAIoBCIaChhDbGVhckF1ZGlvQnVmZmVyUmVzcG9uc2UiGgoY",
- "TmV3QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVy",
- "UmVzcG9uc2USNQoJcmVzYW1wbGVyGAEgAigLMiIubGl2ZWtpdC5wcm90by5P",
- "d25lZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVz",
- "dBIYChByZXNhbXBsZXJfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIj",
- "LmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2No",
- "YW5uZWxzGAMgAigNEhMKC3NhbXBsZV9yYXRlGAQgAigNIlAKGFJlbWl4QW5k",
- "UmVzYW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASACKAsyJC5saXZla2l0LnBy",
- "b3RvLk93bmVkQXVkaW9GcmFtZUJ1ZmZlciKcAgoWTmV3U294UmVzYW1wbGVy",
- "UmVxdWVzdBISCgppbnB1dF9yYXRlGAEgAigBEhMKC291dHB1dF9yYXRlGAIg",
- "AigBEhQKDG51bV9jaGFubmVscxgDIAIoDRI8Cg9pbnB1dF9kYXRhX3R5cGUY",
- "BCACKA4yIy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEj0K",
- "EG91dHB1dF9kYXRhX3R5cGUYBSACKA4yIy5saXZla2l0LnByb3RvLlNveFJl",
- "c2FtcGxlckRhdGFUeXBlEjcKDnF1YWxpdHlfcmVjaXBlGAYgAigOMh8ubGl2",
- "ZWtpdC5wcm90by5Tb3hRdWFsaXR5UmVjaXBlEg0KBWZsYWdzGAcgASgNImwK",
- "F05ld1NveFJlc2FtcGxlclJlc3BvbnNlEjUKCXJlc2FtcGxlchgBIAEoCzIg",
- "LmxpdmVraXQucHJvdG8uT3duZWRTb3hSZXNhbXBsZXJIABIPCgVlcnJvchgC",
- "IAEoCUgAQgkKB21lc3NhZ2UiUwoXUHVzaFNveFJlc2FtcGxlclJlcXVlc3QS",
- "GAoQcmVzYW1wbGVyX2hhbmRsZRgBIAIoBBIQCghkYXRhX3B0chgCIAIoBBIM",
- "CgRzaXplGAMgAigNIksKGFB1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpv",
- "dXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAki",
- "NAoYRmx1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0EhgKEHJlc2FtcGxlcl9oYW5k",
- "bGUYASACKAQiTAoZRmx1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpvdXRw",
- "dXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAkicAoU",
- "QXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoIZGF0YV9wdHIYASACKAQSFAoMbnVt",
- "X2NoYW5uZWxzGAIgAigNEhMKC3NhbXBsZV9yYXRlGAMgAigNEhsKE3NhbXBs",
- "ZXNfcGVyX2NoYW5uZWwYBCACKA0ieQoVT3duZWRBdWRpb0ZyYW1lQnVmZmVy",
+ "bnVtX2NoYW5uZWxzGAQgASgNEh4KFmF1ZGlvX2ZpbHRlcl9tb2R1bGVfaWQY",
+ "BSABKAkSHAoUYXVkaW9fZmlsdGVyX29wdGlvbnMYBiABKAkiSQoWTmV3QXVk",
+ "aW9TdHJlYW1SZXNwb25zZRIvCgZzdHJlYW0YASACKAsyHy5saXZla2l0LnBy",
+ "b3RvLk93bmVkQXVkaW9TdHJlYW0iiAIKIUF1ZGlvU3RyZWFtRnJvbVBhcnRp",
+ "Y2lwYW50UmVxdWVzdBIaChJwYXJ0aWNpcGFudF9oYW5kbGUYASACKAQSLAoE",
+ "dHlwZRgCIAIoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1UeXBlEjAK",
+ "DHRyYWNrX3NvdXJjZRgDIAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tTb3Vy",
+ "Y2USEwoLc2FtcGxlX3JhdGUYBSABKA0SFAoMbnVtX2NoYW5uZWxzGAYgASgN",
+ "Eh4KFmF1ZGlvX2ZpbHRlcl9tb2R1bGVfaWQYByABKAkSHAoUYXVkaW9fZmls",
+ "dGVyX29wdGlvbnMYCCABKAkiVQoiQXVkaW9TdHJlYW1Gcm9tUGFydGljaXBh",
+ "bnRSZXNwb25zZRIvCgZzdHJlYW0YASACKAsyHy5saXZla2l0LnByb3RvLk93",
+ "bmVkQXVkaW9TdHJlYW0iuwEKFU5ld0F1ZGlvU291cmNlUmVxdWVzdBIsCgR0",
+ "eXBlGAEgAigOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVR5cGUSMgoH",
+ "b3B0aW9ucxgCIAEoCzIhLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VPcHRp",
+ "b25zEhMKC3NhbXBsZV9yYXRlGAMgAigNEhQKDG51bV9jaGFubmVscxgEIAIo",
+ "DRIVCg1xdWV1ZV9zaXplX21zGAUgASgNIkkKFk5ld0F1ZGlvU291cmNlUmVz",
+ "cG9uc2USLwoGc291cmNlGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1",
+ "ZGlvU291cmNlImYKGENhcHR1cmVBdWRpb0ZyYW1lUmVxdWVzdBIVCg1zb3Vy",
+ "Y2VfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIjLmxpdmVraXQucHJv",
+ "dG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iLQoZQ2FwdHVyZUF1ZGlvRnJhbWVS",
+ "ZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCI8ChlDYXB0dXJlQXVkaW9GcmFt",
+ "ZUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEg0KBWVycm9yGAIgASgJIjAK",
+ "F0NsZWFyQXVkaW9CdWZmZXJSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASAC",
+ "KAQiGgoYQ2xlYXJBdWRpb0J1ZmZlclJlc3BvbnNlIhoKGE5ld0F1ZGlvUmVz",
+ "YW1wbGVyUmVxdWVzdCJSChlOZXdBdWRpb1Jlc2FtcGxlclJlc3BvbnNlEjUK",
+ "CXJlc2FtcGxlchgBIAIoCzIiLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1Jl",
+ "c2FtcGxlciKTAQoXUmVtaXhBbmRSZXNhbXBsZVJlcXVlc3QSGAoQcmVzYW1w",
+ "bGVyX2hhbmRsZRgBIAIoBBIzCgZidWZmZXIYAiACKAsyIy5saXZla2l0LnBy",
+ "b3RvLkF1ZGlvRnJhbWVCdWZmZXJJbmZvEhQKDG51bV9jaGFubmVscxgDIAIo",
+ "DRITCgtzYW1wbGVfcmF0ZRgEIAIoDSJQChhSZW1peEFuZFJlc2FtcGxlUmVz",
+ "cG9uc2USNAoGYnVmZmVyGAEgAigLMiQubGl2ZWtpdC5wcm90by5Pd25lZEF1",
+ "ZGlvRnJhbWVCdWZmZXIilQEKDU5ld0FwbVJlcXVlc3QSHgoWZWNob19jYW5j",
+ "ZWxsZXJfZW5hYmxlZBgBIAIoCBIfChdnYWluX2NvbnRyb2xsZXJfZW5hYmxl",
+ "ZBgCIAIoCBIgChhoaWdoX3Bhc3NfZmlsdGVyX2VuYWJsZWQYAyACKAgSIQoZ",
+ "bm9pc2Vfc3VwcHJlc3Npb25fZW5hYmxlZBgEIAIoCCI2Cg5OZXdBcG1SZXNw",
+ "b25zZRIkCgNhcG0YASACKAsyFy5saXZla2l0LnByb3RvLk93bmVkQXBtIngK",
+ "F0FwbVByb2Nlc3NTdHJlYW1SZXF1ZXN0EhIKCmFwbV9oYW5kbGUYASACKAQS",
+ "EAoIZGF0YV9wdHIYAiACKAQSDAoEc2l6ZRgDIAIoDRITCgtzYW1wbGVfcmF0",
+ "ZRgEIAIoDRIUCgxudW1fY2hhbm5lbHMYBSACKA0iKQoYQXBtUHJvY2Vzc1N0",
+ "cmVhbVJlc3BvbnNlEg0KBWVycm9yGAEgASgJIn8KHkFwbVByb2Nlc3NSZXZl",
+ "cnNlU3RyZWFtUmVxdWVzdBISCgphcG1faGFuZGxlGAEgAigEEhAKCGRhdGFf",
+ "cHRyGAIgAigEEgwKBHNpemUYAyACKA0SEwoLc2FtcGxlX3JhdGUYBCACKA0S",
+ "FAoMbnVtX2NoYW5uZWxzGAUgAigNIjAKH0FwbVByb2Nlc3NSZXZlcnNlU3Ry",
+ "ZWFtUmVzcG9uc2USDQoFZXJyb3IYASABKAkinAIKFk5ld1NveFJlc2FtcGxl",
+ "clJlcXVlc3QSEgoKaW5wdXRfcmF0ZRgBIAIoARITCgtvdXRwdXRfcmF0ZRgC",
+ "IAIoARIUCgxudW1fY2hhbm5lbHMYAyACKA0SPAoPaW5wdXRfZGF0YV90eXBl",
+ "GAQgAigOMiMubGl2ZWtpdC5wcm90by5Tb3hSZXNhbXBsZXJEYXRhVHlwZRI9",
+ "ChBvdXRwdXRfZGF0YV90eXBlGAUgAigOMiMubGl2ZWtpdC5wcm90by5Tb3hS",
+ "ZXNhbXBsZXJEYXRhVHlwZRI3Cg5xdWFsaXR5X3JlY2lwZRgGIAIoDjIfLmxp",
+ "dmVraXQucHJvdG8uU294UXVhbGl0eVJlY2lwZRINCgVmbGFncxgHIAEoDSJs",
+ "ChdOZXdTb3hSZXNhbXBsZXJSZXNwb25zZRI1CglyZXNhbXBsZXIYASABKAsy",
+ "IC5saXZla2l0LnByb3RvLk93bmVkU294UmVzYW1wbGVySAASDwoFZXJyb3IY",
+ "AiABKAlIAEIJCgdtZXNzYWdlIlMKF1B1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0",
+ "EhgKEHJlc2FtcGxlcl9oYW5kbGUYASACKAQSEAoIZGF0YV9wdHIYAiACKAQS",
+ "DAoEc2l6ZRgDIAIoDSJLChhQdXNoU294UmVzYW1wbGVyUmVzcG9uc2USEgoK",
+ "b3V0cHV0X3B0chgBIAIoBBIMCgRzaXplGAIgAigNEg0KBWVycm9yGAMgASgJ",
+ "IjQKGEZsdXNoU294UmVzYW1wbGVyUmVxdWVzdBIYChByZXNhbXBsZXJfaGFu",
+ "ZGxlGAEgAigEIkwKGUZsdXNoU294UmVzYW1wbGVyUmVzcG9uc2USEgoKb3V0",
+ "cHV0X3B0chgBIAIoBBIMCgRzaXplGAIgAigNEg0KBWVycm9yGAMgASgJInAK",
+ "FEF1ZGlvRnJhbWVCdWZmZXJJbmZvEhAKCGRhdGFfcHRyGAEgAigEEhQKDG51",
+ "bV9jaGFubmVscxgCIAIoDRITCgtzYW1wbGVfcmF0ZRgDIAIoDRIbChNzYW1w",
+ "bGVzX3Blcl9jaGFubmVsGAQgAigNInkKFU93bmVkQXVkaW9GcmFtZUJ1ZmZl",
+ "chItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFu",
+ "ZGxlEjEKBGluZm8YAiACKAsyIy5saXZla2l0LnByb3RvLkF1ZGlvRnJhbWVC",
+ "dWZmZXJJbmZvIj8KD0F1ZGlvU3RyZWFtSW5mbxIsCgR0eXBlGAEgAigOMh4u",
+ "bGl2ZWtpdC5wcm90by5BdWRpb1N0cmVhbVR5cGUibwoQT3duZWRBdWRpb1N0",
+ "cmVhbRItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk",
+ "SGFuZGxlEiwKBGluZm8YAiACKAsyHi5saXZla2l0LnByb3RvLkF1ZGlvU3Ry",
+ "ZWFtSW5mbyKfAQoQQXVkaW9TdHJlYW1FdmVudBIVCg1zdHJlYW1faGFuZGxl",
+ "GAEgAigEEjsKDmZyYW1lX3JlY2VpdmVkGAIgASgLMiEubGl2ZWtpdC5wcm90",
+ "by5BdWRpb0ZyYW1lUmVjZWl2ZWRIABIsCgNlb3MYAyABKAsyHS5saXZla2l0",
+ "LnByb3RvLkF1ZGlvU3RyZWFtRU9TSABCCQoHbWVzc2FnZSJJChJBdWRpb0Zy",
+ "YW1lUmVjZWl2ZWQSMwoFZnJhbWUYASACKAsyJC5saXZla2l0LnByb3RvLk93",
+ "bmVkQXVkaW9GcmFtZUJ1ZmZlciIQCg5BdWRpb1N0cmVhbUVPUyJlChJBdWRp",
+ "b1NvdXJjZU9wdGlvbnMSGQoRZWNob19jYW5jZWxsYXRpb24YASACKAgSGQoR",
+ "bm9pc2Vfc3VwcHJlc3Npb24YAiACKAgSGQoRYXV0b19nYWluX2NvbnRyb2wY",
+ "AyACKAgiPwoPQXVkaW9Tb3VyY2VJbmZvEiwKBHR5cGUYAiACKA4yHi5saXZl",
+ "a2l0LnByb3RvLkF1ZGlvU291cmNlVHlwZSJvChBPd25lZEF1ZGlvU291cmNl",
"Ei0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k",
- "bGUSMQoEaW5mbxgCIAIoCzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1",
- "ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1JbmZvEiwKBHR5cGUYASACKA4yHi5s",
- "aXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZSJvChBPd25lZEF1ZGlvU3Ry",
- "ZWFtEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRI",
- "YW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl",
- "YW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUY",
- "ASACKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3Rv",
- "LkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQu",
- "cHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJCgdtZXNzYWdlIkkKEkF1ZGlvRnJh",
- "bWVSZWNlaXZlZBIzCgVmcmFtZRgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3du",
- "ZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1ZGlvU3RyZWFtRU9TImUKEkF1ZGlv",
- "U291cmNlT3B0aW9ucxIZChFlY2hvX2NhbmNlbGxhdGlvbhgBIAIoCBIZChFu",
- "b2lzZV9zdXBwcmVzc2lvbhgCIAIoCBIZChFhdXRvX2dhaW5fY29udHJvbBgD",
- "IAIoCCI/Cg9BdWRpb1NvdXJjZUluZm8SLAoEdHlwZRgCIAIoDjIeLmxpdmVr",
- "aXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBlIm8KEE93bmVkQXVkaW9Tb3VyY2US",
- "LQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRs",
- "ZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZUlu",
- "Zm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZvInUKE093bmVkQXVkaW9SZXNhbXBs",
- "ZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhh",
- "bmRsZRIvCgRpbmZvGAIgAigLMiEubGl2ZWtpdC5wcm90by5BdWRpb1Jlc2Ft",
- "cGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2Ft",
- "cGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk",
- "SGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2Ft",
- "cGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRB",
- "VFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBT",
- "b3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNP",
- "WFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoR",
- "U09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQ",
- "BCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoT",
- "U09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAIS",
- "GAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVD",
- "SVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FV",
- "RElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioK",
- "D0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoC",
- "DUxpdmVLaXQuUHJvdG8="));
+ "bGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VJ",
+ "bmZvIhQKEkF1ZGlvUmVzYW1wbGVySW5mbyJ1ChNPd25lZEF1ZGlvUmVzYW1w",
+ "bGVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRI",
+ "YW5kbGUSLwoEaW5mbxgCIAIoCzIhLmxpdmVraXQucHJvdG8uQXVkaW9SZXNh",
+ "bXBsZXJJbmZvIjkKCE93bmVkQXBtEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVr",
+ "aXQucHJvdG8uRmZpT3duZWRIYW5kbGUiEgoQU294UmVzYW1wbGVySW5mbyJx",
+ "ChFPd25lZFNveFJlc2FtcGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0",
+ "LnByb3RvLkZmaU93bmVkSGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0",
+ "LnByb3RvLlNveFJlc2FtcGxlckluZm8iXAocTG9hZEF1ZGlvRmlsdGVyUGx1",
+ "Z2luUmVxdWVzdBITCgtwbHVnaW5fcGF0aBgBIAIoCRIUCgxkZXBlbmRlbmNp",
+ "ZXMYAiADKAkSEQoJbW9kdWxlX2lkGAMgAigJIi4KHUxvYWRBdWRpb0ZpbHRl",
+ "clBsdWdpblJlc3BvbnNlEg0KBWVycm9yGAEgASgJKkoKFFNveFJlc2FtcGxl",
+ "ckRhdGFUeXBlEhgKFFNPWFJfREFUQVRZUEVfSU5UMTZJEAASGAoUU09YUl9E",
+ "QVRBVFlQRV9JTlQxNlMQASqLAQoQU294UXVhbGl0eVJlY2lwZRIWChJTT1hS",
+ "X1FVQUxJVFlfUVVJQ0sQABIUChBTT1hSX1FVQUxJVFlfTE9XEAESFwoTU09Y",
+ "Ul9RVUFMSVRZX01FRElVTRACEhUKEVNPWFJfUVVBTElUWV9ISUdIEAMSGQoV",
+ "U09YUl9RVUFMSVRZX1ZFUllISUdIEAQqlwEKC1NveEZsYWdCaXRzEhYKElNP",
+ "WFJfUk9MTE9GRl9TTUFMTBAAEhcKE1NPWFJfUk9MTE9GRl9NRURJVU0QARIV",
+ "ChFTT1hSX1JPTExPRkZfTk9ORRACEhgKFFNPWFJfSElHSF9QUkVDX0NMT0NL",
+ "EAMSGQoVU09YUl9ET1VCTEVfUFJFQ0lTSU9OEAQSCwoHU09YUl9WUhAFKkEK",
+ "D0F1ZGlvU3RyZWFtVHlwZRIXChNBVURJT19TVFJFQU1fTkFUSVZFEAASFQoR",
+ "QVVESU9fU1RSRUFNX0hUTUwQASoqCg9BdWRpb1NvdXJjZVR5cGUSFwoTQVVE",
+ "SU9fU09VUkNFX05BVElWRRAAQhCqAg1MaXZlS2l0LlByb3Rv"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.SoxResamplerDataType), typeof(global::LiveKit.Proto.SoxQualityRecipe), typeof(global::LiveKit.Proto.SoxFlagBits), typeof(global::LiveKit.Proto.AudioStreamType), typeof(global::LiveKit.Proto.AudioSourceType), }, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels", "AudioFilterModuleId", "AudioFilterOptions" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamResponse), global::LiveKit.Proto.NewAudioStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels", "AudioFilterModuleId", "AudioFilterOptions" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantResponse), global::LiveKit.Proto.AudioStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels", "QueueSizeMs" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceResponse), global::LiveKit.Proto.NewAudioSourceResponse.Parser, new[]{ "Source" }, null, null, null, null),
@@ -129,6 +148,12 @@ static AudioFrameReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioResamplerResponse), global::LiveKit.Proto.NewAudioResamplerResponse.Parser, new[]{ "Resampler" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleRequest), global::LiveKit.Proto.RemixAndResampleRequest.Parser, new[]{ "ResamplerHandle", "Buffer", "NumChannels", "SampleRate" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleResponse), global::LiveKit.Proto.RemixAndResampleResponse.Parser, new[]{ "Buffer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewApmRequest), global::LiveKit.Proto.NewApmRequest.Parser, new[]{ "EchoCancellerEnabled", "GainControllerEnabled", "HighPassFilterEnabled", "NoiseSuppressionEnabled" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewApmResponse), global::LiveKit.Proto.NewApmResponse.Parser, new[]{ "Apm" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessStreamRequest), global::LiveKit.Proto.ApmProcessStreamRequest.Parser, new[]{ "ApmHandle", "DataPtr", "Size", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessStreamResponse), global::LiveKit.Proto.ApmProcessStreamResponse.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessReverseStreamRequest), global::LiveKit.Proto.ApmProcessReverseStreamRequest.Parser, new[]{ "ApmHandle", "DataPtr", "Size", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessReverseStreamResponse), global::LiveKit.Proto.ApmProcessReverseStreamResponse.Parser, new[]{ "Error" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewSoxResamplerRequest), global::LiveKit.Proto.NewSoxResamplerRequest.Parser, new[]{ "InputRate", "OutputRate", "NumChannels", "InputDataType", "OutputDataType", "QualityRecipe", "Flags" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewSoxResamplerResponse), global::LiveKit.Proto.NewSoxResamplerResponse.Parser, new[]{ "Resampler", "Error" }, new[]{ "Message" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PushSoxResamplerRequest), global::LiveKit.Proto.PushSoxResamplerRequest.Parser, new[]{ "ResamplerHandle", "DataPtr", "Size" }, null, null, null, null),
@@ -147,8 +172,11 @@ static AudioFrameReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioSource), global::LiveKit.Proto.OwnedAudioSource.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioResamplerInfo), global::LiveKit.Proto.AudioResamplerInfo.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioResampler), global::LiveKit.Proto.OwnedAudioResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedApm), global::LiveKit.Proto.OwnedApm.Parser, new[]{ "Handle" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SoxResamplerInfo), global::LiveKit.Proto.SoxResamplerInfo.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedSoxResampler), global::LiveKit.Proto.OwnedSoxResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedSoxResampler), global::LiveKit.Proto.OwnedSoxResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LoadAudioFilterPluginRequest), global::LiveKit.Proto.LoadAudioFilterPluginRequest.Parser, new[]{ "PluginPath", "Dependencies", "ModuleId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LoadAudioFilterPluginResponse), global::LiveKit.Proto.LoadAudioFilterPluginResponse.Parser, new[]{ "Error" }, null, null, null, null)
}));
}
#endregion
@@ -255,6 +283,8 @@ public NewAudioStreamRequest(NewAudioStreamRequest other) : this() {
type_ = other.type_;
sampleRate_ = other.sampleRate_;
numChannels_ = other.numChannels_;
+ audioFilterModuleId_ = other.audioFilterModuleId_;
+ audioFilterOptions_ = other.audioFilterOptions_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -372,6 +402,61 @@ public void ClearNumChannels() {
_hasBits0 &= ~8;
}
+ /// Field number for the "audio_filter_module_id" field.
+ public const int AudioFilterModuleIdFieldNumber = 5;
+ private readonly static string AudioFilterModuleIdDefaultValue = "";
+
+ private string audioFilterModuleId_;
+ ///
+ /// Unique identifier passed in LoadAudioFilterPluginRequest
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterModuleId {
+ get { return audioFilterModuleId_ ?? AudioFilterModuleIdDefaultValue; }
+ set {
+ audioFilterModuleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterModuleId {
+ get { return audioFilterModuleId_ != null; }
+ }
+ /// Clears the value of the "audio_filter_module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterModuleId() {
+ audioFilterModuleId_ = null;
+ }
+
+ /// Field number for the "audio_filter_options" field.
+ public const int AudioFilterOptionsFieldNumber = 6;
+ private readonly static string AudioFilterOptionsDefaultValue = "";
+
+ private string audioFilterOptions_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterOptions {
+ get { return audioFilterOptions_ ?? AudioFilterOptionsDefaultValue; }
+ set {
+ audioFilterOptions_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_options" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterOptions {
+ get { return audioFilterOptions_ != null; }
+ }
+ /// Clears the value of the "audio_filter_options" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterOptions() {
+ audioFilterOptions_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -391,6 +476,8 @@ public bool Equals(NewAudioStreamRequest other) {
if (Type != other.Type) return false;
if (SampleRate != other.SampleRate) return false;
if (NumChannels != other.NumChannels) return false;
+ if (AudioFilterModuleId != other.AudioFilterModuleId) return false;
+ if (AudioFilterOptions != other.AudioFilterOptions) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -402,6 +489,8 @@ public override int GetHashCode() {
if (HasType) hash ^= Type.GetHashCode();
if (HasSampleRate) hash ^= SampleRate.GetHashCode();
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasAudioFilterModuleId) hash ^= AudioFilterModuleId.GetHashCode();
+ if (HasAudioFilterOptions) hash ^= AudioFilterOptions.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -436,6 +525,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(32);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(42);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(50);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -462,6 +559,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(32);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(42);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(50);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -484,6 +589,12 @@ public int CalculateSize() {
if (HasNumChannels) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterOptions);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -508,6 +619,12 @@ public void MergeFrom(NewAudioStreamRequest other) {
if (other.HasNumChannels) {
NumChannels = other.NumChannels;
}
+ if (other.HasAudioFilterModuleId) {
+ AudioFilterModuleId = other.AudioFilterModuleId;
+ }
+ if (other.HasAudioFilterOptions) {
+ AudioFilterOptions = other.AudioFilterOptions;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -543,6 +660,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 42: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 50: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -578,6 +703,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 42: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 50: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
}
@@ -834,6 +967,8 @@ public AudioStreamFromParticipantRequest(AudioStreamFromParticipantRequest other
trackSource_ = other.trackSource_;
sampleRate_ = other.sampleRate_;
numChannels_ = other.numChannels_;
+ audioFilterModuleId_ = other.audioFilterModuleId_;
+ audioFilterOptions_ = other.audioFilterOptions_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -978,6 +1113,58 @@ public void ClearNumChannels() {
_hasBits0 &= ~16;
}
+ /// Field number for the "audio_filter_module_id" field.
+ public const int AudioFilterModuleIdFieldNumber = 7;
+ private readonly static string AudioFilterModuleIdDefaultValue = "";
+
+ private string audioFilterModuleId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterModuleId {
+ get { return audioFilterModuleId_ ?? AudioFilterModuleIdDefaultValue; }
+ set {
+ audioFilterModuleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterModuleId {
+ get { return audioFilterModuleId_ != null; }
+ }
+ /// Clears the value of the "audio_filter_module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterModuleId() {
+ audioFilterModuleId_ = null;
+ }
+
+ /// Field number for the "audio_filter_options" field.
+ public const int AudioFilterOptionsFieldNumber = 8;
+ private readonly static string AudioFilterOptionsDefaultValue = "";
+
+ private string audioFilterOptions_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterOptions {
+ get { return audioFilterOptions_ ?? AudioFilterOptionsDefaultValue; }
+ set {
+ audioFilterOptions_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_options" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterOptions {
+ get { return audioFilterOptions_ != null; }
+ }
+ /// Clears the value of the "audio_filter_options" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterOptions() {
+ audioFilterOptions_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -998,6 +1185,8 @@ public bool Equals(AudioStreamFromParticipantRequest other) {
if (TrackSource != other.TrackSource) return false;
if (SampleRate != other.SampleRate) return false;
if (NumChannels != other.NumChannels) return false;
+ if (AudioFilterModuleId != other.AudioFilterModuleId) return false;
+ if (AudioFilterOptions != other.AudioFilterOptions) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -1010,6 +1199,8 @@ public override int GetHashCode() {
if (HasTrackSource) hash ^= TrackSource.GetHashCode();
if (HasSampleRate) hash ^= SampleRate.GetHashCode();
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasAudioFilterModuleId) hash ^= AudioFilterModuleId.GetHashCode();
+ if (HasAudioFilterOptions) hash ^= AudioFilterOptions.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -1048,6 +1239,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(48);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(58);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(66);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -1078,6 +1277,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(48);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(58);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(66);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -1103,6 +1310,12 @@ public int CalculateSize() {
if (HasNumChannels) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterOptions);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -1130,6 +1343,12 @@ public void MergeFrom(AudioStreamFromParticipantRequest other) {
if (other.HasNumChannels) {
NumChannels = other.NumChannels;
}
+ if (other.HasAudioFilterModuleId) {
+ AudioFilterModuleId = other.AudioFilterModuleId;
+ }
+ if (other.HasAudioFilterOptions) {
+ AudioFilterOptions = other.AudioFilterOptions;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -1169,6 +1388,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 58: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 66: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -1208,6 +1435,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 58: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 66: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
}
@@ -4118,17 +4353,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class NewSoxResamplerRequest : pb::IMessage
+ public sealed partial class NewApmRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewApmRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -4144,7 +4379,7 @@ public sealed partial class NewSoxResamplerRequest : pb::IMessageField number for the "input_rate" field.
- public const int InputRateFieldNumber = 1;
- private readonly static double InputRateDefaultValue = 0D;
+ /// Field number for the "echo_canceller_enabled" field.
+ public const int EchoCancellerEnabledFieldNumber = 1;
+ private readonly static bool EchoCancellerEnabledDefaultValue = false;
- private double inputRate_;
+ private bool echoCancellerEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double InputRate {
- get { if ((_hasBits0 & 1) != 0) { return inputRate_; } else { return InputRateDefaultValue; } }
+ public bool EchoCancellerEnabled {
+ get { if ((_hasBits0 & 1) != 0) { return echoCancellerEnabled_; } else { return EchoCancellerEnabledDefaultValue; } }
set {
_hasBits0 |= 1;
- inputRate_ = value;
+ echoCancellerEnabled_ = value;
}
}
- /// Gets whether the "input_rate" field is set
+ /// Gets whether the "echo_canceller_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasInputRate {
+ public bool HasEchoCancellerEnabled {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "input_rate" field
+ /// Clears the value of the "echo_canceller_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearInputRate() {
+ public void ClearEchoCancellerEnabled() {
_hasBits0 &= ~1;
}
- /// Field number for the "output_rate" field.
- public const int OutputRateFieldNumber = 2;
- private readonly static double OutputRateDefaultValue = 0D;
+ /// Field number for the "gain_controller_enabled" field.
+ public const int GainControllerEnabledFieldNumber = 2;
+ private readonly static bool GainControllerEnabledDefaultValue = false;
- private double outputRate_;
+ private bool gainControllerEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double OutputRate {
- get { if ((_hasBits0 & 2) != 0) { return outputRate_; } else { return OutputRateDefaultValue; } }
+ public bool GainControllerEnabled {
+ get { if ((_hasBits0 & 2) != 0) { return gainControllerEnabled_; } else { return GainControllerEnabledDefaultValue; } }
set {
_hasBits0 |= 2;
- outputRate_ = value;
+ gainControllerEnabled_ = value;
}
}
- /// Gets whether the "output_rate" field is set
+ /// Gets whether the "gain_controller_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputRate {
+ public bool HasGainControllerEnabled {
get { return (_hasBits0 & 2) != 0; }
}
- /// Clears the value of the "output_rate" field
+ /// Clears the value of the "gain_controller_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputRate() {
+ public void ClearGainControllerEnabled() {
_hasBits0 &= ~2;
}
- /// Field number for the "num_channels" field.
- public const int NumChannelsFieldNumber = 3;
- private readonly static uint NumChannelsDefaultValue = 0;
+ /// Field number for the "high_pass_filter_enabled" field.
+ public const int HighPassFilterEnabledFieldNumber = 3;
+ private readonly static bool HighPassFilterEnabledDefaultValue = false;
- private uint numChannels_;
+ private bool highPassFilterEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint NumChannels {
- get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ public bool HighPassFilterEnabled {
+ get { if ((_hasBits0 & 4) != 0) { return highPassFilterEnabled_; } else { return HighPassFilterEnabledDefaultValue; } }
set {
_hasBits0 |= 4;
- numChannels_ = value;
+ highPassFilterEnabled_ = value;
}
}
- /// Gets whether the "num_channels" field is set
+ /// Gets whether the "high_pass_filter_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNumChannels {
+ public bool HasHighPassFilterEnabled {
get { return (_hasBits0 & 4) != 0; }
}
- /// Clears the value of the "num_channels" field
+ /// Clears the value of the "high_pass_filter_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNumChannels() {
+ public void ClearHighPassFilterEnabled() {
_hasBits0 &= ~4;
}
- /// Field number for the "input_data_type" field.
- public const int InputDataTypeFieldNumber = 4;
- private readonly static global::LiveKit.Proto.SoxResamplerDataType InputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+ /// Field number for the "noise_suppression_enabled" field.
+ public const int NoiseSuppressionEnabledFieldNumber = 4;
+ private readonly static bool NoiseSuppressionEnabledDefaultValue = false;
- private global::LiveKit.Proto.SoxResamplerDataType inputDataType_;
+ private bool noiseSuppressionEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxResamplerDataType InputDataType {
- get { if ((_hasBits0 & 8) != 0) { return inputDataType_; } else { return InputDataTypeDefaultValue; } }
+ public bool NoiseSuppressionEnabled {
+ get { if ((_hasBits0 & 8) != 0) { return noiseSuppressionEnabled_; } else { return NoiseSuppressionEnabledDefaultValue; } }
set {
_hasBits0 |= 8;
- inputDataType_ = value;
+ noiseSuppressionEnabled_ = value;
}
}
- /// Gets whether the "input_data_type" field is set
+ /// Gets whether the "noise_suppression_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasInputDataType {
+ public bool HasNoiseSuppressionEnabled {
get { return (_hasBits0 & 8) != 0; }
}
- /// Clears the value of the "input_data_type" field
+ /// Clears the value of the "noise_suppression_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearInputDataType() {
+ public void ClearNoiseSuppressionEnabled() {
_hasBits0 &= ~8;
}
- /// Field number for the "output_data_type" field.
- public const int OutputDataTypeFieldNumber = 5;
- private readonly static global::LiveKit.Proto.SoxResamplerDataType OutputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
-
- private global::LiveKit.Proto.SoxResamplerDataType outputDataType_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxResamplerDataType OutputDataType {
- get { if ((_hasBits0 & 16) != 0) { return outputDataType_; } else { return OutputDataTypeDefaultValue; } }
- set {
- _hasBits0 |= 16;
- outputDataType_ = value;
- }
- }
- /// Gets whether the "output_data_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputDataType {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// Clears the value of the "output_data_type" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputDataType() {
- _hasBits0 &= ~16;
- }
-
- /// Field number for the "quality_recipe" field.
- public const int QualityRecipeFieldNumber = 6;
- private readonly static global::LiveKit.Proto.SoxQualityRecipe QualityRecipeDefaultValue = global::LiveKit.Proto.SoxQualityRecipe.SoxrQualityQuick;
-
- private global::LiveKit.Proto.SoxQualityRecipe qualityRecipe_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxQualityRecipe QualityRecipe {
- get { if ((_hasBits0 & 32) != 0) { return qualityRecipe_; } else { return QualityRecipeDefaultValue; } }
- set {
- _hasBits0 |= 32;
- qualityRecipe_ = value;
- }
- }
- /// Gets whether the "quality_recipe" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasQualityRecipe {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// Clears the value of the "quality_recipe" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearQualityRecipe() {
- _hasBits0 &= ~32;
- }
-
- /// Field number for the "flags" field.
- public const int FlagsFieldNumber = 7;
- private readonly static uint FlagsDefaultValue = 0;
-
- private uint flags_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Flags {
- get { if ((_hasBits0 & 64) != 0) { return flags_; } else { return FlagsDefaultValue; } }
- set {
- _hasBits0 |= 64;
- flags_ = value;
- }
- }
- /// Gets whether the "flags" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasFlags {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// Clears the value of the "flags" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearFlags() {
- _hasBits0 &= ~64;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as NewSoxResamplerRequest);
+ return Equals(other as NewApmRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NewSoxResamplerRequest other) {
+ public bool Equals(NewApmRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InputRate, other.InputRate)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputRate, other.OutputRate)) return false;
- if (NumChannels != other.NumChannels) return false;
- if (InputDataType != other.InputDataType) return false;
- if (OutputDataType != other.OutputDataType) return false;
- if (QualityRecipe != other.QualityRecipe) return false;
- if (Flags != other.Flags) return false;
+ if (EchoCancellerEnabled != other.EchoCancellerEnabled) return false;
+ if (GainControllerEnabled != other.GainControllerEnabled) return false;
+ if (HighPassFilterEnabled != other.HighPassFilterEnabled) return false;
+ if (NoiseSuppressionEnabled != other.NoiseSuppressionEnabled) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -4388,13 +4536,10 @@ public bool Equals(NewSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasInputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InputRate);
- if (HasOutputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputRate);
- if (HasNumChannels) hash ^= NumChannels.GetHashCode();
- if (HasInputDataType) hash ^= InputDataType.GetHashCode();
- if (HasOutputDataType) hash ^= OutputDataType.GetHashCode();
- if (HasQualityRecipe) hash ^= QualityRecipe.GetHashCode();
- if (HasFlags) hash ^= Flags.GetHashCode();
+ if (HasEchoCancellerEnabled) hash ^= EchoCancellerEnabled.GetHashCode();
+ if (HasGainControllerEnabled) hash ^= GainControllerEnabled.GetHashCode();
+ if (HasHighPassFilterEnabled) hash ^= HighPassFilterEnabled.GetHashCode();
+ if (HasNoiseSuppressionEnabled) hash ^= NoiseSuppressionEnabled.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -4413,33 +4558,21 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasInputRate) {
- output.WriteRawTag(9);
- output.WriteDouble(InputRate);
+ if (HasEchoCancellerEnabled) {
+ output.WriteRawTag(8);
+ output.WriteBool(EchoCancellerEnabled);
}
- if (HasOutputRate) {
- output.WriteRawTag(17);
- output.WriteDouble(OutputRate);
+ if (HasGainControllerEnabled) {
+ output.WriteRawTag(16);
+ output.WriteBool(GainControllerEnabled);
}
- if (HasNumChannels) {
+ if (HasHighPassFilterEnabled) {
output.WriteRawTag(24);
- output.WriteUInt32(NumChannels);
+ output.WriteBool(HighPassFilterEnabled);
}
- if (HasInputDataType) {
+ if (HasNoiseSuppressionEnabled) {
output.WriteRawTag(32);
- output.WriteEnum((int) InputDataType);
- }
- if (HasOutputDataType) {
- output.WriteRawTag(40);
- output.WriteEnum((int) OutputDataType);
- }
- if (HasQualityRecipe) {
- output.WriteRawTag(48);
- output.WriteEnum((int) QualityRecipe);
- }
- if (HasFlags) {
- output.WriteRawTag(56);
- output.WriteUInt32(Flags);
+ output.WriteBool(NoiseSuppressionEnabled);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -4451,33 +4584,21 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasInputRate) {
- output.WriteRawTag(9);
- output.WriteDouble(InputRate);
+ if (HasEchoCancellerEnabled) {
+ output.WriteRawTag(8);
+ output.WriteBool(EchoCancellerEnabled);
}
- if (HasOutputRate) {
- output.WriteRawTag(17);
- output.WriteDouble(OutputRate);
+ if (HasGainControllerEnabled) {
+ output.WriteRawTag(16);
+ output.WriteBool(GainControllerEnabled);
}
- if (HasNumChannels) {
+ if (HasHighPassFilterEnabled) {
output.WriteRawTag(24);
- output.WriteUInt32(NumChannels);
+ output.WriteBool(HighPassFilterEnabled);
}
- if (HasInputDataType) {
+ if (HasNoiseSuppressionEnabled) {
output.WriteRawTag(32);
- output.WriteEnum((int) InputDataType);
- }
- if (HasOutputDataType) {
- output.WriteRawTag(40);
- output.WriteEnum((int) OutputDataType);
- }
- if (HasQualityRecipe) {
- output.WriteRawTag(48);
- output.WriteEnum((int) QualityRecipe);
- }
- if (HasFlags) {
- output.WriteRawTag(56);
- output.WriteUInt32(Flags);
+ output.WriteBool(NoiseSuppressionEnabled);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -4489,26 +4610,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasInputRate) {
- size += 1 + 8;
- }
- if (HasOutputRate) {
- size += 1 + 8;
- }
- if (HasNumChannels) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
- }
- if (HasInputDataType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputDataType);
+ if (HasEchoCancellerEnabled) {
+ size += 1 + 1;
}
- if (HasOutputDataType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputDataType);
+ if (HasGainControllerEnabled) {
+ size += 1 + 1;
}
- if (HasQualityRecipe) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityRecipe);
+ if (HasHighPassFilterEnabled) {
+ size += 1 + 1;
}
- if (HasFlags) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flags);
+ if (HasNoiseSuppressionEnabled) {
+ size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -4518,30 +4630,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NewSoxResamplerRequest other) {
+ public void MergeFrom(NewApmRequest other) {
if (other == null) {
return;
}
- if (other.HasInputRate) {
- InputRate = other.InputRate;
- }
- if (other.HasOutputRate) {
- OutputRate = other.OutputRate;
- }
- if (other.HasNumChannels) {
- NumChannels = other.NumChannels;
- }
- if (other.HasInputDataType) {
- InputDataType = other.InputDataType;
+ if (other.HasEchoCancellerEnabled) {
+ EchoCancellerEnabled = other.EchoCancellerEnabled;
}
- if (other.HasOutputDataType) {
- OutputDataType = other.OutputDataType;
+ if (other.HasGainControllerEnabled) {
+ GainControllerEnabled = other.GainControllerEnabled;
}
- if (other.HasQualityRecipe) {
- QualityRecipe = other.QualityRecipe;
+ if (other.HasHighPassFilterEnabled) {
+ HighPassFilterEnabled = other.HighPassFilterEnabled;
}
- if (other.HasFlags) {
- Flags = other.Flags;
+ if (other.HasNoiseSuppressionEnabled) {
+ NoiseSuppressionEnabled = other.NoiseSuppressionEnabled;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -4562,32 +4665,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 9: {
- InputRate = input.ReadDouble();
+ case 8: {
+ EchoCancellerEnabled = input.ReadBool();
break;
}
- case 17: {
- OutputRate = input.ReadDouble();
+ case 16: {
+ GainControllerEnabled = input.ReadBool();
break;
}
case 24: {
- NumChannels = input.ReadUInt32();
+ HighPassFilterEnabled = input.ReadBool();
break;
}
case 32: {
- InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 40: {
- OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 48: {
- QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
- break;
- }
- case 56: {
- Flags = input.ReadUInt32();
+ NoiseSuppressionEnabled = input.ReadBool();
break;
}
}
@@ -4609,32 +4700,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 9: {
- InputRate = input.ReadDouble();
+ case 8: {
+ EchoCancellerEnabled = input.ReadBool();
break;
}
- case 17: {
- OutputRate = input.ReadDouble();
+ case 16: {
+ GainControllerEnabled = input.ReadBool();
break;
}
case 24: {
- NumChannels = input.ReadUInt32();
+ HighPassFilterEnabled = input.ReadBool();
break;
}
case 32: {
- InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 40: {
- OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 48: {
- QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
- break;
- }
- case 56: {
- Flags = input.ReadUInt32();
+ NoiseSuppressionEnabled = input.ReadBool();
break;
}
}
@@ -4645,16 +4724,16 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class NewSoxResamplerResponse : pb::IMessage
+ public sealed partial class NewApmResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewApmResponse());
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)]
@@ -4670,7 +4749,7 @@ public sealed partial class NewSoxResamplerResponse : pb::IMessageField number for the "resampler" field.
- public const int ResamplerFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.OwnedSoxResampler Resampler {
- get { return messageCase_ == MessageOneofCase.Resampler ? (global::LiveKit.Proto.OwnedSoxResampler) message_ : null; }
- set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Resampler;
- }
+ public NewApmResponse Clone() {
+ return new NewApmResponse(this);
}
- /// Field number for the "error" field.
- public const int ErrorFieldNumber = 2;
+ /// Field number for the "apm" field.
+ public const int ApmFieldNumber = 1;
+ private global::LiveKit.Proto.OwnedApm apm_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Error {
- get { return HasError ? (string) message_ : ""; }
+ public global::LiveKit.Proto.OwnedApm Apm {
+ get { return apm_; }
set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- messageCase_ = MessageOneofCase.Error;
- }
- }
- /// Gets whether the "error" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasError {
- get { return messageCase_ == MessageOneofCase.Error; }
- }
- /// Clears the value of the oneof if it's currently set to "error"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearError() {
- if (HasError) {
- ClearMessage();
+ apm_ = value;
}
}
- private object message_;
- /// Enum of possible cases for the "message" oneof.
- public enum MessageOneofCase {
- None = 0,
- Resampler = 1,
- Error = 2,
- }
- private MessageOneofCase messageCase_ = MessageOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public MessageOneofCase MessageCase {
- get { return messageCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearMessage() {
- messageCase_ = MessageOneofCase.None;
- message_ = null;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as NewSoxResamplerResponse);
+ return Equals(other as NewApmResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NewSoxResamplerResponse other) {
+ public bool Equals(NewApmResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Resampler, other.Resampler)) return false;
- if (Error != other.Error) return false;
- if (MessageCase != other.MessageCase) return false;
+ if (!object.Equals(Apm, other.Apm)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -4781,9 +4803,7 @@ public bool Equals(NewSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (messageCase_ == MessageOneofCase.Resampler) hash ^= Resampler.GetHashCode();
- if (HasError) hash ^= Error.GetHashCode();
- hash ^= (int) messageCase_;
+ if (apm_ != null) hash ^= Apm.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -4802,13 +4822,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (messageCase_ == MessageOneofCase.Resampler) {
+ if (apm_ != null) {
output.WriteRawTag(10);
- output.WriteMessage(Resampler);
- }
- if (HasError) {
- output.WriteRawTag(18);
- output.WriteString(Error);
+ output.WriteMessage(Apm);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -4820,13 +4836,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 (messageCase_ == MessageOneofCase.Resampler) {
+ if (apm_ != null) {
output.WriteRawTag(10);
- output.WriteMessage(Resampler);
- }
- if (HasError) {
- output.WriteRawTag(18);
- output.WriteString(Error);
+ output.WriteMessage(Apm);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -4838,11 +4850,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (messageCase_ == MessageOneofCase.Resampler) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler);
- }
- if (HasError) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ if (apm_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Apm);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -4852,22 +4861,16 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NewSoxResamplerResponse other) {
+ public void MergeFrom(NewApmResponse other) {
if (other == null) {
return;
}
- switch (other.MessageCase) {
- case MessageOneofCase.Resampler:
- if (Resampler == null) {
- Resampler = new global::LiveKit.Proto.OwnedSoxResampler();
- }
- Resampler.MergeFrom(other.Resampler);
- break;
- case MessageOneofCase.Error:
- Error = other.Error;
- break;
+ if (other.apm_ != null) {
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
+ }
+ Apm.MergeFrom(other.Apm);
}
-
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -4888,16 +4891,10 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
- global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
- if (messageCase_ == MessageOneofCase.Resampler) {
- subBuilder.MergeFrom(Resampler);
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
}
- input.ReadMessage(subBuilder);
- Resampler = subBuilder;
- break;
- }
- case 18: {
- Error = input.ReadString();
+ input.ReadMessage(Apm);
break;
}
}
@@ -4920,16 +4917,10 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
- global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
- if (messageCase_ == MessageOneofCase.Resampler) {
- subBuilder.MergeFrom(Resampler);
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
}
- input.ReadMessage(subBuilder);
- Resampler = subBuilder;
- break;
- }
- case 18: {
- Error = input.ReadString();
+ input.ReadMessage(Apm);
break;
}
}
@@ -4940,17 +4931,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class PushSoxResamplerRequest : pb::IMessage
+ public sealed partial class ApmProcessStreamRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessStreamRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -4966,7 +4957,7 @@ public sealed partial class PushSoxResamplerRequest : pb::IMessageField number for the "resampler_handle" field.
- public const int ResamplerHandleFieldNumber = 1;
- private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+ /// Field number for the "apm_handle" field.
+ public const int ApmHandleFieldNumber = 1;
+ private readonly static ulong ApmHandleDefaultValue = 0UL;
- private ulong resamplerHandle_;
+ private ulong apmHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong ResamplerHandle {
- get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ public ulong ApmHandle {
+ get { if ((_hasBits0 & 1) != 0) { return apmHandle_; } else { return ApmHandleDefaultValue; } }
set {
_hasBits0 |= 1;
- resamplerHandle_ = value;
+ apmHandle_ = value;
}
}
- /// Gets whether the "resampler_handle" field is set
+ /// Gets whether the "apm_handle" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasResamplerHandle {
+ public bool HasApmHandle {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "resampler_handle" field
+ /// Clears the value of the "apm_handle" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearResamplerHandle() {
+ public void ClearApmHandle() {
_hasBits0 &= ~1;
}
@@ -5021,7 +5014,7 @@ public void ClearResamplerHandle() {
private ulong dataPtr_;
///
- /// *const i16
+ /// *mut i16
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5075,24 +5068,80 @@ public void ClearSize() {
_hasBits0 &= ~4;
}
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 4;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 8) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 5;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 16) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~16;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as PushSoxResamplerRequest);
+ return Equals(other as ApmProcessStreamRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(PushSoxResamplerRequest other) {
+ public bool Equals(ApmProcessStreamRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (ApmHandle != other.ApmHandle) return false;
if (DataPtr != other.DataPtr) return false;
if (Size != other.Size) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (NumChannels != other.NumChannels) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5100,9 +5149,11 @@ public bool Equals(PushSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (HasApmHandle) hash ^= ApmHandle.GetHashCode();
if (HasDataPtr) hash ^= DataPtr.GetHashCode();
if (HasSize) hash ^= Size.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5121,9 +5172,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasResamplerHandle) {
+ if (HasApmHandle) {
output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ output.WriteUInt64(ApmHandle);
}
if (HasDataPtr) {
output.WriteRawTag(16);
@@ -5133,6 +5184,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(24);
output.WriteUInt32(Size);
}
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -5143,9 +5202,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 (HasResamplerHandle) {
+ if (HasApmHandle) {
output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ output.WriteUInt64(ApmHandle);
}
if (HasDataPtr) {
output.WriteRawTag(16);
@@ -5155,6 +5214,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(24);
output.WriteUInt32(Size);
}
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -5165,8 +5232,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasResamplerHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ if (HasApmHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApmHandle);
}
if (HasDataPtr) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
@@ -5174,6 +5241,12 @@ public int CalculateSize() {
if (HasSize) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
}
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -5182,12 +5255,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(PushSoxResamplerRequest other) {
+ public void MergeFrom(ApmProcessStreamRequest other) {
if (other == null) {
return;
}
- if (other.HasResamplerHandle) {
- ResamplerHandle = other.ResamplerHandle;
+ if (other.HasApmHandle) {
+ ApmHandle = other.ApmHandle;
}
if (other.HasDataPtr) {
DataPtr = other.DataPtr;
@@ -5195,6 +5268,12 @@ public void MergeFrom(PushSoxResamplerRequest other) {
if (other.HasSize) {
Size = other.Size;
}
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -5215,7 +5294,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- ResamplerHandle = input.ReadUInt64();
+ ApmHandle = input.ReadUInt64();
break;
}
case 16: {
@@ -5226,6 +5305,14 @@ public void MergeFrom(pb::CodedInputStream input) {
Size = input.ReadUInt32();
break;
}
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
}
}
#endif
@@ -5246,7 +5333,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- ResamplerHandle = input.ReadUInt64();
+ ApmHandle = input.ReadUInt64();
break;
}
case 16: {
@@ -5257,6 +5344,14 @@ public void MergeFrom(pb::CodedInputStream input) {
Size = input.ReadUInt32();
break;
}
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
}
}
}
@@ -5265,17 +5360,16 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class PushSoxResamplerResponse : pb::IMessage
+ public sealed partial class ApmProcessStreamResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessStreamResponse());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5291,7 +5385,7 @@ public sealed partial class PushSoxResamplerResponse : pb::IMessageField number for the "output_ptr" field.
- public const int OutputPtrFieldNumber = 1;
- private readonly static ulong OutputPtrDefaultValue = 0UL;
-
- private ulong outputPtr_;
- ///
- /// *const i16 (could be null)
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong OutputPtr {
- get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
- set {
- _hasBits0 |= 1;
- outputPtr_ = value;
- }
- }
- /// Gets whether the "output_ptr" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputPtr {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "output_ptr" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputPtr() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "size" field.
- public const int SizeFieldNumber = 2;
- private readonly static uint SizeDefaultValue = 0;
-
- private uint size_;
- ///
- /// in bytes
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Size {
- get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- size_ = value;
- }
- }
- /// Gets whether the "size" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSize {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "size" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSize() {
- _hasBits0 &= ~2;
+ public ApmProcessStreamResponse Clone() {
+ return new ApmProcessStreamResponse(this);
}
/// Field number for the "error" field.
- public const int ErrorFieldNumber = 3;
+ public const int ErrorFieldNumber = 1;
private readonly static string ErrorDefaultValue = "";
private string error_;
@@ -5402,20 +5433,18 @@ public void ClearError() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as PushSoxResamplerResponse);
+ return Equals(other as ApmProcessStreamResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(PushSoxResamplerResponse other) {
+ public bool Equals(ApmProcessStreamResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (OutputPtr != other.OutputPtr) return false;
- if (Size != other.Size) return false;
if (Error != other.Error) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5424,8 +5453,6 @@ public bool Equals(PushSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
- if (HasSize) hash ^= Size.GetHashCode();
if (HasError) hash ^= Error.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
@@ -5445,16 +5472,8 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasOutputPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
if (HasError) {
- output.WriteRawTag(26);
+ output.WriteRawTag(10);
output.WriteString(Error);
}
if (_unknownFields != null) {
@@ -5467,16 +5486,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasOutputPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
if (HasError) {
- output.WriteRawTag(26);
+ output.WriteRawTag(10);
output.WriteString(Error);
}
if (_unknownFields != null) {
@@ -5489,12 +5500,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasOutputPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
- }
- if (HasSize) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
- }
if (HasError) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
}
@@ -5506,16 +5511,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(PushSoxResamplerResponse other) {
+ public void MergeFrom(ApmProcessStreamResponse other) {
if (other == null) {
return;
}
- if (other.HasOutputPtr) {
- OutputPtr = other.OutputPtr;
- }
- if (other.HasSize) {
- Size = other.Size;
- }
if (other.HasError) {
Error = other.Error;
}
@@ -5538,15 +5537,7 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
+ case 10: {
Error = input.ReadString();
break;
}
@@ -5569,15 +5560,7 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
+ case 10: {
Error = input.ReadString();
break;
}
@@ -5589,17 +5572,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class FlushSoxResamplerRequest : pb::IMessage
+ public sealed partial class ApmProcessReverseStreamRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessReverseStreamRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5615,7 +5598,7 @@ public sealed partial class FlushSoxResamplerRequest : pb::IMessageField number for the "resampler_handle" field.
- public const int ResamplerHandleFieldNumber = 1;
- private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+ /// Field number for the "apm_handle" field.
+ public const int ApmHandleFieldNumber = 1;
+ private readonly static ulong ApmHandleDefaultValue = 0UL;
- private ulong resamplerHandle_;
+ private ulong apmHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong ResamplerHandle {
- get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ public ulong ApmHandle {
+ get { if ((_hasBits0 & 1) != 0) { return apmHandle_; } else { return ApmHandleDefaultValue; } }
set {
_hasBits0 |= 1;
- resamplerHandle_ = value;
+ apmHandle_ = value;
}
}
- /// Gets whether the "resampler_handle" field is set
+ /// Gets whether the "apm_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasApmHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "apm_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearApmHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 2;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *mut i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 3;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 4;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 8) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 5;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 16) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~16;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmProcessReverseStreamRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmProcessReverseStreamRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ApmHandle != other.ApmHandle) return false;
+ if (DataPtr != other.DataPtr) return false;
+ if (Size != other.Size) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (NumChannels != other.NumChannels) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasApmHandle) hash ^= ApmHandle.GetHashCode();
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasApmHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApmHandle);
+ }
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmProcessReverseStreamRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasApmHandle) {
+ ApmHandle = other.ApmHandle;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ApmProcessReverseStreamResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessReverseStreamResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[20]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse(ApmProcessReverseStreamResponse other) : this() {
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse Clone() {
+ return new ApmProcessReverseStreamResponse(this);
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 1;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmProcessReverseStreamResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmProcessReverseStreamResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmProcessReverseStreamResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class NewSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[21]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest(NewSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ inputRate_ = other.inputRate_;
+ outputRate_ = other.outputRate_;
+ numChannels_ = other.numChannels_;
+ inputDataType_ = other.inputDataType_;
+ outputDataType_ = other.outputDataType_;
+ qualityRecipe_ = other.qualityRecipe_;
+ flags_ = other.flags_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest Clone() {
+ return new NewSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "input_rate" field.
+ public const int InputRateFieldNumber = 1;
+ private readonly static double InputRateDefaultValue = 0D;
+
+ private double inputRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double InputRate {
+ get { if ((_hasBits0 & 1) != 0) { return inputRate_; } else { return InputRateDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ inputRate_ = value;
+ }
+ }
+ /// Gets whether the "input_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasInputRate {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "input_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearInputRate() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "output_rate" field.
+ public const int OutputRateFieldNumber = 2;
+ private readonly static double OutputRateDefaultValue = 0D;
+
+ private double outputRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double OutputRate {
+ get { if ((_hasBits0 & 2) != 0) { return outputRate_; } else { return OutputRateDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ outputRate_ = value;
+ }
+ }
+ /// Gets whether the "output_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputRate {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "output_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputRate() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 3;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "input_data_type" field.
+ public const int InputDataTypeFieldNumber = 4;
+ private readonly static global::LiveKit.Proto.SoxResamplerDataType InputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+
+ private global::LiveKit.Proto.SoxResamplerDataType inputDataType_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxResamplerDataType InputDataType {
+ get { if ((_hasBits0 & 8) != 0) { return inputDataType_; } else { return InputDataTypeDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ inputDataType_ = value;
+ }
+ }
+ /// Gets whether the "input_data_type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasInputDataType {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "input_data_type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearInputDataType() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "output_data_type" field.
+ public const int OutputDataTypeFieldNumber = 5;
+ private readonly static global::LiveKit.Proto.SoxResamplerDataType OutputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+
+ private global::LiveKit.Proto.SoxResamplerDataType outputDataType_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxResamplerDataType OutputDataType {
+ get { if ((_hasBits0 & 16) != 0) { return outputDataType_; } else { return OutputDataTypeDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ outputDataType_ = value;
+ }
+ }
+ /// Gets whether the "output_data_type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputDataType {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "output_data_type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputDataType() {
+ _hasBits0 &= ~16;
+ }
+
+ /// Field number for the "quality_recipe" field.
+ public const int QualityRecipeFieldNumber = 6;
+ private readonly static global::LiveKit.Proto.SoxQualityRecipe QualityRecipeDefaultValue = global::LiveKit.Proto.SoxQualityRecipe.SoxrQualityQuick;
+
+ private global::LiveKit.Proto.SoxQualityRecipe qualityRecipe_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxQualityRecipe QualityRecipe {
+ get { if ((_hasBits0 & 32) != 0) { return qualityRecipe_; } else { return QualityRecipeDefaultValue; } }
+ set {
+ _hasBits0 |= 32;
+ qualityRecipe_ = value;
+ }
+ }
+ /// Gets whether the "quality_recipe" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasQualityRecipe {
+ get { return (_hasBits0 & 32) != 0; }
+ }
+ /// Clears the value of the "quality_recipe" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearQualityRecipe() {
+ _hasBits0 &= ~32;
+ }
+
+ /// Field number for the "flags" field.
+ public const int FlagsFieldNumber = 7;
+ private readonly static uint FlagsDefaultValue = 0;
+
+ private uint flags_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Flags {
+ get { if ((_hasBits0 & 64) != 0) { return flags_; } else { return FlagsDefaultValue; } }
+ set {
+ _hasBits0 |= 64;
+ flags_ = value;
+ }
+ }
+ /// Gets whether the "flags" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasFlags {
+ get { return (_hasBits0 & 64) != 0; }
+ }
+ /// Clears the value of the "flags" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearFlags() {
+ _hasBits0 &= ~64;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as NewSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(NewSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InputRate, other.InputRate)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputRate, other.OutputRate)) return false;
+ if (NumChannels != other.NumChannels) return false;
+ if (InputDataType != other.InputDataType) return false;
+ if (OutputDataType != other.OutputDataType) return false;
+ if (QualityRecipe != other.QualityRecipe) return false;
+ if (Flags != other.Flags) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasInputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InputRate);
+ if (HasOutputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputRate);
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasInputDataType) hash ^= InputDataType.GetHashCode();
+ if (HasOutputDataType) hash ^= OutputDataType.GetHashCode();
+ if (HasQualityRecipe) hash ^= QualityRecipe.GetHashCode();
+ if (HasFlags) hash ^= Flags.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ 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 (HasInputRate) {
+ output.WriteRawTag(9);
+ output.WriteDouble(InputRate);
+ }
+ if (HasOutputRate) {
+ output.WriteRawTag(17);
+ output.WriteDouble(OutputRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasInputDataType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ output.WriteRawTag(40);
+ output.WriteEnum((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ output.WriteRawTag(56);
+ output.WriteUInt32(Flags);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #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 (HasInputRate) {
+ output.WriteRawTag(9);
+ output.WriteDouble(InputRate);
+ }
+ if (HasOutputRate) {
+ output.WriteRawTag(17);
+ output.WriteDouble(OutputRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasInputDataType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ output.WriteRawTag(40);
+ output.WriteEnum((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ output.WriteRawTag(56);
+ output.WriteUInt32(Flags);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasInputRate) {
+ size += 1 + 8;
+ }
+ if (HasOutputRate) {
+ size += 1 + 8;
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (HasInputDataType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flags);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(NewSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasInputRate) {
+ InputRate = other.InputRate;
+ }
+ if (other.HasOutputRate) {
+ OutputRate = other.OutputRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ if (other.HasInputDataType) {
+ InputDataType = other.InputDataType;
+ }
+ if (other.HasOutputDataType) {
+ OutputDataType = other.OutputDataType;
+ }
+ if (other.HasQualityRecipe) {
+ QualityRecipe = other.QualityRecipe;
+ }
+ if (other.HasFlags) {
+ Flags = other.Flags;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 9: {
+ InputRate = input.ReadDouble();
+ break;
+ }
+ case 17: {
+ OutputRate = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 40: {
+ OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 48: {
+ QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Flags = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 9: {
+ InputRate = input.ReadDouble();
+ break;
+ }
+ case 17: {
+ OutputRate = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 40: {
+ OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 48: {
+ QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Flags = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class NewSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse(NewSoxResamplerResponse other) : this() {
+ switch (other.MessageCase) {
+ case MessageOneofCase.Resampler:
+ Resampler = other.Resampler.Clone();
+ break;
+ case MessageOneofCase.Error:
+ Error = other.Error;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse Clone() {
+ return new NewSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "resampler" field.
+ public const int ResamplerFieldNumber = 1;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.OwnedSoxResampler Resampler {
+ get { return messageCase_ == MessageOneofCase.Resampler ? (global::LiveKit.Proto.OwnedSoxResampler) message_ : null; }
+ set {
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Resampler;
+ }
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 2;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return HasError ? (string) message_ : ""; }
+ set {
+ message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ messageCase_ = MessageOneofCase.Error;
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return messageCase_ == MessageOneofCase.Error; }
+ }
+ /// Clears the value of the oneof if it's currently set to "error"
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ if (HasError) {
+ ClearMessage();
+ }
+ }
+
+ private object message_;
+ /// Enum of possible cases for the "message" oneof.
+ public enum MessageOneofCase {
+ None = 0,
+ Resampler = 1,
+ Error = 2,
+ }
+ private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOneofCase MessageCase {
+ get { return messageCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearMessage() {
+ messageCase_ = MessageOneofCase.None;
+ message_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as NewSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(NewSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Resampler, other.Resampler)) return false;
+ if (Error != other.Error) return false;
+ if (MessageCase != other.MessageCase) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (messageCase_ == MessageOneofCase.Resampler) hash ^= Resampler.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ hash ^= (int) messageCase_;
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Resampler);
+ }
+ if (HasError) {
+ output.WriteRawTag(18);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Resampler);
+ }
+ if (HasError) {
+ output.WriteRawTag(18);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(NewSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ switch (other.MessageCase) {
+ case MessageOneofCase.Resampler:
+ if (Resampler == null) {
+ Resampler = new global::LiveKit.Proto.OwnedSoxResampler();
+ }
+ Resampler.MergeFrom(other.Resampler);
+ break;
+ case MessageOneofCase.Error:
+ Error = other.Error;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ subBuilder.MergeFrom(Resampler);
+ }
+ input.ReadMessage(subBuilder);
+ Resampler = subBuilder;
+ break;
+ }
+ case 18: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ subBuilder.MergeFrom(Resampler);
+ }
+ input.ReadMessage(subBuilder);
+ Resampler = subBuilder;
+ break;
+ }
+ case 18: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class PushSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[23]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest(PushSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ resamplerHandle_ = other.resamplerHandle_;
+ dataPtr_ = other.dataPtr_;
+ size_ = other.size_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest Clone() {
+ return new PushSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "resampler_handle" field.
+ public const int ResamplerHandleFieldNumber = 1;
+ private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+
+ private ulong resamplerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ResamplerHandle {
+ get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ resamplerHandle_ = value;
+ }
+ }
+ /// Gets whether the "resampler_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasResamplerHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "resampler_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearResamplerHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 2;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *const i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 3;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~4;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PushSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PushSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (DataPtr != other.DataPtr) return false;
+ if (Size != other.Size) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasResamplerHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PushSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasResamplerHandle) {
+ ResamplerHandle = other.ResamplerHandle;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class PushSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[24]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse(PushSoxResamplerResponse other) : this() {
+ _hasBits0 = other._hasBits0;
+ outputPtr_ = other.outputPtr_;
+ size_ = other.size_;
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse Clone() {
+ return new PushSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "output_ptr" field.
+ public const int OutputPtrFieldNumber = 1;
+ private readonly static ulong OutputPtrDefaultValue = 0UL;
+
+ private ulong outputPtr_;
+ ///
+ /// *const i16 (could be null)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong OutputPtr {
+ get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ outputPtr_ = value;
+ }
+ }
+ /// Gets whether the "output_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "output_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 2;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 3;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PushSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PushSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (OutputPtr != other.OutputPtr) return false;
+ if (Size != other.Size) return false;
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasOutputPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PushSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasOutputPtr) {
+ OutputPtr = other.OutputPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class FlushSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[25]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest(FlushSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ resamplerHandle_ = other.resamplerHandle_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest Clone() {
+ return new FlushSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "resampler_handle" field.
+ public const int ResamplerHandleFieldNumber = 1;
+ private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+
+ private ulong resamplerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ResamplerHandle {
+ get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ resamplerHandle_ = value;
+ }
+ }
+ /// Gets whether the "resampler_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasResamplerHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "resampler_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearResamplerHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as FlushSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(FlushSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ResamplerHandle != other.ResamplerHandle) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasResamplerHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(FlushSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasResamplerHandle) {
+ ResamplerHandle = other.ResamplerHandle;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class FlushSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[26]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse(FlushSoxResamplerResponse other) : this() {
+ _hasBits0 = other._hasBits0;
+ outputPtr_ = other.outputPtr_;
+ size_ = other.size_;
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse Clone() {
+ return new FlushSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "output_ptr" field.
+ public const int OutputPtrFieldNumber = 1;
+ private readonly static ulong OutputPtrDefaultValue = 0UL;
+
+ private ulong outputPtr_;
+ ///
+ /// *const i16 (could be null)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong OutputPtr {
+ get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ outputPtr_ = value;
+ }
+ }
+ /// Gets whether the "output_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "output_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 2;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 3;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as FlushSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(FlushSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (OutputPtr != other.OutputPtr) return false;
+ if (Size != other.Size) return false;
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasOutputPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(FlushSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasOutputPtr) {
+ OutputPtr = other.OutputPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class AudioFrameBufferInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[27]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo(AudioFrameBufferInfo other) : this() {
+ _hasBits0 = other._hasBits0;
+ dataPtr_ = other.dataPtr_;
+ numChannels_ = other.numChannels_;
+ sampleRate_ = other.sampleRate_;
+ samplesPerChannel_ = other.samplesPerChannel_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo Clone() {
+ return new AudioFrameBufferInfo(this);
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 1;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *const i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 2;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 3;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "samples_per_channel" field.
+ public const int SamplesPerChannelFieldNumber = 4;
+ private readonly static uint SamplesPerChannelDefaultValue = 0;
+
+ private uint samplesPerChannel_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SamplesPerChannel {
+ get { if ((_hasBits0 & 8) != 0) { return samplesPerChannel_; } else { return SamplesPerChannelDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ samplesPerChannel_ = value;
+ }
+ }
+ /// Gets whether the "samples_per_channel" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSamplesPerChannel {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "samples_per_channel" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSamplesPerChannel() {
+ _hasBits0 &= ~8;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AudioFrameBufferInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AudioFrameBufferInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (DataPtr != other.DataPtr) return false;
+ if (NumChannels != other.NumChannels) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (SamplesPerChannel != other.SamplesPerChannel) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasSamplesPerChannel) hash ^= SamplesPerChannel.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasDataPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasDataPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AudioFrameBufferInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasSamplesPerChannel) {
+ SamplesPerChannel = other.SamplesPerChannel;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 24: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SamplesPerChannel = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 24: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SamplesPerChannel = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class OwnedAudioFrameBuffer : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[28]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer(OwnedAudioFrameBuffer other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer Clone() {
+ return new OwnedAudioFrameBuffer(this);
+ }
+
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasResamplerHandle {
- get { return (_hasBits0 & 1) != 0; }
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
+ set {
+ handle_ = value;
+ }
}
- /// Clears the value of the "resampler_handle" field
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioFrameBufferInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearResamplerHandle() {
- _hasBits0 &= ~1;
+ public global::LiveKit.Proto.AudioFrameBufferInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as FlushSoxResamplerRequest);
+ return Equals(other as OwnedAudioFrameBuffer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(FlushSoxResamplerRequest other) {
+ public bool Equals(OwnedAudioFrameBuffer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5685,7 +8690,8 @@ public bool Equals(FlushSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5704,9 +8710,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasResamplerHandle) {
- output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -5718,9 +8728,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 (HasResamplerHandle) {
- output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -5732,8 +8746,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasResamplerHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -5743,12 +8760,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(FlushSoxResamplerRequest other) {
+ public void MergeFrom(OwnedAudioFrameBuffer other) {
if (other == null) {
return;
}
- if (other.HasResamplerHandle) {
- ResamplerHandle = other.ResamplerHandle;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -5769,8 +8795,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- ResamplerHandle = input.ReadUInt64();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -5792,8 +8828,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- ResamplerHandle = input.ReadUInt64();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -5804,22 +8850,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class FlushSoxResamplerResponse : pb::IMessage
+ public sealed partial class AudioStreamInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[20]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[29]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -5830,7 +8876,7 @@ public sealed partial class FlushSoxResamplerResponse : pb::IMessageField number for the "output_ptr" field.
- public const int OutputPtrFieldNumber = 1;
- private readonly static ulong OutputPtrDefaultValue = 0UL;
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative;
- private ulong outputPtr_;
- ///
- /// *const i16 (could be null)
- ///
+ private global::LiveKit.Proto.AudioStreamType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong OutputPtr {
- get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ public global::LiveKit.Proto.AudioStreamType Type {
+ get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
_hasBits0 |= 1;
- outputPtr_ = value;
+ type_ = value;
}
}
- /// Gets whether the "output_ptr" field is set
+ /// Gets whether the "type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputPtr {
+ public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "output_ptr" field
+ /// Clears the value of the "type" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputPtr() {
+ public void ClearType() {
_hasBits0 &= ~1;
}
- /// Field number for the "size" field.
- public const int SizeFieldNumber = 2;
- private readonly static uint SizeDefaultValue = 0;
-
- private uint size_;
- ///
- /// in bytes
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Size {
- get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- size_ = value;
- }
- }
- /// Gets whether the "size" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSize {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "size" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSize() {
- _hasBits0 &= ~2;
- }
-
- /// Field number for the "error" field.
- public const int ErrorFieldNumber = 3;
- private readonly static string ErrorDefaultValue = "";
-
- private string error_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Error {
- get { return error_ ?? ErrorDefaultValue; }
- set {
- error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// Gets whether the "error" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasError {
- get { return error_ != null; }
- }
- /// Clears the value of the "error" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearError() {
- error_ = null;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as FlushSoxResamplerResponse);
+ return Equals(other as AudioStreamInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(FlushSoxResamplerResponse other) {
+ public bool Equals(AudioStreamInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (OutputPtr != other.OutputPtr) return false;
- if (Size != other.Size) return false;
- if (Error != other.Error) return false;
+ if (Type != other.Type) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5963,9 +8946,7 @@ public bool Equals(FlushSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
- if (HasSize) hash ^= Size.GetHashCode();
- if (HasError) hash ^= Error.GetHashCode();
+ if (HasType) hash ^= Type.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5984,17 +8965,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasOutputPtr) {
+ if (HasType) {
output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
- if (HasError) {
- output.WriteRawTag(26);
- output.WriteString(Error);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6006,17 +8979,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 (HasOutputPtr) {
+ if (HasType) {
output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
- if (HasError) {
- output.WriteRawTag(26);
- output.WriteString(Error);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6028,14 +8993,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasOutputPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
- }
- if (HasSize) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
- }
- if (HasError) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ if (HasType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6045,18 +9004,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(FlushSoxResamplerResponse other) {
+ public void MergeFrom(AudioStreamInfo other) {
if (other == null) {
return;
}
- if (other.HasOutputPtr) {
- OutputPtr = other.OutputPtr;
- }
- if (other.HasSize) {
- Size = other.Size;
- }
- if (other.HasError) {
- Error = other.Error;
+ if (other.HasType) {
+ Type = other.Type;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6078,15 +9031,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
- Error = input.ReadString();
+ Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
break;
}
}
@@ -6109,15 +9054,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
- Error = input.ReadString();
+ Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
break;
}
}
@@ -6128,22 +9065,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioFrameBufferInfo : pb::IMessage
+ public sealed partial class OwnedAudioStream : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioStream());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[21]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[30]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6154,7 +9090,7 @@ public sealed partial class AudioFrameBufferInfo : pb::IMessageField number for the "data_ptr" field.
- public const int DataPtrFieldNumber = 1;
- private readonly static ulong DataPtrDefaultValue = 0UL;
-
- private ulong dataPtr_;
- ///
- /// *const i16
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong DataPtr {
- get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
- set {
- _hasBits0 |= 1;
- dataPtr_ = value;
- }
- }
- /// Gets whether the "data_ptr" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasDataPtr {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "data_ptr" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearDataPtr() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "num_channels" field.
- public const int NumChannelsFieldNumber = 2;
- private readonly static uint NumChannelsDefaultValue = 0;
-
- private uint numChannels_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint NumChannels {
- get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
- set {
- _hasBits0 |= 2;
- numChannels_ = value;
- }
- }
- /// Gets whether the "num_channels" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNumChannels {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "num_channels" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNumChannels() {
- _hasBits0 &= ~2;
+ public OwnedAudioStream Clone() {
+ return new OwnedAudioStream(this);
}
- /// Field number for the "sample_rate" field.
- public const int SampleRateFieldNumber = 3;
- private readonly static uint SampleRateDefaultValue = 0;
-
- private uint sampleRate_;
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint SampleRate {
- get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
set {
- _hasBits0 |= 4;
- sampleRate_ = value;
+ handle_ = value;
}
}
- /// Gets whether the "sample_rate" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSampleRate {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// Clears the value of the "sample_rate" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSampleRate() {
- _hasBits0 &= ~4;
- }
-
- /// Field number for the "samples_per_channel" field.
- public const int SamplesPerChannelFieldNumber = 4;
- private readonly static uint SamplesPerChannelDefaultValue = 0;
- private uint samplesPerChannel_;
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioStreamInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint SamplesPerChannel {
- get { if ((_hasBits0 & 8) != 0) { return samplesPerChannel_; } else { return SamplesPerChannelDefaultValue; } }
+ public global::LiveKit.Proto.AudioStreamInfo Info {
+ get { return info_; }
set {
- _hasBits0 |= 8;
- samplesPerChannel_ = value;
+ info_ = value;
}
}
- /// Gets whether the "samples_per_channel" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSamplesPerChannel {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// Clears the value of the "samples_per_channel" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSamplesPerChannel() {
- _hasBits0 &= ~8;
- }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioFrameBufferInfo);
+ return Equals(other as OwnedAudioStream);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioFrameBufferInfo other) {
+ public bool Equals(OwnedAudioStream other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (DataPtr != other.DataPtr) return false;
- if (NumChannels != other.NumChannels) return false;
- if (SampleRate != other.SampleRate) return false;
- if (SamplesPerChannel != other.SamplesPerChannel) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6314,10 +9158,8 @@ public bool Equals(AudioFrameBufferInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasDataPtr) hash ^= DataPtr.GetHashCode();
- if (HasNumChannels) hash ^= NumChannels.GetHashCode();
- if (HasSampleRate) hash ^= SampleRate.GetHashCode();
- if (HasSamplesPerChannel) hash ^= SamplesPerChannel.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6336,21 +9178,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasDataPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(DataPtr);
- }
- if (HasNumChannels) {
- output.WriteRawTag(16);
- output.WriteUInt32(NumChannels);
- }
- if (HasSampleRate) {
- output.WriteRawTag(24);
- output.WriteUInt32(SampleRate);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
}
- if (HasSamplesPerChannel) {
- output.WriteRawTag(32);
- output.WriteUInt32(SamplesPerChannel);
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6362,21 +9196,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 (HasDataPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(DataPtr);
- }
- if (HasNumChannels) {
- output.WriteRawTag(16);
- output.WriteUInt32(NumChannels);
- }
- if (HasSampleRate) {
- output.WriteRawTag(24);
- output.WriteUInt32(SampleRate);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
}
- if (HasSamplesPerChannel) {
- output.WriteRawTag(32);
- output.WriteUInt32(SamplesPerChannel);
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6388,17 +9214,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasDataPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
- }
- if (HasNumChannels) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
- }
- if (HasSampleRate) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
}
- if (HasSamplesPerChannel) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel);
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6408,21 +9228,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioFrameBufferInfo other) {
+ public void MergeFrom(OwnedAudioStream other) {
if (other == null) {
return;
}
- if (other.HasDataPtr) {
- DataPtr = other.DataPtr;
- }
- if (other.HasNumChannels) {
- NumChannels = other.NumChannels;
- }
- if (other.HasSampleRate) {
- SampleRate = other.SampleRate;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
}
- if (other.HasSamplesPerChannel) {
- SamplesPerChannel = other.SamplesPerChannel;
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6443,20 +9263,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- DataPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- NumChannels = input.ReadUInt32();
- break;
- }
- case 24: {
- SampleRate = input.ReadUInt32();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
break;
}
- case 32: {
- SamplesPerChannel = input.ReadUInt32();
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -6478,20 +9296,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- DataPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- NumChannels = input.ReadUInt32();
- break;
- }
- case 24: {
- SampleRate = input.ReadUInt32();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
break;
}
- case 32: {
- SamplesPerChannel = input.ReadUInt32();
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -6502,21 +9318,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioFrameBuffer : pb::IMessage
+ public sealed partial class AudioStreamEvent : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent());
private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[31]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6527,7 +9344,7 @@ public sealed partial class OwnedAudioFrameBuffer : pb::IMessageField number for the "handle" field.
- public const int HandleFieldNumber = 1;
- private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ /// Field number for the "stream_handle" field.
+ public const int StreamHandleFieldNumber = 1;
+ private readonly static ulong StreamHandleDefaultValue = 0UL;
+
+ private ulong streamHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.FfiOwnedHandle Handle {
- get { return handle_; }
+ public ulong StreamHandle {
+ get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } }
set {
- handle_ = value;
+ _hasBits0 |= 1;
+ streamHandle_ = value;
}
}
+ /// Gets whether the "stream_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasStreamHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "stream_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearStreamHandle() {
+ _hasBits0 &= ~1;
+ }
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioFrameBufferInfo info_;
+ /// Field number for the "frame_received" field.
+ public const int FrameReceivedFieldNumber = 2;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioFrameBufferInfo Info {
- get { return info_; }
+ public global::LiveKit.Proto.AudioFrameReceived FrameReceived {
+ get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; }
set {
- info_ = value;
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived;
+ }
+ }
+
+ /// Field number for the "eos" field.
+ public const int EosFieldNumber = 3;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.AudioStreamEOS Eos {
+ get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.AudioStreamEOS) message_ : null; }
+ set {
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos;
}
}
+ private object message_;
+ /// Enum of possible cases for the "message" oneof.
+ public enum MessageOneofCase {
+ None = 0,
+ FrameReceived = 2,
+ Eos = 3,
+ }
+ private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOneofCase MessageCase {
+ get { return messageCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearMessage() {
+ messageCase_ = MessageOneofCase.None;
+ message_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioFrameBuffer);
+ return Equals(other as AudioStreamEvent);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioFrameBuffer other) {
+ public bool Equals(AudioStreamEvent other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
+ if (StreamHandle != other.StreamHandle) return false;
+ if (!object.Equals(FrameReceived, other.FrameReceived)) return false;
+ if (!object.Equals(Eos, other.Eos)) return false;
+ if (MessageCase != other.MessageCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6595,8 +9471,10 @@ public bool Equals(OwnedAudioFrameBuffer other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
+ if (HasStreamHandle) hash ^= StreamHandle.GetHashCode();
+ if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode();
+ if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode();
+ hash ^= (int) messageCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6615,13 +9493,17 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
+ if (HasStreamHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(StreamHandle);
}
- if (info_ != null) {
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteMessage(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Eos);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6633,13 +9515,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
+ if (HasStreamHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(StreamHandle);
}
- if (info_ != null) {
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteMessage(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Eos);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6651,11 +9537,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (handle_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ if (HasStreamHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle);
}
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6665,22 +9554,28 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioFrameBuffer other) {
+ public void MergeFrom(AudioStreamEvent other) {
if (other == null) {
return;
}
- if (other.handle_ != null) {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- Handle.MergeFrom(other.Handle);
+ if (other.HasStreamHandle) {
+ StreamHandle = other.StreamHandle;
}
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
- }
- Info.MergeFrom(other.Info);
+ switch (other.MessageCase) {
+ case MessageOneofCase.FrameReceived:
+ if (FrameReceived == null) {
+ FrameReceived = new global::LiveKit.Proto.AudioFrameReceived();
+ }
+ FrameReceived.MergeFrom(other.FrameReceived);
+ break;
+ case MessageOneofCase.Eos:
+ if (Eos == null) {
+ Eos = new global::LiveKit.Proto.AudioStreamEOS();
+ }
+ Eos.MergeFrom(other.Eos);
+ break;
}
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6700,18 +9595,26 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
+ case 8: {
+ StreamHandle = input.ReadUInt64();
break;
}
case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ subBuilder.MergeFrom(FrameReceived);
}
- input.ReadMessage(Info);
+ input.ReadMessage(subBuilder);
+ FrameReceived = subBuilder;
+ break;
+ }
+ case 26: {
+ global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
+ if (messageCase_ == MessageOneofCase.Eos) {
+ subBuilder.MergeFrom(Eos);
+ }
+ input.ReadMessage(subBuilder);
+ Eos = subBuilder;
break;
}
}
@@ -6733,18 +9636,26 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ case 8: {
+ StreamHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ subBuilder.MergeFrom(FrameReceived);
}
- input.ReadMessage(Handle);
+ input.ReadMessage(subBuilder);
+ FrameReceived = subBuilder;
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ case 26: {
+ global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
+ if (messageCase_ == MessageOneofCase.Eos) {
+ subBuilder.MergeFrom(Eos);
}
- input.ReadMessage(Info);
+ input.ReadMessage(subBuilder);
+ Eos = subBuilder;
break;
}
}
@@ -6755,22 +9666,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamInfo : pb::IMessage
+ public sealed partial class AudioFrameReceived : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[23]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[32]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6781,7 +9691,7 @@ public sealed partial class AudioStreamInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo() {
+ public AudioFrameReceived() {
OnConstruction();
}
@@ -6789,61 +9699,45 @@ public AudioStreamInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo(AudioStreamInfo other) : this() {
- _hasBits0 = other._hasBits0;
- type_ = other.type_;
+ public AudioFrameReceived(AudioFrameReceived other) : this() {
+ frame_ = other.frame_ != null ? other.frame_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo Clone() {
- return new AudioStreamInfo(this);
+ public AudioFrameReceived Clone() {
+ return new AudioFrameReceived(this);
}
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 1;
- private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative;
-
- private global::LiveKit.Proto.AudioStreamType type_;
+ /// Field number for the "frame" field.
+ public const int FrameFieldNumber = 1;
+ private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamType Type {
- get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
+ public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame {
+ get { return frame_; }
set {
- _hasBits0 |= 1;
- type_ = value;
+ frame_ = value;
}
}
- /// Gets whether the "type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasType {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "type" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearType() {
- _hasBits0 &= ~1;
- }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamInfo);
+ return Equals(other as AudioFrameReceived);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamInfo other) {
+ public bool Equals(AudioFrameReceived other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (Type != other.Type) return false;
+ if (!object.Equals(Frame, other.Frame)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6851,7 +9745,7 @@ public bool Equals(AudioStreamInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasType) hash ^= Type.GetHashCode();
+ if (frame_ != null) hash ^= Frame.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6870,9 +9764,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasType) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Type);
+ if (frame_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Frame);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6884,9 +9778,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 (HasType) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Type);
+ if (frame_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Frame);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6898,8 +9792,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ if (frame_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6909,12 +9803,15 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamInfo other) {
+ public void MergeFrom(AudioFrameReceived other) {
if (other == null) {
return;
}
- if (other.HasType) {
- Type = other.Type;
+ if (other.frame_ != null) {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ Frame.MergeFrom(other.Frame);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6935,8 +9832,11 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
+ case 10: {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ input.ReadMessage(Frame);
break;
}
}
@@ -6958,8 +9858,11 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
+ case 10: {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ input.ReadMessage(Frame);
break;
}
}
@@ -6970,21 +9873,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioStream : pb::IMessage
+ public sealed partial class AudioStreamEOS : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioStream());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEOS());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[24]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[33]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6995,7 +9898,7 @@ public sealed partial class OwnedAudioStream : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream() {
+ public AudioStreamEOS() {
OnConstruction();
}
@@ -7003,59 +9906,31 @@ public OwnedAudioStream() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream(OwnedAudioStream other) : this() {
- handle_ = other.handle_ != null ? other.handle_.Clone() : null;
- info_ = other.info_ != null ? other.info_.Clone() : null;
+ public AudioStreamEOS(AudioStreamEOS other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream Clone() {
- return new OwnedAudioStream(this);
- }
-
- /// Field number for the "handle" field.
- public const int HandleFieldNumber = 1;
- private global::LiveKit.Proto.FfiOwnedHandle handle_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.FfiOwnedHandle Handle {
- get { return handle_; }
- set {
- handle_ = value;
- }
- }
-
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioStreamInfo info_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamInfo Info {
- get { return info_; }
- set {
- info_ = value;
- }
+ public AudioStreamEOS Clone() {
+ return new AudioStreamEOS(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioStream);
+ return Equals(other as AudioStreamEOS);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioStream other) {
+ public bool Equals(AudioStreamEOS other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7063,8 +9938,6 @@ public bool Equals(OwnedAudioStream other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7083,14 +9956,6 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -7101,14 +9966,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 (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -7119,12 +9976,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (handle_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
- }
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -7133,22 +9984,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioStream other) {
+ public void MergeFrom(AudioStreamEOS other) {
if (other == null) {
return;
}
- if (other.handle_ != null) {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- Handle.MergeFrom(other.Handle);
- }
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- Info.MergeFrom(other.Info);
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7168,20 +10007,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
#endif
@@ -7201,20 +10026,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
}
@@ -7223,22 +10034,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamEvent : pb::IMessage
+ public sealed partial class AudioSourceOptions : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[25]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[34]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7249,7 +10060,7 @@ public sealed partial class AudioStreamEvent : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent() {
+ public AudioSourceOptions() {
OnConstruction();
}
@@ -7257,118 +10068,119 @@ public AudioStreamEvent() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent(AudioStreamEvent other) : this() {
+ public AudioSourceOptions(AudioSourceOptions other) : this() {
_hasBits0 = other._hasBits0;
- streamHandle_ = other.streamHandle_;
- switch (other.MessageCase) {
- case MessageOneofCase.FrameReceived:
- FrameReceived = other.FrameReceived.Clone();
- break;
- case MessageOneofCase.Eos:
- Eos = other.Eos.Clone();
- break;
- }
-
+ echoCancellation_ = other.echoCancellation_;
+ noiseSuppression_ = other.noiseSuppression_;
+ autoGainControl_ = other.autoGainControl_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent Clone() {
- return new AudioStreamEvent(this);
+ public AudioSourceOptions Clone() {
+ return new AudioSourceOptions(this);
}
- /// Field number for the "stream_handle" field.
- public const int StreamHandleFieldNumber = 1;
- private readonly static ulong StreamHandleDefaultValue = 0UL;
+ /// Field number for the "echo_cancellation" field.
+ public const int EchoCancellationFieldNumber = 1;
+ private readonly static bool EchoCancellationDefaultValue = false;
- private ulong streamHandle_;
+ private bool echoCancellation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong StreamHandle {
- get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } }
+ public bool EchoCancellation {
+ get { if ((_hasBits0 & 1) != 0) { return echoCancellation_; } else { return EchoCancellationDefaultValue; } }
set {
_hasBits0 |= 1;
- streamHandle_ = value;
+ echoCancellation_ = value;
}
}
- /// Gets whether the "stream_handle" field is set
+ /// Gets whether the "echo_cancellation" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasStreamHandle {
+ public bool HasEchoCancellation {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "stream_handle" field
+ /// Clears the value of the "echo_cancellation" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearStreamHandle() {
+ public void ClearEchoCancellation() {
_hasBits0 &= ~1;
}
- /// Field number for the "frame_received" field.
- public const int FrameReceivedFieldNumber = 2;
+ /// Field number for the "noise_suppression" field.
+ public const int NoiseSuppressionFieldNumber = 2;
+ private readonly static bool NoiseSuppressionDefaultValue = false;
+
+ private bool noiseSuppression_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioFrameReceived FrameReceived {
- get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; }
+ public bool NoiseSuppression {
+ get { if ((_hasBits0 & 2) != 0) { return noiseSuppression_; } else { return NoiseSuppressionDefaultValue; } }
set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived;
+ _hasBits0 |= 2;
+ noiseSuppression_ = value;
}
}
+ /// Gets whether the "noise_suppression" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNoiseSuppression {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "noise_suppression" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNoiseSuppression() {
+ _hasBits0 &= ~2;
+ }
- /// Field number for the "eos" field.
- public const int EosFieldNumber = 3;
+ /// Field number for the "auto_gain_control" field.
+ public const int AutoGainControlFieldNumber = 3;
+ private readonly static bool AutoGainControlDefaultValue = false;
+
+ private bool autoGainControl_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamEOS Eos {
- get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.AudioStreamEOS) message_ : null; }
+ public bool AutoGainControl {
+ get { if ((_hasBits0 & 4) != 0) { return autoGainControl_; } else { return AutoGainControlDefaultValue; } }
set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos;
+ _hasBits0 |= 4;
+ autoGainControl_ = value;
}
}
-
- private object message_;
- /// Enum of possible cases for the "message" oneof.
- public enum MessageOneofCase {
- None = 0,
- FrameReceived = 2,
- Eos = 3,
- }
- private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ /// Gets whether the "auto_gain_control" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public MessageOneofCase MessageCase {
- get { return messageCase_; }
+ public bool HasAutoGainControl {
+ get { return (_hasBits0 & 4) != 0; }
}
-
+ /// Clears the value of the "auto_gain_control" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearMessage() {
- messageCase_ = MessageOneofCase.None;
- message_ = null;
+ public void ClearAutoGainControl() {
+ _hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamEvent);
+ return Equals(other as AudioSourceOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamEvent other) {
+ public bool Equals(AudioSourceOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (StreamHandle != other.StreamHandle) return false;
- if (!object.Equals(FrameReceived, other.FrameReceived)) return false;
- if (!object.Equals(Eos, other.Eos)) return false;
- if (MessageCase != other.MessageCase) return false;
+ if (EchoCancellation != other.EchoCancellation) return false;
+ if (NoiseSuppression != other.NoiseSuppression) return false;
+ if (AutoGainControl != other.AutoGainControl) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7376,10 +10188,9 @@ public bool Equals(AudioStreamEvent other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasStreamHandle) hash ^= StreamHandle.GetHashCode();
- if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode();
- if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode();
- hash ^= (int) messageCase_;
+ if (HasEchoCancellation) hash ^= EchoCancellation.GetHashCode();
+ if (HasNoiseSuppression) hash ^= NoiseSuppression.GetHashCode();
+ if (HasAutoGainControl) hash ^= AutoGainControl.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7398,17 +10209,17 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasStreamHandle) {
+ if (HasEchoCancellation) {
output.WriteRawTag(8);
- output.WriteUInt64(StreamHandle);
+ output.WriteBool(EchoCancellation);
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- output.WriteRawTag(18);
- output.WriteMessage(FrameReceived);
+ if (HasNoiseSuppression) {
+ output.WriteRawTag(16);
+ output.WriteBool(NoiseSuppression);
}
- if (messageCase_ == MessageOneofCase.Eos) {
- output.WriteRawTag(26);
- output.WriteMessage(Eos);
+ if (HasAutoGainControl) {
+ output.WriteRawTag(24);
+ output.WriteBool(AutoGainControl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -7420,17 +10231,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasStreamHandle) {
+ if (HasEchoCancellation) {
output.WriteRawTag(8);
- output.WriteUInt64(StreamHandle);
+ output.WriteBool(EchoCancellation);
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- output.WriteRawTag(18);
- output.WriteMessage(FrameReceived);
+ if (HasNoiseSuppression) {
+ output.WriteRawTag(16);
+ output.WriteBool(NoiseSuppression);
}
- if (messageCase_ == MessageOneofCase.Eos) {
- output.WriteRawTag(26);
- output.WriteMessage(Eos);
+ if (HasAutoGainControl) {
+ output.WriteRawTag(24);
+ output.WriteBool(AutoGainControl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -7442,14 +10253,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasStreamHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle);
+ if (HasEchoCancellation) {
+ size += 1 + 1;
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived);
+ if (HasNoiseSuppression) {
+ size += 1 + 1;
}
- if (messageCase_ == MessageOneofCase.Eos) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos);
+ if (HasAutoGainControl) {
+ size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -7459,28 +10270,19 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamEvent other) {
+ public void MergeFrom(AudioSourceOptions other) {
if (other == null) {
return;
}
- if (other.HasStreamHandle) {
- StreamHandle = other.StreamHandle;
+ if (other.HasEchoCancellation) {
+ EchoCancellation = other.EchoCancellation;
}
- switch (other.MessageCase) {
- case MessageOneofCase.FrameReceived:
- if (FrameReceived == null) {
- FrameReceived = new global::LiveKit.Proto.AudioFrameReceived();
- }
- FrameReceived.MergeFrom(other.FrameReceived);
- break;
- case MessageOneofCase.Eos:
- if (Eos == null) {
- Eos = new global::LiveKit.Proto.AudioStreamEOS();
- }
- Eos.MergeFrom(other.Eos);
- break;
+ if (other.HasNoiseSuppression) {
+ NoiseSuppression = other.NoiseSuppression;
+ }
+ if (other.HasAutoGainControl) {
+ AutoGainControl = other.AutoGainControl;
}
-
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7501,25 +10303,15 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- StreamHandle = input.ReadUInt64();
+ EchoCancellation = input.ReadBool();
break;
}
- case 18: {
- global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- subBuilder.MergeFrom(FrameReceived);
- }
- input.ReadMessage(subBuilder);
- FrameReceived = subBuilder;
+ case 16: {
+ NoiseSuppression = input.ReadBool();
break;
}
- case 26: {
- global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
- if (messageCase_ == MessageOneofCase.Eos) {
- subBuilder.MergeFrom(Eos);
- }
- input.ReadMessage(subBuilder);
- Eos = subBuilder;
+ case 24: {
+ AutoGainControl = input.ReadBool();
break;
}
}
@@ -7542,25 +10334,15 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- StreamHandle = input.ReadUInt64();
+ EchoCancellation = input.ReadBool();
break;
}
- case 18: {
- global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- subBuilder.MergeFrom(FrameReceived);
- }
- input.ReadMessage(subBuilder);
- FrameReceived = subBuilder;
+ case 16: {
+ NoiseSuppression = input.ReadBool();
break;
}
- case 26: {
- global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
- if (messageCase_ == MessageOneofCase.Eos) {
- subBuilder.MergeFrom(Eos);
- }
- input.ReadMessage(subBuilder);
- Eos = subBuilder;
+ case 24: {
+ AutoGainControl = input.ReadBool();
break;
}
}
@@ -7571,21 +10353,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioFrameReceived : pb::IMessage
+ public sealed partial class AudioSourceInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo());
private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[26]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[35]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7596,7 +10379,7 @@ public sealed partial class AudioFrameReceived : pb::IMessageField number for the "frame" field.
- public const int FrameFieldNumber = 1;
- private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_;
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 2;
+ private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative;
+
+ private global::LiveKit.Proto.AudioSourceType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame {
- get { return frame_; }
+ public global::LiveKit.Proto.AudioSourceType Type {
+ get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
- frame_ = value;
+ _hasBits0 |= 1;
+ type_ = value;
}
}
+ /// Gets whether the "type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasType {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearType() {
+ _hasBits0 &= ~1;
+ }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioFrameReceived);
+ return Equals(other as AudioSourceInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioFrameReceived other) {
+ public bool Equals(AudioSourceInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Frame, other.Frame)) return false;
+ if (Type != other.Type) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7650,7 +10449,7 @@ public bool Equals(AudioFrameReceived other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (frame_ != null) hash ^= Frame.GetHashCode();
+ if (HasType) hash ^= Type.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7669,9 +10468,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (frame_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Frame);
+ if (HasType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -7683,9 +10482,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (frame_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Frame);
+ if (HasType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -7697,8 +10496,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (frame_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame);
+ if (HasType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -7708,15 +10507,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioFrameReceived other) {
+ public void MergeFrom(AudioSourceInfo other) {
if (other == null) {
return;
}
- if (other.frame_ != null) {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- Frame.MergeFrom(other.Frame);
+ if (other.HasType) {
+ Type = other.Type;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7737,11 +10533,8 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- input.ReadMessage(Frame);
+ case 16: {
+ Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
break;
}
}
@@ -7763,11 +10556,8 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- input.ReadMessage(Frame);
+ case 16: {
+ Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
break;
}
}
@@ -7778,21 +10568,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamEOS : pb::IMessage
+ public sealed partial class OwnedAudioSource : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEOS());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioSource());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[27]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[36]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7803,7 +10593,7 @@ public sealed partial class AudioStreamEOS : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS() {
+ public OwnedAudioSource() {
OnConstruction();
}
@@ -7811,31 +10601,59 @@ public AudioStreamEOS() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS(AudioStreamEOS other) : this() {
+ public OwnedAudioSource(OwnedAudioSource other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS Clone() {
- return new AudioStreamEOS(this);
+ public OwnedAudioSource Clone() {
+ return new OwnedAudioSource(this);
+ }
+
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
+ set {
+ handle_ = value;
+ }
+ }
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioSourceInfo info_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.AudioSourceInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamEOS);
+ return Equals(other as OwnedAudioSource);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamEOS other) {
+ public bool Equals(OwnedAudioSource other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7843,6 +10661,8 @@ public bool Equals(AudioStreamEOS other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7861,6 +10681,14 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -7871,6 +10699,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -7881,6 +10717,12 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -7889,10 +10731,22 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamEOS other) {
+ public void MergeFrom(OwnedAudioSource other) {
if (other == null) {
return;
}
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ Info.MergeFrom(other.Info);
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7912,6 +10766,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
}
}
#endif
@@ -7931,6 +10799,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
}
}
}
@@ -7939,22 +10821,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioSourceOptions : pb::IMessage
+ public sealed partial class AudioResamplerInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[28]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[37]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7965,7 +10846,7 @@ public sealed partial class AudioSourceOptions : pb::IMessageField number for the "echo_cancellation" field.
- public const int EchoCancellationFieldNumber = 1;
- private readonly static bool EchoCancellationDefaultValue = false;
-
- private bool echoCancellation_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EchoCancellation {
- get { if ((_hasBits0 & 1) != 0) { return echoCancellation_; } else { return EchoCancellationDefaultValue; } }
- set {
- _hasBits0 |= 1;
- echoCancellation_ = value;
- }
- }
- /// Gets whether the "echo_cancellation" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasEchoCancellation {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "echo_cancellation" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearEchoCancellation() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "noise_suppression" field.
- public const int NoiseSuppressionFieldNumber = 2;
- private readonly static bool NoiseSuppressionDefaultValue = false;
-
- private bool noiseSuppression_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool NoiseSuppression {
- get { if ((_hasBits0 & 2) != 0) { return noiseSuppression_; } else { return NoiseSuppressionDefaultValue; } }
- set {
- _hasBits0 |= 2;
- noiseSuppression_ = value;
- }
- }
- /// Gets whether the "noise_suppression" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNoiseSuppression {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "noise_suppression" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNoiseSuppression() {
- _hasBits0 &= ~2;
- }
-
- /// Field number for the "auto_gain_control" field.
- public const int AutoGainControlFieldNumber = 3;
- private readonly static bool AutoGainControlDefaultValue = false;
-
- private bool autoGainControl_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool AutoGainControl {
- get { if ((_hasBits0 & 4) != 0) { return autoGainControl_; } else { return AutoGainControlDefaultValue; } }
- set {
- _hasBits0 |= 4;
- autoGainControl_ = value;
- }
- }
- /// Gets whether the "auto_gain_control" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasAutoGainControl {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// Clears the value of the "auto_gain_control" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearAutoGainControl() {
- _hasBits0 &= ~4;
+ public AudioResamplerInfo Clone() {
+ return new AudioResamplerInfo(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioSourceOptions);
+ return Equals(other as AudioResamplerInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioSourceOptions other) {
+ public bool Equals(AudioResamplerInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (EchoCancellation != other.EchoCancellation) return false;
- if (NoiseSuppression != other.NoiseSuppression) return false;
- if (AutoGainControl != other.AutoGainControl) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8093,9 +10886,6 @@ public bool Equals(AudioSourceOptions other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasEchoCancellation) hash ^= EchoCancellation.GetHashCode();
- if (HasNoiseSuppression) hash ^= NoiseSuppression.GetHashCode();
- if (HasAutoGainControl) hash ^= AutoGainControl.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8114,18 +10904,6 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasEchoCancellation) {
- output.WriteRawTag(8);
- output.WriteBool(EchoCancellation);
- }
- if (HasNoiseSuppression) {
- output.WriteRawTag(16);
- output.WriteBool(NoiseSuppression);
- }
- if (HasAutoGainControl) {
- output.WriteRawTag(24);
- output.WriteBool(AutoGainControl);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -8136,18 +10914,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 (HasEchoCancellation) {
- output.WriteRawTag(8);
- output.WriteBool(EchoCancellation);
- }
- if (HasNoiseSuppression) {
- output.WriteRawTag(16);
- output.WriteBool(NoiseSuppression);
- }
- if (HasAutoGainControl) {
- output.WriteRawTag(24);
- output.WriteBool(AutoGainControl);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -8158,15 +10924,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasEchoCancellation) {
- size += 1 + 1;
- }
- if (HasNoiseSuppression) {
- size += 1 + 1;
- }
- if (HasAutoGainControl) {
- size += 1 + 1;
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -8175,19 +10932,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioSourceOptions other) {
+ public void MergeFrom(AudioResamplerInfo other) {
if (other == null) {
return;
}
- if (other.HasEchoCancellation) {
- EchoCancellation = other.EchoCancellation;
- }
- if (other.HasNoiseSuppression) {
- NoiseSuppression = other.NoiseSuppression;
- }
- if (other.HasAutoGainControl) {
- AutoGainControl = other.AutoGainControl;
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8207,18 +10955,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- EchoCancellation = input.ReadBool();
- break;
- }
- case 16: {
- NoiseSuppression = input.ReadBool();
- break;
- }
- case 24: {
- AutoGainControl = input.ReadBool();
- break;
- }
}
}
#endif
@@ -8238,18 +10974,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- EchoCancellation = input.ReadBool();
- break;
- }
- case 16: {
- NoiseSuppression = input.ReadBool();
- break;
- }
- case 24: {
- AutoGainControl = input.ReadBool();
- break;
- }
}
}
}
@@ -8258,22 +10982,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioSourceInfo : pb::IMessage
+ public sealed partial class OwnedAudioResampler : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[29]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[38]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8284,7 +11007,7 @@ public sealed partial class AudioSourceInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo() {
+ public OwnedAudioResampler() {
OnConstruction();
}
@@ -8292,61 +11015,59 @@ public AudioSourceInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo(AudioSourceInfo other) : this() {
- _hasBits0 = other._hasBits0;
- type_ = other.type_;
+ public OwnedAudioResampler(OwnedAudioResampler other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo Clone() {
- return new AudioSourceInfo(this);
+ public OwnedAudioResampler Clone() {
+ return new OwnedAudioResampler(this);
}
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 2;
- private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative;
-
- private global::LiveKit.Proto.AudioSourceType type_;
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioSourceType Type {
- get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
set {
- _hasBits0 |= 1;
- type_ = value;
+ handle_ = value;
}
}
- /// Gets whether the "type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasType {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "type" field
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioResamplerInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearType() {
- _hasBits0 &= ~1;
+ public global::LiveKit.Proto.AudioResamplerInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioSourceInfo);
+ return Equals(other as OwnedAudioResampler);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioSourceInfo other) {
+ public bool Equals(OwnedAudioResampler other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (Type != other.Type) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8354,7 +11075,8 @@ public bool Equals(AudioSourceInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasType) hash ^= Type.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8373,9 +11095,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasType) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Type);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -8387,9 +11113,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 (HasType) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Type);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -8401,8 +11131,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -8412,12 +11145,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioSourceInfo other) {
+ public void MergeFrom(OwnedAudioResampler other) {
if (other == null) {
return;
}
- if (other.HasType) {
- Type = other.Type;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8438,8 +11180,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 16: {
- Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -8461,8 +11213,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 16: {
- Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -8473,21 +11235,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioSource : pb::IMessage
+ public sealed partial class OwnedApm : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioSource());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedApm());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[30]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[39]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8498,7 +11260,7 @@ public sealed partial class OwnedAudioSource : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource() {
+ public OwnedApm() {
OnConstruction();
}
@@ -8506,16 +11268,15 @@ public OwnedAudioSource() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource(OwnedAudioSource other) : this() {
+ public OwnedApm(OwnedApm other) : this() {
handle_ = other.handle_ != null ? other.handle_.Clone() : null;
- info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource Clone() {
- return new OwnedAudioSource(this);
+ public OwnedApm Clone() {
+ return new OwnedApm(this);
}
/// Field number for the "handle" field.
@@ -8530,27 +11291,15 @@ public OwnedAudioSource Clone() {
}
}
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioSourceInfo info_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioSourceInfo Info {
- get { return info_; }
- set {
- info_ = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioSource);
+ return Equals(other as OwnedApm);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioSource other) {
+ public bool Equals(OwnedApm other) {
if (ReferenceEquals(other, null)) {
return false;
}
@@ -8558,7 +11307,6 @@ public bool Equals(OwnedAudioSource other) {
return true;
}
if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8567,7 +11315,6 @@ public bool Equals(OwnedAudioSource other) {
public override int GetHashCode() {
int hash = 1;
if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8590,10 +11337,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Handle);
}
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -8608,10 +11351,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Handle);
}
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -8625,9 +11364,6 @@ public int CalculateSize() {
if (handle_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
}
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -8636,7 +11372,7 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioSource other) {
+ public void MergeFrom(OwnedApm other) {
if (other == null) {
return;
}
@@ -8646,12 +11382,6 @@ public void MergeFrom(OwnedAudioSource other) {
}
Handle.MergeFrom(other.Handle);
}
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- Info.MergeFrom(other.Info);
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8678,13 +11408,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Handle);
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
#endif
@@ -8711,13 +11434,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Handle);
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
}
@@ -8726,21 +11442,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioResamplerInfo : pb::IMessage
+ public sealed partial class SoxResamplerInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoxResamplerInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[31]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[40]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8751,7 +11467,7 @@ public sealed partial class AudioResamplerInfo : pb::IMessage
+ public sealed partial class OwnedSoxResampler : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedSoxResampler());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[32]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[41]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8912,7 +11628,7 @@ public sealed partial class OwnedAudioResampler : pb::IMessageField number for the "handle" field.
@@ -8946,10 +11662,10 @@ public OwnedAudioResampler Clone() {
/// Field number for the "info" field.
public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioResamplerInfo info_;
+ private global::LiveKit.Proto.SoxResamplerInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioResamplerInfo Info {
+ public global::LiveKit.Proto.SoxResamplerInfo Info {
get { return info_; }
set {
info_ = value;
@@ -8959,12 +11675,12 @@ public OwnedAudioResampler Clone() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioResampler);
+ return Equals(other as OwnedSoxResampler);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioResampler other) {
+ public bool Equals(OwnedSoxResampler other) {
if (ReferenceEquals(other, null)) {
return false;
}
@@ -9050,7 +11766,7 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioResampler other) {
+ public void MergeFrom(OwnedSoxResampler other) {
if (other == null) {
return;
}
@@ -9062,7 +11778,7 @@ public void MergeFrom(OwnedAudioResampler other) {
}
if (other.info_ != null) {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
Info.MergeFrom(other.Info);
}
@@ -9094,7 +11810,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 18: {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
input.ReadMessage(Info);
break;
@@ -9127,7 +11843,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 18: {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
input.ReadMessage(Info);
break;
@@ -9139,22 +11855,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
+ ///
+ /// Audio Filter Plugin
+ ///
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SoxResamplerInfo : pb::IMessage
+ public sealed partial class LoadAudioFilterPluginRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoxResamplerInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadAudioFilterPluginRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[33]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[42]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -9165,7 +11884,7 @@ public sealed partial class SoxResamplerInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo() {
+ public LoadAudioFilterPluginRequest() {
OnConstruction();
}
@@ -9173,31 +11892,109 @@ public SoxResamplerInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo(SoxResamplerInfo other) : this() {
+ public LoadAudioFilterPluginRequest(LoadAudioFilterPluginRequest other) : this() {
+ pluginPath_ = other.pluginPath_;
+ dependencies_ = other.dependencies_.Clone();
+ moduleId_ = other.moduleId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo Clone() {
- return new SoxResamplerInfo(this);
+ public LoadAudioFilterPluginRequest Clone() {
+ return new LoadAudioFilterPluginRequest(this);
+ }
+
+ /// Field number for the "plugin_path" field.
+ public const int PluginPathFieldNumber = 1;
+ private readonly static string PluginPathDefaultValue = "";
+
+ private string pluginPath_;
+ ///
+ /// path for ffi audio filter plugin
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string PluginPath {
+ get { return pluginPath_ ?? PluginPathDefaultValue; }
+ set {
+ pluginPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "plugin_path" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasPluginPath {
+ get { return pluginPath_ != null; }
+ }
+ /// Clears the value of the "plugin_path" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearPluginPath() {
+ pluginPath_ = null;
+ }
+
+ /// Field number for the "dependencies" field.
+ public const int DependenciesFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_dependencies_codec
+ = pb::FieldCodec.ForString(18);
+ private readonly pbc::RepeatedField dependencies_ = new pbc::RepeatedField();
+ ///
+ /// Optional: paths for dependency dylibs
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Dependencies {
+ get { return dependencies_; }
+ }
+
+ /// Field number for the "module_id" field.
+ public const int ModuleIdFieldNumber = 3;
+ private readonly static string ModuleIdDefaultValue = "";
+
+ private string moduleId_;
+ ///
+ /// Unique identifier of the plugin
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ModuleId {
+ get { return moduleId_ ?? ModuleIdDefaultValue; }
+ set {
+ moduleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasModuleId {
+ get { return moduleId_ != null; }
+ }
+ /// Clears the value of the "module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearModuleId() {
+ moduleId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as SoxResamplerInfo);
+ return Equals(other as LoadAudioFilterPluginRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SoxResamplerInfo other) {
+ public bool Equals(LoadAudioFilterPluginRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
+ if (PluginPath != other.PluginPath) return false;
+ if(!dependencies_.Equals(other.dependencies_)) return false;
+ if (ModuleId != other.ModuleId) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -9205,6 +12002,9 @@ public bool Equals(SoxResamplerInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
+ if (HasPluginPath) hash ^= PluginPath.GetHashCode();
+ hash ^= dependencies_.GetHashCode();
+ if (HasModuleId) hash ^= ModuleId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -9223,6 +12023,15 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
+ if (HasPluginPath) {
+ output.WriteRawTag(10);
+ output.WriteString(PluginPath);
+ }
+ dependencies_.WriteTo(output, _repeated_dependencies_codec);
+ if (HasModuleId) {
+ output.WriteRawTag(26);
+ output.WriteString(ModuleId);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -9233,6 +12042,15 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasPluginPath) {
+ output.WriteRawTag(10);
+ output.WriteString(PluginPath);
+ }
+ dependencies_.WriteTo(ref output, _repeated_dependencies_codec);
+ if (HasModuleId) {
+ output.WriteRawTag(26);
+ output.WriteString(ModuleId);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -9243,6 +12061,13 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
+ if (HasPluginPath) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginPath);
+ }
+ size += dependencies_.CalculateSize(_repeated_dependencies_codec);
+ if (HasModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ModuleId);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -9251,10 +12076,17 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SoxResamplerInfo other) {
+ public void MergeFrom(LoadAudioFilterPluginRequest other) {
if (other == null) {
return;
}
+ if (other.HasPluginPath) {
+ PluginPath = other.PluginPath;
+ }
+ dependencies_.Add(other.dependencies_);
+ if (other.HasModuleId) {
+ ModuleId = other.ModuleId;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -9274,6 +12106,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
+ case 10: {
+ PluginPath = input.ReadString();
+ break;
+ }
+ case 18: {
+ dependencies_.AddEntriesFrom(input, _repeated_dependencies_codec);
+ break;
+ }
+ case 26: {
+ ModuleId = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -9293,6 +12137,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
+ case 10: {
+ PluginPath = input.ReadString();
+ break;
+ }
+ case 18: {
+ dependencies_.AddEntriesFrom(ref input, _repeated_dependencies_codec);
+ break;
+ }
+ case 26: {
+ ModuleId = input.ReadString();
+ break;
+ }
}
}
}
@@ -9301,21 +12157,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedSoxResampler : pb::IMessage
+ public sealed partial class LoadAudioFilterPluginResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedSoxResampler());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadAudioFilterPluginResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[34]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[43]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -9326,7 +12182,7 @@ public sealed partial class OwnedSoxResampler : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedSoxResampler() {
+ public LoadAudioFilterPluginResponse() {
OnConstruction();
}
@@ -9334,59 +12190,59 @@ public OwnedSoxResampler() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedSoxResampler(OwnedSoxResampler other) : this() {
- handle_ = other.handle_ != null ? other.handle_.Clone() : null;
- info_ = other.info_ != null ? other.info_.Clone() : null;
+ public LoadAudioFilterPluginResponse(LoadAudioFilterPluginResponse other) : this() {
+ error_ = other.error_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedSoxResampler Clone() {
- return new OwnedSoxResampler(this);
+ public LoadAudioFilterPluginResponse Clone() {
+ return new LoadAudioFilterPluginResponse(this);
}
- /// Field number for the "handle" field.
- public const int HandleFieldNumber = 1;
- private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 1;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.FfiOwnedHandle Handle {
- get { return handle_; }
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
set {
- handle_ = value;
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
-
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.SoxResamplerInfo info_;
+ /// Gets whether the "error" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxResamplerInfo Info {
- get { return info_; }
- set {
- info_ = value;
- }
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedSoxResampler);
+ return Equals(other as LoadAudioFilterPluginResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedSoxResampler other) {
+ public bool Equals(LoadAudioFilterPluginResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
+ if (Error != other.Error) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -9394,8 +12250,7 @@ public bool Equals(OwnedSoxResampler other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -9414,13 +12269,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (handle_ != null) {
+ if (HasError) {
output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteString(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -9432,13 +12283,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (handle_ != null) {
+ if (HasError) {
output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteString(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -9450,11 +12297,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (handle_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
- }
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -9464,21 +12308,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedSoxResampler other) {
+ public void MergeFrom(LoadAudioFilterPluginResponse other) {
if (other == null) {
return;
}
- if (other.handle_ != null) {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- Handle.MergeFrom(other.Handle);
- }
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.SoxResamplerInfo();
- }
- Info.MergeFrom(other.Info);
+ if (other.HasError) {
+ Error = other.Error;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -9500,17 +12335,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.SoxResamplerInfo();
- }
- input.ReadMessage(Info);
+ Error = input.ReadString();
break;
}
}
@@ -9533,17 +12358,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.SoxResamplerInfo();
- }
- input.ReadMessage(Info);
+ Error = input.ReadString();
break;
}
}
diff --git a/Runtime/Scripts/Proto/DataStream.cs b/Runtime/Scripts/Proto/DataStream.cs
new file mode 100644
index 00000000..3a93cd84
--- /dev/null
+++ b/Runtime/Scripts/Proto/DataStream.cs
@@ -0,0 +1,16696 @@
+//
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: data_stream.proto
+//
+#pragma warning disable 1591, 0612, 3021, 8981
+#region Designer generated code
+
+using pb = global::Google.Protobuf;
+using pbc = global::Google.Protobuf.Collections;
+using pbr = global::Google.Protobuf.Reflection;
+using scg = global::System.Collections.Generic;
+namespace LiveKit.Proto {
+
+ /// Holder for reflection information generated from data_stream.proto
+ public static partial class DataStreamReflection {
+
+ #region Descriptor
+ /// File descriptor for data_stream.proto
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static DataStreamReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChFkYXRhX3N0cmVhbS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy",
+ "b3RvImkKGlN0cmVhbVJlZ2lzdGVyVG9waWNSZXF1ZXN0EhMKC3Jvb21faGFu",
+ "ZGxlGAEgAigEEg0KBXRvcGljGAIgAigJEicKBGtpbmQYAyACKA4yGS5saXZl",
+ "a2l0LnByb3RvLlN0cmVhbUtpbmQiSAobU3RyZWFtUmVnaXN0ZXJUb3BpY1Jl",
+ "c3BvbnNlEikKBWVycm9yGAEgASgLMhoubGl2ZWtpdC5wcm90by5TdHJlYW1F",
+ "cnJvciJrChxTdHJlYW1VbnJlZ2lzdGVyVG9waWNSZXF1ZXN0EhMKC3Jvb21f",
+ "aGFuZGxlGAEgAigEEg0KBXRvcGljGAIgAigJEicKBGtpbmQYAyACKA4yGS5s",
+ "aXZla2l0LnByb3RvLlN0cmVhbUtpbmQiHwodU3RyZWFtVW5yZWdpc3RlclRv",
+ "cGljUmVzcG9uc2UicwoVT3duZWRUZXh0U3RyZWFtUmVhZGVyEi0KBmhhbmRs",
+ "ZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSKwoEaW5m",
+ "bxgCIAIoCzIdLmxpdmVraXQucHJvdG8uVGV4dFN0cmVhbUluZm8iPwomVGV4",
+ "dFN0cmVhbVJlYWRlclJlYWRJbmNyZW1lbnRhbFJlcXVlc3QSFQoNcmVhZGVy",
+ "X2hhbmRsZRgBIAIoBCIpCidUZXh0U3RyZWFtUmVhZGVyUmVhZEluY3JlbWVu",
+ "dGFsUmVzcG9uc2UiNwoeVGV4dFN0cmVhbVJlYWRlclJlYWRBbGxSZXF1ZXN0",
+ "EhUKDXJlYWRlcl9oYW5kbGUYASACKAQiMwofVGV4dFN0cmVhbVJlYWRlclJl",
+ "YWRBbGxSZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCJ9Ch9UZXh0U3RyZWFt",
+ "UmVhZGVyUmVhZEFsbENhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEhEKB2Nv",
+ "bnRlbnQYAiABKAlIABIrCgVlcnJvchgDIAEoCzIaLmxpdmVraXQucHJvdG8u",
+ "U3RyZWFtRXJyb3JIAEIICgZyZXN1bHQiawoVVGV4dFN0cmVhbU9wZW5lZEV2",
+ "ZW50EjQKBnJlYWRlchgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3duZWRUZXh0",
+ "U3RyZWFtUmVhZGVyEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAIgAigJIrMB",
+ "ChVUZXh0U3RyZWFtUmVhZGVyRXZlbnQSFQoNcmVhZGVyX2hhbmRsZRgBIAIo",
+ "BBJGCg5jaHVua19yZWNlaXZlZBgCIAEoCzIsLmxpdmVraXQucHJvdG8uVGV4",
+ "dFN0cmVhbVJlYWRlckNodW5rUmVjZWl2ZWRIABIxCgNlb3MYAyABKAsyIi5s",
+ "aXZla2l0LnByb3RvLlRleHRTdHJlYW1SZWFkZXJFT1NIAEIICgZkZXRhaWwi",
+ "YQodVGV4dFN0cmVhbVJlYWRlckNodW5rUmVjZWl2ZWQSDwoHY29udGVudBgB",
+ "IAIoCRIvCghwcm9ncmVzcxgCIAIoCzIdLmxpdmVraXQucHJvdG8uU3RyZWFt",
+ "UHJvZ3Jlc3MiQAoTVGV4dFN0cmVhbVJlYWRlckVPUxIpCgVlcnJvchgBIAEo",
+ "CzIaLmxpdmVraXQucHJvdG8uU3RyZWFtRXJyb3IicwoVT3duZWRCeXRlU3Ry",
+ "ZWFtUmVhZGVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZp",
+ "T3duZWRIYW5kbGUSKwoEaW5mbxgCIAIoCzIdLmxpdmVraXQucHJvdG8uQnl0",
+ "ZVN0cmVhbUluZm8iPwomQnl0ZVN0cmVhbVJlYWRlclJlYWRJbmNyZW1lbnRh",
+ "bFJlcXVlc3QSFQoNcmVhZGVyX2hhbmRsZRgBIAIoBCIpCidCeXRlU3RyZWFt",
+ "UmVhZGVyUmVhZEluY3JlbWVudGFsUmVzcG9uc2UiNwoeQnl0ZVN0cmVhbVJl",
+ "YWRlclJlYWRBbGxSZXF1ZXN0EhUKDXJlYWRlcl9oYW5kbGUYASACKAQiMwof",
+ "Qnl0ZVN0cmVhbVJlYWRlclJlYWRBbGxSZXNwb25zZRIQCghhc3luY19pZBgB",
+ "IAIoBCJ9Ch9CeXRlU3RyZWFtUmVhZGVyUmVhZEFsbENhbGxiYWNrEhAKCGFz",
+ "eW5jX2lkGAEgAigEEhEKB2NvbnRlbnQYAiABKAxIABIrCgVlcnJvchgDIAEo",
+ "CzIaLmxpdmVraXQucHJvdG8uU3RyZWFtRXJyb3JIAEIICgZyZXN1bHQiZQoi",
+ "Qnl0ZVN0cmVhbVJlYWRlcldyaXRlVG9GaWxlUmVxdWVzdBIVCg1yZWFkZXJf",
+ "aGFuZGxlGAEgAigEEhEKCWRpcmVjdG9yeRgDIAEoCRIVCg1uYW1lX292ZXJy",
+ "aWRlGAQgASgJIjcKI0J5dGVTdHJlYW1SZWFkZXJXcml0ZVRvRmlsZVJlc3Bv",
+ "bnNlEhAKCGFzeW5jX2lkGAEgAigEIoMBCiNCeXRlU3RyZWFtUmVhZGVyV3Jp",
+ "dGVUb0ZpbGVDYWxsYmFjaxIQCghhc3luY19pZBgBIAIoBBITCglmaWxlX3Bh",
+ "dGgYAiABKAlIABIrCgVlcnJvchgDIAEoCzIaLmxpdmVraXQucHJvdG8uU3Ry",
+ "ZWFtRXJyb3JIAEIICgZyZXN1bHQiawoVQnl0ZVN0cmVhbU9wZW5lZEV2ZW50",
+ "EjQKBnJlYWRlchgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3duZWRCeXRlU3Ry",
+ "ZWFtUmVhZGVyEhwKFHBhcnRpY2lwYW50X2lkZW50aXR5GAIgAigJIrMBChVC",
+ "eXRlU3RyZWFtUmVhZGVyRXZlbnQSFQoNcmVhZGVyX2hhbmRsZRgBIAIoBBJG",
+ "Cg5jaHVua19yZWNlaXZlZBgCIAEoCzIsLmxpdmVraXQucHJvdG8uQnl0ZVN0",
+ "cmVhbVJlYWRlckNodW5rUmVjZWl2ZWRIABIxCgNlb3MYAyABKAsyIi5saXZl",
+ "a2l0LnByb3RvLkJ5dGVTdHJlYW1SZWFkZXJFT1NIAEIICgZkZXRhaWwiYQod",
+ "Qnl0ZVN0cmVhbVJlYWRlckNodW5rUmVjZWl2ZWQSDwoHY29udGVudBgBIAIo",
+ "DBIvCghwcm9ncmVzcxgCIAIoCzIdLmxpdmVraXQucHJvdG8uU3RyZWFtUHJv",
+ "Z3Jlc3MiQAoTQnl0ZVN0cmVhbVJlYWRlckVPUxIpCgVlcnJvchgBIAEoCzIa",
+ "LmxpdmVraXQucHJvdG8uU3RyZWFtRXJyb3IifwoVU3RyZWFtU2VuZEZpbGVS",
+ "ZXF1ZXN0EiAKGGxvY2FsX3BhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIxCgdv",
+ "cHRpb25zGAIgAigLMiAubGl2ZWtpdC5wcm90by5TdHJlYW1CeXRlT3B0aW9u",
+ "cxIRCglmaWxlX3BhdGgYAyACKAkiKgoWU3RyZWFtU2VuZEZpbGVSZXNwb25z",
+ "ZRIQCghhc3luY19pZBgBIAIoBCKQAQoWU3RyZWFtU2VuZEZpbGVDYWxsYmFj",
+ "axIQCghhc3luY19pZBgBIAIoBBItCgRpbmZvGAIgASgLMh0ubGl2ZWtpdC5w",
+ "cm90by5CeXRlU3RyZWFtSW5mb0gAEisKBWVycm9yGAMgASgLMhoubGl2ZWtp",
+ "dC5wcm90by5TdHJlYW1FcnJvckgAQggKBnJlc3VsdCJ6ChVTdHJlYW1TZW5k",
+ "VGV4dFJlcXVlc3QSIAoYbG9jYWxfcGFydGljaXBhbnRfaGFuZGxlGAEgAigE",
+ "EjEKB29wdGlvbnMYAiACKAsyIC5saXZla2l0LnByb3RvLlN0cmVhbVRleHRP",
+ "cHRpb25zEgwKBHRleHQYAyACKAkiKgoWU3RyZWFtU2VuZFRleHRSZXNwb25z",
+ "ZRIQCghhc3luY19pZBgBIAIoBCKQAQoWU3RyZWFtU2VuZFRleHRDYWxsYmFj",
+ "axIQCghhc3luY19pZBgBIAIoBBItCgRpbmZvGAIgASgLMh0ubGl2ZWtpdC5w",
+ "cm90by5UZXh0U3RyZWFtSW5mb0gAEisKBWVycm9yGAMgASgLMhoubGl2ZWtp",
+ "dC5wcm90by5TdHJlYW1FcnJvckgAQggKBnJlc3VsdCJzChVPd25lZEJ5dGVT",
+ "dHJlYW1Xcml0ZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5G",
+ "ZmlPd25lZEhhbmRsZRIrCgRpbmZvGAIgAigLMh0ubGl2ZWtpdC5wcm90by5C",
+ "eXRlU3RyZWFtSW5mbyJsChVCeXRlU3RyZWFtT3BlblJlcXVlc3QSIAoYbG9j",
+ "YWxfcGFydGljaXBhbnRfaGFuZGxlGAEgAigEEjEKB29wdGlvbnMYAiACKAsy",
+ "IC5saXZla2l0LnByb3RvLlN0cmVhbUJ5dGVPcHRpb25zIioKFkJ5dGVTdHJl",
+ "YW1PcGVuUmVzcG9uc2USEAoIYXN5bmNfaWQYASACKAQimQEKFkJ5dGVTdHJl",
+ "YW1PcGVuQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSNgoGd3JpdGVyGAIg",
+ "ASgLMiQubGl2ZWtpdC5wcm90by5Pd25lZEJ5dGVTdHJlYW1Xcml0ZXJIABIr",
+ "CgVlcnJvchgDIAEoCzIaLmxpdmVraXQucHJvdG8uU3RyZWFtRXJyb3JIAEII",
+ "CgZyZXN1bHQiRAocQnl0ZVN0cmVhbVdyaXRlcldyaXRlUmVxdWVzdBIVCg13",
+ "cml0ZXJfaGFuZGxlGAEgAigEEg0KBWJ5dGVzGAIgAigMIjEKHUJ5dGVTdHJl",
+ "YW1Xcml0ZXJXcml0ZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIlwKHUJ5",
+ "dGVTdHJlYW1Xcml0ZXJXcml0ZUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigE",
+ "EikKBWVycm9yGAIgASgLMhoubGl2ZWtpdC5wcm90by5TdHJlYW1FcnJvciI1",
+ "ChxCeXRlU3RyZWFtV3JpdGVyQ2xvc2VSZXF1ZXN0EhUKDXdyaXRlcl9oYW5k",
+ "bGUYASACKAQiMQodQnl0ZVN0cmVhbVdyaXRlckNsb3NlUmVzcG9uc2USEAoI",
+ "YXN5bmNfaWQYASACKAQiXAodQnl0ZVN0cmVhbVdyaXRlckNsb3NlQ2FsbGJh",
+ "Y2sSEAoIYXN5bmNfaWQYASACKAQSKQoFZXJyb3IYAiABKAsyGi5saXZla2l0",
+ "LnByb3RvLlN0cmVhbUVycm9yInMKFU93bmVkVGV4dFN0cmVhbVdyaXRlchIt",
+ "CgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxl",
+ "EisKBGluZm8YAiACKAsyHS5saXZla2l0LnByb3RvLlRleHRTdHJlYW1JbmZv",
+ "ImwKFVRleHRTdHJlYW1PcGVuUmVxdWVzdBIgChhsb2NhbF9wYXJ0aWNpcGFu",
+ "dF9oYW5kbGUYASACKAQSMQoHb3B0aW9ucxgCIAIoCzIgLmxpdmVraXQucHJv",
+ "dG8uU3RyZWFtVGV4dE9wdGlvbnMiKgoWVGV4dFN0cmVhbU9wZW5SZXNwb25z",
+ "ZRIQCghhc3luY19pZBgBIAIoBCKZAQoWVGV4dFN0cmVhbU9wZW5DYWxsYmFj",
+ "axIQCghhc3luY19pZBgBIAIoBBI2CgZ3cml0ZXIYAiABKAsyJC5saXZla2l0",
+ "LnByb3RvLk93bmVkVGV4dFN0cmVhbVdyaXRlckgAEisKBWVycm9yGAMgASgL",
+ "MhoubGl2ZWtpdC5wcm90by5TdHJlYW1FcnJvckgAQggKBnJlc3VsdCJDChxU",
+ "ZXh0U3RyZWFtV3JpdGVyV3JpdGVSZXF1ZXN0EhUKDXdyaXRlcl9oYW5kbGUY",
+ "ASACKAQSDAoEdGV4dBgCIAIoCSIxCh1UZXh0U3RyZWFtV3JpdGVyV3JpdGVS",
+ "ZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCJcCh1UZXh0U3RyZWFtV3JpdGVy",
+ "V3JpdGVDYWxsYmFjaxIQCghhc3luY19pZBgBIAIoBBIpCgVlcnJvchgCIAEo",
+ "CzIaLmxpdmVraXQucHJvdG8uU3RyZWFtRXJyb3IiNQocVGV4dFN0cmVhbVdy",
+ "aXRlckNsb3NlUmVxdWVzdBIVCg13cml0ZXJfaGFuZGxlGAEgAigEIjEKHVRl",
+ "eHRTdHJlYW1Xcml0ZXJDbG9zZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigE",
+ "IlwKHVRleHRTdHJlYW1Xcml0ZXJDbG9zZUNhbGxiYWNrEhAKCGFzeW5jX2lk",
+ "GAEgAigEEikKBWVycm9yGAIgASgLMhoubGl2ZWtpdC5wcm90by5TdHJlYW1F",
+ "cnJvciLJAwoOVGV4dFN0cmVhbUluZm8SEQoJc3RyZWFtX2lkGAEgAigJEhEK",
+ "CXRpbWVzdGFtcBgCIAIoAxIRCgltaW1lX3R5cGUYAyACKAkSDQoFdG9waWMY",
+ "BCACKAkSFAoMdG90YWxfbGVuZ3RoGAUgASgEEkEKCmF0dHJpYnV0ZXMYBiAD",
+ "KAsyLS5saXZla2l0LnByb3RvLlRleHRTdHJlYW1JbmZvLkF0dHJpYnV0ZXNF",
+ "bnRyeRJDCg5vcGVyYXRpb25fdHlwZRgHIAIoDjIrLmxpdmVraXQucHJvdG8u",
+ "VGV4dFN0cmVhbUluZm8uT3BlcmF0aW9uVHlwZRIPCgd2ZXJzaW9uGAggASgF",
+ "EhoKEnJlcGx5X3RvX3N0cmVhbV9pZBgJIAEoCRIbChNhdHRhY2hlZF9zdHJl",
+ "YW1faWRzGAogAygJEhEKCWdlbmVyYXRlZBgLIAEoCBoxCg9BdHRyaWJ1dGVz",
+ "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJBCg1PcGVy",
+ "YXRpb25UeXBlEgoKBkNSRUFURRAAEgoKBlVQREFURRABEgoKBkRFTEVURRAC",
+ "EgwKCFJFQUNUSU9OEAMi8gEKDkJ5dGVTdHJlYW1JbmZvEhEKCXN0cmVhbV9p",
+ "ZBgBIAIoCRIRCgl0aW1lc3RhbXAYAiACKAMSEQoJbWltZV90eXBlGAMgAigJ",
+ "Eg0KBXRvcGljGAQgAigJEhQKDHRvdGFsX2xlbmd0aBgFIAEoBBJBCgphdHRy",
+ "aWJ1dGVzGAYgAygLMi0ubGl2ZWtpdC5wcm90by5CeXRlU3RyZWFtSW5mby5B",
+ "dHRyaWJ1dGVzRW50cnkSDAoEbmFtZRgHIAIoCRoxCg9BdHRyaWJ1dGVzRW50",
+ "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASLpAgoRU3RyZWFt",
+ "VGV4dE9wdGlvbnMSDQoFdG9waWMYASACKAkSRAoKYXR0cmlidXRlcxgCIAMo",
+ "CzIwLmxpdmVraXQucHJvdG8uU3RyZWFtVGV4dE9wdGlvbnMuQXR0cmlidXRl",
+ "c0VudHJ5Eh4KFmRlc3RpbmF0aW9uX2lkZW50aXRpZXMYAyADKAkSCgoCaWQY",
+ "BCABKAkSQwoOb3BlcmF0aW9uX3R5cGUYBSABKA4yKy5saXZla2l0LnByb3Rv",
+ "LlRleHRTdHJlYW1JbmZvLk9wZXJhdGlvblR5cGUSDwoHdmVyc2lvbhgGIAEo",
+ "BRIaChJyZXBseV90b19zdHJlYW1faWQYByABKAkSGwoTYXR0YWNoZWRfc3Ry",
+ "ZWFtX2lkcxgIIAMoCRIRCglnZW5lcmF0ZWQYCSABKAgaMQoPQXR0cmlidXRl",
+ "c0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi/gEKEVN0",
+ "cmVhbUJ5dGVPcHRpb25zEg0KBXRvcGljGAEgAigJEkQKCmF0dHJpYnV0ZXMY",
+ "AiADKAsyMC5saXZla2l0LnByb3RvLlN0cmVhbUJ5dGVPcHRpb25zLkF0dHJp",
+ "YnV0ZXNFbnRyeRIeChZkZXN0aW5hdGlvbl9pZGVudGl0aWVzGAMgAygJEgoK",
+ "AmlkGAQgASgJEgwKBG5hbWUYBSABKAkSEQoJbWltZV90eXBlGAYgASgJEhQK",
+ "DHRvdGFsX2xlbmd0aBgHIAEoBBoxCg9BdHRyaWJ1dGVzRW50cnkSCwoDa2V5",
+ "GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASI+Cg5TdHJlYW1Qcm9ncmVzcxIX",
+ "Cg9ieXRlc19wcm9jZXNzZWQYASACKAQSEwoLYnl0ZXNfdG90YWwYAiABKAQi",
+ "IgoLU3RyZWFtRXJyb3ISEwoLZGVzY3JpcHRpb24YASACKAkqIAoKU3RyZWFt",
+ "S2luZBIICgRCWVRFEAASCAoEVEVYVBABQhCqAg1MaXZlS2l0LlByb3Rv"));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.StreamKind), }, null, new pbr::GeneratedClrTypeInfo[] {
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamRegisterTopicRequest), global::LiveKit.Proto.StreamRegisterTopicRequest.Parser, new[]{ "RoomHandle", "Topic", "Kind" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamRegisterTopicResponse), global::LiveKit.Proto.StreamRegisterTopicResponse.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamUnregisterTopicRequest), global::LiveKit.Proto.StreamUnregisterTopicRequest.Parser, new[]{ "RoomHandle", "Topic", "Kind" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamUnregisterTopicResponse), global::LiveKit.Proto.StreamUnregisterTopicResponse.Parser, null, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedTextStreamReader), global::LiveKit.Proto.OwnedTextStreamReader.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderReadIncrementalRequest), global::LiveKit.Proto.TextStreamReaderReadIncrementalRequest.Parser, new[]{ "ReaderHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderReadIncrementalResponse), global::LiveKit.Proto.TextStreamReaderReadIncrementalResponse.Parser, null, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderReadAllRequest), global::LiveKit.Proto.TextStreamReaderReadAllRequest.Parser, new[]{ "ReaderHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderReadAllResponse), global::LiveKit.Proto.TextStreamReaderReadAllResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderReadAllCallback), global::LiveKit.Proto.TextStreamReaderReadAllCallback.Parser, new[]{ "AsyncId", "Content", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamOpenedEvent), global::LiveKit.Proto.TextStreamOpenedEvent.Parser, new[]{ "Reader", "ParticipantIdentity" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderEvent), global::LiveKit.Proto.TextStreamReaderEvent.Parser, new[]{ "ReaderHandle", "ChunkReceived", "Eos" }, new[]{ "Detail" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderChunkReceived), global::LiveKit.Proto.TextStreamReaderChunkReceived.Parser, new[]{ "Content", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamReaderEOS), global::LiveKit.Proto.TextStreamReaderEOS.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedByteStreamReader), global::LiveKit.Proto.OwnedByteStreamReader.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderReadIncrementalRequest), global::LiveKit.Proto.ByteStreamReaderReadIncrementalRequest.Parser, new[]{ "ReaderHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderReadIncrementalResponse), global::LiveKit.Proto.ByteStreamReaderReadIncrementalResponse.Parser, null, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderReadAllRequest), global::LiveKit.Proto.ByteStreamReaderReadAllRequest.Parser, new[]{ "ReaderHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderReadAllResponse), global::LiveKit.Proto.ByteStreamReaderReadAllResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderReadAllCallback), global::LiveKit.Proto.ByteStreamReaderReadAllCallback.Parser, new[]{ "AsyncId", "Content", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderWriteToFileRequest), global::LiveKit.Proto.ByteStreamReaderWriteToFileRequest.Parser, new[]{ "ReaderHandle", "Directory", "NameOverride" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderWriteToFileResponse), global::LiveKit.Proto.ByteStreamReaderWriteToFileResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderWriteToFileCallback), global::LiveKit.Proto.ByteStreamReaderWriteToFileCallback.Parser, new[]{ "AsyncId", "FilePath", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamOpenedEvent), global::LiveKit.Proto.ByteStreamOpenedEvent.Parser, new[]{ "Reader", "ParticipantIdentity" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderEvent), global::LiveKit.Proto.ByteStreamReaderEvent.Parser, new[]{ "ReaderHandle", "ChunkReceived", "Eos" }, new[]{ "Detail" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderChunkReceived), global::LiveKit.Proto.ByteStreamReaderChunkReceived.Parser, new[]{ "Content", "Progress" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamReaderEOS), global::LiveKit.Proto.ByteStreamReaderEOS.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendFileRequest), global::LiveKit.Proto.StreamSendFileRequest.Parser, new[]{ "LocalParticipantHandle", "Options", "FilePath" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendFileResponse), global::LiveKit.Proto.StreamSendFileResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendFileCallback), global::LiveKit.Proto.StreamSendFileCallback.Parser, new[]{ "AsyncId", "Info", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendTextRequest), global::LiveKit.Proto.StreamSendTextRequest.Parser, new[]{ "LocalParticipantHandle", "Options", "Text" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendTextResponse), global::LiveKit.Proto.StreamSendTextResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamSendTextCallback), global::LiveKit.Proto.StreamSendTextCallback.Parser, new[]{ "AsyncId", "Info", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedByteStreamWriter), global::LiveKit.Proto.OwnedByteStreamWriter.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamOpenRequest), global::LiveKit.Proto.ByteStreamOpenRequest.Parser, new[]{ "LocalParticipantHandle", "Options" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamOpenResponse), global::LiveKit.Proto.ByteStreamOpenResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamOpenCallback), global::LiveKit.Proto.ByteStreamOpenCallback.Parser, new[]{ "AsyncId", "Writer", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterWriteRequest), global::LiveKit.Proto.ByteStreamWriterWriteRequest.Parser, new[]{ "WriterHandle", "Bytes" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterWriteResponse), global::LiveKit.Proto.ByteStreamWriterWriteResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterWriteCallback), global::LiveKit.Proto.ByteStreamWriterWriteCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterCloseRequest), global::LiveKit.Proto.ByteStreamWriterCloseRequest.Parser, new[]{ "WriterHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterCloseResponse), global::LiveKit.Proto.ByteStreamWriterCloseResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamWriterCloseCallback), global::LiveKit.Proto.ByteStreamWriterCloseCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedTextStreamWriter), global::LiveKit.Proto.OwnedTextStreamWriter.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamOpenRequest), global::LiveKit.Proto.TextStreamOpenRequest.Parser, new[]{ "LocalParticipantHandle", "Options" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamOpenResponse), global::LiveKit.Proto.TextStreamOpenResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamOpenCallback), global::LiveKit.Proto.TextStreamOpenCallback.Parser, new[]{ "AsyncId", "Writer", "Error" }, new[]{ "Result" }, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterWriteRequest), global::LiveKit.Proto.TextStreamWriterWriteRequest.Parser, new[]{ "WriterHandle", "Text" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterWriteResponse), global::LiveKit.Proto.TextStreamWriterWriteResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterWriteCallback), global::LiveKit.Proto.TextStreamWriterWriteCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterCloseRequest), global::LiveKit.Proto.TextStreamWriterCloseRequest.Parser, new[]{ "WriterHandle" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterCloseResponse), global::LiveKit.Proto.TextStreamWriterCloseResponse.Parser, new[]{ "AsyncId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamWriterCloseCallback), global::LiveKit.Proto.TextStreamWriterCloseCallback.Parser, new[]{ "AsyncId", "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.TextStreamInfo), global::LiveKit.Proto.TextStreamInfo.Parser, new[]{ "StreamId", "Timestamp", "MimeType", "Topic", "TotalLength", "Attributes", "OperationType", "Version", "ReplyToStreamId", "AttachedStreamIds", "Generated" }, null, new[]{ typeof(global::LiveKit.Proto.TextStreamInfo.Types.OperationType) }, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ByteStreamInfo), global::LiveKit.Proto.ByteStreamInfo.Parser, new[]{ "StreamId", "Timestamp", "MimeType", "Topic", "TotalLength", "Attributes", "Name" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamTextOptions), global::LiveKit.Proto.StreamTextOptions.Parser, new[]{ "Topic", "Attributes", "DestinationIdentities", "Id", "OperationType", "Version", "ReplyToStreamId", "AttachedStreamIds", "Generated" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamByteOptions), global::LiveKit.Proto.StreamByteOptions.Parser, new[]{ "Topic", "Attributes", "DestinationIdentities", "Id", "Name", "MimeType", "TotalLength" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamProgress), global::LiveKit.Proto.StreamProgress.Parser, new[]{ "BytesProcessed", "BytesTotal" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.StreamError), global::LiveKit.Proto.StreamError.Parser, new[]{ "Description" }, null, null, null, null)
+ }));
+ }
+ #endregion
+
+ }
+ #region Enums
+ ///
+ /// The kind of stream (currently byte or text).
+ ///
+ public enum StreamKind {
+ [pbr::OriginalName("BYTE")] Byte = 0,
+ [pbr::OriginalName("TEXT")] Text = 1,
+ }
+
+ #endregion
+
+ #region Messages
+ ///
+ /// Registers a topic for incoming streams to be handled.
+ /// Once registered, the client will receive StreamEvent.Opened events as streams are opened
+ /// matching the registered topic.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class StreamRegisterTopicRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamRegisterTopicRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[0]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicRequest(StreamRegisterTopicRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ roomHandle_ = other.roomHandle_;
+ topic_ = other.topic_;
+ kind_ = other.kind_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicRequest Clone() {
+ return new StreamRegisterTopicRequest(this);
+ }
+
+ /// Field number for the "room_handle" field.
+ public const int RoomHandleFieldNumber = 1;
+ private readonly static ulong RoomHandleDefaultValue = 0UL;
+
+ private ulong roomHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong RoomHandle {
+ get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ roomHandle_ = value;
+ }
+ }
+ /// Gets whether the "room_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasRoomHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "room_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearRoomHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "topic" field.
+ public const int TopicFieldNumber = 2;
+ private readonly static string TopicDefaultValue = "";
+
+ private string topic_;
+ ///
+ /// Topic to handle.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Topic {
+ get { return topic_ ?? TopicDefaultValue; }
+ set {
+ topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "topic" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasTopic {
+ get { return topic_ != null; }
+ }
+ /// Clears the value of the "topic" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearTopic() {
+ topic_ = null;
+ }
+
+ /// Field number for the "kind" field.
+ public const int KindFieldNumber = 3;
+ private readonly static global::LiveKit.Proto.StreamKind KindDefaultValue = global::LiveKit.Proto.StreamKind.Byte;
+
+ private global::LiveKit.Proto.StreamKind kind_;
+ ///
+ /// Kind of stream to handle.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.StreamKind Kind {
+ get { if ((_hasBits0 & 2) != 0) { return kind_; } else { return KindDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ kind_ = value;
+ }
+ }
+ /// Gets whether the "kind" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasKind {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "kind" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearKind() {
+ _hasBits0 &= ~2;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as StreamRegisterTopicRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(StreamRegisterTopicRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (RoomHandle != other.RoomHandle) return false;
+ if (Topic != other.Topic) return false;
+ if (Kind != other.Kind) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasRoomHandle) hash ^= RoomHandle.GetHashCode();
+ if (HasTopic) hash ^= Topic.GetHashCode();
+ if (HasKind) hash ^= Kind.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasRoomHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(RoomHandle);
+ }
+ if (HasTopic) {
+ output.WriteRawTag(18);
+ output.WriteString(Topic);
+ }
+ if (HasKind) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) Kind);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasRoomHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(RoomHandle);
+ }
+ if (HasTopic) {
+ output.WriteRawTag(18);
+ output.WriteString(Topic);
+ }
+ if (HasKind) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) Kind);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasRoomHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle);
+ }
+ if (HasTopic) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic);
+ }
+ if (HasKind) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(StreamRegisterTopicRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasRoomHandle) {
+ RoomHandle = other.RoomHandle;
+ }
+ if (other.HasTopic) {
+ Topic = other.Topic;
+ }
+ if (other.HasKind) {
+ Kind = other.Kind;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ RoomHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ Topic = input.ReadString();
+ break;
+ }
+ case 24: {
+ Kind = (global::LiveKit.Proto.StreamKind) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ RoomHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ Topic = input.ReadString();
+ break;
+ }
+ case 24: {
+ Kind = (global::LiveKit.Proto.StreamKind) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class StreamRegisterTopicResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamRegisterTopicResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[1]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicResponse(StreamRegisterTopicResponse other) : this() {
+ error_ = other.error_ != null ? other.error_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamRegisterTopicResponse Clone() {
+ return new StreamRegisterTopicResponse(this);
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 1;
+ private global::LiveKit.Proto.StreamError error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.StreamError Error {
+ get { return error_; }
+ set {
+ error_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as StreamRegisterTopicResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(StreamRegisterTopicResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Error, other.Error)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (error_ != null) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (error_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (error_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (error_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(StreamRegisterTopicResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.error_ != null) {
+ if (error_ == null) {
+ Error = new global::LiveKit.Proto.StreamError();
+ }
+ Error.MergeFrom(other.Error);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (error_ == null) {
+ Error = new global::LiveKit.Proto.StreamError();
+ }
+ input.ReadMessage(Error);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (error_ == null) {
+ Error = new global::LiveKit.Proto.StreamError();
+ }
+ input.ReadMessage(Error);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Unregisters a topic for incoming streams to be handled.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class StreamUnregisterTopicRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamUnregisterTopicRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[2]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicRequest(StreamUnregisterTopicRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ roomHandle_ = other.roomHandle_;
+ topic_ = other.topic_;
+ kind_ = other.kind_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicRequest Clone() {
+ return new StreamUnregisterTopicRequest(this);
+ }
+
+ /// Field number for the "room_handle" field.
+ public const int RoomHandleFieldNumber = 1;
+ private readonly static ulong RoomHandleDefaultValue = 0UL;
+
+ private ulong roomHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong RoomHandle {
+ get { if ((_hasBits0 & 1) != 0) { return roomHandle_; } else { return RoomHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ roomHandle_ = value;
+ }
+ }
+ /// Gets whether the "room_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasRoomHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "room_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearRoomHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "topic" field.
+ public const int TopicFieldNumber = 2;
+ private readonly static string TopicDefaultValue = "";
+
+ private string topic_;
+ ///
+ /// Topic of the handler to unregister.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Topic {
+ get { return topic_ ?? TopicDefaultValue; }
+ set {
+ topic_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "topic" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasTopic {
+ get { return topic_ != null; }
+ }
+ /// Clears the value of the "topic" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearTopic() {
+ topic_ = null;
+ }
+
+ /// Field number for the "kind" field.
+ public const int KindFieldNumber = 3;
+ private readonly static global::LiveKit.Proto.StreamKind KindDefaultValue = global::LiveKit.Proto.StreamKind.Byte;
+
+ private global::LiveKit.Proto.StreamKind kind_;
+ ///
+ /// Kind of handler to unregister.
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.StreamKind Kind {
+ get { if ((_hasBits0 & 2) != 0) { return kind_; } else { return KindDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ kind_ = value;
+ }
+ }
+ /// Gets whether the "kind" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasKind {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "kind" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearKind() {
+ _hasBits0 &= ~2;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as StreamUnregisterTopicRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(StreamUnregisterTopicRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (RoomHandle != other.RoomHandle) return false;
+ if (Topic != other.Topic) return false;
+ if (Kind != other.Kind) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasRoomHandle) hash ^= RoomHandle.GetHashCode();
+ if (HasTopic) hash ^= Topic.GetHashCode();
+ if (HasKind) hash ^= Kind.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasRoomHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(RoomHandle);
+ }
+ if (HasTopic) {
+ output.WriteRawTag(18);
+ output.WriteString(Topic);
+ }
+ if (HasKind) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) Kind);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasRoomHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(RoomHandle);
+ }
+ if (HasTopic) {
+ output.WriteRawTag(18);
+ output.WriteString(Topic);
+ }
+ if (HasKind) {
+ output.WriteRawTag(24);
+ output.WriteEnum((int) Kind);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasRoomHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RoomHandle);
+ }
+ if (HasTopic) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Topic);
+ }
+ if (HasKind) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(StreamUnregisterTopicRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasRoomHandle) {
+ RoomHandle = other.RoomHandle;
+ }
+ if (other.HasTopic) {
+ Topic = other.Topic;
+ }
+ if (other.HasKind) {
+ Kind = other.Kind;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ RoomHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ Topic = input.ReadString();
+ break;
+ }
+ case 24: {
+ Kind = (global::LiveKit.Proto.StreamKind) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ RoomHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ Topic = input.ReadString();
+ break;
+ }
+ case 24: {
+ Kind = (global::LiveKit.Proto.StreamKind) input.ReadEnum();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class StreamUnregisterTopicResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StreamUnregisterTopicResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[3]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicResponse(StreamUnregisterTopicResponse other) : this() {
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public StreamUnregisterTopicResponse Clone() {
+ return new StreamUnregisterTopicResponse(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as StreamUnregisterTopicResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(StreamUnregisterTopicResponse 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(StreamUnregisterTopicResponse other) {
+ if (other == null) {
+ return;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// A reader for an incoming stream.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class OwnedTextStreamReader : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedTextStreamReader());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[4]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedTextStreamReader() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedTextStreamReader(OwnedTextStreamReader other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedTextStreamReader Clone() {
+ return new OwnedTextStreamReader(this);
+ }
+
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
+ set {
+ handle_ = value;
+ }
+ }
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.TextStreamInfo info_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.TextStreamInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as OwnedTextStreamReader);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(OwnedTextStreamReader other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(OwnedTextStreamReader other) {
+ if (other == null) {
+ return;
+ }
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.TextStreamInfo();
+ }
+ Info.MergeFrom(other.Info);
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.TextStreamInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.TextStreamInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Reads an incoming text stream incrementally.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class TextStreamReaderReadIncrementalRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextStreamReaderReadIncrementalRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[5]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalRequest(TextStreamReaderReadIncrementalRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ readerHandle_ = other.readerHandle_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalRequest Clone() {
+ return new TextStreamReaderReadIncrementalRequest(this);
+ }
+
+ /// Field number for the "reader_handle" field.
+ public const int ReaderHandleFieldNumber = 1;
+ private readonly static ulong ReaderHandleDefaultValue = 0UL;
+
+ private ulong readerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ReaderHandle {
+ get { if ((_hasBits0 & 1) != 0) { return readerHandle_; } else { return ReaderHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ readerHandle_ = value;
+ }
+ }
+ /// Gets whether the "reader_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasReaderHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "reader_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearReaderHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TextStreamReaderReadIncrementalRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TextStreamReaderReadIncrementalRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ReaderHandle != other.ReaderHandle) 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 (HasReaderHandle) hash ^= ReaderHandle.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 (HasReaderHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ReaderHandle);
+ }
+ 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 (HasReaderHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ReaderHandle);
+ }
+ 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 (HasReaderHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ReaderHandle);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TextStreamReaderReadIncrementalRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasReaderHandle) {
+ ReaderHandle = other.ReaderHandle;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ReaderHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ReaderHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class TextStreamReaderReadIncrementalResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextStreamReaderReadIncrementalResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[6]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalResponse(TextStreamReaderReadIncrementalResponse other) : this() {
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadIncrementalResponse Clone() {
+ return new TextStreamReaderReadIncrementalResponse(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TextStreamReaderReadIncrementalResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TextStreamReaderReadIncrementalResponse 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(TextStreamReaderReadIncrementalResponse other) {
+ if (other == null) {
+ return;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ }
+ }
+ }
+ #endif
+
+ }
+
+ ///
+ /// Reads an incoming text stream in its entirety.
+ ///
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class TextStreamReaderReadAllRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextStreamReaderReadAllRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.DataStreamReflection.Descriptor.MessageTypes[7]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadAllRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadAllRequest(TextStreamReaderReadAllRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ readerHandle_ = other.readerHandle_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public TextStreamReaderReadAllRequest Clone() {
+ return new TextStreamReaderReadAllRequest(this);
+ }
+
+ /// Field number for the "reader_handle" field.
+ public const int ReaderHandleFieldNumber = 1;
+ private readonly static ulong ReaderHandleDefaultValue = 0UL;
+
+ private ulong readerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ReaderHandle {
+ get { if ((_hasBits0 & 1) != 0) { return readerHandle_; } else { return ReaderHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ readerHandle_ = value;
+ }
+ }
+ /// Gets whether the "reader_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasReaderHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "reader_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearReaderHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as TextStreamReaderReadAllRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(TextStreamReaderReadAllRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ReaderHandle != other.ReaderHandle) 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 (HasReaderHandle) hash ^= ReaderHandle.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 (HasReaderHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ReaderHandle);
+ }
+ 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 (HasReaderHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ReaderHandle);
+ }
+ 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 (HasReaderHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ReaderHandle);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(TextStreamReaderReadAllRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasReaderHandle) {
+ ReaderHandle = other.ReaderHandle;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ReaderHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ReaderHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class TextStreamReaderReadAllResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextStreamReaderReadAllResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser