From 9aaec7dd1b3d2583591002eec56b8b8c8a59f9b5 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 17:33:42 +0800 Subject: [PATCH 01/12] update protocol. --- lib/src/proto/livekit_models.pb.dart | 3323 ++++++--------- lib/src/proto/livekit_models.pbenum.dart | 487 +-- lib/src/proto/livekit_models.pbjson.dart | 1207 +++--- lib/src/proto/livekit_models.pbserver.dart | 22 +- lib/src/proto/livekit_rtc.pb.dart | 4338 ++++++++------------ lib/src/proto/livekit_rtc.pbenum.dart | 88 +- lib/src/proto/livekit_rtc.pbjson.dart | 1369 +++--- lib/src/proto/livekit_rtc.pbserver.dart | 22 +- 8 files changed, 4002 insertions(+), 6854 deletions(-) diff --git a/lib/src/proto/livekit_models.pb.dart b/lib/src/proto/livekit_models.pb.dart index 8851a2e2..088f43d8 100644 --- a/lib/src/proto/livekit_models.pb.dart +++ b/lib/src/proto/livekit_models.pb.dart @@ -1,23 +1,13 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_models.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import import 'dart:core' as $core; @@ -25,79 +15,11 @@ import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; import 'google/protobuf/timestamp.pb.dart' as $0; - import 'livekit_models.pbenum.dart'; export 'livekit_models.pbenum.dart'; class Room extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Room', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'emptyTimeout', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'maxParticipants', - $pb.PbFieldType.OU3) - ..aInt64( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'creationTime') - ..aOS( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'turnPassword') - ..pc( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enabledCodecs', - $pb.PbFieldType.PM, - subBuilder: Codec.create) - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metadata') - ..a<$core.int>( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numParticipants', - $pb.PbFieldType.OU3) - ..aOB( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'activeRecording') - ..hasRequiredFields = false; - - Room._() : super(); factory Room({ $core.String? sid, $core.String? name, @@ -109,73 +31,93 @@ class Room extends $pb.GeneratedMessage { $core.String? metadata, $core.int? numParticipants, $core.bool? activeRecording, + $core.int? numPublishers, + PlayoutDelay? playoutDelay, }) { - final _result = create(); + final $result = create(); if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (name != null) { - _result.name = name; + $result.name = name; } if (emptyTimeout != null) { - _result.emptyTimeout = emptyTimeout; + $result.emptyTimeout = emptyTimeout; } if (maxParticipants != null) { - _result.maxParticipants = maxParticipants; + $result.maxParticipants = maxParticipants; } if (creationTime != null) { - _result.creationTime = creationTime; + $result.creationTime = creationTime; } if (turnPassword != null) { - _result.turnPassword = turnPassword; + $result.turnPassword = turnPassword; } if (enabledCodecs != null) { - _result.enabledCodecs.addAll(enabledCodecs); + $result.enabledCodecs.addAll(enabledCodecs); } if (metadata != null) { - _result.metadata = metadata; + $result.metadata = metadata; } if (numParticipants != null) { - _result.numParticipants = numParticipants; + $result.numParticipants = numParticipants; } if (activeRecording != null) { - _result.activeRecording = activeRecording; + $result.activeRecording = activeRecording; + } + if (numPublishers != null) { + $result.numPublishers = numPublishers; } - return _result; + if (playoutDelay != null) { + $result.playoutDelay = playoutDelay; + } + return $result; } - factory Room.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Room.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + Room._() : super(); + factory Room.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Room.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Room', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sid') + ..aOS(2, _omitFieldNames ? '' : 'name') + ..a<$core.int>(3, _omitFieldNames ? '' : 'emptyTimeout', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'maxParticipants', $pb.PbFieldType.OU3) + ..aInt64(5, _omitFieldNames ? '' : 'creationTime') + ..aOS(6, _omitFieldNames ? '' : 'turnPassword') + ..pc(7, _omitFieldNames ? '' : 'enabledCodecs', $pb.PbFieldType.PM, subBuilder: Codec.create) + ..aOS(8, _omitFieldNames ? '' : 'metadata') + ..a<$core.int>(9, _omitFieldNames ? '' : 'numParticipants', $pb.PbFieldType.OU3) + ..aOB(10, _omitFieldNames ? '' : 'activeRecording') + ..a<$core.int>(11, _omitFieldNames ? '' : 'numPublishers', $pb.PbFieldType.OU3) + ..aOM(12, _omitFieldNames ? '' : 'playoutDelay', subBuilder: PlayoutDelay.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Room clone() => Room()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Room copyWith(void Function(Room) updates) => - super.copyWith((message) => updates(message as Room)) - as Room; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Room copyWith(void Function(Room) updates) => super.copyWith((message) => updates(message as Room)) as Room; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Room create() => Room._(); Room createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Room getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Room getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Room? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { - $_setString(0, v); - } - + set sid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -184,10 +126,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { - $_setString(1, v); - } - + set name($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -196,10 +135,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get emptyTimeout => $_getIZ(2); @$pb.TagNumber(3) - set emptyTimeout($core.int v) { - $_setUnsignedInt32(2, v); - } - + set emptyTimeout($core.int v) { $_setUnsignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasEmptyTimeout() => $_has(2); @$pb.TagNumber(3) @@ -208,10 +144,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get maxParticipants => $_getIZ(3); @$pb.TagNumber(4) - set maxParticipants($core.int v) { - $_setUnsignedInt32(3, v); - } - + set maxParticipants($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasMaxParticipants() => $_has(3); @$pb.TagNumber(4) @@ -220,10 +153,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get creationTime => $_getI64(4); @$pb.TagNumber(5) - set creationTime($fixnum.Int64 v) { - $_setInt64(4, v); - } - + set creationTime($fixnum.Int64 v) { $_setInt64(4, v); } @$pb.TagNumber(5) $core.bool hasCreationTime() => $_has(4); @$pb.TagNumber(5) @@ -232,10 +162,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get turnPassword => $_getSZ(5); @$pb.TagNumber(6) - set turnPassword($core.String v) { - $_setString(5, v); - } - + set turnPassword($core.String v) { $_setString(5, v); } @$pb.TagNumber(6) $core.bool hasTurnPassword() => $_has(5); @$pb.TagNumber(6) @@ -247,10 +174,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get metadata => $_getSZ(7); @$pb.TagNumber(8) - set metadata($core.String v) { - $_setString(7, v); - } - + set metadata($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) $core.bool hasMetadata() => $_has(7); @$pb.TagNumber(8) @@ -259,10 +183,7 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.int get numParticipants => $_getIZ(8); @$pb.TagNumber(9) - set numParticipants($core.int v) { - $_setUnsignedInt32(8, v); - } - + set numParticipants($core.int v) { $_setUnsignedInt32(8, v); } @$pb.TagNumber(9) $core.bool hasNumParticipants() => $_has(8); @$pb.TagNumber(9) @@ -271,85 +192,82 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get activeRecording => $_getBF(9); @$pb.TagNumber(10) - set activeRecording($core.bool v) { - $_setBool(9, v); - } - + set activeRecording($core.bool v) { $_setBool(9, v); } @$pb.TagNumber(10) $core.bool hasActiveRecording() => $_has(9); @$pb.TagNumber(10) void clearActiveRecording() => clearField(10); + + @$pb.TagNumber(11) + $core.int get numPublishers => $_getIZ(10); + @$pb.TagNumber(11) + set numPublishers($core.int v) { $_setUnsignedInt32(10, v); } + @$pb.TagNumber(11) + $core.bool hasNumPublishers() => $_has(10); + @$pb.TagNumber(11) + void clearNumPublishers() => clearField(11); + + @$pb.TagNumber(12) + PlayoutDelay get playoutDelay => $_getN(11); + @$pb.TagNumber(12) + set playoutDelay(PlayoutDelay v) { setField(12, v); } + @$pb.TagNumber(12) + $core.bool hasPlayoutDelay() => $_has(11); + @$pb.TagNumber(12) + void clearPlayoutDelay() => clearField(12); + @$pb.TagNumber(12) + PlayoutDelay ensurePlayoutDelay() => $_ensure(11); } class Codec extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Codec', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mime') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fmtpLine') - ..hasRequiredFields = false; - - Codec._() : super(); factory Codec({ $core.String? mime, $core.String? fmtpLine, }) { - final _result = create(); + final $result = create(); if (mime != null) { - _result.mime = mime; + $result.mime = mime; } if (fmtpLine != null) { - _result.fmtpLine = fmtpLine; + $result.fmtpLine = fmtpLine; } - return _result; + return $result; } - factory Codec.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Codec.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + Codec._() : super(); + factory Codec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Codec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Codec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'mime') + ..aOS(2, _omitFieldNames ? '' : 'fmtpLine') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Codec clone() => Codec()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Codec copyWith(void Function(Codec) updates) => - super.copyWith((message) => updates(message as Codec)) - as Codec; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Codec copyWith(void Function(Codec) updates) => super.copyWith((message) => updates(message as Codec)) as Codec; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Codec create() => Codec._(); Codec createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Codec getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Codec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Codec? _defaultInstance; @$pb.TagNumber(1) $core.String get mime => $_getSZ(0); @$pb.TagNumber(1) - set mime($core.String v) { - $_setString(0, v); - } - + set mime($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMime() => $_has(0); @$pb.TagNumber(1) @@ -358,68 +276,78 @@ class Codec extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get fmtpLine => $_getSZ(1); @$pb.TagNumber(2) - set fmtpLine($core.String v) { - $_setString(1, v); - } - + set fmtpLine($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasFmtpLine() => $_has(1); @$pb.TagNumber(2) void clearFmtpLine() => clearField(2); } -class ParticipantPermission extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParticipantPermission', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canSubscribe') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canPublish') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canPublishData') - ..aOB( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'hidden') - ..aOB( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'recorder') - ..pc( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canPublishSources', - $pb.PbFieldType.KE, - valueOf: TrackSource.valueOf, - enumValues: TrackSource.values, - defaultEnumValue: TrackSource.UNKNOWN) - ..aOB( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canUpdateMetadata') - ..hasRequiredFields = false; +class PlayoutDelay extends $pb.GeneratedMessage { + factory PlayoutDelay({ + $core.bool? enabled, + $core.int? min, + }) { + final $result = create(); + if (enabled != null) { + $result.enabled = enabled; + } + if (min != null) { + $result.min = min; + } + return $result; + } + PlayoutDelay._() : super(); + factory PlayoutDelay.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory PlayoutDelay.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayoutDelay', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'enabled') + ..a<$core.int>(2, _omitFieldNames ? '' : 'min', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PlayoutDelay clone() => PlayoutDelay()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PlayoutDelay copyWith(void Function(PlayoutDelay) updates) => super.copyWith((message) => updates(message as PlayoutDelay)) as PlayoutDelay; - ParticipantPermission._() : super(); + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PlayoutDelay create() => PlayoutDelay._(); + PlayoutDelay createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PlayoutDelay getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlayoutDelay? _defaultInstance; + + @$pb.TagNumber(1) + $core.bool get enabled => $_getBF(0); + @$pb.TagNumber(1) + set enabled($core.bool v) { $_setBool(0, v); } + @$pb.TagNumber(1) + $core.bool hasEnabled() => $_has(0); + @$pb.TagNumber(1) + void clearEnabled() => clearField(1); + + @$pb.TagNumber(2) + $core.int get min => $_getIZ(1); + @$pb.TagNumber(2) + set min($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasMin() => $_has(1); + @$pb.TagNumber(2) + void clearMin() => clearField(2); +} + +class ParticipantPermission extends $pb.GeneratedMessage { factory ParticipantPermission({ $core.bool? canSubscribe, $core.bool? canPublish, @@ -429,129 +357,125 @@ class ParticipantPermission extends $pb.GeneratedMessage { $core.Iterable? canPublishSources, $core.bool? canUpdateMetadata, }) { - final _result = create(); + final $result = create(); if (canSubscribe != null) { - _result.canSubscribe = canSubscribe; + $result.canSubscribe = canSubscribe; } if (canPublish != null) { - _result.canPublish = canPublish; + $result.canPublish = canPublish; } if (canPublishData != null) { - _result.canPublishData = canPublishData; + $result.canPublishData = canPublishData; } if (hidden != null) { - _result.hidden = hidden; + $result.hidden = hidden; } if (recorder != null) { - _result.recorder = recorder; + $result.recorder = recorder; } if (canPublishSources != null) { - _result.canPublishSources.addAll(canPublishSources); + $result.canPublishSources.addAll(canPublishSources); } if (canUpdateMetadata != null) { - _result.canUpdateMetadata = canUpdateMetadata; + $result.canUpdateMetadata = canUpdateMetadata; } - return _result; + return $result; } - factory ParticipantPermission.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ParticipantPermission.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ParticipantPermission clone() => - ParticipantPermission()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantPermission copyWith( - void Function(ParticipantPermission) updates) => - super.copyWith((message) => updates(message as ParticipantPermission)) - as ParticipantPermission; // ignore: deprecated_member_use + ParticipantPermission._() : super(); + factory ParticipantPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ParticipantPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'canSubscribe') + ..aOB(2, _omitFieldNames ? '' : 'canPublish') + ..aOB(3, _omitFieldNames ? '' : 'canPublishData') + ..aOB(7, _omitFieldNames ? '' : 'hidden') + ..aOB(8, _omitFieldNames ? '' : 'recorder') + ..pc(9, _omitFieldNames ? '' : 'canPublishSources', $pb.PbFieldType.KE, valueOf: TrackSource.valueOf, enumValues: TrackSource.values, defaultEnumValue: TrackSource.UNKNOWN) + ..aOB(10, _omitFieldNames ? '' : 'canUpdateMetadata') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ParticipantPermission clone() => ParticipantPermission()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantPermission copyWith(void Function(ParticipantPermission) updates) => super.copyWith((message) => updates(message as ParticipantPermission)) as ParticipantPermission; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParticipantPermission create() => ParticipantPermission._(); ParticipantPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantPermission getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ParticipantPermission? _defaultInstance; + /// allow participant to subscribe to other tracks in the room @$pb.TagNumber(1) $core.bool get canSubscribe => $_getBF(0); @$pb.TagNumber(1) - set canSubscribe($core.bool v) { - $_setBool(0, v); - } - + set canSubscribe($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasCanSubscribe() => $_has(0); @$pb.TagNumber(1) void clearCanSubscribe() => clearField(1); + /// allow participant to publish new tracks to room @$pb.TagNumber(2) $core.bool get canPublish => $_getBF(1); @$pb.TagNumber(2) - set canPublish($core.bool v) { - $_setBool(1, v); - } - + set canPublish($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasCanPublish() => $_has(1); @$pb.TagNumber(2) void clearCanPublish() => clearField(2); + /// allow participant to publish data @$pb.TagNumber(3) $core.bool get canPublishData => $_getBF(2); @$pb.TagNumber(3) - set canPublishData($core.bool v) { - $_setBool(2, v); - } - + set canPublishData($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasCanPublishData() => $_has(2); @$pb.TagNumber(3) void clearCanPublishData() => clearField(3); + /// indicates that it's hidden to others @$pb.TagNumber(7) $core.bool get hidden => $_getBF(3); @$pb.TagNumber(7) - set hidden($core.bool v) { - $_setBool(3, v); - } - + set hidden($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(7) $core.bool hasHidden() => $_has(3); @$pb.TagNumber(7) void clearHidden() => clearField(7); + /// indicates it's a recorder instance @$pb.TagNumber(8) $core.bool get recorder => $_getBF(4); @$pb.TagNumber(8) - set recorder($core.bool v) { - $_setBool(4, v); - } - + set recorder($core.bool v) { $_setBool(4, v); } @$pb.TagNumber(8) $core.bool hasRecorder() => $_has(4); @$pb.TagNumber(8) void clearRecorder() => clearField(8); + /// sources that are allowed to be published @$pb.TagNumber(9) $core.List get canPublishSources => $_getList(5); + /// indicates that participant can update own metadata @$pb.TagNumber(10) $core.bool get canUpdateMetadata => $_getBF(6); @$pb.TagNumber(10) - set canUpdateMetadata($core.bool v) { - $_setBool(6, v); - } - + set canUpdateMetadata($core.bool v) { $_setBool(6, v); } @$pb.TagNumber(10) $core.bool hasCanUpdateMetadata() => $_has(6); @$pb.TagNumber(10) @@ -559,81 +483,6 @@ class ParticipantPermission extends $pb.GeneratedMessage { } class ParticipantInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParticipantInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'identity') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: ParticipantInfo_State.JOINING, - valueOf: ParticipantInfo_State.valueOf, - enumValues: ParticipantInfo_State.values) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'tracks', - $pb.PbFieldType.PM, - subBuilder: TrackInfo.create) - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metadata') - ..aInt64( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'joinedAt') - ..aOS( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.int>( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version', - $pb.PbFieldType.OU3) - ..aOM( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'permission', - subBuilder: ParticipantPermission.create) - ..aOS( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'region') - ..aOB( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'isPublisher') - ..hasRequiredFields = false; - - ParticipantInfo._() : super(); factory ParticipantInfo({ $core.String? sid, $core.String? identity, @@ -647,76 +496,86 @@ class ParticipantInfo extends $pb.GeneratedMessage { $core.String? region, $core.bool? isPublisher, }) { - final _result = create(); + final $result = create(); if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (identity != null) { - _result.identity = identity; + $result.identity = identity; } if (state != null) { - _result.state = state; + $result.state = state; } if (tracks != null) { - _result.tracks.addAll(tracks); + $result.tracks.addAll(tracks); } if (metadata != null) { - _result.metadata = metadata; + $result.metadata = metadata; } if (joinedAt != null) { - _result.joinedAt = joinedAt; + $result.joinedAt = joinedAt; } if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } if (permission != null) { - _result.permission = permission; + $result.permission = permission; } if (region != null) { - _result.region = region; + $result.region = region; } if (isPublisher != null) { - _result.isPublisher = isPublisher; + $result.isPublisher = isPublisher; } - return _result; + return $result; } - factory ParticipantInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ParticipantInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ParticipantInfo._() : super(); + factory ParticipantInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ParticipantInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sid') + ..aOS(2, _omitFieldNames ? '' : 'identity') + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: ParticipantInfo_State.JOINING, valueOf: ParticipantInfo_State.valueOf, enumValues: ParticipantInfo_State.values) + ..pc(4, _omitFieldNames ? '' : 'tracks', $pb.PbFieldType.PM, subBuilder: TrackInfo.create) + ..aOS(5, _omitFieldNames ? '' : 'metadata') + ..aInt64(6, _omitFieldNames ? '' : 'joinedAt') + ..aOS(9, _omitFieldNames ? '' : 'name') + ..a<$core.int>(10, _omitFieldNames ? '' : 'version', $pb.PbFieldType.OU3) + ..aOM(11, _omitFieldNames ? '' : 'permission', subBuilder: ParticipantPermission.create) + ..aOS(12, _omitFieldNames ? '' : 'region') + ..aOB(13, _omitFieldNames ? '' : 'isPublisher') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantInfo clone() => ParticipantInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantInfo copyWith(void Function(ParticipantInfo) updates) => - super.copyWith((message) => updates(message as ParticipantInfo)) - as ParticipantInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantInfo copyWith(void Function(ParticipantInfo) updates) => super.copyWith((message) => updates(message as ParticipantInfo)) as ParticipantInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParticipantInfo create() => ParticipantInfo._(); ParticipantInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ParticipantInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { - $_setString(0, v); - } - + set sid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -725,10 +584,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get identity => $_getSZ(1); @$pb.TagNumber(2) - set identity($core.String v) { - $_setString(1, v); - } - + set identity($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasIdentity() => $_has(1); @$pb.TagNumber(2) @@ -737,10 +593,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) ParticipantInfo_State get state => $_getN(2); @$pb.TagNumber(3) - set state(ParticipantInfo_State v) { - setField(3, v); - } - + set state(ParticipantInfo_State v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasState() => $_has(2); @$pb.TagNumber(3) @@ -752,22 +605,17 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get metadata => $_getSZ(4); @$pb.TagNumber(5) - set metadata($core.String v) { - $_setString(4, v); - } - + set metadata($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasMetadata() => $_has(4); @$pb.TagNumber(5) void clearMetadata() => clearField(5); + /// timestamp when participant joined room, in seconds @$pb.TagNumber(6) $fixnum.Int64 get joinedAt => $_getI64(5); @$pb.TagNumber(6) - set joinedAt($fixnum.Int64 v) { - $_setInt64(5, v); - } - + set joinedAt($fixnum.Int64 v) { $_setInt64(5, v); } @$pb.TagNumber(6) $core.bool hasJoinedAt() => $_has(5); @$pb.TagNumber(6) @@ -776,10 +624,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get name => $_getSZ(6); @$pb.TagNumber(9) - set name($core.String v) { - $_setString(6, v); - } - + set name($core.String v) { $_setString(6, v); } @$pb.TagNumber(9) $core.bool hasName() => $_has(6); @$pb.TagNumber(9) @@ -788,10 +633,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.int get version => $_getIZ(7); @$pb.TagNumber(10) - set version($core.int v) { - $_setUnsignedInt32(7, v); - } - + set version($core.int v) { $_setUnsignedInt32(7, v); } @$pb.TagNumber(10) $core.bool hasVersion() => $_has(7); @$pb.TagNumber(10) @@ -800,10 +642,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(11) ParticipantPermission get permission => $_getN(8); @$pb.TagNumber(11) - set permission(ParticipantPermission v) { - setField(11, v); - } - + set permission(ParticipantPermission v) { setField(11, v); } @$pb.TagNumber(11) $core.bool hasPermission() => $_has(8); @$pb.TagNumber(11) @@ -814,22 +653,18 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get region => $_getSZ(9); @$pb.TagNumber(12) - set region($core.String v) { - $_setString(9, v); - } - + set region($core.String v) { $_setString(9, v); } @$pb.TagNumber(12) $core.bool hasRegion() => $_has(9); @$pb.TagNumber(12) void clearRegion() => clearField(12); + /// indicates the participant has an active publisher connection + /// and can publish to the server @$pb.TagNumber(13) $core.bool get isPublisher => $_getBF(10); @$pb.TagNumber(13) - set isPublisher($core.bool v) { - $_setBool(10, v); - } - + set isPublisher($core.bool v) { $_setBool(10, v); } @$pb.TagNumber(13) $core.bool hasIsPublisher() => $_has(10); @$pb.TagNumber(13) @@ -837,136 +672,96 @@ class ParticipantInfo extends $pb.GeneratedMessage { } class Encryption extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Encryption', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - Encryption._() : super(); factory Encryption() => create(); - factory Encryption.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Encryption.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + Encryption._() : super(); + factory Encryption.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Encryption.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Encryption', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Encryption clone() => Encryption()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Encryption copyWith(void Function(Encryption) updates) => - super.copyWith((message) => updates(message as Encryption)) - as Encryption; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Encryption copyWith(void Function(Encryption) updates) => super.copyWith((message) => updates(message as Encryption)) as Encryption; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Encryption create() => Encryption._(); Encryption createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Encryption getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static Encryption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Encryption? _defaultInstance; } class SimulcastCodecInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SimulcastCodecInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mimeType') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mid') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cid') - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'layers', - $pb.PbFieldType.PM, - subBuilder: VideoLayer.create) - ..hasRequiredFields = false; - - SimulcastCodecInfo._() : super(); factory SimulcastCodecInfo({ $core.String? mimeType, $core.String? mid, $core.String? cid, $core.Iterable? layers, }) { - final _result = create(); + final $result = create(); if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } if (mid != null) { - _result.mid = mid; + $result.mid = mid; } if (cid != null) { - _result.cid = cid; + $result.cid = cid; } if (layers != null) { - _result.layers.addAll(layers); + $result.layers.addAll(layers); } - return _result; + return $result; } - factory SimulcastCodecInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SimulcastCodecInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SimulcastCodecInfo._() : super(); + factory SimulcastCodecInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SimulcastCodecInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulcastCodecInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'mimeType') + ..aOS(2, _omitFieldNames ? '' : 'mid') + ..aOS(3, _omitFieldNames ? '' : 'cid') + ..pc(4, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayer.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulcastCodecInfo clone() => SimulcastCodecInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulcastCodecInfo copyWith(void Function(SimulcastCodecInfo) updates) => - super.copyWith((message) => updates(message as SimulcastCodecInfo)) - as SimulcastCodecInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulcastCodecInfo copyWith(void Function(SimulcastCodecInfo) updates) => super.copyWith((message) => updates(message as SimulcastCodecInfo)) as SimulcastCodecInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SimulcastCodecInfo create() => SimulcastCodecInfo._(); SimulcastCodecInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulcastCodecInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SimulcastCodecInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SimulcastCodecInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get mimeType => $_getSZ(0); @$pb.TagNumber(1) - set mimeType($core.String v) { - $_setString(0, v); - } - + set mimeType($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMimeType() => $_has(0); @$pb.TagNumber(1) @@ -975,10 +770,7 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get mid => $_getSZ(1); @$pb.TagNumber(2) - set mid($core.String v) { - $_setString(1, v); - } - + set mid($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasMid() => $_has(1); @$pb.TagNumber(2) @@ -987,10 +779,7 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get cid => $_getSZ(2); @$pb.TagNumber(3) - set cid($core.String v) { - $_setString(2, v); - } - + set cid($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasCid() => $_has(2); @$pb.TagNumber(3) @@ -1001,116 +790,6 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { } class TrackInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrackInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: TrackType.AUDIO, - valueOf: TrackType.valueOf, - enumValues: TrackType.values) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'muted') - ..a<$core.int>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'height', - $pb.PbFieldType.OU3) - ..aOB( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'simulcast') - ..aOB( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableDtx') - ..e( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'source', - $pb.PbFieldType.OE, - defaultOrMaker: TrackSource.UNKNOWN, - valueOf: TrackSource.valueOf, - enumValues: TrackSource.values) - ..pc( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'layers', - $pb.PbFieldType.PM, - subBuilder: VideoLayer.create) - ..aOS( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mimeType') - ..aOS( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mid') - ..pc( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'codecs', - $pb.PbFieldType.PM, - subBuilder: SimulcastCodecInfo.create) - ..aOB( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'stereo') - ..aOB( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableRed') - ..e( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'encryption', - $pb.PbFieldType.OE, - defaultOrMaker: Encryption_Type.NONE, - valueOf: Encryption_Type.valueOf, - enumValues: Encryption_Type.values) - ..hasRequiredFields = false; - - TrackInfo._() : super(); factory TrackInfo({ $core.String? sid, TrackType? type, @@ -1128,91 +807,112 @@ class TrackInfo extends $pb.GeneratedMessage { $core.bool? stereo, $core.bool? disableRed, Encryption_Type? encryption, + $core.String? stream, }) { - final _result = create(); + final $result = create(); if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (type != null) { - _result.type = type; + $result.type = type; } if (name != null) { - _result.name = name; + $result.name = name; } if (muted != null) { - _result.muted = muted; + $result.muted = muted; } if (width != null) { - _result.width = width; + $result.width = width; } if (height != null) { - _result.height = height; + $result.height = height; } if (simulcast != null) { - _result.simulcast = simulcast; + $result.simulcast = simulcast; } if (disableDtx != null) { - _result.disableDtx = disableDtx; + $result.disableDtx = disableDtx; } if (source != null) { - _result.source = source; + $result.source = source; } if (layers != null) { - _result.layers.addAll(layers); + $result.layers.addAll(layers); } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } if (mid != null) { - _result.mid = mid; + $result.mid = mid; } if (codecs != null) { - _result.codecs.addAll(codecs); + $result.codecs.addAll(codecs); } if (stereo != null) { - _result.stereo = stereo; + $result.stereo = stereo; } if (disableRed != null) { - _result.disableRed = disableRed; + $result.disableRed = disableRed; } if (encryption != null) { - _result.encryption = encryption; + $result.encryption = encryption; + } + if (stream != null) { + $result.stream = stream; } - return _result; + return $result; } - factory TrackInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TrackInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + TrackInfo._() : super(); + factory TrackInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TrackInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sid') + ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: TrackType.AUDIO, valueOf: TrackType.valueOf, enumValues: TrackType.values) + ..aOS(3, _omitFieldNames ? '' : 'name') + ..aOB(4, _omitFieldNames ? '' : 'muted') + ..a<$core.int>(5, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..aOB(7, _omitFieldNames ? '' : 'simulcast') + ..aOB(8, _omitFieldNames ? '' : 'disableDtx') + ..e(9, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, defaultOrMaker: TrackSource.UNKNOWN, valueOf: TrackSource.valueOf, enumValues: TrackSource.values) + ..pc(10, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayer.create) + ..aOS(11, _omitFieldNames ? '' : 'mimeType') + ..aOS(12, _omitFieldNames ? '' : 'mid') + ..pc(13, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, subBuilder: SimulcastCodecInfo.create) + ..aOB(14, _omitFieldNames ? '' : 'stereo') + ..aOB(15, _omitFieldNames ? '' : 'disableRed') + ..e(16, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, defaultOrMaker: Encryption_Type.NONE, valueOf: Encryption_Type.valueOf, enumValues: Encryption_Type.values) + ..aOS(17, _omitFieldNames ? '' : 'stream') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrackInfo clone() => TrackInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackInfo copyWith(void Function(TrackInfo) updates) => - super.copyWith((message) => updates(message as TrackInfo)) - as TrackInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackInfo copyWith(void Function(TrackInfo) updates) => super.copyWith((message) => updates(message as TrackInfo)) as TrackInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrackInfo create() => TrackInfo._(); TrackInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackInfo getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrackInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { - $_setString(0, v); - } - + set sid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -1221,10 +921,7 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) TrackType get type => $_getN(1); @$pb.TagNumber(2) - set type(TrackType v) { - setField(2, v); - } - + set type(TrackType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) @@ -1233,10 +930,7 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) - set name($core.String v) { - $_setString(2, v); - } - + set name($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasName() => $_has(2); @$pb.TagNumber(3) @@ -1245,70 +939,58 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get muted => $_getBF(3); @$pb.TagNumber(4) - set muted($core.bool v) { - $_setBool(3, v); - } - + set muted($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasMuted() => $_has(3); @$pb.TagNumber(4) void clearMuted() => clearField(4); + /// original width of video (unset for audio) + /// clients may receive a lower resolution version with simulcast @$pb.TagNumber(5) $core.int get width => $_getIZ(4); @$pb.TagNumber(5) - set width($core.int v) { - $_setUnsignedInt32(4, v); - } - + set width($core.int v) { $_setUnsignedInt32(4, v); } @$pb.TagNumber(5) $core.bool hasWidth() => $_has(4); @$pb.TagNumber(5) void clearWidth() => clearField(5); + /// original height of video (unset for audio) @$pb.TagNumber(6) $core.int get height => $_getIZ(5); @$pb.TagNumber(6) - set height($core.int v) { - $_setUnsignedInt32(5, v); - } - + set height($core.int v) { $_setUnsignedInt32(5, v); } @$pb.TagNumber(6) $core.bool hasHeight() => $_has(5); @$pb.TagNumber(6) void clearHeight() => clearField(6); + /// true if track is simulcasted @$pb.TagNumber(7) $core.bool get simulcast => $_getBF(6); @$pb.TagNumber(7) - set simulcast($core.bool v) { - $_setBool(6, v); - } - + set simulcast($core.bool v) { $_setBool(6, v); } @$pb.TagNumber(7) $core.bool hasSimulcast() => $_has(6); @$pb.TagNumber(7) void clearSimulcast() => clearField(7); + /// true if DTX (Discontinuous Transmission) is disabled for audio @$pb.TagNumber(8) $core.bool get disableDtx => $_getBF(7); @$pb.TagNumber(8) - set disableDtx($core.bool v) { - $_setBool(7, v); - } - + set disableDtx($core.bool v) { $_setBool(7, v); } @$pb.TagNumber(8) $core.bool hasDisableDtx() => $_has(7); @$pb.TagNumber(8) void clearDisableDtx() => clearField(8); + /// source of media @$pb.TagNumber(9) TrackSource get source => $_getN(8); @$pb.TagNumber(9) - set source(TrackSource v) { - setField(9, v); - } - + set source(TrackSource v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasSource() => $_has(8); @$pb.TagNumber(9) @@ -1317,13 +999,11 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.List get layers => $_getList(9); + /// mime type of codec @$pb.TagNumber(11) $core.String get mimeType => $_getSZ(10); @$pb.TagNumber(11) - set mimeType($core.String v) { - $_setString(10, v); - } - + set mimeType($core.String v) { $_setString(10, v); } @$pb.TagNumber(11) $core.bool hasMimeType() => $_has(10); @$pb.TagNumber(11) @@ -1332,10 +1012,7 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get mid => $_getSZ(11); @$pb.TagNumber(12) - set mid($core.String v) { - $_setString(11, v); - } - + set mid($core.String v) { $_setString(11, v); } @$pb.TagNumber(12) $core.bool hasMid() => $_has(11); @$pb.TagNumber(12) @@ -1347,22 +1024,17 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.bool get stereo => $_getBF(13); @$pb.TagNumber(14) - set stereo($core.bool v) { - $_setBool(13, v); - } - + set stereo($core.bool v) { $_setBool(13, v); } @$pb.TagNumber(14) $core.bool hasStereo() => $_has(13); @$pb.TagNumber(14) void clearStereo() => clearField(14); + /// true if RED (Redundant Encoding) is disabled for audio @$pb.TagNumber(15) $core.bool get disableRed => $_getBF(14); @$pb.TagNumber(15) - set disableRed($core.bool v) { - $_setBool(14, v); - } - + set disableRed($core.bool v) { $_setBool(14, v); } @$pb.TagNumber(15) $core.bool hasDisableRed() => $_has(14); @$pb.TagNumber(15) @@ -1371,62 +1043,24 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(16) Encryption_Type get encryption => $_getN(15); @$pb.TagNumber(16) - set encryption(Encryption_Type v) { - setField(16, v); - } - + set encryption(Encryption_Type v) { setField(16, v); } @$pb.TagNumber(16) $core.bool hasEncryption() => $_has(15); @$pb.TagNumber(16) void clearEncryption() => clearField(16); + + @$pb.TagNumber(17) + $core.String get stream => $_getSZ(16); + @$pb.TagNumber(17) + set stream($core.String v) { $_setString(16, v); } + @$pb.TagNumber(17) + $core.bool hasStream() => $_has(16); + @$pb.TagNumber(17) + void clearStream() => clearField(17); } +/// provide information about available spatial layers class VideoLayer extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'VideoLayer', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'quality', - $pb.PbFieldType.OE, - defaultOrMaker: VideoQuality.LOW, - valueOf: VideoQuality.valueOf, - enumValues: VideoQuality.values) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'height', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bitrate', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ssrc', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; - - VideoLayer._() : super(); factory VideoLayer({ VideoQuality? quality, $core.int? width, @@ -1434,57 +1068,63 @@ class VideoLayer extends $pb.GeneratedMessage { $core.int? bitrate, $core.int? ssrc, }) { - final _result = create(); + final $result = create(); if (quality != null) { - _result.quality = quality; + $result.quality = quality; } if (width != null) { - _result.width = width; + $result.width = width; } if (height != null) { - _result.height = height; + $result.height = height; } if (bitrate != null) { - _result.bitrate = bitrate; + $result.bitrate = bitrate; } if (ssrc != null) { - _result.ssrc = ssrc; + $result.ssrc = ssrc; } - return _result; + return $result; } - factory VideoLayer.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory VideoLayer.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + VideoLayer._() : super(); + factory VideoLayer.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory VideoLayer.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoLayer', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: VideoQuality.LOW, valueOf: VideoQuality.valueOf, enumValues: VideoQuality.values) + ..a<$core.int>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'bitrate', $pb.PbFieldType.OU3) + ..a<$core.int>(5, _omitFieldNames ? '' : 'ssrc', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') VideoLayer clone() => VideoLayer()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VideoLayer copyWith(void Function(VideoLayer) updates) => - super.copyWith((message) => updates(message as VideoLayer)) - as VideoLayer; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + VideoLayer copyWith(void Function(VideoLayer) updates) => super.copyWith((message) => updates(message as VideoLayer)) as VideoLayer; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static VideoLayer create() => VideoLayer._(); VideoLayer createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static VideoLayer getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static VideoLayer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static VideoLayer? _defaultInstance; + /// for tracks with a single layer, this should be HIGH @$pb.TagNumber(1) VideoQuality get quality => $_getN(0); @$pb.TagNumber(1) - set quality(VideoQuality v) { - setField(1, v); - } - + set quality(VideoQuality v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasQuality() => $_has(0); @$pb.TagNumber(1) @@ -1493,10 +1133,7 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get width => $_getIZ(1); @$pb.TagNumber(2) - set width($core.int v) { - $_setUnsignedInt32(1, v); - } - + set width($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasWidth() => $_has(1); @$pb.TagNumber(2) @@ -1505,22 +1142,17 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get height => $_getIZ(2); @$pb.TagNumber(3) - set height($core.int v) { - $_setUnsignedInt32(2, v); - } - + set height($core.int v) { $_setUnsignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasHeight() => $_has(2); @$pb.TagNumber(3) void clearHeight() => clearField(3); + /// target bitrate in bit per second (bps), server will measure actual @$pb.TagNumber(4) $core.int get bitrate => $_getIZ(3); @$pb.TagNumber(4) - set bitrate($core.int v) { - $_setUnsignedInt32(3, v); - } - + set bitrate($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasBitrate() => $_has(3); @$pb.TagNumber(4) @@ -1529,99 +1161,74 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get ssrc => $_getIZ(4); @$pb.TagNumber(5) - set ssrc($core.int v) { - $_setUnsignedInt32(4, v); - } - + set ssrc($core.int v) { $_setUnsignedInt32(4, v); } @$pb.TagNumber(5) $core.bool hasSsrc() => $_has(4); @$pb.TagNumber(5) void clearSsrc() => clearField(5); } -enum DataPacket_Value { user, speaker, notSet } +enum DataPacket_Value { + user, + speaker, + notSet +} +/// new DataPacket API class DataPacket extends $pb.GeneratedMessage { - static const $core.Map<$core.int, DataPacket_Value> _DataPacket_ValueByTag = { - 2: DataPacket_Value.user, - 3: DataPacket_Value.speaker, - 0: DataPacket_Value.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DataPacket', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind', - $pb.PbFieldType.OE, - defaultOrMaker: DataPacket_Kind.RELIABLE, - valueOf: DataPacket_Kind.valueOf, - enumValues: DataPacket_Kind.values) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'user', - subBuilder: UserPacket.create) - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'speaker', - subBuilder: ActiveSpeakerUpdate.create) - ..hasRequiredFields = false; - - DataPacket._() : super(); factory DataPacket({ DataPacket_Kind? kind, UserPacket? user, ActiveSpeakerUpdate? speaker, }) { - final _result = create(); + final $result = create(); if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (user != null) { - _result.user = user; + $result.user = user; } if (speaker != null) { - _result.speaker = speaker; + $result.speaker = speaker; } - return _result; + return $result; } - factory DataPacket.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DataPacket.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + DataPacket._() : super(); + factory DataPacket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DataPacket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, DataPacket_Value> _DataPacket_ValueByTag = { + 2 : DataPacket_Value.user, + 3 : DataPacket_Value.speaker, + 0 : DataPacket_Value.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..oo(0, [2, 3]) + ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, defaultOrMaker: DataPacket_Kind.RELIABLE, valueOf: DataPacket_Kind.valueOf, enumValues: DataPacket_Kind.values) + ..aOM(2, _omitFieldNames ? '' : 'user', subBuilder: UserPacket.create) + ..aOM(3, _omitFieldNames ? '' : 'speaker', subBuilder: ActiveSpeakerUpdate.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DataPacket clone() => DataPacket()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DataPacket copyWith(void Function(DataPacket) updates) => - super.copyWith((message) => updates(message as DataPacket)) - as DataPacket; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DataPacket copyWith(void Function(DataPacket) updates) => super.copyWith((message) => updates(message as DataPacket)) as DataPacket; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DataPacket create() => DataPacket._(); DataPacket createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DataPacket getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static DataPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DataPacket? _defaultInstance; DataPacket_Value whichValue() => _DataPacket_ValueByTag[$_whichOneof(0)]!; @@ -1630,10 +1237,7 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(1) DataPacket_Kind get kind => $_getN(0); @$pb.TagNumber(1) - set kind(DataPacket_Kind v) { - setField(1, v); - } - + set kind(DataPacket_Kind v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasKind() => $_has(0); @$pb.TagNumber(1) @@ -1642,10 +1246,7 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(2) UserPacket get user => $_getN(1); @$pb.TagNumber(2) - set user(UserPacket v) { - setField(2, v); - } - + set user(UserPacket v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasUser() => $_has(1); @$pb.TagNumber(2) @@ -1656,10 +1257,7 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(3) ActiveSpeakerUpdate get speaker => $_getN(2); @$pb.TagNumber(3) - set speaker(ActiveSpeakerUpdate v) { - setField(3, v); - } - + set speaker(ActiveSpeakerUpdate v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasSpeaker() => $_has(2); @$pb.TagNumber(3) @@ -1669,59 +1267,43 @@ class DataPacket extends $pb.GeneratedMessage { } class ActiveSpeakerUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ActiveSpeakerUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'speakers', - $pb.PbFieldType.PM, - subBuilder: SpeakerInfo.create) - ..hasRequiredFields = false; - - ActiveSpeakerUpdate._() : super(); factory ActiveSpeakerUpdate({ $core.Iterable? speakers, }) { - final _result = create(); + final $result = create(); if (speakers != null) { - _result.speakers.addAll(speakers); + $result.speakers.addAll(speakers); } - return _result; + return $result; } - factory ActiveSpeakerUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ActiveSpeakerUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ActiveSpeakerUpdate._() : super(); + factory ActiveSpeakerUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ActiveSpeakerUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActiveSpeakerUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, subBuilder: SpeakerInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ActiveSpeakerUpdate clone() => ActiveSpeakerUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ActiveSpeakerUpdate copyWith(void Function(ActiveSpeakerUpdate) updates) => - super.copyWith((message) => updates(message as ActiveSpeakerUpdate)) - as ActiveSpeakerUpdate; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ActiveSpeakerUpdate copyWith(void Function(ActiveSpeakerUpdate) updates) => super.copyWith((message) => updates(message as ActiveSpeakerUpdate)) as ActiveSpeakerUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ActiveSpeakerUpdate create() => ActiveSpeakerUpdate._(); ActiveSpeakerUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ActiveSpeakerUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ActiveSpeakerUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ActiveSpeakerUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -1729,108 +1311,79 @@ class ActiveSpeakerUpdate extends $pb.GeneratedMessage { } class SpeakerInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SpeakerInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'level', - $pb.PbFieldType.OF) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'active') - ..hasRequiredFields = false; - - SpeakerInfo._() : super(); factory SpeakerInfo({ $core.String? sid, $core.double? level, $core.bool? active, }) { - final _result = create(); + final $result = create(); if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (level != null) { - _result.level = level; + $result.level = level; } if (active != null) { - _result.active = active; + $result.active = active; } - return _result; + return $result; } - factory SpeakerInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SpeakerInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SpeakerInfo._() : super(); + factory SpeakerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SpeakerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpeakerInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sid') + ..a<$core.double>(2, _omitFieldNames ? '' : 'level', $pb.PbFieldType.OF) + ..aOB(3, _omitFieldNames ? '' : 'active') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SpeakerInfo clone() => SpeakerInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpeakerInfo copyWith(void Function(SpeakerInfo) updates) => - super.copyWith((message) => updates(message as SpeakerInfo)) - as SpeakerInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SpeakerInfo copyWith(void Function(SpeakerInfo) updates) => super.copyWith((message) => updates(message as SpeakerInfo)) as SpeakerInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SpeakerInfo create() => SpeakerInfo._(); SpeakerInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SpeakerInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SpeakerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SpeakerInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { - $_setString(0, v); - } - + set sid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) void clearSid() => clearField(1); + /// audio level, 0-1.0, 1 is loudest @$pb.TagNumber(2) $core.double get level => $_getN(1); @$pb.TagNumber(2) - set level($core.double v) { - $_setFloat(1, v); - } - + set level($core.double v) { $_setFloat(1, v); } @$pb.TagNumber(2) $core.bool hasLevel() => $_has(1); @$pb.TagNumber(2) void clearLevel() => clearField(2); + /// true if speaker is currently active @$pb.TagNumber(3) $core.bool get active => $_getBF(2); @$pb.TagNumber(3) - set active($core.bool v) { - $_setBool(2, v); - } - + set active($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasActive() => $_has(2); @$pb.TagNumber(3) @@ -1838,196 +1391,168 @@ class SpeakerInfo extends $pb.GeneratedMessage { } class UserPacket extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UserPacket', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'payload', - $pb.PbFieldType.OY) - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'destinationSids') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'topic') - ..hasRequiredFields = false; - - UserPacket._() : super(); factory UserPacket({ $core.String? participantSid, $core.List<$core.int>? payload, $core.Iterable<$core.String>? destinationSids, $core.String? topic, + $core.String? participantIdentity, + $core.Iterable<$core.String>? destinationIdentities, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (payload != null) { - _result.payload = payload; + $result.payload = payload; } if (destinationSids != null) { - _result.destinationSids.addAll(destinationSids); + $result.destinationSids.addAll(destinationSids); } if (topic != null) { - _result.topic = topic; + $result.topic = topic; } - return _result; + if (participantIdentity != null) { + $result.participantIdentity = participantIdentity; + } + if (destinationIdentities != null) { + $result.destinationIdentities.addAll(destinationIdentities); + } + return $result; } - factory UserPacket.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UserPacket.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + UserPacket._() : super(); + factory UserPacket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UserPacket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UserPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY) + ..pPS(3, _omitFieldNames ? '' : 'destinationSids') + ..aOS(4, _omitFieldNames ? '' : 'topic') + ..aOS(5, _omitFieldNames ? '' : 'participantIdentity') + ..pPS(6, _omitFieldNames ? '' : 'destinationIdentities') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UserPacket clone() => UserPacket()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UserPacket copyWith(void Function(UserPacket) updates) => - super.copyWith((message) => updates(message as UserPacket)) - as UserPacket; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UserPacket copyWith(void Function(UserPacket) updates) => super.copyWith((message) => updates(message as UserPacket)) as UserPacket; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UserPacket create() => UserPacket._(); UserPacket createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UserPacket getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UserPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UserPacket? _defaultInstance; + /// participant ID of user that sent the message @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) void clearParticipantSid() => clearField(1); + /// user defined payload @$pb.TagNumber(2) $core.List<$core.int> get payload => $_getN(1); @$pb.TagNumber(2) - set payload($core.List<$core.int> v) { - $_setBytes(1, v); - } - + set payload($core.List<$core.int> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasPayload() => $_has(1); @$pb.TagNumber(2) void clearPayload() => clearField(2); + /// the ID of the participants who will receive the message (sent to all by default) @$pb.TagNumber(3) $core.List<$core.String> get destinationSids => $_getList(2); + /// topic under which the message was published @$pb.TagNumber(4) $core.String get topic => $_getSZ(3); @$pb.TagNumber(4) - set topic($core.String v) { - $_setString(3, v); - } - + set topic($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasTopic() => $_has(3); @$pb.TagNumber(4) void clearTopic() => clearField(4); + + @$pb.TagNumber(5) + $core.String get participantIdentity => $_getSZ(4); + @$pb.TagNumber(5) + set participantIdentity($core.String v) { $_setString(4, v); } + @$pb.TagNumber(5) + $core.bool hasParticipantIdentity() => $_has(4); + @$pb.TagNumber(5) + void clearParticipantIdentity() => clearField(5); + + /// identities of participants who will receive the message (sent to all by default) + @$pb.TagNumber(6) + $core.List<$core.String> get destinationIdentities => $_getList(5); } class ParticipantTracks extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParticipantTracks', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSids') - ..hasRequiredFields = false; - - ParticipantTracks._() : super(); factory ParticipantTracks({ $core.String? participantSid, $core.Iterable<$core.String>? trackSids, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (trackSids != null) { - _result.trackSids.addAll(trackSids); + $result.trackSids.addAll(trackSids); } - return _result; + return $result; } - factory ParticipantTracks.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ParticipantTracks.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ParticipantTracks._() : super(); + factory ParticipantTracks.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ParticipantTracks.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantTracks', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..pPS(2, _omitFieldNames ? '' : 'trackSids') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantTracks clone() => ParticipantTracks()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantTracks copyWith(void Function(ParticipantTracks) updates) => - super.copyWith((message) => updates(message as ParticipantTracks)) - as ParticipantTracks; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantTracks copyWith(void Function(ParticipantTracks) updates) => super.copyWith((message) => updates(message as ParticipantTracks)) as ParticipantTracks; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParticipantTracks create() => ParticipantTracks._(); ParticipantTracks createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantTracks getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantTracks getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ParticipantTracks? _defaultInstance; + /// participant ID of participant to whom the tracks belong @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -2037,54 +1562,8 @@ class ParticipantTracks extends $pb.GeneratedMessage { $core.List<$core.String> get trackSids => $_getList(1); } +/// details about the server class ServerInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServerInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'edition', - $pb.PbFieldType.OE, - defaultOrMaker: ServerInfo_Edition.Standard, - valueOf: ServerInfo_Edition.valueOf, - enumValues: ServerInfo_Edition.values) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'protocol', - $pb.PbFieldType.O3) - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'region') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nodeId') - ..aOS( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'debugInfo') - ..hasRequiredFields = false; - - ServerInfo._() : super(); factory ServerInfo({ ServerInfo_Edition? edition, $core.String? version, @@ -2093,60 +1572,66 @@ class ServerInfo extends $pb.GeneratedMessage { $core.String? nodeId, $core.String? debugInfo, }) { - final _result = create(); + final $result = create(); if (edition != null) { - _result.edition = edition; + $result.edition = edition; } if (version != null) { - _result.version = version; + $result.version = version; } if (protocol != null) { - _result.protocol = protocol; + $result.protocol = protocol; } if (region != null) { - _result.region = region; + $result.region = region; } if (nodeId != null) { - _result.nodeId = nodeId; + $result.nodeId = nodeId; } if (debugInfo != null) { - _result.debugInfo = debugInfo; + $result.debugInfo = debugInfo; } - return _result; + return $result; } - factory ServerInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ServerInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ServerInfo._() : super(); + factory ServerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ServerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, defaultOrMaker: ServerInfo_Edition.Standard, valueOf: ServerInfo_Edition.valueOf, enumValues: ServerInfo_Edition.values) + ..aOS(2, _omitFieldNames ? '' : 'version') + ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'region') + ..aOS(5, _omitFieldNames ? '' : 'nodeId') + ..aOS(6, _omitFieldNames ? '' : 'debugInfo') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ServerInfo clone() => ServerInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ServerInfo copyWith(void Function(ServerInfo) updates) => - super.copyWith((message) => updates(message as ServerInfo)) - as ServerInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ServerInfo copyWith(void Function(ServerInfo) updates) => super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServerInfo create() => ServerInfo._(); ServerInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ServerInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ServerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ServerInfo? _defaultInstance; @$pb.TagNumber(1) ServerInfo_Edition get edition => $_getN(0); @$pb.TagNumber(1) - set edition(ServerInfo_Edition v) { - setField(1, v); - } - + set edition(ServerInfo_Edition v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasEdition() => $_has(0); @$pb.TagNumber(1) @@ -2155,10 +1640,7 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - + set version($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -2167,10 +1649,7 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get protocol => $_getIZ(2); @$pb.TagNumber(3) - set protocol($core.int v) { - $_setSignedInt32(2, v); - } - + set protocol($core.int v) { $_setSignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasProtocol() => $_has(2); @$pb.TagNumber(3) @@ -2179,10 +1658,7 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get region => $_getSZ(3); @$pb.TagNumber(4) - set region($core.String v) { - $_setString(3, v); - } - + set region($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasRegion() => $_has(3); @$pb.TagNumber(4) @@ -2191,96 +1667,25 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get nodeId => $_getSZ(4); @$pb.TagNumber(5) - set nodeId($core.String v) { - $_setString(4, v); - } - + set nodeId($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasNodeId() => $_has(4); @$pb.TagNumber(5) void clearNodeId() => clearField(5); + /// additional debugging information. sent only if server is in development mode @$pb.TagNumber(6) $core.String get debugInfo => $_getSZ(5); @$pb.TagNumber(6) - set debugInfo($core.String v) { - $_setString(5, v); - } - + set debugInfo($core.String v) { $_setString(5, v); } @$pb.TagNumber(6) $core.bool hasDebugInfo() => $_has(5); @$pb.TagNumber(6) void clearDebugInfo() => clearField(6); } +/// details about the client class ClientInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ClientInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sdk', - $pb.PbFieldType.OE, - defaultOrMaker: ClientInfo_SDK.UNKNOWN, - valueOf: ClientInfo_SDK.valueOf, - enumValues: ClientInfo_SDK.values) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'protocol', - $pb.PbFieldType.O3) - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'os') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'osVersion') - ..aOS( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deviceModel') - ..aOS( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'browser') - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'browserVersion') - ..aOS( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'address') - ..aOS( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'network') - ..hasRequiredFields = false; - - ClientInfo._() : super(); factory ClientInfo({ ClientInfo_SDK? sdk, $core.String? version, @@ -2293,72 +1698,82 @@ class ClientInfo extends $pb.GeneratedMessage { $core.String? address, $core.String? network, }) { - final _result = create(); + final $result = create(); if (sdk != null) { - _result.sdk = sdk; + $result.sdk = sdk; } if (version != null) { - _result.version = version; + $result.version = version; } if (protocol != null) { - _result.protocol = protocol; + $result.protocol = protocol; } if (os != null) { - _result.os = os; + $result.os = os; } if (osVersion != null) { - _result.osVersion = osVersion; + $result.osVersion = osVersion; } if (deviceModel != null) { - _result.deviceModel = deviceModel; + $result.deviceModel = deviceModel; } if (browser != null) { - _result.browser = browser; + $result.browser = browser; } if (browserVersion != null) { - _result.browserVersion = browserVersion; + $result.browserVersion = browserVersion; } if (address != null) { - _result.address = address; + $result.address = address; } if (network != null) { - _result.network = network; + $result.network = network; } - return _result; + return $result; } - factory ClientInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ClientInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ClientInfo._() : super(); + factory ClientInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ClientInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'sdk', $pb.PbFieldType.OE, defaultOrMaker: ClientInfo_SDK.UNKNOWN, valueOf: ClientInfo_SDK.valueOf, enumValues: ClientInfo_SDK.values) + ..aOS(2, _omitFieldNames ? '' : 'version') + ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'os') + ..aOS(5, _omitFieldNames ? '' : 'osVersion') + ..aOS(6, _omitFieldNames ? '' : 'deviceModel') + ..aOS(7, _omitFieldNames ? '' : 'browser') + ..aOS(8, _omitFieldNames ? '' : 'browserVersion') + ..aOS(9, _omitFieldNames ? '' : 'address') + ..aOS(10, _omitFieldNames ? '' : 'network') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ClientInfo clone() => ClientInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientInfo copyWith(void Function(ClientInfo) updates) => - super.copyWith((message) => updates(message as ClientInfo)) - as ClientInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientInfo copyWith(void Function(ClientInfo) updates) => super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ClientInfo create() => ClientInfo._(); ClientInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ClientInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ClientInfo? _defaultInstance; @$pb.TagNumber(1) ClientInfo_SDK get sdk => $_getN(0); @$pb.TagNumber(1) - set sdk(ClientInfo_SDK v) { - setField(1, v); - } - + set sdk(ClientInfo_SDK v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasSdk() => $_has(0); @$pb.TagNumber(1) @@ -2367,10 +1782,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { - $_setString(1, v); - } - + set version($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -2379,10 +1791,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get protocol => $_getIZ(2); @$pb.TagNumber(3) - set protocol($core.int v) { - $_setSignedInt32(2, v); - } - + set protocol($core.int v) { $_setSignedInt32(2, v); } @$pb.TagNumber(3) $core.bool hasProtocol() => $_has(2); @$pb.TagNumber(3) @@ -2391,10 +1800,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get os => $_getSZ(3); @$pb.TagNumber(4) - set os($core.String v) { - $_setString(3, v); - } - + set os($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasOs() => $_has(3); @$pb.TagNumber(4) @@ -2403,10 +1809,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get osVersion => $_getSZ(4); @$pb.TagNumber(5) - set osVersion($core.String v) { - $_setString(4, v); - } - + set osVersion($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasOsVersion() => $_has(4); @$pb.TagNumber(5) @@ -2415,10 +1818,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get deviceModel => $_getSZ(5); @$pb.TagNumber(6) - set deviceModel($core.String v) { - $_setString(5, v); - } - + set deviceModel($core.String v) { $_setString(5, v); } @$pb.TagNumber(6) $core.bool hasDeviceModel() => $_has(5); @$pb.TagNumber(6) @@ -2427,10 +1827,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get browser => $_getSZ(6); @$pb.TagNumber(7) - set browser($core.String v) { - $_setString(6, v); - } - + set browser($core.String v) { $_setString(6, v); } @$pb.TagNumber(7) $core.bool hasBrowser() => $_has(6); @$pb.TagNumber(7) @@ -2439,10 +1836,7 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get browserVersion => $_getSZ(7); @$pb.TagNumber(8) - set browserVersion($core.String v) { - $_setString(7, v); - } - + set browserVersion($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) $core.bool hasBrowserVersion() => $_has(7); @$pb.TagNumber(8) @@ -2451,77 +1845,25 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get address => $_getSZ(8); @$pb.TagNumber(9) - set address($core.String v) { - $_setString(8, v); - } - + set address($core.String v) { $_setString(8, v); } @$pb.TagNumber(9) $core.bool hasAddress() => $_has(8); @$pb.TagNumber(9) void clearAddress() => clearField(9); + /// wifi, wired, cellular, vpn, empty if not known @$pb.TagNumber(10) $core.String get network => $_getSZ(9); @$pb.TagNumber(10) - set network($core.String v) { - $_setString(9, v); - } - + set network($core.String v) { $_setString(9, v); } @$pb.TagNumber(10) $core.bool hasNetwork() => $_has(9); @$pb.TagNumber(10) void clearNetwork() => clearField(10); } +/// server provided client configuration class ClientConfiguration extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ClientConfiguration', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'video', - subBuilder: VideoConfiguration.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'screen', - subBuilder: VideoConfiguration.create) - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resumeConnection', - $pb.PbFieldType.OE, - defaultOrMaker: ClientConfigSetting.UNSET, - valueOf: ClientConfigSetting.valueOf, - enumValues: ClientConfigSetting.values) - ..aOM( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disabledCodecs', - subBuilder: DisabledCodecs.create) - ..e( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'forceRelay', - $pb.PbFieldType.OE, - defaultOrMaker: ClientConfigSetting.UNSET, - valueOf: ClientConfigSetting.valueOf, - enumValues: ClientConfigSetting.values) - ..hasRequiredFields = false; - - ClientConfiguration._() : super(); factory ClientConfiguration({ VideoConfiguration? video, VideoConfiguration? screen, @@ -2529,58 +1871,62 @@ class ClientConfiguration extends $pb.GeneratedMessage { DisabledCodecs? disabledCodecs, ClientConfigSetting? forceRelay, }) { - final _result = create(); + final $result = create(); if (video != null) { - _result.video = video; + $result.video = video; } if (screen != null) { - _result.screen = screen; + $result.screen = screen; } if (resumeConnection != null) { - _result.resumeConnection = resumeConnection; + $result.resumeConnection = resumeConnection; } if (disabledCodecs != null) { - _result.disabledCodecs = disabledCodecs; + $result.disabledCodecs = disabledCodecs; } if (forceRelay != null) { - _result.forceRelay = forceRelay; + $result.forceRelay = forceRelay; } - return _result; + return $result; } - factory ClientConfiguration.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ClientConfiguration.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ClientConfiguration._() : super(); + factory ClientConfiguration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ClientConfiguration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientConfiguration', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'video', subBuilder: VideoConfiguration.create) + ..aOM(2, _omitFieldNames ? '' : 'screen', subBuilder: VideoConfiguration.create) + ..e(3, _omitFieldNames ? '' : 'resumeConnection', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) + ..aOM(4, _omitFieldNames ? '' : 'disabledCodecs', subBuilder: DisabledCodecs.create) + ..e(5, _omitFieldNames ? '' : 'forceRelay', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ClientConfiguration clone() => ClientConfiguration()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientConfiguration copyWith(void Function(ClientConfiguration) updates) => - super.copyWith((message) => updates(message as ClientConfiguration)) - as ClientConfiguration; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientConfiguration copyWith(void Function(ClientConfiguration) updates) => super.copyWith((message) => updates(message as ClientConfiguration)) as ClientConfiguration; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ClientConfiguration create() => ClientConfiguration._(); ClientConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientConfiguration getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ClientConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ClientConfiguration? _defaultInstance; @$pb.TagNumber(1) VideoConfiguration get video => $_getN(0); @$pb.TagNumber(1) - set video(VideoConfiguration v) { - setField(1, v); - } - + set video(VideoConfiguration v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasVideo() => $_has(0); @$pb.TagNumber(1) @@ -2591,10 +1937,7 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(2) VideoConfiguration get screen => $_getN(1); @$pb.TagNumber(2) - set screen(VideoConfiguration v) { - setField(2, v); - } - + set screen(VideoConfiguration v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasScreen() => $_has(1); @$pb.TagNumber(2) @@ -2605,10 +1948,7 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(3) ClientConfigSetting get resumeConnection => $_getN(2); @$pb.TagNumber(3) - set resumeConnection(ClientConfigSetting v) { - setField(3, v); - } - + set resumeConnection(ClientConfigSetting v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasResumeConnection() => $_has(2); @$pb.TagNumber(3) @@ -2617,10 +1957,7 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(4) DisabledCodecs get disabledCodecs => $_getN(3); @$pb.TagNumber(4) - set disabledCodecs(DisabledCodecs v) { - setField(4, v); - } - + set disabledCodecs(DisabledCodecs v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasDisabledCodecs() => $_has(3); @$pb.TagNumber(4) @@ -2631,10 +1968,7 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(5) ClientConfigSetting get forceRelay => $_getN(4); @$pb.TagNumber(5) - set forceRelay(ClientConfigSetting v) { - setField(5, v); - } - + set forceRelay(ClientConfigSetting v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasForceRelay() => $_has(4); @$pb.TagNumber(5) @@ -2642,70 +1976,49 @@ class ClientConfiguration extends $pb.GeneratedMessage { } class VideoConfiguration extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'VideoConfiguration', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'hardwareEncoder', - $pb.PbFieldType.OE, - defaultOrMaker: ClientConfigSetting.UNSET, - valueOf: ClientConfigSetting.valueOf, - enumValues: ClientConfigSetting.values) - ..hasRequiredFields = false; - - VideoConfiguration._() : super(); factory VideoConfiguration({ ClientConfigSetting? hardwareEncoder, }) { - final _result = create(); + final $result = create(); if (hardwareEncoder != null) { - _result.hardwareEncoder = hardwareEncoder; + $result.hardwareEncoder = hardwareEncoder; } - return _result; + return $result; } - factory VideoConfiguration.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory VideoConfiguration.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + VideoConfiguration._() : super(); + factory VideoConfiguration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory VideoConfiguration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoConfiguration', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'hardwareEncoder', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') VideoConfiguration clone() => VideoConfiguration()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VideoConfiguration copyWith(void Function(VideoConfiguration) updates) => - super.copyWith((message) => updates(message as VideoConfiguration)) - as VideoConfiguration; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + VideoConfiguration copyWith(void Function(VideoConfiguration) updates) => super.copyWith((message) => updates(message as VideoConfiguration)) as VideoConfiguration; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static VideoConfiguration create() => VideoConfiguration._(); VideoConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static VideoConfiguration getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static VideoConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static VideoConfiguration? _defaultInstance; @$pb.TagNumber(1) ClientConfigSetting get hardwareEncoder => $_getN(0); @$pb.TagNumber(1) - set hardwareEncoder(ClientConfigSetting v) { - setField(1, v); - } - + set hardwareEncoder(ClientConfigSetting v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasHardwareEncoder() => $_has(0); @$pb.TagNumber(1) @@ -2713,333 +2026,226 @@ class VideoConfiguration extends $pb.GeneratedMessage { } class DisabledCodecs extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisabledCodecs', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'codecs', - $pb.PbFieldType.PM, - subBuilder: Codec.create) - ..hasRequiredFields = false; - - DisabledCodecs._() : super(); factory DisabledCodecs({ $core.Iterable? codecs, + $core.Iterable? publish, }) { - final _result = create(); + final $result = create(); if (codecs != null) { - _result.codecs.addAll(codecs); + $result.codecs.addAll(codecs); } - return _result; + if (publish != null) { + $result.publish.addAll(publish); + } + return $result; } - factory DisabledCodecs.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DisabledCodecs.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + DisabledCodecs._() : super(); + factory DisabledCodecs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DisabledCodecs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DisabledCodecs', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, subBuilder: Codec.create) + ..pc(2, _omitFieldNames ? '' : 'publish', $pb.PbFieldType.PM, subBuilder: Codec.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DisabledCodecs clone() => DisabledCodecs()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DisabledCodecs copyWith(void Function(DisabledCodecs) updates) => - super.copyWith((message) => updates(message as DisabledCodecs)) - as DisabledCodecs; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DisabledCodecs copyWith(void Function(DisabledCodecs) updates) => super.copyWith((message) => updates(message as DisabledCodecs)) as DisabledCodecs; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DisabledCodecs create() => DisabledCodecs._(); DisabledCodecs createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DisabledCodecs getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static DisabledCodecs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DisabledCodecs? _defaultInstance; + /// disabled for both publish and subscribe @$pb.TagNumber(1) $core.List get codecs => $_getList(0); + + /// only disable for publish + @$pb.TagNumber(2) + $core.List get publish => $_getList(1); } -class RTPStats extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RTPStats', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOM<$0.Timestamp>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'startTime', - subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'endTime', - subBuilder: $0.Timestamp.create) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'duration', - $pb.PbFieldType.OD) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packets', - $pb.PbFieldType.OU3) - ..a<$core.double>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetRate', - $pb.PbFieldType.OD) - ..a<$fixnum.Int64>( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bytes', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bitrate', - $pb.PbFieldType.OD) - ..a<$core.int>( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetsLost', - $pb.PbFieldType.OU3) - ..a<$core.double>( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetLossRate', - $pb.PbFieldType.OD) - ..a<$core.double>( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetLossPercentage', - $pb.PbFieldType.OF) - ..a<$core.int>( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetsDuplicate', - $pb.PbFieldType.OU3) - ..a<$core.double>( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetDuplicateRate', - $pb.PbFieldType.OD) - ..a<$fixnum.Int64>( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bytesDuplicate', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bitrateDuplicate', - $pb.PbFieldType.OD) - ..a<$core.int>( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetsPadding', - $pb.PbFieldType.OU3) - ..a<$core.double>( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetPaddingRate', - $pb.PbFieldType.OD) - ..a<$fixnum.Int64>( - 17, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bytesPadding', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>( - 18, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bitratePadding', - $pb.PbFieldType.OD) - ..a<$core.int>( - 19, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packetsOutOfOrder', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 20, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'frames', - $pb.PbFieldType.OU3) - ..a<$core.double>( - 21, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'frameRate', - $pb.PbFieldType.OD) - ..a<$core.double>( - 22, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'jitterCurrent', - $pb.PbFieldType.OD) - ..a<$core.double>( - 23, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'jitterMax', - $pb.PbFieldType.OD) - ..m<$core.int, $core.int>( - 24, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'gapHistogram', - entryClassName: 'RTPStats.GapHistogramEntry', - keyFieldType: $pb.PbFieldType.O3, - valueFieldType: $pb.PbFieldType.OU3, - packageName: const $pb.PackageName('livekit')) - ..a<$core.int>( - 25, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nacks', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 26, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nackMisses', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 27, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'plis', - $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>( - 28, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lastPli', - subBuilder: $0.Timestamp.create) - ..a<$core.int>( - 29, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'firs', - $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>( - 30, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lastFir', - subBuilder: $0.Timestamp.create) - ..a<$core.int>( - 31, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rttCurrent', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 32, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rttMax', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 33, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyFrames', - $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>( - 34, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lastKeyFrame', - subBuilder: $0.Timestamp.create) - ..a<$core.int>( - 35, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'layerLockPlis', - $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>( - 36, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lastLayerLockPli', - subBuilder: $0.Timestamp.create) - ..a<$core.int>( - 37, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nackAcks', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 38, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nackRepeated', - $pb.PbFieldType.OU3) - ..a<$fixnum.Int64>( - 39, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'headerBytes', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>( - 40, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'headerBytesDuplicate', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>( - 41, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'headerBytesPadding', - $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false; +class RTPDrift extends $pb.GeneratedMessage { + factory RTPDrift({ + $0.Timestamp? startTime, + $0.Timestamp? endTime, + $core.double? duration, + $fixnum.Int64? startTimestamp, + $fixnum.Int64? endTimestamp, + $fixnum.Int64? rtpClockTicks, + $fixnum.Int64? driftSamples, + $core.double? driftMs, + $core.double? clockRate, + }) { + final $result = create(); + if (startTime != null) { + $result.startTime = startTime; + } + if (endTime != null) { + $result.endTime = endTime; + } + if (duration != null) { + $result.duration = duration; + } + if (startTimestamp != null) { + $result.startTimestamp = startTimestamp; + } + if (endTimestamp != null) { + $result.endTimestamp = endTimestamp; + } + if (rtpClockTicks != null) { + $result.rtpClockTicks = rtpClockTicks; + } + if (driftSamples != null) { + $result.driftSamples = driftSamples; + } + if (driftMs != null) { + $result.driftMs = driftMs; + } + if (clockRate != null) { + $result.clockRate = clockRate; + } + return $result; + } + RTPDrift._() : super(); + factory RTPDrift.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RTPDrift.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RTPDrift', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $0.Timestamp.create) + ..a<$core.double>(3, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'startTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'endTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'rtpClockTicks', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aInt64(7, _omitFieldNames ? '' : 'driftSamples') + ..a<$core.double>(8, _omitFieldNames ? '' : 'driftMs', $pb.PbFieldType.OD) + ..a<$core.double>(9, _omitFieldNames ? '' : 'clockRate', $pb.PbFieldType.OD) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RTPDrift clone() => RTPDrift()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RTPDrift copyWith(void Function(RTPDrift) updates) => super.copyWith((message) => updates(message as RTPDrift)) as RTPDrift; - RTPStats._() : super(); + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RTPDrift create() => RTPDrift._(); + RTPDrift createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RTPDrift getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RTPDrift? _defaultInstance; + + @$pb.TagNumber(1) + $0.Timestamp get startTime => $_getN(0); + @$pb.TagNumber(1) + set startTime($0.Timestamp v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasStartTime() => $_has(0); + @$pb.TagNumber(1) + void clearStartTime() => clearField(1); + @$pb.TagNumber(1) + $0.Timestamp ensureStartTime() => $_ensure(0); + + @$pb.TagNumber(2) + $0.Timestamp get endTime => $_getN(1); + @$pb.TagNumber(2) + set endTime($0.Timestamp v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasEndTime() => $_has(1); + @$pb.TagNumber(2) + void clearEndTime() => clearField(2); + @$pb.TagNumber(2) + $0.Timestamp ensureEndTime() => $_ensure(1); + + @$pb.TagNumber(3) + $core.double get duration => $_getN(2); + @$pb.TagNumber(3) + set duration($core.double v) { $_setDouble(2, v); } + @$pb.TagNumber(3) + $core.bool hasDuration() => $_has(2); + @$pb.TagNumber(3) + void clearDuration() => clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get startTimestamp => $_getI64(3); + @$pb.TagNumber(4) + set startTimestamp($fixnum.Int64 v) { $_setInt64(3, v); } + @$pb.TagNumber(4) + $core.bool hasStartTimestamp() => $_has(3); + @$pb.TagNumber(4) + void clearStartTimestamp() => clearField(4); + + @$pb.TagNumber(5) + $fixnum.Int64 get endTimestamp => $_getI64(4); + @$pb.TagNumber(5) + set endTimestamp($fixnum.Int64 v) { $_setInt64(4, v); } + @$pb.TagNumber(5) + $core.bool hasEndTimestamp() => $_has(4); + @$pb.TagNumber(5) + void clearEndTimestamp() => clearField(5); + + @$pb.TagNumber(6) + $fixnum.Int64 get rtpClockTicks => $_getI64(5); + @$pb.TagNumber(6) + set rtpClockTicks($fixnum.Int64 v) { $_setInt64(5, v); } + @$pb.TagNumber(6) + $core.bool hasRtpClockTicks() => $_has(5); + @$pb.TagNumber(6) + void clearRtpClockTicks() => clearField(6); + + @$pb.TagNumber(7) + $fixnum.Int64 get driftSamples => $_getI64(6); + @$pb.TagNumber(7) + set driftSamples($fixnum.Int64 v) { $_setInt64(6, v); } + @$pb.TagNumber(7) + $core.bool hasDriftSamples() => $_has(6); + @$pb.TagNumber(7) + void clearDriftSamples() => clearField(7); + + @$pb.TagNumber(8) + $core.double get driftMs => $_getN(7); + @$pb.TagNumber(8) + set driftMs($core.double v) { $_setDouble(7, v); } + @$pb.TagNumber(8) + $core.bool hasDriftMs() => $_has(7); + @$pb.TagNumber(8) + void clearDriftMs() => clearField(8); + + @$pb.TagNumber(9) + $core.double get clockRate => $_getN(8); + @$pb.TagNumber(9) + set clockRate($core.double v) { $_setDouble(8, v); } + @$pb.TagNumber(9) + $core.bool hasClockRate() => $_has(8); + @$pb.TagNumber(9) + void clearClockRate() => clearField(9); +} + +class RTPStats extends $pb.GeneratedMessage { factory RTPStats({ $0.Timestamp? startTime, $0.Timestamp? endTime, @@ -3082,166 +2288,217 @@ class RTPStats extends $pb.GeneratedMessage { $fixnum.Int64? headerBytes, $fixnum.Int64? headerBytesDuplicate, $fixnum.Int64? headerBytesPadding, + RTPDrift? packetDrift, + RTPDrift? reportDrift, }) { - final _result = create(); + final $result = create(); if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (duration != null) { - _result.duration = duration; + $result.duration = duration; } if (packets != null) { - _result.packets = packets; + $result.packets = packets; } if (packetRate != null) { - _result.packetRate = packetRate; + $result.packetRate = packetRate; } if (bytes != null) { - _result.bytes = bytes; + $result.bytes = bytes; } if (bitrate != null) { - _result.bitrate = bitrate; + $result.bitrate = bitrate; } if (packetsLost != null) { - _result.packetsLost = packetsLost; + $result.packetsLost = packetsLost; } if (packetLossRate != null) { - _result.packetLossRate = packetLossRate; + $result.packetLossRate = packetLossRate; } if (packetLossPercentage != null) { - _result.packetLossPercentage = packetLossPercentage; + $result.packetLossPercentage = packetLossPercentage; } if (packetsDuplicate != null) { - _result.packetsDuplicate = packetsDuplicate; + $result.packetsDuplicate = packetsDuplicate; } if (packetDuplicateRate != null) { - _result.packetDuplicateRate = packetDuplicateRate; + $result.packetDuplicateRate = packetDuplicateRate; } if (bytesDuplicate != null) { - _result.bytesDuplicate = bytesDuplicate; + $result.bytesDuplicate = bytesDuplicate; } if (bitrateDuplicate != null) { - _result.bitrateDuplicate = bitrateDuplicate; + $result.bitrateDuplicate = bitrateDuplicate; } if (packetsPadding != null) { - _result.packetsPadding = packetsPadding; + $result.packetsPadding = packetsPadding; } if (packetPaddingRate != null) { - _result.packetPaddingRate = packetPaddingRate; + $result.packetPaddingRate = packetPaddingRate; } if (bytesPadding != null) { - _result.bytesPadding = bytesPadding; + $result.bytesPadding = bytesPadding; } if (bitratePadding != null) { - _result.bitratePadding = bitratePadding; + $result.bitratePadding = bitratePadding; } if (packetsOutOfOrder != null) { - _result.packetsOutOfOrder = packetsOutOfOrder; + $result.packetsOutOfOrder = packetsOutOfOrder; } if (frames != null) { - _result.frames = frames; + $result.frames = frames; } if (frameRate != null) { - _result.frameRate = frameRate; + $result.frameRate = frameRate; } if (jitterCurrent != null) { - _result.jitterCurrent = jitterCurrent; + $result.jitterCurrent = jitterCurrent; } if (jitterMax != null) { - _result.jitterMax = jitterMax; + $result.jitterMax = jitterMax; } if (gapHistogram != null) { - _result.gapHistogram.addAll(gapHistogram); + $result.gapHistogram.addAll(gapHistogram); } if (nacks != null) { - _result.nacks = nacks; + $result.nacks = nacks; } if (nackMisses != null) { - _result.nackMisses = nackMisses; + $result.nackMisses = nackMisses; } if (plis != null) { - _result.plis = plis; + $result.plis = plis; } if (lastPli != null) { - _result.lastPli = lastPli; + $result.lastPli = lastPli; } if (firs != null) { - _result.firs = firs; + $result.firs = firs; } if (lastFir != null) { - _result.lastFir = lastFir; + $result.lastFir = lastFir; } if (rttCurrent != null) { - _result.rttCurrent = rttCurrent; + $result.rttCurrent = rttCurrent; } if (rttMax != null) { - _result.rttMax = rttMax; + $result.rttMax = rttMax; } if (keyFrames != null) { - _result.keyFrames = keyFrames; + $result.keyFrames = keyFrames; } if (lastKeyFrame != null) { - _result.lastKeyFrame = lastKeyFrame; + $result.lastKeyFrame = lastKeyFrame; } if (layerLockPlis != null) { - _result.layerLockPlis = layerLockPlis; + $result.layerLockPlis = layerLockPlis; } if (lastLayerLockPli != null) { - _result.lastLayerLockPli = lastLayerLockPli; + $result.lastLayerLockPli = lastLayerLockPli; } if (nackAcks != null) { - _result.nackAcks = nackAcks; + $result.nackAcks = nackAcks; } if (nackRepeated != null) { - _result.nackRepeated = nackRepeated; + $result.nackRepeated = nackRepeated; } if (headerBytes != null) { - _result.headerBytes = headerBytes; + $result.headerBytes = headerBytes; } if (headerBytesDuplicate != null) { - _result.headerBytesDuplicate = headerBytesDuplicate; + $result.headerBytesDuplicate = headerBytesDuplicate; } if (headerBytesPadding != null) { - _result.headerBytesPadding = headerBytesPadding; + $result.headerBytesPadding = headerBytesPadding; + } + if (packetDrift != null) { + $result.packetDrift = packetDrift; } - return _result; + if (reportDrift != null) { + $result.reportDrift = reportDrift; + } + return $result; } - factory RTPStats.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RTPStats.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + RTPStats._() : super(); + factory RTPStats.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RTPStats.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RTPStats', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $0.Timestamp.create) + ..a<$core.double>(3, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OD) + ..a<$core.int>(4, _omitFieldNames ? '' : 'packets', $pb.PbFieldType.OU3) + ..a<$core.double>(5, _omitFieldNames ? '' : 'packetRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'bytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>(7, _omitFieldNames ? '' : 'bitrate', $pb.PbFieldType.OD) + ..a<$core.int>(8, _omitFieldNames ? '' : 'packetsLost', $pb.PbFieldType.OU3) + ..a<$core.double>(9, _omitFieldNames ? '' : 'packetLossRate', $pb.PbFieldType.OD) + ..a<$core.double>(10, _omitFieldNames ? '' : 'packetLossPercentage', $pb.PbFieldType.OF) + ..a<$core.int>(11, _omitFieldNames ? '' : 'packetsDuplicate', $pb.PbFieldType.OU3) + ..a<$core.double>(12, _omitFieldNames ? '' : 'packetDuplicateRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>(13, _omitFieldNames ? '' : 'bytesDuplicate', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>(14, _omitFieldNames ? '' : 'bitrateDuplicate', $pb.PbFieldType.OD) + ..a<$core.int>(15, _omitFieldNames ? '' : 'packetsPadding', $pb.PbFieldType.OU3) + ..a<$core.double>(16, _omitFieldNames ? '' : 'packetPaddingRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>(17, _omitFieldNames ? '' : 'bytesPadding', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>(18, _omitFieldNames ? '' : 'bitratePadding', $pb.PbFieldType.OD) + ..a<$core.int>(19, _omitFieldNames ? '' : 'packetsOutOfOrder', $pb.PbFieldType.OU3) + ..a<$core.int>(20, _omitFieldNames ? '' : 'frames', $pb.PbFieldType.OU3) + ..a<$core.double>(21, _omitFieldNames ? '' : 'frameRate', $pb.PbFieldType.OD) + ..a<$core.double>(22, _omitFieldNames ? '' : 'jitterCurrent', $pb.PbFieldType.OD) + ..a<$core.double>(23, _omitFieldNames ? '' : 'jitterMax', $pb.PbFieldType.OD) + ..m<$core.int, $core.int>(24, _omitFieldNames ? '' : 'gapHistogram', entryClassName: 'RTPStats.GapHistogramEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OU3, packageName: const $pb.PackageName('livekit')) + ..a<$core.int>(25, _omitFieldNames ? '' : 'nacks', $pb.PbFieldType.OU3) + ..a<$core.int>(26, _omitFieldNames ? '' : 'nackMisses', $pb.PbFieldType.OU3) + ..a<$core.int>(27, _omitFieldNames ? '' : 'plis', $pb.PbFieldType.OU3) + ..aOM<$0.Timestamp>(28, _omitFieldNames ? '' : 'lastPli', subBuilder: $0.Timestamp.create) + ..a<$core.int>(29, _omitFieldNames ? '' : 'firs', $pb.PbFieldType.OU3) + ..aOM<$0.Timestamp>(30, _omitFieldNames ? '' : 'lastFir', subBuilder: $0.Timestamp.create) + ..a<$core.int>(31, _omitFieldNames ? '' : 'rttCurrent', $pb.PbFieldType.OU3) + ..a<$core.int>(32, _omitFieldNames ? '' : 'rttMax', $pb.PbFieldType.OU3) + ..a<$core.int>(33, _omitFieldNames ? '' : 'keyFrames', $pb.PbFieldType.OU3) + ..aOM<$0.Timestamp>(34, _omitFieldNames ? '' : 'lastKeyFrame', subBuilder: $0.Timestamp.create) + ..a<$core.int>(35, _omitFieldNames ? '' : 'layerLockPlis', $pb.PbFieldType.OU3) + ..aOM<$0.Timestamp>(36, _omitFieldNames ? '' : 'lastLayerLockPli', subBuilder: $0.Timestamp.create) + ..a<$core.int>(37, _omitFieldNames ? '' : 'nackAcks', $pb.PbFieldType.OU3) + ..a<$core.int>(38, _omitFieldNames ? '' : 'nackRepeated', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>(39, _omitFieldNames ? '' : 'headerBytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(40, _omitFieldNames ? '' : 'headerBytesDuplicate', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>(41, _omitFieldNames ? '' : 'headerBytesPadding', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(44, _omitFieldNames ? '' : 'packetDrift', subBuilder: RTPDrift.create) + ..aOM(45, _omitFieldNames ? '' : 'reportDrift', subBuilder: RTPDrift.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RTPStats clone() => RTPStats()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RTPStats copyWith(void Function(RTPStats) updates) => - super.copyWith((message) => updates(message as RTPStats)) - as RTPStats; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RTPStats copyWith(void Function(RTPStats) updates) => super.copyWith((message) => updates(message as RTPStats)) as RTPStats; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RTPStats create() => RTPStats._(); RTPStats createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RTPStats getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RTPStats getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPStats? _defaultInstance; @$pb.TagNumber(1) $0.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($0.Timestamp v) { - setField(1, v); - } - + set startTime($0.Timestamp v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) @@ -3252,10 +2509,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(2) $0.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($0.Timestamp v) { - setField(2, v); - } - + set endTime($0.Timestamp v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) @@ -3266,10 +2520,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get duration => $_getN(2); @$pb.TagNumber(3) - set duration($core.double v) { - $_setDouble(2, v); - } - + set duration($core.double v) { $_setDouble(2, v); } @$pb.TagNumber(3) $core.bool hasDuration() => $_has(2); @$pb.TagNumber(3) @@ -3278,10 +2529,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get packets => $_getIZ(3); @$pb.TagNumber(4) - set packets($core.int v) { - $_setUnsignedInt32(3, v); - } - + set packets($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasPackets() => $_has(3); @$pb.TagNumber(4) @@ -3290,10 +2538,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get packetRate => $_getN(4); @$pb.TagNumber(5) - set packetRate($core.double v) { - $_setDouble(4, v); - } - + set packetRate($core.double v) { $_setDouble(4, v); } @$pb.TagNumber(5) $core.bool hasPacketRate() => $_has(4); @$pb.TagNumber(5) @@ -3302,10 +2547,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get bytes => $_getI64(5); @$pb.TagNumber(6) - set bytes($fixnum.Int64 v) { - $_setInt64(5, v); - } - + set bytes($fixnum.Int64 v) { $_setInt64(5, v); } @$pb.TagNumber(6) $core.bool hasBytes() => $_has(5); @$pb.TagNumber(6) @@ -3314,10 +2556,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get bitrate => $_getN(6); @$pb.TagNumber(7) - set bitrate($core.double v) { - $_setDouble(6, v); - } - + set bitrate($core.double v) { $_setDouble(6, v); } @$pb.TagNumber(7) $core.bool hasBitrate() => $_has(6); @$pb.TagNumber(7) @@ -3326,10 +2565,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.int get packetsLost => $_getIZ(7); @$pb.TagNumber(8) - set packetsLost($core.int v) { - $_setUnsignedInt32(7, v); - } - + set packetsLost($core.int v) { $_setUnsignedInt32(7, v); } @$pb.TagNumber(8) $core.bool hasPacketsLost() => $_has(7); @$pb.TagNumber(8) @@ -3338,10 +2574,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.double get packetLossRate => $_getN(8); @$pb.TagNumber(9) - set packetLossRate($core.double v) { - $_setDouble(8, v); - } - + set packetLossRate($core.double v) { $_setDouble(8, v); } @$pb.TagNumber(9) $core.bool hasPacketLossRate() => $_has(8); @$pb.TagNumber(9) @@ -3350,10 +2583,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.double get packetLossPercentage => $_getN(9); @$pb.TagNumber(10) - set packetLossPercentage($core.double v) { - $_setFloat(9, v); - } - + set packetLossPercentage($core.double v) { $_setFloat(9, v); } @$pb.TagNumber(10) $core.bool hasPacketLossPercentage() => $_has(9); @$pb.TagNumber(10) @@ -3362,10 +2592,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get packetsDuplicate => $_getIZ(10); @$pb.TagNumber(11) - set packetsDuplicate($core.int v) { - $_setUnsignedInt32(10, v); - } - + set packetsDuplicate($core.int v) { $_setUnsignedInt32(10, v); } @$pb.TagNumber(11) $core.bool hasPacketsDuplicate() => $_has(10); @$pb.TagNumber(11) @@ -3374,10 +2601,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.double get packetDuplicateRate => $_getN(11); @$pb.TagNumber(12) - set packetDuplicateRate($core.double v) { - $_setDouble(11, v); - } - + set packetDuplicateRate($core.double v) { $_setDouble(11, v); } @$pb.TagNumber(12) $core.bool hasPacketDuplicateRate() => $_has(11); @$pb.TagNumber(12) @@ -3386,10 +2610,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(13) $fixnum.Int64 get bytesDuplicate => $_getI64(12); @$pb.TagNumber(13) - set bytesDuplicate($fixnum.Int64 v) { - $_setInt64(12, v); - } - + set bytesDuplicate($fixnum.Int64 v) { $_setInt64(12, v); } @$pb.TagNumber(13) $core.bool hasBytesDuplicate() => $_has(12); @$pb.TagNumber(13) @@ -3398,10 +2619,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.double get bitrateDuplicate => $_getN(13); @$pb.TagNumber(14) - set bitrateDuplicate($core.double v) { - $_setDouble(13, v); - } - + set bitrateDuplicate($core.double v) { $_setDouble(13, v); } @$pb.TagNumber(14) $core.bool hasBitrateDuplicate() => $_has(13); @$pb.TagNumber(14) @@ -3410,10 +2628,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.int get packetsPadding => $_getIZ(14); @$pb.TagNumber(15) - set packetsPadding($core.int v) { - $_setUnsignedInt32(14, v); - } - + set packetsPadding($core.int v) { $_setUnsignedInt32(14, v); } @$pb.TagNumber(15) $core.bool hasPacketsPadding() => $_has(14); @$pb.TagNumber(15) @@ -3422,10 +2637,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(16) $core.double get packetPaddingRate => $_getN(15); @$pb.TagNumber(16) - set packetPaddingRate($core.double v) { - $_setDouble(15, v); - } - + set packetPaddingRate($core.double v) { $_setDouble(15, v); } @$pb.TagNumber(16) $core.bool hasPacketPaddingRate() => $_has(15); @$pb.TagNumber(16) @@ -3434,10 +2646,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(17) $fixnum.Int64 get bytesPadding => $_getI64(16); @$pb.TagNumber(17) - set bytesPadding($fixnum.Int64 v) { - $_setInt64(16, v); - } - + set bytesPadding($fixnum.Int64 v) { $_setInt64(16, v); } @$pb.TagNumber(17) $core.bool hasBytesPadding() => $_has(16); @$pb.TagNumber(17) @@ -3446,10 +2655,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(18) $core.double get bitratePadding => $_getN(17); @$pb.TagNumber(18) - set bitratePadding($core.double v) { - $_setDouble(17, v); - } - + set bitratePadding($core.double v) { $_setDouble(17, v); } @$pb.TagNumber(18) $core.bool hasBitratePadding() => $_has(17); @$pb.TagNumber(18) @@ -3458,10 +2664,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(19) $core.int get packetsOutOfOrder => $_getIZ(18); @$pb.TagNumber(19) - set packetsOutOfOrder($core.int v) { - $_setUnsignedInt32(18, v); - } - + set packetsOutOfOrder($core.int v) { $_setUnsignedInt32(18, v); } @$pb.TagNumber(19) $core.bool hasPacketsOutOfOrder() => $_has(18); @$pb.TagNumber(19) @@ -3470,10 +2673,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(20) $core.int get frames => $_getIZ(19); @$pb.TagNumber(20) - set frames($core.int v) { - $_setUnsignedInt32(19, v); - } - + set frames($core.int v) { $_setUnsignedInt32(19, v); } @$pb.TagNumber(20) $core.bool hasFrames() => $_has(19); @$pb.TagNumber(20) @@ -3482,10 +2682,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(21) $core.double get frameRate => $_getN(20); @$pb.TagNumber(21) - set frameRate($core.double v) { - $_setDouble(20, v); - } - + set frameRate($core.double v) { $_setDouble(20, v); } @$pb.TagNumber(21) $core.bool hasFrameRate() => $_has(20); @$pb.TagNumber(21) @@ -3494,10 +2691,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(22) $core.double get jitterCurrent => $_getN(21); @$pb.TagNumber(22) - set jitterCurrent($core.double v) { - $_setDouble(21, v); - } - + set jitterCurrent($core.double v) { $_setDouble(21, v); } @$pb.TagNumber(22) $core.bool hasJitterCurrent() => $_has(21); @$pb.TagNumber(22) @@ -3506,10 +2700,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(23) $core.double get jitterMax => $_getN(22); @$pb.TagNumber(23) - set jitterMax($core.double v) { - $_setDouble(22, v); - } - + set jitterMax($core.double v) { $_setDouble(22, v); } @$pb.TagNumber(23) $core.bool hasJitterMax() => $_has(22); @$pb.TagNumber(23) @@ -3521,10 +2712,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(25) $core.int get nacks => $_getIZ(24); @$pb.TagNumber(25) - set nacks($core.int v) { - $_setUnsignedInt32(24, v); - } - + set nacks($core.int v) { $_setUnsignedInt32(24, v); } @$pb.TagNumber(25) $core.bool hasNacks() => $_has(24); @$pb.TagNumber(25) @@ -3533,10 +2721,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(26) $core.int get nackMisses => $_getIZ(25); @$pb.TagNumber(26) - set nackMisses($core.int v) { - $_setUnsignedInt32(25, v); - } - + set nackMisses($core.int v) { $_setUnsignedInt32(25, v); } @$pb.TagNumber(26) $core.bool hasNackMisses() => $_has(25); @$pb.TagNumber(26) @@ -3545,10 +2730,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(27) $core.int get plis => $_getIZ(26); @$pb.TagNumber(27) - set plis($core.int v) { - $_setUnsignedInt32(26, v); - } - + set plis($core.int v) { $_setUnsignedInt32(26, v); } @$pb.TagNumber(27) $core.bool hasPlis() => $_has(26); @$pb.TagNumber(27) @@ -3557,10 +2739,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(28) $0.Timestamp get lastPli => $_getN(27); @$pb.TagNumber(28) - set lastPli($0.Timestamp v) { - setField(28, v); - } - + set lastPli($0.Timestamp v) { setField(28, v); } @$pb.TagNumber(28) $core.bool hasLastPli() => $_has(27); @$pb.TagNumber(28) @@ -3571,10 +2750,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(29) $core.int get firs => $_getIZ(28); @$pb.TagNumber(29) - set firs($core.int v) { - $_setUnsignedInt32(28, v); - } - + set firs($core.int v) { $_setUnsignedInt32(28, v); } @$pb.TagNumber(29) $core.bool hasFirs() => $_has(28); @$pb.TagNumber(29) @@ -3583,10 +2759,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(30) $0.Timestamp get lastFir => $_getN(29); @$pb.TagNumber(30) - set lastFir($0.Timestamp v) { - setField(30, v); - } - + set lastFir($0.Timestamp v) { setField(30, v); } @$pb.TagNumber(30) $core.bool hasLastFir() => $_has(29); @$pb.TagNumber(30) @@ -3597,10 +2770,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(31) $core.int get rttCurrent => $_getIZ(30); @$pb.TagNumber(31) - set rttCurrent($core.int v) { - $_setUnsignedInt32(30, v); - } - + set rttCurrent($core.int v) { $_setUnsignedInt32(30, v); } @$pb.TagNumber(31) $core.bool hasRttCurrent() => $_has(30); @$pb.TagNumber(31) @@ -3609,10 +2779,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(32) $core.int get rttMax => $_getIZ(31); @$pb.TagNumber(32) - set rttMax($core.int v) { - $_setUnsignedInt32(31, v); - } - + set rttMax($core.int v) { $_setUnsignedInt32(31, v); } @$pb.TagNumber(32) $core.bool hasRttMax() => $_has(31); @$pb.TagNumber(32) @@ -3621,10 +2788,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(33) $core.int get keyFrames => $_getIZ(32); @$pb.TagNumber(33) - set keyFrames($core.int v) { - $_setUnsignedInt32(32, v); - } - + set keyFrames($core.int v) { $_setUnsignedInt32(32, v); } @$pb.TagNumber(33) $core.bool hasKeyFrames() => $_has(32); @$pb.TagNumber(33) @@ -3633,10 +2797,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(34) $0.Timestamp get lastKeyFrame => $_getN(33); @$pb.TagNumber(34) - set lastKeyFrame($0.Timestamp v) { - setField(34, v); - } - + set lastKeyFrame($0.Timestamp v) { setField(34, v); } @$pb.TagNumber(34) $core.bool hasLastKeyFrame() => $_has(33); @$pb.TagNumber(34) @@ -3647,10 +2808,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(35) $core.int get layerLockPlis => $_getIZ(34); @$pb.TagNumber(35) - set layerLockPlis($core.int v) { - $_setUnsignedInt32(34, v); - } - + set layerLockPlis($core.int v) { $_setUnsignedInt32(34, v); } @$pb.TagNumber(35) $core.bool hasLayerLockPlis() => $_has(34); @$pb.TagNumber(35) @@ -3659,10 +2817,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(36) $0.Timestamp get lastLayerLockPli => $_getN(35); @$pb.TagNumber(36) - set lastLayerLockPli($0.Timestamp v) { - setField(36, v); - } - + set lastLayerLockPli($0.Timestamp v) { setField(36, v); } @$pb.TagNumber(36) $core.bool hasLastLayerLockPli() => $_has(35); @$pb.TagNumber(36) @@ -3673,10 +2828,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(37) $core.int get nackAcks => $_getIZ(36); @$pb.TagNumber(37) - set nackAcks($core.int v) { - $_setUnsignedInt32(36, v); - } - + set nackAcks($core.int v) { $_setUnsignedInt32(36, v); } @$pb.TagNumber(37) $core.bool hasNackAcks() => $_has(36); @$pb.TagNumber(37) @@ -3685,10 +2837,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(38) $core.int get nackRepeated => $_getIZ(37); @$pb.TagNumber(38) - set nackRepeated($core.int v) { - $_setUnsignedInt32(37, v); - } - + set nackRepeated($core.int v) { $_setUnsignedInt32(37, v); } @$pb.TagNumber(38) $core.bool hasNackRepeated() => $_has(37); @$pb.TagNumber(38) @@ -3697,10 +2846,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(39) $fixnum.Int64 get headerBytes => $_getI64(38); @$pb.TagNumber(39) - set headerBytes($fixnum.Int64 v) { - $_setInt64(38, v); - } - + set headerBytes($fixnum.Int64 v) { $_setInt64(38, v); } @$pb.TagNumber(39) $core.bool hasHeaderBytes() => $_has(38); @$pb.TagNumber(39) @@ -3709,10 +2855,7 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(40) $fixnum.Int64 get headerBytesDuplicate => $_getI64(39); @$pb.TagNumber(40) - set headerBytesDuplicate($fixnum.Int64 v) { - $_setInt64(39, v); - } - + set headerBytesDuplicate($fixnum.Int64 v) { $_setInt64(39, v); } @$pb.TagNumber(40) $core.bool hasHeaderBytesDuplicate() => $_has(39); @$pb.TagNumber(40) @@ -3721,87 +2864,84 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(41) $fixnum.Int64 get headerBytesPadding => $_getI64(40); @$pb.TagNumber(41) - set headerBytesPadding($fixnum.Int64 v) { - $_setInt64(40, v); - } - + set headerBytesPadding($fixnum.Int64 v) { $_setInt64(40, v); } @$pb.TagNumber(41) $core.bool hasHeaderBytesPadding() => $_has(40); @$pb.TagNumber(41) void clearHeaderBytesPadding() => clearField(41); + + @$pb.TagNumber(44) + RTPDrift get packetDrift => $_getN(41); + @$pb.TagNumber(44) + set packetDrift(RTPDrift v) { setField(44, v); } + @$pb.TagNumber(44) + $core.bool hasPacketDrift() => $_has(41); + @$pb.TagNumber(44) + void clearPacketDrift() => clearField(44); + @$pb.TagNumber(44) + RTPDrift ensurePacketDrift() => $_ensure(41); + + @$pb.TagNumber(45) + RTPDrift get reportDrift => $_getN(42); + @$pb.TagNumber(45) + set reportDrift(RTPDrift v) { setField(45, v); } + @$pb.TagNumber(45) + $core.bool hasReportDrift() => $_has(42); + @$pb.TagNumber(45) + void clearReportDrift() => clearField(45); + @$pb.TagNumber(45) + RTPDrift ensureReportDrift() => $_ensure(42); } class TimedVersion extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TimedVersion', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'unixMicro') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ticks', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - TimedVersion._() : super(); factory TimedVersion({ $fixnum.Int64? unixMicro, $core.int? ticks, }) { - final _result = create(); + final $result = create(); if (unixMicro != null) { - _result.unixMicro = unixMicro; + $result.unixMicro = unixMicro; } if (ticks != null) { - _result.ticks = ticks; + $result.ticks = ticks; } - return _result; + return $result; } - factory TimedVersion.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TimedVersion.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + TimedVersion._() : super(); + factory TimedVersion.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TimedVersion.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TimedVersion', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'unixMicro') + ..a<$core.int>(2, _omitFieldNames ? '' : 'ticks', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TimedVersion clone() => TimedVersion()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TimedVersion copyWith(void Function(TimedVersion) updates) => - super.copyWith((message) => updates(message as TimedVersion)) - as TimedVersion; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TimedVersion copyWith(void Function(TimedVersion) updates) => super.copyWith((message) => updates(message as TimedVersion)) as TimedVersion; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TimedVersion create() => TimedVersion._(); TimedVersion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TimedVersion getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TimedVersion getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TimedVersion? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get unixMicro => $_getI64(0); @$pb.TagNumber(1) - set unixMicro($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set unixMicro($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasUnixMicro() => $_has(0); @$pb.TagNumber(1) @@ -3810,12 +2950,13 @@ class TimedVersion extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get ticks => $_getIZ(1); @$pb.TagNumber(2) - set ticks($core.int v) { - $_setSignedInt32(1, v); - } - + set ticks($core.int v) { $_setSignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasTicks() => $_has(1); @$pb.TagNumber(2) void clearTicks() => clearField(2); } + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/livekit_models.pbenum.dart b/lib/src/proto/livekit_models.pbenum.dart index 749deb5b..accf4636 100644 --- a/lib/src/proto/livekit_models.pbenum.dart +++ b/lib/src/proto/livekit_models.pbenum.dart @@ -1,86 +1,43 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_models.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + import 'dart:core' as $core; + import 'package:protobuf/protobuf.dart' as $pb; class AudioCodec extends $pb.ProtobufEnum { - static const AudioCodec DEFAULT_AC = AudioCodec._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEFAULT_AC'); - static const AudioCodec OPUS = AudioCodec._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPUS'); - static const AudioCodec AAC = AudioCodec._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AAC'); - - static const $core.List values = [ + static const AudioCodec DEFAULT_AC = AudioCodec._(0, _omitEnumNames ? '' : 'DEFAULT_AC'); + static const AudioCodec OPUS = AudioCodec._(1, _omitEnumNames ? '' : 'OPUS'); + static const AudioCodec AAC = AudioCodec._(2, _omitEnumNames ? '' : 'AAC'); + + static const $core.List values = [ DEFAULT_AC, OPUS, AAC, ]; - static final $core.Map<$core.int, AudioCodec> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, AudioCodec> _byValue = $pb.ProtobufEnum.initByValue(values); static AudioCodec? valueOf($core.int value) => _byValue[value]; const AudioCodec._($core.int v, $core.String n) : super(v, n); } class VideoCodec extends $pb.ProtobufEnum { - static const VideoCodec DEFAULT_VC = VideoCodec._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEFAULT_VC'); - static const VideoCodec H264_BASELINE = VideoCodec._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'H264_BASELINE'); - static const VideoCodec H264_MAIN = VideoCodec._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'H264_MAIN'); - static const VideoCodec H264_HIGH = VideoCodec._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'H264_HIGH'); - static const VideoCodec VP8 = VideoCodec._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'VP8'); - - static const $core.List values = [ + static const VideoCodec DEFAULT_VC = VideoCodec._(0, _omitEnumNames ? '' : 'DEFAULT_VC'); + static const VideoCodec H264_BASELINE = VideoCodec._(1, _omitEnumNames ? '' : 'H264_BASELINE'); + static const VideoCodec H264_MAIN = VideoCodec._(2, _omitEnumNames ? '' : 'H264_MAIN'); + static const VideoCodec H264_HIGH = VideoCodec._(3, _omitEnumNames ? '' : 'H264_HIGH'); + static const VideoCodec VP8 = VideoCodec._(4, _omitEnumNames ? '' : 'VP8'); + + static const $core.List values = [ DEFAULT_VC, H264_BASELINE, H264_MAIN, @@ -88,71 +45,37 @@ class VideoCodec extends $pb.ProtobufEnum { VP8, ]; - static final $core.Map<$core.int, VideoCodec> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, VideoCodec> _byValue = $pb.ProtobufEnum.initByValue(values); static VideoCodec? valueOf($core.int value) => _byValue[value]; const VideoCodec._($core.int v, $core.String n) : super(v, n); } class TrackType extends $pb.ProtobufEnum { - static const TrackType AUDIO = TrackType._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUDIO'); - static const TrackType VIDEO = TrackType._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'VIDEO'); - static const TrackType DATA = TrackType._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DATA'); - - static const $core.List values = [ + static const TrackType AUDIO = TrackType._(0, _omitEnumNames ? '' : 'AUDIO'); + static const TrackType VIDEO = TrackType._(1, _omitEnumNames ? '' : 'VIDEO'); + static const TrackType DATA = TrackType._(2, _omitEnumNames ? '' : 'DATA'); + + static const $core.List values = [ AUDIO, VIDEO, DATA, ]; - static final $core.Map<$core.int, TrackType> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, TrackType> _byValue = $pb.ProtobufEnum.initByValue(values); static TrackType? valueOf($core.int value) => _byValue[value]; const TrackType._($core.int v, $core.String n) : super(v, n); } class TrackSource extends $pb.ProtobufEnum { - static const TrackSource UNKNOWN = TrackSource._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNKNOWN'); - static const TrackSource CAMERA = TrackSource._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CAMERA'); - static const TrackSource MICROPHONE = TrackSource._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MICROPHONE'); - static const TrackSource SCREEN_SHARE = TrackSource._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SCREEN_SHARE'); - static const TrackSource SCREEN_SHARE_AUDIO = TrackSource._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SCREEN_SHARE_AUDIO'); - - static const $core.List values = [ + static const TrackSource UNKNOWN = TrackSource._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const TrackSource CAMERA = TrackSource._(1, _omitEnumNames ? '' : 'CAMERA'); + static const TrackSource MICROPHONE = TrackSource._(2, _omitEnumNames ? '' : 'MICROPHONE'); + static const TrackSource SCREEN_SHARE = TrackSource._(3, _omitEnumNames ? '' : 'SCREEN_SHARE'); + static const TrackSource SCREEN_SHARE_AUDIO = TrackSource._(4, _omitEnumNames ? '' : 'SCREEN_SHARE_AUDIO'); + + static const $core.List values = [ UNKNOWN, CAMERA, MICROPHONE, @@ -160,152 +83,76 @@ class TrackSource extends $pb.ProtobufEnum { SCREEN_SHARE_AUDIO, ]; - static final $core.Map<$core.int, TrackSource> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, TrackSource> _byValue = $pb.ProtobufEnum.initByValue(values); static TrackSource? valueOf($core.int value) => _byValue[value]; const TrackSource._($core.int v, $core.String n) : super(v, n); } class VideoQuality extends $pb.ProtobufEnum { - static const VideoQuality LOW = VideoQuality._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOW'); - static const VideoQuality MEDIUM = VideoQuality._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MEDIUM'); - static const VideoQuality HIGH = VideoQuality._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HIGH'); - static const VideoQuality OFF = VideoQuality._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OFF'); - - static const $core.List values = [ + static const VideoQuality LOW = VideoQuality._(0, _omitEnumNames ? '' : 'LOW'); + static const VideoQuality MEDIUM = VideoQuality._(1, _omitEnumNames ? '' : 'MEDIUM'); + static const VideoQuality HIGH = VideoQuality._(2, _omitEnumNames ? '' : 'HIGH'); + static const VideoQuality OFF = VideoQuality._(3, _omitEnumNames ? '' : 'OFF'); + + static const $core.List values = [ LOW, MEDIUM, HIGH, OFF, ]; - static final $core.Map<$core.int, VideoQuality> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, VideoQuality> _byValue = $pb.ProtobufEnum.initByValue(values); static VideoQuality? valueOf($core.int value) => _byValue[value]; const VideoQuality._($core.int v, $core.String n) : super(v, n); } class ConnectionQuality extends $pb.ProtobufEnum { - static const ConnectionQuality POOR = ConnectionQuality._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'POOR'); - static const ConnectionQuality GOOD = ConnectionQuality._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GOOD'); - static const ConnectionQuality EXCELLENT = ConnectionQuality._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EXCELLENT'); - - static const $core.List values = [ + static const ConnectionQuality POOR = ConnectionQuality._(0, _omitEnumNames ? '' : 'POOR'); + static const ConnectionQuality GOOD = ConnectionQuality._(1, _omitEnumNames ? '' : 'GOOD'); + static const ConnectionQuality EXCELLENT = ConnectionQuality._(2, _omitEnumNames ? '' : 'EXCELLENT'); + + static const $core.List values = [ POOR, GOOD, EXCELLENT, ]; - static final $core.Map<$core.int, ConnectionQuality> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ConnectionQuality> _byValue = $pb.ProtobufEnum.initByValue(values); static ConnectionQuality? valueOf($core.int value) => _byValue[value]; const ConnectionQuality._($core.int v, $core.String n) : super(v, n); } class ClientConfigSetting extends $pb.ProtobufEnum { - static const ClientConfigSetting UNSET = ClientConfigSetting._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSET'); - static const ClientConfigSetting DISABLED = ClientConfigSetting._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DISABLED'); - static const ClientConfigSetting ENABLED = ClientConfigSetting._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ENABLED'); - - static const $core.List values = [ + static const ClientConfigSetting UNSET = ClientConfigSetting._(0, _omitEnumNames ? '' : 'UNSET'); + static const ClientConfigSetting DISABLED = ClientConfigSetting._(1, _omitEnumNames ? '' : 'DISABLED'); + static const ClientConfigSetting ENABLED = ClientConfigSetting._(2, _omitEnumNames ? '' : 'ENABLED'); + + static const $core.List values = [ UNSET, DISABLED, ENABLED, ]; - static final $core.Map<$core.int, ClientConfigSetting> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ClientConfigSetting> _byValue = $pb.ProtobufEnum.initByValue(values); static ClientConfigSetting? valueOf($core.int value) => _byValue[value]; const ClientConfigSetting._($core.int v, $core.String n) : super(v, n); } class DisconnectReason extends $pb.ProtobufEnum { - static const DisconnectReason UNKNOWN_REASON = DisconnectReason._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNKNOWN_REASON'); - static const DisconnectReason CLIENT_INITIATED = DisconnectReason._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLIENT_INITIATED'); - static const DisconnectReason DUPLICATE_IDENTITY = DisconnectReason._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DUPLICATE_IDENTITY'); - static const DisconnectReason SERVER_SHUTDOWN = DisconnectReason._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVER_SHUTDOWN'); - static const DisconnectReason PARTICIPANT_REMOVED = DisconnectReason._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PARTICIPANT_REMOVED'); - static const DisconnectReason ROOM_DELETED = DisconnectReason._( - 5, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ROOM_DELETED'); - static const DisconnectReason STATE_MISMATCH = DisconnectReason._( - 6, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_MISMATCH'); - static const DisconnectReason JOIN_FAILURE = DisconnectReason._( - 7, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JOIN_FAILURE'); - - static const $core.List values = [ + static const DisconnectReason UNKNOWN_REASON = DisconnectReason._(0, _omitEnumNames ? '' : 'UNKNOWN_REASON'); + static const DisconnectReason CLIENT_INITIATED = DisconnectReason._(1, _omitEnumNames ? '' : 'CLIENT_INITIATED'); + static const DisconnectReason DUPLICATE_IDENTITY = DisconnectReason._(2, _omitEnumNames ? '' : 'DUPLICATE_IDENTITY'); + static const DisconnectReason SERVER_SHUTDOWN = DisconnectReason._(3, _omitEnumNames ? '' : 'SERVER_SHUTDOWN'); + static const DisconnectReason PARTICIPANT_REMOVED = DisconnectReason._(4, _omitEnumNames ? '' : 'PARTICIPANT_REMOVED'); + static const DisconnectReason ROOM_DELETED = DisconnectReason._(5, _omitEnumNames ? '' : 'ROOM_DELETED'); + static const DisconnectReason STATE_MISMATCH = DisconnectReason._(6, _omitEnumNames ? '' : 'STATE_MISMATCH'); + static const DisconnectReason JOIN_FAILURE = DisconnectReason._(7, _omitEnumNames ? '' : 'JOIN_FAILURE'); + + static const $core.List values = [ UNKNOWN_REASON, CLIENT_INITIATED, DUPLICATE_IDENTITY, @@ -316,202 +163,130 @@ class DisconnectReason extends $pb.ProtobufEnum { JOIN_FAILURE, ]; - static final $core.Map<$core.int, DisconnectReason> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, DisconnectReason> _byValue = $pb.ProtobufEnum.initByValue(values); static DisconnectReason? valueOf($core.int value) => _byValue[value]; const DisconnectReason._($core.int v, $core.String n) : super(v, n); } class ReconnectReason extends $pb.ProtobufEnum { - static const ReconnectReason RR_UNKOWN = ReconnectReason._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RR_UNKOWN'); - static const ReconnectReason RR_SIGNAL_DISCONNECTED = ReconnectReason._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RR_SIGNAL_DISCONNECTED'); - static const ReconnectReason RR_PUBLISHER_FAILED = ReconnectReason._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RR_PUBLISHER_FAILED'); - static const ReconnectReason RR_SUBSCRIBER_FAILED = ReconnectReason._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RR_SUBSCRIBER_FAILED'); - static const ReconnectReason RR_SWITCH_CANDIDATE = ReconnectReason._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RR_SWITCH_CANDIDATE'); - - static const $core.List values = [ - RR_UNKOWN, + static const ReconnectReason RR_UNKNOWN = ReconnectReason._(0, _omitEnumNames ? '' : 'RR_UNKNOWN'); + static const ReconnectReason RR_SIGNAL_DISCONNECTED = ReconnectReason._(1, _omitEnumNames ? '' : 'RR_SIGNAL_DISCONNECTED'); + static const ReconnectReason RR_PUBLISHER_FAILED = ReconnectReason._(2, _omitEnumNames ? '' : 'RR_PUBLISHER_FAILED'); + static const ReconnectReason RR_SUBSCRIBER_FAILED = ReconnectReason._(3, _omitEnumNames ? '' : 'RR_SUBSCRIBER_FAILED'); + static const ReconnectReason RR_SWITCH_CANDIDATE = ReconnectReason._(4, _omitEnumNames ? '' : 'RR_SWITCH_CANDIDATE'); + + static const $core.List values = [ + RR_UNKNOWN, RR_SIGNAL_DISCONNECTED, RR_PUBLISHER_FAILED, RR_SUBSCRIBER_FAILED, RR_SWITCH_CANDIDATE, ]; - static final $core.Map<$core.int, ReconnectReason> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ReconnectReason> _byValue = $pb.ProtobufEnum.initByValue(values); static ReconnectReason? valueOf($core.int value) => _byValue[value]; const ReconnectReason._($core.int v, $core.String n) : super(v, n); } +class SubscriptionError extends $pb.ProtobufEnum { + static const SubscriptionError SE_UNKNOWN = SubscriptionError._(0, _omitEnumNames ? '' : 'SE_UNKNOWN'); + static const SubscriptionError SE_CODEC_UNSUPPORTED = SubscriptionError._(1, _omitEnumNames ? '' : 'SE_CODEC_UNSUPPORTED'); + static const SubscriptionError SE_TRACK_NOTFOUND = SubscriptionError._(2, _omitEnumNames ? '' : 'SE_TRACK_NOTFOUND'); + + static const $core.List values = [ + SE_UNKNOWN, + SE_CODEC_UNSUPPORTED, + SE_TRACK_NOTFOUND, + ]; + + static final $core.Map<$core.int, SubscriptionError> _byValue = $pb.ProtobufEnum.initByValue(values); + static SubscriptionError? valueOf($core.int value) => _byValue[value]; + + const SubscriptionError._($core.int v, $core.String n) : super(v, n); +} + class ParticipantInfo_State extends $pb.ProtobufEnum { - static const ParticipantInfo_State JOINING = ParticipantInfo_State._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JOINING'); - static const ParticipantInfo_State JOINED = ParticipantInfo_State._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JOINED'); - static const ParticipantInfo_State ACTIVE = ParticipantInfo_State._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTIVE'); - static const ParticipantInfo_State DISCONNECTED = ParticipantInfo_State._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DISCONNECTED'); - - static const $core.List values = - [ + static const ParticipantInfo_State JOINING = ParticipantInfo_State._(0, _omitEnumNames ? '' : 'JOINING'); + static const ParticipantInfo_State JOINED = ParticipantInfo_State._(1, _omitEnumNames ? '' : 'JOINED'); + static const ParticipantInfo_State ACTIVE = ParticipantInfo_State._(2, _omitEnumNames ? '' : 'ACTIVE'); + static const ParticipantInfo_State DISCONNECTED = ParticipantInfo_State._(3, _omitEnumNames ? '' : 'DISCONNECTED'); + + static const $core.List values = [ JOINING, JOINED, ACTIVE, DISCONNECTED, ]; - static final $core.Map<$core.int, ParticipantInfo_State> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ParticipantInfo_State> _byValue = $pb.ProtobufEnum.initByValue(values); static ParticipantInfo_State? valueOf($core.int value) => _byValue[value]; const ParticipantInfo_State._($core.int v, $core.String n) : super(v, n); } class Encryption_Type extends $pb.ProtobufEnum { - static const Encryption_Type NONE = Encryption_Type._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NONE'); - static const Encryption_Type GCM = Encryption_Type._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GCM'); - static const Encryption_Type CUSTOM = Encryption_Type._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CUSTOM'); - - static const $core.List values = [ + static const Encryption_Type NONE = Encryption_Type._(0, _omitEnumNames ? '' : 'NONE'); + static const Encryption_Type GCM = Encryption_Type._(1, _omitEnumNames ? '' : 'GCM'); + static const Encryption_Type CUSTOM = Encryption_Type._(2, _omitEnumNames ? '' : 'CUSTOM'); + + static const $core.List values = [ NONE, GCM, CUSTOM, ]; - static final $core.Map<$core.int, Encryption_Type> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, Encryption_Type> _byValue = $pb.ProtobufEnum.initByValue(values); static Encryption_Type? valueOf($core.int value) => _byValue[value]; const Encryption_Type._($core.int v, $core.String n) : super(v, n); } class DataPacket_Kind extends $pb.ProtobufEnum { - static const DataPacket_Kind RELIABLE = DataPacket_Kind._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RELIABLE'); - static const DataPacket_Kind LOSSY = DataPacket_Kind._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOSSY'); - - static const $core.List values = [ + static const DataPacket_Kind RELIABLE = DataPacket_Kind._(0, _omitEnumNames ? '' : 'RELIABLE'); + static const DataPacket_Kind LOSSY = DataPacket_Kind._(1, _omitEnumNames ? '' : 'LOSSY'); + + static const $core.List values = [ RELIABLE, LOSSY, ]; - static final $core.Map<$core.int, DataPacket_Kind> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, DataPacket_Kind> _byValue = $pb.ProtobufEnum.initByValue(values); static DataPacket_Kind? valueOf($core.int value) => _byValue[value]; const DataPacket_Kind._($core.int v, $core.String n) : super(v, n); } class ServerInfo_Edition extends $pb.ProtobufEnum { - static const ServerInfo_Edition Standard = ServerInfo_Edition._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'Standard'); - static const ServerInfo_Edition Cloud = ServerInfo_Edition._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'Cloud'); - - static const $core.List values = [ + static const ServerInfo_Edition Standard = ServerInfo_Edition._(0, _omitEnumNames ? '' : 'Standard'); + static const ServerInfo_Edition Cloud = ServerInfo_Edition._(1, _omitEnumNames ? '' : 'Cloud'); + + static const $core.List values = [ Standard, Cloud, ]; - static final $core.Map<$core.int, ServerInfo_Edition> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ServerInfo_Edition> _byValue = $pb.ProtobufEnum.initByValue(values); static ServerInfo_Edition? valueOf($core.int value) => _byValue[value]; const ServerInfo_Edition._($core.int v, $core.String n) : super(v, n); } class ClientInfo_SDK extends $pb.ProtobufEnum { - static const ClientInfo_SDK UNKNOWN = ClientInfo_SDK._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNKNOWN'); - static const ClientInfo_SDK JS = ClientInfo_SDK._(1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'JS'); - static const ClientInfo_SDK SWIFT = ClientInfo_SDK._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SWIFT'); - static const ClientInfo_SDK ANDROID = ClientInfo_SDK._( - 3, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ANDROID'); - static const ClientInfo_SDK FLUTTER = ClientInfo_SDK._( - 4, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FLUTTER'); - static const ClientInfo_SDK GO = ClientInfo_SDK._(5, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'GO'); - static const ClientInfo_SDK UNITY = ClientInfo_SDK._( - 6, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNITY'); - - static const $core.List values = [ + static const ClientInfo_SDK UNKNOWN = ClientInfo_SDK._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const ClientInfo_SDK JS = ClientInfo_SDK._(1, _omitEnumNames ? '' : 'JS'); + static const ClientInfo_SDK SWIFT = ClientInfo_SDK._(2, _omitEnumNames ? '' : 'SWIFT'); + static const ClientInfo_SDK ANDROID = ClientInfo_SDK._(3, _omitEnumNames ? '' : 'ANDROID'); + static const ClientInfo_SDK FLUTTER = ClientInfo_SDK._(4, _omitEnumNames ? '' : 'FLUTTER'); + static const ClientInfo_SDK GO = ClientInfo_SDK._(5, _omitEnumNames ? '' : 'GO'); + static const ClientInfo_SDK UNITY = ClientInfo_SDK._(6, _omitEnumNames ? '' : 'UNITY'); + static const ClientInfo_SDK REACT_NATIVE = ClientInfo_SDK._(7, _omitEnumNames ? '' : 'REACT_NATIVE'); + static const ClientInfo_SDK RUST = ClientInfo_SDK._(8, _omitEnumNames ? '' : 'RUST'); + static const ClientInfo_SDK PYTHON = ClientInfo_SDK._(9, _omitEnumNames ? '' : 'PYTHON'); + static const ClientInfo_SDK CPP = ClientInfo_SDK._(10, _omitEnumNames ? '' : 'CPP'); + + static const $core.List values = [ UNKNOWN, JS, SWIFT, @@ -519,11 +294,17 @@ class ClientInfo_SDK extends $pb.ProtobufEnum { FLUTTER, GO, UNITY, + REACT_NATIVE, + RUST, + PYTHON, + CPP, ]; - static final $core.Map<$core.int, ClientInfo_SDK> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ClientInfo_SDK> _byValue = $pb.ProtobufEnum.initByValue(values); static ClientInfo_SDK? valueOf($core.int value) => _byValue[value]; const ClientInfo_SDK._($core.int v, $core.String n) : super(v, n); } + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/proto/livekit_models.pbjson.dart b/lib/src/proto/livekit_models.pbjson.dart index d8d7a6f7..67825864 100644 --- a/lib/src/proto/livekit_models.pbjson.dart +++ b/lib/src/proto/livekit_models.pbjson.dart @@ -1,939 +1,752 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_models.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + import 'dart:convert' as $convert; +import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; @$core.Deprecated('Use audioCodecDescriptor instead') -const AudioCodec$json = const { +const AudioCodec$json = { '1': 'AudioCodec', - '2': const [ - const {'1': 'DEFAULT_AC', '2': 0}, - const {'1': 'OPUS', '2': 1}, - const {'1': 'AAC', '2': 2}, + '2': [ + {'1': 'DEFAULT_AC', '2': 0}, + {'1': 'OPUS', '2': 1}, + {'1': 'AAC', '2': 2}, ], }; /// Descriptor for `AudioCodec`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List audioCodecDescriptor = $convert.base64Decode( 'CgpBdWRpb0NvZGVjEg4KCkRFRkFVTFRfQUMQABIICgRPUFVTEAESBwoDQUFDEAI='); + @$core.Deprecated('Use videoCodecDescriptor instead') -const VideoCodec$json = const { +const VideoCodec$json = { '1': 'VideoCodec', - '2': const [ - const {'1': 'DEFAULT_VC', '2': 0}, - const {'1': 'H264_BASELINE', '2': 1}, - const {'1': 'H264_MAIN', '2': 2}, - const {'1': 'H264_HIGH', '2': 3}, - const {'1': 'VP8', '2': 4}, + '2': [ + {'1': 'DEFAULT_VC', '2': 0}, + {'1': 'H264_BASELINE', '2': 1}, + {'1': 'H264_MAIN', '2': 2}, + {'1': 'H264_HIGH', '2': 3}, + {'1': 'VP8', '2': 4}, ], }; /// Descriptor for `VideoCodec`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List videoCodecDescriptor = $convert.base64Decode( - 'CgpWaWRlb0NvZGVjEg4KCkRFRkFVTFRfVkMQABIRCg1IMjY0X0JBU0VMSU5FEAESDQoJSDI2NF9NQUlOEAISDQoJSDI2NF9ISUdIEAMSBwoDVlA4EAQ='); + 'CgpWaWRlb0NvZGVjEg4KCkRFRkFVTFRfVkMQABIRCg1IMjY0X0JBU0VMSU5FEAESDQoJSDI2NF' + '9NQUlOEAISDQoJSDI2NF9ISUdIEAMSBwoDVlA4EAQ='); + @$core.Deprecated('Use trackTypeDescriptor instead') -const TrackType$json = const { +const TrackType$json = { '1': 'TrackType', - '2': const [ - const {'1': 'AUDIO', '2': 0}, - const {'1': 'VIDEO', '2': 1}, - const {'1': 'DATA', '2': 2}, + '2': [ + {'1': 'AUDIO', '2': 0}, + {'1': 'VIDEO', '2': 1}, + {'1': 'DATA', '2': 2}, ], }; /// Descriptor for `TrackType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List trackTypeDescriptor = $convert.base64Decode( 'CglUcmFja1R5cGUSCQoFQVVESU8QABIJCgVWSURFTxABEggKBERBVEEQAg=='); + @$core.Deprecated('Use trackSourceDescriptor instead') -const TrackSource$json = const { +const TrackSource$json = { '1': 'TrackSource', - '2': const [ - const {'1': 'UNKNOWN', '2': 0}, - const {'1': 'CAMERA', '2': 1}, - const {'1': 'MICROPHONE', '2': 2}, - const {'1': 'SCREEN_SHARE', '2': 3}, - const {'1': 'SCREEN_SHARE_AUDIO', '2': 4}, + '2': [ + {'1': 'UNKNOWN', '2': 0}, + {'1': 'CAMERA', '2': 1}, + {'1': 'MICROPHONE', '2': 2}, + {'1': 'SCREEN_SHARE', '2': 3}, + {'1': 'SCREEN_SHARE_AUDIO', '2': 4}, ], }; /// Descriptor for `TrackSource`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List trackSourceDescriptor = $convert.base64Decode( - 'CgtUcmFja1NvdXJjZRILCgdVTktOT1dOEAASCgoGQ0FNRVJBEAESDgoKTUlDUk9QSE9ORRACEhAKDFNDUkVFTl9TSEFSRRADEhYKElNDUkVFTl9TSEFSRV9BVURJTxAE'); + 'CgtUcmFja1NvdXJjZRILCgdVTktOT1dOEAASCgoGQ0FNRVJBEAESDgoKTUlDUk9QSE9ORRACEh' + 'AKDFNDUkVFTl9TSEFSRRADEhYKElNDUkVFTl9TSEFSRV9BVURJTxAE'); + @$core.Deprecated('Use videoQualityDescriptor instead') -const VideoQuality$json = const { +const VideoQuality$json = { '1': 'VideoQuality', - '2': const [ - const {'1': 'LOW', '2': 0}, - const {'1': 'MEDIUM', '2': 1}, - const {'1': 'HIGH', '2': 2}, - const {'1': 'OFF', '2': 3}, + '2': [ + {'1': 'LOW', '2': 0}, + {'1': 'MEDIUM', '2': 1}, + {'1': 'HIGH', '2': 2}, + {'1': 'OFF', '2': 3}, ], }; /// Descriptor for `VideoQuality`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List videoQualityDescriptor = $convert.base64Decode( 'CgxWaWRlb1F1YWxpdHkSBwoDTE9XEAASCgoGTUVESVVNEAESCAoESElHSBACEgcKA09GRhAD'); + @$core.Deprecated('Use connectionQualityDescriptor instead') -const ConnectionQuality$json = const { +const ConnectionQuality$json = { '1': 'ConnectionQuality', - '2': const [ - const {'1': 'POOR', '2': 0}, - const {'1': 'GOOD', '2': 1}, - const {'1': 'EXCELLENT', '2': 2}, + '2': [ + {'1': 'POOR', '2': 0}, + {'1': 'GOOD', '2': 1}, + {'1': 'EXCELLENT', '2': 2}, ], }; /// Descriptor for `ConnectionQuality`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List connectionQualityDescriptor = $convert.base64Decode( 'ChFDb25uZWN0aW9uUXVhbGl0eRIICgRQT09SEAASCAoER09PRBABEg0KCUVYQ0VMTEVOVBAC'); + @$core.Deprecated('Use clientConfigSettingDescriptor instead') -const ClientConfigSetting$json = const { +const ClientConfigSetting$json = { '1': 'ClientConfigSetting', - '2': const [ - const {'1': 'UNSET', '2': 0}, - const {'1': 'DISABLED', '2': 1}, - const {'1': 'ENABLED', '2': 2}, + '2': [ + {'1': 'UNSET', '2': 0}, + {'1': 'DISABLED', '2': 1}, + {'1': 'ENABLED', '2': 2}, ], }; /// Descriptor for `ClientConfigSetting`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List clientConfigSettingDescriptor = $convert.base64Decode( - 'ChNDbGllbnRDb25maWdTZXR0aW5nEgkKBVVOU0VUEAASDAoIRElTQUJMRUQQARILCgdFTkFCTEVEEAI='); + 'ChNDbGllbnRDb25maWdTZXR0aW5nEgkKBVVOU0VUEAASDAoIRElTQUJMRUQQARILCgdFTkFCTE' + 'VEEAI='); + @$core.Deprecated('Use disconnectReasonDescriptor instead') -const DisconnectReason$json = const { +const DisconnectReason$json = { '1': 'DisconnectReason', - '2': const [ - const {'1': 'UNKNOWN_REASON', '2': 0}, - const {'1': 'CLIENT_INITIATED', '2': 1}, - const {'1': 'DUPLICATE_IDENTITY', '2': 2}, - const {'1': 'SERVER_SHUTDOWN', '2': 3}, - const {'1': 'PARTICIPANT_REMOVED', '2': 4}, - const {'1': 'ROOM_DELETED', '2': 5}, - const {'1': 'STATE_MISMATCH', '2': 6}, - const {'1': 'JOIN_FAILURE', '2': 7}, + '2': [ + {'1': 'UNKNOWN_REASON', '2': 0}, + {'1': 'CLIENT_INITIATED', '2': 1}, + {'1': 'DUPLICATE_IDENTITY', '2': 2}, + {'1': 'SERVER_SHUTDOWN', '2': 3}, + {'1': 'PARTICIPANT_REMOVED', '2': 4}, + {'1': 'ROOM_DELETED', '2': 5}, + {'1': 'STATE_MISMATCH', '2': 6}, + {'1': 'JOIN_FAILURE', '2': 7}, ], }; /// Descriptor for `DisconnectReason`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List disconnectReasonDescriptor = $convert.base64Decode( - 'ChBEaXNjb25uZWN0UmVhc29uEhIKDlVOS05PV05fUkVBU09OEAASFAoQQ0xJRU5UX0lOSVRJQVRFRBABEhYKEkRVUExJQ0FURV9JREVOVElUWRACEhMKD1NFUlZFUl9TSFVURE9XThADEhcKE1BBUlRJQ0lQQU5UX1JFTU9WRUQQBBIQCgxST09NX0RFTEVURUQQBRISCg5TVEFURV9NSVNNQVRDSBAGEhAKDEpPSU5fRkFJTFVSRRAH'); + 'ChBEaXNjb25uZWN0UmVhc29uEhIKDlVOS05PV05fUkVBU09OEAASFAoQQ0xJRU5UX0lOSVRJQV' + 'RFRBABEhYKEkRVUExJQ0FURV9JREVOVElUWRACEhMKD1NFUlZFUl9TSFVURE9XThADEhcKE1BB' + 'UlRJQ0lQQU5UX1JFTU9WRUQQBBIQCgxST09NX0RFTEVURUQQBRISCg5TVEFURV9NSVNNQVRDSB' + 'AGEhAKDEpPSU5fRkFJTFVSRRAH'); + @$core.Deprecated('Use reconnectReasonDescriptor instead') -const ReconnectReason$json = const { +const ReconnectReason$json = { '1': 'ReconnectReason', - '2': const [ - const {'1': 'RR_UNKOWN', '2': 0}, - const {'1': 'RR_SIGNAL_DISCONNECTED', '2': 1}, - const {'1': 'RR_PUBLISHER_FAILED', '2': 2}, - const {'1': 'RR_SUBSCRIBER_FAILED', '2': 3}, - const {'1': 'RR_SWITCH_CANDIDATE', '2': 4}, + '2': [ + {'1': 'RR_UNKNOWN', '2': 0}, + {'1': 'RR_SIGNAL_DISCONNECTED', '2': 1}, + {'1': 'RR_PUBLISHER_FAILED', '2': 2}, + {'1': 'RR_SUBSCRIBER_FAILED', '2': 3}, + {'1': 'RR_SWITCH_CANDIDATE', '2': 4}, ], }; /// Descriptor for `ReconnectReason`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List reconnectReasonDescriptor = $convert.base64Decode( - 'Cg9SZWNvbm5lY3RSZWFzb24SDQoJUlJfVU5LT1dOEAASGgoWUlJfU0lHTkFMX0RJU0NPTk5FQ1RFRBABEhcKE1JSX1BVQkxJU0hFUl9GQUlMRUQQAhIYChRSUl9TVUJTQ1JJQkVSX0ZBSUxFRBADEhcKE1JSX1NXSVRDSF9DQU5ESURBVEUQBA=='); + 'Cg9SZWNvbm5lY3RSZWFzb24SDgoKUlJfVU5LTk9XThAAEhoKFlJSX1NJR05BTF9ESVNDT05ORU' + 'NURUQQARIXChNSUl9QVUJMSVNIRVJfRkFJTEVEEAISGAoUUlJfU1VCU0NSSUJFUl9GQUlMRUQQ' + 'AxIXChNSUl9TV0lUQ0hfQ0FORElEQVRFEAQ='); + +@$core.Deprecated('Use subscriptionErrorDescriptor instead') +const SubscriptionError$json = { + '1': 'SubscriptionError', + '2': [ + {'1': 'SE_UNKNOWN', '2': 0}, + {'1': 'SE_CODEC_UNSUPPORTED', '2': 1}, + {'1': 'SE_TRACK_NOTFOUND', '2': 2}, + ], +}; + +/// Descriptor for `SubscriptionError`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List subscriptionErrorDescriptor = $convert.base64Decode( + 'ChFTdWJzY3JpcHRpb25FcnJvchIOCgpTRV9VTktOT1dOEAASGAoUU0VfQ09ERUNfVU5TVVBQT1' + 'JURUQQARIVChFTRV9UUkFDS19OT1RGT1VORBAC'); + @$core.Deprecated('Use roomDescriptor instead') -const Room$json = const { +const Room$json = { '1': 'Room', - '2': const [ - const {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, - const {'1': 'empty_timeout', '3': 3, '4': 1, '5': 13, '10': 'emptyTimeout'}, - const { - '1': 'max_participants', - '3': 4, - '4': 1, - '5': 13, - '10': 'maxParticipants' - }, - const {'1': 'creation_time', '3': 5, '4': 1, '5': 3, '10': 'creationTime'}, - const {'1': 'turn_password', '3': 6, '4': 1, '5': 9, '10': 'turnPassword'}, - const { - '1': 'enabled_codecs', - '3': 7, - '4': 3, - '5': 11, - '6': '.livekit.Codec', - '10': 'enabledCodecs' - }, - const {'1': 'metadata', '3': 8, '4': 1, '5': 9, '10': 'metadata'}, - const { - '1': 'num_participants', - '3': 9, - '4': 1, - '5': 13, - '10': 'numParticipants' - }, - const { - '1': 'active_recording', - '3': 10, - '4': 1, - '5': 8, - '10': 'activeRecording' - }, + '2': [ + {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + {'1': 'empty_timeout', '3': 3, '4': 1, '5': 13, '10': 'emptyTimeout'}, + {'1': 'max_participants', '3': 4, '4': 1, '5': 13, '10': 'maxParticipants'}, + {'1': 'creation_time', '3': 5, '4': 1, '5': 3, '10': 'creationTime'}, + {'1': 'turn_password', '3': 6, '4': 1, '5': 9, '10': 'turnPassword'}, + {'1': 'enabled_codecs', '3': 7, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'enabledCodecs'}, + {'1': 'metadata', '3': 8, '4': 1, '5': 9, '10': 'metadata'}, + {'1': 'num_participants', '3': 9, '4': 1, '5': 13, '10': 'numParticipants'}, + {'1': 'num_publishers', '3': 11, '4': 1, '5': 13, '10': 'numPublishers'}, + {'1': 'active_recording', '3': 10, '4': 1, '5': 8, '10': 'activeRecording'}, + {'1': 'playout_delay', '3': 12, '4': 1, '5': 11, '6': '.livekit.PlayoutDelay', '10': 'playoutDelay'}, ], }; /// Descriptor for `Room`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List roomDescriptor = $convert.base64Decode( - 'CgRSb29tEhAKA3NpZBgBIAEoCVIDc2lkEhIKBG5hbWUYAiABKAlSBG5hbWUSIwoNZW1wdHlfdGltZW91dBgDIAEoDVIMZW1wdHlUaW1lb3V0EikKEG1heF9wYXJ0aWNpcGFudHMYBCABKA1SD21heFBhcnRpY2lwYW50cxIjCg1jcmVhdGlvbl90aW1lGAUgASgDUgxjcmVhdGlvblRpbWUSIwoNdHVybl9wYXNzd29yZBgGIAEoCVIMdHVyblBhc3N3b3JkEjUKDmVuYWJsZWRfY29kZWNzGAcgAygLMg4ubGl2ZWtpdC5Db2RlY1INZW5hYmxlZENvZGVjcxIaCghtZXRhZGF0YRgIIAEoCVIIbWV0YWRhdGESKQoQbnVtX3BhcnRpY2lwYW50cxgJIAEoDVIPbnVtUGFydGljaXBhbnRzEikKEGFjdGl2ZV9yZWNvcmRpbmcYCiABKAhSD2FjdGl2ZVJlY29yZGluZw=='); + 'CgRSb29tEhAKA3NpZBgBIAEoCVIDc2lkEhIKBG5hbWUYAiABKAlSBG5hbWUSIwoNZW1wdHlfdG' + 'ltZW91dBgDIAEoDVIMZW1wdHlUaW1lb3V0EikKEG1heF9wYXJ0aWNpcGFudHMYBCABKA1SD21h' + 'eFBhcnRpY2lwYW50cxIjCg1jcmVhdGlvbl90aW1lGAUgASgDUgxjcmVhdGlvblRpbWUSIwoNdH' + 'Vybl9wYXNzd29yZBgGIAEoCVIMdHVyblBhc3N3b3JkEjUKDmVuYWJsZWRfY29kZWNzGAcgAygL' + 'Mg4ubGl2ZWtpdC5Db2RlY1INZW5hYmxlZENvZGVjcxIaCghtZXRhZGF0YRgIIAEoCVIIbWV0YW' + 'RhdGESKQoQbnVtX3BhcnRpY2lwYW50cxgJIAEoDVIPbnVtUGFydGljaXBhbnRzEiUKDm51bV9w' + 'dWJsaXNoZXJzGAsgASgNUg1udW1QdWJsaXNoZXJzEikKEGFjdGl2ZV9yZWNvcmRpbmcYCiABKA' + 'hSD2FjdGl2ZVJlY29yZGluZxI6Cg1wbGF5b3V0X2RlbGF5GAwgASgLMhUubGl2ZWtpdC5QbGF5' + 'b3V0RGVsYXlSDHBsYXlvdXREZWxheQ=='); + @$core.Deprecated('Use codecDescriptor instead') -const Codec$json = const { +const Codec$json = { '1': 'Codec', - '2': const [ - const {'1': 'mime', '3': 1, '4': 1, '5': 9, '10': 'mime'}, - const {'1': 'fmtp_line', '3': 2, '4': 1, '5': 9, '10': 'fmtpLine'}, + '2': [ + {'1': 'mime', '3': 1, '4': 1, '5': 9, '10': 'mime'}, + {'1': 'fmtp_line', '3': 2, '4': 1, '5': 9, '10': 'fmtpLine'}, ], }; /// Descriptor for `Codec`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List codecDescriptor = $convert.base64Decode( - 'CgVDb2RlYxISCgRtaW1lGAEgASgJUgRtaW1lEhsKCWZtdHBfbGluZRgCIAEoCVIIZm10cExpbmU='); + 'CgVDb2RlYxISCgRtaW1lGAEgASgJUgRtaW1lEhsKCWZtdHBfbGluZRgCIAEoCVIIZm10cExpbm' + 'U='); + +@$core.Deprecated('Use playoutDelayDescriptor instead') +const PlayoutDelay$json = { + '1': 'PlayoutDelay', + '2': [ + {'1': 'enabled', '3': 1, '4': 1, '5': 8, '10': 'enabled'}, + {'1': 'min', '3': 2, '4': 1, '5': 13, '10': 'min'}, + ], +}; + +/// Descriptor for `PlayoutDelay`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List playoutDelayDescriptor = $convert.base64Decode( + 'CgxQbGF5b3V0RGVsYXkSGAoHZW5hYmxlZBgBIAEoCFIHZW5hYmxlZBIQCgNtaW4YAiABKA1SA2' + '1pbg=='); + @$core.Deprecated('Use participantPermissionDescriptor instead') -const ParticipantPermission$json = const { +const ParticipantPermission$json = { '1': 'ParticipantPermission', - '2': const [ - const {'1': 'can_subscribe', '3': 1, '4': 1, '5': 8, '10': 'canSubscribe'}, - const {'1': 'can_publish', '3': 2, '4': 1, '5': 8, '10': 'canPublish'}, - const { - '1': 'can_publish_data', - '3': 3, - '4': 1, - '5': 8, - '10': 'canPublishData' - }, - const { - '1': 'can_publish_sources', - '3': 9, - '4': 3, - '5': 14, - '6': '.livekit.TrackSource', - '10': 'canPublishSources' - }, - const {'1': 'hidden', '3': 7, '4': 1, '5': 8, '10': 'hidden'}, - const {'1': 'recorder', '3': 8, '4': 1, '5': 8, '10': 'recorder'}, - const { - '1': 'can_update_metadata', - '3': 10, - '4': 1, - '5': 8, - '10': 'canUpdateMetadata' - }, + '2': [ + {'1': 'can_subscribe', '3': 1, '4': 1, '5': 8, '10': 'canSubscribe'}, + {'1': 'can_publish', '3': 2, '4': 1, '5': 8, '10': 'canPublish'}, + {'1': 'can_publish_data', '3': 3, '4': 1, '5': 8, '10': 'canPublishData'}, + {'1': 'can_publish_sources', '3': 9, '4': 3, '5': 14, '6': '.livekit.TrackSource', '10': 'canPublishSources'}, + {'1': 'hidden', '3': 7, '4': 1, '5': 8, '10': 'hidden'}, + {'1': 'recorder', '3': 8, '4': 1, '5': 8, '10': 'recorder'}, + {'1': 'can_update_metadata', '3': 10, '4': 1, '5': 8, '10': 'canUpdateMetadata'}, ], }; /// Descriptor for `ParticipantPermission`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List participantPermissionDescriptor = $convert.base64Decode( - 'ChVQYXJ0aWNpcGFudFBlcm1pc3Npb24SIwoNY2FuX3N1YnNjcmliZRgBIAEoCFIMY2FuU3Vic2NyaWJlEh8KC2Nhbl9wdWJsaXNoGAIgASgIUgpjYW5QdWJsaXNoEigKEGNhbl9wdWJsaXNoX2RhdGEYAyABKAhSDmNhblB1Ymxpc2hEYXRhEkQKE2Nhbl9wdWJsaXNoX3NvdXJjZXMYCSADKA4yFC5saXZla2l0LlRyYWNrU291cmNlUhFjYW5QdWJsaXNoU291cmNlcxIWCgZoaWRkZW4YByABKAhSBmhpZGRlbhIaCghyZWNvcmRlchgIIAEoCFIIcmVjb3JkZXISLgoTY2FuX3VwZGF0ZV9tZXRhZGF0YRgKIAEoCFIRY2FuVXBkYXRlTWV0YWRhdGE='); + 'ChVQYXJ0aWNpcGFudFBlcm1pc3Npb24SIwoNY2FuX3N1YnNjcmliZRgBIAEoCFIMY2FuU3Vic2' + 'NyaWJlEh8KC2Nhbl9wdWJsaXNoGAIgASgIUgpjYW5QdWJsaXNoEigKEGNhbl9wdWJsaXNoX2Rh' + 'dGEYAyABKAhSDmNhblB1Ymxpc2hEYXRhEkQKE2Nhbl9wdWJsaXNoX3NvdXJjZXMYCSADKA4yFC' + '5saXZla2l0LlRyYWNrU291cmNlUhFjYW5QdWJsaXNoU291cmNlcxIWCgZoaWRkZW4YByABKAhS' + 'BmhpZGRlbhIaCghyZWNvcmRlchgIIAEoCFIIcmVjb3JkZXISLgoTY2FuX3VwZGF0ZV9tZXRhZG' + 'F0YRgKIAEoCFIRY2FuVXBkYXRlTWV0YWRhdGE='); + @$core.Deprecated('Use participantInfoDescriptor instead') -const ParticipantInfo$json = const { +const ParticipantInfo$json = { '1': 'ParticipantInfo', - '2': const [ - const {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - const {'1': 'identity', '3': 2, '4': 1, '5': 9, '10': 'identity'}, - const { - '1': 'state', - '3': 3, - '4': 1, - '5': 14, - '6': '.livekit.ParticipantInfo.State', - '10': 'state' - }, - const { - '1': 'tracks', - '3': 4, - '4': 3, - '5': 11, - '6': '.livekit.TrackInfo', - '10': 'tracks' - }, - const {'1': 'metadata', '3': 5, '4': 1, '5': 9, '10': 'metadata'}, - const {'1': 'joined_at', '3': 6, '4': 1, '5': 3, '10': 'joinedAt'}, - const {'1': 'name', '3': 9, '4': 1, '5': 9, '10': 'name'}, - const {'1': 'version', '3': 10, '4': 1, '5': 13, '10': 'version'}, - const { - '1': 'permission', - '3': 11, - '4': 1, - '5': 11, - '6': '.livekit.ParticipantPermission', - '10': 'permission' - }, - const {'1': 'region', '3': 12, '4': 1, '5': 9, '10': 'region'}, - const {'1': 'is_publisher', '3': 13, '4': 1, '5': 8, '10': 'isPublisher'}, - ], - '4': const [ParticipantInfo_State$json], + '2': [ + {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'identity', '3': 2, '4': 1, '5': 9, '10': 'identity'}, + {'1': 'state', '3': 3, '4': 1, '5': 14, '6': '.livekit.ParticipantInfo.State', '10': 'state'}, + {'1': 'tracks', '3': 4, '4': 3, '5': 11, '6': '.livekit.TrackInfo', '10': 'tracks'}, + {'1': 'metadata', '3': 5, '4': 1, '5': 9, '10': 'metadata'}, + {'1': 'joined_at', '3': 6, '4': 1, '5': 3, '10': 'joinedAt'}, + {'1': 'name', '3': 9, '4': 1, '5': 9, '10': 'name'}, + {'1': 'version', '3': 10, '4': 1, '5': 13, '10': 'version'}, + {'1': 'permission', '3': 11, '4': 1, '5': 11, '6': '.livekit.ParticipantPermission', '10': 'permission'}, + {'1': 'region', '3': 12, '4': 1, '5': 9, '10': 'region'}, + {'1': 'is_publisher', '3': 13, '4': 1, '5': 8, '10': 'isPublisher'}, + ], + '4': [ParticipantInfo_State$json], }; @$core.Deprecated('Use participantInfoDescriptor instead') -const ParticipantInfo_State$json = const { +const ParticipantInfo_State$json = { '1': 'State', - '2': const [ - const {'1': 'JOINING', '2': 0}, - const {'1': 'JOINED', '2': 1}, - const {'1': 'ACTIVE', '2': 2}, - const {'1': 'DISCONNECTED', '2': 3}, + '2': [ + {'1': 'JOINING', '2': 0}, + {'1': 'JOINED', '2': 1}, + {'1': 'ACTIVE', '2': 2}, + {'1': 'DISCONNECTED', '2': 3}, ], }; /// Descriptor for `ParticipantInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List participantInfoDescriptor = $convert.base64Decode( - 'Cg9QYXJ0aWNpcGFudEluZm8SEAoDc2lkGAEgASgJUgNzaWQSGgoIaWRlbnRpdHkYAiABKAlSCGlkZW50aXR5EjQKBXN0YXRlGAMgASgOMh4ubGl2ZWtpdC5QYXJ0aWNpcGFudEluZm8uU3RhdGVSBXN0YXRlEioKBnRyYWNrcxgEIAMoCzISLmxpdmVraXQuVHJhY2tJbmZvUgZ0cmFja3MSGgoIbWV0YWRhdGEYBSABKAlSCG1ldGFkYXRhEhsKCWpvaW5lZF9hdBgGIAEoA1IIam9pbmVkQXQSEgoEbmFtZRgJIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAogASgNUgd2ZXJzaW9uEj4KCnBlcm1pc3Npb24YCyABKAsyHi5saXZla2l0LlBhcnRpY2lwYW50UGVybWlzc2lvblIKcGVybWlzc2lvbhIWCgZyZWdpb24YDCABKAlSBnJlZ2lvbhIhCgxpc19wdWJsaXNoZXIYDSABKAhSC2lzUHVibGlzaGVyIj4KBVN0YXRlEgsKB0pPSU5JTkcQABIKCgZKT0lORUQQARIKCgZBQ1RJVkUQAhIQCgxESVNDT05ORUNURUQQAw=='); + 'Cg9QYXJ0aWNpcGFudEluZm8SEAoDc2lkGAEgASgJUgNzaWQSGgoIaWRlbnRpdHkYAiABKAlSCG' + 'lkZW50aXR5EjQKBXN0YXRlGAMgASgOMh4ubGl2ZWtpdC5QYXJ0aWNpcGFudEluZm8uU3RhdGVS' + 'BXN0YXRlEioKBnRyYWNrcxgEIAMoCzISLmxpdmVraXQuVHJhY2tJbmZvUgZ0cmFja3MSGgoIbW' + 'V0YWRhdGEYBSABKAlSCG1ldGFkYXRhEhsKCWpvaW5lZF9hdBgGIAEoA1IIam9pbmVkQXQSEgoE' + 'bmFtZRgJIAEoCVIEbmFtZRIYCgd2ZXJzaW9uGAogASgNUgd2ZXJzaW9uEj4KCnBlcm1pc3Npb2' + '4YCyABKAsyHi5saXZla2l0LlBhcnRpY2lwYW50UGVybWlzc2lvblIKcGVybWlzc2lvbhIWCgZy' + 'ZWdpb24YDCABKAlSBnJlZ2lvbhIhCgxpc19wdWJsaXNoZXIYDSABKAhSC2lzUHVibGlzaGVyIj' + '4KBVN0YXRlEgsKB0pPSU5JTkcQABIKCgZKT0lORUQQARIKCgZBQ1RJVkUQAhIQCgxESVNDT05O' + 'RUNURUQQAw=='); + @$core.Deprecated('Use encryptionDescriptor instead') -const Encryption$json = const { +const Encryption$json = { '1': 'Encryption', - '4': const [Encryption_Type$json], + '4': [Encryption_Type$json], }; @$core.Deprecated('Use encryptionDescriptor instead') -const Encryption_Type$json = const { +const Encryption_Type$json = { '1': 'Type', - '2': const [ - const {'1': 'NONE', '2': 0}, - const {'1': 'GCM', '2': 1}, - const {'1': 'CUSTOM', '2': 2}, + '2': [ + {'1': 'NONE', '2': 0}, + {'1': 'GCM', '2': 1}, + {'1': 'CUSTOM', '2': 2}, ], }; /// Descriptor for `Encryption`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List encryptionDescriptor = $convert.base64Decode( 'CgpFbmNyeXB0aW9uIiUKBFR5cGUSCAoETk9ORRAAEgcKA0dDTRABEgoKBkNVU1RPTRAC'); + @$core.Deprecated('Use simulcastCodecInfoDescriptor instead') -const SimulcastCodecInfo$json = const { +const SimulcastCodecInfo$json = { '1': 'SimulcastCodecInfo', - '2': const [ - const {'1': 'mime_type', '3': 1, '4': 1, '5': 9, '10': 'mimeType'}, - const {'1': 'mid', '3': 2, '4': 1, '5': 9, '10': 'mid'}, - const {'1': 'cid', '3': 3, '4': 1, '5': 9, '10': 'cid'}, - const { - '1': 'layers', - '3': 4, - '4': 3, - '5': 11, - '6': '.livekit.VideoLayer', - '10': 'layers' - }, + '2': [ + {'1': 'mime_type', '3': 1, '4': 1, '5': 9, '10': 'mimeType'}, + {'1': 'mid', '3': 2, '4': 1, '5': 9, '10': 'mid'}, + {'1': 'cid', '3': 3, '4': 1, '5': 9, '10': 'cid'}, + {'1': 'layers', '3': 4, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, ], }; /// Descriptor for `SimulcastCodecInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List simulcastCodecInfoDescriptor = $convert.base64Decode( - 'ChJTaW11bGNhc3RDb2RlY0luZm8SGwoJbWltZV90eXBlGAEgASgJUghtaW1lVHlwZRIQCgNtaWQYAiABKAlSA21pZBIQCgNjaWQYAyABKAlSA2NpZBIrCgZsYXllcnMYBCADKAsyEy5saXZla2l0LlZpZGVvTGF5ZXJSBmxheWVycw=='); + 'ChJTaW11bGNhc3RDb2RlY0luZm8SGwoJbWltZV90eXBlGAEgASgJUghtaW1lVHlwZRIQCgNtaW' + 'QYAiABKAlSA21pZBIQCgNjaWQYAyABKAlSA2NpZBIrCgZsYXllcnMYBCADKAsyEy5saXZla2l0' + 'LlZpZGVvTGF5ZXJSBmxheWVycw=='); + @$core.Deprecated('Use trackInfoDescriptor instead') -const TrackInfo$json = const { +const TrackInfo$json = { '1': 'TrackInfo', - '2': const [ - const {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - const { - '1': 'type', - '3': 2, - '4': 1, - '5': 14, - '6': '.livekit.TrackType', - '10': 'type' - }, - const {'1': 'name', '3': 3, '4': 1, '5': 9, '10': 'name'}, - const {'1': 'muted', '3': 4, '4': 1, '5': 8, '10': 'muted'}, - const {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, - const {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, - const {'1': 'simulcast', '3': 7, '4': 1, '5': 8, '10': 'simulcast'}, - const {'1': 'disable_dtx', '3': 8, '4': 1, '5': 8, '10': 'disableDtx'}, - const { - '1': 'source', - '3': 9, - '4': 1, - '5': 14, - '6': '.livekit.TrackSource', - '10': 'source' - }, - const { - '1': 'layers', - '3': 10, - '4': 3, - '5': 11, - '6': '.livekit.VideoLayer', - '10': 'layers' - }, - const {'1': 'mime_type', '3': 11, '4': 1, '5': 9, '10': 'mimeType'}, - const {'1': 'mid', '3': 12, '4': 1, '5': 9, '10': 'mid'}, - const { - '1': 'codecs', - '3': 13, - '4': 3, - '5': 11, - '6': '.livekit.SimulcastCodecInfo', - '10': 'codecs' - }, - const {'1': 'stereo', '3': 14, '4': 1, '5': 8, '10': 'stereo'}, - const {'1': 'disable_red', '3': 15, '4': 1, '5': 8, '10': 'disableRed'}, - const { - '1': 'encryption', - '3': 16, - '4': 1, - '5': 14, - '6': '.livekit.Encryption.Type', - '10': 'encryption' - }, + '2': [ + {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'type', '3': 2, '4': 1, '5': 14, '6': '.livekit.TrackType', '10': 'type'}, + {'1': 'name', '3': 3, '4': 1, '5': 9, '10': 'name'}, + {'1': 'muted', '3': 4, '4': 1, '5': 8, '10': 'muted'}, + {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, + {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, + {'1': 'simulcast', '3': 7, '4': 1, '5': 8, '10': 'simulcast'}, + {'1': 'disable_dtx', '3': 8, '4': 1, '5': 8, '10': 'disableDtx'}, + {'1': 'source', '3': 9, '4': 1, '5': 14, '6': '.livekit.TrackSource', '10': 'source'}, + {'1': 'layers', '3': 10, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, + {'1': 'mime_type', '3': 11, '4': 1, '5': 9, '10': 'mimeType'}, + {'1': 'mid', '3': 12, '4': 1, '5': 9, '10': 'mid'}, + {'1': 'codecs', '3': 13, '4': 3, '5': 11, '6': '.livekit.SimulcastCodecInfo', '10': 'codecs'}, + {'1': 'stereo', '3': 14, '4': 1, '5': 8, '10': 'stereo'}, + {'1': 'disable_red', '3': 15, '4': 1, '5': 8, '10': 'disableRed'}, + {'1': 'encryption', '3': 16, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + {'1': 'stream', '3': 17, '4': 1, '5': 9, '10': 'stream'}, ], }; /// Descriptor for `TrackInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trackInfoDescriptor = $convert.base64Decode( - 'CglUcmFja0luZm8SEAoDc2lkGAEgASgJUgNzaWQSJgoEdHlwZRgCIAEoDjISLmxpdmVraXQuVHJhY2tUeXBlUgR0eXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSFAoFbXV0ZWQYBCABKAhSBW11dGVkEhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIcCglzaW11bGNhc3QYByABKAhSCXNpbXVsY2FzdBIfCgtkaXNhYmxlX2R0eBgIIAEoCFIKZGlzYWJsZUR0eBIsCgZzb3VyY2UYCSABKA4yFC5saXZla2l0LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGAogAygLMhMubGl2ZWtpdC5WaWRlb0xheWVyUgZsYXllcnMSGwoJbWltZV90eXBlGAsgASgJUghtaW1lVHlwZRIQCgNtaWQYDCABKAlSA21pZBIzCgZjb2RlY3MYDSADKAsyGy5saXZla2l0LlNpbXVsY2FzdENvZGVjSW5mb1IGY29kZWNzEhYKBnN0ZXJlbxgOIAEoCFIGc3RlcmVvEh8KC2Rpc2FibGVfcmVkGA8gASgIUgpkaXNhYmxlUmVkEjgKCmVuY3J5cHRpb24YECABKA4yGC5saXZla2l0LkVuY3J5cHRpb24uVHlwZVIKZW5jcnlwdGlvbg=='); + 'CglUcmFja0luZm8SEAoDc2lkGAEgASgJUgNzaWQSJgoEdHlwZRgCIAEoDjISLmxpdmVraXQuVH' + 'JhY2tUeXBlUgR0eXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSFAoFbXV0ZWQYBCABKAhSBW11dGVk' + 'EhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIcCglzaW11bG' + 'Nhc3QYByABKAhSCXNpbXVsY2FzdBIfCgtkaXNhYmxlX2R0eBgIIAEoCFIKZGlzYWJsZUR0eBIs' + 'CgZzb3VyY2UYCSABKA4yFC5saXZla2l0LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGA' + 'ogAygLMhMubGl2ZWtpdC5WaWRlb0xheWVyUgZsYXllcnMSGwoJbWltZV90eXBlGAsgASgJUght' + 'aW1lVHlwZRIQCgNtaWQYDCABKAlSA21pZBIzCgZjb2RlY3MYDSADKAsyGy5saXZla2l0LlNpbX' + 'VsY2FzdENvZGVjSW5mb1IGY29kZWNzEhYKBnN0ZXJlbxgOIAEoCFIGc3RlcmVvEh8KC2Rpc2Fi' + 'bGVfcmVkGA8gASgIUgpkaXNhYmxlUmVkEjgKCmVuY3J5cHRpb24YECABKA4yGC5saXZla2l0Lk' + 'VuY3J5cHRpb24uVHlwZVIKZW5jcnlwdGlvbhIWCgZzdHJlYW0YESABKAlSBnN0cmVhbQ=='); + @$core.Deprecated('Use videoLayerDescriptor instead') -const VideoLayer$json = const { +const VideoLayer$json = { '1': 'VideoLayer', - '2': const [ - const { - '1': 'quality', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.VideoQuality', - '10': 'quality' - }, - const {'1': 'width', '3': 2, '4': 1, '5': 13, '10': 'width'}, - const {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'}, - const {'1': 'bitrate', '3': 4, '4': 1, '5': 13, '10': 'bitrate'}, - const {'1': 'ssrc', '3': 5, '4': 1, '5': 13, '10': 'ssrc'}, + '2': [ + {'1': 'quality', '3': 1, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + {'1': 'width', '3': 2, '4': 1, '5': 13, '10': 'width'}, + {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'}, + {'1': 'bitrate', '3': 4, '4': 1, '5': 13, '10': 'bitrate'}, + {'1': 'ssrc', '3': 5, '4': 1, '5': 13, '10': 'ssrc'}, ], }; /// Descriptor for `VideoLayer`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List videoLayerDescriptor = $convert.base64Decode( - 'CgpWaWRlb0xheWVyEi8KB3F1YWxpdHkYASABKA4yFS5saXZla2l0LlZpZGVvUXVhbGl0eVIHcXVhbGl0eRIUCgV3aWR0aBgCIAEoDVIFd2lkdGgSFgoGaGVpZ2h0GAMgASgNUgZoZWlnaHQSGAoHYml0cmF0ZRgEIAEoDVIHYml0cmF0ZRISCgRzc3JjGAUgASgNUgRzc3Jj'); + 'CgpWaWRlb0xheWVyEi8KB3F1YWxpdHkYASABKA4yFS5saXZla2l0LlZpZGVvUXVhbGl0eVIHcX' + 'VhbGl0eRIUCgV3aWR0aBgCIAEoDVIFd2lkdGgSFgoGaGVpZ2h0GAMgASgNUgZoZWlnaHQSGAoH' + 'Yml0cmF0ZRgEIAEoDVIHYml0cmF0ZRISCgRzc3JjGAUgASgNUgRzc3Jj'); + @$core.Deprecated('Use dataPacketDescriptor instead') -const DataPacket$json = const { +const DataPacket$json = { '1': 'DataPacket', - '2': const [ - const { - '1': 'kind', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.DataPacket.Kind', - '10': 'kind' - }, - const { - '1': 'user', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.UserPacket', - '9': 0, - '10': 'user' - }, - const { - '1': 'speaker', - '3': 3, - '4': 1, - '5': 11, - '6': '.livekit.ActiveSpeakerUpdate', - '9': 0, - '10': 'speaker' - }, - ], - '4': const [DataPacket_Kind$json], - '8': const [ - const {'1': 'value'}, + '2': [ + {'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.livekit.DataPacket.Kind', '10': 'kind'}, + {'1': 'user', '3': 2, '4': 1, '5': 11, '6': '.livekit.UserPacket', '9': 0, '10': 'user'}, + {'1': 'speaker', '3': 3, '4': 1, '5': 11, '6': '.livekit.ActiveSpeakerUpdate', '9': 0, '10': 'speaker'}, + ], + '4': [DataPacket_Kind$json], + '8': [ + {'1': 'value'}, ], }; @$core.Deprecated('Use dataPacketDescriptor instead') -const DataPacket_Kind$json = const { +const DataPacket_Kind$json = { '1': 'Kind', - '2': const [ - const {'1': 'RELIABLE', '2': 0}, - const {'1': 'LOSSY', '2': 1}, + '2': [ + {'1': 'RELIABLE', '2': 0}, + {'1': 'LOSSY', '2': 1}, ], }; /// Descriptor for `DataPacket`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List dataPacketDescriptor = $convert.base64Decode( - 'CgpEYXRhUGFja2V0EiwKBGtpbmQYASABKA4yGC5saXZla2l0LkRhdGFQYWNrZXQuS2luZFIEa2luZBIpCgR1c2VyGAIgASgLMhMubGl2ZWtpdC5Vc2VyUGFja2V0SABSBHVzZXISOAoHc3BlYWtlchgDIAEoCzIcLmxpdmVraXQuQWN0aXZlU3BlYWtlclVwZGF0ZUgAUgdzcGVha2VyIh8KBEtpbmQSDAoIUkVMSUFCTEUQABIJCgVMT1NTWRABQgcKBXZhbHVl'); + 'CgpEYXRhUGFja2V0EiwKBGtpbmQYASABKA4yGC5saXZla2l0LkRhdGFQYWNrZXQuS2luZFIEa2' + 'luZBIpCgR1c2VyGAIgASgLMhMubGl2ZWtpdC5Vc2VyUGFja2V0SABSBHVzZXISOAoHc3BlYWtl' + 'chgDIAEoCzIcLmxpdmVraXQuQWN0aXZlU3BlYWtlclVwZGF0ZUgAUgdzcGVha2VyIh8KBEtpbm' + 'QSDAoIUkVMSUFCTEUQABIJCgVMT1NTWRABQgcKBXZhbHVl'); + @$core.Deprecated('Use activeSpeakerUpdateDescriptor instead') -const ActiveSpeakerUpdate$json = const { +const ActiveSpeakerUpdate$json = { '1': 'ActiveSpeakerUpdate', - '2': const [ - const { - '1': 'speakers', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.SpeakerInfo', - '10': 'speakers' - }, + '2': [ + {'1': 'speakers', '3': 1, '4': 3, '5': 11, '6': '.livekit.SpeakerInfo', '10': 'speakers'}, ], }; /// Descriptor for `ActiveSpeakerUpdate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List activeSpeakerUpdateDescriptor = $convert.base64Decode( - 'ChNBY3RpdmVTcGVha2VyVXBkYXRlEjAKCHNwZWFrZXJzGAEgAygLMhQubGl2ZWtpdC5TcGVha2VySW5mb1IIc3BlYWtlcnM='); + 'ChNBY3RpdmVTcGVha2VyVXBkYXRlEjAKCHNwZWFrZXJzGAEgAygLMhQubGl2ZWtpdC5TcGVha2' + 'VySW5mb1IIc3BlYWtlcnM='); + @$core.Deprecated('Use speakerInfoDescriptor instead') -const SpeakerInfo$json = const { +const SpeakerInfo$json = { '1': 'SpeakerInfo', - '2': const [ - const {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - const {'1': 'level', '3': 2, '4': 1, '5': 2, '10': 'level'}, - const {'1': 'active', '3': 3, '4': 1, '5': 8, '10': 'active'}, + '2': [ + {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'level', '3': 2, '4': 1, '5': 2, '10': 'level'}, + {'1': 'active', '3': 3, '4': 1, '5': 8, '10': 'active'}, ], }; /// Descriptor for `SpeakerInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List speakerInfoDescriptor = $convert.base64Decode( - 'CgtTcGVha2VySW5mbxIQCgNzaWQYASABKAlSA3NpZBIUCgVsZXZlbBgCIAEoAlIFbGV2ZWwSFgoGYWN0aXZlGAMgASgIUgZhY3RpdmU='); + 'CgtTcGVha2VySW5mbxIQCgNzaWQYASABKAlSA3NpZBIUCgVsZXZlbBgCIAEoAlIFbGV2ZWwSFg' + 'oGYWN0aXZlGAMgASgIUgZhY3RpdmU='); + @$core.Deprecated('Use userPacketDescriptor instead') -const UserPacket$json = const { +const UserPacket$json = { '1': 'UserPacket', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const {'1': 'payload', '3': 2, '4': 1, '5': 12, '10': 'payload'}, - const { - '1': 'destination_sids', - '3': 3, - '4': 3, - '5': 9, - '10': 'destinationSids' - }, - const { - '1': 'topic', - '3': 4, - '4': 1, - '5': 9, - '9': 0, - '10': 'topic', - '17': true - }, - ], - '8': const [ - const {'1': '_topic'}, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'participant_identity', '3': 5, '4': 1, '5': 9, '10': 'participantIdentity'}, + {'1': 'payload', '3': 2, '4': 1, '5': 12, '10': 'payload'}, + {'1': 'destination_sids', '3': 3, '4': 3, '5': 9, '10': 'destinationSids'}, + {'1': 'destination_identities', '3': 6, '4': 3, '5': 9, '10': 'destinationIdentities'}, + {'1': 'topic', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'topic', '17': true}, + ], + '8': [ + {'1': '_topic'}, ], }; /// Descriptor for `UserPacket`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List userPacketDescriptor = $convert.base64Decode( - 'CgpVc2VyUGFja2V0EicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCVIOcGFydGljaXBhbnRTaWQSGAoHcGF5bG9hZBgCIAEoDFIHcGF5bG9hZBIpChBkZXN0aW5hdGlvbl9zaWRzGAMgAygJUg9kZXN0aW5hdGlvblNpZHMSGQoFdG9waWMYBCABKAlIAFIFdG9waWOIAQFCCAoGX3RvcGlj'); + 'CgpVc2VyUGFja2V0EicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCVIOcGFydGljaXBhbnRTaWQSMQ' + 'oUcGFydGljaXBhbnRfaWRlbnRpdHkYBSABKAlSE3BhcnRpY2lwYW50SWRlbnRpdHkSGAoHcGF5' + 'bG9hZBgCIAEoDFIHcGF5bG9hZBIpChBkZXN0aW5hdGlvbl9zaWRzGAMgAygJUg9kZXN0aW5hdG' + 'lvblNpZHMSNQoWZGVzdGluYXRpb25faWRlbnRpdGllcxgGIAMoCVIVZGVzdGluYXRpb25JZGVu' + 'dGl0aWVzEhkKBXRvcGljGAQgASgJSABSBXRvcGljiAEBQggKBl90b3BpYw=='); + @$core.Deprecated('Use participantTracksDescriptor instead') -const ParticipantTracks$json = const { +const ParticipantTracks$json = { '1': 'ParticipantTracks', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const {'1': 'track_sids', '3': 2, '4': 3, '5': 9, '10': 'trackSids'}, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'track_sids', '3': 2, '4': 3, '5': 9, '10': 'trackSids'}, ], }; /// Descriptor for `ParticipantTracks`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List participantTracksDescriptor = $convert.base64Decode( - 'ChFQYXJ0aWNpcGFudFRyYWNrcxInCg9wYXJ0aWNpcGFudF9zaWQYASABKAlSDnBhcnRpY2lwYW50U2lkEh0KCnRyYWNrX3NpZHMYAiADKAlSCXRyYWNrU2lkcw=='); + 'ChFQYXJ0aWNpcGFudFRyYWNrcxInCg9wYXJ0aWNpcGFudF9zaWQYASABKAlSDnBhcnRpY2lwYW' + '50U2lkEh0KCnRyYWNrX3NpZHMYAiADKAlSCXRyYWNrU2lkcw=='); + @$core.Deprecated('Use serverInfoDescriptor instead') -const ServerInfo$json = const { +const ServerInfo$json = { '1': 'ServerInfo', - '2': const [ - const { - '1': 'edition', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.ServerInfo.Edition', - '10': 'edition' - }, - const {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, - const {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, - const {'1': 'region', '3': 4, '4': 1, '5': 9, '10': 'region'}, - const {'1': 'node_id', '3': 5, '4': 1, '5': 9, '10': 'nodeId'}, - const {'1': 'debug_info', '3': 6, '4': 1, '5': 9, '10': 'debugInfo'}, - ], - '4': const [ServerInfo_Edition$json], + '2': [ + {'1': 'edition', '3': 1, '4': 1, '5': 14, '6': '.livekit.ServerInfo.Edition', '10': 'edition'}, + {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, + {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, + {'1': 'region', '3': 4, '4': 1, '5': 9, '10': 'region'}, + {'1': 'node_id', '3': 5, '4': 1, '5': 9, '10': 'nodeId'}, + {'1': 'debug_info', '3': 6, '4': 1, '5': 9, '10': 'debugInfo'}, + ], + '4': [ServerInfo_Edition$json], }; @$core.Deprecated('Use serverInfoDescriptor instead') -const ServerInfo_Edition$json = const { +const ServerInfo_Edition$json = { '1': 'Edition', - '2': const [ - const {'1': 'Standard', '2': 0}, - const {'1': 'Cloud', '2': 1}, + '2': [ + {'1': 'Standard', '2': 0}, + {'1': 'Cloud', '2': 1}, ], }; /// Descriptor for `ServerInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serverInfoDescriptor = $convert.base64Decode( - 'CgpTZXJ2ZXJJbmZvEjUKB2VkaXRpb24YASABKA4yGy5saXZla2l0LlNlcnZlckluZm8uRWRpdGlvblIHZWRpdGlvbhIYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEhoKCHByb3RvY29sGAMgASgFUghwcm90b2NvbBIWCgZyZWdpb24YBCABKAlSBnJlZ2lvbhIXCgdub2RlX2lkGAUgASgJUgZub2RlSWQSHQoKZGVidWdfaW5mbxgGIAEoCVIJZGVidWdJbmZvIiIKB0VkaXRpb24SDAoIU3RhbmRhcmQQABIJCgVDbG91ZBAB'); + 'CgpTZXJ2ZXJJbmZvEjUKB2VkaXRpb24YASABKA4yGy5saXZla2l0LlNlcnZlckluZm8uRWRpdG' + 'lvblIHZWRpdGlvbhIYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEhoKCHByb3RvY29sGAMgASgF' + 'Ughwcm90b2NvbBIWCgZyZWdpb24YBCABKAlSBnJlZ2lvbhIXCgdub2RlX2lkGAUgASgJUgZub2' + 'RlSWQSHQoKZGVidWdfaW5mbxgGIAEoCVIJZGVidWdJbmZvIiIKB0VkaXRpb24SDAoIU3RhbmRh' + 'cmQQABIJCgVDbG91ZBAB'); + @$core.Deprecated('Use clientInfoDescriptor instead') -const ClientInfo$json = const { +const ClientInfo$json = { '1': 'ClientInfo', - '2': const [ - const { - '1': 'sdk', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.ClientInfo.SDK', - '10': 'sdk' - }, - const {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, - const {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, - const {'1': 'os', '3': 4, '4': 1, '5': 9, '10': 'os'}, - const {'1': 'os_version', '3': 5, '4': 1, '5': 9, '10': 'osVersion'}, - const {'1': 'device_model', '3': 6, '4': 1, '5': 9, '10': 'deviceModel'}, - const {'1': 'browser', '3': 7, '4': 1, '5': 9, '10': 'browser'}, - const { - '1': 'browser_version', - '3': 8, - '4': 1, - '5': 9, - '10': 'browserVersion' - }, - const {'1': 'address', '3': 9, '4': 1, '5': 9, '10': 'address'}, - const {'1': 'network', '3': 10, '4': 1, '5': 9, '10': 'network'}, - ], - '4': const [ClientInfo_SDK$json], + '2': [ + {'1': 'sdk', '3': 1, '4': 1, '5': 14, '6': '.livekit.ClientInfo.SDK', '10': 'sdk'}, + {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, + {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, + {'1': 'os', '3': 4, '4': 1, '5': 9, '10': 'os'}, + {'1': 'os_version', '3': 5, '4': 1, '5': 9, '10': 'osVersion'}, + {'1': 'device_model', '3': 6, '4': 1, '5': 9, '10': 'deviceModel'}, + {'1': 'browser', '3': 7, '4': 1, '5': 9, '10': 'browser'}, + {'1': 'browser_version', '3': 8, '4': 1, '5': 9, '10': 'browserVersion'}, + {'1': 'address', '3': 9, '4': 1, '5': 9, '10': 'address'}, + {'1': 'network', '3': 10, '4': 1, '5': 9, '10': 'network'}, + ], + '4': [ClientInfo_SDK$json], }; @$core.Deprecated('Use clientInfoDescriptor instead') -const ClientInfo_SDK$json = const { +const ClientInfo_SDK$json = { '1': 'SDK', - '2': const [ - const {'1': 'UNKNOWN', '2': 0}, - const {'1': 'JS', '2': 1}, - const {'1': 'SWIFT', '2': 2}, - const {'1': 'ANDROID', '2': 3}, - const {'1': 'FLUTTER', '2': 4}, - const {'1': 'GO', '2': 5}, - const {'1': 'UNITY', '2': 6}, + '2': [ + {'1': 'UNKNOWN', '2': 0}, + {'1': 'JS', '2': 1}, + {'1': 'SWIFT', '2': 2}, + {'1': 'ANDROID', '2': 3}, + {'1': 'FLUTTER', '2': 4}, + {'1': 'GO', '2': 5}, + {'1': 'UNITY', '2': 6}, + {'1': 'REACT_NATIVE', '2': 7}, + {'1': 'RUST', '2': 8}, + {'1': 'PYTHON', '2': 9}, + {'1': 'CPP', '2': 10}, ], }; /// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode( - 'CgpDbGllbnRJbmZvEikKA3NkaxgBIAEoDjIXLmxpdmVraXQuQ2xpZW50SW5mby5TREtSA3NkaxIYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEhoKCHByb3RvY29sGAMgASgFUghwcm90b2NvbBIOCgJvcxgEIAEoCVICb3MSHQoKb3NfdmVyc2lvbhgFIAEoCVIJb3NWZXJzaW9uEiEKDGRldmljZV9tb2RlbBgGIAEoCVILZGV2aWNlTW9kZWwSGAoHYnJvd3NlchgHIAEoCVIHYnJvd3NlchInCg9icm93c2VyX3ZlcnNpb24YCCABKAlSDmJyb3dzZXJWZXJzaW9uEhgKB2FkZHJlc3MYCSABKAlSB2FkZHJlc3MSGAoHbmV0d29yaxgKIAEoCVIHbmV0d29yayJSCgNTREsSCwoHVU5LTk9XThAAEgYKAkpTEAESCQoFU1dJRlQQAhILCgdBTkRST0lEEAMSCwoHRkxVVFRFUhAEEgYKAkdPEAUSCQoFVU5JVFkQBg=='); + 'CgpDbGllbnRJbmZvEikKA3NkaxgBIAEoDjIXLmxpdmVraXQuQ2xpZW50SW5mby5TREtSA3Nkax' + 'IYCgd2ZXJzaW9uGAIgASgJUgd2ZXJzaW9uEhoKCHByb3RvY29sGAMgASgFUghwcm90b2NvbBIO' + 'CgJvcxgEIAEoCVICb3MSHQoKb3NfdmVyc2lvbhgFIAEoCVIJb3NWZXJzaW9uEiEKDGRldmljZV' + '9tb2RlbBgGIAEoCVILZGV2aWNlTW9kZWwSGAoHYnJvd3NlchgHIAEoCVIHYnJvd3NlchInCg9i' + 'cm93c2VyX3ZlcnNpb24YCCABKAlSDmJyb3dzZXJWZXJzaW9uEhgKB2FkZHJlc3MYCSABKAlSB2' + 'FkZHJlc3MSGAoHbmV0d29yaxgKIAEoCVIHbmV0d29yayKDAQoDU0RLEgsKB1VOS05PV04QABIG' + 'CgJKUxABEgkKBVNXSUZUEAISCwoHQU5EUk9JRBADEgsKB0ZMVVRURVIQBBIGCgJHTxAFEgkKBV' + 'VOSVRZEAYSEAoMUkVBQ1RfTkFUSVZFEAcSCAoEUlVTVBAIEgoKBlBZVEhPThAJEgcKA0NQUBAK'); + @$core.Deprecated('Use clientConfigurationDescriptor instead') -const ClientConfiguration$json = const { +const ClientConfiguration$json = { '1': 'ClientConfiguration', - '2': const [ - const { - '1': 'video', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.VideoConfiguration', - '10': 'video' - }, - const { - '1': 'screen', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.VideoConfiguration', - '10': 'screen' - }, - const { - '1': 'resume_connection', - '3': 3, - '4': 1, - '5': 14, - '6': '.livekit.ClientConfigSetting', - '10': 'resumeConnection' - }, - const { - '1': 'disabled_codecs', - '3': 4, - '4': 1, - '5': 11, - '6': '.livekit.DisabledCodecs', - '10': 'disabledCodecs' - }, - const { - '1': 'force_relay', - '3': 5, - '4': 1, - '5': 14, - '6': '.livekit.ClientConfigSetting', - '10': 'forceRelay' - }, + '2': [ + {'1': 'video', '3': 1, '4': 1, '5': 11, '6': '.livekit.VideoConfiguration', '10': 'video'}, + {'1': 'screen', '3': 2, '4': 1, '5': 11, '6': '.livekit.VideoConfiguration', '10': 'screen'}, + {'1': 'resume_connection', '3': 3, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'resumeConnection'}, + {'1': 'disabled_codecs', '3': 4, '4': 1, '5': 11, '6': '.livekit.DisabledCodecs', '10': 'disabledCodecs'}, + {'1': 'force_relay', '3': 5, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'forceRelay'}, ], }; /// Descriptor for `ClientConfiguration`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List clientConfigurationDescriptor = $convert.base64Decode( - 'ChNDbGllbnRDb25maWd1cmF0aW9uEjEKBXZpZGVvGAEgASgLMhsubGl2ZWtpdC5WaWRlb0NvbmZpZ3VyYXRpb25SBXZpZGVvEjMKBnNjcmVlbhgCIAEoCzIbLmxpdmVraXQuVmlkZW9Db25maWd1cmF0aW9uUgZzY3JlZW4SSQoRcmVzdW1lX2Nvbm5lY3Rpb24YAyABKA4yHC5saXZla2l0LkNsaWVudENvbmZpZ1NldHRpbmdSEHJlc3VtZUNvbm5lY3Rpb24SQAoPZGlzYWJsZWRfY29kZWNzGAQgASgLMhcubGl2ZWtpdC5EaXNhYmxlZENvZGVjc1IOZGlzYWJsZWRDb2RlY3MSPQoLZm9yY2VfcmVsYXkYBSABKA4yHC5saXZla2l0LkNsaWVudENvbmZpZ1NldHRpbmdSCmZvcmNlUmVsYXk='); + 'ChNDbGllbnRDb25maWd1cmF0aW9uEjEKBXZpZGVvGAEgASgLMhsubGl2ZWtpdC5WaWRlb0Nvbm' + 'ZpZ3VyYXRpb25SBXZpZGVvEjMKBnNjcmVlbhgCIAEoCzIbLmxpdmVraXQuVmlkZW9Db25maWd1' + 'cmF0aW9uUgZzY3JlZW4SSQoRcmVzdW1lX2Nvbm5lY3Rpb24YAyABKA4yHC5saXZla2l0LkNsaW' + 'VudENvbmZpZ1NldHRpbmdSEHJlc3VtZUNvbm5lY3Rpb24SQAoPZGlzYWJsZWRfY29kZWNzGAQg' + 'ASgLMhcubGl2ZWtpdC5EaXNhYmxlZENvZGVjc1IOZGlzYWJsZWRDb2RlY3MSPQoLZm9yY2Vfcm' + 'VsYXkYBSABKA4yHC5saXZla2l0LkNsaWVudENvbmZpZ1NldHRpbmdSCmZvcmNlUmVsYXk='); + @$core.Deprecated('Use videoConfigurationDescriptor instead') -const VideoConfiguration$json = const { +const VideoConfiguration$json = { '1': 'VideoConfiguration', - '2': const [ - const { - '1': 'hardware_encoder', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.ClientConfigSetting', - '10': 'hardwareEncoder' - }, + '2': [ + {'1': 'hardware_encoder', '3': 1, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'hardwareEncoder'}, ], }; /// Descriptor for `VideoConfiguration`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List videoConfigurationDescriptor = $convert.base64Decode( - 'ChJWaWRlb0NvbmZpZ3VyYXRpb24SRwoQaGFyZHdhcmVfZW5jb2RlchgBIAEoDjIcLmxpdmVraXQuQ2xpZW50Q29uZmlnU2V0dGluZ1IPaGFyZHdhcmVFbmNvZGVy'); + 'ChJWaWRlb0NvbmZpZ3VyYXRpb24SRwoQaGFyZHdhcmVfZW5jb2RlchgBIAEoDjIcLmxpdmVraX' + 'QuQ2xpZW50Q29uZmlnU2V0dGluZ1IPaGFyZHdhcmVFbmNvZGVy'); + @$core.Deprecated('Use disabledCodecsDescriptor instead') -const DisabledCodecs$json = const { +const DisabledCodecs$json = { '1': 'DisabledCodecs', - '2': const [ - const { - '1': 'codecs', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.Codec', - '10': 'codecs' - }, + '2': [ + {'1': 'codecs', '3': 1, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'codecs'}, + {'1': 'publish', '3': 2, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'publish'}, ], }; /// Descriptor for `DisabledCodecs`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List disabledCodecsDescriptor = $convert.base64Decode( - 'Cg5EaXNhYmxlZENvZGVjcxImCgZjb2RlY3MYASADKAsyDi5saXZla2l0LkNvZGVjUgZjb2RlY3M='); + 'Cg5EaXNhYmxlZENvZGVjcxImCgZjb2RlY3MYASADKAsyDi5saXZla2l0LkNvZGVjUgZjb2RlY3' + 'MSKAoHcHVibGlzaBgCIAMoCzIOLmxpdmVraXQuQ29kZWNSB3B1Ymxpc2g='); + +@$core.Deprecated('Use rTPDriftDescriptor instead') +const RTPDrift$json = { + '1': 'RTPDrift', + '2': [ + {'1': 'start_time', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'}, + {'1': 'end_time', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'endTime'}, + {'1': 'duration', '3': 3, '4': 1, '5': 1, '10': 'duration'}, + {'1': 'start_timestamp', '3': 4, '4': 1, '5': 4, '10': 'startTimestamp'}, + {'1': 'end_timestamp', '3': 5, '4': 1, '5': 4, '10': 'endTimestamp'}, + {'1': 'rtp_clock_ticks', '3': 6, '4': 1, '5': 4, '10': 'rtpClockTicks'}, + {'1': 'drift_samples', '3': 7, '4': 1, '5': 3, '10': 'driftSamples'}, + {'1': 'drift_ms', '3': 8, '4': 1, '5': 1, '10': 'driftMs'}, + {'1': 'clock_rate', '3': 9, '4': 1, '5': 1, '10': 'clockRate'}, + ], +}; + +/// Descriptor for `RTPDrift`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rTPDriftDescriptor = $convert.base64Decode( + 'CghSVFBEcmlmdBI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdG' + 'FtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz' + 'dGFtcFIHZW5kVGltZRIaCghkdXJhdGlvbhgDIAEoAVIIZHVyYXRpb24SJwoPc3RhcnRfdGltZX' + 'N0YW1wGAQgASgEUg5zdGFydFRpbWVzdGFtcBIjCg1lbmRfdGltZXN0YW1wGAUgASgEUgxlbmRU' + 'aW1lc3RhbXASJgoPcnRwX2Nsb2NrX3RpY2tzGAYgASgEUg1ydHBDbG9ja1RpY2tzEiMKDWRyaW' + 'Z0X3NhbXBsZXMYByABKANSDGRyaWZ0U2FtcGxlcxIZCghkcmlmdF9tcxgIIAEoAVIHZHJpZnRN' + 'cxIdCgpjbG9ja19yYXRlGAkgASgBUgljbG9ja1JhdGU='); + @$core.Deprecated('Use rTPStatsDescriptor instead') -const RTPStats$json = const { +const RTPStats$json = { '1': 'RTPStats', - '2': const [ - const { - '1': 'start_time', - '3': 1, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'startTime' - }, - const { - '1': 'end_time', - '3': 2, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'endTime' - }, - const {'1': 'duration', '3': 3, '4': 1, '5': 1, '10': 'duration'}, - const {'1': 'packets', '3': 4, '4': 1, '5': 13, '10': 'packets'}, - const {'1': 'packet_rate', '3': 5, '4': 1, '5': 1, '10': 'packetRate'}, - const {'1': 'bytes', '3': 6, '4': 1, '5': 4, '10': 'bytes'}, - const {'1': 'header_bytes', '3': 39, '4': 1, '5': 4, '10': 'headerBytes'}, - const {'1': 'bitrate', '3': 7, '4': 1, '5': 1, '10': 'bitrate'}, - const {'1': 'packets_lost', '3': 8, '4': 1, '5': 13, '10': 'packetsLost'}, - const { - '1': 'packet_loss_rate', - '3': 9, - '4': 1, - '5': 1, - '10': 'packetLossRate' - }, - const { - '1': 'packet_loss_percentage', - '3': 10, - '4': 1, - '5': 2, - '10': 'packetLossPercentage' - }, - const { - '1': 'packets_duplicate', - '3': 11, - '4': 1, - '5': 13, - '10': 'packetsDuplicate' - }, - const { - '1': 'packet_duplicate_rate', - '3': 12, - '4': 1, - '5': 1, - '10': 'packetDuplicateRate' - }, - const { - '1': 'bytes_duplicate', - '3': 13, - '4': 1, - '5': 4, - '10': 'bytesDuplicate' - }, - const { - '1': 'header_bytes_duplicate', - '3': 40, - '4': 1, - '5': 4, - '10': 'headerBytesDuplicate' - }, - const { - '1': 'bitrate_duplicate', - '3': 14, - '4': 1, - '5': 1, - '10': 'bitrateDuplicate' - }, - const { - '1': 'packets_padding', - '3': 15, - '4': 1, - '5': 13, - '10': 'packetsPadding' - }, - const { - '1': 'packet_padding_rate', - '3': 16, - '4': 1, - '5': 1, - '10': 'packetPaddingRate' - }, - const {'1': 'bytes_padding', '3': 17, '4': 1, '5': 4, '10': 'bytesPadding'}, - const { - '1': 'header_bytes_padding', - '3': 41, - '4': 1, - '5': 4, - '10': 'headerBytesPadding' - }, - const { - '1': 'bitrate_padding', - '3': 18, - '4': 1, - '5': 1, - '10': 'bitratePadding' - }, - const { - '1': 'packets_out_of_order', - '3': 19, - '4': 1, - '5': 13, - '10': 'packetsOutOfOrder' - }, - const {'1': 'frames', '3': 20, '4': 1, '5': 13, '10': 'frames'}, - const {'1': 'frame_rate', '3': 21, '4': 1, '5': 1, '10': 'frameRate'}, - const { - '1': 'jitter_current', - '3': 22, - '4': 1, - '5': 1, - '10': 'jitterCurrent' - }, - const {'1': 'jitter_max', '3': 23, '4': 1, '5': 1, '10': 'jitterMax'}, - const { - '1': 'gap_histogram', - '3': 24, - '4': 3, - '5': 11, - '6': '.livekit.RTPStats.GapHistogramEntry', - '10': 'gapHistogram' - }, - const {'1': 'nacks', '3': 25, '4': 1, '5': 13, '10': 'nacks'}, - const {'1': 'nack_acks', '3': 37, '4': 1, '5': 13, '10': 'nackAcks'}, - const {'1': 'nack_misses', '3': 26, '4': 1, '5': 13, '10': 'nackMisses'}, - const { - '1': 'nack_repeated', - '3': 38, - '4': 1, - '5': 13, - '10': 'nackRepeated' - }, - const {'1': 'plis', '3': 27, '4': 1, '5': 13, '10': 'plis'}, - const { - '1': 'last_pli', - '3': 28, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'lastPli' - }, - const {'1': 'firs', '3': 29, '4': 1, '5': 13, '10': 'firs'}, - const { - '1': 'last_fir', - '3': 30, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'lastFir' - }, - const {'1': 'rtt_current', '3': 31, '4': 1, '5': 13, '10': 'rttCurrent'}, - const {'1': 'rtt_max', '3': 32, '4': 1, '5': 13, '10': 'rttMax'}, - const {'1': 'key_frames', '3': 33, '4': 1, '5': 13, '10': 'keyFrames'}, - const { - '1': 'last_key_frame', - '3': 34, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'lastKeyFrame' - }, - const { - '1': 'layer_lock_plis', - '3': 35, - '4': 1, - '5': 13, - '10': 'layerLockPlis' - }, - const { - '1': 'last_layer_lock_pli', - '3': 36, - '4': 1, - '5': 11, - '6': '.google.protobuf.Timestamp', - '10': 'lastLayerLockPli' - }, - ], - '3': const [RTPStats_GapHistogramEntry$json], + '2': [ + {'1': 'start_time', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'}, + {'1': 'end_time', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'endTime'}, + {'1': 'duration', '3': 3, '4': 1, '5': 1, '10': 'duration'}, + {'1': 'packets', '3': 4, '4': 1, '5': 13, '10': 'packets'}, + {'1': 'packet_rate', '3': 5, '4': 1, '5': 1, '10': 'packetRate'}, + {'1': 'bytes', '3': 6, '4': 1, '5': 4, '10': 'bytes'}, + {'1': 'header_bytes', '3': 39, '4': 1, '5': 4, '10': 'headerBytes'}, + {'1': 'bitrate', '3': 7, '4': 1, '5': 1, '10': 'bitrate'}, + {'1': 'packets_lost', '3': 8, '4': 1, '5': 13, '10': 'packetsLost'}, + {'1': 'packet_loss_rate', '3': 9, '4': 1, '5': 1, '10': 'packetLossRate'}, + {'1': 'packet_loss_percentage', '3': 10, '4': 1, '5': 2, '10': 'packetLossPercentage'}, + {'1': 'packets_duplicate', '3': 11, '4': 1, '5': 13, '10': 'packetsDuplicate'}, + {'1': 'packet_duplicate_rate', '3': 12, '4': 1, '5': 1, '10': 'packetDuplicateRate'}, + {'1': 'bytes_duplicate', '3': 13, '4': 1, '5': 4, '10': 'bytesDuplicate'}, + {'1': 'header_bytes_duplicate', '3': 40, '4': 1, '5': 4, '10': 'headerBytesDuplicate'}, + {'1': 'bitrate_duplicate', '3': 14, '4': 1, '5': 1, '10': 'bitrateDuplicate'}, + {'1': 'packets_padding', '3': 15, '4': 1, '5': 13, '10': 'packetsPadding'}, + {'1': 'packet_padding_rate', '3': 16, '4': 1, '5': 1, '10': 'packetPaddingRate'}, + {'1': 'bytes_padding', '3': 17, '4': 1, '5': 4, '10': 'bytesPadding'}, + {'1': 'header_bytes_padding', '3': 41, '4': 1, '5': 4, '10': 'headerBytesPadding'}, + {'1': 'bitrate_padding', '3': 18, '4': 1, '5': 1, '10': 'bitratePadding'}, + {'1': 'packets_out_of_order', '3': 19, '4': 1, '5': 13, '10': 'packetsOutOfOrder'}, + {'1': 'frames', '3': 20, '4': 1, '5': 13, '10': 'frames'}, + {'1': 'frame_rate', '3': 21, '4': 1, '5': 1, '10': 'frameRate'}, + {'1': 'jitter_current', '3': 22, '4': 1, '5': 1, '10': 'jitterCurrent'}, + {'1': 'jitter_max', '3': 23, '4': 1, '5': 1, '10': 'jitterMax'}, + {'1': 'gap_histogram', '3': 24, '4': 3, '5': 11, '6': '.livekit.RTPStats.GapHistogramEntry', '10': 'gapHistogram'}, + {'1': 'nacks', '3': 25, '4': 1, '5': 13, '10': 'nacks'}, + {'1': 'nack_acks', '3': 37, '4': 1, '5': 13, '10': 'nackAcks'}, + {'1': 'nack_misses', '3': 26, '4': 1, '5': 13, '10': 'nackMisses'}, + {'1': 'nack_repeated', '3': 38, '4': 1, '5': 13, '10': 'nackRepeated'}, + {'1': 'plis', '3': 27, '4': 1, '5': 13, '10': 'plis'}, + {'1': 'last_pli', '3': 28, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastPli'}, + {'1': 'firs', '3': 29, '4': 1, '5': 13, '10': 'firs'}, + {'1': 'last_fir', '3': 30, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastFir'}, + {'1': 'rtt_current', '3': 31, '4': 1, '5': 13, '10': 'rttCurrent'}, + {'1': 'rtt_max', '3': 32, '4': 1, '5': 13, '10': 'rttMax'}, + {'1': 'key_frames', '3': 33, '4': 1, '5': 13, '10': 'keyFrames'}, + {'1': 'last_key_frame', '3': 34, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastKeyFrame'}, + {'1': 'layer_lock_plis', '3': 35, '4': 1, '5': 13, '10': 'layerLockPlis'}, + {'1': 'last_layer_lock_pli', '3': 36, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastLayerLockPli'}, + {'1': 'packet_drift', '3': 44, '4': 1, '5': 11, '6': '.livekit.RTPDrift', '10': 'packetDrift'}, + {'1': 'report_drift', '3': 45, '4': 1, '5': 11, '6': '.livekit.RTPDrift', '10': 'reportDrift'}, + ], + '3': [RTPStats_GapHistogramEntry$json], }; @$core.Deprecated('Use rTPStatsDescriptor instead') -const RTPStats_GapHistogramEntry$json = const { +const RTPStats_GapHistogramEntry$json = { '1': 'GapHistogramEntry', - '2': const [ - const {'1': 'key', '3': 1, '4': 1, '5': 5, '10': 'key'}, - const {'1': 'value', '3': 2, '4': 1, '5': 13, '10': 'value'}, + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 5, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 13, '10': 'value'}, ], - '7': const {'7': true}, + '7': {'7': true}, }; /// Descriptor for `RTPStats`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rTPStatsDescriptor = $convert.base64Decode( - 'CghSVFBTdGF0cxI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRIaCghkdXJhdGlvbhgDIAEoAVIIZHVyYXRpb24SGAoHcGFja2V0cxgEIAEoDVIHcGFja2V0cxIfCgtwYWNrZXRfcmF0ZRgFIAEoAVIKcGFja2V0UmF0ZRIUCgVieXRlcxgGIAEoBFIFYnl0ZXMSIQoMaGVhZGVyX2J5dGVzGCcgASgEUgtoZWFkZXJCeXRlcxIYCgdiaXRyYXRlGAcgASgBUgdiaXRyYXRlEiEKDHBhY2tldHNfbG9zdBgIIAEoDVILcGFja2V0c0xvc3QSKAoQcGFja2V0X2xvc3NfcmF0ZRgJIAEoAVIOcGFja2V0TG9zc1JhdGUSNAoWcGFja2V0X2xvc3NfcGVyY2VudGFnZRgKIAEoAlIUcGFja2V0TG9zc1BlcmNlbnRhZ2USKwoRcGFja2V0c19kdXBsaWNhdGUYCyABKA1SEHBhY2tldHNEdXBsaWNhdGUSMgoVcGFja2V0X2R1cGxpY2F0ZV9yYXRlGAwgASgBUhNwYWNrZXREdXBsaWNhdGVSYXRlEicKD2J5dGVzX2R1cGxpY2F0ZRgNIAEoBFIOYnl0ZXNEdXBsaWNhdGUSNAoWaGVhZGVyX2J5dGVzX2R1cGxpY2F0ZRgoIAEoBFIUaGVhZGVyQnl0ZXNEdXBsaWNhdGUSKwoRYml0cmF0ZV9kdXBsaWNhdGUYDiABKAFSEGJpdHJhdGVEdXBsaWNhdGUSJwoPcGFja2V0c19wYWRkaW5nGA8gASgNUg5wYWNrZXRzUGFkZGluZxIuChNwYWNrZXRfcGFkZGluZ19yYXRlGBAgASgBUhFwYWNrZXRQYWRkaW5nUmF0ZRIjCg1ieXRlc19wYWRkaW5nGBEgASgEUgxieXRlc1BhZGRpbmcSMAoUaGVhZGVyX2J5dGVzX3BhZGRpbmcYKSABKARSEmhlYWRlckJ5dGVzUGFkZGluZxInCg9iaXRyYXRlX3BhZGRpbmcYEiABKAFSDmJpdHJhdGVQYWRkaW5nEi8KFHBhY2tldHNfb3V0X29mX29yZGVyGBMgASgNUhFwYWNrZXRzT3V0T2ZPcmRlchIWCgZmcmFtZXMYFCABKA1SBmZyYW1lcxIdCgpmcmFtZV9yYXRlGBUgASgBUglmcmFtZVJhdGUSJQoOaml0dGVyX2N1cnJlbnQYFiABKAFSDWppdHRlckN1cnJlbnQSHQoKaml0dGVyX21heBgXIAEoAVIJaml0dGVyTWF4EkgKDWdhcF9oaXN0b2dyYW0YGCADKAsyIy5saXZla2l0LlJUUFN0YXRzLkdhcEhpc3RvZ3JhbUVudHJ5UgxnYXBIaXN0b2dyYW0SFAoFbmFja3MYGSABKA1SBW5hY2tzEhsKCW5hY2tfYWNrcxglIAEoDVIIbmFja0Fja3MSHwoLbmFja19taXNzZXMYGiABKA1SCm5hY2tNaXNzZXMSIwoNbmFja19yZXBlYXRlZBgmIAEoDVIMbmFja1JlcGVhdGVkEhIKBHBsaXMYGyABKA1SBHBsaXMSNQoIbGFzdF9wbGkYHCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgdsYXN0UGxpEhIKBGZpcnMYHSABKA1SBGZpcnMSNQoIbGFzdF9maXIYHiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgdsYXN0RmlyEh8KC3J0dF9jdXJyZW50GB8gASgNUgpydHRDdXJyZW50EhcKB3J0dF9tYXgYICABKA1SBnJ0dE1heBIdCgprZXlfZnJhbWVzGCEgASgNUglrZXlGcmFtZXMSQAoObGFzdF9rZXlfZnJhbWUYIiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgxsYXN0S2V5RnJhbWUSJgoPbGF5ZXJfbG9ja19wbGlzGCMgASgNUg1sYXllckxvY2tQbGlzEkkKE2xhc3RfbGF5ZXJfbG9ja19wbGkYJCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUhBsYXN0TGF5ZXJMb2NrUGxpGj8KEUdhcEhpc3RvZ3JhbUVudHJ5EhAKA2tleRgBIAEoBVIDa2V5EhQKBXZhbHVlGAIgASgNUgV2YWx1ZToCOAE='); + 'CghSVFBTdGF0cxI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdG' + 'FtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz' + 'dGFtcFIHZW5kVGltZRIaCghkdXJhdGlvbhgDIAEoAVIIZHVyYXRpb24SGAoHcGFja2V0cxgEIA' + 'EoDVIHcGFja2V0cxIfCgtwYWNrZXRfcmF0ZRgFIAEoAVIKcGFja2V0UmF0ZRIUCgVieXRlcxgG' + 'IAEoBFIFYnl0ZXMSIQoMaGVhZGVyX2J5dGVzGCcgASgEUgtoZWFkZXJCeXRlcxIYCgdiaXRyYX' + 'RlGAcgASgBUgdiaXRyYXRlEiEKDHBhY2tldHNfbG9zdBgIIAEoDVILcGFja2V0c0xvc3QSKAoQ' + 'cGFja2V0X2xvc3NfcmF0ZRgJIAEoAVIOcGFja2V0TG9zc1JhdGUSNAoWcGFja2V0X2xvc3NfcG' + 'VyY2VudGFnZRgKIAEoAlIUcGFja2V0TG9zc1BlcmNlbnRhZ2USKwoRcGFja2V0c19kdXBsaWNh' + 'dGUYCyABKA1SEHBhY2tldHNEdXBsaWNhdGUSMgoVcGFja2V0X2R1cGxpY2F0ZV9yYXRlGAwgAS' + 'gBUhNwYWNrZXREdXBsaWNhdGVSYXRlEicKD2J5dGVzX2R1cGxpY2F0ZRgNIAEoBFIOYnl0ZXNE' + 'dXBsaWNhdGUSNAoWaGVhZGVyX2J5dGVzX2R1cGxpY2F0ZRgoIAEoBFIUaGVhZGVyQnl0ZXNEdX' + 'BsaWNhdGUSKwoRYml0cmF0ZV9kdXBsaWNhdGUYDiABKAFSEGJpdHJhdGVEdXBsaWNhdGUSJwoP' + 'cGFja2V0c19wYWRkaW5nGA8gASgNUg5wYWNrZXRzUGFkZGluZxIuChNwYWNrZXRfcGFkZGluZ1' + '9yYXRlGBAgASgBUhFwYWNrZXRQYWRkaW5nUmF0ZRIjCg1ieXRlc19wYWRkaW5nGBEgASgEUgxi' + 'eXRlc1BhZGRpbmcSMAoUaGVhZGVyX2J5dGVzX3BhZGRpbmcYKSABKARSEmhlYWRlckJ5dGVzUG' + 'FkZGluZxInCg9iaXRyYXRlX3BhZGRpbmcYEiABKAFSDmJpdHJhdGVQYWRkaW5nEi8KFHBhY2tl' + 'dHNfb3V0X29mX29yZGVyGBMgASgNUhFwYWNrZXRzT3V0T2ZPcmRlchIWCgZmcmFtZXMYFCABKA' + '1SBmZyYW1lcxIdCgpmcmFtZV9yYXRlGBUgASgBUglmcmFtZVJhdGUSJQoOaml0dGVyX2N1cnJl' + 'bnQYFiABKAFSDWppdHRlckN1cnJlbnQSHQoKaml0dGVyX21heBgXIAEoAVIJaml0dGVyTWF4Ek' + 'gKDWdhcF9oaXN0b2dyYW0YGCADKAsyIy5saXZla2l0LlJUUFN0YXRzLkdhcEhpc3RvZ3JhbUVu' + 'dHJ5UgxnYXBIaXN0b2dyYW0SFAoFbmFja3MYGSABKA1SBW5hY2tzEhsKCW5hY2tfYWNrcxglIA' + 'EoDVIIbmFja0Fja3MSHwoLbmFja19taXNzZXMYGiABKA1SCm5hY2tNaXNzZXMSIwoNbmFja19y' + 'ZXBlYXRlZBgmIAEoDVIMbmFja1JlcGVhdGVkEhIKBHBsaXMYGyABKA1SBHBsaXMSNQoIbGFzdF' + '9wbGkYHCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgdsYXN0UGxpEhIKBGZpcnMY' + 'HSABKA1SBGZpcnMSNQoIbGFzdF9maXIYHiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW' + '1wUgdsYXN0RmlyEh8KC3J0dF9jdXJyZW50GB8gASgNUgpydHRDdXJyZW50EhcKB3J0dF9tYXgY' + 'ICABKA1SBnJ0dE1heBIdCgprZXlfZnJhbWVzGCEgASgNUglrZXlGcmFtZXMSQAoObGFzdF9rZX' + 'lfZnJhbWUYIiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgxsYXN0S2V5RnJhbWUS' + 'JgoPbGF5ZXJfbG9ja19wbGlzGCMgASgNUg1sYXllckxvY2tQbGlzEkkKE2xhc3RfbGF5ZXJfbG' + '9ja19wbGkYJCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUhBsYXN0TGF5ZXJMb2Nr' + 'UGxpEjQKDHBhY2tldF9kcmlmdBgsIAEoCzIRLmxpdmVraXQuUlRQRHJpZnRSC3BhY2tldERyaW' + 'Z0EjQKDHJlcG9ydF9kcmlmdBgtIAEoCzIRLmxpdmVraXQuUlRQRHJpZnRSC3JlcG9ydERyaWZ0' + 'Gj8KEUdhcEhpc3RvZ3JhbUVudHJ5EhAKA2tleRgBIAEoBVIDa2V5EhQKBXZhbHVlGAIgASgNUg' + 'V2YWx1ZToCOAE='); + @$core.Deprecated('Use timedVersionDescriptor instead') -const TimedVersion$json = const { +const TimedVersion$json = { '1': 'TimedVersion', - '2': const [ - const {'1': 'unix_micro', '3': 1, '4': 1, '5': 3, '10': 'unixMicro'}, - const {'1': 'ticks', '3': 2, '4': 1, '5': 5, '10': 'ticks'}, + '2': [ + {'1': 'unix_micro', '3': 1, '4': 1, '5': 3, '10': 'unixMicro'}, + {'1': 'ticks', '3': 2, '4': 1, '5': 5, '10': 'ticks'}, ], }; /// Descriptor for `TimedVersion`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List timedVersionDescriptor = $convert.base64Decode( - 'CgxUaW1lZFZlcnNpb24SHQoKdW5peF9taWNybxgBIAEoA1IJdW5peE1pY3JvEhQKBXRpY2tzGAIgASgFUgV0aWNrcw=='); + 'CgxUaW1lZFZlcnNpb24SHQoKdW5peF9taWNybxgBIAEoA1IJdW5peE1pY3JvEhQKBXRpY2tzGA' + 'IgASgFUgV0aWNrcw=='); + diff --git a/lib/src/proto/livekit_models.pbserver.dart b/lib/src/proto/livekit_models.pbserver.dart index 5ee90ecd..34ef45f3 100644 --- a/lib/src/proto/livekit_models.pbserver.dart +++ b/lib/src/proto/livekit_models.pbserver.dart @@ -1,22 +1,14 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_models.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'livekit_models.pb.dart'; + diff --git a/lib/src/proto/livekit_rtc.pb.dart b/lib/src/proto/livekit_rtc.pb.dart index 8e9ac8c7..4bea653e 100644 --- a/lib/src/proto/livekit_rtc.pb.dart +++ b/lib/src/proto/livekit_rtc.pb.dart @@ -1,23 +1,13 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_rtc.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import import 'dart:core' as $core; @@ -25,153 +15,31 @@ import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; import 'livekit_models.pb.dart' as $1; - import 'livekit_models.pbenum.dart' as $1; import 'livekit_rtc.pbenum.dart'; export 'livekit_rtc.pbenum.dart'; enum SignalRequest_Message { - offer, - answer, - trickle, - addTrack, - mute, - subscription, - trackSetting, - leave, - updateLayers, - subscriptionPermission, - syncState, - simulate, - ping, - updateMetadata, - pingReq, + offer, + answer, + trickle, + addTrack, + mute, + subscription, + trackSetting, + leave, + updateLayers, + subscriptionPermission, + syncState, + simulate, + ping, + updateMetadata, + pingReq, notSet } class SignalRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, SignalRequest_Message> - _SignalRequest_MessageByTag = { - 1: SignalRequest_Message.offer, - 2: SignalRequest_Message.answer, - 3: SignalRequest_Message.trickle, - 4: SignalRequest_Message.addTrack, - 5: SignalRequest_Message.mute, - 6: SignalRequest_Message.subscription, - 7: SignalRequest_Message.trackSetting, - 8: SignalRequest_Message.leave, - 10: SignalRequest_Message.updateLayers, - 11: SignalRequest_Message.subscriptionPermission, - 12: SignalRequest_Message.syncState, - 13: SignalRequest_Message.simulate, - 14: SignalRequest_Message.ping, - 15: SignalRequest_Message.updateMetadata, - 16: SignalRequest_Message.pingReq, - 0: SignalRequest_Message.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignalRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offer', - subBuilder: SessionDescription.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'answer', - subBuilder: SessionDescription.create) - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trickle', - subBuilder: TrickleRequest.create) - ..aOM( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'addTrack', - subBuilder: AddTrackRequest.create) - ..aOM( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mute', - subBuilder: MuteTrackRequest.create) - ..aOM( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscription', - subBuilder: UpdateSubscription.create) - ..aOM( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSetting', - subBuilder: UpdateTrackSettings.create) - ..aOM( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'leave', - subBuilder: LeaveRequest.create) - ..aOM( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'updateLayers', - subBuilder: UpdateVideoLayers.create) - ..aOM( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscriptionPermission', - subBuilder: SubscriptionPermission.create) - ..aOM( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'syncState', - subBuilder: SyncState.create) - ..aOM( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'simulate', - subBuilder: SimulateScenario.create) - ..aInt64( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ping') - ..aOM( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'updateMetadata', - subBuilder: UpdateParticipantMetadata.create) - ..aOM( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pingReq', - subBuilder: Ping.create) - ..hasRequiredFields = false; - - SignalRequest._() : super(); factory SignalRequest({ SessionDescription? offer, SessionDescription? answer, @@ -189,92 +57,125 @@ class SignalRequest extends $pb.GeneratedMessage { UpdateParticipantMetadata? updateMetadata, Ping? pingReq, }) { - final _result = create(); + final $result = create(); if (offer != null) { - _result.offer = offer; + $result.offer = offer; } if (answer != null) { - _result.answer = answer; + $result.answer = answer; } if (trickle != null) { - _result.trickle = trickle; + $result.trickle = trickle; } if (addTrack != null) { - _result.addTrack = addTrack; + $result.addTrack = addTrack; } if (mute != null) { - _result.mute = mute; + $result.mute = mute; } if (subscription != null) { - _result.subscription = subscription; + $result.subscription = subscription; } if (trackSetting != null) { - _result.trackSetting = trackSetting; + $result.trackSetting = trackSetting; } if (leave != null) { - _result.leave = leave; + $result.leave = leave; } if (updateLayers != null) { - _result.updateLayers = updateLayers; + $result.updateLayers = updateLayers; } if (subscriptionPermission != null) { - _result.subscriptionPermission = subscriptionPermission; + $result.subscriptionPermission = subscriptionPermission; } if (syncState != null) { - _result.syncState = syncState; + $result.syncState = syncState; } if (simulate != null) { - _result.simulate = simulate; + $result.simulate = simulate; } if (ping != null) { - _result.ping = ping; + $result.ping = ping; } if (updateMetadata != null) { - _result.updateMetadata = updateMetadata; + $result.updateMetadata = updateMetadata; } if (pingReq != null) { - _result.pingReq = pingReq; + $result.pingReq = pingReq; } - return _result; + return $result; } - factory SignalRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SignalRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SignalRequest._() : super(); + factory SignalRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SignalRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SignalRequest_Message> _SignalRequest_MessageByTag = { + 1 : SignalRequest_Message.offer, + 2 : SignalRequest_Message.answer, + 3 : SignalRequest_Message.trickle, + 4 : SignalRequest_Message.addTrack, + 5 : SignalRequest_Message.mute, + 6 : SignalRequest_Message.subscription, + 7 : SignalRequest_Message.trackSetting, + 8 : SignalRequest_Message.leave, + 10 : SignalRequest_Message.updateLayers, + 11 : SignalRequest_Message.subscriptionPermission, + 12 : SignalRequest_Message.syncState, + 13 : SignalRequest_Message.simulate, + 14 : SignalRequest_Message.ping, + 15 : SignalRequest_Message.updateMetadata, + 16 : SignalRequest_Message.pingReq, + 0 : SignalRequest_Message.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SignalRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16]) + ..aOM(1, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) + ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) + ..aOM(3, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) + ..aOM(4, _omitFieldNames ? '' : 'addTrack', subBuilder: AddTrackRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'mute', subBuilder: MuteTrackRequest.create) + ..aOM(6, _omitFieldNames ? '' : 'subscription', subBuilder: UpdateSubscription.create) + ..aOM(7, _omitFieldNames ? '' : 'trackSetting', subBuilder: UpdateTrackSettings.create) + ..aOM(8, _omitFieldNames ? '' : 'leave', subBuilder: LeaveRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'updateLayers', subBuilder: UpdateVideoLayers.create) + ..aOM(11, _omitFieldNames ? '' : 'subscriptionPermission', subBuilder: SubscriptionPermission.create) + ..aOM(12, _omitFieldNames ? '' : 'syncState', subBuilder: SyncState.create) + ..aOM(13, _omitFieldNames ? '' : 'simulate', subBuilder: SimulateScenario.create) + ..aInt64(14, _omitFieldNames ? '' : 'ping') + ..aOM(15, _omitFieldNames ? '' : 'updateMetadata', subBuilder: UpdateParticipantMetadata.create) + ..aOM(16, _omitFieldNames ? '' : 'pingReq', subBuilder: Ping.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SignalRequest clone() => SignalRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SignalRequest copyWith(void Function(SignalRequest) updates) => - super.copyWith((message) => updates(message as SignalRequest)) - as SignalRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SignalRequest copyWith(void Function(SignalRequest) updates) => super.copyWith((message) => updates(message as SignalRequest)) as SignalRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignalRequest create() => SignalRequest._(); SignalRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SignalRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SignalRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SignalRequest? _defaultInstance; - SignalRequest_Message whichMessage() => - _SignalRequest_MessageByTag[$_whichOneof(0)]!; + SignalRequest_Message whichMessage() => _SignalRequest_MessageByTag[$_whichOneof(0)]!; void clearMessage() => clearField($_whichOneof(0)); + /// initial join exchange, for publisher @$pb.TagNumber(1) SessionDescription get offer => $_getN(0); @$pb.TagNumber(1) - set offer(SessionDescription v) { - setField(1, v); - } - + set offer(SessionDescription v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasOffer() => $_has(0); @$pb.TagNumber(1) @@ -282,13 +183,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) SessionDescription ensureOffer() => $_ensure(0); + /// participant answering publisher offer @$pb.TagNumber(2) SessionDescription get answer => $_getN(1); @$pb.TagNumber(2) - set answer(SessionDescription v) { - setField(2, v); - } - + set answer(SessionDescription v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasAnswer() => $_has(1); @$pb.TagNumber(2) @@ -299,10 +198,7 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) TrickleRequest get trickle => $_getN(2); @$pb.TagNumber(3) - set trickle(TrickleRequest v) { - setField(3, v); - } - + set trickle(TrickleRequest v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasTrickle() => $_has(2); @$pb.TagNumber(3) @@ -313,10 +209,7 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) AddTrackRequest get addTrack => $_getN(3); @$pb.TagNumber(4) - set addTrack(AddTrackRequest v) { - setField(4, v); - } - + set addTrack(AddTrackRequest v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasAddTrack() => $_has(3); @$pb.TagNumber(4) @@ -324,13 +217,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) AddTrackRequest ensureAddTrack() => $_ensure(3); + /// mute the participant's published tracks @$pb.TagNumber(5) MuteTrackRequest get mute => $_getN(4); @$pb.TagNumber(5) - set mute(MuteTrackRequest v) { - setField(5, v); - } - + set mute(MuteTrackRequest v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasMute() => $_has(4); @$pb.TagNumber(5) @@ -338,13 +229,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) MuteTrackRequest ensureMute() => $_ensure(4); + /// Subscribe or unsubscribe from tracks @$pb.TagNumber(6) UpdateSubscription get subscription => $_getN(5); @$pb.TagNumber(6) - set subscription(UpdateSubscription v) { - setField(6, v); - } - + set subscription(UpdateSubscription v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasSubscription() => $_has(5); @$pb.TagNumber(6) @@ -352,13 +241,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) UpdateSubscription ensureSubscription() => $_ensure(5); + /// Update settings of subscribed tracks @$pb.TagNumber(7) UpdateTrackSettings get trackSetting => $_getN(6); @$pb.TagNumber(7) - set trackSetting(UpdateTrackSettings v) { - setField(7, v); - } - + set trackSetting(UpdateTrackSettings v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasTrackSetting() => $_has(6); @$pb.TagNumber(7) @@ -366,13 +253,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) UpdateTrackSettings ensureTrackSetting() => $_ensure(6); + /// Immediately terminate session @$pb.TagNumber(8) LeaveRequest get leave => $_getN(7); @$pb.TagNumber(8) - set leave(LeaveRequest v) { - setField(8, v); - } - + set leave(LeaveRequest v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasLeave() => $_has(7); @$pb.TagNumber(8) @@ -380,13 +265,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) LeaveRequest ensureLeave() => $_ensure(7); + /// Update published video layers @$pb.TagNumber(10) UpdateVideoLayers get updateLayers => $_getN(8); @$pb.TagNumber(10) - set updateLayers(UpdateVideoLayers v) { - setField(10, v); - } - + set updateLayers(UpdateVideoLayers v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasUpdateLayers() => $_has(8); @$pb.TagNumber(10) @@ -394,13 +277,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(10) UpdateVideoLayers ensureUpdateLayers() => $_ensure(8); + /// Update subscriber permissions @$pb.TagNumber(11) SubscriptionPermission get subscriptionPermission => $_getN(9); @$pb.TagNumber(11) - set subscriptionPermission(SubscriptionPermission v) { - setField(11, v); - } - + set subscriptionPermission(SubscriptionPermission v) { setField(11, v); } @$pb.TagNumber(11) $core.bool hasSubscriptionPermission() => $_has(9); @$pb.TagNumber(11) @@ -408,13 +289,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(11) SubscriptionPermission ensureSubscriptionPermission() => $_ensure(9); + /// sync client's subscribe state to server during reconnect @$pb.TagNumber(12) SyncState get syncState => $_getN(10); @$pb.TagNumber(12) - set syncState(SyncState v) { - setField(12, v); - } - + set syncState(SyncState v) { setField(12, v); } @$pb.TagNumber(12) $core.bool hasSyncState() => $_has(10); @$pb.TagNumber(12) @@ -422,13 +301,11 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) SyncState ensureSyncState() => $_ensure(10); + /// Simulate conditions, for client validations @$pb.TagNumber(13) SimulateScenario get simulate => $_getN(11); @$pb.TagNumber(13) - set simulate(SimulateScenario v) { - setField(13, v); - } - + set simulate(SimulateScenario v) { setField(13, v); } @$pb.TagNumber(13) $core.bool hasSimulate() => $_has(11); @$pb.TagNumber(13) @@ -436,25 +313,21 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(13) SimulateScenario ensureSimulate() => $_ensure(11); + /// client triggered ping to server @$pb.TagNumber(14) $fixnum.Int64 get ping => $_getI64(12); @$pb.TagNumber(14) - set ping($fixnum.Int64 v) { - $_setInt64(12, v); - } - + set ping($fixnum.Int64 v) { $_setInt64(12, v); } @$pb.TagNumber(14) $core.bool hasPing() => $_has(12); @$pb.TagNumber(14) void clearPing() => clearField(14); + /// update a participant's own metadata and/or name @$pb.TagNumber(15) UpdateParticipantMetadata get updateMetadata => $_getN(13); @$pb.TagNumber(15) - set updateMetadata(UpdateParticipantMetadata v) { - setField(15, v); - } - + set updateMetadata(UpdateParticipantMetadata v) { setField(15, v); } @$pb.TagNumber(15) $core.bool hasUpdateMetadata() => $_has(13); @$pb.TagNumber(15) @@ -465,10 +338,7 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(16) Ping get pingReq => $_getN(14); @$pb.TagNumber(16) - set pingReq(Ping v) { - setField(16, v); - } - + set pingReq(Ping v) { setField(16, v); } @$pb.TagNumber(16) $core.bool hasPingReq() => $_has(14); @$pb.TagNumber(16) @@ -478,178 +348,30 @@ class SignalRequest extends $pb.GeneratedMessage { } enum SignalResponse_Message { - join, - answer, - offer, - trickle, - update, - trackPublished, - leave, - mute, - speakersChanged, - roomUpdate, - connectionQuality, - streamStateUpdate, - subscribedQualityUpdate, - subscriptionPermissionUpdate, - refreshToken, - trackUnpublished, - pong, - reconnect, - pongResp, + join, + answer, + offer, + trickle, + update, + trackPublished, + leave, + mute, + speakersChanged, + roomUpdate, + connectionQuality, + streamStateUpdate, + subscribedQualityUpdate, + subscriptionPermissionUpdate, + refreshToken, + trackUnpublished, + pong, + reconnect, + pongResp, + subscriptionResponse, notSet } class SignalResponse extends $pb.GeneratedMessage { - static const $core.Map<$core.int, SignalResponse_Message> - _SignalResponse_MessageByTag = { - 1: SignalResponse_Message.join, - 2: SignalResponse_Message.answer, - 3: SignalResponse_Message.offer, - 4: SignalResponse_Message.trickle, - 5: SignalResponse_Message.update, - 6: SignalResponse_Message.trackPublished, - 8: SignalResponse_Message.leave, - 9: SignalResponse_Message.mute, - 10: SignalResponse_Message.speakersChanged, - 11: SignalResponse_Message.roomUpdate, - 12: SignalResponse_Message.connectionQuality, - 13: SignalResponse_Message.streamStateUpdate, - 14: SignalResponse_Message.subscribedQualityUpdate, - 15: SignalResponse_Message.subscriptionPermissionUpdate, - 16: SignalResponse_Message.refreshToken, - 17: SignalResponse_Message.trackUnpublished, - 18: SignalResponse_Message.pong, - 19: SignalResponse_Message.reconnect, - 20: SignalResponse_Message.pongResp, - 0: SignalResponse_Message.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignalResponse', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..oo( - 0, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'join', - subBuilder: JoinResponse.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'answer', - subBuilder: SessionDescription.create) - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offer', - subBuilder: SessionDescription.create) - ..aOM( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trickle', - subBuilder: TrickleRequest.create) - ..aOM( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'update', - subBuilder: ParticipantUpdate.create) - ..aOM( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackPublished', - subBuilder: TrackPublishedResponse.create) - ..aOM( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'leave', - subBuilder: LeaveRequest.create) - ..aOM( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mute', - subBuilder: MuteTrackRequest.create) - ..aOM( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'speakersChanged', - subBuilder: SpeakersChanged.create) - ..aOM( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'roomUpdate', - subBuilder: RoomUpdate.create) - ..aOM( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'connectionQuality', - subBuilder: ConnectionQualityUpdate.create) - ..aOM( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'streamStateUpdate', - subBuilder: StreamStateUpdate.create) - ..aOM( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscribedQualityUpdate', - subBuilder: SubscribedQualityUpdate.create) - ..aOM( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscriptionPermissionUpdate', - subBuilder: SubscriptionPermissionUpdate.create) - ..aOS( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'refreshToken') - ..aOM( - 17, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackUnpublished', - subBuilder: TrackUnpublishedResponse.create) - ..aInt64( - 18, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pong') - ..aOM( - 19, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'reconnect', - subBuilder: ReconnectResponse.create) - ..aOM( - 20, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pongResp', - subBuilder: Pong.create) - ..hasRequiredFields = false; - - SignalResponse._() : super(); factory SignalResponse({ JoinResponse? join, SessionDescription? answer, @@ -670,105 +392,152 @@ class SignalResponse extends $pb.GeneratedMessage { $fixnum.Int64? pong, ReconnectResponse? reconnect, Pong? pongResp, + SubscriptionResponse? subscriptionResponse, }) { - final _result = create(); + final $result = create(); if (join != null) { - _result.join = join; + $result.join = join; } if (answer != null) { - _result.answer = answer; + $result.answer = answer; } if (offer != null) { - _result.offer = offer; + $result.offer = offer; } if (trickle != null) { - _result.trickle = trickle; + $result.trickle = trickle; } if (update != null) { - _result.update = update; + $result.update = update; } if (trackPublished != null) { - _result.trackPublished = trackPublished; + $result.trackPublished = trackPublished; } if (leave != null) { - _result.leave = leave; + $result.leave = leave; } if (mute != null) { - _result.mute = mute; + $result.mute = mute; } if (speakersChanged != null) { - _result.speakersChanged = speakersChanged; + $result.speakersChanged = speakersChanged; } if (roomUpdate != null) { - _result.roomUpdate = roomUpdate; + $result.roomUpdate = roomUpdate; } if (connectionQuality != null) { - _result.connectionQuality = connectionQuality; + $result.connectionQuality = connectionQuality; } if (streamStateUpdate != null) { - _result.streamStateUpdate = streamStateUpdate; + $result.streamStateUpdate = streamStateUpdate; } if (subscribedQualityUpdate != null) { - _result.subscribedQualityUpdate = subscribedQualityUpdate; + $result.subscribedQualityUpdate = subscribedQualityUpdate; } if (subscriptionPermissionUpdate != null) { - _result.subscriptionPermissionUpdate = subscriptionPermissionUpdate; + $result.subscriptionPermissionUpdate = subscriptionPermissionUpdate; } if (refreshToken != null) { - _result.refreshToken = refreshToken; + $result.refreshToken = refreshToken; } if (trackUnpublished != null) { - _result.trackUnpublished = trackUnpublished; + $result.trackUnpublished = trackUnpublished; } if (pong != null) { - _result.pong = pong; + $result.pong = pong; } if (reconnect != null) { - _result.reconnect = reconnect; + $result.reconnect = reconnect; } if (pongResp != null) { - _result.pongResp = pongResp; + $result.pongResp = pongResp; + } + if (subscriptionResponse != null) { + $result.subscriptionResponse = subscriptionResponse; } - return _result; + return $result; } - factory SignalResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SignalResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SignalResponse._() : super(); + factory SignalResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SignalResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SignalResponse_Message> _SignalResponse_MessageByTag = { + 1 : SignalResponse_Message.join, + 2 : SignalResponse_Message.answer, + 3 : SignalResponse_Message.offer, + 4 : SignalResponse_Message.trickle, + 5 : SignalResponse_Message.update, + 6 : SignalResponse_Message.trackPublished, + 8 : SignalResponse_Message.leave, + 9 : SignalResponse_Message.mute, + 10 : SignalResponse_Message.speakersChanged, + 11 : SignalResponse_Message.roomUpdate, + 12 : SignalResponse_Message.connectionQuality, + 13 : SignalResponse_Message.streamStateUpdate, + 14 : SignalResponse_Message.subscribedQualityUpdate, + 15 : SignalResponse_Message.subscriptionPermissionUpdate, + 16 : SignalResponse_Message.refreshToken, + 17 : SignalResponse_Message.trackUnpublished, + 18 : SignalResponse_Message.pong, + 19 : SignalResponse_Message.reconnect, + 20 : SignalResponse_Message.pongResp, + 21 : SignalResponse_Message.subscriptionResponse, + 0 : SignalResponse_Message.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SignalResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]) + ..aOM(1, _omitFieldNames ? '' : 'join', subBuilder: JoinResponse.create) + ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) + ..aOM(3, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) + ..aOM(4, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'update', subBuilder: ParticipantUpdate.create) + ..aOM(6, _omitFieldNames ? '' : 'trackPublished', subBuilder: TrackPublishedResponse.create) + ..aOM(8, _omitFieldNames ? '' : 'leave', subBuilder: LeaveRequest.create) + ..aOM(9, _omitFieldNames ? '' : 'mute', subBuilder: MuteTrackRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'speakersChanged', subBuilder: SpeakersChanged.create) + ..aOM(11, _omitFieldNames ? '' : 'roomUpdate', subBuilder: RoomUpdate.create) + ..aOM(12, _omitFieldNames ? '' : 'connectionQuality', subBuilder: ConnectionQualityUpdate.create) + ..aOM(13, _omitFieldNames ? '' : 'streamStateUpdate', subBuilder: StreamStateUpdate.create) + ..aOM(14, _omitFieldNames ? '' : 'subscribedQualityUpdate', subBuilder: SubscribedQualityUpdate.create) + ..aOM(15, _omitFieldNames ? '' : 'subscriptionPermissionUpdate', subBuilder: SubscriptionPermissionUpdate.create) + ..aOS(16, _omitFieldNames ? '' : 'refreshToken') + ..aOM(17, _omitFieldNames ? '' : 'trackUnpublished', subBuilder: TrackUnpublishedResponse.create) + ..aInt64(18, _omitFieldNames ? '' : 'pong') + ..aOM(19, _omitFieldNames ? '' : 'reconnect', subBuilder: ReconnectResponse.create) + ..aOM(20, _omitFieldNames ? '' : 'pongResp', subBuilder: Pong.create) + ..aOM(21, _omitFieldNames ? '' : 'subscriptionResponse', subBuilder: SubscriptionResponse.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SignalResponse clone() => SignalResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SignalResponse copyWith(void Function(SignalResponse) updates) => - super.copyWith((message) => updates(message as SignalResponse)) - as SignalResponse; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SignalResponse copyWith(void Function(SignalResponse) updates) => super.copyWith((message) => updates(message as SignalResponse)) as SignalResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignalResponse create() => SignalResponse._(); SignalResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SignalResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SignalResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SignalResponse? _defaultInstance; - SignalResponse_Message whichMessage() => - _SignalResponse_MessageByTag[$_whichOneof(0)]!; + SignalResponse_Message whichMessage() => _SignalResponse_MessageByTag[$_whichOneof(0)]!; void clearMessage() => clearField($_whichOneof(0)); + /// sent when join is accepted @$pb.TagNumber(1) JoinResponse get join => $_getN(0); @$pb.TagNumber(1) - set join(JoinResponse v) { - setField(1, v); - } - + set join(JoinResponse v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasJoin() => $_has(0); @$pb.TagNumber(1) @@ -776,13 +545,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) JoinResponse ensureJoin() => $_ensure(0); + /// sent when server answers publisher @$pb.TagNumber(2) SessionDescription get answer => $_getN(1); @$pb.TagNumber(2) - set answer(SessionDescription v) { - setField(2, v); - } - + set answer(SessionDescription v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasAnswer() => $_has(1); @$pb.TagNumber(2) @@ -790,13 +557,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) SessionDescription ensureAnswer() => $_ensure(1); + /// sent when server is sending subscriber an offer @$pb.TagNumber(3) SessionDescription get offer => $_getN(2); @$pb.TagNumber(3) - set offer(SessionDescription v) { - setField(3, v); - } - + set offer(SessionDescription v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasOffer() => $_has(2); @$pb.TagNumber(3) @@ -804,13 +569,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(3) SessionDescription ensureOffer() => $_ensure(2); + /// sent when an ICE candidate is available @$pb.TagNumber(4) TrickleRequest get trickle => $_getN(3); @$pb.TagNumber(4) - set trickle(TrickleRequest v) { - setField(4, v); - } - + set trickle(TrickleRequest v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasTrickle() => $_has(3); @$pb.TagNumber(4) @@ -818,13 +581,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(4) TrickleRequest ensureTrickle() => $_ensure(3); + /// sent when participants in the room has changed @$pb.TagNumber(5) ParticipantUpdate get update => $_getN(4); @$pb.TagNumber(5) - set update(ParticipantUpdate v) { - setField(5, v); - } - + set update(ParticipantUpdate v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasUpdate() => $_has(4); @$pb.TagNumber(5) @@ -832,13 +593,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(5) ParticipantUpdate ensureUpdate() => $_ensure(4); + /// sent to the participant when their track has been published @$pb.TagNumber(6) TrackPublishedResponse get trackPublished => $_getN(5); @$pb.TagNumber(6) - set trackPublished(TrackPublishedResponse v) { - setField(6, v); - } - + set trackPublished(TrackPublishedResponse v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasTrackPublished() => $_has(5); @$pb.TagNumber(6) @@ -846,13 +605,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(6) TrackPublishedResponse ensureTrackPublished() => $_ensure(5); + /// Immediately terminate session @$pb.TagNumber(8) LeaveRequest get leave => $_getN(6); @$pb.TagNumber(8) - set leave(LeaveRequest v) { - setField(8, v); - } - + set leave(LeaveRequest v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasLeave() => $_has(6); @$pb.TagNumber(8) @@ -860,13 +617,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(8) LeaveRequest ensureLeave() => $_ensure(6); + /// server initiated mute @$pb.TagNumber(9) MuteTrackRequest get mute => $_getN(7); @$pb.TagNumber(9) - set mute(MuteTrackRequest v) { - setField(9, v); - } - + set mute(MuteTrackRequest v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasMute() => $_has(7); @$pb.TagNumber(9) @@ -874,13 +629,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(9) MuteTrackRequest ensureMute() => $_ensure(7); + /// indicates changes to speaker status, including when they've gone to not speaking @$pb.TagNumber(10) SpeakersChanged get speakersChanged => $_getN(8); @$pb.TagNumber(10) - set speakersChanged(SpeakersChanged v) { - setField(10, v); - } - + set speakersChanged(SpeakersChanged v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasSpeakersChanged() => $_has(8); @$pb.TagNumber(10) @@ -888,13 +641,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(10) SpeakersChanged ensureSpeakersChanged() => $_ensure(8); + /// sent when metadata of the room has changed @$pb.TagNumber(11) RoomUpdate get roomUpdate => $_getN(9); @$pb.TagNumber(11) - set roomUpdate(RoomUpdate v) { - setField(11, v); - } - + set roomUpdate(RoomUpdate v) { setField(11, v); } @$pb.TagNumber(11) $core.bool hasRoomUpdate() => $_has(9); @$pb.TagNumber(11) @@ -902,13 +653,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(11) RoomUpdate ensureRoomUpdate() => $_ensure(9); + /// when connection quality changed @$pb.TagNumber(12) ConnectionQualityUpdate get connectionQuality => $_getN(10); @$pb.TagNumber(12) - set connectionQuality(ConnectionQualityUpdate v) { - setField(12, v); - } - + set connectionQuality(ConnectionQualityUpdate v) { setField(12, v); } @$pb.TagNumber(12) $core.bool hasConnectionQuality() => $_has(10); @$pb.TagNumber(12) @@ -916,13 +665,12 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(12) ConnectionQualityUpdate ensureConnectionQuality() => $_ensure(10); + /// when streamed tracks state changed, used to notify when any of the streams were paused due to + /// congestion @$pb.TagNumber(13) StreamStateUpdate get streamStateUpdate => $_getN(11); @$pb.TagNumber(13) - set streamStateUpdate(StreamStateUpdate v) { - setField(13, v); - } - + set streamStateUpdate(StreamStateUpdate v) { setField(13, v); } @$pb.TagNumber(13) $core.bool hasStreamStateUpdate() => $_has(11); @$pb.TagNumber(13) @@ -930,13 +678,11 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(13) StreamStateUpdate ensureStreamStateUpdate() => $_ensure(11); + /// when max subscribe quality changed, used by dynamic broadcasting to disable unused layers @$pb.TagNumber(14) SubscribedQualityUpdate get subscribedQualityUpdate => $_getN(12); @$pb.TagNumber(14) - set subscribedQualityUpdate(SubscribedQualityUpdate v) { - setField(14, v); - } - + set subscribedQualityUpdate(SubscribedQualityUpdate v) { setField(14, v); } @$pb.TagNumber(14) $core.bool hasSubscribedQualityUpdate() => $_has(12); @$pb.TagNumber(14) @@ -944,40 +690,33 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(14) SubscribedQualityUpdate ensureSubscribedQualityUpdate() => $_ensure(12); + /// when subscription permission changed @$pb.TagNumber(15) SubscriptionPermissionUpdate get subscriptionPermissionUpdate => $_getN(13); @$pb.TagNumber(15) - set subscriptionPermissionUpdate(SubscriptionPermissionUpdate v) { - setField(15, v); - } - + set subscriptionPermissionUpdate(SubscriptionPermissionUpdate v) { setField(15, v); } @$pb.TagNumber(15) $core.bool hasSubscriptionPermissionUpdate() => $_has(13); @$pb.TagNumber(15) void clearSubscriptionPermissionUpdate() => clearField(15); @$pb.TagNumber(15) - SubscriptionPermissionUpdate ensureSubscriptionPermissionUpdate() => - $_ensure(13); + SubscriptionPermissionUpdate ensureSubscriptionPermissionUpdate() => $_ensure(13); + /// update the token the client was using, to prevent an active client from using an expired token @$pb.TagNumber(16) $core.String get refreshToken => $_getSZ(14); @$pb.TagNumber(16) - set refreshToken($core.String v) { - $_setString(14, v); - } - + set refreshToken($core.String v) { $_setString(14, v); } @$pb.TagNumber(16) $core.bool hasRefreshToken() => $_has(14); @$pb.TagNumber(16) void clearRefreshToken() => clearField(16); + /// server initiated track unpublish @$pb.TagNumber(17) TrackUnpublishedResponse get trackUnpublished => $_getN(15); @$pb.TagNumber(17) - set trackUnpublished(TrackUnpublishedResponse v) { - setField(17, v); - } - + set trackUnpublished(TrackUnpublishedResponse v) { setField(17, v); } @$pb.TagNumber(17) $core.bool hasTrackUnpublished() => $_has(15); @$pb.TagNumber(17) @@ -985,25 +724,21 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(17) TrackUnpublishedResponse ensureTrackUnpublished() => $_ensure(15); + /// respond to ping @$pb.TagNumber(18) $fixnum.Int64 get pong => $_getI64(16); @$pb.TagNumber(18) - set pong($fixnum.Int64 v) { - $_setInt64(16, v); - } - + set pong($fixnum.Int64 v) { $_setInt64(16, v); } @$pb.TagNumber(18) $core.bool hasPong() => $_has(16); @$pb.TagNumber(18) void clearPong() => clearField(18); + /// sent when client reconnects @$pb.TagNumber(19) ReconnectResponse get reconnect => $_getN(17); @$pb.TagNumber(19) - set reconnect(ReconnectResponse v) { - setField(19, v); - } - + set reconnect(ReconnectResponse v) { setField(19, v); } @$pb.TagNumber(19) $core.bool hasReconnect() => $_has(17); @$pb.TagNumber(19) @@ -1011,100 +746,80 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(19) ReconnectResponse ensureReconnect() => $_ensure(17); + /// respond to Ping @$pb.TagNumber(20) Pong get pongResp => $_getN(18); @$pb.TagNumber(20) - set pongResp(Pong v) { - setField(20, v); - } - + set pongResp(Pong v) { setField(20, v); } @$pb.TagNumber(20) $core.bool hasPongResp() => $_has(18); @$pb.TagNumber(20) void clearPongResp() => clearField(20); @$pb.TagNumber(20) Pong ensurePongResp() => $_ensure(18); + + /// Subscription response, client should not expect any media from this subscription if it fails + @$pb.TagNumber(21) + SubscriptionResponse get subscriptionResponse => $_getN(19); + @$pb.TagNumber(21) + set subscriptionResponse(SubscriptionResponse v) { setField(21, v); } + @$pb.TagNumber(21) + $core.bool hasSubscriptionResponse() => $_has(19); + @$pb.TagNumber(21) + void clearSubscriptionResponse() => clearField(21); + @$pb.TagNumber(21) + SubscriptionResponse ensureSubscriptionResponse() => $_ensure(19); } class SimulcastCodec extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SimulcastCodec', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'codec') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cid') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enableSimulcastLayers') - ..hasRequiredFields = false; - - SimulcastCodec._() : super(); factory SimulcastCodec({ $core.String? codec, $core.String? cid, - $core.bool? enableSimulcastLayers, }) { - final _result = create(); + final $result = create(); if (codec != null) { - _result.codec = codec; + $result.codec = codec; } if (cid != null) { - _result.cid = cid; + $result.cid = cid; } - if (enableSimulcastLayers != null) { - _result.enableSimulcastLayers = enableSimulcastLayers; - } - return _result; + return $result; } - factory SimulcastCodec.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SimulcastCodec.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SimulcastCodec._() : super(); + factory SimulcastCodec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SimulcastCodec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulcastCodec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'codec') + ..aOS(2, _omitFieldNames ? '' : 'cid') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulcastCodec clone() => SimulcastCodec()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulcastCodec copyWith(void Function(SimulcastCodec) updates) => - super.copyWith((message) => updates(message as SimulcastCodec)) - as SimulcastCodec; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulcastCodec copyWith(void Function(SimulcastCodec) updates) => super.copyWith((message) => updates(message as SimulcastCodec)) as SimulcastCodec; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SimulcastCodec create() => SimulcastCodec._(); SimulcastCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulcastCodec getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SimulcastCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SimulcastCodec? _defaultInstance; @$pb.TagNumber(1) $core.String get codec => $_getSZ(0); @$pb.TagNumber(1) - set codec($core.String v) { - $_setString(0, v); - } - + set codec($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCodec() => $_has(0); @$pb.TagNumber(1) @@ -1113,129 +828,14 @@ class SimulcastCodec extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get cid => $_getSZ(1); @$pb.TagNumber(2) - set cid($core.String v) { - $_setString(1, v); - } - + set cid($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasCid() => $_has(1); @$pb.TagNumber(2) void clearCid() => clearField(2); - - @$pb.TagNumber(3) - $core.bool get enableSimulcastLayers => $_getBF(2); - @$pb.TagNumber(3) - set enableSimulcastLayers($core.bool v) { - $_setBool(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasEnableSimulcastLayers() => $_has(2); - @$pb.TagNumber(3) - void clearEnableSimulcastLayers() => clearField(3); } class AddTrackRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AddTrackRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cid') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e<$1.TrackType>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: $1.TrackType.AUDIO, - valueOf: $1.TrackType.valueOf, - enumValues: $1.TrackType.values) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'height', - $pb.PbFieldType.OU3) - ..aOB( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'muted') - ..aOB( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableDtx') - ..e<$1.TrackSource>( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'source', - $pb.PbFieldType.OE, - defaultOrMaker: $1.TrackSource.UNKNOWN, - valueOf: $1.TrackSource.valueOf, - enumValues: $1.TrackSource.values) - ..pc<$1.VideoLayer>( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'layers', - $pb.PbFieldType.PM, - subBuilder: $1.VideoLayer.create) - ..pc( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'simulcastCodecs', - $pb.PbFieldType.PM, - subBuilder: SimulcastCodec.create) - ..aOS( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..aOB( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'stereo') - ..aOB( - 13, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableRed') - ..e<$1.Encryption_Type>( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'encryption', - $pb.PbFieldType.OE, - defaultOrMaker: $1.Encryption_Type.NONE, - valueOf: $1.Encryption_Type.valueOf, - enumValues: $1.Encryption_Type.values) - ..hasRequiredFields = false; - - AddTrackRequest._() : super(); factory AddTrackRequest({ $core.String? cid, $core.String? name, @@ -1251,86 +851,105 @@ class AddTrackRequest extends $pb.GeneratedMessage { $core.bool? stereo, $core.bool? disableRed, $1.Encryption_Type? encryption, + $core.String? stream, }) { - final _result = create(); + final $result = create(); if (cid != null) { - _result.cid = cid; + $result.cid = cid; } if (name != null) { - _result.name = name; + $result.name = name; } if (type != null) { - _result.type = type; + $result.type = type; } if (width != null) { - _result.width = width; + $result.width = width; } if (height != null) { - _result.height = height; + $result.height = height; } if (muted != null) { - _result.muted = muted; + $result.muted = muted; } if (disableDtx != null) { - _result.disableDtx = disableDtx; + $result.disableDtx = disableDtx; } if (source != null) { - _result.source = source; + $result.source = source; } if (layers != null) { - _result.layers.addAll(layers); + $result.layers.addAll(layers); } if (simulcastCodecs != null) { - _result.simulcastCodecs.addAll(simulcastCodecs); + $result.simulcastCodecs.addAll(simulcastCodecs); } if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (stereo != null) { - _result.stereo = stereo; + $result.stereo = stereo; } if (disableRed != null) { - _result.disableRed = disableRed; + $result.disableRed = disableRed; } if (encryption != null) { - _result.encryption = encryption; + $result.encryption = encryption; + } + if (stream != null) { + $result.stream = stream; } - return _result; + return $result; } - factory AddTrackRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory AddTrackRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + AddTrackRequest._() : super(); + factory AddTrackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AddTrackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddTrackRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'cid') + ..aOS(2, _omitFieldNames ? '' : 'name') + ..e<$1.TrackType>(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: $1.TrackType.AUDIO, valueOf: $1.TrackType.valueOf, enumValues: $1.TrackType.values) + ..a<$core.int>(4, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) + ..a<$core.int>(5, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..aOB(6, _omitFieldNames ? '' : 'muted') + ..aOB(7, _omitFieldNames ? '' : 'disableDtx') + ..e<$1.TrackSource>(8, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, defaultOrMaker: $1.TrackSource.UNKNOWN, valueOf: $1.TrackSource.valueOf, enumValues: $1.TrackSource.values) + ..pc<$1.VideoLayer>(9, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $1.VideoLayer.create) + ..pc(10, _omitFieldNames ? '' : 'simulcastCodecs', $pb.PbFieldType.PM, subBuilder: SimulcastCodec.create) + ..aOS(11, _omitFieldNames ? '' : 'sid') + ..aOB(12, _omitFieldNames ? '' : 'stereo') + ..aOB(13, _omitFieldNames ? '' : 'disableRed') + ..e<$1.Encryption_Type>(14, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, defaultOrMaker: $1.Encryption_Type.NONE, valueOf: $1.Encryption_Type.valueOf, enumValues: $1.Encryption_Type.values) + ..aOS(15, _omitFieldNames ? '' : 'stream') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') AddTrackRequest clone() => AddTrackRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AddTrackRequest copyWith(void Function(AddTrackRequest) updates) => - super.copyWith((message) => updates(message as AddTrackRequest)) - as AddTrackRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AddTrackRequest copyWith(void Function(AddTrackRequest) updates) => super.copyWith((message) => updates(message as AddTrackRequest)) as AddTrackRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AddTrackRequest create() => AddTrackRequest._(); AddTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static AddTrackRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static AddTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static AddTrackRequest? _defaultInstance; + /// client ID of track, to match it when RTC track is received @$pb.TagNumber(1) $core.String get cid => $_getSZ(0); @$pb.TagNumber(1) - set cid($core.String v) { - $_setString(0, v); - } - + set cid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCid() => $_has(0); @$pb.TagNumber(1) @@ -1339,10 +958,7 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { - $_setString(1, v); - } - + set name($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -1351,22 +967,17 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.TrackType get type => $_getN(2); @$pb.TagNumber(3) - set type($1.TrackType v) { - setField(3, v); - } - + set type($1.TrackType v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasType() => $_has(2); @$pb.TagNumber(3) void clearType() => clearField(3); + /// to be deprecated in favor of layers @$pb.TagNumber(4) $core.int get width => $_getIZ(3); @$pb.TagNumber(4) - set width($core.int v) { - $_setUnsignedInt32(3, v); - } - + set width($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasWidth() => $_has(3); @$pb.TagNumber(4) @@ -1375,34 +986,27 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get height => $_getIZ(4); @$pb.TagNumber(5) - set height($core.int v) { - $_setUnsignedInt32(4, v); - } - + set height($core.int v) { $_setUnsignedInt32(4, v); } @$pb.TagNumber(5) $core.bool hasHeight() => $_has(4); @$pb.TagNumber(5) void clearHeight() => clearField(5); + /// true to add track and initialize to muted @$pb.TagNumber(6) $core.bool get muted => $_getBF(5); @$pb.TagNumber(6) - set muted($core.bool v) { - $_setBool(5, v); - } - + set muted($core.bool v) { $_setBool(5, v); } @$pb.TagNumber(6) $core.bool hasMuted() => $_has(5); @$pb.TagNumber(6) void clearMuted() => clearField(6); + /// true if DTX (Discontinuous Transmission) is disabled for audio @$pb.TagNumber(7) $core.bool get disableDtx => $_getBF(6); @$pb.TagNumber(7) - set disableDtx($core.bool v) { - $_setBool(6, v); - } - + set disableDtx($core.bool v) { $_setBool(6, v); } @$pb.TagNumber(7) $core.bool hasDisableDtx() => $_has(6); @$pb.TagNumber(7) @@ -1411,10 +1015,7 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) $1.TrackSource get source => $_getN(7); @$pb.TagNumber(8) - set source($1.TrackSource v) { - setField(8, v); - } - + set source($1.TrackSource v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasSource() => $_has(7); @$pb.TagNumber(8) @@ -1426,13 +1027,11 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.List get simulcastCodecs => $_getList(9); + /// server ID of track, publish new codec to exist track @$pb.TagNumber(11) $core.String get sid => $_getSZ(10); @$pb.TagNumber(11) - set sid($core.String v) { - $_setString(10, v); - } - + set sid($core.String v) { $_setString(10, v); } @$pb.TagNumber(11) $core.bool hasSid() => $_has(10); @$pb.TagNumber(11) @@ -1441,22 +1040,17 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.bool get stereo => $_getBF(11); @$pb.TagNumber(12) - set stereo($core.bool v) { - $_setBool(11, v); - } - + set stereo($core.bool v) { $_setBool(11, v); } @$pb.TagNumber(12) $core.bool hasStereo() => $_has(11); @$pb.TagNumber(12) void clearStereo() => clearField(12); + /// true if RED (Redundant Encoding) is disabled for audio @$pb.TagNumber(13) $core.bool get disableRed => $_getBF(12); @$pb.TagNumber(13) - set disableRed($core.bool v) { - $_setBool(12, v); - } - + set disableRed($core.bool v) { $_setBool(12, v); } @$pb.TagNumber(13) $core.bool hasDisableRed() => $_has(12); @$pb.TagNumber(13) @@ -1465,91 +1059,73 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(14) $1.Encryption_Type get encryption => $_getN(13); @$pb.TagNumber(14) - set encryption($1.Encryption_Type v) { - setField(14, v); - } - + set encryption($1.Encryption_Type v) { setField(14, v); } @$pb.TagNumber(14) $core.bool hasEncryption() => $_has(13); @$pb.TagNumber(14) void clearEncryption() => clearField(14); + + /// which stream the track belongs to, used to group tracks together. + /// if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together + @$pb.TagNumber(15) + $core.String get stream => $_getSZ(14); + @$pb.TagNumber(15) + set stream($core.String v) { $_setString(14, v); } + @$pb.TagNumber(15) + $core.bool hasStream() => $_has(14); + @$pb.TagNumber(15) + void clearStream() => clearField(15); } class TrickleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrickleRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'candidateInit', - protoName: 'candidateInit') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'target', - $pb.PbFieldType.OE, - defaultOrMaker: SignalTarget.PUBLISHER, - valueOf: SignalTarget.valueOf, - enumValues: SignalTarget.values) - ..hasRequiredFields = false; - - TrickleRequest._() : super(); factory TrickleRequest({ $core.String? candidateInit, SignalTarget? target, }) { - final _result = create(); + final $result = create(); if (candidateInit != null) { - _result.candidateInit = candidateInit; + $result.candidateInit = candidateInit; } if (target != null) { - _result.target = target; + $result.target = target; } - return _result; + return $result; } - factory TrickleRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TrickleRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + TrickleRequest._() : super(); + factory TrickleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TrickleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrickleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'candidateInit', protoName: 'candidateInit') + ..e(2, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, defaultOrMaker: SignalTarget.PUBLISHER, valueOf: SignalTarget.valueOf, enumValues: SignalTarget.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrickleRequest clone() => TrickleRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrickleRequest copyWith(void Function(TrickleRequest) updates) => - super.copyWith((message) => updates(message as TrickleRequest)) - as TrickleRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrickleRequest copyWith(void Function(TrickleRequest) updates) => super.copyWith((message) => updates(message as TrickleRequest)) as TrickleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrickleRequest create() => TrickleRequest._(); TrickleRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrickleRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TrickleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrickleRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get candidateInit => $_getSZ(0); @$pb.TagNumber(1) - set candidateInit($core.String v) { - $_setString(0, v); - } - + set candidateInit($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCandidateInit() => $_has(0); @$pb.TagNumber(1) @@ -1558,10 +1134,7 @@ class TrickleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) SignalTarget get target => $_getN(1); @$pb.TagNumber(2) - set target(SignalTarget v) { - setField(2, v); - } - + set target(SignalTarget v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasTarget() => $_has(1); @$pb.TagNumber(2) @@ -1569,75 +1142,54 @@ class TrickleRequest extends $pb.GeneratedMessage { } class MuteTrackRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MuteTrackRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sid') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'muted') - ..hasRequiredFields = false; - - MuteTrackRequest._() : super(); factory MuteTrackRequest({ $core.String? sid, $core.bool? muted, }) { - final _result = create(); + final $result = create(); if (sid != null) { - _result.sid = sid; + $result.sid = sid; } if (muted != null) { - _result.muted = muted; + $result.muted = muted; } - return _result; + return $result; } - factory MuteTrackRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory MuteTrackRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + MuteTrackRequest._() : super(); + factory MuteTrackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory MuteTrackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MuteTrackRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sid') + ..aOB(2, _omitFieldNames ? '' : 'muted') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') MuteTrackRequest clone() => MuteTrackRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MuteTrackRequest copyWith(void Function(MuteTrackRequest) updates) => - super.copyWith((message) => updates(message as MuteTrackRequest)) - as MuteTrackRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MuteTrackRequest copyWith(void Function(MuteTrackRequest) updates) => super.copyWith((message) => updates(message as MuteTrackRequest)) as MuteTrackRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MuteTrackRequest create() => MuteTrackRequest._(); MuteTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static MuteTrackRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static MuteTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MuteTrackRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { - $_setString(0, v); - } - + set sid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -1646,10 +1198,7 @@ class MuteTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get muted => $_getBF(1); @$pb.TagNumber(2) - set muted($core.bool v) { - $_setBool(1, v); - } - + set muted($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasMuted() => $_has(1); @$pb.TagNumber(2) @@ -1657,88 +1206,6 @@ class MuteTrackRequest extends $pb.GeneratedMessage { } class JoinResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'JoinResponse', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOM<$1.Room>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'room', - subBuilder: $1.Room.create) - ..aOM<$1.ParticipantInfo>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participant', - subBuilder: $1.ParticipantInfo.create) - ..pc<$1.ParticipantInfo>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'otherParticipants', - $pb.PbFieldType.PM, - subBuilder: $1.ParticipantInfo.create) - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serverVersion') - ..pc( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'iceServers', - $pb.PbFieldType.PM, - subBuilder: ICEServer.create) - ..aOB( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscriberPrimary') - ..aOS( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'alternativeUrl') - ..aOM<$1.ClientConfiguration>( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'clientConfiguration', - subBuilder: $1.ClientConfiguration.create) - ..aOS( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serverRegion') - ..a<$core.int>( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pingTimeout', - $pb.PbFieldType.O3) - ..a<$core.int>( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pingInterval', - $pb.PbFieldType.O3) - ..aOM<$1.ServerInfo>( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serverInfo', - subBuilder: $1.ServerInfo.create) - ..hasRequiredFields = false; - - JoinResponse._() : super(); factory JoinResponse({ $1.Room? room, $1.ParticipantInfo? participant, @@ -1752,80 +1219,96 @@ class JoinResponse extends $pb.GeneratedMessage { $core.int? pingTimeout, $core.int? pingInterval, $1.ServerInfo? serverInfo, + $core.List<$core.int>? sifTrailer, }) { - final _result = create(); + final $result = create(); if (room != null) { - _result.room = room; + $result.room = room; } if (participant != null) { - _result.participant = participant; + $result.participant = participant; } if (otherParticipants != null) { - _result.otherParticipants.addAll(otherParticipants); + $result.otherParticipants.addAll(otherParticipants); } if (serverVersion != null) { - _result.serverVersion = serverVersion; + $result.serverVersion = serverVersion; } if (iceServers != null) { - _result.iceServers.addAll(iceServers); + $result.iceServers.addAll(iceServers); } if (subscriberPrimary != null) { - _result.subscriberPrimary = subscriberPrimary; + $result.subscriberPrimary = subscriberPrimary; } if (alternativeUrl != null) { - _result.alternativeUrl = alternativeUrl; + $result.alternativeUrl = alternativeUrl; } if (clientConfiguration != null) { - _result.clientConfiguration = clientConfiguration; + $result.clientConfiguration = clientConfiguration; } if (serverRegion != null) { - _result.serverRegion = serverRegion; + $result.serverRegion = serverRegion; } if (pingTimeout != null) { - _result.pingTimeout = pingTimeout; + $result.pingTimeout = pingTimeout; } if (pingInterval != null) { - _result.pingInterval = pingInterval; + $result.pingInterval = pingInterval; } if (serverInfo != null) { - _result.serverInfo = serverInfo; + $result.serverInfo = serverInfo; + } + if (sifTrailer != null) { + $result.sifTrailer = sifTrailer; } - return _result; + return $result; } - factory JoinResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory JoinResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + JoinResponse._() : super(); + factory JoinResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory JoinResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'JoinResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$1.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $1.Room.create) + ..aOM<$1.ParticipantInfo>(2, _omitFieldNames ? '' : 'participant', subBuilder: $1.ParticipantInfo.create) + ..pc<$1.ParticipantInfo>(3, _omitFieldNames ? '' : 'otherParticipants', $pb.PbFieldType.PM, subBuilder: $1.ParticipantInfo.create) + ..aOS(4, _omitFieldNames ? '' : 'serverVersion') + ..pc(5, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, subBuilder: ICEServer.create) + ..aOB(6, _omitFieldNames ? '' : 'subscriberPrimary') + ..aOS(7, _omitFieldNames ? '' : 'alternativeUrl') + ..aOM<$1.ClientConfiguration>(8, _omitFieldNames ? '' : 'clientConfiguration', subBuilder: $1.ClientConfiguration.create) + ..aOS(9, _omitFieldNames ? '' : 'serverRegion') + ..a<$core.int>(10, _omitFieldNames ? '' : 'pingTimeout', $pb.PbFieldType.O3) + ..a<$core.int>(11, _omitFieldNames ? '' : 'pingInterval', $pb.PbFieldType.O3) + ..aOM<$1.ServerInfo>(12, _omitFieldNames ? '' : 'serverInfo', subBuilder: $1.ServerInfo.create) + ..a<$core.List<$core.int>>(13, _omitFieldNames ? '' : 'sifTrailer', $pb.PbFieldType.OY) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') JoinResponse clone() => JoinResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - JoinResponse copyWith(void Function(JoinResponse) updates) => - super.copyWith((message) => updates(message as JoinResponse)) - as JoinResponse; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + JoinResponse copyWith(void Function(JoinResponse) updates) => super.copyWith((message) => updates(message as JoinResponse)) as JoinResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static JoinResponse create() => JoinResponse._(); JoinResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static JoinResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static JoinResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static JoinResponse? _defaultInstance; @$pb.TagNumber(1) $1.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($1.Room v) { - setField(1, v); - } - + set room($1.Room v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) @@ -1836,10 +1319,7 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ParticipantInfo get participant => $_getN(1); @$pb.TagNumber(2) - set participant($1.ParticipantInfo v) { - setField(2, v); - } - + set participant($1.ParticipantInfo v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasParticipant() => $_has(1); @$pb.TagNumber(2) @@ -1850,13 +1330,11 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.List<$1.ParticipantInfo> get otherParticipants => $_getList(2); + /// deprecated. use server_info.version instead. @$pb.TagNumber(4) $core.String get serverVersion => $_getSZ(3); @$pb.TagNumber(4) - set serverVersion($core.String v) { - $_setString(3, v); - } - + set serverVersion($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasServerVersion() => $_has(3); @$pb.TagNumber(4) @@ -1865,25 +1343,22 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.List get iceServers => $_getList(4); + /// use subscriber as the primary PeerConnection @$pb.TagNumber(6) $core.bool get subscriberPrimary => $_getBF(5); @$pb.TagNumber(6) - set subscriberPrimary($core.bool v) { - $_setBool(5, v); - } - + set subscriberPrimary($core.bool v) { $_setBool(5, v); } @$pb.TagNumber(6) $core.bool hasSubscriberPrimary() => $_has(5); @$pb.TagNumber(6) void clearSubscriberPrimary() => clearField(6); + /// when the current server isn't available, return alternate url to retry connection + /// when this is set, the other fields will be largely empty @$pb.TagNumber(7) $core.String get alternativeUrl => $_getSZ(6); @$pb.TagNumber(7) - set alternativeUrl($core.String v) { - $_setString(6, v); - } - + set alternativeUrl($core.String v) { $_setString(6, v); } @$pb.TagNumber(7) $core.bool hasAlternativeUrl() => $_has(6); @$pb.TagNumber(7) @@ -1892,10 +1367,7 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(8) $1.ClientConfiguration get clientConfiguration => $_getN(7); @$pb.TagNumber(8) - set clientConfiguration($1.ClientConfiguration v) { - setField(8, v); - } - + set clientConfiguration($1.ClientConfiguration v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasClientConfiguration() => $_has(7); @$pb.TagNumber(8) @@ -1903,13 +1375,11 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(8) $1.ClientConfiguration ensureClientConfiguration() => $_ensure(7); + /// deprecated. use server_info.region instead. @$pb.TagNumber(9) $core.String get serverRegion => $_getSZ(8); @$pb.TagNumber(9) - set serverRegion($core.String v) { - $_setString(8, v); - } - + set serverRegion($core.String v) { $_setString(8, v); } @$pb.TagNumber(9) $core.bool hasServerRegion() => $_has(8); @$pb.TagNumber(9) @@ -1918,10 +1388,7 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.int get pingTimeout => $_getIZ(9); @$pb.TagNumber(10) - set pingTimeout($core.int v) { - $_setSignedInt32(9, v); - } - + set pingTimeout($core.int v) { $_setSignedInt32(9, v); } @$pb.TagNumber(10) $core.bool hasPingTimeout() => $_has(9); @$pb.TagNumber(10) @@ -1930,10 +1397,7 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get pingInterval => $_getIZ(10); @$pb.TagNumber(11) - set pingInterval($core.int v) { - $_setSignedInt32(10, v); - } - + set pingInterval($core.int v) { $_setSignedInt32(10, v); } @$pb.TagNumber(11) $core.bool hasPingInterval() => $_has(10); @$pb.TagNumber(11) @@ -1942,82 +1406,68 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(12) $1.ServerInfo get serverInfo => $_getN(11); @$pb.TagNumber(12) - set serverInfo($1.ServerInfo v) { - setField(12, v); - } - + set serverInfo($1.ServerInfo v) { setField(12, v); } @$pb.TagNumber(12) $core.bool hasServerInfo() => $_has(11); @$pb.TagNumber(12) void clearServerInfo() => clearField(12); @$pb.TagNumber(12) $1.ServerInfo ensureServerInfo() => $_ensure(11); + + /// Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled + @$pb.TagNumber(13) + $core.List<$core.int> get sifTrailer => $_getN(12); + @$pb.TagNumber(13) + set sifTrailer($core.List<$core.int> v) { $_setBytes(12, v); } + @$pb.TagNumber(13) + $core.bool hasSifTrailer() => $_has(12); + @$pb.TagNumber(13) + void clearSifTrailer() => clearField(13); } class ReconnectResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReconnectResponse', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'iceServers', - $pb.PbFieldType.PM, - subBuilder: ICEServer.create) - ..aOM<$1.ClientConfiguration>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'clientConfiguration', - subBuilder: $1.ClientConfiguration.create) - ..hasRequiredFields = false; - - ReconnectResponse._() : super(); factory ReconnectResponse({ $core.Iterable? iceServers, $1.ClientConfiguration? clientConfiguration, }) { - final _result = create(); + final $result = create(); if (iceServers != null) { - _result.iceServers.addAll(iceServers); + $result.iceServers.addAll(iceServers); } if (clientConfiguration != null) { - _result.clientConfiguration = clientConfiguration; + $result.clientConfiguration = clientConfiguration; } - return _result; + return $result; } - factory ReconnectResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ReconnectResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ReconnectResponse._() : super(); + factory ReconnectResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ReconnectResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReconnectResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, subBuilder: ICEServer.create) + ..aOM<$1.ClientConfiguration>(2, _omitFieldNames ? '' : 'clientConfiguration', subBuilder: $1.ClientConfiguration.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ReconnectResponse clone() => ReconnectResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ReconnectResponse copyWith(void Function(ReconnectResponse) updates) => - super.copyWith((message) => updates(message as ReconnectResponse)) - as ReconnectResponse; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReconnectResponse copyWith(void Function(ReconnectResponse) updates) => super.copyWith((message) => updates(message as ReconnectResponse)) as ReconnectResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReconnectResponse create() => ReconnectResponse._(); ReconnectResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ReconnectResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ReconnectResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ReconnectResponse? _defaultInstance; @$pb.TagNumber(1) @@ -2026,10 +1476,7 @@ class ReconnectResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ClientConfiguration get clientConfiguration => $_getN(1); @$pb.TagNumber(2) - set clientConfiguration($1.ClientConfiguration v) { - setField(2, v); - } - + set clientConfiguration($1.ClientConfiguration v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasClientConfiguration() => $_has(1); @$pb.TagNumber(2) @@ -2039,78 +1486,54 @@ class ReconnectResponse extends $pb.GeneratedMessage { } class TrackPublishedResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrackPublishedResponse', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cid') - ..aOM<$1.TrackInfo>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'track', - subBuilder: $1.TrackInfo.create) - ..hasRequiredFields = false; - - TrackPublishedResponse._() : super(); factory TrackPublishedResponse({ $core.String? cid, $1.TrackInfo? track, }) { - final _result = create(); + final $result = create(); if (cid != null) { - _result.cid = cid; + $result.cid = cid; } if (track != null) { - _result.track = track; + $result.track = track; } - return _result; + return $result; } - factory TrackPublishedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TrackPublishedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrackPublishedResponse clone() => - TrackPublishedResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackPublishedResponse copyWith( - void Function(TrackPublishedResponse) updates) => - super.copyWith((message) => updates(message as TrackPublishedResponse)) - as TrackPublishedResponse; // ignore: deprecated_member_use + TrackPublishedResponse._() : super(); + factory TrackPublishedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TrackPublishedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackPublishedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'cid') + ..aOM<$1.TrackInfo>(2, _omitFieldNames ? '' : 'track', subBuilder: $1.TrackInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TrackPublishedResponse clone() => TrackPublishedResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackPublishedResponse copyWith(void Function(TrackPublishedResponse) updates) => super.copyWith((message) => updates(message as TrackPublishedResponse)) as TrackPublishedResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrackPublishedResponse create() => TrackPublishedResponse._(); TrackPublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackPublishedResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TrackPublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackPublishedResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get cid => $_getSZ(0); @$pb.TagNumber(1) - set cid($core.String v) { - $_setString(0, v); - } - + set cid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCid() => $_has(0); @$pb.TagNumber(1) @@ -2119,10 +1542,7 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.TrackInfo get track => $_getN(1); @$pb.TagNumber(2) - set track($1.TrackInfo v) { - setField(2, v); - } - + set track($1.TrackInfo v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasTrack() => $_has(1); @$pb.TagNumber(2) @@ -2132,68 +1552,49 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { } class TrackUnpublishedResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrackUnpublishedResponse', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSid') - ..hasRequiredFields = false; - - TrackUnpublishedResponse._() : super(); factory TrackUnpublishedResponse({ $core.String? trackSid, }) { - final _result = create(); + final $result = create(); if (trackSid != null) { - _result.trackSid = trackSid; + $result.trackSid = trackSid; } - return _result; + return $result; } - factory TrackUnpublishedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TrackUnpublishedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrackUnpublishedResponse clone() => - TrackUnpublishedResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackUnpublishedResponse copyWith( - void Function(TrackUnpublishedResponse) updates) => - super.copyWith((message) => updates(message as TrackUnpublishedResponse)) - as TrackUnpublishedResponse; // ignore: deprecated_member_use + TrackUnpublishedResponse._() : super(); + factory TrackUnpublishedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TrackUnpublishedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackUnpublishedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'trackSid') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TrackUnpublishedResponse clone() => TrackUnpublishedResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackUnpublishedResponse copyWith(void Function(TrackUnpublishedResponse) updates) => super.copyWith((message) => updates(message as TrackUnpublishedResponse)) as TrackUnpublishedResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrackUnpublishedResponse create() => TrackUnpublishedResponse._(); TrackUnpublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackUnpublishedResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TrackUnpublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackUnpublishedResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { - $_setString(0, v); - } - + set trackSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -2201,75 +1602,54 @@ class TrackUnpublishedResponse extends $pb.GeneratedMessage { } class SessionDescription extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SessionDescription', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sdp') - ..hasRequiredFields = false; - - SessionDescription._() : super(); factory SessionDescription({ $core.String? type, $core.String? sdp, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (sdp != null) { - _result.sdp = sdp; + $result.sdp = sdp; } - return _result; + return $result; } - factory SessionDescription.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SessionDescription.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SessionDescription._() : super(); + factory SessionDescription.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SessionDescription.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SessionDescription', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..aOS(2, _omitFieldNames ? '' : 'sdp') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SessionDescription clone() => SessionDescription()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SessionDescription copyWith(void Function(SessionDescription) updates) => - super.copyWith((message) => updates(message as SessionDescription)) - as SessionDescription; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SessionDescription copyWith(void Function(SessionDescription) updates) => super.copyWith((message) => updates(message as SessionDescription)) as SessionDescription; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SessionDescription create() => SessionDescription._(); SessionDescription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SessionDescription getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SessionDescription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SessionDescription? _defaultInstance; @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) - set type($core.String v) { - $_setString(0, v); - } - + set type($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -2278,10 +1658,7 @@ class SessionDescription extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get sdp => $_getSZ(1); @$pb.TagNumber(2) - set sdp($core.String v) { - $_setString(1, v); - } - + set sdp($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasSdp() => $_has(1); @$pb.TagNumber(2) @@ -2289,59 +1666,43 @@ class SessionDescription extends $pb.GeneratedMessage { } class ParticipantUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParticipantUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc<$1.ParticipantInfo>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participants', - $pb.PbFieldType.PM, - subBuilder: $1.ParticipantInfo.create) - ..hasRequiredFields = false; - - ParticipantUpdate._() : super(); factory ParticipantUpdate({ $core.Iterable<$1.ParticipantInfo>? participants, }) { - final _result = create(); + final $result = create(); if (participants != null) { - _result.participants.addAll(participants); + $result.participants.addAll(participants); } - return _result; + return $result; } - factory ParticipantUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ParticipantUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ParticipantUpdate._() : super(); + factory ParticipantUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ParticipantUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc<$1.ParticipantInfo>(1, _omitFieldNames ? '' : 'participants', $pb.PbFieldType.PM, subBuilder: $1.ParticipantInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantUpdate clone() => ParticipantUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantUpdate copyWith(void Function(ParticipantUpdate) updates) => - super.copyWith((message) => updates(message as ParticipantUpdate)) - as ParticipantUpdate; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantUpdate copyWith(void Function(ParticipantUpdate) updates) => super.copyWith((message) => updates(message as ParticipantUpdate)) as ParticipantUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParticipantUpdate create() => ParticipantUpdate._(); ParticipantUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ParticipantUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -2349,77 +1710,53 @@ class ParticipantUpdate extends $pb.GeneratedMessage { } class UpdateSubscription extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateSubscription', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSids') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscribe') - ..pc<$1.ParticipantTracks>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantTracks', - $pb.PbFieldType.PM, - subBuilder: $1.ParticipantTracks.create) - ..hasRequiredFields = false; - - UpdateSubscription._() : super(); factory UpdateSubscription({ $core.Iterable<$core.String>? trackSids, $core.bool? subscribe, $core.Iterable<$1.ParticipantTracks>? participantTracks, }) { - final _result = create(); + final $result = create(); if (trackSids != null) { - _result.trackSids.addAll(trackSids); + $result.trackSids.addAll(trackSids); } if (subscribe != null) { - _result.subscribe = subscribe; + $result.subscribe = subscribe; } if (participantTracks != null) { - _result.participantTracks.addAll(participantTracks); + $result.participantTracks.addAll(participantTracks); } - return _result; + return $result; } - factory UpdateSubscription.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UpdateSubscription.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + UpdateSubscription._() : super(); + factory UpdateSubscription.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateSubscription.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSubscription', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'trackSids') + ..aOB(2, _omitFieldNames ? '' : 'subscribe') + ..pc<$1.ParticipantTracks>(3, _omitFieldNames ? '' : 'participantTracks', $pb.PbFieldType.PM, subBuilder: $1.ParticipantTracks.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateSubscription clone() => UpdateSubscription()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateSubscription copyWith(void Function(UpdateSubscription) updates) => - super.copyWith((message) => updates(message as UpdateSubscription)) - as UpdateSubscription; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateSubscription copyWith(void Function(UpdateSubscription) updates) => super.copyWith((message) => updates(message as UpdateSubscription)) as UpdateSubscription; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateSubscription create() => UpdateSubscription._(); UpdateSubscription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateSubscription getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UpdateSubscription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateSubscription? _defaultInstance; @$pb.TagNumber(1) @@ -2428,10 +1765,7 @@ class UpdateSubscription extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get subscribe => $_getBF(1); @$pb.TagNumber(2) - set subscribe($core.bool v) { - $_setBool(1, v); - } - + set subscribe($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasSubscribe() => $_has(1); @$pb.TagNumber(2) @@ -2442,61 +1776,6 @@ class UpdateSubscription extends $pb.GeneratedMessage { } class UpdateTrackSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateTrackSettings', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSids') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disabled') - ..e<$1.VideoQuality>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'quality', - $pb.PbFieldType.OE, - defaultOrMaker: $1.VideoQuality.LOW, - valueOf: $1.VideoQuality.valueOf, - enumValues: $1.VideoQuality.values) - ..a<$core.int>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'height', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fps', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'priority', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; - - UpdateTrackSettings._() : super(); factory UpdateTrackSettings({ $core.Iterable<$core.String>? trackSids, $core.bool? disabled, @@ -2506,103 +1785,104 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { $core.int? fps, $core.int? priority, }) { - final _result = create(); + final $result = create(); if (trackSids != null) { - _result.trackSids.addAll(trackSids); + $result.trackSids.addAll(trackSids); } if (disabled != null) { - _result.disabled = disabled; + $result.disabled = disabled; } if (quality != null) { - _result.quality = quality; + $result.quality = quality; } if (width != null) { - _result.width = width; + $result.width = width; } if (height != null) { - _result.height = height; + $result.height = height; } if (fps != null) { - _result.fps = fps; + $result.fps = fps; } if (priority != null) { - _result.priority = priority; + $result.priority = priority; } - return _result; + return $result; } - factory UpdateTrackSettings.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UpdateTrackSettings.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + UpdateTrackSettings._() : super(); + factory UpdateTrackSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateTrackSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateTrackSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'trackSids') + ..aOB(3, _omitFieldNames ? '' : 'disabled') + ..e<$1.VideoQuality>(4, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.VideoQuality.LOW, valueOf: $1.VideoQuality.valueOf, enumValues: $1.VideoQuality.values) + ..a<$core.int>(5, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) + ..a<$core.int>(6, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..a<$core.int>(7, _omitFieldNames ? '' : 'fps', $pb.PbFieldType.OU3) + ..a<$core.int>(8, _omitFieldNames ? '' : 'priority', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateTrackSettings clone() => UpdateTrackSettings()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateTrackSettings copyWith(void Function(UpdateTrackSettings) updates) => - super.copyWith((message) => updates(message as UpdateTrackSettings)) - as UpdateTrackSettings; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateTrackSettings copyWith(void Function(UpdateTrackSettings) updates) => super.copyWith((message) => updates(message as UpdateTrackSettings)) as UpdateTrackSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateTrackSettings create() => UpdateTrackSettings._(); UpdateTrackSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateTrackSettings getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UpdateTrackSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateTrackSettings? _defaultInstance; @$pb.TagNumber(1) $core.List<$core.String> get trackSids => $_getList(0); + /// when true, the track is placed in a paused state, with no new data returned @$pb.TagNumber(3) $core.bool get disabled => $_getBF(1); @$pb.TagNumber(3) - set disabled($core.bool v) { - $_setBool(1, v); - } - + set disabled($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(3) $core.bool hasDisabled() => $_has(1); @$pb.TagNumber(3) void clearDisabled() => clearField(3); + /// deprecated in favor of width & height @$pb.TagNumber(4) $1.VideoQuality get quality => $_getN(2); @$pb.TagNumber(4) - set quality($1.VideoQuality v) { - setField(4, v); - } - + set quality($1.VideoQuality v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasQuality() => $_has(2); @$pb.TagNumber(4) void clearQuality() => clearField(4); + /// for video, width to receive @$pb.TagNumber(5) $core.int get width => $_getIZ(3); @$pb.TagNumber(5) - set width($core.int v) { - $_setUnsignedInt32(3, v); - } - + set width($core.int v) { $_setUnsignedInt32(3, v); } @$pb.TagNumber(5) $core.bool hasWidth() => $_has(3); @$pb.TagNumber(5) void clearWidth() => clearField(5); + /// for video, height to receive @$pb.TagNumber(6) $core.int get height => $_getIZ(4); @$pb.TagNumber(6) - set height($core.int v) { - $_setUnsignedInt32(4, v); - } - + set height($core.int v) { $_setUnsignedInt32(4, v); } @$pb.TagNumber(6) $core.bool hasHeight() => $_has(4); @$pb.TagNumber(6) @@ -2611,22 +1891,23 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.int get fps => $_getIZ(5); @$pb.TagNumber(7) - set fps($core.int v) { - $_setUnsignedInt32(5, v); - } - + set fps($core.int v) { $_setUnsignedInt32(5, v); } @$pb.TagNumber(7) $core.bool hasFps() => $_has(5); @$pb.TagNumber(7) void clearFps() => clearField(7); + /// subscription priority. 1 being the highest (0 is unset) + /// when unset, server sill assign priority based on the order of subscription + /// server will use priority in the following ways: + /// 1. when subscribed tracks exceed per-participant subscription limit, server will + /// pause the lowest priority tracks + /// 2. when the network is congested, server will assign available bandwidth to + /// higher priority tracks first. lowest priority tracks can be paused @$pb.TagNumber(8) $core.int get priority => $_getIZ(6); @$pb.TagNumber(8) - set priority($core.int v) { - $_setUnsignedInt32(6, v); - } - + set priority($core.int v) { $_setUnsignedInt32(6, v); } @$pb.TagNumber(8) $core.bool hasPriority() => $_has(6); @$pb.TagNumber(8) @@ -2634,79 +1915,56 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { } class LeaveRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LeaveRequest', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canReconnect') - ..e<$1.DisconnectReason>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'reason', - $pb.PbFieldType.OE, - defaultOrMaker: $1.DisconnectReason.UNKNOWN_REASON, - valueOf: $1.DisconnectReason.valueOf, - enumValues: $1.DisconnectReason.values) - ..hasRequiredFields = false; - - LeaveRequest._() : super(); factory LeaveRequest({ $core.bool? canReconnect, $1.DisconnectReason? reason, }) { - final _result = create(); + final $result = create(); if (canReconnect != null) { - _result.canReconnect = canReconnect; + $result.canReconnect = canReconnect; } if (reason != null) { - _result.reason = reason; + $result.reason = reason; } - return _result; + return $result; } - factory LeaveRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory LeaveRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + LeaveRequest._() : super(); + factory LeaveRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory LeaveRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LeaveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'canReconnect') + ..e<$1.DisconnectReason>(2, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, defaultOrMaker: $1.DisconnectReason.UNKNOWN_REASON, valueOf: $1.DisconnectReason.valueOf, enumValues: $1.DisconnectReason.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') LeaveRequest clone() => LeaveRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LeaveRequest copyWith(void Function(LeaveRequest) updates) => - super.copyWith((message) => updates(message as LeaveRequest)) - as LeaveRequest; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LeaveRequest copyWith(void Function(LeaveRequest) updates) => super.copyWith((message) => updates(message as LeaveRequest)) as LeaveRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LeaveRequest create() => LeaveRequest._(); LeaveRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static LeaveRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static LeaveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LeaveRequest? _defaultInstance; + /// sent when server initiates the disconnect due to server-restart + /// indicates clients should attempt full-reconnect sequence @$pb.TagNumber(1) $core.bool get canReconnect => $_getBF(0); @$pb.TagNumber(1) - set canReconnect($core.bool v) { - $_setBool(0, v); - } - + set canReconnect($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasCanReconnect() => $_has(0); @$pb.TagNumber(1) @@ -2715,88 +1973,63 @@ class LeaveRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.DisconnectReason get reason => $_getN(1); @$pb.TagNumber(2) - set reason($1.DisconnectReason v) { - setField(2, v); - } - + set reason($1.DisconnectReason v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasReason() => $_has(1); @$pb.TagNumber(2) void clearReason() => clearField(2); } +/// message to indicate published video track dimensions are changing class UpdateVideoLayers extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateVideoLayers', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSid') - ..pc<$1.VideoLayer>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'layers', - $pb.PbFieldType.PM, - subBuilder: $1.VideoLayer.create) - ..hasRequiredFields = false; - - UpdateVideoLayers._() : super(); factory UpdateVideoLayers({ $core.String? trackSid, $core.Iterable<$1.VideoLayer>? layers, }) { - final _result = create(); + final $result = create(); if (trackSid != null) { - _result.trackSid = trackSid; + $result.trackSid = trackSid; } if (layers != null) { - _result.layers.addAll(layers); + $result.layers.addAll(layers); } - return _result; + return $result; } - factory UpdateVideoLayers.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UpdateVideoLayers.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + UpdateVideoLayers._() : super(); + factory UpdateVideoLayers.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateVideoLayers.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateVideoLayers', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'trackSid') + ..pc<$1.VideoLayer>(2, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $1.VideoLayer.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateVideoLayers clone() => UpdateVideoLayers()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateVideoLayers copyWith(void Function(UpdateVideoLayers) updates) => - super.copyWith((message) => updates(message as UpdateVideoLayers)) - as UpdateVideoLayers; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateVideoLayers copyWith(void Function(UpdateVideoLayers) updates) => super.copyWith((message) => updates(message as UpdateVideoLayers)) as UpdateVideoLayers; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateVideoLayers create() => UpdateVideoLayers._(); UpdateVideoLayers createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateVideoLayers getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UpdateVideoLayers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateVideoLayers? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { - $_setString(0, v); - } - + set trackSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -2807,77 +2040,54 @@ class UpdateVideoLayers extends $pb.GeneratedMessage { } class UpdateParticipantMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateParticipantMetadata', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metadata') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - UpdateParticipantMetadata._() : super(); factory UpdateParticipantMetadata({ $core.String? metadata, $core.String? name, }) { - final _result = create(); + final $result = create(); if (metadata != null) { - _result.metadata = metadata; + $result.metadata = metadata; } if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } - factory UpdateParticipantMetadata.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UpdateParticipantMetadata.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - UpdateParticipantMetadata clone() => - UpdateParticipantMetadata()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateParticipantMetadata copyWith( - void Function(UpdateParticipantMetadata) updates) => - super.copyWith((message) => updates(message as UpdateParticipantMetadata)) - as UpdateParticipantMetadata; // ignore: deprecated_member_use + UpdateParticipantMetadata._() : super(); + factory UpdateParticipantMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory UpdateParticipantMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateParticipantMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'metadata') + ..aOS(2, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateParticipantMetadata clone() => UpdateParticipantMetadata()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateParticipantMetadata copyWith(void Function(UpdateParticipantMetadata) updates) => super.copyWith((message) => updates(message as UpdateParticipantMetadata)) as UpdateParticipantMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateParticipantMetadata create() => UpdateParticipantMetadata._(); UpdateParticipantMetadata createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateParticipantMetadata getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static UpdateParticipantMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateParticipantMetadata? _defaultInstance; @$pb.TagNumber(1) $core.String get metadata => $_getSZ(0); @$pb.TagNumber(1) - set metadata($core.String v) { - $_setString(0, v); - } - + set metadata($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMetadata() => $_has(0); @$pb.TagNumber(1) @@ -2886,10 +2096,7 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { - $_setString(1, v); - } - + set name($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -2897,74 +2104,53 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { } class ICEServer extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ICEServer', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'urls') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'username') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'credential') - ..hasRequiredFields = false; - - ICEServer._() : super(); factory ICEServer({ $core.Iterable<$core.String>? urls, $core.String? username, $core.String? credential, }) { - final _result = create(); + final $result = create(); if (urls != null) { - _result.urls.addAll(urls); + $result.urls.addAll(urls); } if (username != null) { - _result.username = username; + $result.username = username; } if (credential != null) { - _result.credential = credential; + $result.credential = credential; } - return _result; + return $result; } - factory ICEServer.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ICEServer.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ICEServer._() : super(); + factory ICEServer.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ICEServer.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ICEServer', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'urls') + ..aOS(2, _omitFieldNames ? '' : 'username') + ..aOS(3, _omitFieldNames ? '' : 'credential') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ICEServer clone() => ICEServer()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ICEServer copyWith(void Function(ICEServer) updates) => - super.copyWith((message) => updates(message as ICEServer)) - as ICEServer; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ICEServer copyWith(void Function(ICEServer) updates) => super.copyWith((message) => updates(message as ICEServer)) as ICEServer; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ICEServer create() => ICEServer._(); ICEServer createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ICEServer getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ICEServer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ICEServer? _defaultInstance; @$pb.TagNumber(1) @@ -2973,10 +2159,7 @@ class ICEServer extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get username => $_getSZ(1); @$pb.TagNumber(2) - set username($core.String v) { - $_setString(1, v); - } - + set username($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasUsername() => $_has(1); @$pb.TagNumber(2) @@ -2985,10 +2168,7 @@ class ICEServer extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get credential => $_getSZ(2); @$pb.TagNumber(3) - set credential($core.String v) { - $_setString(2, v); - } - + set credential($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasCredential() => $_has(2); @$pb.TagNumber(3) @@ -2996,59 +2176,43 @@ class ICEServer extends $pb.GeneratedMessage { } class SpeakersChanged extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SpeakersChanged', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc<$1.SpeakerInfo>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'speakers', - $pb.PbFieldType.PM, - subBuilder: $1.SpeakerInfo.create) - ..hasRequiredFields = false; - - SpeakersChanged._() : super(); factory SpeakersChanged({ $core.Iterable<$1.SpeakerInfo>? speakers, }) { - final _result = create(); + final $result = create(); if (speakers != null) { - _result.speakers.addAll(speakers); + $result.speakers.addAll(speakers); } - return _result; + return $result; } - factory SpeakersChanged.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SpeakersChanged.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SpeakersChanged._() : super(); + factory SpeakersChanged.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SpeakersChanged.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpeakersChanged', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc<$1.SpeakerInfo>(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, subBuilder: $1.SpeakerInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SpeakersChanged clone() => SpeakersChanged()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpeakersChanged copyWith(void Function(SpeakersChanged) updates) => - super.copyWith((message) => updates(message as SpeakersChanged)) - as SpeakersChanged; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SpeakersChanged copyWith(void Function(SpeakersChanged) updates) => super.copyWith((message) => updates(message as SpeakersChanged)) as SpeakersChanged; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SpeakersChanged create() => SpeakersChanged._(); SpeakersChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SpeakersChanged getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SpeakersChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SpeakersChanged? _defaultInstance; @$pb.TagNumber(1) @@ -3056,66 +2220,49 @@ class SpeakersChanged extends $pb.GeneratedMessage { } class RoomUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RoomUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOM<$1.Room>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'room', - subBuilder: $1.Room.create) - ..hasRequiredFields = false; - - RoomUpdate._() : super(); factory RoomUpdate({ $1.Room? room, }) { - final _result = create(); + final $result = create(); if (room != null) { - _result.room = room; + $result.room = room; } - return _result; + return $result; } - factory RoomUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory RoomUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + RoomUpdate._() : super(); + factory RoomUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RoomUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoomUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$1.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $1.Room.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RoomUpdate clone() => RoomUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RoomUpdate copyWith(void Function(RoomUpdate) updates) => - super.copyWith((message) => updates(message as RoomUpdate)) - as RoomUpdate; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RoomUpdate copyWith(void Function(RoomUpdate) updates) => super.copyWith((message) => updates(message as RoomUpdate)) as RoomUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RoomUpdate create() => RoomUpdate._(); RoomUpdate createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RoomUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static RoomUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RoomUpdate? _defaultInstance; @$pb.TagNumber(1) $1.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($1.Room v) { - setField(1, v); - } - + set room($1.Room v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) @@ -3125,91 +2272,59 @@ class RoomUpdate extends $pb.GeneratedMessage { } class ConnectionQualityInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConnectionQualityInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..e<$1.ConnectionQuality>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'quality', - $pb.PbFieldType.OE, - defaultOrMaker: $1.ConnectionQuality.POOR, - valueOf: $1.ConnectionQuality.valueOf, - enumValues: $1.ConnectionQuality.values) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'score', - $pb.PbFieldType.OF) - ..hasRequiredFields = false; - - ConnectionQualityInfo._() : super(); factory ConnectionQualityInfo({ $core.String? participantSid, $1.ConnectionQuality? quality, $core.double? score, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (quality != null) { - _result.quality = quality; + $result.quality = quality; } if (score != null) { - _result.score = score; + $result.score = score; } - return _result; + return $result; } - factory ConnectionQualityInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ConnectionQualityInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ConnectionQualityInfo clone() => - ConnectionQualityInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectionQualityInfo copyWith( - void Function(ConnectionQualityInfo) updates) => - super.copyWith((message) => updates(message as ConnectionQualityInfo)) - as ConnectionQualityInfo; // ignore: deprecated_member_use + ConnectionQualityInfo._() : super(); + factory ConnectionQualityInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectionQualityInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectionQualityInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..e<$1.ConnectionQuality>(2, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.ConnectionQuality.POOR, valueOf: $1.ConnectionQuality.valueOf, enumValues: $1.ConnectionQuality.values) + ..a<$core.double>(3, _omitFieldNames ? '' : 'score', $pb.PbFieldType.OF) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectionQualityInfo clone() => ConnectionQualityInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectionQualityInfo copyWith(void Function(ConnectionQualityInfo) updates) => super.copyWith((message) => updates(message as ConnectionQualityInfo)) as ConnectionQualityInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConnectionQualityInfo create() => ConnectionQualityInfo._(); ConnectionQualityInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectionQualityInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ConnectionQualityInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ConnectionQualityInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -3218,10 +2333,7 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ConnectionQuality get quality => $_getN(1); @$pb.TagNumber(2) - set quality($1.ConnectionQuality v) { - setField(2, v); - } - + set quality($1.ConnectionQuality v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasQuality() => $_has(1); @$pb.TagNumber(2) @@ -3230,10 +2342,7 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get score => $_getN(2); @$pb.TagNumber(3) - set score($core.double v) { - $_setFloat(2, v); - } - + set score($core.double v) { $_setFloat(2, v); } @$pb.TagNumber(3) $core.bool hasScore() => $_has(2); @$pb.TagNumber(3) @@ -3241,61 +2350,43 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { } class ConnectionQualityUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConnectionQualityUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'updates', - $pb.PbFieldType.PM, - subBuilder: ConnectionQualityInfo.create) - ..hasRequiredFields = false; - - ConnectionQualityUpdate._() : super(); factory ConnectionQualityUpdate({ $core.Iterable? updates, }) { - final _result = create(); + final $result = create(); if (updates != null) { - _result.updates.addAll(updates); + $result.updates.addAll(updates); } - return _result; + return $result; } - factory ConnectionQualityUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ConnectionQualityUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ConnectionQualityUpdate clone() => - ConnectionQualityUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectionQualityUpdate copyWith( - void Function(ConnectionQualityUpdate) updates) => - super.copyWith((message) => updates(message as ConnectionQualityUpdate)) - as ConnectionQualityUpdate; // ignore: deprecated_member_use + ConnectionQualityUpdate._() : super(); + factory ConnectionQualityUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConnectionQualityUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectionQualityUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'updates', $pb.PbFieldType.PM, subBuilder: ConnectionQualityInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectionQualityUpdate clone() => ConnectionQualityUpdate()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectionQualityUpdate copyWith(void Function(ConnectionQualityUpdate) updates) => super.copyWith((message) => updates(message as ConnectionQualityUpdate)) as ConnectionQualityUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConnectionQualityUpdate create() => ConnectionQualityUpdate._(); ConnectionQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectionQualityUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static ConnectionQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ConnectionQualityUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -3303,88 +2394,59 @@ class ConnectionQualityUpdate extends $pb.GeneratedMessage { } class StreamStateInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StreamStateInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSid') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: StreamState.ACTIVE, - valueOf: StreamState.valueOf, - enumValues: StreamState.values) - ..hasRequiredFields = false; - - StreamStateInfo._() : super(); factory StreamStateInfo({ $core.String? participantSid, $core.String? trackSid, StreamState? state, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (trackSid != null) { - _result.trackSid = trackSid; + $result.trackSid = trackSid; } if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } - factory StreamStateInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory StreamStateInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + StreamStateInfo._() : super(); + factory StreamStateInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory StreamStateInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StreamStateInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..aOS(2, _omitFieldNames ? '' : 'trackSid') + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: StreamState.ACTIVE, valueOf: StreamState.valueOf, enumValues: StreamState.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') StreamStateInfo clone() => StreamStateInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StreamStateInfo copyWith(void Function(StreamStateInfo) updates) => - super.copyWith((message) => updates(message as StreamStateInfo)) - as StreamStateInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StreamStateInfo copyWith(void Function(StreamStateInfo) updates) => super.copyWith((message) => updates(message as StreamStateInfo)) as StreamStateInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StreamStateInfo create() => StreamStateInfo._(); StreamStateInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static StreamStateInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static StreamStateInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static StreamStateInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -3393,10 +2455,7 @@ class StreamStateInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get trackSid => $_getSZ(1); @$pb.TagNumber(2) - set trackSid($core.String v) { - $_setString(1, v); - } - + set trackSid($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasTrackSid() => $_has(1); @$pb.TagNumber(2) @@ -3405,10 +2464,7 @@ class StreamStateInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) StreamState get state => $_getN(2); @$pb.TagNumber(3) - set state(StreamState v) { - setField(3, v); - } - + set state(StreamState v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasState() => $_has(2); @$pb.TagNumber(3) @@ -3416,59 +2472,43 @@ class StreamStateInfo extends $pb.GeneratedMessage { } class StreamStateUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StreamStateUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'streamStates', - $pb.PbFieldType.PM, - subBuilder: StreamStateInfo.create) - ..hasRequiredFields = false; - - StreamStateUpdate._() : super(); factory StreamStateUpdate({ $core.Iterable? streamStates, }) { - final _result = create(); + final $result = create(); if (streamStates != null) { - _result.streamStates.addAll(streamStates); + $result.streamStates.addAll(streamStates); } - return _result; + return $result; } - factory StreamStateUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory StreamStateUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + StreamStateUpdate._() : super(); + factory StreamStateUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory StreamStateUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StreamStateUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'streamStates', $pb.PbFieldType.PM, subBuilder: StreamStateInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') StreamStateUpdate clone() => StreamStateUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StreamStateUpdate copyWith(void Function(StreamStateUpdate) updates) => - super.copyWith((message) => updates(message as StreamStateUpdate)) - as StreamStateUpdate; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StreamStateUpdate copyWith(void Function(StreamStateUpdate) updates) => super.copyWith((message) => updates(message as StreamStateUpdate)) as StreamStateUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StreamStateUpdate create() => StreamStateUpdate._(); StreamStateUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static StreamStateUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static StreamStateUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static StreamStateUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -3476,79 +2516,54 @@ class StreamStateUpdate extends $pb.GeneratedMessage { } class SubscribedQuality extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscribedQuality', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..e<$1.VideoQuality>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'quality', - $pb.PbFieldType.OE, - defaultOrMaker: $1.VideoQuality.LOW, - valueOf: $1.VideoQuality.valueOf, - enumValues: $1.VideoQuality.values) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enabled') - ..hasRequiredFields = false; - - SubscribedQuality._() : super(); factory SubscribedQuality({ $1.VideoQuality? quality, $core.bool? enabled, }) { - final _result = create(); + final $result = create(); if (quality != null) { - _result.quality = quality; + $result.quality = quality; } if (enabled != null) { - _result.enabled = enabled; + $result.enabled = enabled; } - return _result; + return $result; } - factory SubscribedQuality.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscribedQuality.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SubscribedQuality._() : super(); + factory SubscribedQuality.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscribedQuality.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedQuality', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..e<$1.VideoQuality>(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.VideoQuality.LOW, valueOf: $1.VideoQuality.valueOf, enumValues: $1.VideoQuality.values) + ..aOB(2, _omitFieldNames ? '' : 'enabled') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribedQuality clone() => SubscribedQuality()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedQuality copyWith(void Function(SubscribedQuality) updates) => - super.copyWith((message) => updates(message as SubscribedQuality)) - as SubscribedQuality; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedQuality copyWith(void Function(SubscribedQuality) updates) => super.copyWith((message) => updates(message as SubscribedQuality)) as SubscribedQuality; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscribedQuality create() => SubscribedQuality._(); SubscribedQuality createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedQuality getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedQuality getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribedQuality? _defaultInstance; @$pb.TagNumber(1) $1.VideoQuality get quality => $_getN(0); @$pb.TagNumber(1) - set quality($1.VideoQuality v) { - setField(1, v); - } - + set quality($1.VideoQuality v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasQuality() => $_has(0); @$pb.TagNumber(1) @@ -3557,10 +2572,7 @@ class SubscribedQuality extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get enabled => $_getBF(1); @$pb.TagNumber(2) - set enabled($core.bool v) { - $_setBool(1, v); - } - + set enabled($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasEnabled() => $_has(1); @$pb.TagNumber(2) @@ -3568,77 +2580,54 @@ class SubscribedQuality extends $pb.GeneratedMessage { } class SubscribedCodec extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscribedCodec', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'codec') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'qualities', - $pb.PbFieldType.PM, - subBuilder: SubscribedQuality.create) - ..hasRequiredFields = false; - - SubscribedCodec._() : super(); factory SubscribedCodec({ $core.String? codec, $core.Iterable? qualities, }) { - final _result = create(); + final $result = create(); if (codec != null) { - _result.codec = codec; + $result.codec = codec; } if (qualities != null) { - _result.qualities.addAll(qualities); + $result.qualities.addAll(qualities); } - return _result; + return $result; } - factory SubscribedCodec.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscribedCodec.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SubscribedCodec._() : super(); + factory SubscribedCodec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscribedCodec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedCodec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'codec') + ..pc(2, _omitFieldNames ? '' : 'qualities', $pb.PbFieldType.PM, subBuilder: SubscribedQuality.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribedCodec clone() => SubscribedCodec()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedCodec copyWith(void Function(SubscribedCodec) updates) => - super.copyWith((message) => updates(message as SubscribedCodec)) - as SubscribedCodec; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedCodec copyWith(void Function(SubscribedCodec) updates) => super.copyWith((message) => updates(message as SubscribedCodec)) as SubscribedCodec; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscribedCodec create() => SubscribedCodec._(); SubscribedCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedCodec getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribedCodec? _defaultInstance; @$pb.TagNumber(1) $core.String get codec => $_getSZ(0); @$pb.TagNumber(1) - set codec($core.String v) { - $_setString(0, v); - } - + set codec($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCodec() => $_has(0); @$pb.TagNumber(1) @@ -3649,90 +2638,59 @@ class SubscribedCodec extends $pb.GeneratedMessage { } class SubscribedQualityUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscribedQualityUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSid') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscribedQualities', - $pb.PbFieldType.PM, - subBuilder: SubscribedQuality.create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscribedCodecs', - $pb.PbFieldType.PM, - subBuilder: SubscribedCodec.create) - ..hasRequiredFields = false; - - SubscribedQualityUpdate._() : super(); factory SubscribedQualityUpdate({ $core.String? trackSid, $core.Iterable? subscribedQualities, $core.Iterable? subscribedCodecs, }) { - final _result = create(); + final $result = create(); if (trackSid != null) { - _result.trackSid = trackSid; + $result.trackSid = trackSid; } if (subscribedQualities != null) { - _result.subscribedQualities.addAll(subscribedQualities); + $result.subscribedQualities.addAll(subscribedQualities); } if (subscribedCodecs != null) { - _result.subscribedCodecs.addAll(subscribedCodecs); + $result.subscribedCodecs.addAll(subscribedCodecs); } - return _result; + return $result; } - factory SubscribedQualityUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscribedQualityUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscribedQualityUpdate clone() => - SubscribedQualityUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedQualityUpdate copyWith( - void Function(SubscribedQualityUpdate) updates) => - super.copyWith((message) => updates(message as SubscribedQualityUpdate)) - as SubscribedQualityUpdate; // ignore: deprecated_member_use + SubscribedQualityUpdate._() : super(); + factory SubscribedQualityUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscribedQualityUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedQualityUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'trackSid') + ..pc(2, _omitFieldNames ? '' : 'subscribedQualities', $pb.PbFieldType.PM, subBuilder: SubscribedQuality.create) + ..pc(3, _omitFieldNames ? '' : 'subscribedCodecs', $pb.PbFieldType.PM, subBuilder: SubscribedCodec.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscribedQualityUpdate clone() => SubscribedQualityUpdate()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedQualityUpdate copyWith(void Function(SubscribedQualityUpdate) updates) => super.copyWith((message) => updates(message as SubscribedQualityUpdate)) as SubscribedQualityUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscribedQualityUpdate create() => SubscribedQualityUpdate._(); SubscribedQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedQualityUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribedQualityUpdate? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { - $_setString(0, v); - } - + set trackSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -3746,93 +2704,65 @@ class SubscribedQualityUpdate extends $pb.GeneratedMessage { } class TrackPermission extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrackPermission', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allTracks') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSids') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantIdentity') - ..hasRequiredFields = false; - - TrackPermission._() : super(); factory TrackPermission({ $core.String? participantSid, $core.bool? allTracks, $core.Iterable<$core.String>? trackSids, $core.String? participantIdentity, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (allTracks != null) { - _result.allTracks = allTracks; + $result.allTracks = allTracks; } if (trackSids != null) { - _result.trackSids.addAll(trackSids); + $result.trackSids.addAll(trackSids); } if (participantIdentity != null) { - _result.participantIdentity = participantIdentity; + $result.participantIdentity = participantIdentity; } - return _result; + return $result; } - factory TrackPermission.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory TrackPermission.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + TrackPermission._() : super(); + factory TrackPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TrackPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..aOB(2, _omitFieldNames ? '' : 'allTracks') + ..pPS(3, _omitFieldNames ? '' : 'trackSids') + ..aOS(4, _omitFieldNames ? '' : 'participantIdentity') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrackPermission clone() => TrackPermission()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackPermission copyWith(void Function(TrackPermission) updates) => - super.copyWith((message) => updates(message as TrackPermission)) - as TrackPermission; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackPermission copyWith(void Function(TrackPermission) updates) => super.copyWith((message) => updates(message as TrackPermission)) as TrackPermission; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrackPermission create() => TrackPermission._(); TrackPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackPermission getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static TrackPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackPermission? _defaultInstance; + /// permission could be granted either by participant sid or identity @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -3841,10 +2771,7 @@ class TrackPermission extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get allTracks => $_getBF(1); @$pb.TagNumber(2) - set allTracks($core.bool v) { - $_setBool(1, v); - } - + set allTracks($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasAllTracks() => $_has(1); @$pb.TagNumber(2) @@ -3856,10 +2783,7 @@ class TrackPermission extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get participantIdentity => $_getSZ(3); @$pb.TagNumber(4) - set participantIdentity($core.String v) { - $_setString(3, v); - } - + set participantIdentity($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasParticipantIdentity() => $_has(3); @$pb.TagNumber(4) @@ -3867,79 +2791,54 @@ class TrackPermission extends $pb.GeneratedMessage { } class SubscriptionPermission extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscriptionPermission', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allParticipants') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackPermissions', - $pb.PbFieldType.PM, - subBuilder: TrackPermission.create) - ..hasRequiredFields = false; - - SubscriptionPermission._() : super(); factory SubscriptionPermission({ $core.bool? allParticipants, $core.Iterable? trackPermissions, }) { - final _result = create(); + final $result = create(); if (allParticipants != null) { - _result.allParticipants = allParticipants; + $result.allParticipants = allParticipants; } if (trackPermissions != null) { - _result.trackPermissions.addAll(trackPermissions); + $result.trackPermissions.addAll(trackPermissions); } - return _result; + return $result; } - factory SubscriptionPermission.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscriptionPermission.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscriptionPermission clone() => - SubscriptionPermission()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscriptionPermission copyWith( - void Function(SubscriptionPermission) updates) => - super.copyWith((message) => updates(message as SubscriptionPermission)) - as SubscriptionPermission; // ignore: deprecated_member_use + SubscriptionPermission._() : super(); + factory SubscriptionPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscriptionPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'allParticipants') + ..pc(2, _omitFieldNames ? '' : 'trackPermissions', $pb.PbFieldType.PM, subBuilder: TrackPermission.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionPermission clone() => SubscriptionPermission()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionPermission copyWith(void Function(SubscriptionPermission) updates) => super.copyWith((message) => updates(message as SubscriptionPermission)) as SubscriptionPermission; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubscriptionPermission create() => SubscriptionPermission._(); SubscriptionPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscriptionPermission getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscriptionPermission? _defaultInstance; @$pb.TagNumber(1) $core.bool get allParticipants => $_getBF(0); @$pb.TagNumber(1) - set allParticipants($core.bool v) { - $_setBool(0, v); - } - + set allParticipants($core.bool v) { $_setBool(0, v); } @$pb.TagNumber(1) $core.bool hasAllParticipants() => $_has(0); @$pb.TagNumber(1) @@ -3950,88 +2849,59 @@ class SubscriptionPermission extends $pb.GeneratedMessage { } class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubscriptionPermissionUpdate', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'participantSid') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'trackSid') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowed') - ..hasRequiredFields = false; - - SubscriptionPermissionUpdate._() : super(); factory SubscriptionPermissionUpdate({ $core.String? participantSid, $core.String? trackSid, $core.bool? allowed, }) { - final _result = create(); + final $result = create(); if (participantSid != null) { - _result.participantSid = participantSid; + $result.participantSid = participantSid; } if (trackSid != null) { - _result.trackSid = trackSid; + $result.trackSid = trackSid; } if (allowed != null) { - _result.allowed = allowed; + $result.allowed = allowed; } - return _result; + return $result; } - factory SubscriptionPermissionUpdate.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SubscriptionPermissionUpdate.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscriptionPermissionUpdate clone() => - SubscriptionPermissionUpdate()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscriptionPermissionUpdate copyWith( - void Function(SubscriptionPermissionUpdate) updates) => - super.copyWith( - (message) => updates(message as SubscriptionPermissionUpdate)) - as SubscriptionPermissionUpdate; // ignore: deprecated_member_use + SubscriptionPermissionUpdate._() : super(); + factory SubscriptionPermissionUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscriptionPermissionUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionPermissionUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'participantSid') + ..aOS(2, _omitFieldNames ? '' : 'trackSid') + ..aOB(3, _omitFieldNames ? '' : 'allowed') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionPermissionUpdate clone() => SubscriptionPermissionUpdate()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionPermissionUpdate copyWith(void Function(SubscriptionPermissionUpdate) updates) => super.copyWith((message) => updates(message as SubscriptionPermissionUpdate)) as SubscriptionPermissionUpdate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static SubscriptionPermissionUpdate create() => - SubscriptionPermissionUpdate._(); + static SubscriptionPermissionUpdate create() => SubscriptionPermissionUpdate._(); SubscriptionPermissionUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscriptionPermissionUpdate getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionPermissionUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscriptionPermissionUpdate? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { - $_setString(0, v); - } - + set participantSid($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -4040,10 +2910,7 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get trackSid => $_getSZ(1); @$pb.TagNumber(2) - set trackSid($core.String v) { - $_setString(1, v); - } - + set trackSid($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasTrackSid() => $_has(1); @$pb.TagNumber(2) @@ -4052,10 +2919,7 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get allowed => $_getBF(2); @$pb.TagNumber(3) - set allowed($core.bool v) { - $_setBool(2, v); - } - + set allowed($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasAllowed() => $_has(2); @$pb.TagNumber(3) @@ -4063,50 +2927,6 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { } class SyncState extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SyncState', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'answer', - subBuilder: SessionDescription.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subscription', - subBuilder: UpdateSubscription.create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publishTracks', - $pb.PbFieldType.PM, - subBuilder: TrackPublishedResponse.create) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dataChannels', - $pb.PbFieldType.PM, - subBuilder: DataChannelInfo.create) - ..aOM( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offer', - subBuilder: SessionDescription.create) - ..hasRequiredFields = false; - - SyncState._() : super(); factory SyncState({ SessionDescription? answer, UpdateSubscription? subscription, @@ -4114,57 +2934,63 @@ class SyncState extends $pb.GeneratedMessage { $core.Iterable? dataChannels, SessionDescription? offer, }) { - final _result = create(); + final $result = create(); if (answer != null) { - _result.answer = answer; + $result.answer = answer; } if (subscription != null) { - _result.subscription = subscription; + $result.subscription = subscription; } if (publishTracks != null) { - _result.publishTracks.addAll(publishTracks); + $result.publishTracks.addAll(publishTracks); } if (dataChannels != null) { - _result.dataChannels.addAll(dataChannels); + $result.dataChannels.addAll(dataChannels); } if (offer != null) { - _result.offer = offer; + $result.offer = offer; } - return _result; + return $result; } - factory SyncState.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SyncState.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SyncState._() : super(); + factory SyncState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SyncState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SyncState', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) + ..aOM(2, _omitFieldNames ? '' : 'subscription', subBuilder: UpdateSubscription.create) + ..pc(3, _omitFieldNames ? '' : 'publishTracks', $pb.PbFieldType.PM, subBuilder: TrackPublishedResponse.create) + ..pc(4, _omitFieldNames ? '' : 'dataChannels', $pb.PbFieldType.PM, subBuilder: DataChannelInfo.create) + ..aOM(5, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SyncState clone() => SyncState()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SyncState copyWith(void Function(SyncState) updates) => - super.copyWith((message) => updates(message as SyncState)) - as SyncState; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SyncState copyWith(void Function(SyncState) updates) => super.copyWith((message) => updates(message as SyncState)) as SyncState; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SyncState create() => SyncState._(); SyncState createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SyncState getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SyncState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SyncState? _defaultInstance; + /// last subscribe answer before reconnecting @$pb.TagNumber(1) SessionDescription get answer => $_getN(0); @$pb.TagNumber(1) - set answer(SessionDescription v) { - setField(1, v); - } - + set answer(SessionDescription v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasAnswer() => $_has(0); @$pb.TagNumber(1) @@ -4175,10 +3001,7 @@ class SyncState extends $pb.GeneratedMessage { @$pb.TagNumber(2) UpdateSubscription get subscription => $_getN(1); @$pb.TagNumber(2) - set subscription(UpdateSubscription v) { - setField(2, v); - } - + set subscription(UpdateSubscription v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasSubscription() => $_has(1); @$pb.TagNumber(2) @@ -4192,13 +3015,11 @@ class SyncState extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.List get dataChannels => $_getList(3); + /// last received server side offer before reconnecting @$pb.TagNumber(5) SessionDescription get offer => $_getN(4); @$pb.TagNumber(5) - set offer(SessionDescription v) { - setField(5, v); - } - + set offer(SessionDescription v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasOffer() => $_has(4); @$pb.TagNumber(5) @@ -4208,89 +3029,59 @@ class SyncState extends $pb.GeneratedMessage { } class DataChannelInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DataChannelInfo', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'label') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.OU3) - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'target', - $pb.PbFieldType.OE, - defaultOrMaker: SignalTarget.PUBLISHER, - valueOf: SignalTarget.valueOf, - enumValues: SignalTarget.values) - ..hasRequiredFields = false; - - DataChannelInfo._() : super(); factory DataChannelInfo({ $core.String? label, $core.int? id, SignalTarget? target, }) { - final _result = create(); + final $result = create(); if (label != null) { - _result.label = label; + $result.label = label; } if (id != null) { - _result.id = id; + $result.id = id; } if (target != null) { - _result.target = target; + $result.target = target; } - return _result; + return $result; } - factory DataChannelInfo.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DataChannelInfo.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + DataChannelInfo._() : super(); + factory DataChannelInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DataChannelInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataChannelInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'label') + ..a<$core.int>(2, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..e(3, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, defaultOrMaker: SignalTarget.PUBLISHER, valueOf: SignalTarget.valueOf, enumValues: SignalTarget.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DataChannelInfo clone() => DataChannelInfo()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DataChannelInfo copyWith(void Function(DataChannelInfo) updates) => - super.copyWith((message) => updates(message as DataChannelInfo)) - as DataChannelInfo; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DataChannelInfo copyWith(void Function(DataChannelInfo) updates) => super.copyWith((message) => updates(message as DataChannelInfo)) as DataChannelInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DataChannelInfo create() => DataChannelInfo._(); DataChannelInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DataChannelInfo getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static DataChannelInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DataChannelInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get label => $_getSZ(0); @$pb.TagNumber(1) - set label($core.String v) { - $_setString(0, v); - } - + set label($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasLabel() => $_has(0); @$pb.TagNumber(1) @@ -4299,10 +3090,7 @@ class DataChannelInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get id => $_getIZ(1); @$pb.TagNumber(2) - set id($core.int v) { - $_setUnsignedInt32(1, v); - } - + set id($core.int v) { $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasId() => $_has(1); @$pb.TagNumber(2) @@ -4311,10 +3099,7 @@ class DataChannelInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) SignalTarget get target => $_getN(2); @$pb.TagNumber(3) - set target(SignalTarget v) { - setField(3, v); - } - + set target(SignalTarget v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasTarget() => $_has(2); @$pb.TagNumber(3) @@ -4322,265 +3107,214 @@ class DataChannelInfo extends $pb.GeneratedMessage { } enum SimulateScenario_Scenario { - speakerUpdate, - nodeFailure, - migration, - serverLeave, - switchCandidateProtocol, + speakerUpdate, + nodeFailure, + migration, + serverLeave, + switchCandidateProtocol, + subscriberBandwidth, notSet } class SimulateScenario extends $pb.GeneratedMessage { - static const $core.Map<$core.int, SimulateScenario_Scenario> - _SimulateScenario_ScenarioByTag = { - 1: SimulateScenario_Scenario.speakerUpdate, - 2: SimulateScenario_Scenario.nodeFailure, - 3: SimulateScenario_Scenario.migration, - 4: SimulateScenario_Scenario.serverLeave, - 5: SimulateScenario_Scenario.switchCandidateProtocol, - 0: SimulateScenario_Scenario.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SimulateScenario', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5]) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'speakerUpdate', - $pb.PbFieldType.O3) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nodeFailure') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'migration') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serverLeave') - ..e( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'switchCandidateProtocol', - $pb.PbFieldType.OE, - defaultOrMaker: CandidateProtocol.UDP, - valueOf: CandidateProtocol.valueOf, - enumValues: CandidateProtocol.values) - ..hasRequiredFields = false; - - SimulateScenario._() : super(); factory SimulateScenario({ $core.int? speakerUpdate, $core.bool? nodeFailure, $core.bool? migration, $core.bool? serverLeave, CandidateProtocol? switchCandidateProtocol, + $fixnum.Int64? subscriberBandwidth, }) { - final _result = create(); + final $result = create(); if (speakerUpdate != null) { - _result.speakerUpdate = speakerUpdate; + $result.speakerUpdate = speakerUpdate; } if (nodeFailure != null) { - _result.nodeFailure = nodeFailure; + $result.nodeFailure = nodeFailure; } if (migration != null) { - _result.migration = migration; + $result.migration = migration; } if (serverLeave != null) { - _result.serverLeave = serverLeave; + $result.serverLeave = serverLeave; } if (switchCandidateProtocol != null) { - _result.switchCandidateProtocol = switchCandidateProtocol; + $result.switchCandidateProtocol = switchCandidateProtocol; } - return _result; + if (subscriberBandwidth != null) { + $result.subscriberBandwidth = subscriberBandwidth; + } + return $result; } - factory SimulateScenario.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SimulateScenario.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + SimulateScenario._() : super(); + factory SimulateScenario.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SimulateScenario.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SimulateScenario_Scenario> _SimulateScenario_ScenarioByTag = { + 1 : SimulateScenario_Scenario.speakerUpdate, + 2 : SimulateScenario_Scenario.nodeFailure, + 3 : SimulateScenario_Scenario.migration, + 4 : SimulateScenario_Scenario.serverLeave, + 5 : SimulateScenario_Scenario.switchCandidateProtocol, + 6 : SimulateScenario_Scenario.subscriberBandwidth, + 0 : SimulateScenario_Scenario.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulateScenario', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6]) + ..a<$core.int>(1, _omitFieldNames ? '' : 'speakerUpdate', $pb.PbFieldType.O3) + ..aOB(2, _omitFieldNames ? '' : 'nodeFailure') + ..aOB(3, _omitFieldNames ? '' : 'migration') + ..aOB(4, _omitFieldNames ? '' : 'serverLeave') + ..e(5, _omitFieldNames ? '' : 'switchCandidateProtocol', $pb.PbFieldType.OE, defaultOrMaker: CandidateProtocol.UDP, valueOf: CandidateProtocol.valueOf, enumValues: CandidateProtocol.values) + ..aInt64(6, _omitFieldNames ? '' : 'subscriberBandwidth') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulateScenario clone() => SimulateScenario()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulateScenario copyWith(void Function(SimulateScenario) updates) => - super.copyWith((message) => updates(message as SimulateScenario)) - as SimulateScenario; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulateScenario copyWith(void Function(SimulateScenario) updates) => super.copyWith((message) => updates(message as SimulateScenario)) as SimulateScenario; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SimulateScenario create() => SimulateScenario._(); SimulateScenario createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulateScenario getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SimulateScenario getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SimulateScenario? _defaultInstance; - SimulateScenario_Scenario whichScenario() => - _SimulateScenario_ScenarioByTag[$_whichOneof(0)]!; + SimulateScenario_Scenario whichScenario() => _SimulateScenario_ScenarioByTag[$_whichOneof(0)]!; void clearScenario() => clearField($_whichOneof(0)); + /// simulate N seconds of speaker activity @$pb.TagNumber(1) $core.int get speakerUpdate => $_getIZ(0); @$pb.TagNumber(1) - set speakerUpdate($core.int v) { - $_setSignedInt32(0, v); - } - + set speakerUpdate($core.int v) { $_setSignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasSpeakerUpdate() => $_has(0); @$pb.TagNumber(1) void clearSpeakerUpdate() => clearField(1); + /// simulate local node failure @$pb.TagNumber(2) $core.bool get nodeFailure => $_getBF(1); @$pb.TagNumber(2) - set nodeFailure($core.bool v) { - $_setBool(1, v); - } - + set nodeFailure($core.bool v) { $_setBool(1, v); } @$pb.TagNumber(2) $core.bool hasNodeFailure() => $_has(1); @$pb.TagNumber(2) void clearNodeFailure() => clearField(2); + /// simulate migration @$pb.TagNumber(3) $core.bool get migration => $_getBF(2); @$pb.TagNumber(3) - set migration($core.bool v) { - $_setBool(2, v); - } - + set migration($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasMigration() => $_has(2); @$pb.TagNumber(3) void clearMigration() => clearField(3); + /// server to send leave @$pb.TagNumber(4) $core.bool get serverLeave => $_getBF(3); @$pb.TagNumber(4) - set serverLeave($core.bool v) { - $_setBool(3, v); - } - + set serverLeave($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasServerLeave() => $_has(3); @$pb.TagNumber(4) void clearServerLeave() => clearField(4); + /// switch candidate protocol to tcp @$pb.TagNumber(5) CandidateProtocol get switchCandidateProtocol => $_getN(4); @$pb.TagNumber(5) - set switchCandidateProtocol(CandidateProtocol v) { - setField(5, v); - } - + set switchCandidateProtocol(CandidateProtocol v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasSwitchCandidateProtocol() => $_has(4); @$pb.TagNumber(5) void clearSwitchCandidateProtocol() => clearField(5); + + /// maximum bandwidth for subscribers, in bps + /// when zero, clears artificial bandwidth limit + @$pb.TagNumber(6) + $fixnum.Int64 get subscriberBandwidth => $_getI64(5); + @$pb.TagNumber(6) + set subscriberBandwidth($fixnum.Int64 v) { $_setInt64(5, v); } + @$pb.TagNumber(6) + $core.bool hasSubscriberBandwidth() => $_has(5); + @$pb.TagNumber(6) + void clearSubscriberBandwidth() => clearField(6); } class Ping extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Ping', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'timestamp') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rtt') - ..hasRequiredFields = false; - - Ping._() : super(); factory Ping({ $fixnum.Int64? timestamp, $fixnum.Int64? rtt, }) { - final _result = create(); + final $result = create(); if (timestamp != null) { - _result.timestamp = timestamp; + $result.timestamp = timestamp; } if (rtt != null) { - _result.rtt = rtt; + $result.rtt = rtt; } - return _result; + return $result; } - factory Ping.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Ping.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + Ping._() : super(); + factory Ping.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Ping.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Ping', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'timestamp') + ..aInt64(2, _omitFieldNames ? '' : 'rtt') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Ping clone() => Ping()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Ping copyWith(void Function(Ping) updates) => - super.copyWith((message) => updates(message as Ping)) - as Ping; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Ping copyWith(void Function(Ping) updates) => super.copyWith((message) => updates(message as Ping)) as Ping; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Ping create() => Ping._(); Ping createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Ping getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Ping getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Ping? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get timestamp => $_getI64(0); @$pb.TagNumber(1) - set timestamp($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set timestamp($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasTimestamp() => $_has(0); @$pb.TagNumber(1) void clearTimestamp() => clearField(1); + /// rtt in milliseconds calculated by client @$pb.TagNumber(2) $fixnum.Int64 get rtt => $_getI64(1); @$pb.TagNumber(2) - set rtt($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set rtt($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasRtt() => $_has(1); @$pb.TagNumber(2) @@ -4588,74 +3322,55 @@ class Ping extends $pb.GeneratedMessage { } class Pong extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Pong', - package: const $pb.PackageName( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'livekit'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lastPingTimestamp') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'timestamp') - ..hasRequiredFields = false; - - Pong._() : super(); factory Pong({ $fixnum.Int64? lastPingTimestamp, $fixnum.Int64? timestamp, }) { - final _result = create(); + final $result = create(); if (lastPingTimestamp != null) { - _result.lastPingTimestamp = lastPingTimestamp; + $result.lastPingTimestamp = lastPingTimestamp; } if (timestamp != null) { - _result.timestamp = timestamp; + $result.timestamp = timestamp; } - return _result; + return $result; } - factory Pong.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory Pong.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + Pong._() : super(); + factory Pong.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Pong.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Pong', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'lastPingTimestamp') + ..aInt64(2, _omitFieldNames ? '' : 'timestamp') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Pong clone() => Pong()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Pong copyWith(void Function(Pong) updates) => - super.copyWith((message) => updates(message as Pong)) - as Pong; // ignore: deprecated_member_use + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Pong copyWith(void Function(Pong) updates) => super.copyWith((message) => updates(message as Pong)) as Pong; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Pong create() => Pong._(); Pong createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Pong getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Pong getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Pong? _defaultInstance; + /// timestamp field of last received ping request @$pb.TagNumber(1) $fixnum.Int64 get lastPingTimestamp => $_getI64(0); @$pb.TagNumber(1) - set lastPingTimestamp($fixnum.Int64 v) { - $_setInt64(0, v); - } - + set lastPingTimestamp($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasLastPingTimestamp() => $_has(0); @$pb.TagNumber(1) @@ -4664,12 +3379,199 @@ class Pong extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get timestamp => $_getI64(1); @$pb.TagNumber(2) - set timestamp($fixnum.Int64 v) { - $_setInt64(1, v); - } - + set timestamp($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasTimestamp() => $_has(1); @$pb.TagNumber(2) void clearTimestamp() => clearField(2); } + +class RegionSettings extends $pb.GeneratedMessage { + factory RegionSettings({ + $core.Iterable? regions, + }) { + final $result = create(); + if (regions != null) { + $result.regions.addAll(regions); + } + return $result; + } + RegionSettings._() : super(); + factory RegionSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RegionSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegionSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'regions', $pb.PbFieldType.PM, subBuilder: RegionInfo.create) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RegionSettings clone() => RegionSettings()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RegionSettings copyWith(void Function(RegionSettings) updates) => super.copyWith((message) => updates(message as RegionSettings)) as RegionSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RegionSettings create() => RegionSettings._(); + RegionSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RegionSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RegionSettings? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get regions => $_getList(0); +} + +class RegionInfo extends $pb.GeneratedMessage { + factory RegionInfo({ + $core.String? region, + $core.String? url, + $fixnum.Int64? distance, + }) { + final $result = create(); + if (region != null) { + $result.region = region; + } + if (url != null) { + $result.url = url; + } + if (distance != null) { + $result.distance = distance; + } + return $result; + } + RegionInfo._() : super(); + factory RegionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RegionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'region') + ..aOS(2, _omitFieldNames ? '' : 'url') + ..aInt64(3, _omitFieldNames ? '' : 'distance') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RegionInfo clone() => RegionInfo()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RegionInfo copyWith(void Function(RegionInfo) updates) => super.copyWith((message) => updates(message as RegionInfo)) as RegionInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RegionInfo create() => RegionInfo._(); + RegionInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RegionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RegionInfo? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get region => $_getSZ(0); + @$pb.TagNumber(1) + set region($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasRegion() => $_has(0); + @$pb.TagNumber(1) + void clearRegion() => clearField(1); + + @$pb.TagNumber(2) + $core.String get url => $_getSZ(1); + @$pb.TagNumber(2) + set url($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasUrl() => $_has(1); + @$pb.TagNumber(2) + void clearUrl() => clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get distance => $_getI64(2); + @$pb.TagNumber(3) + set distance($fixnum.Int64 v) { $_setInt64(2, v); } + @$pb.TagNumber(3) + $core.bool hasDistance() => $_has(2); + @$pb.TagNumber(3) + void clearDistance() => clearField(3); +} + +class SubscriptionResponse extends $pb.GeneratedMessage { + factory SubscriptionResponse({ + $core.String? trackSid, + $1.SubscriptionError? err, + }) { + final $result = create(); + if (trackSid != null) { + $result.trackSid = trackSid; + } + if (err != null) { + $result.err = err; + } + return $result; + } + SubscriptionResponse._() : super(); + factory SubscriptionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SubscriptionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'trackSid') + ..e<$1.SubscriptionError>(2, _omitFieldNames ? '' : 'err', $pb.PbFieldType.OE, defaultOrMaker: $1.SubscriptionError.SE_UNKNOWN, valueOf: $1.SubscriptionError.valueOf, enumValues: $1.SubscriptionError.values) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionResponse clone() => SubscriptionResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionResponse copyWith(void Function(SubscriptionResponse) updates) => super.copyWith((message) => updates(message as SubscriptionResponse)) as SubscriptionResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SubscriptionResponse create() => SubscriptionResponse._(); + SubscriptionResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SubscriptionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get trackSid => $_getSZ(0); + @$pb.TagNumber(1) + set trackSid($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasTrackSid() => $_has(0); + @$pb.TagNumber(1) + void clearTrackSid() => clearField(1); + + @$pb.TagNumber(2) + $1.SubscriptionError get err => $_getN(1); + @$pb.TagNumber(2) + set err($1.SubscriptionError v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasErr() => $_has(1); + @$pb.TagNumber(2) + void clearErr() => clearField(2); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/livekit_rtc.pbenum.dart b/lib/src/proto/livekit_rtc.pbenum.dart index 3b472a38..3f83316f 100644 --- a/lib/src/proto/livekit_rtc.pbenum.dart +++ b/lib/src/proto/livekit_rtc.pbenum.dart @@ -1,102 +1,64 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_rtc.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + import 'dart:core' as $core; + import 'package:protobuf/protobuf.dart' as $pb; class SignalTarget extends $pb.ProtobufEnum { - static const SignalTarget PUBLISHER = SignalTarget._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PUBLISHER'); - static const SignalTarget SUBSCRIBER = SignalTarget._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUBSCRIBER'); - - static const $core.List values = [ + static const SignalTarget PUBLISHER = SignalTarget._(0, _omitEnumNames ? '' : 'PUBLISHER'); + static const SignalTarget SUBSCRIBER = SignalTarget._(1, _omitEnumNames ? '' : 'SUBSCRIBER'); + + static const $core.List values = [ PUBLISHER, SUBSCRIBER, ]; - static final $core.Map<$core.int, SignalTarget> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, SignalTarget> _byValue = $pb.ProtobufEnum.initByValue(values); static SignalTarget? valueOf($core.int value) => _byValue[value]; const SignalTarget._($core.int v, $core.String n) : super(v, n); } class StreamState extends $pb.ProtobufEnum { - static const StreamState ACTIVE = StreamState._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTIVE'); - static const StreamState PAUSED = StreamState._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PAUSED'); - - static const $core.List values = [ + static const StreamState ACTIVE = StreamState._(0, _omitEnumNames ? '' : 'ACTIVE'); + static const StreamState PAUSED = StreamState._(1, _omitEnumNames ? '' : 'PAUSED'); + + static const $core.List values = [ ACTIVE, PAUSED, ]; - static final $core.Map<$core.int, StreamState> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, StreamState> _byValue = $pb.ProtobufEnum.initByValue(values); static StreamState? valueOf($core.int value) => _byValue[value]; const StreamState._($core.int v, $core.String n) : super(v, n); } class CandidateProtocol extends $pb.ProtobufEnum { - static const CandidateProtocol UDP = CandidateProtocol._( - 0, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UDP'); - static const CandidateProtocol TCP = CandidateProtocol._( - 1, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TCP'); - static const CandidateProtocol TLS = CandidateProtocol._( - 2, - const $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TLS'); - - static const $core.List values = [ + static const CandidateProtocol UDP = CandidateProtocol._(0, _omitEnumNames ? '' : 'UDP'); + static const CandidateProtocol TCP = CandidateProtocol._(1, _omitEnumNames ? '' : 'TCP'); + static const CandidateProtocol TLS = CandidateProtocol._(2, _omitEnumNames ? '' : 'TLS'); + + static const $core.List values = [ UDP, TCP, TLS, ]; - static final $core.Map<$core.int, CandidateProtocol> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, CandidateProtocol> _byValue = $pb.ProtobufEnum.initByValue(values); static CandidateProtocol? valueOf($core.int value) => _byValue[value]; const CandidateProtocol._($core.int v, $core.String n) : super(v, n); } + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/proto/livekit_rtc.pbjson.dart b/lib/src/proto/livekit_rtc.pbjson.dart index e48670cb..cb64e263 100644 --- a/lib/src/proto/livekit_rtc.pbjson.dart +++ b/lib/src/proto/livekit_rtc.pbjson.dart @@ -1,1174 +1,739 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_rtc.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + import 'dart:convert' as $convert; +import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; @$core.Deprecated('Use signalTargetDescriptor instead') -const SignalTarget$json = const { +const SignalTarget$json = { '1': 'SignalTarget', - '2': const [ - const {'1': 'PUBLISHER', '2': 0}, - const {'1': 'SUBSCRIBER', '2': 1}, + '2': [ + {'1': 'PUBLISHER', '2': 0}, + {'1': 'SUBSCRIBER', '2': 1}, ], }; /// Descriptor for `SignalTarget`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List signalTargetDescriptor = $convert.base64Decode( 'CgxTaWduYWxUYXJnZXQSDQoJUFVCTElTSEVSEAASDgoKU1VCU0NSSUJFUhAB'); + @$core.Deprecated('Use streamStateDescriptor instead') -const StreamState$json = const { +const StreamState$json = { '1': 'StreamState', - '2': const [ - const {'1': 'ACTIVE', '2': 0}, - const {'1': 'PAUSED', '2': 1}, + '2': [ + {'1': 'ACTIVE', '2': 0}, + {'1': 'PAUSED', '2': 1}, ], }; /// Descriptor for `StreamState`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List streamStateDescriptor = $convert - .base64Decode('CgtTdHJlYW1TdGF0ZRIKCgZBQ1RJVkUQABIKCgZQQVVTRUQQAQ=='); +final $typed_data.Uint8List streamStateDescriptor = $convert.base64Decode( + 'CgtTdHJlYW1TdGF0ZRIKCgZBQ1RJVkUQABIKCgZQQVVTRUQQAQ=='); + @$core.Deprecated('Use candidateProtocolDescriptor instead') -const CandidateProtocol$json = const { +const CandidateProtocol$json = { '1': 'CandidateProtocol', - '2': const [ - const {'1': 'UDP', '2': 0}, - const {'1': 'TCP', '2': 1}, - const {'1': 'TLS', '2': 2}, + '2': [ + {'1': 'UDP', '2': 0}, + {'1': 'TCP', '2': 1}, + {'1': 'TLS', '2': 2}, ], }; /// Descriptor for `CandidateProtocol`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List candidateProtocolDescriptor = $convert.base64Decode( 'ChFDYW5kaWRhdGVQcm90b2NvbBIHCgNVRFAQABIHCgNUQ1AQARIHCgNUTFMQAg=='); + @$core.Deprecated('Use signalRequestDescriptor instead') -const SignalRequest$json = const { +const SignalRequest$json = { '1': 'SignalRequest', - '2': const [ - const { - '1': 'offer', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '9': 0, - '10': 'offer' - }, - const { - '1': 'answer', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '9': 0, - '10': 'answer' - }, - const { - '1': 'trickle', - '3': 3, - '4': 1, - '5': 11, - '6': '.livekit.TrickleRequest', - '9': 0, - '10': 'trickle' - }, - const { - '1': 'add_track', - '3': 4, - '4': 1, - '5': 11, - '6': '.livekit.AddTrackRequest', - '9': 0, - '10': 'addTrack' - }, - const { - '1': 'mute', - '3': 5, - '4': 1, - '5': 11, - '6': '.livekit.MuteTrackRequest', - '9': 0, - '10': 'mute' - }, - const { - '1': 'subscription', - '3': 6, - '4': 1, - '5': 11, - '6': '.livekit.UpdateSubscription', - '9': 0, - '10': 'subscription' - }, - const { - '1': 'track_setting', - '3': 7, - '4': 1, - '5': 11, - '6': '.livekit.UpdateTrackSettings', - '9': 0, - '10': 'trackSetting' - }, - const { - '1': 'leave', - '3': 8, - '4': 1, - '5': 11, - '6': '.livekit.LeaveRequest', - '9': 0, - '10': 'leave' - }, - const { - '1': 'update_layers', - '3': 10, - '4': 1, - '5': 11, - '6': '.livekit.UpdateVideoLayers', - '9': 0, - '10': 'updateLayers' - }, - const { - '1': 'subscription_permission', - '3': 11, - '4': 1, - '5': 11, - '6': '.livekit.SubscriptionPermission', - '9': 0, - '10': 'subscriptionPermission' - }, - const { - '1': 'sync_state', - '3': 12, - '4': 1, - '5': 11, - '6': '.livekit.SyncState', - '9': 0, - '10': 'syncState' - }, - const { - '1': 'simulate', - '3': 13, - '4': 1, - '5': 11, - '6': '.livekit.SimulateScenario', - '9': 0, - '10': 'simulate' - }, - const {'1': 'ping', '3': 14, '4': 1, '5': 3, '9': 0, '10': 'ping'}, - const { - '1': 'update_metadata', - '3': 15, - '4': 1, - '5': 11, - '6': '.livekit.UpdateParticipantMetadata', - '9': 0, - '10': 'updateMetadata' - }, - const { - '1': 'ping_req', - '3': 16, - '4': 1, - '5': 11, - '6': '.livekit.Ping', - '9': 0, - '10': 'pingReq' - }, - ], - '8': const [ - const {'1': 'message'}, + '2': [ + {'1': 'offer', '3': 1, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'offer'}, + {'1': 'answer', '3': 2, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'answer'}, + {'1': 'trickle', '3': 3, '4': 1, '5': 11, '6': '.livekit.TrickleRequest', '9': 0, '10': 'trickle'}, + {'1': 'add_track', '3': 4, '4': 1, '5': 11, '6': '.livekit.AddTrackRequest', '9': 0, '10': 'addTrack'}, + {'1': 'mute', '3': 5, '4': 1, '5': 11, '6': '.livekit.MuteTrackRequest', '9': 0, '10': 'mute'}, + {'1': 'subscription', '3': 6, '4': 1, '5': 11, '6': '.livekit.UpdateSubscription', '9': 0, '10': 'subscription'}, + {'1': 'track_setting', '3': 7, '4': 1, '5': 11, '6': '.livekit.UpdateTrackSettings', '9': 0, '10': 'trackSetting'}, + {'1': 'leave', '3': 8, '4': 1, '5': 11, '6': '.livekit.LeaveRequest', '9': 0, '10': 'leave'}, + {'1': 'update_layers', '3': 10, '4': 1, '5': 11, '6': '.livekit.UpdateVideoLayers', '9': 0, '10': 'updateLayers'}, + {'1': 'subscription_permission', '3': 11, '4': 1, '5': 11, '6': '.livekit.SubscriptionPermission', '9': 0, '10': 'subscriptionPermission'}, + {'1': 'sync_state', '3': 12, '4': 1, '5': 11, '6': '.livekit.SyncState', '9': 0, '10': 'syncState'}, + {'1': 'simulate', '3': 13, '4': 1, '5': 11, '6': '.livekit.SimulateScenario', '9': 0, '10': 'simulate'}, + {'1': 'ping', '3': 14, '4': 1, '5': 3, '9': 0, '10': 'ping'}, + {'1': 'update_metadata', '3': 15, '4': 1, '5': 11, '6': '.livekit.UpdateParticipantMetadata', '9': 0, '10': 'updateMetadata'}, + {'1': 'ping_req', '3': 16, '4': 1, '5': 11, '6': '.livekit.Ping', '9': 0, '10': 'pingReq'}, + ], + '8': [ + {'1': 'message'}, ], }; /// Descriptor for `SignalRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signalRequestDescriptor = $convert.base64Decode( - 'Cg1TaWduYWxSZXF1ZXN0EjMKBW9mZmVyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIFb2ZmZXISNQoGYW5zd2VyGAIgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25IAFIGYW5zd2VyEjMKB3RyaWNrbGUYAyABKAsyFy5saXZla2l0LlRyaWNrbGVSZXF1ZXN0SABSB3RyaWNrbGUSNwoJYWRkX3RyYWNrGAQgASgLMhgubGl2ZWtpdC5BZGRUcmFja1JlcXVlc3RIAFIIYWRkVHJhY2sSLwoEbXV0ZRgFIAEoCzIZLmxpdmVraXQuTXV0ZVRyYWNrUmVxdWVzdEgAUgRtdXRlEkEKDHN1YnNjcmlwdGlvbhgGIAEoCzIbLmxpdmVraXQuVXBkYXRlU3Vic2NyaXB0aW9uSABSDHN1YnNjcmlwdGlvbhJDCg10cmFja19zZXR0aW5nGAcgASgLMhwubGl2ZWtpdC5VcGRhdGVUcmFja1NldHRpbmdzSABSDHRyYWNrU2V0dGluZxItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQuTGVhdmVSZXF1ZXN0SABSBWxlYXZlEkEKDXVwZGF0ZV9sYXllcnMYCiABKAsyGi5saXZla2l0LlVwZGF0ZVZpZGVvTGF5ZXJzSABSDHVwZGF0ZUxheWVycxJaChdzdWJzY3JpcHRpb25fcGVybWlzc2lvbhgLIAEoCzIfLmxpdmVraXQuU3Vic2NyaXB0aW9uUGVybWlzc2lvbkgAUhZzdWJzY3JpcHRpb25QZXJtaXNzaW9uEjMKCnN5bmNfc3RhdGUYDCABKAsyEi5saXZla2l0LlN5bmNTdGF0ZUgAUglzeW5jU3RhdGUSNwoIc2ltdWxhdGUYDSABKAsyGS5saXZla2l0LlNpbXVsYXRlU2NlbmFyaW9IAFIIc2ltdWxhdGUSFAoEcGluZxgOIAEoA0gAUgRwaW5nEk0KD3VwZGF0ZV9tZXRhZGF0YRgPIAEoCzIiLmxpdmVraXQuVXBkYXRlUGFydGljaXBhbnRNZXRhZGF0YUgAUg51cGRhdGVNZXRhZGF0YRIqCghwaW5nX3JlcRgQIAEoCzINLmxpdmVraXQuUGluZ0gAUgdwaW5nUmVxQgkKB21lc3NhZ2U='); + 'Cg1TaWduYWxSZXF1ZXN0EjMKBW9mZmVyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcH' + 'Rpb25IAFIFb2ZmZXISNQoGYW5zd2VyGAIgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRp' + 'b25IAFIGYW5zd2VyEjMKB3RyaWNrbGUYAyABKAsyFy5saXZla2l0LlRyaWNrbGVSZXF1ZXN0SA' + 'BSB3RyaWNrbGUSNwoJYWRkX3RyYWNrGAQgASgLMhgubGl2ZWtpdC5BZGRUcmFja1JlcXVlc3RI' + 'AFIIYWRkVHJhY2sSLwoEbXV0ZRgFIAEoCzIZLmxpdmVraXQuTXV0ZVRyYWNrUmVxdWVzdEgAUg' + 'RtdXRlEkEKDHN1YnNjcmlwdGlvbhgGIAEoCzIbLmxpdmVraXQuVXBkYXRlU3Vic2NyaXB0aW9u' + 'SABSDHN1YnNjcmlwdGlvbhJDCg10cmFja19zZXR0aW5nGAcgASgLMhwubGl2ZWtpdC5VcGRhdG' + 'VUcmFja1NldHRpbmdzSABSDHRyYWNrU2V0dGluZxItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQu' + 'TGVhdmVSZXF1ZXN0SABSBWxlYXZlEkEKDXVwZGF0ZV9sYXllcnMYCiABKAsyGi5saXZla2l0Ll' + 'VwZGF0ZVZpZGVvTGF5ZXJzSABSDHVwZGF0ZUxheWVycxJaChdzdWJzY3JpcHRpb25fcGVybWlz' + 'c2lvbhgLIAEoCzIfLmxpdmVraXQuU3Vic2NyaXB0aW9uUGVybWlzc2lvbkgAUhZzdWJzY3JpcH' + 'Rpb25QZXJtaXNzaW9uEjMKCnN5bmNfc3RhdGUYDCABKAsyEi5saXZla2l0LlN5bmNTdGF0ZUgA' + 'UglzeW5jU3RhdGUSNwoIc2ltdWxhdGUYDSABKAsyGS5saXZla2l0LlNpbXVsYXRlU2NlbmFyaW' + '9IAFIIc2ltdWxhdGUSFAoEcGluZxgOIAEoA0gAUgRwaW5nEk0KD3VwZGF0ZV9tZXRhZGF0YRgP' + 'IAEoCzIiLmxpdmVraXQuVXBkYXRlUGFydGljaXBhbnRNZXRhZGF0YUgAUg51cGRhdGVNZXRhZG' + 'F0YRIqCghwaW5nX3JlcRgQIAEoCzINLmxpdmVraXQuUGluZ0gAUgdwaW5nUmVxQgkKB21lc3Nh' + 'Z2U='); + @$core.Deprecated('Use signalResponseDescriptor instead') -const SignalResponse$json = const { +const SignalResponse$json = { '1': 'SignalResponse', - '2': const [ - const { - '1': 'join', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.JoinResponse', - '9': 0, - '10': 'join' - }, - const { - '1': 'answer', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '9': 0, - '10': 'answer' - }, - const { - '1': 'offer', - '3': 3, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '9': 0, - '10': 'offer' - }, - const { - '1': 'trickle', - '3': 4, - '4': 1, - '5': 11, - '6': '.livekit.TrickleRequest', - '9': 0, - '10': 'trickle' - }, - const { - '1': 'update', - '3': 5, - '4': 1, - '5': 11, - '6': '.livekit.ParticipantUpdate', - '9': 0, - '10': 'update' - }, - const { - '1': 'track_published', - '3': 6, - '4': 1, - '5': 11, - '6': '.livekit.TrackPublishedResponse', - '9': 0, - '10': 'trackPublished' - }, - const { - '1': 'leave', - '3': 8, - '4': 1, - '5': 11, - '6': '.livekit.LeaveRequest', - '9': 0, - '10': 'leave' - }, - const { - '1': 'mute', - '3': 9, - '4': 1, - '5': 11, - '6': '.livekit.MuteTrackRequest', - '9': 0, - '10': 'mute' - }, - const { - '1': 'speakers_changed', - '3': 10, - '4': 1, - '5': 11, - '6': '.livekit.SpeakersChanged', - '9': 0, - '10': 'speakersChanged' - }, - const { - '1': 'room_update', - '3': 11, - '4': 1, - '5': 11, - '6': '.livekit.RoomUpdate', - '9': 0, - '10': 'roomUpdate' - }, - const { - '1': 'connection_quality', - '3': 12, - '4': 1, - '5': 11, - '6': '.livekit.ConnectionQualityUpdate', - '9': 0, - '10': 'connectionQuality' - }, - const { - '1': 'stream_state_update', - '3': 13, - '4': 1, - '5': 11, - '6': '.livekit.StreamStateUpdate', - '9': 0, - '10': 'streamStateUpdate' - }, - const { - '1': 'subscribed_quality_update', - '3': 14, - '4': 1, - '5': 11, - '6': '.livekit.SubscribedQualityUpdate', - '9': 0, - '10': 'subscribedQualityUpdate' - }, - const { - '1': 'subscription_permission_update', - '3': 15, - '4': 1, - '5': 11, - '6': '.livekit.SubscriptionPermissionUpdate', - '9': 0, - '10': 'subscriptionPermissionUpdate' - }, - const { - '1': 'refresh_token', - '3': 16, - '4': 1, - '5': 9, - '9': 0, - '10': 'refreshToken' - }, - const { - '1': 'track_unpublished', - '3': 17, - '4': 1, - '5': 11, - '6': '.livekit.TrackUnpublishedResponse', - '9': 0, - '10': 'trackUnpublished' - }, - const {'1': 'pong', '3': 18, '4': 1, '5': 3, '9': 0, '10': 'pong'}, - const { - '1': 'reconnect', - '3': 19, - '4': 1, - '5': 11, - '6': '.livekit.ReconnectResponse', - '9': 0, - '10': 'reconnect' - }, - const { - '1': 'pong_resp', - '3': 20, - '4': 1, - '5': 11, - '6': '.livekit.Pong', - '9': 0, - '10': 'pongResp' - }, - ], - '8': const [ - const {'1': 'message'}, + '2': [ + {'1': 'join', '3': 1, '4': 1, '5': 11, '6': '.livekit.JoinResponse', '9': 0, '10': 'join'}, + {'1': 'answer', '3': 2, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'answer'}, + {'1': 'offer', '3': 3, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'offer'}, + {'1': 'trickle', '3': 4, '4': 1, '5': 11, '6': '.livekit.TrickleRequest', '9': 0, '10': 'trickle'}, + {'1': 'update', '3': 5, '4': 1, '5': 11, '6': '.livekit.ParticipantUpdate', '9': 0, '10': 'update'}, + {'1': 'track_published', '3': 6, '4': 1, '5': 11, '6': '.livekit.TrackPublishedResponse', '9': 0, '10': 'trackPublished'}, + {'1': 'leave', '3': 8, '4': 1, '5': 11, '6': '.livekit.LeaveRequest', '9': 0, '10': 'leave'}, + {'1': 'mute', '3': 9, '4': 1, '5': 11, '6': '.livekit.MuteTrackRequest', '9': 0, '10': 'mute'}, + {'1': 'speakers_changed', '3': 10, '4': 1, '5': 11, '6': '.livekit.SpeakersChanged', '9': 0, '10': 'speakersChanged'}, + {'1': 'room_update', '3': 11, '4': 1, '5': 11, '6': '.livekit.RoomUpdate', '9': 0, '10': 'roomUpdate'}, + {'1': 'connection_quality', '3': 12, '4': 1, '5': 11, '6': '.livekit.ConnectionQualityUpdate', '9': 0, '10': 'connectionQuality'}, + {'1': 'stream_state_update', '3': 13, '4': 1, '5': 11, '6': '.livekit.StreamStateUpdate', '9': 0, '10': 'streamStateUpdate'}, + {'1': 'subscribed_quality_update', '3': 14, '4': 1, '5': 11, '6': '.livekit.SubscribedQualityUpdate', '9': 0, '10': 'subscribedQualityUpdate'}, + {'1': 'subscription_permission_update', '3': 15, '4': 1, '5': 11, '6': '.livekit.SubscriptionPermissionUpdate', '9': 0, '10': 'subscriptionPermissionUpdate'}, + {'1': 'refresh_token', '3': 16, '4': 1, '5': 9, '9': 0, '10': 'refreshToken'}, + {'1': 'track_unpublished', '3': 17, '4': 1, '5': 11, '6': '.livekit.TrackUnpublishedResponse', '9': 0, '10': 'trackUnpublished'}, + {'1': 'pong', '3': 18, '4': 1, '5': 3, '9': 0, '10': 'pong'}, + {'1': 'reconnect', '3': 19, '4': 1, '5': 11, '6': '.livekit.ReconnectResponse', '9': 0, '10': 'reconnect'}, + {'1': 'pong_resp', '3': 20, '4': 1, '5': 11, '6': '.livekit.Pong', '9': 0, '10': 'pongResp'}, + {'1': 'subscription_response', '3': 21, '4': 1, '5': 11, '6': '.livekit.SubscriptionResponse', '9': 0, '10': 'subscriptionResponse'}, + ], + '8': [ + {'1': 'message'}, ], }; /// Descriptor for `SignalResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signalResponseDescriptor = $convert.base64Decode( - 'Cg5TaWduYWxSZXNwb25zZRIrCgRqb2luGAEgASgLMhUubGl2ZWtpdC5Kb2luUmVzcG9uc2VIAFIEam9pbhI1CgZhbnN3ZXIYAiABKAsyGy5saXZla2l0LlNlc3Npb25EZXNjcmlwdGlvbkgAUgZhbnN3ZXISMwoFb2ZmZXIYAyABKAsyGy5saXZla2l0LlNlc3Npb25EZXNjcmlwdGlvbkgAUgVvZmZlchIzCgd0cmlja2xlGAQgASgLMhcubGl2ZWtpdC5Ucmlja2xlUmVxdWVzdEgAUgd0cmlja2xlEjQKBnVwZGF0ZRgFIAEoCzIaLmxpdmVraXQuUGFydGljaXBhbnRVcGRhdGVIAFIGdXBkYXRlEkoKD3RyYWNrX3B1Ymxpc2hlZBgGIAEoCzIfLmxpdmVraXQuVHJhY2tQdWJsaXNoZWRSZXNwb25zZUgAUg50cmFja1B1Ymxpc2hlZBItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQuTGVhdmVSZXF1ZXN0SABSBWxlYXZlEi8KBG11dGUYCSABKAsyGS5saXZla2l0Lk11dGVUcmFja1JlcXVlc3RIAFIEbXV0ZRJFChBzcGVha2Vyc19jaGFuZ2VkGAogASgLMhgubGl2ZWtpdC5TcGVha2Vyc0NoYW5nZWRIAFIPc3BlYWtlcnNDaGFuZ2VkEjYKC3Jvb21fdXBkYXRlGAsgASgLMhMubGl2ZWtpdC5Sb29tVXBkYXRlSABSCnJvb21VcGRhdGUSUQoSY29ubmVjdGlvbl9xdWFsaXR5GAwgASgLMiAubGl2ZWtpdC5Db25uZWN0aW9uUXVhbGl0eVVwZGF0ZUgAUhFjb25uZWN0aW9uUXVhbGl0eRJMChNzdHJlYW1fc3RhdGVfdXBkYXRlGA0gASgLMhoubGl2ZWtpdC5TdHJlYW1TdGF0ZVVwZGF0ZUgAUhFzdHJlYW1TdGF0ZVVwZGF0ZRJeChlzdWJzY3JpYmVkX3F1YWxpdHlfdXBkYXRlGA4gASgLMiAubGl2ZWtpdC5TdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZUgAUhdzdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZRJtCh5zdWJzY3JpcHRpb25fcGVybWlzc2lvbl91cGRhdGUYDyABKAsyJS5saXZla2l0LlN1YnNjcmlwdGlvblBlcm1pc3Npb25VcGRhdGVIAFIcc3Vic2NyaXB0aW9uUGVybWlzc2lvblVwZGF0ZRIlCg1yZWZyZXNoX3Rva2VuGBAgASgJSABSDHJlZnJlc2hUb2tlbhJQChF0cmFja191bnB1Ymxpc2hlZBgRIAEoCzIhLmxpdmVraXQuVHJhY2tVbnB1Ymxpc2hlZFJlc3BvbnNlSABSEHRyYWNrVW5wdWJsaXNoZWQSFAoEcG9uZxgSIAEoA0gAUgRwb25nEjoKCXJlY29ubmVjdBgTIAEoCzIaLmxpdmVraXQuUmVjb25uZWN0UmVzcG9uc2VIAFIJcmVjb25uZWN0EiwKCXBvbmdfcmVzcBgUIAEoCzINLmxpdmVraXQuUG9uZ0gAUghwb25nUmVzcEIJCgdtZXNzYWdl'); + 'Cg5TaWduYWxSZXNwb25zZRIrCgRqb2luGAEgASgLMhUubGl2ZWtpdC5Kb2luUmVzcG9uc2VIAF' + 'IEam9pbhI1CgZhbnN3ZXIYAiABKAsyGy5saXZla2l0LlNlc3Npb25EZXNjcmlwdGlvbkgAUgZh' + 'bnN3ZXISMwoFb2ZmZXIYAyABKAsyGy5saXZla2l0LlNlc3Npb25EZXNjcmlwdGlvbkgAUgVvZm' + 'ZlchIzCgd0cmlja2xlGAQgASgLMhcubGl2ZWtpdC5Ucmlja2xlUmVxdWVzdEgAUgd0cmlja2xl' + 'EjQKBnVwZGF0ZRgFIAEoCzIaLmxpdmVraXQuUGFydGljaXBhbnRVcGRhdGVIAFIGdXBkYXRlEk' + 'oKD3RyYWNrX3B1Ymxpc2hlZBgGIAEoCzIfLmxpdmVraXQuVHJhY2tQdWJsaXNoZWRSZXNwb25z' + 'ZUgAUg50cmFja1B1Ymxpc2hlZBItCgVsZWF2ZRgIIAEoCzIVLmxpdmVraXQuTGVhdmVSZXF1ZX' + 'N0SABSBWxlYXZlEi8KBG11dGUYCSABKAsyGS5saXZla2l0Lk11dGVUcmFja1JlcXVlc3RIAFIE' + 'bXV0ZRJFChBzcGVha2Vyc19jaGFuZ2VkGAogASgLMhgubGl2ZWtpdC5TcGVha2Vyc0NoYW5nZW' + 'RIAFIPc3BlYWtlcnNDaGFuZ2VkEjYKC3Jvb21fdXBkYXRlGAsgASgLMhMubGl2ZWtpdC5Sb29t' + 'VXBkYXRlSABSCnJvb21VcGRhdGUSUQoSY29ubmVjdGlvbl9xdWFsaXR5GAwgASgLMiAubGl2ZW' + 'tpdC5Db25uZWN0aW9uUXVhbGl0eVVwZGF0ZUgAUhFjb25uZWN0aW9uUXVhbGl0eRJMChNzdHJl' + 'YW1fc3RhdGVfdXBkYXRlGA0gASgLMhoubGl2ZWtpdC5TdHJlYW1TdGF0ZVVwZGF0ZUgAUhFzdH' + 'JlYW1TdGF0ZVVwZGF0ZRJeChlzdWJzY3JpYmVkX3F1YWxpdHlfdXBkYXRlGA4gASgLMiAubGl2' + 'ZWtpdC5TdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZUgAUhdzdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZR' + 'JtCh5zdWJzY3JpcHRpb25fcGVybWlzc2lvbl91cGRhdGUYDyABKAsyJS5saXZla2l0LlN1YnNj' + 'cmlwdGlvblBlcm1pc3Npb25VcGRhdGVIAFIcc3Vic2NyaXB0aW9uUGVybWlzc2lvblVwZGF0ZR' + 'IlCg1yZWZyZXNoX3Rva2VuGBAgASgJSABSDHJlZnJlc2hUb2tlbhJQChF0cmFja191bnB1Ymxp' + 'c2hlZBgRIAEoCzIhLmxpdmVraXQuVHJhY2tVbnB1Ymxpc2hlZFJlc3BvbnNlSABSEHRyYWNrVW' + '5wdWJsaXNoZWQSFAoEcG9uZxgSIAEoA0gAUgRwb25nEjoKCXJlY29ubmVjdBgTIAEoCzIaLmxp' + 'dmVraXQuUmVjb25uZWN0UmVzcG9uc2VIAFIJcmVjb25uZWN0EiwKCXBvbmdfcmVzcBgUIAEoCz' + 'INLmxpdmVraXQuUG9uZ0gAUghwb25nUmVzcBJUChVzdWJzY3JpcHRpb25fcmVzcG9uc2UYFSAB' + 'KAsyHS5saXZla2l0LlN1YnNjcmlwdGlvblJlc3BvbnNlSABSFHN1YnNjcmlwdGlvblJlc3Bvbn' + 'NlQgkKB21lc3NhZ2U='); + @$core.Deprecated('Use simulcastCodecDescriptor instead') -const SimulcastCodec$json = const { +const SimulcastCodec$json = { '1': 'SimulcastCodec', - '2': const [ - const {'1': 'codec', '3': 1, '4': 1, '5': 9, '10': 'codec'}, - const {'1': 'cid', '3': 2, '4': 1, '5': 9, '10': 'cid'}, - const { - '1': 'enable_simulcast_layers', - '3': 3, - '4': 1, - '5': 8, - '10': 'enableSimulcastLayers' - }, + '2': [ + {'1': 'codec', '3': 1, '4': 1, '5': 9, '10': 'codec'}, + {'1': 'cid', '3': 2, '4': 1, '5': 9, '10': 'cid'}, ], }; /// Descriptor for `SimulcastCodec`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List simulcastCodecDescriptor = $convert.base64Decode( - 'Cg5TaW11bGNhc3RDb2RlYxIUCgVjb2RlYxgBIAEoCVIFY29kZWMSEAoDY2lkGAIgASgJUgNjaWQSNgoXZW5hYmxlX3NpbXVsY2FzdF9sYXllcnMYAyABKAhSFWVuYWJsZVNpbXVsY2FzdExheWVycw=='); + 'Cg5TaW11bGNhc3RDb2RlYxIUCgVjb2RlYxgBIAEoCVIFY29kZWMSEAoDY2lkGAIgASgJUgNjaW' + 'Q='); + @$core.Deprecated('Use addTrackRequestDescriptor instead') -const AddTrackRequest$json = const { +const AddTrackRequest$json = { '1': 'AddTrackRequest', - '2': const [ - const {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, - const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, - const { - '1': 'type', - '3': 3, - '4': 1, - '5': 14, - '6': '.livekit.TrackType', - '10': 'type' - }, - const {'1': 'width', '3': 4, '4': 1, '5': 13, '10': 'width'}, - const {'1': 'height', '3': 5, '4': 1, '5': 13, '10': 'height'}, - const {'1': 'muted', '3': 6, '4': 1, '5': 8, '10': 'muted'}, - const {'1': 'disable_dtx', '3': 7, '4': 1, '5': 8, '10': 'disableDtx'}, - const { - '1': 'source', - '3': 8, - '4': 1, - '5': 14, - '6': '.livekit.TrackSource', - '10': 'source' - }, - const { - '1': 'layers', - '3': 9, - '4': 3, - '5': 11, - '6': '.livekit.VideoLayer', - '10': 'layers' - }, - const { - '1': 'simulcast_codecs', - '3': 10, - '4': 3, - '5': 11, - '6': '.livekit.SimulcastCodec', - '10': 'simulcastCodecs' - }, - const {'1': 'sid', '3': 11, '4': 1, '5': 9, '10': 'sid'}, - const {'1': 'stereo', '3': 12, '4': 1, '5': 8, '10': 'stereo'}, - const {'1': 'disable_red', '3': 13, '4': 1, '5': 8, '10': 'disableRed'}, - const { - '1': 'encryption', - '3': 14, - '4': 1, - '5': 14, - '6': '.livekit.Encryption.Type', - '10': 'encryption' - }, + '2': [ + {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + {'1': 'type', '3': 3, '4': 1, '5': 14, '6': '.livekit.TrackType', '10': 'type'}, + {'1': 'width', '3': 4, '4': 1, '5': 13, '10': 'width'}, + {'1': 'height', '3': 5, '4': 1, '5': 13, '10': 'height'}, + {'1': 'muted', '3': 6, '4': 1, '5': 8, '10': 'muted'}, + {'1': 'disable_dtx', '3': 7, '4': 1, '5': 8, '10': 'disableDtx'}, + {'1': 'source', '3': 8, '4': 1, '5': 14, '6': '.livekit.TrackSource', '10': 'source'}, + {'1': 'layers', '3': 9, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, + {'1': 'simulcast_codecs', '3': 10, '4': 3, '5': 11, '6': '.livekit.SimulcastCodec', '10': 'simulcastCodecs'}, + {'1': 'sid', '3': 11, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'stereo', '3': 12, '4': 1, '5': 8, '10': 'stereo'}, + {'1': 'disable_red', '3': 13, '4': 1, '5': 8, '10': 'disableRed'}, + {'1': 'encryption', '3': 14, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + {'1': 'stream', '3': 15, '4': 1, '5': 9, '10': 'stream'}, ], }; /// Descriptor for `AddTrackRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List addTrackRequestDescriptor = $convert.base64Decode( - 'Cg9BZGRUcmFja1JlcXVlc3QSEAoDY2lkGAEgASgJUgNjaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRImCgR0eXBlGAMgASgOMhIubGl2ZWtpdC5UcmFja1R5cGVSBHR5cGUSFAoFd2lkdGgYBCABKA1SBXdpZHRoEhYKBmhlaWdodBgFIAEoDVIGaGVpZ2h0EhQKBW11dGVkGAYgASgIUgVtdXRlZBIfCgtkaXNhYmxlX2R0eBgHIAEoCFIKZGlzYWJsZUR0eBIsCgZzb3VyY2UYCCABKA4yFC5saXZla2l0LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGAkgAygLMhMubGl2ZWtpdC5WaWRlb0xheWVyUgZsYXllcnMSQgoQc2ltdWxjYXN0X2NvZGVjcxgKIAMoCzIXLmxpdmVraXQuU2ltdWxjYXN0Q29kZWNSD3NpbXVsY2FzdENvZGVjcxIQCgNzaWQYCyABKAlSA3NpZBIWCgZzdGVyZW8YDCABKAhSBnN0ZXJlbxIfCgtkaXNhYmxlX3JlZBgNIAEoCFIKZGlzYWJsZVJlZBI4CgplbmNyeXB0aW9uGA4gASgOMhgubGl2ZWtpdC5FbmNyeXB0aW9uLlR5cGVSCmVuY3J5cHRpb24='); + 'Cg9BZGRUcmFja1JlcXVlc3QSEAoDY2lkGAEgASgJUgNjaWQSEgoEbmFtZRgCIAEoCVIEbmFtZR' + 'ImCgR0eXBlGAMgASgOMhIubGl2ZWtpdC5UcmFja1R5cGVSBHR5cGUSFAoFd2lkdGgYBCABKA1S' + 'BXdpZHRoEhYKBmhlaWdodBgFIAEoDVIGaGVpZ2h0EhQKBW11dGVkGAYgASgIUgVtdXRlZBIfCg' + 'tkaXNhYmxlX2R0eBgHIAEoCFIKZGlzYWJsZUR0eBIsCgZzb3VyY2UYCCABKA4yFC5saXZla2l0' + 'LlRyYWNrU291cmNlUgZzb3VyY2USKwoGbGF5ZXJzGAkgAygLMhMubGl2ZWtpdC5WaWRlb0xheW' + 'VyUgZsYXllcnMSQgoQc2ltdWxjYXN0X2NvZGVjcxgKIAMoCzIXLmxpdmVraXQuU2ltdWxjYXN0' + 'Q29kZWNSD3NpbXVsY2FzdENvZGVjcxIQCgNzaWQYCyABKAlSA3NpZBIWCgZzdGVyZW8YDCABKA' + 'hSBnN0ZXJlbxIfCgtkaXNhYmxlX3JlZBgNIAEoCFIKZGlzYWJsZVJlZBI4CgplbmNyeXB0aW9u' + 'GA4gASgOMhgubGl2ZWtpdC5FbmNyeXB0aW9uLlR5cGVSCmVuY3J5cHRpb24SFgoGc3RyZWFtGA' + '8gASgJUgZzdHJlYW0='); + @$core.Deprecated('Use trickleRequestDescriptor instead') -const TrickleRequest$json = const { +const TrickleRequest$json = { '1': 'TrickleRequest', - '2': const [ - const {'1': 'candidateInit', '3': 1, '4': 1, '5': 9, '10': 'candidateInit'}, - const { - '1': 'target', - '3': 2, - '4': 1, - '5': 14, - '6': '.livekit.SignalTarget', - '10': 'target' - }, + '2': [ + {'1': 'candidateInit', '3': 1, '4': 1, '5': 9, '10': 'candidateInit'}, + {'1': 'target', '3': 2, '4': 1, '5': 14, '6': '.livekit.SignalTarget', '10': 'target'}, ], }; /// Descriptor for `TrickleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trickleRequestDescriptor = $convert.base64Decode( - 'Cg5Ucmlja2xlUmVxdWVzdBIkCg1jYW5kaWRhdGVJbml0GAEgASgJUg1jYW5kaWRhdGVJbml0Ei0KBnRhcmdldBgCIAEoDjIVLmxpdmVraXQuU2lnbmFsVGFyZ2V0UgZ0YXJnZXQ='); + 'Cg5Ucmlja2xlUmVxdWVzdBIkCg1jYW5kaWRhdGVJbml0GAEgASgJUg1jYW5kaWRhdGVJbml0Ei' + '0KBnRhcmdldBgCIAEoDjIVLmxpdmVraXQuU2lnbmFsVGFyZ2V0UgZ0YXJnZXQ='); + @$core.Deprecated('Use muteTrackRequestDescriptor instead') -const MuteTrackRequest$json = const { +const MuteTrackRequest$json = { '1': 'MuteTrackRequest', - '2': const [ - const {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - const {'1': 'muted', '3': 2, '4': 1, '5': 8, '10': 'muted'}, + '2': [ + {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'muted', '3': 2, '4': 1, '5': 8, '10': 'muted'}, ], }; /// Descriptor for `MuteTrackRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List muteTrackRequestDescriptor = $convert.base64Decode( - 'ChBNdXRlVHJhY2tSZXF1ZXN0EhAKA3NpZBgBIAEoCVIDc2lkEhQKBW11dGVkGAIgASgIUgVtdXRlZA=='); + 'ChBNdXRlVHJhY2tSZXF1ZXN0EhAKA3NpZBgBIAEoCVIDc2lkEhQKBW11dGVkGAIgASgIUgVtdX' + 'RlZA=='); + @$core.Deprecated('Use joinResponseDescriptor instead') -const JoinResponse$json = const { +const JoinResponse$json = { '1': 'JoinResponse', - '2': const [ - const { - '1': 'room', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.Room', - '10': 'room' - }, - const { - '1': 'participant', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.ParticipantInfo', - '10': 'participant' - }, - const { - '1': 'other_participants', - '3': 3, - '4': 3, - '5': 11, - '6': '.livekit.ParticipantInfo', - '10': 'otherParticipants' - }, - const { - '1': 'server_version', - '3': 4, - '4': 1, - '5': 9, - '10': 'serverVersion' - }, - const { - '1': 'ice_servers', - '3': 5, - '4': 3, - '5': 11, - '6': '.livekit.ICEServer', - '10': 'iceServers' - }, - const { - '1': 'subscriber_primary', - '3': 6, - '4': 1, - '5': 8, - '10': 'subscriberPrimary' - }, - const { - '1': 'alternative_url', - '3': 7, - '4': 1, - '5': 9, - '10': 'alternativeUrl' - }, - const { - '1': 'client_configuration', - '3': 8, - '4': 1, - '5': 11, - '6': '.livekit.ClientConfiguration', - '10': 'clientConfiguration' - }, - const {'1': 'server_region', '3': 9, '4': 1, '5': 9, '10': 'serverRegion'}, - const {'1': 'ping_timeout', '3': 10, '4': 1, '5': 5, '10': 'pingTimeout'}, - const {'1': 'ping_interval', '3': 11, '4': 1, '5': 5, '10': 'pingInterval'}, - const { - '1': 'server_info', - '3': 12, - '4': 1, - '5': 11, - '6': '.livekit.ServerInfo', - '10': 'serverInfo' - }, + '2': [ + {'1': 'room', '3': 1, '4': 1, '5': 11, '6': '.livekit.Room', '10': 'room'}, + {'1': 'participant', '3': 2, '4': 1, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'participant'}, + {'1': 'other_participants', '3': 3, '4': 3, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'otherParticipants'}, + {'1': 'server_version', '3': 4, '4': 1, '5': 9, '10': 'serverVersion'}, + {'1': 'ice_servers', '3': 5, '4': 3, '5': 11, '6': '.livekit.ICEServer', '10': 'iceServers'}, + {'1': 'subscriber_primary', '3': 6, '4': 1, '5': 8, '10': 'subscriberPrimary'}, + {'1': 'alternative_url', '3': 7, '4': 1, '5': 9, '10': 'alternativeUrl'}, + {'1': 'client_configuration', '3': 8, '4': 1, '5': 11, '6': '.livekit.ClientConfiguration', '10': 'clientConfiguration'}, + {'1': 'server_region', '3': 9, '4': 1, '5': 9, '10': 'serverRegion'}, + {'1': 'ping_timeout', '3': 10, '4': 1, '5': 5, '10': 'pingTimeout'}, + {'1': 'ping_interval', '3': 11, '4': 1, '5': 5, '10': 'pingInterval'}, + {'1': 'server_info', '3': 12, '4': 1, '5': 11, '6': '.livekit.ServerInfo', '10': 'serverInfo'}, + {'1': 'sif_trailer', '3': 13, '4': 1, '5': 12, '10': 'sifTrailer'}, ], }; /// Descriptor for `JoinResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List joinResponseDescriptor = $convert.base64Decode( - 'CgxKb2luUmVzcG9uc2USIQoEcm9vbRgBIAEoCzINLmxpdmVraXQuUm9vbVIEcm9vbRI6CgtwYXJ0aWNpcGFudBgCIAEoCzIYLmxpdmVraXQuUGFydGljaXBhbnRJbmZvUgtwYXJ0aWNpcGFudBJHChJvdGhlcl9wYXJ0aWNpcGFudHMYAyADKAsyGC5saXZla2l0LlBhcnRpY2lwYW50SW5mb1IRb3RoZXJQYXJ0aWNpcGFudHMSJQoOc2VydmVyX3ZlcnNpb24YBCABKAlSDXNlcnZlclZlcnNpb24SMwoLaWNlX3NlcnZlcnMYBSADKAsyEi5saXZla2l0LklDRVNlcnZlclIKaWNlU2VydmVycxItChJzdWJzY3JpYmVyX3ByaW1hcnkYBiABKAhSEXN1YnNjcmliZXJQcmltYXJ5EicKD2FsdGVybmF0aXZlX3VybBgHIAEoCVIOYWx0ZXJuYXRpdmVVcmwSTwoUY2xpZW50X2NvbmZpZ3VyYXRpb24YCCABKAsyHC5saXZla2l0LkNsaWVudENvbmZpZ3VyYXRpb25SE2NsaWVudENvbmZpZ3VyYXRpb24SIwoNc2VydmVyX3JlZ2lvbhgJIAEoCVIMc2VydmVyUmVnaW9uEiEKDHBpbmdfdGltZW91dBgKIAEoBVILcGluZ1RpbWVvdXQSIwoNcGluZ19pbnRlcnZhbBgLIAEoBVIMcGluZ0ludGVydmFsEjQKC3NlcnZlcl9pbmZvGAwgASgLMhMubGl2ZWtpdC5TZXJ2ZXJJbmZvUgpzZXJ2ZXJJbmZv'); + 'CgxKb2luUmVzcG9uc2USIQoEcm9vbRgBIAEoCzINLmxpdmVraXQuUm9vbVIEcm9vbRI6CgtwYX' + 'J0aWNpcGFudBgCIAEoCzIYLmxpdmVraXQuUGFydGljaXBhbnRJbmZvUgtwYXJ0aWNpcGFudBJH' + 'ChJvdGhlcl9wYXJ0aWNpcGFudHMYAyADKAsyGC5saXZla2l0LlBhcnRpY2lwYW50SW5mb1IRb3' + 'RoZXJQYXJ0aWNpcGFudHMSJQoOc2VydmVyX3ZlcnNpb24YBCABKAlSDXNlcnZlclZlcnNpb24S' + 'MwoLaWNlX3NlcnZlcnMYBSADKAsyEi5saXZla2l0LklDRVNlcnZlclIKaWNlU2VydmVycxItCh' + 'JzdWJzY3JpYmVyX3ByaW1hcnkYBiABKAhSEXN1YnNjcmliZXJQcmltYXJ5EicKD2FsdGVybmF0' + 'aXZlX3VybBgHIAEoCVIOYWx0ZXJuYXRpdmVVcmwSTwoUY2xpZW50X2NvbmZpZ3VyYXRpb24YCC' + 'ABKAsyHC5saXZla2l0LkNsaWVudENvbmZpZ3VyYXRpb25SE2NsaWVudENvbmZpZ3VyYXRpb24S' + 'IwoNc2VydmVyX3JlZ2lvbhgJIAEoCVIMc2VydmVyUmVnaW9uEiEKDHBpbmdfdGltZW91dBgKIA' + 'EoBVILcGluZ1RpbWVvdXQSIwoNcGluZ19pbnRlcnZhbBgLIAEoBVIMcGluZ0ludGVydmFsEjQK' + 'C3NlcnZlcl9pbmZvGAwgASgLMhMubGl2ZWtpdC5TZXJ2ZXJJbmZvUgpzZXJ2ZXJJbmZvEh8KC3' + 'NpZl90cmFpbGVyGA0gASgMUgpzaWZUcmFpbGVy'); + @$core.Deprecated('Use reconnectResponseDescriptor instead') -const ReconnectResponse$json = const { +const ReconnectResponse$json = { '1': 'ReconnectResponse', - '2': const [ - const { - '1': 'ice_servers', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.ICEServer', - '10': 'iceServers' - }, - const { - '1': 'client_configuration', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.ClientConfiguration', - '10': 'clientConfiguration' - }, + '2': [ + {'1': 'ice_servers', '3': 1, '4': 3, '5': 11, '6': '.livekit.ICEServer', '10': 'iceServers'}, + {'1': 'client_configuration', '3': 2, '4': 1, '5': 11, '6': '.livekit.ClientConfiguration', '10': 'clientConfiguration'}, ], }; /// Descriptor for `ReconnectResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reconnectResponseDescriptor = $convert.base64Decode( - 'ChFSZWNvbm5lY3RSZXNwb25zZRIzCgtpY2Vfc2VydmVycxgBIAMoCzISLmxpdmVraXQuSUNFU2VydmVyUgppY2VTZXJ2ZXJzEk8KFGNsaWVudF9jb25maWd1cmF0aW9uGAIgASgLMhwubGl2ZWtpdC5DbGllbnRDb25maWd1cmF0aW9uUhNjbGllbnRDb25maWd1cmF0aW9u'); + 'ChFSZWNvbm5lY3RSZXNwb25zZRIzCgtpY2Vfc2VydmVycxgBIAMoCzISLmxpdmVraXQuSUNFU2' + 'VydmVyUgppY2VTZXJ2ZXJzEk8KFGNsaWVudF9jb25maWd1cmF0aW9uGAIgASgLMhwubGl2ZWtp' + 'dC5DbGllbnRDb25maWd1cmF0aW9uUhNjbGllbnRDb25maWd1cmF0aW9u'); + @$core.Deprecated('Use trackPublishedResponseDescriptor instead') -const TrackPublishedResponse$json = const { +const TrackPublishedResponse$json = { '1': 'TrackPublishedResponse', - '2': const [ - const {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, - const { - '1': 'track', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.TrackInfo', - '10': 'track' - }, + '2': [ + {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, + {'1': 'track', '3': 2, '4': 1, '5': 11, '6': '.livekit.TrackInfo', '10': 'track'}, ], }; /// Descriptor for `TrackPublishedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trackPublishedResponseDescriptor = - $convert.base64Decode( - 'ChZUcmFja1B1Ymxpc2hlZFJlc3BvbnNlEhAKA2NpZBgBIAEoCVIDY2lkEigKBXRyYWNrGAIgASgLMhIubGl2ZWtpdC5UcmFja0luZm9SBXRyYWNr'); +final $typed_data.Uint8List trackPublishedResponseDescriptor = $convert.base64Decode( + 'ChZUcmFja1B1Ymxpc2hlZFJlc3BvbnNlEhAKA2NpZBgBIAEoCVIDY2lkEigKBXRyYWNrGAIgAS' + 'gLMhIubGl2ZWtpdC5UcmFja0luZm9SBXRyYWNr'); + @$core.Deprecated('Use trackUnpublishedResponseDescriptor instead') -const TrackUnpublishedResponse$json = const { +const TrackUnpublishedResponse$json = { '1': 'TrackUnpublishedResponse', - '2': const [ - const {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, + '2': [ + {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, ], }; /// Descriptor for `TrackUnpublishedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trackUnpublishedResponseDescriptor = - $convert.base64Decode( - 'ChhUcmFja1VucHVibGlzaGVkUmVzcG9uc2USGwoJdHJhY2tfc2lkGAEgASgJUgh0cmFja1NpZA=='); +final $typed_data.Uint8List trackUnpublishedResponseDescriptor = $convert.base64Decode( + 'ChhUcmFja1VucHVibGlzaGVkUmVzcG9uc2USGwoJdHJhY2tfc2lkGAEgASgJUgh0cmFja1NpZA' + '=='); + @$core.Deprecated('Use sessionDescriptionDescriptor instead') -const SessionDescription$json = const { +const SessionDescription$json = { '1': 'SessionDescription', - '2': const [ - const {'1': 'type', '3': 1, '4': 1, '5': 9, '10': 'type'}, - const {'1': 'sdp', '3': 2, '4': 1, '5': 9, '10': 'sdp'}, + '2': [ + {'1': 'type', '3': 1, '4': 1, '5': 9, '10': 'type'}, + {'1': 'sdp', '3': 2, '4': 1, '5': 9, '10': 'sdp'}, ], }; /// Descriptor for `SessionDescription`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sessionDescriptionDescriptor = $convert.base64Decode( - 'ChJTZXNzaW9uRGVzY3JpcHRpb24SEgoEdHlwZRgBIAEoCVIEdHlwZRIQCgNzZHAYAiABKAlSA3NkcA=='); + 'ChJTZXNzaW9uRGVzY3JpcHRpb24SEgoEdHlwZRgBIAEoCVIEdHlwZRIQCgNzZHAYAiABKAlSA3' + 'NkcA=='); + @$core.Deprecated('Use participantUpdateDescriptor instead') -const ParticipantUpdate$json = const { +const ParticipantUpdate$json = { '1': 'ParticipantUpdate', - '2': const [ - const { - '1': 'participants', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.ParticipantInfo', - '10': 'participants' - }, + '2': [ + {'1': 'participants', '3': 1, '4': 3, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'participants'}, ], }; /// Descriptor for `ParticipantUpdate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List participantUpdateDescriptor = $convert.base64Decode( - 'ChFQYXJ0aWNpcGFudFVwZGF0ZRI8CgxwYXJ0aWNpcGFudHMYASADKAsyGC5saXZla2l0LlBhcnRpY2lwYW50SW5mb1IMcGFydGljaXBhbnRz'); + 'ChFQYXJ0aWNpcGFudFVwZGF0ZRI8CgxwYXJ0aWNpcGFudHMYASADKAsyGC5saXZla2l0LlBhcn' + 'RpY2lwYW50SW5mb1IMcGFydGljaXBhbnRz'); + @$core.Deprecated('Use updateSubscriptionDescriptor instead') -const UpdateSubscription$json = const { +const UpdateSubscription$json = { '1': 'UpdateSubscription', - '2': const [ - const {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, - const {'1': 'subscribe', '3': 2, '4': 1, '5': 8, '10': 'subscribe'}, - const { - '1': 'participant_tracks', - '3': 3, - '4': 3, - '5': 11, - '6': '.livekit.ParticipantTracks', - '10': 'participantTracks' - }, + '2': [ + {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, + {'1': 'subscribe', '3': 2, '4': 1, '5': 8, '10': 'subscribe'}, + {'1': 'participant_tracks', '3': 3, '4': 3, '5': 11, '6': '.livekit.ParticipantTracks', '10': 'participantTracks'}, ], }; /// Descriptor for `UpdateSubscription`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateSubscriptionDescriptor = $convert.base64Decode( - 'ChJVcGRhdGVTdWJzY3JpcHRpb24SHQoKdHJhY2tfc2lkcxgBIAMoCVIJdHJhY2tTaWRzEhwKCXN1YnNjcmliZRgCIAEoCFIJc3Vic2NyaWJlEkkKEnBhcnRpY2lwYW50X3RyYWNrcxgDIAMoCzIaLmxpdmVraXQuUGFydGljaXBhbnRUcmFja3NSEXBhcnRpY2lwYW50VHJhY2tz'); + 'ChJVcGRhdGVTdWJzY3JpcHRpb24SHQoKdHJhY2tfc2lkcxgBIAMoCVIJdHJhY2tTaWRzEhwKCX' + 'N1YnNjcmliZRgCIAEoCFIJc3Vic2NyaWJlEkkKEnBhcnRpY2lwYW50X3RyYWNrcxgDIAMoCzIa' + 'LmxpdmVraXQuUGFydGljaXBhbnRUcmFja3NSEXBhcnRpY2lwYW50VHJhY2tz'); + @$core.Deprecated('Use updateTrackSettingsDescriptor instead') -const UpdateTrackSettings$json = const { +const UpdateTrackSettings$json = { '1': 'UpdateTrackSettings', - '2': const [ - const {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, - const {'1': 'disabled', '3': 3, '4': 1, '5': 8, '10': 'disabled'}, - const { - '1': 'quality', - '3': 4, - '4': 1, - '5': 14, - '6': '.livekit.VideoQuality', - '10': 'quality' - }, - const {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, - const {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, - const {'1': 'fps', '3': 7, '4': 1, '5': 13, '10': 'fps'}, - const {'1': 'priority', '3': 8, '4': 1, '5': 13, '10': 'priority'}, + '2': [ + {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, + {'1': 'disabled', '3': 3, '4': 1, '5': 8, '10': 'disabled'}, + {'1': 'quality', '3': 4, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, + {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, + {'1': 'fps', '3': 7, '4': 1, '5': 13, '10': 'fps'}, + {'1': 'priority', '3': 8, '4': 1, '5': 13, '10': 'priority'}, ], }; /// Descriptor for `UpdateTrackSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateTrackSettingsDescriptor = $convert.base64Decode( - 'ChNVcGRhdGVUcmFja1NldHRpbmdzEh0KCnRyYWNrX3NpZHMYASADKAlSCXRyYWNrU2lkcxIaCghkaXNhYmxlZBgDIAEoCFIIZGlzYWJsZWQSLwoHcXVhbGl0eRgEIAEoDjIVLmxpdmVraXQuVmlkZW9RdWFsaXR5UgdxdWFsaXR5EhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIQCgNmcHMYByABKA1SA2ZwcxIaCghwcmlvcml0eRgIIAEoDVIIcHJpb3JpdHk='); + 'ChNVcGRhdGVUcmFja1NldHRpbmdzEh0KCnRyYWNrX3NpZHMYASADKAlSCXRyYWNrU2lkcxIaCg' + 'hkaXNhYmxlZBgDIAEoCFIIZGlzYWJsZWQSLwoHcXVhbGl0eRgEIAEoDjIVLmxpdmVraXQuVmlk' + 'ZW9RdWFsaXR5UgdxdWFsaXR5EhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA' + '1SBmhlaWdodBIQCgNmcHMYByABKA1SA2ZwcxIaCghwcmlvcml0eRgIIAEoDVIIcHJpb3JpdHk='); + @$core.Deprecated('Use leaveRequestDescriptor instead') -const LeaveRequest$json = const { +const LeaveRequest$json = { '1': 'LeaveRequest', - '2': const [ - const {'1': 'can_reconnect', '3': 1, '4': 1, '5': 8, '10': 'canReconnect'}, - const { - '1': 'reason', - '3': 2, - '4': 1, - '5': 14, - '6': '.livekit.DisconnectReason', - '10': 'reason' - }, + '2': [ + {'1': 'can_reconnect', '3': 1, '4': 1, '5': 8, '10': 'canReconnect'}, + {'1': 'reason', '3': 2, '4': 1, '5': 14, '6': '.livekit.DisconnectReason', '10': 'reason'}, ], }; /// Descriptor for `LeaveRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List leaveRequestDescriptor = $convert.base64Decode( - 'CgxMZWF2ZVJlcXVlc3QSIwoNY2FuX3JlY29ubmVjdBgBIAEoCFIMY2FuUmVjb25uZWN0EjEKBnJlYXNvbhgCIAEoDjIZLmxpdmVraXQuRGlzY29ubmVjdFJlYXNvblIGcmVhc29u'); + 'CgxMZWF2ZVJlcXVlc3QSIwoNY2FuX3JlY29ubmVjdBgBIAEoCFIMY2FuUmVjb25uZWN0EjEKBn' + 'JlYXNvbhgCIAEoDjIZLmxpdmVraXQuRGlzY29ubmVjdFJlYXNvblIGcmVhc29u'); + @$core.Deprecated('Use updateVideoLayersDescriptor instead') -const UpdateVideoLayers$json = const { +const UpdateVideoLayers$json = { '1': 'UpdateVideoLayers', - '2': const [ - const {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, - const { - '1': 'layers', - '3': 2, - '4': 3, - '5': 11, - '6': '.livekit.VideoLayer', - '10': 'layers' - }, + '2': [ + {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'layers', '3': 2, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, ], }; /// Descriptor for `UpdateVideoLayers`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateVideoLayersDescriptor = $convert.base64Decode( - 'ChFVcGRhdGVWaWRlb0xheWVycxIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEisKBmxheWVycxgCIAMoCzITLmxpdmVraXQuVmlkZW9MYXllclIGbGF5ZXJz'); + 'ChFVcGRhdGVWaWRlb0xheWVycxIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEisKBmxheW' + 'VycxgCIAMoCzITLmxpdmVraXQuVmlkZW9MYXllclIGbGF5ZXJz'); + @$core.Deprecated('Use updateParticipantMetadataDescriptor instead') -const UpdateParticipantMetadata$json = const { +const UpdateParticipantMetadata$json = { '1': 'UpdateParticipantMetadata', - '2': const [ - const {'1': 'metadata', '3': 1, '4': 1, '5': 9, '10': 'metadata'}, - const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + '2': [ + {'1': 'metadata', '3': 1, '4': 1, '5': 9, '10': 'metadata'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, ], }; /// Descriptor for `UpdateParticipantMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateParticipantMetadataDescriptor = - $convert.base64Decode( - 'ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEhoKCG1ldGFkYXRhGAEgASgJUghtZXRhZGF0YRISCgRuYW1lGAIgASgJUgRuYW1l'); +final $typed_data.Uint8List updateParticipantMetadataDescriptor = $convert.base64Decode( + 'ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEhoKCG1ldGFkYXRhGAEgASgJUghtZXRhZGF0YR' + 'ISCgRuYW1lGAIgASgJUgRuYW1l'); + @$core.Deprecated('Use iCEServerDescriptor instead') -const ICEServer$json = const { +const ICEServer$json = { '1': 'ICEServer', - '2': const [ - const {'1': 'urls', '3': 1, '4': 3, '5': 9, '10': 'urls'}, - const {'1': 'username', '3': 2, '4': 1, '5': 9, '10': 'username'}, - const {'1': 'credential', '3': 3, '4': 1, '5': 9, '10': 'credential'}, + '2': [ + {'1': 'urls', '3': 1, '4': 3, '5': 9, '10': 'urls'}, + {'1': 'username', '3': 2, '4': 1, '5': 9, '10': 'username'}, + {'1': 'credential', '3': 3, '4': 1, '5': 9, '10': 'credential'}, ], }; /// Descriptor for `ICEServer`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List iCEServerDescriptor = $convert.base64Decode( - 'CglJQ0VTZXJ2ZXISEgoEdXJscxgBIAMoCVIEdXJscxIaCgh1c2VybmFtZRgCIAEoCVIIdXNlcm5hbWUSHgoKY3JlZGVudGlhbBgDIAEoCVIKY3JlZGVudGlhbA=='); + 'CglJQ0VTZXJ2ZXISEgoEdXJscxgBIAMoCVIEdXJscxIaCgh1c2VybmFtZRgCIAEoCVIIdXNlcm' + '5hbWUSHgoKY3JlZGVudGlhbBgDIAEoCVIKY3JlZGVudGlhbA=='); + @$core.Deprecated('Use speakersChangedDescriptor instead') -const SpeakersChanged$json = const { +const SpeakersChanged$json = { '1': 'SpeakersChanged', - '2': const [ - const { - '1': 'speakers', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.SpeakerInfo', - '10': 'speakers' - }, + '2': [ + {'1': 'speakers', '3': 1, '4': 3, '5': 11, '6': '.livekit.SpeakerInfo', '10': 'speakers'}, ], }; /// Descriptor for `SpeakersChanged`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List speakersChangedDescriptor = $convert.base64Decode( - 'Cg9TcGVha2Vyc0NoYW5nZWQSMAoIc3BlYWtlcnMYASADKAsyFC5saXZla2l0LlNwZWFrZXJJbmZvUghzcGVha2Vycw=='); + 'Cg9TcGVha2Vyc0NoYW5nZWQSMAoIc3BlYWtlcnMYASADKAsyFC5saXZla2l0LlNwZWFrZXJJbm' + 'ZvUghzcGVha2Vycw=='); + @$core.Deprecated('Use roomUpdateDescriptor instead') -const RoomUpdate$json = const { +const RoomUpdate$json = { '1': 'RoomUpdate', - '2': const [ - const { - '1': 'room', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.Room', - '10': 'room' - }, + '2': [ + {'1': 'room', '3': 1, '4': 1, '5': 11, '6': '.livekit.Room', '10': 'room'}, ], }; /// Descriptor for `RoomUpdate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List roomUpdateDescriptor = $convert.base64Decode( 'CgpSb29tVXBkYXRlEiEKBHJvb20YASABKAsyDS5saXZla2l0LlJvb21SBHJvb20='); + @$core.Deprecated('Use connectionQualityInfoDescriptor instead') -const ConnectionQualityInfo$json = const { +const ConnectionQualityInfo$json = { '1': 'ConnectionQualityInfo', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const { - '1': 'quality', - '3': 2, - '4': 1, - '5': 14, - '6': '.livekit.ConnectionQuality', - '10': 'quality' - }, - const {'1': 'score', '3': 3, '4': 1, '5': 2, '10': 'score'}, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'quality', '3': 2, '4': 1, '5': 14, '6': '.livekit.ConnectionQuality', '10': 'quality'}, + {'1': 'score', '3': 3, '4': 1, '5': 2, '10': 'score'}, ], }; /// Descriptor for `ConnectionQualityInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List connectionQualityInfoDescriptor = $convert.base64Decode( - 'ChVDb25uZWN0aW9uUXVhbGl0eUluZm8SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aWNpcGFudFNpZBI0CgdxdWFsaXR5GAIgASgOMhoubGl2ZWtpdC5Db25uZWN0aW9uUXVhbGl0eVIHcXVhbGl0eRIUCgVzY29yZRgDIAEoAlIFc2NvcmU='); + 'ChVDb25uZWN0aW9uUXVhbGl0eUluZm8SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aW' + 'NpcGFudFNpZBI0CgdxdWFsaXR5GAIgASgOMhoubGl2ZWtpdC5Db25uZWN0aW9uUXVhbGl0eVIH' + 'cXVhbGl0eRIUCgVzY29yZRgDIAEoAlIFc2NvcmU='); + @$core.Deprecated('Use connectionQualityUpdateDescriptor instead') -const ConnectionQualityUpdate$json = const { +const ConnectionQualityUpdate$json = { '1': 'ConnectionQualityUpdate', - '2': const [ - const { - '1': 'updates', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.ConnectionQualityInfo', - '10': 'updates' - }, + '2': [ + {'1': 'updates', '3': 1, '4': 3, '5': 11, '6': '.livekit.ConnectionQualityInfo', '10': 'updates'}, ], }; /// Descriptor for `ConnectionQualityUpdate`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectionQualityUpdateDescriptor = - $convert.base64Decode( - 'ChdDb25uZWN0aW9uUXVhbGl0eVVwZGF0ZRI4Cgd1cGRhdGVzGAEgAygLMh4ubGl2ZWtpdC5Db25uZWN0aW9uUXVhbGl0eUluZm9SB3VwZGF0ZXM='); +final $typed_data.Uint8List connectionQualityUpdateDescriptor = $convert.base64Decode( + 'ChdDb25uZWN0aW9uUXVhbGl0eVVwZGF0ZRI4Cgd1cGRhdGVzGAEgAygLMh4ubGl2ZWtpdC5Db2' + '5uZWN0aW9uUXVhbGl0eUluZm9SB3VwZGF0ZXM='); + @$core.Deprecated('Use streamStateInfoDescriptor instead') -const StreamStateInfo$json = const { +const StreamStateInfo$json = { '1': 'StreamStateInfo', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const {'1': 'track_sid', '3': 2, '4': 1, '5': 9, '10': 'trackSid'}, - const { - '1': 'state', - '3': 3, - '4': 1, - '5': 14, - '6': '.livekit.StreamState', - '10': 'state' - }, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'track_sid', '3': 2, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'state', '3': 3, '4': 1, '5': 14, '6': '.livekit.StreamState', '10': 'state'}, ], }; /// Descriptor for `StreamStateInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List streamStateInfoDescriptor = $convert.base64Decode( - 'Cg9TdHJlYW1TdGF0ZUluZm8SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aWNpcGFudFNpZBIbCgl0cmFja19zaWQYAiABKAlSCHRyYWNrU2lkEioKBXN0YXRlGAMgASgOMhQubGl2ZWtpdC5TdHJlYW1TdGF0ZVIFc3RhdGU='); + 'Cg9TdHJlYW1TdGF0ZUluZm8SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aWNpcGFudF' + 'NpZBIbCgl0cmFja19zaWQYAiABKAlSCHRyYWNrU2lkEioKBXN0YXRlGAMgASgOMhQubGl2ZWtp' + 'dC5TdHJlYW1TdGF0ZVIFc3RhdGU='); + @$core.Deprecated('Use streamStateUpdateDescriptor instead') -const StreamStateUpdate$json = const { +const StreamStateUpdate$json = { '1': 'StreamStateUpdate', - '2': const [ - const { - '1': 'stream_states', - '3': 1, - '4': 3, - '5': 11, - '6': '.livekit.StreamStateInfo', - '10': 'streamStates' - }, + '2': [ + {'1': 'stream_states', '3': 1, '4': 3, '5': 11, '6': '.livekit.StreamStateInfo', '10': 'streamStates'}, ], }; /// Descriptor for `StreamStateUpdate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List streamStateUpdateDescriptor = $convert.base64Decode( - 'ChFTdHJlYW1TdGF0ZVVwZGF0ZRI9Cg1zdHJlYW1fc3RhdGVzGAEgAygLMhgubGl2ZWtpdC5TdHJlYW1TdGF0ZUluZm9SDHN0cmVhbVN0YXRlcw=='); + 'ChFTdHJlYW1TdGF0ZVVwZGF0ZRI9Cg1zdHJlYW1fc3RhdGVzGAEgAygLMhgubGl2ZWtpdC5TdH' + 'JlYW1TdGF0ZUluZm9SDHN0cmVhbVN0YXRlcw=='); + @$core.Deprecated('Use subscribedQualityDescriptor instead') -const SubscribedQuality$json = const { +const SubscribedQuality$json = { '1': 'SubscribedQuality', - '2': const [ - const { - '1': 'quality', - '3': 1, - '4': 1, - '5': 14, - '6': '.livekit.VideoQuality', - '10': 'quality' - }, - const {'1': 'enabled', '3': 2, '4': 1, '5': 8, '10': 'enabled'}, + '2': [ + {'1': 'quality', '3': 1, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + {'1': 'enabled', '3': 2, '4': 1, '5': 8, '10': 'enabled'}, ], }; /// Descriptor for `SubscribedQuality`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List subscribedQualityDescriptor = $convert.base64Decode( - 'ChFTdWJzY3JpYmVkUXVhbGl0eRIvCgdxdWFsaXR5GAEgASgOMhUubGl2ZWtpdC5WaWRlb1F1YWxpdHlSB3F1YWxpdHkSGAoHZW5hYmxlZBgCIAEoCFIHZW5hYmxlZA=='); + 'ChFTdWJzY3JpYmVkUXVhbGl0eRIvCgdxdWFsaXR5GAEgASgOMhUubGl2ZWtpdC5WaWRlb1F1YW' + 'xpdHlSB3F1YWxpdHkSGAoHZW5hYmxlZBgCIAEoCFIHZW5hYmxlZA=='); + @$core.Deprecated('Use subscribedCodecDescriptor instead') -const SubscribedCodec$json = const { +const SubscribedCodec$json = { '1': 'SubscribedCodec', - '2': const [ - const {'1': 'codec', '3': 1, '4': 1, '5': 9, '10': 'codec'}, - const { - '1': 'qualities', - '3': 2, - '4': 3, - '5': 11, - '6': '.livekit.SubscribedQuality', - '10': 'qualities' - }, + '2': [ + {'1': 'codec', '3': 1, '4': 1, '5': 9, '10': 'codec'}, + {'1': 'qualities', '3': 2, '4': 3, '5': 11, '6': '.livekit.SubscribedQuality', '10': 'qualities'}, ], }; /// Descriptor for `SubscribedCodec`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List subscribedCodecDescriptor = $convert.base64Decode( - 'Cg9TdWJzY3JpYmVkQ29kZWMSFAoFY29kZWMYASABKAlSBWNvZGVjEjgKCXF1YWxpdGllcxgCIAMoCzIaLmxpdmVraXQuU3Vic2NyaWJlZFF1YWxpdHlSCXF1YWxpdGllcw=='); + 'Cg9TdWJzY3JpYmVkQ29kZWMSFAoFY29kZWMYASABKAlSBWNvZGVjEjgKCXF1YWxpdGllcxgCIA' + 'MoCzIaLmxpdmVraXQuU3Vic2NyaWJlZFF1YWxpdHlSCXF1YWxpdGllcw=='); + @$core.Deprecated('Use subscribedQualityUpdateDescriptor instead') -const SubscribedQualityUpdate$json = const { +const SubscribedQualityUpdate$json = { '1': 'SubscribedQualityUpdate', - '2': const [ - const {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, - const { - '1': 'subscribed_qualities', - '3': 2, - '4': 3, - '5': 11, - '6': '.livekit.SubscribedQuality', - '10': 'subscribedQualities' - }, - const { - '1': 'subscribed_codecs', - '3': 3, - '4': 3, - '5': 11, - '6': '.livekit.SubscribedCodec', - '10': 'subscribedCodecs' - }, + '2': [ + {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'subscribed_qualities', '3': 2, '4': 3, '5': 11, '6': '.livekit.SubscribedQuality', '10': 'subscribedQualities'}, + {'1': 'subscribed_codecs', '3': 3, '4': 3, '5': 11, '6': '.livekit.SubscribedCodec', '10': 'subscribedCodecs'}, ], }; /// Descriptor for `SubscribedQualityUpdate`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscribedQualityUpdateDescriptor = - $convert.base64Decode( - 'ChdTdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZRIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEk0KFHN1YnNjcmliZWRfcXVhbGl0aWVzGAIgAygLMhoubGl2ZWtpdC5TdWJzY3JpYmVkUXVhbGl0eVITc3Vic2NyaWJlZFF1YWxpdGllcxJFChFzdWJzY3JpYmVkX2NvZGVjcxgDIAMoCzIYLmxpdmVraXQuU3Vic2NyaWJlZENvZGVjUhBzdWJzY3JpYmVkQ29kZWNz'); +final $typed_data.Uint8List subscribedQualityUpdateDescriptor = $convert.base64Decode( + 'ChdTdWJzY3JpYmVkUXVhbGl0eVVwZGF0ZRIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEk' + '0KFHN1YnNjcmliZWRfcXVhbGl0aWVzGAIgAygLMhoubGl2ZWtpdC5TdWJzY3JpYmVkUXVhbGl0' + 'eVITc3Vic2NyaWJlZFF1YWxpdGllcxJFChFzdWJzY3JpYmVkX2NvZGVjcxgDIAMoCzIYLmxpdm' + 'VraXQuU3Vic2NyaWJlZENvZGVjUhBzdWJzY3JpYmVkQ29kZWNz'); + @$core.Deprecated('Use trackPermissionDescriptor instead') -const TrackPermission$json = const { +const TrackPermission$json = { '1': 'TrackPermission', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const {'1': 'all_tracks', '3': 2, '4': 1, '5': 8, '10': 'allTracks'}, - const {'1': 'track_sids', '3': 3, '4': 3, '5': 9, '10': 'trackSids'}, - const { - '1': 'participant_identity', - '3': 4, - '4': 1, - '5': 9, - '10': 'participantIdentity' - }, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'all_tracks', '3': 2, '4': 1, '5': 8, '10': 'allTracks'}, + {'1': 'track_sids', '3': 3, '4': 3, '5': 9, '10': 'trackSids'}, + {'1': 'participant_identity', '3': 4, '4': 1, '5': 9, '10': 'participantIdentity'}, ], }; /// Descriptor for `TrackPermission`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trackPermissionDescriptor = $convert.base64Decode( - 'Cg9UcmFja1Blcm1pc3Npb24SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aWNpcGFudFNpZBIdCgphbGxfdHJhY2tzGAIgASgIUglhbGxUcmFja3MSHQoKdHJhY2tfc2lkcxgDIAMoCVIJdHJhY2tTaWRzEjEKFHBhcnRpY2lwYW50X2lkZW50aXR5GAQgASgJUhNwYXJ0aWNpcGFudElkZW50aXR5'); + 'Cg9UcmFja1Blcm1pc3Npb24SJwoPcGFydGljaXBhbnRfc2lkGAEgASgJUg5wYXJ0aWNpcGFudF' + 'NpZBIdCgphbGxfdHJhY2tzGAIgASgIUglhbGxUcmFja3MSHQoKdHJhY2tfc2lkcxgDIAMoCVIJ' + 'dHJhY2tTaWRzEjEKFHBhcnRpY2lwYW50X2lkZW50aXR5GAQgASgJUhNwYXJ0aWNpcGFudElkZW' + '50aXR5'); + @$core.Deprecated('Use subscriptionPermissionDescriptor instead') -const SubscriptionPermission$json = const { +const SubscriptionPermission$json = { '1': 'SubscriptionPermission', - '2': const [ - const { - '1': 'all_participants', - '3': 1, - '4': 1, - '5': 8, - '10': 'allParticipants' - }, - const { - '1': 'track_permissions', - '3': 2, - '4': 3, - '5': 11, - '6': '.livekit.TrackPermission', - '10': 'trackPermissions' - }, + '2': [ + {'1': 'all_participants', '3': 1, '4': 1, '5': 8, '10': 'allParticipants'}, + {'1': 'track_permissions', '3': 2, '4': 3, '5': 11, '6': '.livekit.TrackPermission', '10': 'trackPermissions'}, ], }; /// Descriptor for `SubscriptionPermission`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscriptionPermissionDescriptor = - $convert.base64Decode( - 'ChZTdWJzY3JpcHRpb25QZXJtaXNzaW9uEikKEGFsbF9wYXJ0aWNpcGFudHMYASABKAhSD2FsbFBhcnRpY2lwYW50cxJFChF0cmFja19wZXJtaXNzaW9ucxgCIAMoCzIYLmxpdmVraXQuVHJhY2tQZXJtaXNzaW9uUhB0cmFja1Blcm1pc3Npb25z'); +final $typed_data.Uint8List subscriptionPermissionDescriptor = $convert.base64Decode( + 'ChZTdWJzY3JpcHRpb25QZXJtaXNzaW9uEikKEGFsbF9wYXJ0aWNpcGFudHMYASABKAhSD2FsbF' + 'BhcnRpY2lwYW50cxJFChF0cmFja19wZXJtaXNzaW9ucxgCIAMoCzIYLmxpdmVraXQuVHJhY2tQ' + 'ZXJtaXNzaW9uUhB0cmFja1Blcm1pc3Npb25z'); + @$core.Deprecated('Use subscriptionPermissionUpdateDescriptor instead') -const SubscriptionPermissionUpdate$json = const { +const SubscriptionPermissionUpdate$json = { '1': 'SubscriptionPermissionUpdate', - '2': const [ - const { - '1': 'participant_sid', - '3': 1, - '4': 1, - '5': 9, - '10': 'participantSid' - }, - const {'1': 'track_sid', '3': 2, '4': 1, '5': 9, '10': 'trackSid'}, - const {'1': 'allowed', '3': 3, '4': 1, '5': 8, '10': 'allowed'}, + '2': [ + {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, + {'1': 'track_sid', '3': 2, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'allowed', '3': 3, '4': 1, '5': 8, '10': 'allowed'}, ], }; /// Descriptor for `SubscriptionPermissionUpdate`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscriptionPermissionUpdateDescriptor = - $convert.base64Decode( - 'ChxTdWJzY3JpcHRpb25QZXJtaXNzaW9uVXBkYXRlEicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCVIOcGFydGljaXBhbnRTaWQSGwoJdHJhY2tfc2lkGAIgASgJUgh0cmFja1NpZBIYCgdhbGxvd2VkGAMgASgIUgdhbGxvd2Vk'); +final $typed_data.Uint8List subscriptionPermissionUpdateDescriptor = $convert.base64Decode( + 'ChxTdWJzY3JpcHRpb25QZXJtaXNzaW9uVXBkYXRlEicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCV' + 'IOcGFydGljaXBhbnRTaWQSGwoJdHJhY2tfc2lkGAIgASgJUgh0cmFja1NpZBIYCgdhbGxvd2Vk' + 'GAMgASgIUgdhbGxvd2Vk'); + @$core.Deprecated('Use syncStateDescriptor instead') -const SyncState$json = const { +const SyncState$json = { '1': 'SyncState', - '2': const [ - const { - '1': 'answer', - '3': 1, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '10': 'answer' - }, - const { - '1': 'subscription', - '3': 2, - '4': 1, - '5': 11, - '6': '.livekit.UpdateSubscription', - '10': 'subscription' - }, - const { - '1': 'publish_tracks', - '3': 3, - '4': 3, - '5': 11, - '6': '.livekit.TrackPublishedResponse', - '10': 'publishTracks' - }, - const { - '1': 'data_channels', - '3': 4, - '4': 3, - '5': 11, - '6': '.livekit.DataChannelInfo', - '10': 'dataChannels' - }, - const { - '1': 'offer', - '3': 5, - '4': 1, - '5': 11, - '6': '.livekit.SessionDescription', - '10': 'offer' - }, + '2': [ + {'1': 'answer', '3': 1, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '10': 'answer'}, + {'1': 'subscription', '3': 2, '4': 1, '5': 11, '6': '.livekit.UpdateSubscription', '10': 'subscription'}, + {'1': 'publish_tracks', '3': 3, '4': 3, '5': 11, '6': '.livekit.TrackPublishedResponse', '10': 'publishTracks'}, + {'1': 'data_channels', '3': 4, '4': 3, '5': 11, '6': '.livekit.DataChannelInfo', '10': 'dataChannels'}, + {'1': 'offer', '3': 5, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '10': 'offer'}, ], }; /// Descriptor for `SyncState`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List syncStateDescriptor = $convert.base64Decode( - 'CglTeW5jU3RhdGUSMwoGYW5zd2VyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25SBmFuc3dlchI/CgxzdWJzY3JpcHRpb24YAiABKAsyGy5saXZla2l0LlVwZGF0ZVN1YnNjcmlwdGlvblIMc3Vic2NyaXB0aW9uEkYKDnB1Ymxpc2hfdHJhY2tzGAMgAygLMh8ubGl2ZWtpdC5UcmFja1B1Ymxpc2hlZFJlc3BvbnNlUg1wdWJsaXNoVHJhY2tzEj0KDWRhdGFfY2hhbm5lbHMYBCADKAsyGC5saXZla2l0LkRhdGFDaGFubmVsSW5mb1IMZGF0YUNoYW5uZWxzEjEKBW9mZmVyGAUgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25SBW9mZmVy'); + 'CglTeW5jU3RhdGUSMwoGYW5zd2VyGAEgASgLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb2' + '5SBmFuc3dlchI/CgxzdWJzY3JpcHRpb24YAiABKAsyGy5saXZla2l0LlVwZGF0ZVN1YnNjcmlw' + 'dGlvblIMc3Vic2NyaXB0aW9uEkYKDnB1Ymxpc2hfdHJhY2tzGAMgAygLMh8ubGl2ZWtpdC5Ucm' + 'Fja1B1Ymxpc2hlZFJlc3BvbnNlUg1wdWJsaXNoVHJhY2tzEj0KDWRhdGFfY2hhbm5lbHMYBCAD' + 'KAsyGC5saXZla2l0LkRhdGFDaGFubmVsSW5mb1IMZGF0YUNoYW5uZWxzEjEKBW9mZmVyGAUgAS' + 'gLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25SBW9mZmVy'); + @$core.Deprecated('Use dataChannelInfoDescriptor instead') -const DataChannelInfo$json = const { +const DataChannelInfo$json = { '1': 'DataChannelInfo', - '2': const [ - const {'1': 'label', '3': 1, '4': 1, '5': 9, '10': 'label'}, - const {'1': 'id', '3': 2, '4': 1, '5': 13, '10': 'id'}, - const { - '1': 'target', - '3': 3, - '4': 1, - '5': 14, - '6': '.livekit.SignalTarget', - '10': 'target' - }, + '2': [ + {'1': 'label', '3': 1, '4': 1, '5': 9, '10': 'label'}, + {'1': 'id', '3': 2, '4': 1, '5': 13, '10': 'id'}, + {'1': 'target', '3': 3, '4': 1, '5': 14, '6': '.livekit.SignalTarget', '10': 'target'}, ], }; /// Descriptor for `DataChannelInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List dataChannelInfoDescriptor = $convert.base64Decode( - 'Cg9EYXRhQ2hhbm5lbEluZm8SFAoFbGFiZWwYASABKAlSBWxhYmVsEg4KAmlkGAIgASgNUgJpZBItCgZ0YXJnZXQYAyABKA4yFS5saXZla2l0LlNpZ25hbFRhcmdldFIGdGFyZ2V0'); + 'Cg9EYXRhQ2hhbm5lbEluZm8SFAoFbGFiZWwYASABKAlSBWxhYmVsEg4KAmlkGAIgASgNUgJpZB' + 'ItCgZ0YXJnZXQYAyABKA4yFS5saXZla2l0LlNpZ25hbFRhcmdldFIGdGFyZ2V0'); + @$core.Deprecated('Use simulateScenarioDescriptor instead') -const SimulateScenario$json = const { +const SimulateScenario$json = { '1': 'SimulateScenario', - '2': const [ - const { - '1': 'speaker_update', - '3': 1, - '4': 1, - '5': 5, - '9': 0, - '10': 'speakerUpdate' - }, - const { - '1': 'node_failure', - '3': 2, - '4': 1, - '5': 8, - '9': 0, - '10': 'nodeFailure' - }, - const {'1': 'migration', '3': 3, '4': 1, '5': 8, '9': 0, '10': 'migration'}, - const { - '1': 'server_leave', - '3': 4, - '4': 1, - '5': 8, - '9': 0, - '10': 'serverLeave' - }, - const { - '1': 'switch_candidate_protocol', - '3': 5, - '4': 1, - '5': 14, - '6': '.livekit.CandidateProtocol', - '9': 0, - '10': 'switchCandidateProtocol' - }, + '2': [ + {'1': 'speaker_update', '3': 1, '4': 1, '5': 5, '9': 0, '10': 'speakerUpdate'}, + {'1': 'node_failure', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'nodeFailure'}, + {'1': 'migration', '3': 3, '4': 1, '5': 8, '9': 0, '10': 'migration'}, + {'1': 'server_leave', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'serverLeave'}, + {'1': 'switch_candidate_protocol', '3': 5, '4': 1, '5': 14, '6': '.livekit.CandidateProtocol', '9': 0, '10': 'switchCandidateProtocol'}, + {'1': 'subscriber_bandwidth', '3': 6, '4': 1, '5': 3, '9': 0, '10': 'subscriberBandwidth'}, ], - '8': const [ - const {'1': 'scenario'}, + '8': [ + {'1': 'scenario'}, ], }; /// Descriptor for `SimulateScenario`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List simulateScenarioDescriptor = $convert.base64Decode( - 'ChBTaW11bGF0ZVNjZW5hcmlvEicKDnNwZWFrZXJfdXBkYXRlGAEgASgFSABSDXNwZWFrZXJVcGRhdGUSIwoMbm9kZV9mYWlsdXJlGAIgASgISABSC25vZGVGYWlsdXJlEh4KCW1pZ3JhdGlvbhgDIAEoCEgAUgltaWdyYXRpb24SIwoMc2VydmVyX2xlYXZlGAQgASgISABSC3NlcnZlckxlYXZlElgKGXN3aXRjaF9jYW5kaWRhdGVfcHJvdG9jb2wYBSABKA4yGi5saXZla2l0LkNhbmRpZGF0ZVByb3RvY29sSABSF3N3aXRjaENhbmRpZGF0ZVByb3RvY29sQgoKCHNjZW5hcmlv'); + 'ChBTaW11bGF0ZVNjZW5hcmlvEicKDnNwZWFrZXJfdXBkYXRlGAEgASgFSABSDXNwZWFrZXJVcG' + 'RhdGUSIwoMbm9kZV9mYWlsdXJlGAIgASgISABSC25vZGVGYWlsdXJlEh4KCW1pZ3JhdGlvbhgD' + 'IAEoCEgAUgltaWdyYXRpb24SIwoMc2VydmVyX2xlYXZlGAQgASgISABSC3NlcnZlckxlYXZlEl' + 'gKGXN3aXRjaF9jYW5kaWRhdGVfcHJvdG9jb2wYBSABKA4yGi5saXZla2l0LkNhbmRpZGF0ZVBy' + 'b3RvY29sSABSF3N3aXRjaENhbmRpZGF0ZVByb3RvY29sEjMKFHN1YnNjcmliZXJfYmFuZHdpZH' + 'RoGAYgASgDSABSE3N1YnNjcmliZXJCYW5kd2lkdGhCCgoIc2NlbmFyaW8='); + @$core.Deprecated('Use pingDescriptor instead') -const Ping$json = const { +const Ping$json = { '1': 'Ping', - '2': const [ - const {'1': 'timestamp', '3': 1, '4': 1, '5': 3, '10': 'timestamp'}, - const {'1': 'rtt', '3': 2, '4': 1, '5': 3, '10': 'rtt'}, + '2': [ + {'1': 'timestamp', '3': 1, '4': 1, '5': 3, '10': 'timestamp'}, + {'1': 'rtt', '3': 2, '4': 1, '5': 3, '10': 'rtt'}, ], }; /// Descriptor for `Ping`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List pingDescriptor = $convert.base64Decode( 'CgRQaW5nEhwKCXRpbWVzdGFtcBgBIAEoA1IJdGltZXN0YW1wEhAKA3J0dBgCIAEoA1IDcnR0'); + @$core.Deprecated('Use pongDescriptor instead') -const Pong$json = const { +const Pong$json = { '1': 'Pong', - '2': const [ - const { - '1': 'last_ping_timestamp', - '3': 1, - '4': 1, - '5': 3, - '10': 'lastPingTimestamp' - }, - const {'1': 'timestamp', '3': 2, '4': 1, '5': 3, '10': 'timestamp'}, + '2': [ + {'1': 'last_ping_timestamp', '3': 1, '4': 1, '5': 3, '10': 'lastPingTimestamp'}, + {'1': 'timestamp', '3': 2, '4': 1, '5': 3, '10': 'timestamp'}, ], }; /// Descriptor for `Pong`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List pongDescriptor = $convert.base64Decode( - 'CgRQb25nEi4KE2xhc3RfcGluZ190aW1lc3RhbXAYASABKANSEWxhc3RQaW5nVGltZXN0YW1wEhwKCXRpbWVzdGFtcBgCIAEoA1IJdGltZXN0YW1w'); + 'CgRQb25nEi4KE2xhc3RfcGluZ190aW1lc3RhbXAYASABKANSEWxhc3RQaW5nVGltZXN0YW1wEh' + 'wKCXRpbWVzdGFtcBgCIAEoA1IJdGltZXN0YW1w'); + +@$core.Deprecated('Use regionSettingsDescriptor instead') +const RegionSettings$json = { + '1': 'RegionSettings', + '2': [ + {'1': 'regions', '3': 1, '4': 3, '5': 11, '6': '.livekit.RegionInfo', '10': 'regions'}, + ], +}; + +/// Descriptor for `RegionSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List regionSettingsDescriptor = $convert.base64Decode( + 'Cg5SZWdpb25TZXR0aW5ncxItCgdyZWdpb25zGAEgAygLMhMubGl2ZWtpdC5SZWdpb25JbmZvUg' + 'dyZWdpb25z'); + +@$core.Deprecated('Use regionInfoDescriptor instead') +const RegionInfo$json = { + '1': 'RegionInfo', + '2': [ + {'1': 'region', '3': 1, '4': 1, '5': 9, '10': 'region'}, + {'1': 'url', '3': 2, '4': 1, '5': 9, '10': 'url'}, + {'1': 'distance', '3': 3, '4': 1, '5': 3, '10': 'distance'}, + ], +}; + +/// Descriptor for `RegionInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List regionInfoDescriptor = $convert.base64Decode( + 'CgpSZWdpb25JbmZvEhYKBnJlZ2lvbhgBIAEoCVIGcmVnaW9uEhAKA3VybBgCIAEoCVIDdXJsEh' + 'oKCGRpc3RhbmNlGAMgASgDUghkaXN0YW5jZQ=='); + +@$core.Deprecated('Use subscriptionResponseDescriptor instead') +const SubscriptionResponse$json = { + '1': 'SubscriptionResponse', + '2': [ + {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'err', '3': 2, '4': 1, '5': 14, '6': '.livekit.SubscriptionError', '10': 'err'}, + ], +}; + +/// Descriptor for `SubscriptionResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List subscriptionResponseDescriptor = $convert.base64Decode( + 'ChRTdWJzY3JpcHRpb25SZXNwb25zZRIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEiwKA2' + 'VychgCIAEoDjIaLmxpdmVraXQuU3Vic2NyaXB0aW9uRXJyb3JSA2Vycg=='); + diff --git a/lib/src/proto/livekit_rtc.pbserver.dart b/lib/src/proto/livekit_rtc.pbserver.dart index 0aa3249b..681e81ba 100644 --- a/lib/src/proto/livekit_rtc.pbserver.dart +++ b/lib/src/proto/livekit_rtc.pbserver.dart @@ -1,22 +1,14 @@ -// Copyright 2023 LiveKit, Inc. // -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// // Generated code. Do not modify. // source: livekit_rtc.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'livekit_rtc.pb.dart'; + From e53e06d33a3ffd4cdbc7e35fe40e0aec75116c2d Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 17:34:35 +0800 Subject: [PATCH 02/12] improve for framecryptor. --- example/lib/pages/connect.dart | 2 +- ios/livekit_client.podspec | 2 +- lib/src/core/room.dart | 5 ++ lib/src/e2ee/e2ee_manager.dart | 99 +++++++++++++++++----------------- lib/src/e2ee/key_provider.dart | 53 +++++++++++++++--- lib/src/participant/local.dart | 24 ++++----- macos/livekit_client.podspec | 2 +- pubspec.yaml | 4 +- 8 files changed, 118 insertions(+), 73 deletions(-) diff --git a/example/lib/pages/connect.dart b/example/lib/pages/connect.dart index b13b7113..ac9ca1fe 100644 --- a/example/lib/pages/connect.dart +++ b/example/lib/pages/connect.dart @@ -135,7 +135,7 @@ class _ConnectPageState extends State { final keyProvider = await BaseKeyProvider.create(); e2eeOptions = E2EEOptions(keyProvider: keyProvider); var sharedKey = _sharedKeyCtrl.text; - await keyProvider.setKey(sharedKey); + await keyProvider.setSharedKey(sharedKey); } String preferredCodec = 'VP8'; diff --git a/ios/livekit_client.podspec b/ios/livekit_client.podspec index 81cbd440..e7091aa0 100644 --- a/ios/livekit_client.podspec +++ b/ios/livekit_client.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'Flutter' - s.dependency 'WebRTC-SDK', '114.5735.02' + s.dependency 'WebRTC-SDK', '114.5735.06' end diff --git a/lib/src/core/room.dart b/lib/src/core/room.dart index 54134ba4..5b317e11 100644 --- a/lib/src/core/room.dart +++ b/lib/src/core/room.dart @@ -255,6 +255,11 @@ class Room extends DisposableChangeNotifier with EventsEmittable { _getOrCreateRemoteParticipant(info.sid, info); } + if (e2eeManager != null && event.response.sifTrailer.isNotEmpty) { + e2eeManager!.keyProvider + .setSifTrailer(Uint8List.fromList(event.response.sifTrailer)); + } + logger.fine('Room Connect completed'); }) ..on( diff --git a/lib/src/e2ee/e2ee_manager.dart b/lib/src/e2ee/e2ee_manager.dart index 2d3f0c0f..01d776e6 100644 --- a/lib/src/e2ee/e2ee_manager.dart +++ b/lib/src/e2ee/e2ee_manager.dart @@ -25,8 +25,7 @@ import 'key_provider.dart'; class E2EEManager { Room? _room; - final Map _frameCryptors = {}; - final List _senderFrameCryptors = []; + final Map, FrameCryptor> _frameCryptors = {}; final BaseKeyProvider _keyProvider; final Algorithm _algorithm = Algorithm.kAesGcm; bool _enabled = true; @@ -40,13 +39,10 @@ class E2EEManager { _listener = _room!.createListener(); _listener! ..on((event) async { - var trackId = event.publication.sid; - var participantId = event.participant.sid; var frameCryptor = await _addRtpSender( - event.publication.track!.sender!, - participantId, - trackId, - event.publication.track!.kind.name.toLowerCase()); + sender: event.publication.track!.sender!, + identity: event.participant.identity, + sid: event.publication.sid); if (kIsWeb && event.publication.track!.codec != null) { await frameCryptor.updateCodec(event.publication.track!.codec!); } @@ -63,19 +59,23 @@ class E2EEManager { state: _e2eeStateFromFrameCryptoState(state), )); }; - _senderFrameCryptors.add(frameCryptor); }) ..on((event) async { - var trackId = event.publication.sid; - var frameCryptor = _frameCryptors.remove(trackId); - _senderFrameCryptors.remove(frameCryptor); - await frameCryptor?.dispose(); + for (var key in _frameCryptors.keys.toList()) { + if (key.keys.first == event.participant.identity && + key.values.first == event.publication.sid) { + var frameCryptor = _frameCryptors.remove(key); + await frameCryptor?.setEnabled(false); + await frameCryptor?.dispose(); + } + } }) ..on((event) async { - var trackId = event.publication.sid; - var participantId = event.participant.sid; - var frameCryptor = await _addRtpReceiver(event.track.receiver!, - participantId, trackId, event.track.kind.name.toLowerCase()); + var frameCryptor = await _addRtpReceiver( + receiver: event.track.receiver!, + identity: event.participant.identity, + sid: event.publication.sid, + ); if (kIsWeb) { var codec = event.publication.mimeType.split('/')[1]; await frameCryptor.updateCodec(codec.toLowerCase()); @@ -95,16 +95,28 @@ class E2EEManager { }; }) ..on((event) async { - var trackId = event.publication.sid; - var frameCryptor = _frameCryptors.remove(trackId); - await frameCryptor?.dispose(); + for (var key in _frameCryptors.keys.toList()) { + if (key.keys.first == event.participant.identity && + key.values.first == event.publication.sid) { + var frameCryptor = _frameCryptors.remove(key); + await frameCryptor?.setEnabled(false); + await frameCryptor?.dispose(); + } + } }); } } - Future ratchetKey() async { - for (var frameCryptor in _senderFrameCryptors) { - var newKey = await _keyProvider.ratchetKey(frameCryptor.participantId, 0); + BaseKeyProvider get keyProvider => _keyProvider; + + Future ratchetKey({String? participantId, int? keyIndex}) async { + if (participantId != null) { + var newKey = await _keyProvider.ratchetKey(participantId, keyIndex); + if (kDebugMode) { + print('newKey: $newKey'); + } + } else { + var newKey = await _keyProvider.ratchetSharedKey(keyIndex: keyIndex); if (kDebugMode) { print('newKey: $newKey'); } @@ -121,40 +133,34 @@ class E2EEManager { _frameCryptors.clear(); } - Future _addRtpSender(RTCRtpSender sender, String participantId, - String trackId, String kind) async { - var pid = '$kind-sender-$participantId-$trackId'; + Future _addRtpSender( + {required RTCRtpSender sender, + required String identity, + required String sid}) async { var frameCryptor = await frameCryptorFactory.createFrameCryptorForRtpSender( - participantId: pid, + participantId: identity, sender: sender, algorithm: _algorithm, keyProvider: _keyProvider.keyProvider); - _frameCryptors[trackId] = frameCryptor; + _frameCryptors[{identity: sid}] = frameCryptor; await frameCryptor.setEnabled(_enabled); - if (_keyProvider.options.sharedKey) { - await _keyProvider.keyProvider - .setKey(participantId: pid, index: 0, key: _keyProvider.sharedKey!); - await frameCryptor.setKeyIndex(0); - } + await frameCryptor.setKeyIndex(0); return frameCryptor; } - Future _addRtpReceiver(RTCRtpReceiver receiver, - String participantId, String trackId, String kind) async { - var pid = '$kind-receiver-$participantId-$trackId'; + Future _addRtpReceiver( + {required RTCRtpReceiver receiver, + required String identity, + required String sid}) async { var frameCryptor = await frameCryptorFactory.createFrameCryptorForRtpReceiver( - participantId: pid, + participantId: identity, receiver: receiver, algorithm: _algorithm, keyProvider: _keyProvider.keyProvider); - _frameCryptors[trackId] = frameCryptor; + _frameCryptors[{identity: sid}] = frameCryptor; await frameCryptor.setEnabled(_enabled); - if (_keyProvider.options.sharedKey) { - await _keyProvider.keyProvider - .setKey(participantId: pid, index: 0, key: _keyProvider.sharedKey!); - await frameCryptor.setKeyIndex(0); - } + await frameCryptor.setKeyIndex(0); return frameCryptor; } @@ -162,13 +168,6 @@ class E2EEManager { _enabled = enabled; for (var frameCryptor in _frameCryptors.entries) { await frameCryptor.value.setEnabled(enabled); - if (_keyProvider.options.sharedKey) { - await _keyProvider.keyProvider.setKey( - participantId: frameCryptor.key, - index: 0, - key: _keyProvider.sharedKey!); - await frameCryptor.value.setKeyIndex(0); - } } } diff --git a/lib/src/e2ee/key_provider.dart b/lib/src/e2ee/key_provider.dart index a899f163..084894f5 100644 --- a/lib/src/e2ee/key_provider.dart +++ b/lib/src/e2ee/key_provider.dart @@ -32,8 +32,13 @@ class KeyInfo { } abstract class KeyProvider { - Future setKey(String key, {String? participantId, int keyIndex = 0}); - Future ratchetKey(String participantId, int index); + Future setSharedKey(String key, {int? keyIndex}); + Future ratchetSharedKey({int? keyIndex}); + Future exportSharedKey({int? keyIndex}); + Future setKey(String key, {String? participantId, int? keyIndex}); + Future ratchetKey(String participantId, int? keyIndex); + Future exportKey(String participantId, int? keyIndex); + Future setSifTrailer(Uint8List trailer); rtc.KeyProvider get keyProvider; } @@ -54,6 +59,7 @@ class BaseKeyProvider implements KeyProvider { String? ratchetSalt, String? uncryptedMagicBytes, int? ratchetWindowSize, + int? failureTolerance, }) async { rtc.KeyProviderOptions options = rtc.KeyProviderOptions( sharedKey: sharedKey, @@ -62,6 +68,7 @@ class BaseKeyProvider implements KeyProvider { ratchetWindowSize: ratchetWindowSize ?? defaultRatchetWindowSize, uncryptedMagicBytes: Uint8List.fromList( (uncryptedMagicBytes ?? defaultMagicBytes).codeUnits), + failureTolerance: failureTolerance ?? -1, ); final keyProvider = await rtc.frameCryptorFactory.createDefaultKeyProvider(options); @@ -69,19 +76,48 @@ class BaseKeyProvider implements KeyProvider { } @override - Future ratchetKey(String participantId, int index) => - _keyProvider.ratchetKey(participantId: participantId, index: index); + Future setSharedKey(String key, {int? keyIndex}) async { + _sharedKey = Uint8List.fromList(key.codeUnits); + return _keyProvider.setSharedKey(key: _sharedKey!, index: keyIndex ?? 0); + } + + @override + Future ratchetSharedKey({int? keyIndex}) async { + if (_sharedKey == null) { + throw Exception('shared key not set'); + } + _sharedKey = await _keyProvider.ratchetSharedKey(index: keyIndex ?? 0); + return _sharedKey!; + } + + @override + Future exportSharedKey({int? keyIndex}) async { + if (_sharedKey == null) { + throw Exception('shared key not set'); + } + return _keyProvider.exportSharedKey(index: keyIndex ?? 0); + } + + @override + Future ratchetKey(String participantId, int? keyIndex) => + _keyProvider.ratchetKey( + participantId: participantId, index: keyIndex ?? 0); + + @override + Future exportKey(String participantId, int? keyIndex) => + _keyProvider.exportKey( + participantId: participantId, index: keyIndex ?? 0); @override Future setKey(String key, - {String? participantId, int keyIndex = 0}) async { + {String? participantId, int? keyIndex}) async { if (options.sharedKey) { _sharedKey = Uint8List.fromList(key.codeUnits); return; } final keyInfo = KeyInfo( participantId: participantId ?? '', - keyIndex: keyIndex, + keyIndex: keyIndex ?? 0, key: Uint8List.fromList(key.codeUnits), ); return _setKey(keyInfo); @@ -98,4 +134,9 @@ class BaseKeyProvider implements KeyProvider { key: keyInfo.key, ); } + + @override + Future setSifTrailer(Uint8List trailer) async { + return _keyProvider.setSifTrailer(trailer: trailer); + } } diff --git a/lib/src/participant/local.dart b/lib/src/participant/local.dart index cae54572..2298311f 100644 --- a/lib/src/participant/local.dart +++ b/lib/src/participant/local.dart @@ -199,20 +199,20 @@ class LocalParticipant extends Participant { publishOptions.backupCodec!.codec != publishOptions.videoCodec) { simulcastCodecs = [ lk_rtc.SimulcastCodec( - codec: publishOptions.videoCodec, - cid: track.getCid(), - enableSimulcastLayers: true), + codec: publishOptions.videoCodec, + cid: track.getCid(), + ), lk_rtc.SimulcastCodec( - codec: publishOptions.backupCodec!.codec.toLowerCase(), - cid: '', - enableSimulcastLayers: publishOptions.backupCodec!.simulcast), + codec: publishOptions.backupCodec!.codec.toLowerCase(), + cid: '', + ), ]; } else { simulcastCodecs = [ lk_rtc.SimulcastCodec( - codec: publishOptions.videoCodec, - cid: track.getCid(), - enableSimulcastLayers: publishOptions.simulcast), + codec: publishOptions.videoCodec, + cid: track.getCid(), + ), ]; } @@ -618,9 +618,9 @@ class LocalParticipant extends Participant { sid: publication.sid, simulcastCodecs: [ lk_rtc.SimulcastCodec( - codec: backupCodec.toLowerCase(), - cid: cid, - enableSimulcastLayers: backupCodecOpts.simulcast), + codec: backupCodec.toLowerCase(), + cid: cid, + ), ]); await room.engine.negotiate(); diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index f0e7a254..5ac0eecf 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'FlutterMacOS' - s.dependency 'WebRTC-SDK', '114.5735.02' + s.dependency 'WebRTC-SDK', '114.5735.06' end diff --git a/pubspec.yaml b/pubspec.yaml index fe719a3b..aa3184eb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,12 +38,12 @@ dependencies: uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^3.0.0 - flutter_webrtc: 0.9.41 + flutter_webrtc: 0.9.42 flutter_window_close: ^0.2.2 device_info_plus: ^9.0.0 js: ^0.6.4 platform_detect: ^2.0.7 - dart_webrtc: 1.1.2 + dart_webrtc: 1.1.3 dev_dependencies: flutter_test: From 649c3fda0173b147ee10a7d5fc3a9b8c6c0632b2 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 17:37:57 +0800 Subject: [PATCH 03/12] dart format. --- lib/src/proto/livekit_models.pb.dart | 1859 ++++++++----- lib/src/proto/livekit_models.pbenum.dart | 271 +- lib/src/proto/livekit_models.pbjson.dart | 433 ++- lib/src/proto/livekit_models.pbserver.dart | 1 - lib/src/proto/livekit_rtc.pb.dart | 2763 +++++++++++++------- lib/src/proto/livekit_rtc.pbenum.dart | 39 +- lib/src/proto/livekit_rtc.pbjson.dart | 756 +++++- lib/src/proto/livekit_rtc.pbserver.dart | 1 - 8 files changed, 4309 insertions(+), 1814 deletions(-) diff --git a/lib/src/proto/livekit_models.pb.dart b/lib/src/proto/livekit_models.pb.dart index 088f43d8..9375fe75 100644 --- a/lib/src/proto/livekit_models.pb.dart +++ b/lib/src/proto/livekit_models.pb.dart @@ -74,35 +74,46 @@ class Room extends $pb.GeneratedMessage { return $result; } Room._() : super(); - factory Room.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Room.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Room', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory Room.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Room.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Room', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'sid') ..aOS(2, _omitFieldNames ? '' : 'name') - ..a<$core.int>(3, _omitFieldNames ? '' : 'emptyTimeout', $pb.PbFieldType.OU3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'maxParticipants', $pb.PbFieldType.OU3) + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'emptyTimeout', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'maxParticipants', $pb.PbFieldType.OU3) ..aInt64(5, _omitFieldNames ? '' : 'creationTime') ..aOS(6, _omitFieldNames ? '' : 'turnPassword') - ..pc(7, _omitFieldNames ? '' : 'enabledCodecs', $pb.PbFieldType.PM, subBuilder: Codec.create) + ..pc(7, _omitFieldNames ? '' : 'enabledCodecs', $pb.PbFieldType.PM, + subBuilder: Codec.create) ..aOS(8, _omitFieldNames ? '' : 'metadata') - ..a<$core.int>(9, _omitFieldNames ? '' : 'numParticipants', $pb.PbFieldType.OU3) + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'numParticipants', $pb.PbFieldType.OU3) ..aOB(10, _omitFieldNames ? '' : 'activeRecording') - ..a<$core.int>(11, _omitFieldNames ? '' : 'numPublishers', $pb.PbFieldType.OU3) - ..aOM(12, _omitFieldNames ? '' : 'playoutDelay', subBuilder: PlayoutDelay.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>( + 11, _omitFieldNames ? '' : 'numPublishers', $pb.PbFieldType.OU3) + ..aOM(12, _omitFieldNames ? '' : 'playoutDelay', + subBuilder: PlayoutDelay.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Room clone() => Room()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Room copyWith(void Function(Room) updates) => super.copyWith((message) => updates(message as Room)) as Room; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Room copyWith(void Function(Room) updates) => + super.copyWith((message) => updates(message as Room)) as Room; $pb.BuilderInfo get info_ => _i; @@ -111,13 +122,17 @@ class Room extends $pb.GeneratedMessage { Room createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Room getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Room getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Room? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { $_setString(0, v); } + set sid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -126,7 +141,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -135,7 +153,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get emptyTimeout => $_getIZ(2); @$pb.TagNumber(3) - set emptyTimeout($core.int v) { $_setUnsignedInt32(2, v); } + set emptyTimeout($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasEmptyTimeout() => $_has(2); @$pb.TagNumber(3) @@ -144,7 +165,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get maxParticipants => $_getIZ(3); @$pb.TagNumber(4) - set maxParticipants($core.int v) { $_setUnsignedInt32(3, v); } + set maxParticipants($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasMaxParticipants() => $_has(3); @$pb.TagNumber(4) @@ -153,7 +177,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get creationTime => $_getI64(4); @$pb.TagNumber(5) - set creationTime($fixnum.Int64 v) { $_setInt64(4, v); } + set creationTime($fixnum.Int64 v) { + $_setInt64(4, v); + } + @$pb.TagNumber(5) $core.bool hasCreationTime() => $_has(4); @$pb.TagNumber(5) @@ -162,7 +189,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get turnPassword => $_getSZ(5); @$pb.TagNumber(6) - set turnPassword($core.String v) { $_setString(5, v); } + set turnPassword($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasTurnPassword() => $_has(5); @$pb.TagNumber(6) @@ -174,7 +204,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get metadata => $_getSZ(7); @$pb.TagNumber(8) - set metadata($core.String v) { $_setString(7, v); } + set metadata($core.String v) { + $_setString(7, v); + } + @$pb.TagNumber(8) $core.bool hasMetadata() => $_has(7); @$pb.TagNumber(8) @@ -183,7 +216,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.int get numParticipants => $_getIZ(8); @$pb.TagNumber(9) - set numParticipants($core.int v) { $_setUnsignedInt32(8, v); } + set numParticipants($core.int v) { + $_setUnsignedInt32(8, v); + } + @$pb.TagNumber(9) $core.bool hasNumParticipants() => $_has(8); @$pb.TagNumber(9) @@ -192,7 +228,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get activeRecording => $_getBF(9); @$pb.TagNumber(10) - set activeRecording($core.bool v) { $_setBool(9, v); } + set activeRecording($core.bool v) { + $_setBool(9, v); + } + @$pb.TagNumber(10) $core.bool hasActiveRecording() => $_has(9); @$pb.TagNumber(10) @@ -201,7 +240,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get numPublishers => $_getIZ(10); @$pb.TagNumber(11) - set numPublishers($core.int v) { $_setUnsignedInt32(10, v); } + set numPublishers($core.int v) { + $_setUnsignedInt32(10, v); + } + @$pb.TagNumber(11) $core.bool hasNumPublishers() => $_has(10); @$pb.TagNumber(11) @@ -210,7 +252,10 @@ class Room extends $pb.GeneratedMessage { @$pb.TagNumber(12) PlayoutDelay get playoutDelay => $_getN(11); @$pb.TagNumber(12) - set playoutDelay(PlayoutDelay v) { setField(12, v); } + set playoutDelay(PlayoutDelay v) { + setField(12, v); + } + @$pb.TagNumber(12) $core.bool hasPlayoutDelay() => $_has(11); @$pb.TagNumber(12) @@ -234,25 +279,30 @@ class Codec extends $pb.GeneratedMessage { return $result; } Codec._() : super(); - factory Codec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Codec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Codec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory Codec.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Codec.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Codec', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'mime') ..aOS(2, _omitFieldNames ? '' : 'fmtpLine') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Codec clone() => Codec()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Codec copyWith(void Function(Codec) updates) => super.copyWith((message) => updates(message as Codec)) as Codec; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Codec copyWith(void Function(Codec) updates) => + super.copyWith((message) => updates(message as Codec)) as Codec; $pb.BuilderInfo get info_ => _i; @@ -261,13 +311,17 @@ class Codec extends $pb.GeneratedMessage { Codec createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Codec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Codec getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Codec? _defaultInstance; @$pb.TagNumber(1) $core.String get mime => $_getSZ(0); @$pb.TagNumber(1) - set mime($core.String v) { $_setString(0, v); } + set mime($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMime() => $_has(0); @$pb.TagNumber(1) @@ -276,7 +330,10 @@ class Codec extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get fmtpLine => $_getSZ(1); @$pb.TagNumber(2) - set fmtpLine($core.String v) { $_setString(1, v); } + set fmtpLine($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasFmtpLine() => $_has(1); @$pb.TagNumber(2) @@ -298,40 +355,51 @@ class PlayoutDelay extends $pb.GeneratedMessage { return $result; } PlayoutDelay._() : super(); - factory PlayoutDelay.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory PlayoutDelay.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PlayoutDelay', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory PlayoutDelay.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PlayoutDelay.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlayoutDelay', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'enabled') ..a<$core.int>(2, _omitFieldNames ? '' : 'min', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') PlayoutDelay clone() => PlayoutDelay()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - PlayoutDelay copyWith(void Function(PlayoutDelay) updates) => super.copyWith((message) => updates(message as PlayoutDelay)) as PlayoutDelay; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PlayoutDelay copyWith(void Function(PlayoutDelay) updates) => + super.copyWith((message) => updates(message as PlayoutDelay)) + as PlayoutDelay; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PlayoutDelay create() => PlayoutDelay._(); PlayoutDelay createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static PlayoutDelay getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PlayoutDelay getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static PlayoutDelay? _defaultInstance; @$pb.TagNumber(1) $core.bool get enabled => $_getBF(0); @$pb.TagNumber(1) - set enabled($core.bool v) { $_setBool(0, v); } + set enabled($core.bool v) { + $_setBool(0, v); + } + @$pb.TagNumber(1) $core.bool hasEnabled() => $_has(0); @$pb.TagNumber(1) @@ -340,7 +408,10 @@ class PlayoutDelay extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get min => $_getIZ(1); @$pb.TagNumber(2) - set min($core.int v) { $_setUnsignedInt32(1, v); } + set min($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasMin() => $_has(1); @$pb.TagNumber(2) @@ -382,46 +453,63 @@ class ParticipantPermission extends $pb.GeneratedMessage { return $result; } ParticipantPermission._() : super(); - factory ParticipantPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ParticipantPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory ParticipantPermission.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ParticipantPermission.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParticipantPermission', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'canSubscribe') ..aOB(2, _omitFieldNames ? '' : 'canPublish') ..aOB(3, _omitFieldNames ? '' : 'canPublishData') ..aOB(7, _omitFieldNames ? '' : 'hidden') ..aOB(8, _omitFieldNames ? '' : 'recorder') - ..pc(9, _omitFieldNames ? '' : 'canPublishSources', $pb.PbFieldType.KE, valueOf: TrackSource.valueOf, enumValues: TrackSource.values, defaultEnumValue: TrackSource.UNKNOWN) + ..pc( + 9, _omitFieldNames ? '' : 'canPublishSources', $pb.PbFieldType.KE, + valueOf: TrackSource.valueOf, + enumValues: TrackSource.values, + defaultEnumValue: TrackSource.UNKNOWN) ..aOB(10, _omitFieldNames ? '' : 'canUpdateMetadata') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ParticipantPermission clone() => ParticipantPermission()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantPermission copyWith(void Function(ParticipantPermission) updates) => super.copyWith((message) => updates(message as ParticipantPermission)) as ParticipantPermission; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ParticipantPermission clone() => + ParticipantPermission()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantPermission copyWith( + void Function(ParticipantPermission) updates) => + super.copyWith((message) => updates(message as ParticipantPermission)) + as ParticipantPermission; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ParticipantPermission create() => ParticipantPermission._(); ParticipantPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantPermission getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ParticipantPermission? _defaultInstance; /// allow participant to subscribe to other tracks in the room @$pb.TagNumber(1) $core.bool get canSubscribe => $_getBF(0); @$pb.TagNumber(1) - set canSubscribe($core.bool v) { $_setBool(0, v); } + set canSubscribe($core.bool v) { + $_setBool(0, v); + } + @$pb.TagNumber(1) $core.bool hasCanSubscribe() => $_has(0); @$pb.TagNumber(1) @@ -431,7 +519,10 @@ class ParticipantPermission extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get canPublish => $_getBF(1); @$pb.TagNumber(2) - set canPublish($core.bool v) { $_setBool(1, v); } + set canPublish($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasCanPublish() => $_has(1); @$pb.TagNumber(2) @@ -441,7 +532,10 @@ class ParticipantPermission extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get canPublishData => $_getBF(2); @$pb.TagNumber(3) - set canPublishData($core.bool v) { $_setBool(2, v); } + set canPublishData($core.bool v) { + $_setBool(2, v); + } + @$pb.TagNumber(3) $core.bool hasCanPublishData() => $_has(2); @$pb.TagNumber(3) @@ -451,7 +545,10 @@ class ParticipantPermission extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get hidden => $_getBF(3); @$pb.TagNumber(7) - set hidden($core.bool v) { $_setBool(3, v); } + set hidden($core.bool v) { + $_setBool(3, v); + } + @$pb.TagNumber(7) $core.bool hasHidden() => $_has(3); @$pb.TagNumber(7) @@ -461,7 +558,10 @@ class ParticipantPermission extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get recorder => $_getBF(4); @$pb.TagNumber(8) - set recorder($core.bool v) { $_setBool(4, v); } + set recorder($core.bool v) { + $_setBool(4, v); + } + @$pb.TagNumber(8) $core.bool hasRecorder() => $_has(4); @$pb.TagNumber(8) @@ -475,7 +575,10 @@ class ParticipantPermission extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.bool get canUpdateMetadata => $_getBF(6); @$pb.TagNumber(10) - set canUpdateMetadata($core.bool v) { $_setBool(6, v); } + set canUpdateMetadata($core.bool v) { + $_setBool(6, v); + } + @$pb.TagNumber(10) $core.bool hasCanUpdateMetadata() => $_has(6); @$pb.TagNumber(10) @@ -533,49 +636,66 @@ class ParticipantInfo extends $pb.GeneratedMessage { return $result; } ParticipantInfo._() : super(); - factory ParticipantInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ParticipantInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory ParticipantInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ParticipantInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParticipantInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'sid') ..aOS(2, _omitFieldNames ? '' : 'identity') - ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: ParticipantInfo_State.JOINING, valueOf: ParticipantInfo_State.valueOf, enumValues: ParticipantInfo_State.values) - ..pc(4, _omitFieldNames ? '' : 'tracks', $pb.PbFieldType.PM, subBuilder: TrackInfo.create) + ..e( + 3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: ParticipantInfo_State.JOINING, + valueOf: ParticipantInfo_State.valueOf, + enumValues: ParticipantInfo_State.values) + ..pc(4, _omitFieldNames ? '' : 'tracks', $pb.PbFieldType.PM, + subBuilder: TrackInfo.create) ..aOS(5, _omitFieldNames ? '' : 'metadata') ..aInt64(6, _omitFieldNames ? '' : 'joinedAt') ..aOS(9, _omitFieldNames ? '' : 'name') ..a<$core.int>(10, _omitFieldNames ? '' : 'version', $pb.PbFieldType.OU3) - ..aOM(11, _omitFieldNames ? '' : 'permission', subBuilder: ParticipantPermission.create) + ..aOM(11, _omitFieldNames ? '' : 'permission', + subBuilder: ParticipantPermission.create) ..aOS(12, _omitFieldNames ? '' : 'region') ..aOB(13, _omitFieldNames ? '' : 'isPublisher') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantInfo clone() => ParticipantInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantInfo copyWith(void Function(ParticipantInfo) updates) => super.copyWith((message) => updates(message as ParticipantInfo)) as ParticipantInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantInfo copyWith(void Function(ParticipantInfo) updates) => + super.copyWith((message) => updates(message as ParticipantInfo)) + as ParticipantInfo; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ParticipantInfo create() => ParticipantInfo._(); ParticipantInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ParticipantInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { $_setString(0, v); } + set sid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -584,7 +704,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get identity => $_getSZ(1); @$pb.TagNumber(2) - set identity($core.String v) { $_setString(1, v); } + set identity($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasIdentity() => $_has(1); @$pb.TagNumber(2) @@ -593,7 +716,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) ParticipantInfo_State get state => $_getN(2); @$pb.TagNumber(3) - set state(ParticipantInfo_State v) { setField(3, v); } + set state(ParticipantInfo_State v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasState() => $_has(2); @$pb.TagNumber(3) @@ -605,7 +731,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get metadata => $_getSZ(4); @$pb.TagNumber(5) - set metadata($core.String v) { $_setString(4, v); } + set metadata($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasMetadata() => $_has(4); @$pb.TagNumber(5) @@ -615,7 +744,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get joinedAt => $_getI64(5); @$pb.TagNumber(6) - set joinedAt($fixnum.Int64 v) { $_setInt64(5, v); } + set joinedAt($fixnum.Int64 v) { + $_setInt64(5, v); + } + @$pb.TagNumber(6) $core.bool hasJoinedAt() => $_has(5); @$pb.TagNumber(6) @@ -624,7 +756,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get name => $_getSZ(6); @$pb.TagNumber(9) - set name($core.String v) { $_setString(6, v); } + set name($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(9) $core.bool hasName() => $_has(6); @$pb.TagNumber(9) @@ -633,7 +768,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.int get version => $_getIZ(7); @$pb.TagNumber(10) - set version($core.int v) { $_setUnsignedInt32(7, v); } + set version($core.int v) { + $_setUnsignedInt32(7, v); + } + @$pb.TagNumber(10) $core.bool hasVersion() => $_has(7); @$pb.TagNumber(10) @@ -642,7 +780,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(11) ParticipantPermission get permission => $_getN(8); @$pb.TagNumber(11) - set permission(ParticipantPermission v) { setField(11, v); } + set permission(ParticipantPermission v) { + setField(11, v); + } + @$pb.TagNumber(11) $core.bool hasPermission() => $_has(8); @$pb.TagNumber(11) @@ -653,7 +794,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get region => $_getSZ(9); @$pb.TagNumber(12) - set region($core.String v) { $_setString(9, v); } + set region($core.String v) { + $_setString(9, v); + } + @$pb.TagNumber(12) $core.bool hasRegion() => $_has(9); @$pb.TagNumber(12) @@ -664,7 +808,10 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(13) $core.bool get isPublisher => $_getBF(10); @$pb.TagNumber(13) - set isPublisher($core.bool v) { $_setBool(10, v); } + set isPublisher($core.bool v) { + $_setBool(10, v); + } + @$pb.TagNumber(13) $core.bool hasIsPublisher() => $_has(10); @$pb.TagNumber(13) @@ -674,23 +821,28 @@ class ParticipantInfo extends $pb.GeneratedMessage { class Encryption extends $pb.GeneratedMessage { factory Encryption() => create(); Encryption._() : super(); - factory Encryption.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Encryption.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Encryption', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory Encryption.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Encryption.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Encryption', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Encryption clone() => Encryption()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Encryption copyWith(void Function(Encryption) updates) => super.copyWith((message) => updates(message as Encryption)) as Encryption; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Encryption copyWith(void Function(Encryption) updates) => + super.copyWith((message) => updates(message as Encryption)) as Encryption; $pb.BuilderInfo get info_ => _i; @@ -699,7 +851,8 @@ class Encryption extends $pb.GeneratedMessage { Encryption createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Encryption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Encryption getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static Encryption? _defaultInstance; } @@ -726,42 +879,54 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { return $result; } SimulcastCodecInfo._() : super(); - factory SimulcastCodecInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SimulcastCodecInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulcastCodecInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SimulcastCodecInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SimulcastCodecInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SimulcastCodecInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'mimeType') ..aOS(2, _omitFieldNames ? '' : 'mid') ..aOS(3, _omitFieldNames ? '' : 'cid') - ..pc(4, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayer.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..pc(4, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, + subBuilder: VideoLayer.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulcastCodecInfo clone() => SimulcastCodecInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulcastCodecInfo copyWith(void Function(SimulcastCodecInfo) updates) => super.copyWith((message) => updates(message as SimulcastCodecInfo)) as SimulcastCodecInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulcastCodecInfo copyWith(void Function(SimulcastCodecInfo) updates) => + super.copyWith((message) => updates(message as SimulcastCodecInfo)) + as SimulcastCodecInfo; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SimulcastCodecInfo create() => SimulcastCodecInfo._(); SimulcastCodecInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulcastCodecInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SimulcastCodecInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SimulcastCodecInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get mimeType => $_getSZ(0); @$pb.TagNumber(1) - set mimeType($core.String v) { $_setString(0, v); } + set mimeType($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMimeType() => $_has(0); @$pb.TagNumber(1) @@ -770,7 +935,10 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get mid => $_getSZ(1); @$pb.TagNumber(2) - set mid($core.String v) { $_setString(1, v); } + set mid($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasMid() => $_has(1); @$pb.TagNumber(2) @@ -779,7 +947,10 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get cid => $_getSZ(2); @$pb.TagNumber(3) - set cid($core.String v) { $_setString(2, v); } + set cid($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasCid() => $_has(2); @$pb.TagNumber(3) @@ -864,40 +1035,58 @@ class TrackInfo extends $pb.GeneratedMessage { return $result; } TrackInfo._() : super(); - factory TrackInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrackInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TrackInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TrackInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrackInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'sid') - ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: TrackType.AUDIO, valueOf: TrackType.valueOf, enumValues: TrackType.values) + ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: TrackType.AUDIO, + valueOf: TrackType.valueOf, + enumValues: TrackType.values) ..aOS(3, _omitFieldNames ? '' : 'name') ..aOB(4, _omitFieldNames ? '' : 'muted') ..a<$core.int>(5, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) ..a<$core.int>(6, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) ..aOB(7, _omitFieldNames ? '' : 'simulcast') ..aOB(8, _omitFieldNames ? '' : 'disableDtx') - ..e(9, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, defaultOrMaker: TrackSource.UNKNOWN, valueOf: TrackSource.valueOf, enumValues: TrackSource.values) - ..pc(10, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayer.create) + ..e(9, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, + defaultOrMaker: TrackSource.UNKNOWN, + valueOf: TrackSource.valueOf, + enumValues: TrackSource.values) + ..pc(10, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, + subBuilder: VideoLayer.create) ..aOS(11, _omitFieldNames ? '' : 'mimeType') ..aOS(12, _omitFieldNames ? '' : 'mid') - ..pc(13, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, subBuilder: SimulcastCodecInfo.create) + ..pc( + 13, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, + subBuilder: SimulcastCodecInfo.create) ..aOB(14, _omitFieldNames ? '' : 'stereo') ..aOB(15, _omitFieldNames ? '' : 'disableRed') - ..e(16, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, defaultOrMaker: Encryption_Type.NONE, valueOf: Encryption_Type.valueOf, enumValues: Encryption_Type.values) + ..e( + 16, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, + defaultOrMaker: Encryption_Type.NONE, + valueOf: Encryption_Type.valueOf, + enumValues: Encryption_Type.values) ..aOS(17, _omitFieldNames ? '' : 'stream') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrackInfo clone() => TrackInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackInfo copyWith(void Function(TrackInfo) updates) => super.copyWith((message) => updates(message as TrackInfo)) as TrackInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackInfo copyWith(void Function(TrackInfo) updates) => + super.copyWith((message) => updates(message as TrackInfo)) as TrackInfo; $pb.BuilderInfo get info_ => _i; @@ -906,13 +1095,17 @@ class TrackInfo extends $pb.GeneratedMessage { TrackInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrackInfo getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { $_setString(0, v); } + set sid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -921,7 +1114,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) TrackType get type => $_getN(1); @$pb.TagNumber(2) - set type(TrackType v) { setField(2, v); } + set type(TrackType v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) @@ -930,7 +1126,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) - set name($core.String v) { $_setString(2, v); } + set name($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasName() => $_has(2); @$pb.TagNumber(3) @@ -939,7 +1138,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get muted => $_getBF(3); @$pb.TagNumber(4) - set muted($core.bool v) { $_setBool(3, v); } + set muted($core.bool v) { + $_setBool(3, v); + } + @$pb.TagNumber(4) $core.bool hasMuted() => $_has(3); @$pb.TagNumber(4) @@ -950,7 +1152,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get width => $_getIZ(4); @$pb.TagNumber(5) - set width($core.int v) { $_setUnsignedInt32(4, v); } + set width($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasWidth() => $_has(4); @$pb.TagNumber(5) @@ -960,7 +1165,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get height => $_getIZ(5); @$pb.TagNumber(6) - set height($core.int v) { $_setUnsignedInt32(5, v); } + set height($core.int v) { + $_setUnsignedInt32(5, v); + } + @$pb.TagNumber(6) $core.bool hasHeight() => $_has(5); @$pb.TagNumber(6) @@ -970,7 +1178,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get simulcast => $_getBF(6); @$pb.TagNumber(7) - set simulcast($core.bool v) { $_setBool(6, v); } + set simulcast($core.bool v) { + $_setBool(6, v); + } + @$pb.TagNumber(7) $core.bool hasSimulcast() => $_has(6); @$pb.TagNumber(7) @@ -980,7 +1191,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.bool get disableDtx => $_getBF(7); @$pb.TagNumber(8) - set disableDtx($core.bool v) { $_setBool(7, v); } + set disableDtx($core.bool v) { + $_setBool(7, v); + } + @$pb.TagNumber(8) $core.bool hasDisableDtx() => $_has(7); @$pb.TagNumber(8) @@ -990,7 +1204,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(9) TrackSource get source => $_getN(8); @$pb.TagNumber(9) - set source(TrackSource v) { setField(9, v); } + set source(TrackSource v) { + setField(9, v); + } + @$pb.TagNumber(9) $core.bool hasSource() => $_has(8); @$pb.TagNumber(9) @@ -1003,7 +1220,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.String get mimeType => $_getSZ(10); @$pb.TagNumber(11) - set mimeType($core.String v) { $_setString(10, v); } + set mimeType($core.String v) { + $_setString(10, v); + } + @$pb.TagNumber(11) $core.bool hasMimeType() => $_has(10); @$pb.TagNumber(11) @@ -1012,7 +1232,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.String get mid => $_getSZ(11); @$pb.TagNumber(12) - set mid($core.String v) { $_setString(11, v); } + set mid($core.String v) { + $_setString(11, v); + } + @$pb.TagNumber(12) $core.bool hasMid() => $_has(11); @$pb.TagNumber(12) @@ -1024,7 +1247,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.bool get stereo => $_getBF(13); @$pb.TagNumber(14) - set stereo($core.bool v) { $_setBool(13, v); } + set stereo($core.bool v) { + $_setBool(13, v); + } + @$pb.TagNumber(14) $core.bool hasStereo() => $_has(13); @$pb.TagNumber(14) @@ -1034,7 +1260,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.bool get disableRed => $_getBF(14); @$pb.TagNumber(15) - set disableRed($core.bool v) { $_setBool(14, v); } + set disableRed($core.bool v) { + $_setBool(14, v); + } + @$pb.TagNumber(15) $core.bool hasDisableRed() => $_has(14); @$pb.TagNumber(15) @@ -1043,7 +1272,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(16) Encryption_Type get encryption => $_getN(15); @$pb.TagNumber(16) - set encryption(Encryption_Type v) { setField(16, v); } + set encryption(Encryption_Type v) { + setField(16, v); + } + @$pb.TagNumber(16) $core.bool hasEncryption() => $_has(15); @$pb.TagNumber(16) @@ -1052,7 +1284,10 @@ class TrackInfo extends $pb.GeneratedMessage { @$pb.TagNumber(17) $core.String get stream => $_getSZ(16); @$pb.TagNumber(17) - set stream($core.String v) { $_setString(16, v); } + set stream($core.String v) { + $_setString(16, v); + } + @$pb.TagNumber(17) $core.bool hasStream() => $_has(16); @$pb.TagNumber(17) @@ -1087,28 +1322,36 @@ class VideoLayer extends $pb.GeneratedMessage { return $result; } VideoLayer._() : super(); - factory VideoLayer.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory VideoLayer.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoLayer', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: VideoQuality.LOW, valueOf: VideoQuality.valueOf, enumValues: VideoQuality.values) + factory VideoLayer.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory VideoLayer.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'VideoLayer', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, + defaultOrMaker: VideoQuality.LOW, + valueOf: VideoQuality.valueOf, + enumValues: VideoQuality.values) ..a<$core.int>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) ..a<$core.int>(3, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'bitrate', $pb.PbFieldType.OU3) ..a<$core.int>(5, _omitFieldNames ? '' : 'ssrc', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') VideoLayer clone() => VideoLayer()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VideoLayer copyWith(void Function(VideoLayer) updates) => super.copyWith((message) => updates(message as VideoLayer)) as VideoLayer; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + VideoLayer copyWith(void Function(VideoLayer) updates) => + super.copyWith((message) => updates(message as VideoLayer)) as VideoLayer; $pb.BuilderInfo get info_ => _i; @@ -1117,14 +1360,18 @@ class VideoLayer extends $pb.GeneratedMessage { VideoLayer createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static VideoLayer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static VideoLayer getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static VideoLayer? _defaultInstance; /// for tracks with a single layer, this should be HIGH @$pb.TagNumber(1) VideoQuality get quality => $_getN(0); @$pb.TagNumber(1) - set quality(VideoQuality v) { setField(1, v); } + set quality(VideoQuality v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasQuality() => $_has(0); @$pb.TagNumber(1) @@ -1133,7 +1380,10 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get width => $_getIZ(1); @$pb.TagNumber(2) - set width($core.int v) { $_setUnsignedInt32(1, v); } + set width($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasWidth() => $_has(1); @$pb.TagNumber(2) @@ -1142,7 +1392,10 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get height => $_getIZ(2); @$pb.TagNumber(3) - set height($core.int v) { $_setUnsignedInt32(2, v); } + set height($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasHeight() => $_has(2); @$pb.TagNumber(3) @@ -1152,7 +1405,10 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get bitrate => $_getIZ(3); @$pb.TagNumber(4) - set bitrate($core.int v) { $_setUnsignedInt32(3, v); } + set bitrate($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasBitrate() => $_has(3); @$pb.TagNumber(4) @@ -1161,18 +1417,17 @@ class VideoLayer extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get ssrc => $_getIZ(4); @$pb.TagNumber(5) - set ssrc($core.int v) { $_setUnsignedInt32(4, v); } + set ssrc($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasSsrc() => $_has(4); @$pb.TagNumber(5) void clearSsrc() => clearField(5); } -enum DataPacket_Value { - user, - speaker, - notSet -} +enum DataPacket_Value { user, speaker, notSet } /// new DataPacket API class DataPacket extends $pb.GeneratedMessage { @@ -1194,32 +1449,42 @@ class DataPacket extends $pb.GeneratedMessage { return $result; } DataPacket._() : super(); - factory DataPacket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DataPacket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + factory DataPacket.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DataPacket.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); static const $core.Map<$core.int, DataPacket_Value> _DataPacket_ValueByTag = { - 2 : DataPacket_Value.user, - 3 : DataPacket_Value.speaker, - 0 : DataPacket_Value.notSet + 2: DataPacket_Value.user, + 3: DataPacket_Value.speaker, + 0: DataPacket_Value.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DataPacket', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..oo(0, [2, 3]) - ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, defaultOrMaker: DataPacket_Kind.RELIABLE, valueOf: DataPacket_Kind.valueOf, enumValues: DataPacket_Kind.values) - ..aOM(2, _omitFieldNames ? '' : 'user', subBuilder: UserPacket.create) - ..aOM(3, _omitFieldNames ? '' : 'speaker', subBuilder: ActiveSpeakerUpdate.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, + defaultOrMaker: DataPacket_Kind.RELIABLE, + valueOf: DataPacket_Kind.valueOf, + enumValues: DataPacket_Kind.values) + ..aOM(2, _omitFieldNames ? '' : 'user', + subBuilder: UserPacket.create) + ..aOM(3, _omitFieldNames ? '' : 'speaker', + subBuilder: ActiveSpeakerUpdate.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DataPacket clone() => DataPacket()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DataPacket copyWith(void Function(DataPacket) updates) => super.copyWith((message) => updates(message as DataPacket)) as DataPacket; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DataPacket copyWith(void Function(DataPacket) updates) => + super.copyWith((message) => updates(message as DataPacket)) as DataPacket; $pb.BuilderInfo get info_ => _i; @@ -1228,7 +1493,8 @@ class DataPacket extends $pb.GeneratedMessage { DataPacket createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static DataPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataPacket getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DataPacket? _defaultInstance; DataPacket_Value whichValue() => _DataPacket_ValueByTag[$_whichOneof(0)]!; @@ -1237,7 +1503,10 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(1) DataPacket_Kind get kind => $_getN(0); @$pb.TagNumber(1) - set kind(DataPacket_Kind v) { setField(1, v); } + set kind(DataPacket_Kind v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasKind() => $_has(0); @$pb.TagNumber(1) @@ -1246,7 +1515,10 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(2) UserPacket get user => $_getN(1); @$pb.TagNumber(2) - set user(UserPacket v) { setField(2, v); } + set user(UserPacket v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasUser() => $_has(1); @$pb.TagNumber(2) @@ -1257,7 +1529,10 @@ class DataPacket extends $pb.GeneratedMessage { @$pb.TagNumber(3) ActiveSpeakerUpdate get speaker => $_getN(2); @$pb.TagNumber(3) - set speaker(ActiveSpeakerUpdate v) { setField(3, v); } + set speaker(ActiveSpeakerUpdate v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasSpeaker() => $_has(2); @$pb.TagNumber(3) @@ -1277,33 +1552,42 @@ class ActiveSpeakerUpdate extends $pb.GeneratedMessage { return $result; } ActiveSpeakerUpdate._() : super(); - factory ActiveSpeakerUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ActiveSpeakerUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActiveSpeakerUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, subBuilder: SpeakerInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ActiveSpeakerUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ActiveSpeakerUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ActiveSpeakerUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, + subBuilder: SpeakerInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ActiveSpeakerUpdate clone() => ActiveSpeakerUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ActiveSpeakerUpdate copyWith(void Function(ActiveSpeakerUpdate) updates) => super.copyWith((message) => updates(message as ActiveSpeakerUpdate)) as ActiveSpeakerUpdate; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ActiveSpeakerUpdate copyWith(void Function(ActiveSpeakerUpdate) updates) => + super.copyWith((message) => updates(message as ActiveSpeakerUpdate)) + as ActiveSpeakerUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ActiveSpeakerUpdate create() => ActiveSpeakerUpdate._(); ActiveSpeakerUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ActiveSpeakerUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ActiveSpeakerUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ActiveSpeakerUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -1329,26 +1613,32 @@ class SpeakerInfo extends $pb.GeneratedMessage { return $result; } SpeakerInfo._() : super(); - factory SpeakerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpeakerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpeakerInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SpeakerInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SpeakerInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SpeakerInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'sid') ..a<$core.double>(2, _omitFieldNames ? '' : 'level', $pb.PbFieldType.OF) ..aOB(3, _omitFieldNames ? '' : 'active') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SpeakerInfo clone() => SpeakerInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpeakerInfo copyWith(void Function(SpeakerInfo) updates) => super.copyWith((message) => updates(message as SpeakerInfo)) as SpeakerInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SpeakerInfo copyWith(void Function(SpeakerInfo) updates) => + super.copyWith((message) => updates(message as SpeakerInfo)) + as SpeakerInfo; $pb.BuilderInfo get info_ => _i; @@ -1357,13 +1647,17 @@ class SpeakerInfo extends $pb.GeneratedMessage { SpeakerInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SpeakerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SpeakerInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SpeakerInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { $_setString(0, v); } + set sid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -1373,7 +1667,10 @@ class SpeakerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.double get level => $_getN(1); @$pb.TagNumber(2) - set level($core.double v) { $_setFloat(1, v); } + set level($core.double v) { + $_setFloat(1, v); + } + @$pb.TagNumber(2) $core.bool hasLevel() => $_has(1); @$pb.TagNumber(2) @@ -1383,7 +1680,10 @@ class SpeakerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get active => $_getBF(2); @$pb.TagNumber(3) - set active($core.bool v) { $_setBool(2, v); } + set active($core.bool v) { + $_setBool(2, v); + } + @$pb.TagNumber(3) $core.bool hasActive() => $_has(2); @$pb.TagNumber(3) @@ -1421,29 +1721,35 @@ class UserPacket extends $pb.GeneratedMessage { return $result; } UserPacket._() : super(); - factory UserPacket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UserPacket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UserPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory UserPacket.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UserPacket.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UserPacket', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') - ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY) ..pPS(3, _omitFieldNames ? '' : 'destinationSids') ..aOS(4, _omitFieldNames ? '' : 'topic') ..aOS(5, _omitFieldNames ? '' : 'participantIdentity') ..pPS(6, _omitFieldNames ? '' : 'destinationIdentities') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UserPacket clone() => UserPacket()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UserPacket copyWith(void Function(UserPacket) updates) => super.copyWith((message) => updates(message as UserPacket)) as UserPacket; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UserPacket copyWith(void Function(UserPacket) updates) => + super.copyWith((message) => updates(message as UserPacket)) as UserPacket; $pb.BuilderInfo get info_ => _i; @@ -1452,14 +1758,18 @@ class UserPacket extends $pb.GeneratedMessage { UserPacket createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static UserPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UserPacket getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UserPacket? _defaultInstance; /// participant ID of user that sent the message @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -1469,7 +1779,10 @@ class UserPacket extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.List<$core.int> get payload => $_getN(1); @$pb.TagNumber(2) - set payload($core.List<$core.int> v) { $_setBytes(1, v); } + set payload($core.List<$core.int> v) { + $_setBytes(1, v); + } + @$pb.TagNumber(2) $core.bool hasPayload() => $_has(1); @$pb.TagNumber(2) @@ -1483,7 +1796,10 @@ class UserPacket extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get topic => $_getSZ(3); @$pb.TagNumber(4) - set topic($core.String v) { $_setString(3, v); } + set topic($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasTopic() => $_has(3); @$pb.TagNumber(4) @@ -1492,7 +1808,10 @@ class UserPacket extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get participantIdentity => $_getSZ(4); @$pb.TagNumber(5) - set participantIdentity($core.String v) { $_setString(4, v); } + set participantIdentity($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasParticipantIdentity() => $_has(4); @$pb.TagNumber(5) @@ -1518,41 +1837,52 @@ class ParticipantTracks extends $pb.GeneratedMessage { return $result; } ParticipantTracks._() : super(); - factory ParticipantTracks.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ParticipantTracks.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantTracks', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory ParticipantTracks.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ParticipantTracks.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParticipantTracks', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') ..pPS(2, _omitFieldNames ? '' : 'trackSids') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantTracks clone() => ParticipantTracks()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantTracks copyWith(void Function(ParticipantTracks) updates) => super.copyWith((message) => updates(message as ParticipantTracks)) as ParticipantTracks; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantTracks copyWith(void Function(ParticipantTracks) updates) => + super.copyWith((message) => updates(message as ParticipantTracks)) + as ParticipantTracks; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ParticipantTracks create() => ParticipantTracks._(); ParticipantTracks createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantTracks getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantTracks getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ParticipantTracks? _defaultInstance; /// participant ID of participant to whom the tracks belong @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -1594,29 +1924,38 @@ class ServerInfo extends $pb.GeneratedMessage { return $result; } ServerInfo._() : super(); - factory ServerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ServerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, defaultOrMaker: ServerInfo_Edition.Standard, valueOf: ServerInfo_Edition.valueOf, enumValues: ServerInfo_Edition.values) + factory ServerInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ServerInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServerInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, + defaultOrMaker: ServerInfo_Edition.Standard, + valueOf: ServerInfo_Edition.valueOf, + enumValues: ServerInfo_Edition.values) ..aOS(2, _omitFieldNames ? '' : 'version') ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) ..aOS(4, _omitFieldNames ? '' : 'region') ..aOS(5, _omitFieldNames ? '' : 'nodeId') ..aOS(6, _omitFieldNames ? '' : 'debugInfo') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ServerInfo clone() => ServerInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ServerInfo copyWith(void Function(ServerInfo) updates) => super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ServerInfo copyWith(void Function(ServerInfo) updates) => + super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo; $pb.BuilderInfo get info_ => _i; @@ -1625,13 +1964,17 @@ class ServerInfo extends $pb.GeneratedMessage { ServerInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ServerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ServerInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ServerInfo? _defaultInstance; @$pb.TagNumber(1) ServerInfo_Edition get edition => $_getN(0); @$pb.TagNumber(1) - set edition(ServerInfo_Edition v) { setField(1, v); } + set edition(ServerInfo_Edition v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasEdition() => $_has(0); @$pb.TagNumber(1) @@ -1640,7 +1983,10 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { $_setString(1, v); } + set version($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -1649,7 +1995,10 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get protocol => $_getIZ(2); @$pb.TagNumber(3) - set protocol($core.int v) { $_setSignedInt32(2, v); } + set protocol($core.int v) { + $_setSignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasProtocol() => $_has(2); @$pb.TagNumber(3) @@ -1658,7 +2007,10 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get region => $_getSZ(3); @$pb.TagNumber(4) - set region($core.String v) { $_setString(3, v); } + set region($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasRegion() => $_has(3); @$pb.TagNumber(4) @@ -1667,7 +2019,10 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get nodeId => $_getSZ(4); @$pb.TagNumber(5) - set nodeId($core.String v) { $_setString(4, v); } + set nodeId($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasNodeId() => $_has(4); @$pb.TagNumber(5) @@ -1677,7 +2032,10 @@ class ServerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get debugInfo => $_getSZ(5); @$pb.TagNumber(6) - set debugInfo($core.String v) { $_setString(5, v); } + set debugInfo($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasDebugInfo() => $_has(5); @$pb.TagNumber(6) @@ -1732,11 +2090,21 @@ class ClientInfo extends $pb.GeneratedMessage { return $result; } ClientInfo._() : super(); - factory ClientInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ClientInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'sdk', $pb.PbFieldType.OE, defaultOrMaker: ClientInfo_SDK.UNKNOWN, valueOf: ClientInfo_SDK.valueOf, enumValues: ClientInfo_SDK.values) + factory ClientInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ClientInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ClientInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'sdk', $pb.PbFieldType.OE, + defaultOrMaker: ClientInfo_SDK.UNKNOWN, + valueOf: ClientInfo_SDK.valueOf, + enumValues: ClientInfo_SDK.values) ..aOS(2, _omitFieldNames ? '' : 'version') ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) ..aOS(4, _omitFieldNames ? '' : 'os') @@ -1746,19 +2114,17 @@ class ClientInfo extends $pb.GeneratedMessage { ..aOS(8, _omitFieldNames ? '' : 'browserVersion') ..aOS(9, _omitFieldNames ? '' : 'address') ..aOS(10, _omitFieldNames ? '' : 'network') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ClientInfo clone() => ClientInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientInfo copyWith(void Function(ClientInfo) updates) => super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientInfo copyWith(void Function(ClientInfo) updates) => + super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; $pb.BuilderInfo get info_ => _i; @@ -1767,13 +2133,17 @@ class ClientInfo extends $pb.GeneratedMessage { ClientInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ClientInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ClientInfo? _defaultInstance; @$pb.TagNumber(1) ClientInfo_SDK get sdk => $_getN(0); @$pb.TagNumber(1) - set sdk(ClientInfo_SDK v) { setField(1, v); } + set sdk(ClientInfo_SDK v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasSdk() => $_has(0); @$pb.TagNumber(1) @@ -1782,7 +2152,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) - set version($core.String v) { $_setString(1, v); } + set version($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasVersion() => $_has(1); @$pb.TagNumber(2) @@ -1791,7 +2164,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get protocol => $_getIZ(2); @$pb.TagNumber(3) - set protocol($core.int v) { $_setSignedInt32(2, v); } + set protocol($core.int v) { + $_setSignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasProtocol() => $_has(2); @$pb.TagNumber(3) @@ -1800,7 +2176,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get os => $_getSZ(3); @$pb.TagNumber(4) - set os($core.String v) { $_setString(3, v); } + set os($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasOs() => $_has(3); @$pb.TagNumber(4) @@ -1809,7 +2188,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.String get osVersion => $_getSZ(4); @$pb.TagNumber(5) - set osVersion($core.String v) { $_setString(4, v); } + set osVersion($core.String v) { + $_setString(4, v); + } + @$pb.TagNumber(5) $core.bool hasOsVersion() => $_has(4); @$pb.TagNumber(5) @@ -1818,7 +2200,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.String get deviceModel => $_getSZ(5); @$pb.TagNumber(6) - set deviceModel($core.String v) { $_setString(5, v); } + set deviceModel($core.String v) { + $_setString(5, v); + } + @$pb.TagNumber(6) $core.bool hasDeviceModel() => $_has(5); @$pb.TagNumber(6) @@ -1827,7 +2212,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get browser => $_getSZ(6); @$pb.TagNumber(7) - set browser($core.String v) { $_setString(6, v); } + set browser($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(7) $core.bool hasBrowser() => $_has(6); @$pb.TagNumber(7) @@ -1836,7 +2224,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.String get browserVersion => $_getSZ(7); @$pb.TagNumber(8) - set browserVersion($core.String v) { $_setString(7, v); } + set browserVersion($core.String v) { + $_setString(7, v); + } + @$pb.TagNumber(8) $core.bool hasBrowserVersion() => $_has(7); @$pb.TagNumber(8) @@ -1845,7 +2236,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get address => $_getSZ(8); @$pb.TagNumber(9) - set address($core.String v) { $_setString(8, v); } + set address($core.String v) { + $_setString(8, v); + } + @$pb.TagNumber(9) $core.bool hasAddress() => $_has(8); @$pb.TagNumber(9) @@ -1855,7 +2249,10 @@ class ClientInfo extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.String get network => $_getSZ(9); @$pb.TagNumber(10) - set network($core.String v) { $_setString(9, v); } + set network($core.String v) { + $_setString(9, v); + } + @$pb.TagNumber(10) $core.bool hasNetwork() => $_has(9); @$pb.TagNumber(10) @@ -1890,43 +2287,65 @@ class ClientConfiguration extends $pb.GeneratedMessage { return $result; } ClientConfiguration._() : super(); - factory ClientConfiguration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ClientConfiguration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientConfiguration', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'video', subBuilder: VideoConfiguration.create) - ..aOM(2, _omitFieldNames ? '' : 'screen', subBuilder: VideoConfiguration.create) - ..e(3, _omitFieldNames ? '' : 'resumeConnection', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) - ..aOM(4, _omitFieldNames ? '' : 'disabledCodecs', subBuilder: DisabledCodecs.create) - ..e(5, _omitFieldNames ? '' : 'forceRelay', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ClientConfiguration.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ClientConfiguration.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ClientConfiguration', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'video', + subBuilder: VideoConfiguration.create) + ..aOM(2, _omitFieldNames ? '' : 'screen', + subBuilder: VideoConfiguration.create) + ..e( + 3, _omitFieldNames ? '' : 'resumeConnection', $pb.PbFieldType.OE, + defaultOrMaker: ClientConfigSetting.UNSET, + valueOf: ClientConfigSetting.valueOf, + enumValues: ClientConfigSetting.values) + ..aOM(4, _omitFieldNames ? '' : 'disabledCodecs', + subBuilder: DisabledCodecs.create) + ..e( + 5, _omitFieldNames ? '' : 'forceRelay', $pb.PbFieldType.OE, + defaultOrMaker: ClientConfigSetting.UNSET, + valueOf: ClientConfigSetting.valueOf, + enumValues: ClientConfigSetting.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ClientConfiguration clone() => ClientConfiguration()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ClientConfiguration copyWith(void Function(ClientConfiguration) updates) => super.copyWith((message) => updates(message as ClientConfiguration)) as ClientConfiguration; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientConfiguration copyWith(void Function(ClientConfiguration) updates) => + super.copyWith((message) => updates(message as ClientConfiguration)) + as ClientConfiguration; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ClientConfiguration create() => ClientConfiguration._(); ClientConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ClientConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ClientConfiguration getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ClientConfiguration? _defaultInstance; @$pb.TagNumber(1) VideoConfiguration get video => $_getN(0); @$pb.TagNumber(1) - set video(VideoConfiguration v) { setField(1, v); } + set video(VideoConfiguration v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasVideo() => $_has(0); @$pb.TagNumber(1) @@ -1937,7 +2356,10 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(2) VideoConfiguration get screen => $_getN(1); @$pb.TagNumber(2) - set screen(VideoConfiguration v) { setField(2, v); } + set screen(VideoConfiguration v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasScreen() => $_has(1); @$pb.TagNumber(2) @@ -1948,7 +2370,10 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(3) ClientConfigSetting get resumeConnection => $_getN(2); @$pb.TagNumber(3) - set resumeConnection(ClientConfigSetting v) { setField(3, v); } + set resumeConnection(ClientConfigSetting v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasResumeConnection() => $_has(2); @$pb.TagNumber(3) @@ -1957,7 +2382,10 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(4) DisabledCodecs get disabledCodecs => $_getN(3); @$pb.TagNumber(4) - set disabledCodecs(DisabledCodecs v) { setField(4, v); } + set disabledCodecs(DisabledCodecs v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasDisabledCodecs() => $_has(3); @$pb.TagNumber(4) @@ -1968,7 +2396,10 @@ class ClientConfiguration extends $pb.GeneratedMessage { @$pb.TagNumber(5) ClientConfigSetting get forceRelay => $_getN(4); @$pb.TagNumber(5) - set forceRelay(ClientConfigSetting v) { setField(5, v); } + set forceRelay(ClientConfigSetting v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasForceRelay() => $_has(4); @$pb.TagNumber(5) @@ -1986,39 +2417,54 @@ class VideoConfiguration extends $pb.GeneratedMessage { return $result; } VideoConfiguration._() : super(); - factory VideoConfiguration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory VideoConfiguration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VideoConfiguration', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'hardwareEncoder', $pb.PbFieldType.OE, defaultOrMaker: ClientConfigSetting.UNSET, valueOf: ClientConfigSetting.valueOf, enumValues: ClientConfigSetting.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory VideoConfiguration.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory VideoConfiguration.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'VideoConfiguration', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'hardwareEncoder', $pb.PbFieldType.OE, + defaultOrMaker: ClientConfigSetting.UNSET, + valueOf: ClientConfigSetting.valueOf, + enumValues: ClientConfigSetting.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') VideoConfiguration clone() => VideoConfiguration()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - VideoConfiguration copyWith(void Function(VideoConfiguration) updates) => super.copyWith((message) => updates(message as VideoConfiguration)) as VideoConfiguration; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + VideoConfiguration copyWith(void Function(VideoConfiguration) updates) => + super.copyWith((message) => updates(message as VideoConfiguration)) + as VideoConfiguration; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static VideoConfiguration create() => VideoConfiguration._(); VideoConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static VideoConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static VideoConfiguration getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static VideoConfiguration? _defaultInstance; @$pb.TagNumber(1) ClientConfigSetting get hardwareEncoder => $_getN(0); @$pb.TagNumber(1) - set hardwareEncoder(ClientConfigSetting v) { setField(1, v); } + set hardwareEncoder(ClientConfigSetting v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasHardwareEncoder() => $_has(0); @$pb.TagNumber(1) @@ -2040,34 +2486,44 @@ class DisabledCodecs extends $pb.GeneratedMessage { return $result; } DisabledCodecs._() : super(); - factory DisabledCodecs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DisabledCodecs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DisabledCodecs', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, subBuilder: Codec.create) - ..pc(2, _omitFieldNames ? '' : 'publish', $pb.PbFieldType.PM, subBuilder: Codec.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory DisabledCodecs.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DisabledCodecs.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DisabledCodecs', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, + subBuilder: Codec.create) + ..pc(2, _omitFieldNames ? '' : 'publish', $pb.PbFieldType.PM, + subBuilder: Codec.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DisabledCodecs clone() => DisabledCodecs()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DisabledCodecs copyWith(void Function(DisabledCodecs) updates) => super.copyWith((message) => updates(message as DisabledCodecs)) as DisabledCodecs; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DisabledCodecs copyWith(void Function(DisabledCodecs) updates) => + super.copyWith((message) => updates(message as DisabledCodecs)) + as DisabledCodecs; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DisabledCodecs create() => DisabledCodecs._(); DisabledCodecs createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DisabledCodecs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DisabledCodecs getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DisabledCodecs? _defaultInstance; /// disabled for both publish and subscribe @@ -2122,32 +2578,45 @@ class RTPDrift extends $pb.GeneratedMessage { return $result; } RTPDrift._() : super(); - factory RTPDrift.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RTPDrift.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RTPDrift', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $0.Timestamp.create) + factory RTPDrift.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RTPDrift.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RTPDrift', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $0.Timestamp.create) ..a<$core.double>(3, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OD) - ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'startTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'endTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'rtpClockTicks', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'startTimestamp', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 5, _omitFieldNames ? '' : 'endTimestamp', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 6, _omitFieldNames ? '' : 'rtpClockTicks', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) ..aInt64(7, _omitFieldNames ? '' : 'driftSamples') ..a<$core.double>(8, _omitFieldNames ? '' : 'driftMs', $pb.PbFieldType.OD) ..a<$core.double>(9, _omitFieldNames ? '' : 'clockRate', $pb.PbFieldType.OD) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RTPDrift clone() => RTPDrift()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RTPDrift copyWith(void Function(RTPDrift) updates) => super.copyWith((message) => updates(message as RTPDrift)) as RTPDrift; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RTPDrift copyWith(void Function(RTPDrift) updates) => + super.copyWith((message) => updates(message as RTPDrift)) as RTPDrift; $pb.BuilderInfo get info_ => _i; @@ -2156,13 +2625,17 @@ class RTPDrift extends $pb.GeneratedMessage { RTPDrift createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RTPDrift getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RTPDrift getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPDrift? _defaultInstance; @$pb.TagNumber(1) $0.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($0.Timestamp v) { setField(1, v); } + set startTime($0.Timestamp v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) @@ -2173,7 +2646,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(2) $0.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($0.Timestamp v) { setField(2, v); } + set endTime($0.Timestamp v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) @@ -2184,7 +2660,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get duration => $_getN(2); @$pb.TagNumber(3) - set duration($core.double v) { $_setDouble(2, v); } + set duration($core.double v) { + $_setDouble(2, v); + } + @$pb.TagNumber(3) $core.bool hasDuration() => $_has(2); @$pb.TagNumber(3) @@ -2193,7 +2672,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(4) $fixnum.Int64 get startTimestamp => $_getI64(3); @$pb.TagNumber(4) - set startTimestamp($fixnum.Int64 v) { $_setInt64(3, v); } + set startTimestamp($fixnum.Int64 v) { + $_setInt64(3, v); + } + @$pb.TagNumber(4) $core.bool hasStartTimestamp() => $_has(3); @$pb.TagNumber(4) @@ -2202,7 +2684,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(5) $fixnum.Int64 get endTimestamp => $_getI64(4); @$pb.TagNumber(5) - set endTimestamp($fixnum.Int64 v) { $_setInt64(4, v); } + set endTimestamp($fixnum.Int64 v) { + $_setInt64(4, v); + } + @$pb.TagNumber(5) $core.bool hasEndTimestamp() => $_has(4); @$pb.TagNumber(5) @@ -2211,7 +2696,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get rtpClockTicks => $_getI64(5); @$pb.TagNumber(6) - set rtpClockTicks($fixnum.Int64 v) { $_setInt64(5, v); } + set rtpClockTicks($fixnum.Int64 v) { + $_setInt64(5, v); + } + @$pb.TagNumber(6) $core.bool hasRtpClockTicks() => $_has(5); @$pb.TagNumber(6) @@ -2220,7 +2708,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(7) $fixnum.Int64 get driftSamples => $_getI64(6); @$pb.TagNumber(7) - set driftSamples($fixnum.Int64 v) { $_setInt64(6, v); } + set driftSamples($fixnum.Int64 v) { + $_setInt64(6, v); + } + @$pb.TagNumber(7) $core.bool hasDriftSamples() => $_has(6); @$pb.TagNumber(7) @@ -2229,7 +2720,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.double get driftMs => $_getN(7); @$pb.TagNumber(8) - set driftMs($core.double v) { $_setDouble(7, v); } + set driftMs($core.double v) { + $_setDouble(7, v); + } + @$pb.TagNumber(8) $core.bool hasDriftMs() => $_has(7); @$pb.TagNumber(8) @@ -2238,7 +2732,10 @@ class RTPDrift extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.double get clockRate => $_getN(8); @$pb.TagNumber(9) - set clockRate($core.double v) { $_setDouble(8, v); } + set clockRate($core.double v) { + $_setDouble(8, v); + } + @$pb.TagNumber(9) $core.bool hasClockRate() => $_has(8); @$pb.TagNumber(9) @@ -2424,66 +2921,109 @@ class RTPStats extends $pb.GeneratedMessage { return $result; } RTPStats._() : super(); - factory RTPStats.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RTPStats.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RTPStats', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $0.Timestamp.create) + factory RTPStats.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RTPStats.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RTPStats', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..aOM<$0.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $0.Timestamp.create) ..a<$core.double>(3, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OD) ..a<$core.int>(4, _omitFieldNames ? '' : 'packets', $pb.PbFieldType.OU3) - ..a<$core.double>(5, _omitFieldNames ? '' : 'packetRate', $pb.PbFieldType.OD) - ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'bytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'packetRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>(6, _omitFieldNames ? '' : 'bytes', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) ..a<$core.double>(7, _omitFieldNames ? '' : 'bitrate', $pb.PbFieldType.OD) ..a<$core.int>(8, _omitFieldNames ? '' : 'packetsLost', $pb.PbFieldType.OU3) - ..a<$core.double>(9, _omitFieldNames ? '' : 'packetLossRate', $pb.PbFieldType.OD) - ..a<$core.double>(10, _omitFieldNames ? '' : 'packetLossPercentage', $pb.PbFieldType.OF) - ..a<$core.int>(11, _omitFieldNames ? '' : 'packetsDuplicate', $pb.PbFieldType.OU3) - ..a<$core.double>(12, _omitFieldNames ? '' : 'packetDuplicateRate', $pb.PbFieldType.OD) - ..a<$fixnum.Int64>(13, _omitFieldNames ? '' : 'bytesDuplicate', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(14, _omitFieldNames ? '' : 'bitrateDuplicate', $pb.PbFieldType.OD) - ..a<$core.int>(15, _omitFieldNames ? '' : 'packetsPadding', $pb.PbFieldType.OU3) - ..a<$core.double>(16, _omitFieldNames ? '' : 'packetPaddingRate', $pb.PbFieldType.OD) - ..a<$fixnum.Int64>(17, _omitFieldNames ? '' : 'bytesPadding', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(18, _omitFieldNames ? '' : 'bitratePadding', $pb.PbFieldType.OD) - ..a<$core.int>(19, _omitFieldNames ? '' : 'packetsOutOfOrder', $pb.PbFieldType.OU3) + ..a<$core.double>( + 9, _omitFieldNames ? '' : 'packetLossRate', $pb.PbFieldType.OD) + ..a<$core.double>( + 10, _omitFieldNames ? '' : 'packetLossPercentage', $pb.PbFieldType.OF) + ..a<$core.int>( + 11, _omitFieldNames ? '' : 'packetsDuplicate', $pb.PbFieldType.OU3) + ..a<$core.double>( + 12, _omitFieldNames ? '' : 'packetDuplicateRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>( + 13, _omitFieldNames ? '' : 'bytesDuplicate', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 14, _omitFieldNames ? '' : 'bitrateDuplicate', $pb.PbFieldType.OD) + ..a<$core.int>( + 15, _omitFieldNames ? '' : 'packetsPadding', $pb.PbFieldType.OU3) + ..a<$core.double>( + 16, _omitFieldNames ? '' : 'packetPaddingRate', $pb.PbFieldType.OD) + ..a<$fixnum.Int64>( + 17, _omitFieldNames ? '' : 'bytesPadding', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 18, _omitFieldNames ? '' : 'bitratePadding', $pb.PbFieldType.OD) + ..a<$core.int>( + 19, _omitFieldNames ? '' : 'packetsOutOfOrder', $pb.PbFieldType.OU3) ..a<$core.int>(20, _omitFieldNames ? '' : 'frames', $pb.PbFieldType.OU3) - ..a<$core.double>(21, _omitFieldNames ? '' : 'frameRate', $pb.PbFieldType.OD) - ..a<$core.double>(22, _omitFieldNames ? '' : 'jitterCurrent', $pb.PbFieldType.OD) - ..a<$core.double>(23, _omitFieldNames ? '' : 'jitterMax', $pb.PbFieldType.OD) - ..m<$core.int, $core.int>(24, _omitFieldNames ? '' : 'gapHistogram', entryClassName: 'RTPStats.GapHistogramEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OU3, packageName: const $pb.PackageName('livekit')) + ..a<$core.double>( + 21, _omitFieldNames ? '' : 'frameRate', $pb.PbFieldType.OD) + ..a<$core.double>( + 22, _omitFieldNames ? '' : 'jitterCurrent', $pb.PbFieldType.OD) + ..a<$core.double>( + 23, _omitFieldNames ? '' : 'jitterMax', $pb.PbFieldType.OD) + ..m<$core.int, $core.int>(24, _omitFieldNames ? '' : 'gapHistogram', + entryClassName: 'RTPStats.GapHistogramEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OU3, + packageName: const $pb.PackageName('livekit')) ..a<$core.int>(25, _omitFieldNames ? '' : 'nacks', $pb.PbFieldType.OU3) ..a<$core.int>(26, _omitFieldNames ? '' : 'nackMisses', $pb.PbFieldType.OU3) ..a<$core.int>(27, _omitFieldNames ? '' : 'plis', $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>(28, _omitFieldNames ? '' : 'lastPli', subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(28, _omitFieldNames ? '' : 'lastPli', + subBuilder: $0.Timestamp.create) ..a<$core.int>(29, _omitFieldNames ? '' : 'firs', $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>(30, _omitFieldNames ? '' : 'lastFir', subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(30, _omitFieldNames ? '' : 'lastFir', + subBuilder: $0.Timestamp.create) ..a<$core.int>(31, _omitFieldNames ? '' : 'rttCurrent', $pb.PbFieldType.OU3) ..a<$core.int>(32, _omitFieldNames ? '' : 'rttMax', $pb.PbFieldType.OU3) ..a<$core.int>(33, _omitFieldNames ? '' : 'keyFrames', $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>(34, _omitFieldNames ? '' : 'lastKeyFrame', subBuilder: $0.Timestamp.create) - ..a<$core.int>(35, _omitFieldNames ? '' : 'layerLockPlis', $pb.PbFieldType.OU3) - ..aOM<$0.Timestamp>(36, _omitFieldNames ? '' : 'lastLayerLockPli', subBuilder: $0.Timestamp.create) + ..aOM<$0.Timestamp>(34, _omitFieldNames ? '' : 'lastKeyFrame', + subBuilder: $0.Timestamp.create) + ..a<$core.int>( + 35, _omitFieldNames ? '' : 'layerLockPlis', $pb.PbFieldType.OU3) + ..aOM<$0.Timestamp>(36, _omitFieldNames ? '' : 'lastLayerLockPli', + subBuilder: $0.Timestamp.create) ..a<$core.int>(37, _omitFieldNames ? '' : 'nackAcks', $pb.PbFieldType.OU3) - ..a<$core.int>(38, _omitFieldNames ? '' : 'nackRepeated', $pb.PbFieldType.OU3) - ..a<$fixnum.Int64>(39, _omitFieldNames ? '' : 'headerBytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(40, _omitFieldNames ? '' : 'headerBytesDuplicate', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(41, _omitFieldNames ? '' : 'headerBytesPadding', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..aOM(44, _omitFieldNames ? '' : 'packetDrift', subBuilder: RTPDrift.create) - ..aOM(45, _omitFieldNames ? '' : 'reportDrift', subBuilder: RTPDrift.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>( + 38, _omitFieldNames ? '' : 'nackRepeated', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>( + 39, _omitFieldNames ? '' : 'headerBytes', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 40, _omitFieldNames ? '' : 'headerBytesDuplicate', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 41, _omitFieldNames ? '' : 'headerBytesPadding', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(44, _omitFieldNames ? '' : 'packetDrift', + subBuilder: RTPDrift.create) + ..aOM(45, _omitFieldNames ? '' : 'reportDrift', + subBuilder: RTPDrift.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RTPStats clone() => RTPStats()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RTPStats copyWith(void Function(RTPStats) updates) => super.copyWith((message) => updates(message as RTPStats)) as RTPStats; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RTPStats copyWith(void Function(RTPStats) updates) => + super.copyWith((message) => updates(message as RTPStats)) as RTPStats; $pb.BuilderInfo get info_ => _i; @@ -2492,13 +3032,17 @@ class RTPStats extends $pb.GeneratedMessage { RTPStats createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RTPStats getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RTPStats getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPStats? _defaultInstance; @$pb.TagNumber(1) $0.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($0.Timestamp v) { setField(1, v); } + set startTime($0.Timestamp v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) @@ -2509,7 +3053,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(2) $0.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($0.Timestamp v) { setField(2, v); } + set endTime($0.Timestamp v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) @@ -2520,7 +3067,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get duration => $_getN(2); @$pb.TagNumber(3) - set duration($core.double v) { $_setDouble(2, v); } + set duration($core.double v) { + $_setDouble(2, v); + } + @$pb.TagNumber(3) $core.bool hasDuration() => $_has(2); @$pb.TagNumber(3) @@ -2529,7 +3079,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get packets => $_getIZ(3); @$pb.TagNumber(4) - set packets($core.int v) { $_setUnsignedInt32(3, v); } + set packets($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasPackets() => $_has(3); @$pb.TagNumber(4) @@ -2538,7 +3091,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.double get packetRate => $_getN(4); @$pb.TagNumber(5) - set packetRate($core.double v) { $_setDouble(4, v); } + set packetRate($core.double v) { + $_setDouble(4, v); + } + @$pb.TagNumber(5) $core.bool hasPacketRate() => $_has(4); @$pb.TagNumber(5) @@ -2547,7 +3103,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get bytes => $_getI64(5); @$pb.TagNumber(6) - set bytes($fixnum.Int64 v) { $_setInt64(5, v); } + set bytes($fixnum.Int64 v) { + $_setInt64(5, v); + } + @$pb.TagNumber(6) $core.bool hasBytes() => $_has(5); @$pb.TagNumber(6) @@ -2556,7 +3115,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.double get bitrate => $_getN(6); @$pb.TagNumber(7) - set bitrate($core.double v) { $_setDouble(6, v); } + set bitrate($core.double v) { + $_setDouble(6, v); + } + @$pb.TagNumber(7) $core.bool hasBitrate() => $_has(6); @$pb.TagNumber(7) @@ -2565,7 +3127,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.int get packetsLost => $_getIZ(7); @$pb.TagNumber(8) - set packetsLost($core.int v) { $_setUnsignedInt32(7, v); } + set packetsLost($core.int v) { + $_setUnsignedInt32(7, v); + } + @$pb.TagNumber(8) $core.bool hasPacketsLost() => $_has(7); @$pb.TagNumber(8) @@ -2574,7 +3139,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.double get packetLossRate => $_getN(8); @$pb.TagNumber(9) - set packetLossRate($core.double v) { $_setDouble(8, v); } + set packetLossRate($core.double v) { + $_setDouble(8, v); + } + @$pb.TagNumber(9) $core.bool hasPacketLossRate() => $_has(8); @$pb.TagNumber(9) @@ -2583,7 +3151,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.double get packetLossPercentage => $_getN(9); @$pb.TagNumber(10) - set packetLossPercentage($core.double v) { $_setFloat(9, v); } + set packetLossPercentage($core.double v) { + $_setFloat(9, v); + } + @$pb.TagNumber(10) $core.bool hasPacketLossPercentage() => $_has(9); @$pb.TagNumber(10) @@ -2592,7 +3163,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get packetsDuplicate => $_getIZ(10); @$pb.TagNumber(11) - set packetsDuplicate($core.int v) { $_setUnsignedInt32(10, v); } + set packetsDuplicate($core.int v) { + $_setUnsignedInt32(10, v); + } + @$pb.TagNumber(11) $core.bool hasPacketsDuplicate() => $_has(10); @$pb.TagNumber(11) @@ -2601,7 +3175,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.double get packetDuplicateRate => $_getN(11); @$pb.TagNumber(12) - set packetDuplicateRate($core.double v) { $_setDouble(11, v); } + set packetDuplicateRate($core.double v) { + $_setDouble(11, v); + } + @$pb.TagNumber(12) $core.bool hasPacketDuplicateRate() => $_has(11); @$pb.TagNumber(12) @@ -2610,7 +3187,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(13) $fixnum.Int64 get bytesDuplicate => $_getI64(12); @$pb.TagNumber(13) - set bytesDuplicate($fixnum.Int64 v) { $_setInt64(12, v); } + set bytesDuplicate($fixnum.Int64 v) { + $_setInt64(12, v); + } + @$pb.TagNumber(13) $core.bool hasBytesDuplicate() => $_has(12); @$pb.TagNumber(13) @@ -2619,7 +3199,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(14) $core.double get bitrateDuplicate => $_getN(13); @$pb.TagNumber(14) - set bitrateDuplicate($core.double v) { $_setDouble(13, v); } + set bitrateDuplicate($core.double v) { + $_setDouble(13, v); + } + @$pb.TagNumber(14) $core.bool hasBitrateDuplicate() => $_has(13); @$pb.TagNumber(14) @@ -2628,7 +3211,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.int get packetsPadding => $_getIZ(14); @$pb.TagNumber(15) - set packetsPadding($core.int v) { $_setUnsignedInt32(14, v); } + set packetsPadding($core.int v) { + $_setUnsignedInt32(14, v); + } + @$pb.TagNumber(15) $core.bool hasPacketsPadding() => $_has(14); @$pb.TagNumber(15) @@ -2637,7 +3223,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(16) $core.double get packetPaddingRate => $_getN(15); @$pb.TagNumber(16) - set packetPaddingRate($core.double v) { $_setDouble(15, v); } + set packetPaddingRate($core.double v) { + $_setDouble(15, v); + } + @$pb.TagNumber(16) $core.bool hasPacketPaddingRate() => $_has(15); @$pb.TagNumber(16) @@ -2646,7 +3235,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(17) $fixnum.Int64 get bytesPadding => $_getI64(16); @$pb.TagNumber(17) - set bytesPadding($fixnum.Int64 v) { $_setInt64(16, v); } + set bytesPadding($fixnum.Int64 v) { + $_setInt64(16, v); + } + @$pb.TagNumber(17) $core.bool hasBytesPadding() => $_has(16); @$pb.TagNumber(17) @@ -2655,7 +3247,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(18) $core.double get bitratePadding => $_getN(17); @$pb.TagNumber(18) - set bitratePadding($core.double v) { $_setDouble(17, v); } + set bitratePadding($core.double v) { + $_setDouble(17, v); + } + @$pb.TagNumber(18) $core.bool hasBitratePadding() => $_has(17); @$pb.TagNumber(18) @@ -2664,7 +3259,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(19) $core.int get packetsOutOfOrder => $_getIZ(18); @$pb.TagNumber(19) - set packetsOutOfOrder($core.int v) { $_setUnsignedInt32(18, v); } + set packetsOutOfOrder($core.int v) { + $_setUnsignedInt32(18, v); + } + @$pb.TagNumber(19) $core.bool hasPacketsOutOfOrder() => $_has(18); @$pb.TagNumber(19) @@ -2673,7 +3271,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(20) $core.int get frames => $_getIZ(19); @$pb.TagNumber(20) - set frames($core.int v) { $_setUnsignedInt32(19, v); } + set frames($core.int v) { + $_setUnsignedInt32(19, v); + } + @$pb.TagNumber(20) $core.bool hasFrames() => $_has(19); @$pb.TagNumber(20) @@ -2682,7 +3283,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(21) $core.double get frameRate => $_getN(20); @$pb.TagNumber(21) - set frameRate($core.double v) { $_setDouble(20, v); } + set frameRate($core.double v) { + $_setDouble(20, v); + } + @$pb.TagNumber(21) $core.bool hasFrameRate() => $_has(20); @$pb.TagNumber(21) @@ -2691,7 +3295,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(22) $core.double get jitterCurrent => $_getN(21); @$pb.TagNumber(22) - set jitterCurrent($core.double v) { $_setDouble(21, v); } + set jitterCurrent($core.double v) { + $_setDouble(21, v); + } + @$pb.TagNumber(22) $core.bool hasJitterCurrent() => $_has(21); @$pb.TagNumber(22) @@ -2700,7 +3307,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(23) $core.double get jitterMax => $_getN(22); @$pb.TagNumber(23) - set jitterMax($core.double v) { $_setDouble(22, v); } + set jitterMax($core.double v) { + $_setDouble(22, v); + } + @$pb.TagNumber(23) $core.bool hasJitterMax() => $_has(22); @$pb.TagNumber(23) @@ -2712,7 +3322,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(25) $core.int get nacks => $_getIZ(24); @$pb.TagNumber(25) - set nacks($core.int v) { $_setUnsignedInt32(24, v); } + set nacks($core.int v) { + $_setUnsignedInt32(24, v); + } + @$pb.TagNumber(25) $core.bool hasNacks() => $_has(24); @$pb.TagNumber(25) @@ -2721,7 +3334,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(26) $core.int get nackMisses => $_getIZ(25); @$pb.TagNumber(26) - set nackMisses($core.int v) { $_setUnsignedInt32(25, v); } + set nackMisses($core.int v) { + $_setUnsignedInt32(25, v); + } + @$pb.TagNumber(26) $core.bool hasNackMisses() => $_has(25); @$pb.TagNumber(26) @@ -2730,7 +3346,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(27) $core.int get plis => $_getIZ(26); @$pb.TagNumber(27) - set plis($core.int v) { $_setUnsignedInt32(26, v); } + set plis($core.int v) { + $_setUnsignedInt32(26, v); + } + @$pb.TagNumber(27) $core.bool hasPlis() => $_has(26); @$pb.TagNumber(27) @@ -2739,7 +3358,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(28) $0.Timestamp get lastPli => $_getN(27); @$pb.TagNumber(28) - set lastPli($0.Timestamp v) { setField(28, v); } + set lastPli($0.Timestamp v) { + setField(28, v); + } + @$pb.TagNumber(28) $core.bool hasLastPli() => $_has(27); @$pb.TagNumber(28) @@ -2750,7 +3372,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(29) $core.int get firs => $_getIZ(28); @$pb.TagNumber(29) - set firs($core.int v) { $_setUnsignedInt32(28, v); } + set firs($core.int v) { + $_setUnsignedInt32(28, v); + } + @$pb.TagNumber(29) $core.bool hasFirs() => $_has(28); @$pb.TagNumber(29) @@ -2759,7 +3384,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(30) $0.Timestamp get lastFir => $_getN(29); @$pb.TagNumber(30) - set lastFir($0.Timestamp v) { setField(30, v); } + set lastFir($0.Timestamp v) { + setField(30, v); + } + @$pb.TagNumber(30) $core.bool hasLastFir() => $_has(29); @$pb.TagNumber(30) @@ -2770,7 +3398,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(31) $core.int get rttCurrent => $_getIZ(30); @$pb.TagNumber(31) - set rttCurrent($core.int v) { $_setUnsignedInt32(30, v); } + set rttCurrent($core.int v) { + $_setUnsignedInt32(30, v); + } + @$pb.TagNumber(31) $core.bool hasRttCurrent() => $_has(30); @$pb.TagNumber(31) @@ -2779,7 +3410,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(32) $core.int get rttMax => $_getIZ(31); @$pb.TagNumber(32) - set rttMax($core.int v) { $_setUnsignedInt32(31, v); } + set rttMax($core.int v) { + $_setUnsignedInt32(31, v); + } + @$pb.TagNumber(32) $core.bool hasRttMax() => $_has(31); @$pb.TagNumber(32) @@ -2788,7 +3422,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(33) $core.int get keyFrames => $_getIZ(32); @$pb.TagNumber(33) - set keyFrames($core.int v) { $_setUnsignedInt32(32, v); } + set keyFrames($core.int v) { + $_setUnsignedInt32(32, v); + } + @$pb.TagNumber(33) $core.bool hasKeyFrames() => $_has(32); @$pb.TagNumber(33) @@ -2797,7 +3434,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(34) $0.Timestamp get lastKeyFrame => $_getN(33); @$pb.TagNumber(34) - set lastKeyFrame($0.Timestamp v) { setField(34, v); } + set lastKeyFrame($0.Timestamp v) { + setField(34, v); + } + @$pb.TagNumber(34) $core.bool hasLastKeyFrame() => $_has(33); @$pb.TagNumber(34) @@ -2808,7 +3448,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(35) $core.int get layerLockPlis => $_getIZ(34); @$pb.TagNumber(35) - set layerLockPlis($core.int v) { $_setUnsignedInt32(34, v); } + set layerLockPlis($core.int v) { + $_setUnsignedInt32(34, v); + } + @$pb.TagNumber(35) $core.bool hasLayerLockPlis() => $_has(34); @$pb.TagNumber(35) @@ -2817,7 +3460,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(36) $0.Timestamp get lastLayerLockPli => $_getN(35); @$pb.TagNumber(36) - set lastLayerLockPli($0.Timestamp v) { setField(36, v); } + set lastLayerLockPli($0.Timestamp v) { + setField(36, v); + } + @$pb.TagNumber(36) $core.bool hasLastLayerLockPli() => $_has(35); @$pb.TagNumber(36) @@ -2828,7 +3474,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(37) $core.int get nackAcks => $_getIZ(36); @$pb.TagNumber(37) - set nackAcks($core.int v) { $_setUnsignedInt32(36, v); } + set nackAcks($core.int v) { + $_setUnsignedInt32(36, v); + } + @$pb.TagNumber(37) $core.bool hasNackAcks() => $_has(36); @$pb.TagNumber(37) @@ -2837,7 +3486,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(38) $core.int get nackRepeated => $_getIZ(37); @$pb.TagNumber(38) - set nackRepeated($core.int v) { $_setUnsignedInt32(37, v); } + set nackRepeated($core.int v) { + $_setUnsignedInt32(37, v); + } + @$pb.TagNumber(38) $core.bool hasNackRepeated() => $_has(37); @$pb.TagNumber(38) @@ -2846,7 +3498,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(39) $fixnum.Int64 get headerBytes => $_getI64(38); @$pb.TagNumber(39) - set headerBytes($fixnum.Int64 v) { $_setInt64(38, v); } + set headerBytes($fixnum.Int64 v) { + $_setInt64(38, v); + } + @$pb.TagNumber(39) $core.bool hasHeaderBytes() => $_has(38); @$pb.TagNumber(39) @@ -2855,7 +3510,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(40) $fixnum.Int64 get headerBytesDuplicate => $_getI64(39); @$pb.TagNumber(40) - set headerBytesDuplicate($fixnum.Int64 v) { $_setInt64(39, v); } + set headerBytesDuplicate($fixnum.Int64 v) { + $_setInt64(39, v); + } + @$pb.TagNumber(40) $core.bool hasHeaderBytesDuplicate() => $_has(39); @$pb.TagNumber(40) @@ -2864,7 +3522,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(41) $fixnum.Int64 get headerBytesPadding => $_getI64(40); @$pb.TagNumber(41) - set headerBytesPadding($fixnum.Int64 v) { $_setInt64(40, v); } + set headerBytesPadding($fixnum.Int64 v) { + $_setInt64(40, v); + } + @$pb.TagNumber(41) $core.bool hasHeaderBytesPadding() => $_has(40); @$pb.TagNumber(41) @@ -2873,7 +3534,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(44) RTPDrift get packetDrift => $_getN(41); @$pb.TagNumber(44) - set packetDrift(RTPDrift v) { setField(44, v); } + set packetDrift(RTPDrift v) { + setField(44, v); + } + @$pb.TagNumber(44) $core.bool hasPacketDrift() => $_has(41); @$pb.TagNumber(44) @@ -2884,7 +3548,10 @@ class RTPStats extends $pb.GeneratedMessage { @$pb.TagNumber(45) RTPDrift get reportDrift => $_getN(42); @$pb.TagNumber(45) - set reportDrift(RTPDrift v) { setField(45, v); } + set reportDrift(RTPDrift v) { + setField(45, v); + } + @$pb.TagNumber(45) $core.bool hasReportDrift() => $_has(42); @$pb.TagNumber(45) @@ -2908,40 +3575,51 @@ class TimedVersion extends $pb.GeneratedMessage { return $result; } TimedVersion._() : super(); - factory TimedVersion.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TimedVersion.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TimedVersion', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TimedVersion.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TimedVersion.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TimedVersion', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'unixMicro') ..a<$core.int>(2, _omitFieldNames ? '' : 'ticks', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TimedVersion clone() => TimedVersion()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TimedVersion copyWith(void Function(TimedVersion) updates) => super.copyWith((message) => updates(message as TimedVersion)) as TimedVersion; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TimedVersion copyWith(void Function(TimedVersion) updates) => + super.copyWith((message) => updates(message as TimedVersion)) + as TimedVersion; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TimedVersion create() => TimedVersion._(); TimedVersion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TimedVersion getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TimedVersion getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TimedVersion? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get unixMicro => $_getI64(0); @$pb.TagNumber(1) - set unixMicro($fixnum.Int64 v) { $_setInt64(0, v); } + set unixMicro($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasUnixMicro() => $_has(0); @$pb.TagNumber(1) @@ -2950,13 +3628,16 @@ class TimedVersion extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get ticks => $_getIZ(1); @$pb.TagNumber(2) - set ticks($core.int v) { $_setSignedInt32(1, v); } + set ticks($core.int v) { + $_setSignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasTicks() => $_has(1); @$pb.TagNumber(2) void clearTicks() => clearField(2); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/livekit_models.pbenum.dart b/lib/src/proto/livekit_models.pbenum.dart index accf4636..e65c600c 100644 --- a/lib/src/proto/livekit_models.pbenum.dart +++ b/lib/src/proto/livekit_models.pbenum.dart @@ -14,30 +14,36 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class AudioCodec extends $pb.ProtobufEnum { - static const AudioCodec DEFAULT_AC = AudioCodec._(0, _omitEnumNames ? '' : 'DEFAULT_AC'); + static const AudioCodec DEFAULT_AC = + AudioCodec._(0, _omitEnumNames ? '' : 'DEFAULT_AC'); static const AudioCodec OPUS = AudioCodec._(1, _omitEnumNames ? '' : 'OPUS'); static const AudioCodec AAC = AudioCodec._(2, _omitEnumNames ? '' : 'AAC'); - static const $core.List values = [ + static const $core.List values = [ DEFAULT_AC, OPUS, AAC, ]; - static final $core.Map<$core.int, AudioCodec> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, AudioCodec> _byValue = + $pb.ProtobufEnum.initByValue(values); static AudioCodec? valueOf($core.int value) => _byValue[value]; const AudioCodec._($core.int v, $core.String n) : super(v, n); } class VideoCodec extends $pb.ProtobufEnum { - static const VideoCodec DEFAULT_VC = VideoCodec._(0, _omitEnumNames ? '' : 'DEFAULT_VC'); - static const VideoCodec H264_BASELINE = VideoCodec._(1, _omitEnumNames ? '' : 'H264_BASELINE'); - static const VideoCodec H264_MAIN = VideoCodec._(2, _omitEnumNames ? '' : 'H264_MAIN'); - static const VideoCodec H264_HIGH = VideoCodec._(3, _omitEnumNames ? '' : 'H264_HIGH'); + static const VideoCodec DEFAULT_VC = + VideoCodec._(0, _omitEnumNames ? '' : 'DEFAULT_VC'); + static const VideoCodec H264_BASELINE = + VideoCodec._(1, _omitEnumNames ? '' : 'H264_BASELINE'); + static const VideoCodec H264_MAIN = + VideoCodec._(2, _omitEnumNames ? '' : 'H264_MAIN'); + static const VideoCodec H264_HIGH = + VideoCodec._(3, _omitEnumNames ? '' : 'H264_HIGH'); static const VideoCodec VP8 = VideoCodec._(4, _omitEnumNames ? '' : 'VP8'); - static const $core.List values = [ + static const $core.List values = [ DEFAULT_VC, H264_BASELINE, H264_MAIN, @@ -45,7 +51,8 @@ class VideoCodec extends $pb.ProtobufEnum { VP8, ]; - static final $core.Map<$core.int, VideoCodec> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, VideoCodec> _byValue = + $pb.ProtobufEnum.initByValue(values); static VideoCodec? valueOf($core.int value) => _byValue[value]; const VideoCodec._($core.int v, $core.String n) : super(v, n); @@ -56,26 +63,32 @@ class TrackType extends $pb.ProtobufEnum { static const TrackType VIDEO = TrackType._(1, _omitEnumNames ? '' : 'VIDEO'); static const TrackType DATA = TrackType._(2, _omitEnumNames ? '' : 'DATA'); - static const $core.List values = [ + static const $core.List values = [ AUDIO, VIDEO, DATA, ]; - static final $core.Map<$core.int, TrackType> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, TrackType> _byValue = + $pb.ProtobufEnum.initByValue(values); static TrackType? valueOf($core.int value) => _byValue[value]; const TrackType._($core.int v, $core.String n) : super(v, n); } class TrackSource extends $pb.ProtobufEnum { - static const TrackSource UNKNOWN = TrackSource._(0, _omitEnumNames ? '' : 'UNKNOWN'); - static const TrackSource CAMERA = TrackSource._(1, _omitEnumNames ? '' : 'CAMERA'); - static const TrackSource MICROPHONE = TrackSource._(2, _omitEnumNames ? '' : 'MICROPHONE'); - static const TrackSource SCREEN_SHARE = TrackSource._(3, _omitEnumNames ? '' : 'SCREEN_SHARE'); - static const TrackSource SCREEN_SHARE_AUDIO = TrackSource._(4, _omitEnumNames ? '' : 'SCREEN_SHARE_AUDIO'); - - static const $core.List values = [ + static const TrackSource UNKNOWN = + TrackSource._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const TrackSource CAMERA = + TrackSource._(1, _omitEnumNames ? '' : 'CAMERA'); + static const TrackSource MICROPHONE = + TrackSource._(2, _omitEnumNames ? '' : 'MICROPHONE'); + static const TrackSource SCREEN_SHARE = + TrackSource._(3, _omitEnumNames ? '' : 'SCREEN_SHARE'); + static const TrackSource SCREEN_SHARE_AUDIO = + TrackSource._(4, _omitEnumNames ? '' : 'SCREEN_SHARE_AUDIO'); + + static const $core.List values = [ UNKNOWN, CAMERA, MICROPHONE, @@ -83,76 +96,98 @@ class TrackSource extends $pb.ProtobufEnum { SCREEN_SHARE_AUDIO, ]; - static final $core.Map<$core.int, TrackSource> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, TrackSource> _byValue = + $pb.ProtobufEnum.initByValue(values); static TrackSource? valueOf($core.int value) => _byValue[value]; const TrackSource._($core.int v, $core.String n) : super(v, n); } class VideoQuality extends $pb.ProtobufEnum { - static const VideoQuality LOW = VideoQuality._(0, _omitEnumNames ? '' : 'LOW'); - static const VideoQuality MEDIUM = VideoQuality._(1, _omitEnumNames ? '' : 'MEDIUM'); - static const VideoQuality HIGH = VideoQuality._(2, _omitEnumNames ? '' : 'HIGH'); - static const VideoQuality OFF = VideoQuality._(3, _omitEnumNames ? '' : 'OFF'); - - static const $core.List values = [ + static const VideoQuality LOW = + VideoQuality._(0, _omitEnumNames ? '' : 'LOW'); + static const VideoQuality MEDIUM = + VideoQuality._(1, _omitEnumNames ? '' : 'MEDIUM'); + static const VideoQuality HIGH = + VideoQuality._(2, _omitEnumNames ? '' : 'HIGH'); + static const VideoQuality OFF = + VideoQuality._(3, _omitEnumNames ? '' : 'OFF'); + + static const $core.List values = [ LOW, MEDIUM, HIGH, OFF, ]; - static final $core.Map<$core.int, VideoQuality> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, VideoQuality> _byValue = + $pb.ProtobufEnum.initByValue(values); static VideoQuality? valueOf($core.int value) => _byValue[value]; const VideoQuality._($core.int v, $core.String n) : super(v, n); } class ConnectionQuality extends $pb.ProtobufEnum { - static const ConnectionQuality POOR = ConnectionQuality._(0, _omitEnumNames ? '' : 'POOR'); - static const ConnectionQuality GOOD = ConnectionQuality._(1, _omitEnumNames ? '' : 'GOOD'); - static const ConnectionQuality EXCELLENT = ConnectionQuality._(2, _omitEnumNames ? '' : 'EXCELLENT'); - - static const $core.List values = [ + static const ConnectionQuality POOR = + ConnectionQuality._(0, _omitEnumNames ? '' : 'POOR'); + static const ConnectionQuality GOOD = + ConnectionQuality._(1, _omitEnumNames ? '' : 'GOOD'); + static const ConnectionQuality EXCELLENT = + ConnectionQuality._(2, _omitEnumNames ? '' : 'EXCELLENT'); + + static const $core.List values = [ POOR, GOOD, EXCELLENT, ]; - static final $core.Map<$core.int, ConnectionQuality> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ConnectionQuality> _byValue = + $pb.ProtobufEnum.initByValue(values); static ConnectionQuality? valueOf($core.int value) => _byValue[value]; const ConnectionQuality._($core.int v, $core.String n) : super(v, n); } class ClientConfigSetting extends $pb.ProtobufEnum { - static const ClientConfigSetting UNSET = ClientConfigSetting._(0, _omitEnumNames ? '' : 'UNSET'); - static const ClientConfigSetting DISABLED = ClientConfigSetting._(1, _omitEnumNames ? '' : 'DISABLED'); - static const ClientConfigSetting ENABLED = ClientConfigSetting._(2, _omitEnumNames ? '' : 'ENABLED'); - - static const $core.List values = [ + static const ClientConfigSetting UNSET = + ClientConfigSetting._(0, _omitEnumNames ? '' : 'UNSET'); + static const ClientConfigSetting DISABLED = + ClientConfigSetting._(1, _omitEnumNames ? '' : 'DISABLED'); + static const ClientConfigSetting ENABLED = + ClientConfigSetting._(2, _omitEnumNames ? '' : 'ENABLED'); + + static const $core.List values = [ UNSET, DISABLED, ENABLED, ]; - static final $core.Map<$core.int, ClientConfigSetting> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ClientConfigSetting> _byValue = + $pb.ProtobufEnum.initByValue(values); static ClientConfigSetting? valueOf($core.int value) => _byValue[value]; const ClientConfigSetting._($core.int v, $core.String n) : super(v, n); } class DisconnectReason extends $pb.ProtobufEnum { - static const DisconnectReason UNKNOWN_REASON = DisconnectReason._(0, _omitEnumNames ? '' : 'UNKNOWN_REASON'); - static const DisconnectReason CLIENT_INITIATED = DisconnectReason._(1, _omitEnumNames ? '' : 'CLIENT_INITIATED'); - static const DisconnectReason DUPLICATE_IDENTITY = DisconnectReason._(2, _omitEnumNames ? '' : 'DUPLICATE_IDENTITY'); - static const DisconnectReason SERVER_SHUTDOWN = DisconnectReason._(3, _omitEnumNames ? '' : 'SERVER_SHUTDOWN'); - static const DisconnectReason PARTICIPANT_REMOVED = DisconnectReason._(4, _omitEnumNames ? '' : 'PARTICIPANT_REMOVED'); - static const DisconnectReason ROOM_DELETED = DisconnectReason._(5, _omitEnumNames ? '' : 'ROOM_DELETED'); - static const DisconnectReason STATE_MISMATCH = DisconnectReason._(6, _omitEnumNames ? '' : 'STATE_MISMATCH'); - static const DisconnectReason JOIN_FAILURE = DisconnectReason._(7, _omitEnumNames ? '' : 'JOIN_FAILURE'); - - static const $core.List values = [ + static const DisconnectReason UNKNOWN_REASON = + DisconnectReason._(0, _omitEnumNames ? '' : 'UNKNOWN_REASON'); + static const DisconnectReason CLIENT_INITIATED = + DisconnectReason._(1, _omitEnumNames ? '' : 'CLIENT_INITIATED'); + static const DisconnectReason DUPLICATE_IDENTITY = + DisconnectReason._(2, _omitEnumNames ? '' : 'DUPLICATE_IDENTITY'); + static const DisconnectReason SERVER_SHUTDOWN = + DisconnectReason._(3, _omitEnumNames ? '' : 'SERVER_SHUTDOWN'); + static const DisconnectReason PARTICIPANT_REMOVED = + DisconnectReason._(4, _omitEnumNames ? '' : 'PARTICIPANT_REMOVED'); + static const DisconnectReason ROOM_DELETED = + DisconnectReason._(5, _omitEnumNames ? '' : 'ROOM_DELETED'); + static const DisconnectReason STATE_MISMATCH = + DisconnectReason._(6, _omitEnumNames ? '' : 'STATE_MISMATCH'); + static const DisconnectReason JOIN_FAILURE = + DisconnectReason._(7, _omitEnumNames ? '' : 'JOIN_FAILURE'); + + static const $core.List values = [ UNKNOWN_REASON, CLIENT_INITIATED, DUPLICATE_IDENTITY, @@ -163,20 +198,26 @@ class DisconnectReason extends $pb.ProtobufEnum { JOIN_FAILURE, ]; - static final $core.Map<$core.int, DisconnectReason> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, DisconnectReason> _byValue = + $pb.ProtobufEnum.initByValue(values); static DisconnectReason? valueOf($core.int value) => _byValue[value]; const DisconnectReason._($core.int v, $core.String n) : super(v, n); } class ReconnectReason extends $pb.ProtobufEnum { - static const ReconnectReason RR_UNKNOWN = ReconnectReason._(0, _omitEnumNames ? '' : 'RR_UNKNOWN'); - static const ReconnectReason RR_SIGNAL_DISCONNECTED = ReconnectReason._(1, _omitEnumNames ? '' : 'RR_SIGNAL_DISCONNECTED'); - static const ReconnectReason RR_PUBLISHER_FAILED = ReconnectReason._(2, _omitEnumNames ? '' : 'RR_PUBLISHER_FAILED'); - static const ReconnectReason RR_SUBSCRIBER_FAILED = ReconnectReason._(3, _omitEnumNames ? '' : 'RR_SUBSCRIBER_FAILED'); - static const ReconnectReason RR_SWITCH_CANDIDATE = ReconnectReason._(4, _omitEnumNames ? '' : 'RR_SWITCH_CANDIDATE'); - - static const $core.List values = [ + static const ReconnectReason RR_UNKNOWN = + ReconnectReason._(0, _omitEnumNames ? '' : 'RR_UNKNOWN'); + static const ReconnectReason RR_SIGNAL_DISCONNECTED = + ReconnectReason._(1, _omitEnumNames ? '' : 'RR_SIGNAL_DISCONNECTED'); + static const ReconnectReason RR_PUBLISHER_FAILED = + ReconnectReason._(2, _omitEnumNames ? '' : 'RR_PUBLISHER_FAILED'); + static const ReconnectReason RR_SUBSCRIBER_FAILED = + ReconnectReason._(3, _omitEnumNames ? '' : 'RR_SUBSCRIBER_FAILED'); + static const ReconnectReason RR_SWITCH_CANDIDATE = + ReconnectReason._(4, _omitEnumNames ? '' : 'RR_SWITCH_CANDIDATE'); + + static const $core.List values = [ RR_UNKNOWN, RR_SIGNAL_DISCONNECTED, RR_PUBLISHER_FAILED, @@ -184,109 +225,141 @@ class ReconnectReason extends $pb.ProtobufEnum { RR_SWITCH_CANDIDATE, ]; - static final $core.Map<$core.int, ReconnectReason> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ReconnectReason> _byValue = + $pb.ProtobufEnum.initByValue(values); static ReconnectReason? valueOf($core.int value) => _byValue[value]; const ReconnectReason._($core.int v, $core.String n) : super(v, n); } class SubscriptionError extends $pb.ProtobufEnum { - static const SubscriptionError SE_UNKNOWN = SubscriptionError._(0, _omitEnumNames ? '' : 'SE_UNKNOWN'); - static const SubscriptionError SE_CODEC_UNSUPPORTED = SubscriptionError._(1, _omitEnumNames ? '' : 'SE_CODEC_UNSUPPORTED'); - static const SubscriptionError SE_TRACK_NOTFOUND = SubscriptionError._(2, _omitEnumNames ? '' : 'SE_TRACK_NOTFOUND'); - - static const $core.List values = [ + static const SubscriptionError SE_UNKNOWN = + SubscriptionError._(0, _omitEnumNames ? '' : 'SE_UNKNOWN'); + static const SubscriptionError SE_CODEC_UNSUPPORTED = + SubscriptionError._(1, _omitEnumNames ? '' : 'SE_CODEC_UNSUPPORTED'); + static const SubscriptionError SE_TRACK_NOTFOUND = + SubscriptionError._(2, _omitEnumNames ? '' : 'SE_TRACK_NOTFOUND'); + + static const $core.List values = [ SE_UNKNOWN, SE_CODEC_UNSUPPORTED, SE_TRACK_NOTFOUND, ]; - static final $core.Map<$core.int, SubscriptionError> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, SubscriptionError> _byValue = + $pb.ProtobufEnum.initByValue(values); static SubscriptionError? valueOf($core.int value) => _byValue[value]; const SubscriptionError._($core.int v, $core.String n) : super(v, n); } class ParticipantInfo_State extends $pb.ProtobufEnum { - static const ParticipantInfo_State JOINING = ParticipantInfo_State._(0, _omitEnumNames ? '' : 'JOINING'); - static const ParticipantInfo_State JOINED = ParticipantInfo_State._(1, _omitEnumNames ? '' : 'JOINED'); - static const ParticipantInfo_State ACTIVE = ParticipantInfo_State._(2, _omitEnumNames ? '' : 'ACTIVE'); - static const ParticipantInfo_State DISCONNECTED = ParticipantInfo_State._(3, _omitEnumNames ? '' : 'DISCONNECTED'); - - static const $core.List values = [ + static const ParticipantInfo_State JOINING = + ParticipantInfo_State._(0, _omitEnumNames ? '' : 'JOINING'); + static const ParticipantInfo_State JOINED = + ParticipantInfo_State._(1, _omitEnumNames ? '' : 'JOINED'); + static const ParticipantInfo_State ACTIVE = + ParticipantInfo_State._(2, _omitEnumNames ? '' : 'ACTIVE'); + static const ParticipantInfo_State DISCONNECTED = + ParticipantInfo_State._(3, _omitEnumNames ? '' : 'DISCONNECTED'); + + static const $core.List values = + [ JOINING, JOINED, ACTIVE, DISCONNECTED, ]; - static final $core.Map<$core.int, ParticipantInfo_State> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ParticipantInfo_State> _byValue = + $pb.ProtobufEnum.initByValue(values); static ParticipantInfo_State? valueOf($core.int value) => _byValue[value]; const ParticipantInfo_State._($core.int v, $core.String n) : super(v, n); } class Encryption_Type extends $pb.ProtobufEnum { - static const Encryption_Type NONE = Encryption_Type._(0, _omitEnumNames ? '' : 'NONE'); - static const Encryption_Type GCM = Encryption_Type._(1, _omitEnumNames ? '' : 'GCM'); - static const Encryption_Type CUSTOM = Encryption_Type._(2, _omitEnumNames ? '' : 'CUSTOM'); - - static const $core.List values = [ + static const Encryption_Type NONE = + Encryption_Type._(0, _omitEnumNames ? '' : 'NONE'); + static const Encryption_Type GCM = + Encryption_Type._(1, _omitEnumNames ? '' : 'GCM'); + static const Encryption_Type CUSTOM = + Encryption_Type._(2, _omitEnumNames ? '' : 'CUSTOM'); + + static const $core.List values = [ NONE, GCM, CUSTOM, ]; - static final $core.Map<$core.int, Encryption_Type> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, Encryption_Type> _byValue = + $pb.ProtobufEnum.initByValue(values); static Encryption_Type? valueOf($core.int value) => _byValue[value]; const Encryption_Type._($core.int v, $core.String n) : super(v, n); } class DataPacket_Kind extends $pb.ProtobufEnum { - static const DataPacket_Kind RELIABLE = DataPacket_Kind._(0, _omitEnumNames ? '' : 'RELIABLE'); - static const DataPacket_Kind LOSSY = DataPacket_Kind._(1, _omitEnumNames ? '' : 'LOSSY'); + static const DataPacket_Kind RELIABLE = + DataPacket_Kind._(0, _omitEnumNames ? '' : 'RELIABLE'); + static const DataPacket_Kind LOSSY = + DataPacket_Kind._(1, _omitEnumNames ? '' : 'LOSSY'); - static const $core.List values = [ + static const $core.List values = [ RELIABLE, LOSSY, ]; - static final $core.Map<$core.int, DataPacket_Kind> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, DataPacket_Kind> _byValue = + $pb.ProtobufEnum.initByValue(values); static DataPacket_Kind? valueOf($core.int value) => _byValue[value]; const DataPacket_Kind._($core.int v, $core.String n) : super(v, n); } class ServerInfo_Edition extends $pb.ProtobufEnum { - static const ServerInfo_Edition Standard = ServerInfo_Edition._(0, _omitEnumNames ? '' : 'Standard'); - static const ServerInfo_Edition Cloud = ServerInfo_Edition._(1, _omitEnumNames ? '' : 'Cloud'); + static const ServerInfo_Edition Standard = + ServerInfo_Edition._(0, _omitEnumNames ? '' : 'Standard'); + static const ServerInfo_Edition Cloud = + ServerInfo_Edition._(1, _omitEnumNames ? '' : 'Cloud'); - static const $core.List values = [ + static const $core.List values = [ Standard, Cloud, ]; - static final $core.Map<$core.int, ServerInfo_Edition> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ServerInfo_Edition> _byValue = + $pb.ProtobufEnum.initByValue(values); static ServerInfo_Edition? valueOf($core.int value) => _byValue[value]; const ServerInfo_Edition._($core.int v, $core.String n) : super(v, n); } class ClientInfo_SDK extends $pb.ProtobufEnum { - static const ClientInfo_SDK UNKNOWN = ClientInfo_SDK._(0, _omitEnumNames ? '' : 'UNKNOWN'); - static const ClientInfo_SDK JS = ClientInfo_SDK._(1, _omitEnumNames ? '' : 'JS'); - static const ClientInfo_SDK SWIFT = ClientInfo_SDK._(2, _omitEnumNames ? '' : 'SWIFT'); - static const ClientInfo_SDK ANDROID = ClientInfo_SDK._(3, _omitEnumNames ? '' : 'ANDROID'); - static const ClientInfo_SDK FLUTTER = ClientInfo_SDK._(4, _omitEnumNames ? '' : 'FLUTTER'); - static const ClientInfo_SDK GO = ClientInfo_SDK._(5, _omitEnumNames ? '' : 'GO'); - static const ClientInfo_SDK UNITY = ClientInfo_SDK._(6, _omitEnumNames ? '' : 'UNITY'); - static const ClientInfo_SDK REACT_NATIVE = ClientInfo_SDK._(7, _omitEnumNames ? '' : 'REACT_NATIVE'); - static const ClientInfo_SDK RUST = ClientInfo_SDK._(8, _omitEnumNames ? '' : 'RUST'); - static const ClientInfo_SDK PYTHON = ClientInfo_SDK._(9, _omitEnumNames ? '' : 'PYTHON'); - static const ClientInfo_SDK CPP = ClientInfo_SDK._(10, _omitEnumNames ? '' : 'CPP'); - - static const $core.List values = [ + static const ClientInfo_SDK UNKNOWN = + ClientInfo_SDK._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const ClientInfo_SDK JS = + ClientInfo_SDK._(1, _omitEnumNames ? '' : 'JS'); + static const ClientInfo_SDK SWIFT = + ClientInfo_SDK._(2, _omitEnumNames ? '' : 'SWIFT'); + static const ClientInfo_SDK ANDROID = + ClientInfo_SDK._(3, _omitEnumNames ? '' : 'ANDROID'); + static const ClientInfo_SDK FLUTTER = + ClientInfo_SDK._(4, _omitEnumNames ? '' : 'FLUTTER'); + static const ClientInfo_SDK GO = + ClientInfo_SDK._(5, _omitEnumNames ? '' : 'GO'); + static const ClientInfo_SDK UNITY = + ClientInfo_SDK._(6, _omitEnumNames ? '' : 'UNITY'); + static const ClientInfo_SDK REACT_NATIVE = + ClientInfo_SDK._(7, _omitEnumNames ? '' : 'REACT_NATIVE'); + static const ClientInfo_SDK RUST = + ClientInfo_SDK._(8, _omitEnumNames ? '' : 'RUST'); + static const ClientInfo_SDK PYTHON = + ClientInfo_SDK._(9, _omitEnumNames ? '' : 'PYTHON'); + static const ClientInfo_SDK CPP = + ClientInfo_SDK._(10, _omitEnumNames ? '' : 'CPP'); + + static const $core.List values = [ UNKNOWN, JS, SWIFT, @@ -300,11 +373,11 @@ class ClientInfo_SDK extends $pb.ProtobufEnum { CPP, ]; - static final $core.Map<$core.int, ClientInfo_SDK> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, ClientInfo_SDK> _byValue = + $pb.ProtobufEnum.initByValue(values); static ClientInfo_SDK? valueOf($core.int value) => _byValue[value]; const ClientInfo_SDK._($core.int v, $core.String n) : super(v, n); } - const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/proto/livekit_models.pbjson.dart b/lib/src/proto/livekit_models.pbjson.dart index 67825864..1dff91e3 100644 --- a/lib/src/proto/livekit_models.pbjson.dart +++ b/lib/src/proto/livekit_models.pbjson.dart @@ -184,12 +184,26 @@ const Room$json = { {'1': 'max_participants', '3': 4, '4': 1, '5': 13, '10': 'maxParticipants'}, {'1': 'creation_time', '3': 5, '4': 1, '5': 3, '10': 'creationTime'}, {'1': 'turn_password', '3': 6, '4': 1, '5': 9, '10': 'turnPassword'}, - {'1': 'enabled_codecs', '3': 7, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'enabledCodecs'}, + { + '1': 'enabled_codecs', + '3': 7, + '4': 3, + '5': 11, + '6': '.livekit.Codec', + '10': 'enabledCodecs' + }, {'1': 'metadata', '3': 8, '4': 1, '5': 9, '10': 'metadata'}, {'1': 'num_participants', '3': 9, '4': 1, '5': 13, '10': 'numParticipants'}, {'1': 'num_publishers', '3': 11, '4': 1, '5': 13, '10': 'numPublishers'}, {'1': 'active_recording', '3': 10, '4': 1, '5': 8, '10': 'activeRecording'}, - {'1': 'playout_delay', '3': 12, '4': 1, '5': 11, '6': '.livekit.PlayoutDelay', '10': 'playoutDelay'}, + { + '1': 'playout_delay', + '3': 12, + '4': 1, + '5': 11, + '6': '.livekit.PlayoutDelay', + '10': 'playoutDelay' + }, ], }; @@ -240,10 +254,23 @@ const ParticipantPermission$json = { {'1': 'can_subscribe', '3': 1, '4': 1, '5': 8, '10': 'canSubscribe'}, {'1': 'can_publish', '3': 2, '4': 1, '5': 8, '10': 'canPublish'}, {'1': 'can_publish_data', '3': 3, '4': 1, '5': 8, '10': 'canPublishData'}, - {'1': 'can_publish_sources', '3': 9, '4': 3, '5': 14, '6': '.livekit.TrackSource', '10': 'canPublishSources'}, + { + '1': 'can_publish_sources', + '3': 9, + '4': 3, + '5': 14, + '6': '.livekit.TrackSource', + '10': 'canPublishSources' + }, {'1': 'hidden', '3': 7, '4': 1, '5': 8, '10': 'hidden'}, {'1': 'recorder', '3': 8, '4': 1, '5': 8, '10': 'recorder'}, - {'1': 'can_update_metadata', '3': 10, '4': 1, '5': 8, '10': 'canUpdateMetadata'}, + { + '1': 'can_update_metadata', + '3': 10, + '4': 1, + '5': 8, + '10': 'canUpdateMetadata' + }, ], }; @@ -262,13 +289,34 @@ const ParticipantInfo$json = { '2': [ {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, {'1': 'identity', '3': 2, '4': 1, '5': 9, '10': 'identity'}, - {'1': 'state', '3': 3, '4': 1, '5': 14, '6': '.livekit.ParticipantInfo.State', '10': 'state'}, - {'1': 'tracks', '3': 4, '4': 3, '5': 11, '6': '.livekit.TrackInfo', '10': 'tracks'}, + { + '1': 'state', + '3': 3, + '4': 1, + '5': 14, + '6': '.livekit.ParticipantInfo.State', + '10': 'state' + }, + { + '1': 'tracks', + '3': 4, + '4': 3, + '5': 11, + '6': '.livekit.TrackInfo', + '10': 'tracks' + }, {'1': 'metadata', '3': 5, '4': 1, '5': 9, '10': 'metadata'}, {'1': 'joined_at', '3': 6, '4': 1, '5': 3, '10': 'joinedAt'}, {'1': 'name', '3': 9, '4': 1, '5': 9, '10': 'name'}, {'1': 'version', '3': 10, '4': 1, '5': 13, '10': 'version'}, - {'1': 'permission', '3': 11, '4': 1, '5': 11, '6': '.livekit.ParticipantPermission', '10': 'permission'}, + { + '1': 'permission', + '3': 11, + '4': 1, + '5': 11, + '6': '.livekit.ParticipantPermission', + '10': 'permission' + }, {'1': 'region', '3': 12, '4': 1, '5': 9, '10': 'region'}, {'1': 'is_publisher', '3': 13, '4': 1, '5': 8, '10': 'isPublisher'}, ], @@ -325,7 +373,14 @@ const SimulcastCodecInfo$json = { {'1': 'mime_type', '3': 1, '4': 1, '5': 9, '10': 'mimeType'}, {'1': 'mid', '3': 2, '4': 1, '5': 9, '10': 'mid'}, {'1': 'cid', '3': 3, '4': 1, '5': 9, '10': 'cid'}, - {'1': 'layers', '3': 4, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, + { + '1': 'layers', + '3': 4, + '4': 3, + '5': 11, + '6': '.livekit.VideoLayer', + '10': 'layers' + }, ], }; @@ -340,21 +395,56 @@ const TrackInfo$json = { '1': 'TrackInfo', '2': [ {'1': 'sid', '3': 1, '4': 1, '5': 9, '10': 'sid'}, - {'1': 'type', '3': 2, '4': 1, '5': 14, '6': '.livekit.TrackType', '10': 'type'}, + { + '1': 'type', + '3': 2, + '4': 1, + '5': 14, + '6': '.livekit.TrackType', + '10': 'type' + }, {'1': 'name', '3': 3, '4': 1, '5': 9, '10': 'name'}, {'1': 'muted', '3': 4, '4': 1, '5': 8, '10': 'muted'}, {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, {'1': 'simulcast', '3': 7, '4': 1, '5': 8, '10': 'simulcast'}, {'1': 'disable_dtx', '3': 8, '4': 1, '5': 8, '10': 'disableDtx'}, - {'1': 'source', '3': 9, '4': 1, '5': 14, '6': '.livekit.TrackSource', '10': 'source'}, - {'1': 'layers', '3': 10, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, + { + '1': 'source', + '3': 9, + '4': 1, + '5': 14, + '6': '.livekit.TrackSource', + '10': 'source' + }, + { + '1': 'layers', + '3': 10, + '4': 3, + '5': 11, + '6': '.livekit.VideoLayer', + '10': 'layers' + }, {'1': 'mime_type', '3': 11, '4': 1, '5': 9, '10': 'mimeType'}, {'1': 'mid', '3': 12, '4': 1, '5': 9, '10': 'mid'}, - {'1': 'codecs', '3': 13, '4': 3, '5': 11, '6': '.livekit.SimulcastCodecInfo', '10': 'codecs'}, + { + '1': 'codecs', + '3': 13, + '4': 3, + '5': 11, + '6': '.livekit.SimulcastCodecInfo', + '10': 'codecs' + }, {'1': 'stereo', '3': 14, '4': 1, '5': 8, '10': 'stereo'}, {'1': 'disable_red', '3': 15, '4': 1, '5': 8, '10': 'disableRed'}, - {'1': 'encryption', '3': 16, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + { + '1': 'encryption', + '3': 16, + '4': 1, + '5': 14, + '6': '.livekit.Encryption.Type', + '10': 'encryption' + }, {'1': 'stream', '3': 17, '4': 1, '5': 9, '10': 'stream'}, ], }; @@ -376,7 +466,14 @@ final $typed_data.Uint8List trackInfoDescriptor = $convert.base64Decode( const VideoLayer$json = { '1': 'VideoLayer', '2': [ - {'1': 'quality', '3': 1, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + { + '1': 'quality', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.VideoQuality', + '10': 'quality' + }, {'1': 'width', '3': 2, '4': 1, '5': 13, '10': 'width'}, {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'}, {'1': 'bitrate', '3': 4, '4': 1, '5': 13, '10': 'bitrate'}, @@ -394,9 +491,32 @@ final $typed_data.Uint8List videoLayerDescriptor = $convert.base64Decode( const DataPacket$json = { '1': 'DataPacket', '2': [ - {'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.livekit.DataPacket.Kind', '10': 'kind'}, - {'1': 'user', '3': 2, '4': 1, '5': 11, '6': '.livekit.UserPacket', '9': 0, '10': 'user'}, - {'1': 'speaker', '3': 3, '4': 1, '5': 11, '6': '.livekit.ActiveSpeakerUpdate', '9': 0, '10': 'speaker'}, + { + '1': 'kind', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.DataPacket.Kind', + '10': 'kind' + }, + { + '1': 'user', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.UserPacket', + '9': 0, + '10': 'user' + }, + { + '1': 'speaker', + '3': 3, + '4': 1, + '5': 11, + '6': '.livekit.ActiveSpeakerUpdate', + '9': 0, + '10': 'speaker' + }, ], '4': [DataPacket_Kind$json], '8': [ @@ -424,7 +544,14 @@ final $typed_data.Uint8List dataPacketDescriptor = $convert.base64Decode( const ActiveSpeakerUpdate$json = { '1': 'ActiveSpeakerUpdate', '2': [ - {'1': 'speakers', '3': 1, '4': 3, '5': 11, '6': '.livekit.SpeakerInfo', '10': 'speakers'}, + { + '1': 'speakers', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.SpeakerInfo', + '10': 'speakers' + }, ], }; @@ -453,10 +580,22 @@ const UserPacket$json = { '1': 'UserPacket', '2': [ {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, - {'1': 'participant_identity', '3': 5, '4': 1, '5': 9, '10': 'participantIdentity'}, + { + '1': 'participant_identity', + '3': 5, + '4': 1, + '5': 9, + '10': 'participantIdentity' + }, {'1': 'payload', '3': 2, '4': 1, '5': 12, '10': 'payload'}, {'1': 'destination_sids', '3': 3, '4': 3, '5': 9, '10': 'destinationSids'}, - {'1': 'destination_identities', '3': 6, '4': 3, '5': 9, '10': 'destinationIdentities'}, + { + '1': 'destination_identities', + '3': 6, + '4': 3, + '5': 9, + '10': 'destinationIdentities' + }, {'1': 'topic', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'topic', '17': true}, ], '8': [ @@ -490,7 +629,14 @@ final $typed_data.Uint8List participantTracksDescriptor = $convert.base64Decode( const ServerInfo$json = { '1': 'ServerInfo', '2': [ - {'1': 'edition', '3': 1, '4': 1, '5': 14, '6': '.livekit.ServerInfo.Edition', '10': 'edition'}, + { + '1': 'edition', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.ServerInfo.Edition', + '10': 'edition' + }, {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, {'1': 'region', '3': 4, '4': 1, '5': 9, '10': 'region'}, @@ -521,7 +667,14 @@ final $typed_data.Uint8List serverInfoDescriptor = $convert.base64Decode( const ClientInfo$json = { '1': 'ClientInfo', '2': [ - {'1': 'sdk', '3': 1, '4': 1, '5': 14, '6': '.livekit.ClientInfo.SDK', '10': 'sdk'}, + { + '1': 'sdk', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.ClientInfo.SDK', + '10': 'sdk' + }, {'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'}, {'1': 'protocol', '3': 3, '4': 1, '5': 5, '10': 'protocol'}, {'1': 'os', '3': 4, '4': 1, '5': 9, '10': 'os'}, @@ -568,11 +721,46 @@ final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode( const ClientConfiguration$json = { '1': 'ClientConfiguration', '2': [ - {'1': 'video', '3': 1, '4': 1, '5': 11, '6': '.livekit.VideoConfiguration', '10': 'video'}, - {'1': 'screen', '3': 2, '4': 1, '5': 11, '6': '.livekit.VideoConfiguration', '10': 'screen'}, - {'1': 'resume_connection', '3': 3, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'resumeConnection'}, - {'1': 'disabled_codecs', '3': 4, '4': 1, '5': 11, '6': '.livekit.DisabledCodecs', '10': 'disabledCodecs'}, - {'1': 'force_relay', '3': 5, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'forceRelay'}, + { + '1': 'video', + '3': 1, + '4': 1, + '5': 11, + '6': '.livekit.VideoConfiguration', + '10': 'video' + }, + { + '1': 'screen', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.VideoConfiguration', + '10': 'screen' + }, + { + '1': 'resume_connection', + '3': 3, + '4': 1, + '5': 14, + '6': '.livekit.ClientConfigSetting', + '10': 'resumeConnection' + }, + { + '1': 'disabled_codecs', + '3': 4, + '4': 1, + '5': 11, + '6': '.livekit.DisabledCodecs', + '10': 'disabledCodecs' + }, + { + '1': 'force_relay', + '3': 5, + '4': 1, + '5': 14, + '6': '.livekit.ClientConfigSetting', + '10': 'forceRelay' + }, ], }; @@ -589,7 +777,14 @@ final $typed_data.Uint8List clientConfigurationDescriptor = $convert.base64Decod const VideoConfiguration$json = { '1': 'VideoConfiguration', '2': [ - {'1': 'hardware_encoder', '3': 1, '4': 1, '5': 14, '6': '.livekit.ClientConfigSetting', '10': 'hardwareEncoder'}, + { + '1': 'hardware_encoder', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.ClientConfigSetting', + '10': 'hardwareEncoder' + }, ], }; @@ -602,8 +797,22 @@ final $typed_data.Uint8List videoConfigurationDescriptor = $convert.base64Decode const DisabledCodecs$json = { '1': 'DisabledCodecs', '2': [ - {'1': 'codecs', '3': 1, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'codecs'}, - {'1': 'publish', '3': 2, '4': 3, '5': 11, '6': '.livekit.Codec', '10': 'publish'}, + { + '1': 'codecs', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.Codec', + '10': 'codecs' + }, + { + '1': 'publish', + '3': 2, + '4': 3, + '5': 11, + '6': '.livekit.Codec', + '10': 'publish' + }, ], }; @@ -616,8 +825,22 @@ final $typed_data.Uint8List disabledCodecsDescriptor = $convert.base64Decode( const RTPDrift$json = { '1': 'RTPDrift', '2': [ - {'1': 'start_time', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'}, - {'1': 'end_time', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'endTime'}, + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, {'1': 'duration', '3': 3, '4': 1, '5': 1, '10': 'duration'}, {'1': 'start_timestamp', '3': 4, '4': 1, '5': 4, '10': 'startTimestamp'}, {'1': 'end_timestamp', '3': 5, '4': 1, '5': 4, '10': 'endTimestamp'}, @@ -642,8 +865,22 @@ final $typed_data.Uint8List rTPDriftDescriptor = $convert.base64Decode( const RTPStats$json = { '1': 'RTPStats', '2': [ - {'1': 'start_time', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'}, - {'1': 'end_time', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'endTime'}, + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, {'1': 'duration', '3': 3, '4': 1, '5': 1, '10': 'duration'}, {'1': 'packets', '3': 4, '4': 1, '5': 13, '10': 'packets'}, {'1': 'packet_rate', '3': 5, '4': 1, '5': 1, '10': 'packetRate'}, @@ -652,39 +889,136 @@ const RTPStats$json = { {'1': 'bitrate', '3': 7, '4': 1, '5': 1, '10': 'bitrate'}, {'1': 'packets_lost', '3': 8, '4': 1, '5': 13, '10': 'packetsLost'}, {'1': 'packet_loss_rate', '3': 9, '4': 1, '5': 1, '10': 'packetLossRate'}, - {'1': 'packet_loss_percentage', '3': 10, '4': 1, '5': 2, '10': 'packetLossPercentage'}, - {'1': 'packets_duplicate', '3': 11, '4': 1, '5': 13, '10': 'packetsDuplicate'}, - {'1': 'packet_duplicate_rate', '3': 12, '4': 1, '5': 1, '10': 'packetDuplicateRate'}, + { + '1': 'packet_loss_percentage', + '3': 10, + '4': 1, + '5': 2, + '10': 'packetLossPercentage' + }, + { + '1': 'packets_duplicate', + '3': 11, + '4': 1, + '5': 13, + '10': 'packetsDuplicate' + }, + { + '1': 'packet_duplicate_rate', + '3': 12, + '4': 1, + '5': 1, + '10': 'packetDuplicateRate' + }, {'1': 'bytes_duplicate', '3': 13, '4': 1, '5': 4, '10': 'bytesDuplicate'}, - {'1': 'header_bytes_duplicate', '3': 40, '4': 1, '5': 4, '10': 'headerBytesDuplicate'}, - {'1': 'bitrate_duplicate', '3': 14, '4': 1, '5': 1, '10': 'bitrateDuplicate'}, + { + '1': 'header_bytes_duplicate', + '3': 40, + '4': 1, + '5': 4, + '10': 'headerBytesDuplicate' + }, + { + '1': 'bitrate_duplicate', + '3': 14, + '4': 1, + '5': 1, + '10': 'bitrateDuplicate' + }, {'1': 'packets_padding', '3': 15, '4': 1, '5': 13, '10': 'packetsPadding'}, - {'1': 'packet_padding_rate', '3': 16, '4': 1, '5': 1, '10': 'packetPaddingRate'}, + { + '1': 'packet_padding_rate', + '3': 16, + '4': 1, + '5': 1, + '10': 'packetPaddingRate' + }, {'1': 'bytes_padding', '3': 17, '4': 1, '5': 4, '10': 'bytesPadding'}, - {'1': 'header_bytes_padding', '3': 41, '4': 1, '5': 4, '10': 'headerBytesPadding'}, + { + '1': 'header_bytes_padding', + '3': 41, + '4': 1, + '5': 4, + '10': 'headerBytesPadding' + }, {'1': 'bitrate_padding', '3': 18, '4': 1, '5': 1, '10': 'bitratePadding'}, - {'1': 'packets_out_of_order', '3': 19, '4': 1, '5': 13, '10': 'packetsOutOfOrder'}, + { + '1': 'packets_out_of_order', + '3': 19, + '4': 1, + '5': 13, + '10': 'packetsOutOfOrder' + }, {'1': 'frames', '3': 20, '4': 1, '5': 13, '10': 'frames'}, {'1': 'frame_rate', '3': 21, '4': 1, '5': 1, '10': 'frameRate'}, {'1': 'jitter_current', '3': 22, '4': 1, '5': 1, '10': 'jitterCurrent'}, {'1': 'jitter_max', '3': 23, '4': 1, '5': 1, '10': 'jitterMax'}, - {'1': 'gap_histogram', '3': 24, '4': 3, '5': 11, '6': '.livekit.RTPStats.GapHistogramEntry', '10': 'gapHistogram'}, + { + '1': 'gap_histogram', + '3': 24, + '4': 3, + '5': 11, + '6': '.livekit.RTPStats.GapHistogramEntry', + '10': 'gapHistogram' + }, {'1': 'nacks', '3': 25, '4': 1, '5': 13, '10': 'nacks'}, {'1': 'nack_acks', '3': 37, '4': 1, '5': 13, '10': 'nackAcks'}, {'1': 'nack_misses', '3': 26, '4': 1, '5': 13, '10': 'nackMisses'}, {'1': 'nack_repeated', '3': 38, '4': 1, '5': 13, '10': 'nackRepeated'}, {'1': 'plis', '3': 27, '4': 1, '5': 13, '10': 'plis'}, - {'1': 'last_pli', '3': 28, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastPli'}, + { + '1': 'last_pli', + '3': 28, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'lastPli' + }, {'1': 'firs', '3': 29, '4': 1, '5': 13, '10': 'firs'}, - {'1': 'last_fir', '3': 30, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastFir'}, + { + '1': 'last_fir', + '3': 30, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'lastFir' + }, {'1': 'rtt_current', '3': 31, '4': 1, '5': 13, '10': 'rttCurrent'}, {'1': 'rtt_max', '3': 32, '4': 1, '5': 13, '10': 'rttMax'}, {'1': 'key_frames', '3': 33, '4': 1, '5': 13, '10': 'keyFrames'}, - {'1': 'last_key_frame', '3': 34, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastKeyFrame'}, + { + '1': 'last_key_frame', + '3': 34, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'lastKeyFrame' + }, {'1': 'layer_lock_plis', '3': 35, '4': 1, '5': 13, '10': 'layerLockPlis'}, - {'1': 'last_layer_lock_pli', '3': 36, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'lastLayerLockPli'}, - {'1': 'packet_drift', '3': 44, '4': 1, '5': 11, '6': '.livekit.RTPDrift', '10': 'packetDrift'}, - {'1': 'report_drift', '3': 45, '4': 1, '5': 11, '6': '.livekit.RTPDrift', '10': 'reportDrift'}, + { + '1': 'last_layer_lock_pli', + '3': 36, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'lastLayerLockPli' + }, + { + '1': 'packet_drift', + '3': 44, + '4': 1, + '5': 11, + '6': '.livekit.RTPDrift', + '10': 'packetDrift' + }, + { + '1': 'report_drift', + '3': 45, + '4': 1, + '5': 11, + '6': '.livekit.RTPDrift', + '10': 'reportDrift' + }, ], '3': [RTPStats_GapHistogramEntry$json], }; @@ -749,4 +1083,3 @@ const TimedVersion$json = { final $typed_data.Uint8List timedVersionDescriptor = $convert.base64Decode( 'CgxUaW1lZFZlcnNpb24SHQoKdW5peF9taWNybxgBIAEoA1IJdW5peE1pY3JvEhQKBXRpY2tzGA' 'IgASgFUgV0aWNrcw=='); - diff --git a/lib/src/proto/livekit_models.pbserver.dart b/lib/src/proto/livekit_models.pbserver.dart index 34ef45f3..6bb6f6ed 100644 --- a/lib/src/proto/livekit_models.pbserver.dart +++ b/lib/src/proto/livekit_models.pbserver.dart @@ -11,4 +11,3 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'livekit_models.pb.dart'; - diff --git a/lib/src/proto/livekit_rtc.pb.dart b/lib/src/proto/livekit_rtc.pb.dart index 4bea653e..e35cec95 100644 --- a/lib/src/proto/livekit_rtc.pb.dart +++ b/lib/src/proto/livekit_rtc.pb.dart @@ -21,21 +21,21 @@ import 'livekit_rtc.pbenum.dart'; export 'livekit_rtc.pbenum.dart'; enum SignalRequest_Message { - offer, - answer, - trickle, - addTrack, - mute, - subscription, - trackSetting, - leave, - updateLayers, - subscriptionPermission, - syncState, - simulate, - ping, - updateMetadata, - pingReq, + offer, + answer, + trickle, + addTrack, + mute, + subscription, + trackSetting, + leave, + updateLayers, + subscriptionPermission, + syncState, + simulate, + ping, + updateMetadata, + pingReq, notSet } @@ -106,76 +106,104 @@ class SignalRequest extends $pb.GeneratedMessage { return $result; } SignalRequest._() : super(); - factory SignalRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SignalRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SignalRequest_Message> _SignalRequest_MessageByTag = { - 1 : SignalRequest_Message.offer, - 2 : SignalRequest_Message.answer, - 3 : SignalRequest_Message.trickle, - 4 : SignalRequest_Message.addTrack, - 5 : SignalRequest_Message.mute, - 6 : SignalRequest_Message.subscription, - 7 : SignalRequest_Message.trackSetting, - 8 : SignalRequest_Message.leave, - 10 : SignalRequest_Message.updateLayers, - 11 : SignalRequest_Message.subscriptionPermission, - 12 : SignalRequest_Message.syncState, - 13 : SignalRequest_Message.simulate, - 14 : SignalRequest_Message.ping, - 15 : SignalRequest_Message.updateMetadata, - 16 : SignalRequest_Message.pingReq, - 0 : SignalRequest_Message.notSet + factory SignalRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SignalRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SignalRequest_Message> + _SignalRequest_MessageByTag = { + 1: SignalRequest_Message.offer, + 2: SignalRequest_Message.answer, + 3: SignalRequest_Message.trickle, + 4: SignalRequest_Message.addTrack, + 5: SignalRequest_Message.mute, + 6: SignalRequest_Message.subscription, + 7: SignalRequest_Message.trackSetting, + 8: SignalRequest_Message.leave, + 10: SignalRequest_Message.updateLayers, + 11: SignalRequest_Message.subscriptionPermission, + 12: SignalRequest_Message.syncState, + 13: SignalRequest_Message.simulate, + 14: SignalRequest_Message.ping, + 15: SignalRequest_Message.updateMetadata, + 16: SignalRequest_Message.pingReq, + 0: SignalRequest_Message.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SignalRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignalRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16]) - ..aOM(1, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) - ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) - ..aOM(3, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) - ..aOM(4, _omitFieldNames ? '' : 'addTrack', subBuilder: AddTrackRequest.create) - ..aOM(5, _omitFieldNames ? '' : 'mute', subBuilder: MuteTrackRequest.create) - ..aOM(6, _omitFieldNames ? '' : 'subscription', subBuilder: UpdateSubscription.create) - ..aOM(7, _omitFieldNames ? '' : 'trackSetting', subBuilder: UpdateTrackSettings.create) - ..aOM(8, _omitFieldNames ? '' : 'leave', subBuilder: LeaveRequest.create) - ..aOM(10, _omitFieldNames ? '' : 'updateLayers', subBuilder: UpdateVideoLayers.create) - ..aOM(11, _omitFieldNames ? '' : 'subscriptionPermission', subBuilder: SubscriptionPermission.create) - ..aOM(12, _omitFieldNames ? '' : 'syncState', subBuilder: SyncState.create) - ..aOM(13, _omitFieldNames ? '' : 'simulate', subBuilder: SimulateScenario.create) + ..aOM(1, _omitFieldNames ? '' : 'offer', + subBuilder: SessionDescription.create) + ..aOM(2, _omitFieldNames ? '' : 'answer', + subBuilder: SessionDescription.create) + ..aOM(3, _omitFieldNames ? '' : 'trickle', + subBuilder: TrickleRequest.create) + ..aOM(4, _omitFieldNames ? '' : 'addTrack', + subBuilder: AddTrackRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'mute', + subBuilder: MuteTrackRequest.create) + ..aOM(6, _omitFieldNames ? '' : 'subscription', + subBuilder: UpdateSubscription.create) + ..aOM(7, _omitFieldNames ? '' : 'trackSetting', + subBuilder: UpdateTrackSettings.create) + ..aOM(8, _omitFieldNames ? '' : 'leave', + subBuilder: LeaveRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'updateLayers', + subBuilder: UpdateVideoLayers.create) + ..aOM( + 11, _omitFieldNames ? '' : 'subscriptionPermission', + subBuilder: SubscriptionPermission.create) + ..aOM(12, _omitFieldNames ? '' : 'syncState', + subBuilder: SyncState.create) + ..aOM(13, _omitFieldNames ? '' : 'simulate', + subBuilder: SimulateScenario.create) ..aInt64(14, _omitFieldNames ? '' : 'ping') - ..aOM(15, _omitFieldNames ? '' : 'updateMetadata', subBuilder: UpdateParticipantMetadata.create) + ..aOM( + 15, _omitFieldNames ? '' : 'updateMetadata', + subBuilder: UpdateParticipantMetadata.create) ..aOM(16, _omitFieldNames ? '' : 'pingReq', subBuilder: Ping.create) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SignalRequest clone() => SignalRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SignalRequest copyWith(void Function(SignalRequest) updates) => super.copyWith((message) => updates(message as SignalRequest)) as SignalRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SignalRequest copyWith(void Function(SignalRequest) updates) => + super.copyWith((message) => updates(message as SignalRequest)) + as SignalRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SignalRequest create() => SignalRequest._(); SignalRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SignalRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SignalRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SignalRequest? _defaultInstance; - SignalRequest_Message whichMessage() => _SignalRequest_MessageByTag[$_whichOneof(0)]!; + SignalRequest_Message whichMessage() => + _SignalRequest_MessageByTag[$_whichOneof(0)]!; void clearMessage() => clearField($_whichOneof(0)); /// initial join exchange, for publisher @$pb.TagNumber(1) SessionDescription get offer => $_getN(0); @$pb.TagNumber(1) - set offer(SessionDescription v) { setField(1, v); } + set offer(SessionDescription v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasOffer() => $_has(0); @$pb.TagNumber(1) @@ -187,7 +215,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) SessionDescription get answer => $_getN(1); @$pb.TagNumber(2) - set answer(SessionDescription v) { setField(2, v); } + set answer(SessionDescription v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasAnswer() => $_has(1); @$pb.TagNumber(2) @@ -198,7 +229,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) TrickleRequest get trickle => $_getN(2); @$pb.TagNumber(3) - set trickle(TrickleRequest v) { setField(3, v); } + set trickle(TrickleRequest v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasTrickle() => $_has(2); @$pb.TagNumber(3) @@ -209,7 +243,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) AddTrackRequest get addTrack => $_getN(3); @$pb.TagNumber(4) - set addTrack(AddTrackRequest v) { setField(4, v); } + set addTrack(AddTrackRequest v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasAddTrack() => $_has(3); @$pb.TagNumber(4) @@ -221,7 +258,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) MuteTrackRequest get mute => $_getN(4); @$pb.TagNumber(5) - set mute(MuteTrackRequest v) { setField(5, v); } + set mute(MuteTrackRequest v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasMute() => $_has(4); @$pb.TagNumber(5) @@ -233,7 +273,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) UpdateSubscription get subscription => $_getN(5); @$pb.TagNumber(6) - set subscription(UpdateSubscription v) { setField(6, v); } + set subscription(UpdateSubscription v) { + setField(6, v); + } + @$pb.TagNumber(6) $core.bool hasSubscription() => $_has(5); @$pb.TagNumber(6) @@ -245,7 +288,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) UpdateTrackSettings get trackSetting => $_getN(6); @$pb.TagNumber(7) - set trackSetting(UpdateTrackSettings v) { setField(7, v); } + set trackSetting(UpdateTrackSettings v) { + setField(7, v); + } + @$pb.TagNumber(7) $core.bool hasTrackSetting() => $_has(6); @$pb.TagNumber(7) @@ -257,7 +303,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) LeaveRequest get leave => $_getN(7); @$pb.TagNumber(8) - set leave(LeaveRequest v) { setField(8, v); } + set leave(LeaveRequest v) { + setField(8, v); + } + @$pb.TagNumber(8) $core.bool hasLeave() => $_has(7); @$pb.TagNumber(8) @@ -269,7 +318,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(10) UpdateVideoLayers get updateLayers => $_getN(8); @$pb.TagNumber(10) - set updateLayers(UpdateVideoLayers v) { setField(10, v); } + set updateLayers(UpdateVideoLayers v) { + setField(10, v); + } + @$pb.TagNumber(10) $core.bool hasUpdateLayers() => $_has(8); @$pb.TagNumber(10) @@ -281,7 +333,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(11) SubscriptionPermission get subscriptionPermission => $_getN(9); @$pb.TagNumber(11) - set subscriptionPermission(SubscriptionPermission v) { setField(11, v); } + set subscriptionPermission(SubscriptionPermission v) { + setField(11, v); + } + @$pb.TagNumber(11) $core.bool hasSubscriptionPermission() => $_has(9); @$pb.TagNumber(11) @@ -293,7 +348,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) SyncState get syncState => $_getN(10); @$pb.TagNumber(12) - set syncState(SyncState v) { setField(12, v); } + set syncState(SyncState v) { + setField(12, v); + } + @$pb.TagNumber(12) $core.bool hasSyncState() => $_has(10); @$pb.TagNumber(12) @@ -305,7 +363,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(13) SimulateScenario get simulate => $_getN(11); @$pb.TagNumber(13) - set simulate(SimulateScenario v) { setField(13, v); } + set simulate(SimulateScenario v) { + setField(13, v); + } + @$pb.TagNumber(13) $core.bool hasSimulate() => $_has(11); @$pb.TagNumber(13) @@ -317,7 +378,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(14) $fixnum.Int64 get ping => $_getI64(12); @$pb.TagNumber(14) - set ping($fixnum.Int64 v) { $_setInt64(12, v); } + set ping($fixnum.Int64 v) { + $_setInt64(12, v); + } + @$pb.TagNumber(14) $core.bool hasPing() => $_has(12); @$pb.TagNumber(14) @@ -327,7 +391,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(15) UpdateParticipantMetadata get updateMetadata => $_getN(13); @$pb.TagNumber(15) - set updateMetadata(UpdateParticipantMetadata v) { setField(15, v); } + set updateMetadata(UpdateParticipantMetadata v) { + setField(15, v); + } + @$pb.TagNumber(15) $core.bool hasUpdateMetadata() => $_has(13); @$pb.TagNumber(15) @@ -338,7 +405,10 @@ class SignalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(16) Ping get pingReq => $_getN(14); @$pb.TagNumber(16) - set pingReq(Ping v) { setField(16, v); } + set pingReq(Ping v) { + setField(16, v); + } + @$pb.TagNumber(16) $core.bool hasPingReq() => $_has(14); @$pb.TagNumber(16) @@ -348,26 +418,26 @@ class SignalRequest extends $pb.GeneratedMessage { } enum SignalResponse_Message { - join, - answer, - offer, - trickle, - update, - trackPublished, - leave, - mute, - speakersChanged, - roomUpdate, - connectionQuality, - streamStateUpdate, - subscribedQualityUpdate, - subscriptionPermissionUpdate, - refreshToken, - trackUnpublished, - pong, - reconnect, - pongResp, - subscriptionResponse, + join, + answer, + offer, + trickle, + update, + trackPublished, + leave, + mute, + speakersChanged, + roomUpdate, + connectionQuality, + streamStateUpdate, + subscribedQualityUpdate, + subscriptionPermissionUpdate, + refreshToken, + trackUnpublished, + pong, + reconnect, + pongResp, + subscriptionResponse, notSet } @@ -458,86 +528,142 @@ class SignalResponse extends $pb.GeneratedMessage { return $result; } SignalResponse._() : super(); - factory SignalResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SignalResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SignalResponse_Message> _SignalResponse_MessageByTag = { - 1 : SignalResponse_Message.join, - 2 : SignalResponse_Message.answer, - 3 : SignalResponse_Message.offer, - 4 : SignalResponse_Message.trickle, - 5 : SignalResponse_Message.update, - 6 : SignalResponse_Message.trackPublished, - 8 : SignalResponse_Message.leave, - 9 : SignalResponse_Message.mute, - 10 : SignalResponse_Message.speakersChanged, - 11 : SignalResponse_Message.roomUpdate, - 12 : SignalResponse_Message.connectionQuality, - 13 : SignalResponse_Message.streamStateUpdate, - 14 : SignalResponse_Message.subscribedQualityUpdate, - 15 : SignalResponse_Message.subscriptionPermissionUpdate, - 16 : SignalResponse_Message.refreshToken, - 17 : SignalResponse_Message.trackUnpublished, - 18 : SignalResponse_Message.pong, - 19 : SignalResponse_Message.reconnect, - 20 : SignalResponse_Message.pongResp, - 21 : SignalResponse_Message.subscriptionResponse, - 0 : SignalResponse_Message.notSet + factory SignalResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SignalResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SignalResponse_Message> + _SignalResponse_MessageByTag = { + 1: SignalResponse_Message.join, + 2: SignalResponse_Message.answer, + 3: SignalResponse_Message.offer, + 4: SignalResponse_Message.trickle, + 5: SignalResponse_Message.update, + 6: SignalResponse_Message.trackPublished, + 8: SignalResponse_Message.leave, + 9: SignalResponse_Message.mute, + 10: SignalResponse_Message.speakersChanged, + 11: SignalResponse_Message.roomUpdate, + 12: SignalResponse_Message.connectionQuality, + 13: SignalResponse_Message.streamStateUpdate, + 14: SignalResponse_Message.subscribedQualityUpdate, + 15: SignalResponse_Message.subscriptionPermissionUpdate, + 16: SignalResponse_Message.refreshToken, + 17: SignalResponse_Message.trackUnpublished, + 18: SignalResponse_Message.pong, + 19: SignalResponse_Message.reconnect, + 20: SignalResponse_Message.pongResp, + 21: SignalResponse_Message.subscriptionResponse, + 0: SignalResponse_Message.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SignalResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]) - ..aOM(1, _omitFieldNames ? '' : 'join', subBuilder: JoinResponse.create) - ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) - ..aOM(3, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) - ..aOM(4, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) - ..aOM(5, _omitFieldNames ? '' : 'update', subBuilder: ParticipantUpdate.create) - ..aOM(6, _omitFieldNames ? '' : 'trackPublished', subBuilder: TrackPublishedResponse.create) - ..aOM(8, _omitFieldNames ? '' : 'leave', subBuilder: LeaveRequest.create) - ..aOM(9, _omitFieldNames ? '' : 'mute', subBuilder: MuteTrackRequest.create) - ..aOM(10, _omitFieldNames ? '' : 'speakersChanged', subBuilder: SpeakersChanged.create) - ..aOM(11, _omitFieldNames ? '' : 'roomUpdate', subBuilder: RoomUpdate.create) - ..aOM(12, _omitFieldNames ? '' : 'connectionQuality', subBuilder: ConnectionQualityUpdate.create) - ..aOM(13, _omitFieldNames ? '' : 'streamStateUpdate', subBuilder: StreamStateUpdate.create) - ..aOM(14, _omitFieldNames ? '' : 'subscribedQualityUpdate', subBuilder: SubscribedQualityUpdate.create) - ..aOM(15, _omitFieldNames ? '' : 'subscriptionPermissionUpdate', subBuilder: SubscriptionPermissionUpdate.create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignalResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..oo(0, [ + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21 + ]) + ..aOM(1, _omitFieldNames ? '' : 'join', + subBuilder: JoinResponse.create) + ..aOM(2, _omitFieldNames ? '' : 'answer', + subBuilder: SessionDescription.create) + ..aOM(3, _omitFieldNames ? '' : 'offer', + subBuilder: SessionDescription.create) + ..aOM(4, _omitFieldNames ? '' : 'trickle', + subBuilder: TrickleRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'update', + subBuilder: ParticipantUpdate.create) + ..aOM(6, _omitFieldNames ? '' : 'trackPublished', + subBuilder: TrackPublishedResponse.create) + ..aOM(8, _omitFieldNames ? '' : 'leave', + subBuilder: LeaveRequest.create) + ..aOM(9, _omitFieldNames ? '' : 'mute', + subBuilder: MuteTrackRequest.create) + ..aOM(10, _omitFieldNames ? '' : 'speakersChanged', + subBuilder: SpeakersChanged.create) + ..aOM(11, _omitFieldNames ? '' : 'roomUpdate', + subBuilder: RoomUpdate.create) + ..aOM( + 12, _omitFieldNames ? '' : 'connectionQuality', + subBuilder: ConnectionQualityUpdate.create) + ..aOM(13, _omitFieldNames ? '' : 'streamStateUpdate', + subBuilder: StreamStateUpdate.create) + ..aOM( + 14, _omitFieldNames ? '' : 'subscribedQualityUpdate', + subBuilder: SubscribedQualityUpdate.create) + ..aOM( + 15, _omitFieldNames ? '' : 'subscriptionPermissionUpdate', + subBuilder: SubscriptionPermissionUpdate.create) ..aOS(16, _omitFieldNames ? '' : 'refreshToken') - ..aOM(17, _omitFieldNames ? '' : 'trackUnpublished', subBuilder: TrackUnpublishedResponse.create) + ..aOM( + 17, _omitFieldNames ? '' : 'trackUnpublished', + subBuilder: TrackUnpublishedResponse.create) ..aInt64(18, _omitFieldNames ? '' : 'pong') - ..aOM(19, _omitFieldNames ? '' : 'reconnect', subBuilder: ReconnectResponse.create) + ..aOM(19, _omitFieldNames ? '' : 'reconnect', + subBuilder: ReconnectResponse.create) ..aOM(20, _omitFieldNames ? '' : 'pongResp', subBuilder: Pong.create) - ..aOM(21, _omitFieldNames ? '' : 'subscriptionResponse', subBuilder: SubscriptionResponse.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..aOM( + 21, _omitFieldNames ? '' : 'subscriptionResponse', + subBuilder: SubscriptionResponse.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SignalResponse clone() => SignalResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SignalResponse copyWith(void Function(SignalResponse) updates) => super.copyWith((message) => updates(message as SignalResponse)) as SignalResponse; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SignalResponse copyWith(void Function(SignalResponse) updates) => + super.copyWith((message) => updates(message as SignalResponse)) + as SignalResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SignalResponse create() => SignalResponse._(); SignalResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SignalResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SignalResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SignalResponse? _defaultInstance; - SignalResponse_Message whichMessage() => _SignalResponse_MessageByTag[$_whichOneof(0)]!; + SignalResponse_Message whichMessage() => + _SignalResponse_MessageByTag[$_whichOneof(0)]!; void clearMessage() => clearField($_whichOneof(0)); /// sent when join is accepted @$pb.TagNumber(1) JoinResponse get join => $_getN(0); @$pb.TagNumber(1) - set join(JoinResponse v) { setField(1, v); } + set join(JoinResponse v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasJoin() => $_has(0); @$pb.TagNumber(1) @@ -549,7 +675,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) SessionDescription get answer => $_getN(1); @$pb.TagNumber(2) - set answer(SessionDescription v) { setField(2, v); } + set answer(SessionDescription v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasAnswer() => $_has(1); @$pb.TagNumber(2) @@ -561,7 +690,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(3) SessionDescription get offer => $_getN(2); @$pb.TagNumber(3) - set offer(SessionDescription v) { setField(3, v); } + set offer(SessionDescription v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasOffer() => $_has(2); @$pb.TagNumber(3) @@ -573,7 +705,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(4) TrickleRequest get trickle => $_getN(3); @$pb.TagNumber(4) - set trickle(TrickleRequest v) { setField(4, v); } + set trickle(TrickleRequest v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasTrickle() => $_has(3); @$pb.TagNumber(4) @@ -585,7 +720,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(5) ParticipantUpdate get update => $_getN(4); @$pb.TagNumber(5) - set update(ParticipantUpdate v) { setField(5, v); } + set update(ParticipantUpdate v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasUpdate() => $_has(4); @$pb.TagNumber(5) @@ -597,7 +735,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(6) TrackPublishedResponse get trackPublished => $_getN(5); @$pb.TagNumber(6) - set trackPublished(TrackPublishedResponse v) { setField(6, v); } + set trackPublished(TrackPublishedResponse v) { + setField(6, v); + } + @$pb.TagNumber(6) $core.bool hasTrackPublished() => $_has(5); @$pb.TagNumber(6) @@ -609,7 +750,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(8) LeaveRequest get leave => $_getN(6); @$pb.TagNumber(8) - set leave(LeaveRequest v) { setField(8, v); } + set leave(LeaveRequest v) { + setField(8, v); + } + @$pb.TagNumber(8) $core.bool hasLeave() => $_has(6); @$pb.TagNumber(8) @@ -621,7 +765,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(9) MuteTrackRequest get mute => $_getN(7); @$pb.TagNumber(9) - set mute(MuteTrackRequest v) { setField(9, v); } + set mute(MuteTrackRequest v) { + setField(9, v); + } + @$pb.TagNumber(9) $core.bool hasMute() => $_has(7); @$pb.TagNumber(9) @@ -633,7 +780,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(10) SpeakersChanged get speakersChanged => $_getN(8); @$pb.TagNumber(10) - set speakersChanged(SpeakersChanged v) { setField(10, v); } + set speakersChanged(SpeakersChanged v) { + setField(10, v); + } + @$pb.TagNumber(10) $core.bool hasSpeakersChanged() => $_has(8); @$pb.TagNumber(10) @@ -645,7 +795,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(11) RoomUpdate get roomUpdate => $_getN(9); @$pb.TagNumber(11) - set roomUpdate(RoomUpdate v) { setField(11, v); } + set roomUpdate(RoomUpdate v) { + setField(11, v); + } + @$pb.TagNumber(11) $core.bool hasRoomUpdate() => $_has(9); @$pb.TagNumber(11) @@ -657,7 +810,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(12) ConnectionQualityUpdate get connectionQuality => $_getN(10); @$pb.TagNumber(12) - set connectionQuality(ConnectionQualityUpdate v) { setField(12, v); } + set connectionQuality(ConnectionQualityUpdate v) { + setField(12, v); + } + @$pb.TagNumber(12) $core.bool hasConnectionQuality() => $_has(10); @$pb.TagNumber(12) @@ -670,7 +826,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(13) StreamStateUpdate get streamStateUpdate => $_getN(11); @$pb.TagNumber(13) - set streamStateUpdate(StreamStateUpdate v) { setField(13, v); } + set streamStateUpdate(StreamStateUpdate v) { + setField(13, v); + } + @$pb.TagNumber(13) $core.bool hasStreamStateUpdate() => $_has(11); @$pb.TagNumber(13) @@ -682,7 +841,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(14) SubscribedQualityUpdate get subscribedQualityUpdate => $_getN(12); @$pb.TagNumber(14) - set subscribedQualityUpdate(SubscribedQualityUpdate v) { setField(14, v); } + set subscribedQualityUpdate(SubscribedQualityUpdate v) { + setField(14, v); + } + @$pb.TagNumber(14) $core.bool hasSubscribedQualityUpdate() => $_has(12); @$pb.TagNumber(14) @@ -694,19 +856,26 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(15) SubscriptionPermissionUpdate get subscriptionPermissionUpdate => $_getN(13); @$pb.TagNumber(15) - set subscriptionPermissionUpdate(SubscriptionPermissionUpdate v) { setField(15, v); } + set subscriptionPermissionUpdate(SubscriptionPermissionUpdate v) { + setField(15, v); + } + @$pb.TagNumber(15) $core.bool hasSubscriptionPermissionUpdate() => $_has(13); @$pb.TagNumber(15) void clearSubscriptionPermissionUpdate() => clearField(15); @$pb.TagNumber(15) - SubscriptionPermissionUpdate ensureSubscriptionPermissionUpdate() => $_ensure(13); + SubscriptionPermissionUpdate ensureSubscriptionPermissionUpdate() => + $_ensure(13); /// update the token the client was using, to prevent an active client from using an expired token @$pb.TagNumber(16) $core.String get refreshToken => $_getSZ(14); @$pb.TagNumber(16) - set refreshToken($core.String v) { $_setString(14, v); } + set refreshToken($core.String v) { + $_setString(14, v); + } + @$pb.TagNumber(16) $core.bool hasRefreshToken() => $_has(14); @$pb.TagNumber(16) @@ -716,7 +885,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(17) TrackUnpublishedResponse get trackUnpublished => $_getN(15); @$pb.TagNumber(17) - set trackUnpublished(TrackUnpublishedResponse v) { setField(17, v); } + set trackUnpublished(TrackUnpublishedResponse v) { + setField(17, v); + } + @$pb.TagNumber(17) $core.bool hasTrackUnpublished() => $_has(15); @$pb.TagNumber(17) @@ -728,7 +900,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(18) $fixnum.Int64 get pong => $_getI64(16); @$pb.TagNumber(18) - set pong($fixnum.Int64 v) { $_setInt64(16, v); } + set pong($fixnum.Int64 v) { + $_setInt64(16, v); + } + @$pb.TagNumber(18) $core.bool hasPong() => $_has(16); @$pb.TagNumber(18) @@ -738,7 +913,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(19) ReconnectResponse get reconnect => $_getN(17); @$pb.TagNumber(19) - set reconnect(ReconnectResponse v) { setField(19, v); } + set reconnect(ReconnectResponse v) { + setField(19, v); + } + @$pb.TagNumber(19) $core.bool hasReconnect() => $_has(17); @$pb.TagNumber(19) @@ -750,7 +928,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(20) Pong get pongResp => $_getN(18); @$pb.TagNumber(20) - set pongResp(Pong v) { setField(20, v); } + set pongResp(Pong v) { + setField(20, v); + } + @$pb.TagNumber(20) $core.bool hasPongResp() => $_has(18); @$pb.TagNumber(20) @@ -762,7 +943,10 @@ class SignalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(21) SubscriptionResponse get subscriptionResponse => $_getN(19); @$pb.TagNumber(21) - set subscriptionResponse(SubscriptionResponse v) { setField(21, v); } + set subscriptionResponse(SubscriptionResponse v) { + setField(21, v); + } + @$pb.TagNumber(21) $core.bool hasSubscriptionResponse() => $_has(19); @$pb.TagNumber(21) @@ -786,40 +970,51 @@ class SimulcastCodec extends $pb.GeneratedMessage { return $result; } SimulcastCodec._() : super(); - factory SimulcastCodec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SimulcastCodec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulcastCodec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SimulcastCodec.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SimulcastCodec.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SimulcastCodec', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'codec') ..aOS(2, _omitFieldNames ? '' : 'cid') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulcastCodec clone() => SimulcastCodec()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulcastCodec copyWith(void Function(SimulcastCodec) updates) => super.copyWith((message) => updates(message as SimulcastCodec)) as SimulcastCodec; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulcastCodec copyWith(void Function(SimulcastCodec) updates) => + super.copyWith((message) => updates(message as SimulcastCodec)) + as SimulcastCodec; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SimulcastCodec create() => SimulcastCodec._(); SimulcastCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulcastCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SimulcastCodec getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SimulcastCodec? _defaultInstance; @$pb.TagNumber(1) $core.String get codec => $_getSZ(0); @$pb.TagNumber(1) - set codec($core.String v) { $_setString(0, v); } + set codec($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasCodec() => $_has(0); @$pb.TagNumber(1) @@ -828,7 +1023,10 @@ class SimulcastCodec extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get cid => $_getSZ(1); @$pb.TagNumber(2) - set cid($core.String v) { $_setString(1, v); } + set cid($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasCid() => $_has(1); @$pb.TagNumber(2) @@ -902,54 +1100,78 @@ class AddTrackRequest extends $pb.GeneratedMessage { return $result; } AddTrackRequest._() : super(); - factory AddTrackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory AddTrackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddTrackRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory AddTrackRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AddTrackRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AddTrackRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'cid') ..aOS(2, _omitFieldNames ? '' : 'name') - ..e<$1.TrackType>(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: $1.TrackType.AUDIO, valueOf: $1.TrackType.valueOf, enumValues: $1.TrackType.values) + ..e<$1.TrackType>(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: $1.TrackType.AUDIO, + valueOf: $1.TrackType.valueOf, + enumValues: $1.TrackType.values) ..a<$core.int>(4, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) ..a<$core.int>(5, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) ..aOB(6, _omitFieldNames ? '' : 'muted') ..aOB(7, _omitFieldNames ? '' : 'disableDtx') - ..e<$1.TrackSource>(8, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, defaultOrMaker: $1.TrackSource.UNKNOWN, valueOf: $1.TrackSource.valueOf, enumValues: $1.TrackSource.values) - ..pc<$1.VideoLayer>(9, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $1.VideoLayer.create) - ..pc(10, _omitFieldNames ? '' : 'simulcastCodecs', $pb.PbFieldType.PM, subBuilder: SimulcastCodec.create) + ..e<$1.TrackSource>(8, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, + defaultOrMaker: $1.TrackSource.UNKNOWN, + valueOf: $1.TrackSource.valueOf, + enumValues: $1.TrackSource.values) + ..pc<$1.VideoLayer>(9, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, + subBuilder: $1.VideoLayer.create) + ..pc( + 10, _omitFieldNames ? '' : 'simulcastCodecs', $pb.PbFieldType.PM, + subBuilder: SimulcastCodec.create) ..aOS(11, _omitFieldNames ? '' : 'sid') ..aOB(12, _omitFieldNames ? '' : 'stereo') ..aOB(13, _omitFieldNames ? '' : 'disableRed') - ..e<$1.Encryption_Type>(14, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, defaultOrMaker: $1.Encryption_Type.NONE, valueOf: $1.Encryption_Type.valueOf, enumValues: $1.Encryption_Type.values) + ..e<$1.Encryption_Type>( + 14, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, + defaultOrMaker: $1.Encryption_Type.NONE, + valueOf: $1.Encryption_Type.valueOf, + enumValues: $1.Encryption_Type.values) ..aOS(15, _omitFieldNames ? '' : 'stream') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') AddTrackRequest clone() => AddTrackRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - AddTrackRequest copyWith(void Function(AddTrackRequest) updates) => super.copyWith((message) => updates(message as AddTrackRequest)) as AddTrackRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AddTrackRequest copyWith(void Function(AddTrackRequest) updates) => + super.copyWith((message) => updates(message as AddTrackRequest)) + as AddTrackRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static AddTrackRequest create() => AddTrackRequest._(); AddTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static AddTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static AddTrackRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static AddTrackRequest? _defaultInstance; /// client ID of track, to match it when RTC track is received @$pb.TagNumber(1) $core.String get cid => $_getSZ(0); @$pb.TagNumber(1) - set cid($core.String v) { $_setString(0, v); } + set cid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasCid() => $_has(0); @$pb.TagNumber(1) @@ -958,7 +1180,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -967,7 +1192,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $1.TrackType get type => $_getN(2); @$pb.TagNumber(3) - set type($1.TrackType v) { setField(3, v); } + set type($1.TrackType v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasType() => $_has(2); @$pb.TagNumber(3) @@ -977,7 +1205,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get width => $_getIZ(3); @$pb.TagNumber(4) - set width($core.int v) { $_setUnsignedInt32(3, v); } + set width($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasWidth() => $_has(3); @$pb.TagNumber(4) @@ -986,7 +1217,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get height => $_getIZ(4); @$pb.TagNumber(5) - set height($core.int v) { $_setUnsignedInt32(4, v); } + set height($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(5) $core.bool hasHeight() => $_has(4); @$pb.TagNumber(5) @@ -996,7 +1230,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.bool get muted => $_getBF(5); @$pb.TagNumber(6) - set muted($core.bool v) { $_setBool(5, v); } + set muted($core.bool v) { + $_setBool(5, v); + } + @$pb.TagNumber(6) $core.bool hasMuted() => $_has(5); @$pb.TagNumber(6) @@ -1006,7 +1243,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.bool get disableDtx => $_getBF(6); @$pb.TagNumber(7) - set disableDtx($core.bool v) { $_setBool(6, v); } + set disableDtx($core.bool v) { + $_setBool(6, v); + } + @$pb.TagNumber(7) $core.bool hasDisableDtx() => $_has(6); @$pb.TagNumber(7) @@ -1015,7 +1255,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) $1.TrackSource get source => $_getN(7); @$pb.TagNumber(8) - set source($1.TrackSource v) { setField(8, v); } + set source($1.TrackSource v) { + setField(8, v); + } + @$pb.TagNumber(8) $core.bool hasSource() => $_has(7); @$pb.TagNumber(8) @@ -1031,7 +1274,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.String get sid => $_getSZ(10); @$pb.TagNumber(11) - set sid($core.String v) { $_setString(10, v); } + set sid($core.String v) { + $_setString(10, v); + } + @$pb.TagNumber(11) $core.bool hasSid() => $_has(10); @$pb.TagNumber(11) @@ -1040,7 +1286,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) $core.bool get stereo => $_getBF(11); @$pb.TagNumber(12) - set stereo($core.bool v) { $_setBool(11, v); } + set stereo($core.bool v) { + $_setBool(11, v); + } + @$pb.TagNumber(12) $core.bool hasStereo() => $_has(11); @$pb.TagNumber(12) @@ -1050,7 +1299,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(13) $core.bool get disableRed => $_getBF(12); @$pb.TagNumber(13) - set disableRed($core.bool v) { $_setBool(12, v); } + set disableRed($core.bool v) { + $_setBool(12, v); + } + @$pb.TagNumber(13) $core.bool hasDisableRed() => $_has(12); @$pb.TagNumber(13) @@ -1059,7 +1311,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(14) $1.Encryption_Type get encryption => $_getN(13); @$pb.TagNumber(14) - set encryption($1.Encryption_Type v) { setField(14, v); } + set encryption($1.Encryption_Type v) { + setField(14, v); + } + @$pb.TagNumber(14) $core.bool hasEncryption() => $_has(13); @$pb.TagNumber(14) @@ -1070,7 +1325,10 @@ class AddTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(15) $core.String get stream => $_getSZ(14); @$pb.TagNumber(15) - set stream($core.String v) { $_setString(14, v); } + set stream($core.String v) { + $_setString(14, v); + } + @$pb.TagNumber(15) $core.bool hasStream() => $_has(14); @$pb.TagNumber(15) @@ -1092,40 +1350,54 @@ class TrickleRequest extends $pb.GeneratedMessage { return $result; } TrickleRequest._() : super(); - factory TrickleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrickleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrickleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TrickleRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TrickleRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrickleRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'candidateInit', protoName: 'candidateInit') - ..e(2, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, defaultOrMaker: SignalTarget.PUBLISHER, valueOf: SignalTarget.valueOf, enumValues: SignalTarget.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..e(2, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, + defaultOrMaker: SignalTarget.PUBLISHER, + valueOf: SignalTarget.valueOf, + enumValues: SignalTarget.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrickleRequest clone() => TrickleRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrickleRequest copyWith(void Function(TrickleRequest) updates) => super.copyWith((message) => updates(message as TrickleRequest)) as TrickleRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrickleRequest copyWith(void Function(TrickleRequest) updates) => + super.copyWith((message) => updates(message as TrickleRequest)) + as TrickleRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TrickleRequest create() => TrickleRequest._(); TrickleRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrickleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrickleRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TrickleRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get candidateInit => $_getSZ(0); @$pb.TagNumber(1) - set candidateInit($core.String v) { $_setString(0, v); } + set candidateInit($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasCandidateInit() => $_has(0); @$pb.TagNumber(1) @@ -1134,7 +1406,10 @@ class TrickleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) SignalTarget get target => $_getN(1); @$pb.TagNumber(2) - set target(SignalTarget v) { setField(2, v); } + set target(SignalTarget v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasTarget() => $_has(1); @$pb.TagNumber(2) @@ -1156,40 +1431,51 @@ class MuteTrackRequest extends $pb.GeneratedMessage { return $result; } MuteTrackRequest._() : super(); - factory MuteTrackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory MuteTrackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MuteTrackRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory MuteTrackRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MuteTrackRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MuteTrackRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'sid') ..aOB(2, _omitFieldNames ? '' : 'muted') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') MuteTrackRequest clone() => MuteTrackRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - MuteTrackRequest copyWith(void Function(MuteTrackRequest) updates) => super.copyWith((message) => updates(message as MuteTrackRequest)) as MuteTrackRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MuteTrackRequest copyWith(void Function(MuteTrackRequest) updates) => + super.copyWith((message) => updates(message as MuteTrackRequest)) + as MuteTrackRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static MuteTrackRequest create() => MuteTrackRequest._(); MuteTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static MuteTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static MuteTrackRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static MuteTrackRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get sid => $_getSZ(0); @$pb.TagNumber(1) - set sid($core.String v) { $_setString(0, v); } + set sid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasSid() => $_has(0); @$pb.TagNumber(1) @@ -1198,7 +1484,10 @@ class MuteTrackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get muted => $_getBF(1); @$pb.TagNumber(2) - set muted($core.bool v) { $_setBool(1, v); } + set muted($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasMuted() => $_has(1); @$pb.TagNumber(2) @@ -1264,51 +1553,71 @@ class JoinResponse extends $pb.GeneratedMessage { return $result; } JoinResponse._() : super(); - factory JoinResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory JoinResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'JoinResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory JoinResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory JoinResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'JoinResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOM<$1.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $1.Room.create) - ..aOM<$1.ParticipantInfo>(2, _omitFieldNames ? '' : 'participant', subBuilder: $1.ParticipantInfo.create) - ..pc<$1.ParticipantInfo>(3, _omitFieldNames ? '' : 'otherParticipants', $pb.PbFieldType.PM, subBuilder: $1.ParticipantInfo.create) + ..aOM<$1.ParticipantInfo>(2, _omitFieldNames ? '' : 'participant', + subBuilder: $1.ParticipantInfo.create) + ..pc<$1.ParticipantInfo>( + 3, _omitFieldNames ? '' : 'otherParticipants', $pb.PbFieldType.PM, + subBuilder: $1.ParticipantInfo.create) ..aOS(4, _omitFieldNames ? '' : 'serverVersion') - ..pc(5, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, subBuilder: ICEServer.create) + ..pc(5, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, + subBuilder: ICEServer.create) ..aOB(6, _omitFieldNames ? '' : 'subscriberPrimary') ..aOS(7, _omitFieldNames ? '' : 'alternativeUrl') - ..aOM<$1.ClientConfiguration>(8, _omitFieldNames ? '' : 'clientConfiguration', subBuilder: $1.ClientConfiguration.create) + ..aOM<$1.ClientConfiguration>( + 8, _omitFieldNames ? '' : 'clientConfiguration', + subBuilder: $1.ClientConfiguration.create) ..aOS(9, _omitFieldNames ? '' : 'serverRegion') ..a<$core.int>(10, _omitFieldNames ? '' : 'pingTimeout', $pb.PbFieldType.O3) - ..a<$core.int>(11, _omitFieldNames ? '' : 'pingInterval', $pb.PbFieldType.O3) - ..aOM<$1.ServerInfo>(12, _omitFieldNames ? '' : 'serverInfo', subBuilder: $1.ServerInfo.create) - ..a<$core.List<$core.int>>(13, _omitFieldNames ? '' : 'sifTrailer', $pb.PbFieldType.OY) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..a<$core.int>( + 11, _omitFieldNames ? '' : 'pingInterval', $pb.PbFieldType.O3) + ..aOM<$1.ServerInfo>(12, _omitFieldNames ? '' : 'serverInfo', + subBuilder: $1.ServerInfo.create) + ..a<$core.List<$core.int>>( + 13, _omitFieldNames ? '' : 'sifTrailer', $pb.PbFieldType.OY) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') JoinResponse clone() => JoinResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - JoinResponse copyWith(void Function(JoinResponse) updates) => super.copyWith((message) => updates(message as JoinResponse)) as JoinResponse; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + JoinResponse copyWith(void Function(JoinResponse) updates) => + super.copyWith((message) => updates(message as JoinResponse)) + as JoinResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static JoinResponse create() => JoinResponse._(); JoinResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static JoinResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static JoinResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static JoinResponse? _defaultInstance; @$pb.TagNumber(1) $1.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($1.Room v) { setField(1, v); } + set room($1.Room v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) @@ -1319,7 +1628,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ParticipantInfo get participant => $_getN(1); @$pb.TagNumber(2) - set participant($1.ParticipantInfo v) { setField(2, v); } + set participant($1.ParticipantInfo v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasParticipant() => $_has(1); @$pb.TagNumber(2) @@ -1334,7 +1646,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get serverVersion => $_getSZ(3); @$pb.TagNumber(4) - set serverVersion($core.String v) { $_setString(3, v); } + set serverVersion($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasServerVersion() => $_has(3); @$pb.TagNumber(4) @@ -1347,7 +1662,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.bool get subscriberPrimary => $_getBF(5); @$pb.TagNumber(6) - set subscriberPrimary($core.bool v) { $_setBool(5, v); } + set subscriberPrimary($core.bool v) { + $_setBool(5, v); + } + @$pb.TagNumber(6) $core.bool hasSubscriberPrimary() => $_has(5); @$pb.TagNumber(6) @@ -1358,7 +1676,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.String get alternativeUrl => $_getSZ(6); @$pb.TagNumber(7) - set alternativeUrl($core.String v) { $_setString(6, v); } + set alternativeUrl($core.String v) { + $_setString(6, v); + } + @$pb.TagNumber(7) $core.bool hasAlternativeUrl() => $_has(6); @$pb.TagNumber(7) @@ -1367,7 +1688,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(8) $1.ClientConfiguration get clientConfiguration => $_getN(7); @$pb.TagNumber(8) - set clientConfiguration($1.ClientConfiguration v) { setField(8, v); } + set clientConfiguration($1.ClientConfiguration v) { + setField(8, v); + } + @$pb.TagNumber(8) $core.bool hasClientConfiguration() => $_has(7); @$pb.TagNumber(8) @@ -1379,7 +1703,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.String get serverRegion => $_getSZ(8); @$pb.TagNumber(9) - set serverRegion($core.String v) { $_setString(8, v); } + set serverRegion($core.String v) { + $_setString(8, v); + } + @$pb.TagNumber(9) $core.bool hasServerRegion() => $_has(8); @$pb.TagNumber(9) @@ -1388,7 +1715,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(10) $core.int get pingTimeout => $_getIZ(9); @$pb.TagNumber(10) - set pingTimeout($core.int v) { $_setSignedInt32(9, v); } + set pingTimeout($core.int v) { + $_setSignedInt32(9, v); + } + @$pb.TagNumber(10) $core.bool hasPingTimeout() => $_has(9); @$pb.TagNumber(10) @@ -1397,7 +1727,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(11) $core.int get pingInterval => $_getIZ(10); @$pb.TagNumber(11) - set pingInterval($core.int v) { $_setSignedInt32(10, v); } + set pingInterval($core.int v) { + $_setSignedInt32(10, v); + } + @$pb.TagNumber(11) $core.bool hasPingInterval() => $_has(10); @$pb.TagNumber(11) @@ -1406,7 +1739,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(12) $1.ServerInfo get serverInfo => $_getN(11); @$pb.TagNumber(12) - set serverInfo($1.ServerInfo v) { setField(12, v); } + set serverInfo($1.ServerInfo v) { + setField(12, v); + } + @$pb.TagNumber(12) $core.bool hasServerInfo() => $_has(11); @$pb.TagNumber(12) @@ -1418,7 +1754,10 @@ class JoinResponse extends $pb.GeneratedMessage { @$pb.TagNumber(13) $core.List<$core.int> get sifTrailer => $_getN(12); @$pb.TagNumber(13) - set sifTrailer($core.List<$core.int> v) { $_setBytes(12, v); } + set sifTrailer($core.List<$core.int> v) { + $_setBytes(12, v); + } + @$pb.TagNumber(13) $core.bool hasSifTrailer() => $_has(12); @$pb.TagNumber(13) @@ -1440,34 +1779,45 @@ class ReconnectResponse extends $pb.GeneratedMessage { return $result; } ReconnectResponse._() : super(); - factory ReconnectResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ReconnectResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ReconnectResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, subBuilder: ICEServer.create) - ..aOM<$1.ClientConfiguration>(2, _omitFieldNames ? '' : 'clientConfiguration', subBuilder: $1.ClientConfiguration.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ReconnectResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ReconnectResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReconnectResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, + subBuilder: ICEServer.create) + ..aOM<$1.ClientConfiguration>( + 2, _omitFieldNames ? '' : 'clientConfiguration', + subBuilder: $1.ClientConfiguration.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ReconnectResponse clone() => ReconnectResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ReconnectResponse copyWith(void Function(ReconnectResponse) updates) => super.copyWith((message) => updates(message as ReconnectResponse)) as ReconnectResponse; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReconnectResponse copyWith(void Function(ReconnectResponse) updates) => + super.copyWith((message) => updates(message as ReconnectResponse)) + as ReconnectResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ReconnectResponse create() => ReconnectResponse._(); ReconnectResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ReconnectResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ReconnectResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ReconnectResponse? _defaultInstance; @$pb.TagNumber(1) @@ -1476,7 +1826,10 @@ class ReconnectResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ClientConfiguration get clientConfiguration => $_getN(1); @$pb.TagNumber(2) - set clientConfiguration($1.ClientConfiguration v) { setField(2, v); } + set clientConfiguration($1.ClientConfiguration v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasClientConfiguration() => $_has(1); @$pb.TagNumber(2) @@ -1500,40 +1853,54 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { return $result; } TrackPublishedResponse._() : super(); - factory TrackPublishedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrackPublishedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackPublishedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TrackPublishedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TrackPublishedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrackPublishedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'cid') - ..aOM<$1.TrackInfo>(2, _omitFieldNames ? '' : 'track', subBuilder: $1.TrackInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrackPublishedResponse clone() => TrackPublishedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackPublishedResponse copyWith(void Function(TrackPublishedResponse) updates) => super.copyWith((message) => updates(message as TrackPublishedResponse)) as TrackPublishedResponse; + ..aOM<$1.TrackInfo>(2, _omitFieldNames ? '' : 'track', + subBuilder: $1.TrackInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TrackPublishedResponse clone() => + TrackPublishedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackPublishedResponse copyWith( + void Function(TrackPublishedResponse) updates) => + super.copyWith((message) => updates(message as TrackPublishedResponse)) + as TrackPublishedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TrackPublishedResponse create() => TrackPublishedResponse._(); TrackPublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackPublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrackPublishedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TrackPublishedResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get cid => $_getSZ(0); @$pb.TagNumber(1) - set cid($core.String v) { $_setString(0, v); } + set cid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasCid() => $_has(0); @$pb.TagNumber(1) @@ -1542,7 +1909,10 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.TrackInfo get track => $_getN(1); @$pb.TagNumber(2) - set track($1.TrackInfo v) { setField(2, v); } + set track($1.TrackInfo v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasTrack() => $_has(1); @$pb.TagNumber(2) @@ -1562,39 +1932,52 @@ class TrackUnpublishedResponse extends $pb.GeneratedMessage { return $result; } TrackUnpublishedResponse._() : super(); - factory TrackUnpublishedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrackUnpublishedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackUnpublishedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TrackUnpublishedResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TrackUnpublishedResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrackUnpublishedResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TrackUnpublishedResponse clone() => TrackUnpublishedResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackUnpublishedResponse copyWith(void Function(TrackUnpublishedResponse) updates) => super.copyWith((message) => updates(message as TrackUnpublishedResponse)) as TrackUnpublishedResponse; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TrackUnpublishedResponse clone() => + TrackUnpublishedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackUnpublishedResponse copyWith( + void Function(TrackUnpublishedResponse) updates) => + super.copyWith((message) => updates(message as TrackUnpublishedResponse)) + as TrackUnpublishedResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TrackUnpublishedResponse create() => TrackUnpublishedResponse._(); TrackUnpublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackUnpublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrackUnpublishedResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TrackUnpublishedResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { $_setString(0, v); } + set trackSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -1616,40 +1999,51 @@ class SessionDescription extends $pb.GeneratedMessage { return $result; } SessionDescription._() : super(); - factory SessionDescription.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SessionDescription.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SessionDescription', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SessionDescription.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SessionDescription.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SessionDescription', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'type') ..aOS(2, _omitFieldNames ? '' : 'sdp') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SessionDescription clone() => SessionDescription()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SessionDescription copyWith(void Function(SessionDescription) updates) => super.copyWith((message) => updates(message as SessionDescription)) as SessionDescription; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SessionDescription copyWith(void Function(SessionDescription) updates) => + super.copyWith((message) => updates(message as SessionDescription)) + as SessionDescription; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SessionDescription create() => SessionDescription._(); SessionDescription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SessionDescription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SessionDescription getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SessionDescription? _defaultInstance; @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) - set type($core.String v) { $_setString(0, v); } + set type($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) @@ -1658,7 +2052,10 @@ class SessionDescription extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get sdp => $_getSZ(1); @$pb.TagNumber(2) - set sdp($core.String v) { $_setString(1, v); } + set sdp($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasSdp() => $_has(1); @$pb.TagNumber(2) @@ -1676,33 +2073,43 @@ class ParticipantUpdate extends $pb.GeneratedMessage { return $result; } ParticipantUpdate._() : super(); - factory ParticipantUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ParticipantUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc<$1.ParticipantInfo>(1, _omitFieldNames ? '' : 'participants', $pb.PbFieldType.PM, subBuilder: $1.ParticipantInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory ParticipantUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ParticipantUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParticipantUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc<$1.ParticipantInfo>( + 1, _omitFieldNames ? '' : 'participants', $pb.PbFieldType.PM, + subBuilder: $1.ParticipantInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ParticipantUpdate clone() => ParticipantUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ParticipantUpdate copyWith(void Function(ParticipantUpdate) updates) => super.copyWith((message) => updates(message as ParticipantUpdate)) as ParticipantUpdate; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ParticipantUpdate copyWith(void Function(ParticipantUpdate) updates) => + super.copyWith((message) => updates(message as ParticipantUpdate)) + as ParticipantUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ParticipantUpdate create() => ParticipantUpdate._(); ParticipantUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ParticipantUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ParticipantUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ParticipantUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -1728,35 +2135,45 @@ class UpdateSubscription extends $pb.GeneratedMessage { return $result; } UpdateSubscription._() : super(); - factory UpdateSubscription.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateSubscription.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSubscription', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory UpdateSubscription.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateSubscription.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateSubscription', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'trackSids') ..aOB(2, _omitFieldNames ? '' : 'subscribe') - ..pc<$1.ParticipantTracks>(3, _omitFieldNames ? '' : 'participantTracks', $pb.PbFieldType.PM, subBuilder: $1.ParticipantTracks.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..pc<$1.ParticipantTracks>( + 3, _omitFieldNames ? '' : 'participantTracks', $pb.PbFieldType.PM, + subBuilder: $1.ParticipantTracks.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateSubscription clone() => UpdateSubscription()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateSubscription copyWith(void Function(UpdateSubscription) updates) => super.copyWith((message) => updates(message as UpdateSubscription)) as UpdateSubscription; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateSubscription copyWith(void Function(UpdateSubscription) updates) => + super.copyWith((message) => updates(message as UpdateSubscription)) + as UpdateSubscription; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateSubscription create() => UpdateSubscription._(); UpdateSubscription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateSubscription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateSubscription getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateSubscription? _defaultInstance; @$pb.TagNumber(1) @@ -1765,7 +2182,10 @@ class UpdateSubscription extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get subscribe => $_getBF(1); @$pb.TagNumber(2) - set subscribe($core.bool v) { $_setBool(1, v); } + set subscribe($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasSubscribe() => $_has(1); @$pb.TagNumber(2) @@ -1810,39 +2230,51 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { return $result; } UpdateTrackSettings._() : super(); - factory UpdateTrackSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateTrackSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateTrackSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory UpdateTrackSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateTrackSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateTrackSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'trackSids') ..aOB(3, _omitFieldNames ? '' : 'disabled') - ..e<$1.VideoQuality>(4, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.VideoQuality.LOW, valueOf: $1.VideoQuality.valueOf, enumValues: $1.VideoQuality.values) + ..e<$1.VideoQuality>( + 4, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, + defaultOrMaker: $1.VideoQuality.LOW, + valueOf: $1.VideoQuality.valueOf, + enumValues: $1.VideoQuality.values) ..a<$core.int>(5, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) ..a<$core.int>(6, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) ..a<$core.int>(7, _omitFieldNames ? '' : 'fps', $pb.PbFieldType.OU3) ..a<$core.int>(8, _omitFieldNames ? '' : 'priority', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateTrackSettings clone() => UpdateTrackSettings()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateTrackSettings copyWith(void Function(UpdateTrackSettings) updates) => super.copyWith((message) => updates(message as UpdateTrackSettings)) as UpdateTrackSettings; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateTrackSettings copyWith(void Function(UpdateTrackSettings) updates) => + super.copyWith((message) => updates(message as UpdateTrackSettings)) + as UpdateTrackSettings; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateTrackSettings create() => UpdateTrackSettings._(); UpdateTrackSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateTrackSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateTrackSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateTrackSettings? _defaultInstance; @$pb.TagNumber(1) @@ -1852,7 +2284,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get disabled => $_getBF(1); @$pb.TagNumber(3) - set disabled($core.bool v) { $_setBool(1, v); } + set disabled($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(3) $core.bool hasDisabled() => $_has(1); @$pb.TagNumber(3) @@ -1862,7 +2297,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(4) $1.VideoQuality get quality => $_getN(2); @$pb.TagNumber(4) - set quality($1.VideoQuality v) { setField(4, v); } + set quality($1.VideoQuality v) { + setField(4, v); + } + @$pb.TagNumber(4) $core.bool hasQuality() => $_has(2); @$pb.TagNumber(4) @@ -1872,7 +2310,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(5) $core.int get width => $_getIZ(3); @$pb.TagNumber(5) - set width($core.int v) { $_setUnsignedInt32(3, v); } + set width($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(5) $core.bool hasWidth() => $_has(3); @$pb.TagNumber(5) @@ -1882,7 +2323,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(6) $core.int get height => $_getIZ(4); @$pb.TagNumber(6) - set height($core.int v) { $_setUnsignedInt32(4, v); } + set height($core.int v) { + $_setUnsignedInt32(4, v); + } + @$pb.TagNumber(6) $core.bool hasHeight() => $_has(4); @$pb.TagNumber(6) @@ -1891,7 +2335,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(7) $core.int get fps => $_getIZ(5); @$pb.TagNumber(7) - set fps($core.int v) { $_setUnsignedInt32(5, v); } + set fps($core.int v) { + $_setUnsignedInt32(5, v); + } + @$pb.TagNumber(7) $core.bool hasFps() => $_has(5); @$pb.TagNumber(7) @@ -1907,7 +2354,10 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { @$pb.TagNumber(8) $core.int get priority => $_getIZ(6); @$pb.TagNumber(8) - set priority($core.int v) { $_setUnsignedInt32(6, v); } + set priority($core.int v) { + $_setUnsignedInt32(6, v); + } + @$pb.TagNumber(8) $core.bool hasPriority() => $_has(6); @$pb.TagNumber(8) @@ -1929,34 +2379,46 @@ class LeaveRequest extends $pb.GeneratedMessage { return $result; } LeaveRequest._() : super(); - factory LeaveRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LeaveRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LeaveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory LeaveRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory LeaveRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LeaveRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'canReconnect') - ..e<$1.DisconnectReason>(2, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, defaultOrMaker: $1.DisconnectReason.UNKNOWN_REASON, valueOf: $1.DisconnectReason.valueOf, enumValues: $1.DisconnectReason.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..e<$1.DisconnectReason>( + 2, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, + defaultOrMaker: $1.DisconnectReason.UNKNOWN_REASON, + valueOf: $1.DisconnectReason.valueOf, + enumValues: $1.DisconnectReason.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') LeaveRequest clone() => LeaveRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - LeaveRequest copyWith(void Function(LeaveRequest) updates) => super.copyWith((message) => updates(message as LeaveRequest)) as LeaveRequest; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LeaveRequest copyWith(void Function(LeaveRequest) updates) => + super.copyWith((message) => updates(message as LeaveRequest)) + as LeaveRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static LeaveRequest create() => LeaveRequest._(); LeaveRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static LeaveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LeaveRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static LeaveRequest? _defaultInstance; /// sent when server initiates the disconnect due to server-restart @@ -1964,7 +2426,10 @@ class LeaveRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.bool get canReconnect => $_getBF(0); @$pb.TagNumber(1) - set canReconnect($core.bool v) { $_setBool(0, v); } + set canReconnect($core.bool v) { + $_setBool(0, v); + } + @$pb.TagNumber(1) $core.bool hasCanReconnect() => $_has(0); @$pb.TagNumber(1) @@ -1973,7 +2438,10 @@ class LeaveRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.DisconnectReason get reason => $_getN(1); @$pb.TagNumber(2) - set reason($1.DisconnectReason v) { setField(2, v); } + set reason($1.DisconnectReason v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasReason() => $_has(1); @$pb.TagNumber(2) @@ -1996,40 +2464,52 @@ class UpdateVideoLayers extends $pb.GeneratedMessage { return $result; } UpdateVideoLayers._() : super(); - factory UpdateVideoLayers.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateVideoLayers.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateVideoLayers', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory UpdateVideoLayers.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateVideoLayers.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateVideoLayers', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..pc<$1.VideoLayer>(2, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $1.VideoLayer.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..pc<$1.VideoLayer>(2, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, + subBuilder: $1.VideoLayer.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') UpdateVideoLayers clone() => UpdateVideoLayers()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateVideoLayers copyWith(void Function(UpdateVideoLayers) updates) => super.copyWith((message) => updates(message as UpdateVideoLayers)) as UpdateVideoLayers; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateVideoLayers copyWith(void Function(UpdateVideoLayers) updates) => + super.copyWith((message) => updates(message as UpdateVideoLayers)) + as UpdateVideoLayers; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateVideoLayers create() => UpdateVideoLayers._(); UpdateVideoLayers createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateVideoLayers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateVideoLayers getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateVideoLayers? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { $_setString(0, v); } + set trackSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -2054,40 +2534,53 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { return $result; } UpdateParticipantMetadata._() : super(); - factory UpdateParticipantMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateParticipantMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateParticipantMetadata', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory UpdateParticipantMetadata.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateParticipantMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateParticipantMetadata', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'metadata') ..aOS(2, _omitFieldNames ? '' : 'name') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - UpdateParticipantMetadata clone() => UpdateParticipantMetadata()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - UpdateParticipantMetadata copyWith(void Function(UpdateParticipantMetadata) updates) => super.copyWith((message) => updates(message as UpdateParticipantMetadata)) as UpdateParticipantMetadata; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateParticipantMetadata clone() => + UpdateParticipantMetadata()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateParticipantMetadata copyWith( + void Function(UpdateParticipantMetadata) updates) => + super.copyWith((message) => updates(message as UpdateParticipantMetadata)) + as UpdateParticipantMetadata; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateParticipantMetadata create() => UpdateParticipantMetadata._(); UpdateParticipantMetadata createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateParticipantMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateParticipantMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static UpdateParticipantMetadata? _defaultInstance; @$pb.TagNumber(1) $core.String get metadata => $_getSZ(0); @$pb.TagNumber(1) - set metadata($core.String v) { $_setString(0, v); } + set metadata($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasMetadata() => $_has(0); @$pb.TagNumber(1) @@ -2096,7 +2589,10 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) - set name($core.String v) { $_setString(1, v); } + set name($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) @@ -2122,26 +2618,31 @@ class ICEServer extends $pb.GeneratedMessage { return $result; } ICEServer._() : super(); - factory ICEServer.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ICEServer.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ICEServer', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory ICEServer.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ICEServer.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ICEServer', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'urls') ..aOS(2, _omitFieldNames ? '' : 'username') ..aOS(3, _omitFieldNames ? '' : 'credential') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ICEServer clone() => ICEServer()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ICEServer copyWith(void Function(ICEServer) updates) => super.copyWith((message) => updates(message as ICEServer)) as ICEServer; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ICEServer copyWith(void Function(ICEServer) updates) => + super.copyWith((message) => updates(message as ICEServer)) as ICEServer; $pb.BuilderInfo get info_ => _i; @@ -2150,7 +2651,8 @@ class ICEServer extends $pb.GeneratedMessage { ICEServer createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ICEServer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ICEServer getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ICEServer? _defaultInstance; @$pb.TagNumber(1) @@ -2159,7 +2661,10 @@ class ICEServer extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get username => $_getSZ(1); @$pb.TagNumber(2) - set username($core.String v) { $_setString(1, v); } + set username($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasUsername() => $_has(1); @$pb.TagNumber(2) @@ -2168,7 +2673,10 @@ class ICEServer extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.String get credential => $_getSZ(2); @$pb.TagNumber(3) - set credential($core.String v) { $_setString(2, v); } + set credential($core.String v) { + $_setString(2, v); + } + @$pb.TagNumber(3) $core.bool hasCredential() => $_has(2); @$pb.TagNumber(3) @@ -2186,33 +2694,43 @@ class SpeakersChanged extends $pb.GeneratedMessage { return $result; } SpeakersChanged._() : super(); - factory SpeakersChanged.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SpeakersChanged.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpeakersChanged', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc<$1.SpeakerInfo>(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, subBuilder: $1.SpeakerInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SpeakersChanged.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SpeakersChanged.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SpeakersChanged', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc<$1.SpeakerInfo>( + 1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, + subBuilder: $1.SpeakerInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SpeakersChanged clone() => SpeakersChanged()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SpeakersChanged copyWith(void Function(SpeakersChanged) updates) => super.copyWith((message) => updates(message as SpeakersChanged)) as SpeakersChanged; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SpeakersChanged copyWith(void Function(SpeakersChanged) updates) => + super.copyWith((message) => updates(message as SpeakersChanged)) + as SpeakersChanged; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SpeakersChanged create() => SpeakersChanged._(); SpeakersChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SpeakersChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SpeakersChanged getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SpeakersChanged? _defaultInstance; @$pb.TagNumber(1) @@ -2230,24 +2748,29 @@ class RoomUpdate extends $pb.GeneratedMessage { return $result; } RoomUpdate._() : super(); - factory RoomUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RoomUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoomUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory RoomUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RoomUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RoomUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOM<$1.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $1.Room.create) - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RoomUpdate clone() => RoomUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RoomUpdate copyWith(void Function(RoomUpdate) updates) => super.copyWith((message) => updates(message as RoomUpdate)) as RoomUpdate; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RoomUpdate copyWith(void Function(RoomUpdate) updates) => + super.copyWith((message) => updates(message as RoomUpdate)) as RoomUpdate; $pb.BuilderInfo get info_ => _i; @@ -2256,13 +2779,17 @@ class RoomUpdate extends $pb.GeneratedMessage { RoomUpdate createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RoomUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RoomUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RoomUpdate? _defaultInstance; @$pb.TagNumber(1) $1.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($1.Room v) { setField(1, v); } + set room($1.Room v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) @@ -2290,41 +2817,58 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { return $result; } ConnectionQualityInfo._() : super(); - factory ConnectionQualityInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ConnectionQualityInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectionQualityInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory ConnectionQualityInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ConnectionQualityInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConnectionQualityInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') - ..e<$1.ConnectionQuality>(2, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.ConnectionQuality.POOR, valueOf: $1.ConnectionQuality.valueOf, enumValues: $1.ConnectionQuality.values) + ..e<$1.ConnectionQuality>( + 2, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, + defaultOrMaker: $1.ConnectionQuality.POOR, + valueOf: $1.ConnectionQuality.valueOf, + enumValues: $1.ConnectionQuality.values) ..a<$core.double>(3, _omitFieldNames ? '' : 'score', $pb.PbFieldType.OF) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ConnectionQualityInfo clone() => ConnectionQualityInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectionQualityInfo copyWith(void Function(ConnectionQualityInfo) updates) => super.copyWith((message) => updates(message as ConnectionQualityInfo)) as ConnectionQualityInfo; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectionQualityInfo clone() => + ConnectionQualityInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectionQualityInfo copyWith( + void Function(ConnectionQualityInfo) updates) => + super.copyWith((message) => updates(message as ConnectionQualityInfo)) + as ConnectionQualityInfo; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ConnectionQualityInfo create() => ConnectionQualityInfo._(); ConnectionQualityInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectionQualityInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConnectionQualityInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ConnectionQualityInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -2333,7 +2877,10 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.ConnectionQuality get quality => $_getN(1); @$pb.TagNumber(2) - set quality($1.ConnectionQuality v) { setField(2, v); } + set quality($1.ConnectionQuality v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasQuality() => $_has(1); @$pb.TagNumber(2) @@ -2342,7 +2889,10 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.double get score => $_getN(2); @$pb.TagNumber(3) - set score($core.double v) { $_setFloat(2, v); } + set score($core.double v) { + $_setFloat(2, v); + } + @$pb.TagNumber(3) $core.bool hasScore() => $_has(2); @$pb.TagNumber(3) @@ -2360,33 +2910,45 @@ class ConnectionQualityUpdate extends $pb.GeneratedMessage { return $result; } ConnectionQualityUpdate._() : super(); - factory ConnectionQualityUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ConnectionQualityUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectionQualityUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'updates', $pb.PbFieldType.PM, subBuilder: ConnectionQualityInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ConnectionQualityUpdate clone() => ConnectionQualityUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - ConnectionQualityUpdate copyWith(void Function(ConnectionQualityUpdate) updates) => super.copyWith((message) => updates(message as ConnectionQualityUpdate)) as ConnectionQualityUpdate; + factory ConnectionQualityUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ConnectionQualityUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConnectionQualityUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'updates', $pb.PbFieldType.PM, + subBuilder: ConnectionQualityInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConnectionQualityUpdate clone() => + ConnectionQualityUpdate()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConnectionQualityUpdate copyWith( + void Function(ConnectionQualityUpdate) updates) => + super.copyWith((message) => updates(message as ConnectionQualityUpdate)) + as ConnectionQualityUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ConnectionQualityUpdate create() => ConnectionQualityUpdate._(); ConnectionQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ConnectionQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConnectionQualityUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static ConnectionQualityUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -2412,41 +2974,55 @@ class StreamStateInfo extends $pb.GeneratedMessage { return $result; } StreamStateInfo._() : super(); - factory StreamStateInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory StreamStateInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StreamStateInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory StreamStateInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory StreamStateInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StreamStateInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') ..aOS(2, _omitFieldNames ? '' : 'trackSid') - ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: StreamState.ACTIVE, valueOf: StreamState.valueOf, enumValues: StreamState.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: StreamState.ACTIVE, + valueOf: StreamState.valueOf, + enumValues: StreamState.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') StreamStateInfo clone() => StreamStateInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StreamStateInfo copyWith(void Function(StreamStateInfo) updates) => super.copyWith((message) => updates(message as StreamStateInfo)) as StreamStateInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StreamStateInfo copyWith(void Function(StreamStateInfo) updates) => + super.copyWith((message) => updates(message as StreamStateInfo)) + as StreamStateInfo; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static StreamStateInfo create() => StreamStateInfo._(); StreamStateInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StreamStateInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StreamStateInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StreamStateInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -2455,7 +3031,10 @@ class StreamStateInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get trackSid => $_getSZ(1); @$pb.TagNumber(2) - set trackSid($core.String v) { $_setString(1, v); } + set trackSid($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTrackSid() => $_has(1); @$pb.TagNumber(2) @@ -2464,7 +3043,10 @@ class StreamStateInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) StreamState get state => $_getN(2); @$pb.TagNumber(3) - set state(StreamState v) { setField(3, v); } + set state(StreamState v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasState() => $_has(2); @$pb.TagNumber(3) @@ -2482,33 +3064,43 @@ class StreamStateUpdate extends $pb.GeneratedMessage { return $result; } StreamStateUpdate._() : super(); - factory StreamStateUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory StreamStateUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StreamStateUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'streamStates', $pb.PbFieldType.PM, subBuilder: StreamStateInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory StreamStateUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory StreamStateUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StreamStateUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'streamStates', $pb.PbFieldType.PM, + subBuilder: StreamStateInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') StreamStateUpdate clone() => StreamStateUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - StreamStateUpdate copyWith(void Function(StreamStateUpdate) updates) => super.copyWith((message) => updates(message as StreamStateUpdate)) as StreamStateUpdate; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + StreamStateUpdate copyWith(void Function(StreamStateUpdate) updates) => + super.copyWith((message) => updates(message as StreamStateUpdate)) + as StreamStateUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static StreamStateUpdate create() => StreamStateUpdate._(); StreamStateUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static StreamStateUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static StreamStateUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static StreamStateUpdate? _defaultInstance; @$pb.TagNumber(1) @@ -2530,40 +3122,55 @@ class SubscribedQuality extends $pb.GeneratedMessage { return $result; } SubscribedQuality._() : super(); - factory SubscribedQuality.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscribedQuality.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedQuality', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e<$1.VideoQuality>(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, defaultOrMaker: $1.VideoQuality.LOW, valueOf: $1.VideoQuality.valueOf, enumValues: $1.VideoQuality.values) + factory SubscribedQuality.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscribedQuality.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscribedQuality', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..e<$1.VideoQuality>( + 1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, + defaultOrMaker: $1.VideoQuality.LOW, + valueOf: $1.VideoQuality.valueOf, + enumValues: $1.VideoQuality.values) ..aOB(2, _omitFieldNames ? '' : 'enabled') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribedQuality clone() => SubscribedQuality()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedQuality copyWith(void Function(SubscribedQuality) updates) => super.copyWith((message) => updates(message as SubscribedQuality)) as SubscribedQuality; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedQuality copyWith(void Function(SubscribedQuality) updates) => + super.copyWith((message) => updates(message as SubscribedQuality)) + as SubscribedQuality; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscribedQuality create() => SubscribedQuality._(); SubscribedQuality createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedQuality getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedQuality getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscribedQuality? _defaultInstance; @$pb.TagNumber(1) $1.VideoQuality get quality => $_getN(0); @$pb.TagNumber(1) - set quality($1.VideoQuality v) { setField(1, v); } + set quality($1.VideoQuality v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasQuality() => $_has(0); @$pb.TagNumber(1) @@ -2572,7 +3179,10 @@ class SubscribedQuality extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get enabled => $_getBF(1); @$pb.TagNumber(2) - set enabled($core.bool v) { $_setBool(1, v); } + set enabled($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasEnabled() => $_has(1); @$pb.TagNumber(2) @@ -2594,40 +3204,53 @@ class SubscribedCodec extends $pb.GeneratedMessage { return $result; } SubscribedCodec._() : super(); - factory SubscribedCodec.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscribedCodec.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedCodec', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SubscribedCodec.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscribedCodec.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscribedCodec', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'codec') - ..pc(2, _omitFieldNames ? '' : 'qualities', $pb.PbFieldType.PM, subBuilder: SubscribedQuality.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..pc( + 2, _omitFieldNames ? '' : 'qualities', $pb.PbFieldType.PM, + subBuilder: SubscribedQuality.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SubscribedCodec clone() => SubscribedCodec()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedCodec copyWith(void Function(SubscribedCodec) updates) => super.copyWith((message) => updates(message as SubscribedCodec)) as SubscribedCodec; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedCodec copyWith(void Function(SubscribedCodec) updates) => + super.copyWith((message) => updates(message as SubscribedCodec)) + as SubscribedCodec; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscribedCodec create() => SubscribedCodec._(); SubscribedCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedCodec getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscribedCodec? _defaultInstance; @$pb.TagNumber(1) $core.String get codec => $_getSZ(0); @$pb.TagNumber(1) - set codec($core.String v) { $_setString(0, v); } + set codec($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasCodec() => $_has(0); @$pb.TagNumber(1) @@ -2656,41 +3279,58 @@ class SubscribedQualityUpdate extends $pb.GeneratedMessage { return $result; } SubscribedQualityUpdate._() : super(); - factory SubscribedQualityUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscribedQualityUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedQualityUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SubscribedQualityUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscribedQualityUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscribedQualityUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..pc(2, _omitFieldNames ? '' : 'subscribedQualities', $pb.PbFieldType.PM, subBuilder: SubscribedQuality.create) - ..pc(3, _omitFieldNames ? '' : 'subscribedCodecs', $pb.PbFieldType.PM, subBuilder: SubscribedCodec.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscribedQualityUpdate clone() => SubscribedQualityUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscribedQualityUpdate copyWith(void Function(SubscribedQualityUpdate) updates) => super.copyWith((message) => updates(message as SubscribedQualityUpdate)) as SubscribedQualityUpdate; + ..pc( + 2, _omitFieldNames ? '' : 'subscribedQualities', $pb.PbFieldType.PM, + subBuilder: SubscribedQuality.create) + ..pc( + 3, _omitFieldNames ? '' : 'subscribedCodecs', $pb.PbFieldType.PM, + subBuilder: SubscribedCodec.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscribedQualityUpdate clone() => + SubscribedQualityUpdate()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscribedQualityUpdate copyWith( + void Function(SubscribedQualityUpdate) updates) => + super.copyWith((message) => updates(message as SubscribedQualityUpdate)) + as SubscribedQualityUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscribedQualityUpdate create() => SubscribedQualityUpdate._(); SubscribedQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscribedQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscribedQualityUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscribedQualityUpdate? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { $_setString(0, v); } + set trackSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -2726,43 +3366,54 @@ class TrackPermission extends $pb.GeneratedMessage { return $result; } TrackPermission._() : super(); - factory TrackPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory TrackPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory TrackPermission.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TrackPermission.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrackPermission', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') ..aOB(2, _omitFieldNames ? '' : 'allTracks') ..pPS(3, _omitFieldNames ? '' : 'trackSids') ..aOS(4, _omitFieldNames ? '' : 'participantIdentity') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') TrackPermission clone() => TrackPermission()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TrackPermission copyWith(void Function(TrackPermission) updates) => super.copyWith((message) => updates(message as TrackPermission)) as TrackPermission; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TrackPermission copyWith(void Function(TrackPermission) updates) => + super.copyWith((message) => updates(message as TrackPermission)) + as TrackPermission; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static TrackPermission create() => TrackPermission._(); TrackPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static TrackPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TrackPermission getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static TrackPermission? _defaultInstance; /// permission could be granted either by participant sid or identity @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -2771,7 +3422,10 @@ class TrackPermission extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get allTracks => $_getBF(1); @$pb.TagNumber(2) - set allTracks($core.bool v) { $_setBool(1, v); } + set allTracks($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasAllTracks() => $_has(1); @$pb.TagNumber(2) @@ -2783,7 +3437,10 @@ class TrackPermission extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.String get participantIdentity => $_getSZ(3); @$pb.TagNumber(4) - set participantIdentity($core.String v) { $_setString(3, v); } + set participantIdentity($core.String v) { + $_setString(3, v); + } + @$pb.TagNumber(4) $core.bool hasParticipantIdentity() => $_has(3); @$pb.TagNumber(4) @@ -2805,40 +3462,55 @@ class SubscriptionPermission extends $pb.GeneratedMessage { return $result; } SubscriptionPermission._() : super(); - factory SubscriptionPermission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscriptionPermission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SubscriptionPermission.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscriptionPermission.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscriptionPermission', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'allParticipants') - ..pc(2, _omitFieldNames ? '' : 'trackPermissions', $pb.PbFieldType.PM, subBuilder: TrackPermission.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscriptionPermission clone() => SubscriptionPermission()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscriptionPermission copyWith(void Function(SubscriptionPermission) updates) => super.copyWith((message) => updates(message as SubscriptionPermission)) as SubscriptionPermission; + ..pc( + 2, _omitFieldNames ? '' : 'trackPermissions', $pb.PbFieldType.PM, + subBuilder: TrackPermission.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionPermission clone() => + SubscriptionPermission()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionPermission copyWith( + void Function(SubscriptionPermission) updates) => + super.copyWith((message) => updates(message as SubscriptionPermission)) + as SubscriptionPermission; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscriptionPermission create() => SubscriptionPermission._(); SubscriptionPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscriptionPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionPermission getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscriptionPermission? _defaultInstance; @$pb.TagNumber(1) $core.bool get allParticipants => $_getBF(0); @$pb.TagNumber(1) - set allParticipants($core.bool v) { $_setBool(0, v); } + set allParticipants($core.bool v) { + $_setBool(0, v); + } + @$pb.TagNumber(1) $core.bool hasAllParticipants() => $_has(0); @$pb.TagNumber(1) @@ -2867,41 +3539,56 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { return $result; } SubscriptionPermissionUpdate._() : super(); - factory SubscriptionPermissionUpdate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscriptionPermissionUpdate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionPermissionUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SubscriptionPermissionUpdate.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscriptionPermissionUpdate.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscriptionPermissionUpdate', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') ..aOS(2, _omitFieldNames ? '' : 'trackSid') ..aOB(3, _omitFieldNames ? '' : 'allowed') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscriptionPermissionUpdate clone() => SubscriptionPermissionUpdate()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscriptionPermissionUpdate copyWith(void Function(SubscriptionPermissionUpdate) updates) => super.copyWith((message) => updates(message as SubscriptionPermissionUpdate)) as SubscriptionPermissionUpdate; + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionPermissionUpdate clone() => + SubscriptionPermissionUpdate()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionPermissionUpdate copyWith( + void Function(SubscriptionPermissionUpdate) updates) => + super.copyWith( + (message) => updates(message as SubscriptionPermissionUpdate)) + as SubscriptionPermissionUpdate; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static SubscriptionPermissionUpdate create() => SubscriptionPermissionUpdate._(); + static SubscriptionPermissionUpdate create() => + SubscriptionPermissionUpdate._(); SubscriptionPermissionUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscriptionPermissionUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionPermissionUpdate getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscriptionPermissionUpdate? _defaultInstance; @$pb.TagNumber(1) $core.String get participantSid => $_getSZ(0); @$pb.TagNumber(1) - set participantSid($core.String v) { $_setString(0, v); } + set participantSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasParticipantSid() => $_has(0); @$pb.TagNumber(1) @@ -2910,7 +3597,10 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get trackSid => $_getSZ(1); @$pb.TagNumber(2) - set trackSid($core.String v) { $_setString(1, v); } + set trackSid($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasTrackSid() => $_has(1); @$pb.TagNumber(2) @@ -2919,7 +3609,10 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get allowed => $_getBF(2); @$pb.TagNumber(3) - set allowed($core.bool v) { $_setBool(2, v); } + set allowed($core.bool v) { + $_setBool(2, v); + } + @$pb.TagNumber(3) $core.bool hasAllowed() => $_has(2); @$pb.TagNumber(3) @@ -2953,28 +3646,40 @@ class SyncState extends $pb.GeneratedMessage { return $result; } SyncState._() : super(); - factory SyncState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SyncState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SyncState', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) - ..aOM(2, _omitFieldNames ? '' : 'subscription', subBuilder: UpdateSubscription.create) - ..pc(3, _omitFieldNames ? '' : 'publishTracks', $pb.PbFieldType.PM, subBuilder: TrackPublishedResponse.create) - ..pc(4, _omitFieldNames ? '' : 'dataChannels', $pb.PbFieldType.PM, subBuilder: DataChannelInfo.create) - ..aOM(5, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SyncState.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SyncState.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SyncState', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'answer', + subBuilder: SessionDescription.create) + ..aOM(2, _omitFieldNames ? '' : 'subscription', + subBuilder: UpdateSubscription.create) + ..pc( + 3, _omitFieldNames ? '' : 'publishTracks', $pb.PbFieldType.PM, + subBuilder: TrackPublishedResponse.create) + ..pc( + 4, _omitFieldNames ? '' : 'dataChannels', $pb.PbFieldType.PM, + subBuilder: DataChannelInfo.create) + ..aOM(5, _omitFieldNames ? '' : 'offer', + subBuilder: SessionDescription.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SyncState clone() => SyncState()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SyncState copyWith(void Function(SyncState) updates) => super.copyWith((message) => updates(message as SyncState)) as SyncState; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SyncState copyWith(void Function(SyncState) updates) => + super.copyWith((message) => updates(message as SyncState)) as SyncState; $pb.BuilderInfo get info_ => _i; @@ -2983,14 +3688,18 @@ class SyncState extends $pb.GeneratedMessage { SyncState createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SyncState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SyncState getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SyncState? _defaultInstance; /// last subscribe answer before reconnecting @$pb.TagNumber(1) SessionDescription get answer => $_getN(0); @$pb.TagNumber(1) - set answer(SessionDescription v) { setField(1, v); } + set answer(SessionDescription v) { + setField(1, v); + } + @$pb.TagNumber(1) $core.bool hasAnswer() => $_has(0); @$pb.TagNumber(1) @@ -3001,7 +3710,10 @@ class SyncState extends $pb.GeneratedMessage { @$pb.TagNumber(2) UpdateSubscription get subscription => $_getN(1); @$pb.TagNumber(2) - set subscription(UpdateSubscription v) { setField(2, v); } + set subscription(UpdateSubscription v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasSubscription() => $_has(1); @$pb.TagNumber(2) @@ -3019,7 +3731,10 @@ class SyncState extends $pb.GeneratedMessage { @$pb.TagNumber(5) SessionDescription get offer => $_getN(4); @$pb.TagNumber(5) - set offer(SessionDescription v) { setField(5, v); } + set offer(SessionDescription v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasOffer() => $_has(4); @$pb.TagNumber(5) @@ -3047,41 +3762,55 @@ class DataChannelInfo extends $pb.GeneratedMessage { return $result; } DataChannelInfo._() : super(); - factory DataChannelInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DataChannelInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataChannelInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory DataChannelInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DataChannelInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DataChannelInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'label') ..a<$core.int>(2, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) - ..e(3, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, defaultOrMaker: SignalTarget.PUBLISHER, valueOf: SignalTarget.valueOf, enumValues: SignalTarget.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + ..e(3, _omitFieldNames ? '' : 'target', $pb.PbFieldType.OE, + defaultOrMaker: SignalTarget.PUBLISHER, + valueOf: SignalTarget.valueOf, + enumValues: SignalTarget.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') DataChannelInfo clone() => DataChannelInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DataChannelInfo copyWith(void Function(DataChannelInfo) updates) => super.copyWith((message) => updates(message as DataChannelInfo)) as DataChannelInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DataChannelInfo copyWith(void Function(DataChannelInfo) updates) => + super.copyWith((message) => updates(message as DataChannelInfo)) + as DataChannelInfo; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DataChannelInfo create() => DataChannelInfo._(); DataChannelInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DataChannelInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataChannelInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static DataChannelInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get label => $_getSZ(0); @$pb.TagNumber(1) - set label($core.String v) { $_setString(0, v); } + set label($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasLabel() => $_has(0); @$pb.TagNumber(1) @@ -3090,7 +3819,10 @@ class DataChannelInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.int get id => $_getIZ(1); @$pb.TagNumber(2) - set id($core.int v) { $_setUnsignedInt32(1, v); } + set id($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasId() => $_has(1); @$pb.TagNumber(2) @@ -3099,7 +3831,10 @@ class DataChannelInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) SignalTarget get target => $_getN(2); @$pb.TagNumber(3) - set target(SignalTarget v) { setField(3, v); } + set target(SignalTarget v) { + setField(3, v); + } + @$pb.TagNumber(3) $core.bool hasTarget() => $_has(2); @$pb.TagNumber(3) @@ -3107,12 +3842,12 @@ class DataChannelInfo extends $pb.GeneratedMessage { } enum SimulateScenario_Scenario { - speakerUpdate, - nodeFailure, - migration, - serverLeave, - switchCandidateProtocol, - subscriberBandwidth, + speakerUpdate, + nodeFailure, + migration, + serverLeave, + switchCandidateProtocol, + subscriberBandwidth, notSet } @@ -3147,58 +3882,76 @@ class SimulateScenario extends $pb.GeneratedMessage { return $result; } SimulateScenario._() : super(); - factory SimulateScenario.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SimulateScenario.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SimulateScenario_Scenario> _SimulateScenario_ScenarioByTag = { - 1 : SimulateScenario_Scenario.speakerUpdate, - 2 : SimulateScenario_Scenario.nodeFailure, - 3 : SimulateScenario_Scenario.migration, - 4 : SimulateScenario_Scenario.serverLeave, - 5 : SimulateScenario_Scenario.switchCandidateProtocol, - 6 : SimulateScenario_Scenario.subscriberBandwidth, - 0 : SimulateScenario_Scenario.notSet + factory SimulateScenario.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SimulateScenario.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, SimulateScenario_Scenario> + _SimulateScenario_ScenarioByTag = { + 1: SimulateScenario_Scenario.speakerUpdate, + 2: SimulateScenario_Scenario.nodeFailure, + 3: SimulateScenario_Scenario.migration, + 4: SimulateScenario_Scenario.serverLeave, + 5: SimulateScenario_Scenario.switchCandidateProtocol, + 6: SimulateScenario_Scenario.subscriberBandwidth, + 0: SimulateScenario_Scenario.notSet }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SimulateScenario', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SimulateScenario', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..oo(0, [1, 2, 3, 4, 5, 6]) - ..a<$core.int>(1, _omitFieldNames ? '' : 'speakerUpdate', $pb.PbFieldType.O3) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'speakerUpdate', $pb.PbFieldType.O3) ..aOB(2, _omitFieldNames ? '' : 'nodeFailure') ..aOB(3, _omitFieldNames ? '' : 'migration') ..aOB(4, _omitFieldNames ? '' : 'serverLeave') - ..e(5, _omitFieldNames ? '' : 'switchCandidateProtocol', $pb.PbFieldType.OE, defaultOrMaker: CandidateProtocol.UDP, valueOf: CandidateProtocol.valueOf, enumValues: CandidateProtocol.values) + ..e( + 5, _omitFieldNames ? '' : 'switchCandidateProtocol', $pb.PbFieldType.OE, + defaultOrMaker: CandidateProtocol.UDP, + valueOf: CandidateProtocol.valueOf, + enumValues: CandidateProtocol.values) ..aInt64(6, _omitFieldNames ? '' : 'subscriberBandwidth') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') SimulateScenario clone() => SimulateScenario()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SimulateScenario copyWith(void Function(SimulateScenario) updates) => super.copyWith((message) => updates(message as SimulateScenario)) as SimulateScenario; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SimulateScenario copyWith(void Function(SimulateScenario) updates) => + super.copyWith((message) => updates(message as SimulateScenario)) + as SimulateScenario; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SimulateScenario create() => SimulateScenario._(); SimulateScenario createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SimulateScenario getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SimulateScenario getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SimulateScenario? _defaultInstance; - SimulateScenario_Scenario whichScenario() => _SimulateScenario_ScenarioByTag[$_whichOneof(0)]!; + SimulateScenario_Scenario whichScenario() => + _SimulateScenario_ScenarioByTag[$_whichOneof(0)]!; void clearScenario() => clearField($_whichOneof(0)); /// simulate N seconds of speaker activity @$pb.TagNumber(1) $core.int get speakerUpdate => $_getIZ(0); @$pb.TagNumber(1) - set speakerUpdate($core.int v) { $_setSignedInt32(0, v); } + set speakerUpdate($core.int v) { + $_setSignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasSpeakerUpdate() => $_has(0); @$pb.TagNumber(1) @@ -3208,7 +3961,10 @@ class SimulateScenario extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool get nodeFailure => $_getBF(1); @$pb.TagNumber(2) - set nodeFailure($core.bool v) { $_setBool(1, v); } + set nodeFailure($core.bool v) { + $_setBool(1, v); + } + @$pb.TagNumber(2) $core.bool hasNodeFailure() => $_has(1); @$pb.TagNumber(2) @@ -3218,7 +3974,10 @@ class SimulateScenario extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool get migration => $_getBF(2); @$pb.TagNumber(3) - set migration($core.bool v) { $_setBool(2, v); } + set migration($core.bool v) { + $_setBool(2, v); + } + @$pb.TagNumber(3) $core.bool hasMigration() => $_has(2); @$pb.TagNumber(3) @@ -3228,7 +3987,10 @@ class SimulateScenario extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool get serverLeave => $_getBF(3); @$pb.TagNumber(4) - set serverLeave($core.bool v) { $_setBool(3, v); } + set serverLeave($core.bool v) { + $_setBool(3, v); + } + @$pb.TagNumber(4) $core.bool hasServerLeave() => $_has(3); @$pb.TagNumber(4) @@ -3238,7 +4000,10 @@ class SimulateScenario extends $pb.GeneratedMessage { @$pb.TagNumber(5) CandidateProtocol get switchCandidateProtocol => $_getN(4); @$pb.TagNumber(5) - set switchCandidateProtocol(CandidateProtocol v) { setField(5, v); } + set switchCandidateProtocol(CandidateProtocol v) { + setField(5, v); + } + @$pb.TagNumber(5) $core.bool hasSwitchCandidateProtocol() => $_has(4); @$pb.TagNumber(5) @@ -3249,7 +4014,10 @@ class SimulateScenario extends $pb.GeneratedMessage { @$pb.TagNumber(6) $fixnum.Int64 get subscriberBandwidth => $_getI64(5); @$pb.TagNumber(6) - set subscriberBandwidth($fixnum.Int64 v) { $_setInt64(5, v); } + set subscriberBandwidth($fixnum.Int64 v) { + $_setInt64(5, v); + } + @$pb.TagNumber(6) $core.bool hasSubscriberBandwidth() => $_has(5); @$pb.TagNumber(6) @@ -3271,25 +4039,30 @@ class Ping extends $pb.GeneratedMessage { return $result; } Ping._() : super(); - factory Ping.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Ping.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Ping', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory Ping.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Ping.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Ping', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'timestamp') ..aInt64(2, _omitFieldNames ? '' : 'rtt') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Ping clone() => Ping()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Ping copyWith(void Function(Ping) updates) => super.copyWith((message) => updates(message as Ping)) as Ping; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Ping copyWith(void Function(Ping) updates) => + super.copyWith((message) => updates(message as Ping)) as Ping; $pb.BuilderInfo get info_ => _i; @@ -3298,13 +4071,17 @@ class Ping extends $pb.GeneratedMessage { Ping createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Ping getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Ping getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Ping? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get timestamp => $_getI64(0); @$pb.TagNumber(1) - set timestamp($fixnum.Int64 v) { $_setInt64(0, v); } + set timestamp($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasTimestamp() => $_has(0); @$pb.TagNumber(1) @@ -3314,7 +4091,10 @@ class Ping extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get rtt => $_getI64(1); @$pb.TagNumber(2) - set rtt($fixnum.Int64 v) { $_setInt64(1, v); } + set rtt($fixnum.Int64 v) { + $_setInt64(1, v); + } + @$pb.TagNumber(2) $core.bool hasRtt() => $_has(1); @$pb.TagNumber(2) @@ -3336,25 +4116,30 @@ class Pong extends $pb.GeneratedMessage { return $result; } Pong._() : super(); - factory Pong.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Pong.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Pong', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory Pong.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Pong.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Pong', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'lastPingTimestamp') ..aInt64(2, _omitFieldNames ? '' : 'timestamp') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') Pong clone() => Pong()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Pong copyWith(void Function(Pong) updates) => super.copyWith((message) => updates(message as Pong)) as Pong; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Pong copyWith(void Function(Pong) updates) => + super.copyWith((message) => updates(message as Pong)) as Pong; $pb.BuilderInfo get info_ => _i; @@ -3363,14 +4148,18 @@ class Pong extends $pb.GeneratedMessage { Pong createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Pong getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Pong getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Pong? _defaultInstance; /// timestamp field of last received ping request @$pb.TagNumber(1) $fixnum.Int64 get lastPingTimestamp => $_getI64(0); @$pb.TagNumber(1) - set lastPingTimestamp($fixnum.Int64 v) { $_setInt64(0, v); } + set lastPingTimestamp($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasLastPingTimestamp() => $_has(0); @$pb.TagNumber(1) @@ -3379,7 +4168,10 @@ class Pong extends $pb.GeneratedMessage { @$pb.TagNumber(2) $fixnum.Int64 get timestamp => $_getI64(1); @$pb.TagNumber(2) - set timestamp($fixnum.Int64 v) { $_setInt64(1, v); } + set timestamp($fixnum.Int64 v) { + $_setInt64(1, v); + } + @$pb.TagNumber(2) $core.bool hasTimestamp() => $_has(1); @$pb.TagNumber(2) @@ -3397,33 +4189,42 @@ class RegionSettings extends $pb.GeneratedMessage { return $result; } RegionSettings._() : super(); - factory RegionSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RegionSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegionSettings', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc(1, _omitFieldNames ? '' : 'regions', $pb.PbFieldType.PM, subBuilder: RegionInfo.create) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory RegionSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RegionSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RegionSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'regions', $pb.PbFieldType.PM, + subBuilder: RegionInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RegionSettings clone() => RegionSettings()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RegionSettings copyWith(void Function(RegionSettings) updates) => super.copyWith((message) => updates(message as RegionSettings)) as RegionSettings; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RegionSettings copyWith(void Function(RegionSettings) updates) => + super.copyWith((message) => updates(message as RegionSettings)) + as RegionSettings; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RegionSettings create() => RegionSettings._(); RegionSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RegionSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RegionSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RegionSettings? _defaultInstance; @$pb.TagNumber(1) @@ -3449,26 +4250,31 @@ class RegionInfo extends $pb.GeneratedMessage { return $result; } RegionInfo._() : super(); - factory RegionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RegionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory RegionInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RegionInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RegionInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'region') ..aOS(2, _omitFieldNames ? '' : 'url') ..aInt64(3, _omitFieldNames ? '' : 'distance') - ..hasRequiredFields = false - ; + ..hasRequiredFields = false; - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') RegionInfo clone() => RegionInfo()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - RegionInfo copyWith(void Function(RegionInfo) updates) => super.copyWith((message) => updates(message as RegionInfo)) as RegionInfo; + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RegionInfo copyWith(void Function(RegionInfo) updates) => + super.copyWith((message) => updates(message as RegionInfo)) as RegionInfo; $pb.BuilderInfo get info_ => _i; @@ -3477,13 +4283,17 @@ class RegionInfo extends $pb.GeneratedMessage { RegionInfo createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static RegionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RegionInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static RegionInfo? _defaultInstance; @$pb.TagNumber(1) $core.String get region => $_getSZ(0); @$pb.TagNumber(1) - set region($core.String v) { $_setString(0, v); } + set region($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasRegion() => $_has(0); @$pb.TagNumber(1) @@ -3492,7 +4302,10 @@ class RegionInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.String get url => $_getSZ(1); @$pb.TagNumber(2) - set url($core.String v) { $_setString(1, v); } + set url($core.String v) { + $_setString(1, v); + } + @$pb.TagNumber(2) $core.bool hasUrl() => $_has(1); @$pb.TagNumber(2) @@ -3501,7 +4314,10 @@ class RegionInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) $fixnum.Int64 get distance => $_getI64(2); @$pb.TagNumber(3) - set distance($fixnum.Int64 v) { $_setInt64(2, v); } + set distance($fixnum.Int64 v) { + $_setInt64(2, v); + } + @$pb.TagNumber(3) $core.bool hasDistance() => $_has(2); @$pb.TagNumber(3) @@ -3523,40 +4339,56 @@ class SubscriptionResponse extends $pb.GeneratedMessage { return $result; } SubscriptionResponse._() : super(); - factory SubscriptionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory SubscriptionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + factory SubscriptionResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SubscriptionResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubscriptionResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..e<$1.SubscriptionError>(2, _omitFieldNames ? '' : 'err', $pb.PbFieldType.OE, defaultOrMaker: $1.SubscriptionError.SE_UNKNOWN, valueOf: $1.SubscriptionError.valueOf, enumValues: $1.SubscriptionError.values) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - SubscriptionResponse clone() => SubscriptionResponse()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - SubscriptionResponse copyWith(void Function(SubscriptionResponse) updates) => super.copyWith((message) => updates(message as SubscriptionResponse)) as SubscriptionResponse; + ..e<$1.SubscriptionError>( + 2, _omitFieldNames ? '' : 'err', $pb.PbFieldType.OE, + defaultOrMaker: $1.SubscriptionError.SE_UNKNOWN, + valueOf: $1.SubscriptionError.valueOf, + enumValues: $1.SubscriptionError.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SubscriptionResponse clone() => + SubscriptionResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SubscriptionResponse copyWith(void Function(SubscriptionResponse) updates) => + super.copyWith((message) => updates(message as SubscriptionResponse)) + as SubscriptionResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SubscriptionResponse create() => SubscriptionResponse._(); SubscriptionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static SubscriptionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static SubscriptionResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); static SubscriptionResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get trackSid => $_getSZ(0); @$pb.TagNumber(1) - set trackSid($core.String v) { $_setString(0, v); } + set trackSid($core.String v) { + $_setString(0, v); + } + @$pb.TagNumber(1) $core.bool hasTrackSid() => $_has(0); @$pb.TagNumber(1) @@ -3565,13 +4397,16 @@ class SubscriptionResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) $1.SubscriptionError get err => $_getN(1); @$pb.TagNumber(2) - set err($1.SubscriptionError v) { setField(2, v); } + set err($1.SubscriptionError v) { + setField(2, v); + } + @$pb.TagNumber(2) $core.bool hasErr() => $_has(1); @$pb.TagNumber(2) void clearErr() => clearField(2); } - const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/livekit_rtc.pbenum.dart b/lib/src/proto/livekit_rtc.pbenum.dart index 3f83316f..691acb38 100644 --- a/lib/src/proto/livekit_rtc.pbenum.dart +++ b/lib/src/proto/livekit_rtc.pbenum.dart @@ -14,51 +14,60 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class SignalTarget extends $pb.ProtobufEnum { - static const SignalTarget PUBLISHER = SignalTarget._(0, _omitEnumNames ? '' : 'PUBLISHER'); - static const SignalTarget SUBSCRIBER = SignalTarget._(1, _omitEnumNames ? '' : 'SUBSCRIBER'); + static const SignalTarget PUBLISHER = + SignalTarget._(0, _omitEnumNames ? '' : 'PUBLISHER'); + static const SignalTarget SUBSCRIBER = + SignalTarget._(1, _omitEnumNames ? '' : 'SUBSCRIBER'); - static const $core.List values = [ + static const $core.List values = [ PUBLISHER, SUBSCRIBER, ]; - static final $core.Map<$core.int, SignalTarget> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, SignalTarget> _byValue = + $pb.ProtobufEnum.initByValue(values); static SignalTarget? valueOf($core.int value) => _byValue[value]; const SignalTarget._($core.int v, $core.String n) : super(v, n); } class StreamState extends $pb.ProtobufEnum { - static const StreamState ACTIVE = StreamState._(0, _omitEnumNames ? '' : 'ACTIVE'); - static const StreamState PAUSED = StreamState._(1, _omitEnumNames ? '' : 'PAUSED'); + static const StreamState ACTIVE = + StreamState._(0, _omitEnumNames ? '' : 'ACTIVE'); + static const StreamState PAUSED = + StreamState._(1, _omitEnumNames ? '' : 'PAUSED'); - static const $core.List values = [ + static const $core.List values = [ ACTIVE, PAUSED, ]; - static final $core.Map<$core.int, StreamState> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, StreamState> _byValue = + $pb.ProtobufEnum.initByValue(values); static StreamState? valueOf($core.int value) => _byValue[value]; const StreamState._($core.int v, $core.String n) : super(v, n); } class CandidateProtocol extends $pb.ProtobufEnum { - static const CandidateProtocol UDP = CandidateProtocol._(0, _omitEnumNames ? '' : 'UDP'); - static const CandidateProtocol TCP = CandidateProtocol._(1, _omitEnumNames ? '' : 'TCP'); - static const CandidateProtocol TLS = CandidateProtocol._(2, _omitEnumNames ? '' : 'TLS'); - - static const $core.List values = [ + static const CandidateProtocol UDP = + CandidateProtocol._(0, _omitEnumNames ? '' : 'UDP'); + static const CandidateProtocol TCP = + CandidateProtocol._(1, _omitEnumNames ? '' : 'TCP'); + static const CandidateProtocol TLS = + CandidateProtocol._(2, _omitEnumNames ? '' : 'TLS'); + + static const $core.List values = [ UDP, TCP, TLS, ]; - static final $core.Map<$core.int, CandidateProtocol> _byValue = $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, CandidateProtocol> _byValue = + $pb.ProtobufEnum.initByValue(values); static CandidateProtocol? valueOf($core.int value) => _byValue[value]; const CandidateProtocol._($core.int v, $core.String n) : super(v, n); } - const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/src/proto/livekit_rtc.pbjson.dart b/lib/src/proto/livekit_rtc.pbjson.dart index cb64e263..0588bf4e 100644 --- a/lib/src/proto/livekit_rtc.pbjson.dart +++ b/lib/src/proto/livekit_rtc.pbjson.dart @@ -36,8 +36,8 @@ const StreamState$json = { }; /// Descriptor for `StreamState`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List streamStateDescriptor = $convert.base64Decode( - 'CgtTdHJlYW1TdGF0ZRIKCgZBQ1RJVkUQABIKCgZQQVVTRUQQAQ=='); +final $typed_data.Uint8List streamStateDescriptor = $convert + .base64Decode('CgtTdHJlYW1TdGF0ZRIKCgZBQ1RJVkUQABIKCgZQQVVTRUQQAQ=='); @$core.Deprecated('Use candidateProtocolDescriptor instead') const CandidateProtocol$json = { @@ -57,21 +57,133 @@ final $typed_data.Uint8List candidateProtocolDescriptor = $convert.base64Decode( const SignalRequest$json = { '1': 'SignalRequest', '2': [ - {'1': 'offer', '3': 1, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'offer'}, - {'1': 'answer', '3': 2, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'answer'}, - {'1': 'trickle', '3': 3, '4': 1, '5': 11, '6': '.livekit.TrickleRequest', '9': 0, '10': 'trickle'}, - {'1': 'add_track', '3': 4, '4': 1, '5': 11, '6': '.livekit.AddTrackRequest', '9': 0, '10': 'addTrack'}, - {'1': 'mute', '3': 5, '4': 1, '5': 11, '6': '.livekit.MuteTrackRequest', '9': 0, '10': 'mute'}, - {'1': 'subscription', '3': 6, '4': 1, '5': 11, '6': '.livekit.UpdateSubscription', '9': 0, '10': 'subscription'}, - {'1': 'track_setting', '3': 7, '4': 1, '5': 11, '6': '.livekit.UpdateTrackSettings', '9': 0, '10': 'trackSetting'}, - {'1': 'leave', '3': 8, '4': 1, '5': 11, '6': '.livekit.LeaveRequest', '9': 0, '10': 'leave'}, - {'1': 'update_layers', '3': 10, '4': 1, '5': 11, '6': '.livekit.UpdateVideoLayers', '9': 0, '10': 'updateLayers'}, - {'1': 'subscription_permission', '3': 11, '4': 1, '5': 11, '6': '.livekit.SubscriptionPermission', '9': 0, '10': 'subscriptionPermission'}, - {'1': 'sync_state', '3': 12, '4': 1, '5': 11, '6': '.livekit.SyncState', '9': 0, '10': 'syncState'}, - {'1': 'simulate', '3': 13, '4': 1, '5': 11, '6': '.livekit.SimulateScenario', '9': 0, '10': 'simulate'}, + { + '1': 'offer', + '3': 1, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '9': 0, + '10': 'offer' + }, + { + '1': 'answer', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '9': 0, + '10': 'answer' + }, + { + '1': 'trickle', + '3': 3, + '4': 1, + '5': 11, + '6': '.livekit.TrickleRequest', + '9': 0, + '10': 'trickle' + }, + { + '1': 'add_track', + '3': 4, + '4': 1, + '5': 11, + '6': '.livekit.AddTrackRequest', + '9': 0, + '10': 'addTrack' + }, + { + '1': 'mute', + '3': 5, + '4': 1, + '5': 11, + '6': '.livekit.MuteTrackRequest', + '9': 0, + '10': 'mute' + }, + { + '1': 'subscription', + '3': 6, + '4': 1, + '5': 11, + '6': '.livekit.UpdateSubscription', + '9': 0, + '10': 'subscription' + }, + { + '1': 'track_setting', + '3': 7, + '4': 1, + '5': 11, + '6': '.livekit.UpdateTrackSettings', + '9': 0, + '10': 'trackSetting' + }, + { + '1': 'leave', + '3': 8, + '4': 1, + '5': 11, + '6': '.livekit.LeaveRequest', + '9': 0, + '10': 'leave' + }, + { + '1': 'update_layers', + '3': 10, + '4': 1, + '5': 11, + '6': '.livekit.UpdateVideoLayers', + '9': 0, + '10': 'updateLayers' + }, + { + '1': 'subscription_permission', + '3': 11, + '4': 1, + '5': 11, + '6': '.livekit.SubscriptionPermission', + '9': 0, + '10': 'subscriptionPermission' + }, + { + '1': 'sync_state', + '3': 12, + '4': 1, + '5': 11, + '6': '.livekit.SyncState', + '9': 0, + '10': 'syncState' + }, + { + '1': 'simulate', + '3': 13, + '4': 1, + '5': 11, + '6': '.livekit.SimulateScenario', + '9': 0, + '10': 'simulate' + }, {'1': 'ping', '3': 14, '4': 1, '5': 3, '9': 0, '10': 'ping'}, - {'1': 'update_metadata', '3': 15, '4': 1, '5': 11, '6': '.livekit.UpdateParticipantMetadata', '9': 0, '10': 'updateMetadata'}, - {'1': 'ping_req', '3': 16, '4': 1, '5': 11, '6': '.livekit.Ping', '9': 0, '10': 'pingReq'}, + { + '1': 'update_metadata', + '3': 15, + '4': 1, + '5': 11, + '6': '.livekit.UpdateParticipantMetadata', + '9': 0, + '10': 'updateMetadata' + }, + { + '1': 'ping_req', + '3': 16, + '4': 1, + '5': 11, + '6': '.livekit.Ping', + '9': 0, + '10': 'pingReq' + }, ], '8': [ {'1': 'message'}, @@ -102,26 +214,177 @@ final $typed_data.Uint8List signalRequestDescriptor = $convert.base64Decode( const SignalResponse$json = { '1': 'SignalResponse', '2': [ - {'1': 'join', '3': 1, '4': 1, '5': 11, '6': '.livekit.JoinResponse', '9': 0, '10': 'join'}, - {'1': 'answer', '3': 2, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'answer'}, - {'1': 'offer', '3': 3, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '9': 0, '10': 'offer'}, - {'1': 'trickle', '3': 4, '4': 1, '5': 11, '6': '.livekit.TrickleRequest', '9': 0, '10': 'trickle'}, - {'1': 'update', '3': 5, '4': 1, '5': 11, '6': '.livekit.ParticipantUpdate', '9': 0, '10': 'update'}, - {'1': 'track_published', '3': 6, '4': 1, '5': 11, '6': '.livekit.TrackPublishedResponse', '9': 0, '10': 'trackPublished'}, - {'1': 'leave', '3': 8, '4': 1, '5': 11, '6': '.livekit.LeaveRequest', '9': 0, '10': 'leave'}, - {'1': 'mute', '3': 9, '4': 1, '5': 11, '6': '.livekit.MuteTrackRequest', '9': 0, '10': 'mute'}, - {'1': 'speakers_changed', '3': 10, '4': 1, '5': 11, '6': '.livekit.SpeakersChanged', '9': 0, '10': 'speakersChanged'}, - {'1': 'room_update', '3': 11, '4': 1, '5': 11, '6': '.livekit.RoomUpdate', '9': 0, '10': 'roomUpdate'}, - {'1': 'connection_quality', '3': 12, '4': 1, '5': 11, '6': '.livekit.ConnectionQualityUpdate', '9': 0, '10': 'connectionQuality'}, - {'1': 'stream_state_update', '3': 13, '4': 1, '5': 11, '6': '.livekit.StreamStateUpdate', '9': 0, '10': 'streamStateUpdate'}, - {'1': 'subscribed_quality_update', '3': 14, '4': 1, '5': 11, '6': '.livekit.SubscribedQualityUpdate', '9': 0, '10': 'subscribedQualityUpdate'}, - {'1': 'subscription_permission_update', '3': 15, '4': 1, '5': 11, '6': '.livekit.SubscriptionPermissionUpdate', '9': 0, '10': 'subscriptionPermissionUpdate'}, - {'1': 'refresh_token', '3': 16, '4': 1, '5': 9, '9': 0, '10': 'refreshToken'}, - {'1': 'track_unpublished', '3': 17, '4': 1, '5': 11, '6': '.livekit.TrackUnpublishedResponse', '9': 0, '10': 'trackUnpublished'}, + { + '1': 'join', + '3': 1, + '4': 1, + '5': 11, + '6': '.livekit.JoinResponse', + '9': 0, + '10': 'join' + }, + { + '1': 'answer', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '9': 0, + '10': 'answer' + }, + { + '1': 'offer', + '3': 3, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '9': 0, + '10': 'offer' + }, + { + '1': 'trickle', + '3': 4, + '4': 1, + '5': 11, + '6': '.livekit.TrickleRequest', + '9': 0, + '10': 'trickle' + }, + { + '1': 'update', + '3': 5, + '4': 1, + '5': 11, + '6': '.livekit.ParticipantUpdate', + '9': 0, + '10': 'update' + }, + { + '1': 'track_published', + '3': 6, + '4': 1, + '5': 11, + '6': '.livekit.TrackPublishedResponse', + '9': 0, + '10': 'trackPublished' + }, + { + '1': 'leave', + '3': 8, + '4': 1, + '5': 11, + '6': '.livekit.LeaveRequest', + '9': 0, + '10': 'leave' + }, + { + '1': 'mute', + '3': 9, + '4': 1, + '5': 11, + '6': '.livekit.MuteTrackRequest', + '9': 0, + '10': 'mute' + }, + { + '1': 'speakers_changed', + '3': 10, + '4': 1, + '5': 11, + '6': '.livekit.SpeakersChanged', + '9': 0, + '10': 'speakersChanged' + }, + { + '1': 'room_update', + '3': 11, + '4': 1, + '5': 11, + '6': '.livekit.RoomUpdate', + '9': 0, + '10': 'roomUpdate' + }, + { + '1': 'connection_quality', + '3': 12, + '4': 1, + '5': 11, + '6': '.livekit.ConnectionQualityUpdate', + '9': 0, + '10': 'connectionQuality' + }, + { + '1': 'stream_state_update', + '3': 13, + '4': 1, + '5': 11, + '6': '.livekit.StreamStateUpdate', + '9': 0, + '10': 'streamStateUpdate' + }, + { + '1': 'subscribed_quality_update', + '3': 14, + '4': 1, + '5': 11, + '6': '.livekit.SubscribedQualityUpdate', + '9': 0, + '10': 'subscribedQualityUpdate' + }, + { + '1': 'subscription_permission_update', + '3': 15, + '4': 1, + '5': 11, + '6': '.livekit.SubscriptionPermissionUpdate', + '9': 0, + '10': 'subscriptionPermissionUpdate' + }, + { + '1': 'refresh_token', + '3': 16, + '4': 1, + '5': 9, + '9': 0, + '10': 'refreshToken' + }, + { + '1': 'track_unpublished', + '3': 17, + '4': 1, + '5': 11, + '6': '.livekit.TrackUnpublishedResponse', + '9': 0, + '10': 'trackUnpublished' + }, {'1': 'pong', '3': 18, '4': 1, '5': 3, '9': 0, '10': 'pong'}, - {'1': 'reconnect', '3': 19, '4': 1, '5': 11, '6': '.livekit.ReconnectResponse', '9': 0, '10': 'reconnect'}, - {'1': 'pong_resp', '3': 20, '4': 1, '5': 11, '6': '.livekit.Pong', '9': 0, '10': 'pongResp'}, - {'1': 'subscription_response', '3': 21, '4': 1, '5': 11, '6': '.livekit.SubscriptionResponse', '9': 0, '10': 'subscriptionResponse'}, + { + '1': 'reconnect', + '3': 19, + '4': 1, + '5': 11, + '6': '.livekit.ReconnectResponse', + '9': 0, + '10': 'reconnect' + }, + { + '1': 'pong_resp', + '3': 20, + '4': 1, + '5': 11, + '6': '.livekit.Pong', + '9': 0, + '10': 'pongResp' + }, + { + '1': 'subscription_response', + '3': 21, + '4': 1, + '5': 11, + '6': '.livekit.SubscriptionResponse', + '9': 0, + '10': 'subscriptionResponse' + }, ], '8': [ {'1': 'message'}, @@ -175,18 +438,53 @@ const AddTrackRequest$json = { '2': [ {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, - {'1': 'type', '3': 3, '4': 1, '5': 14, '6': '.livekit.TrackType', '10': 'type'}, + { + '1': 'type', + '3': 3, + '4': 1, + '5': 14, + '6': '.livekit.TrackType', + '10': 'type' + }, {'1': 'width', '3': 4, '4': 1, '5': 13, '10': 'width'}, {'1': 'height', '3': 5, '4': 1, '5': 13, '10': 'height'}, {'1': 'muted', '3': 6, '4': 1, '5': 8, '10': 'muted'}, {'1': 'disable_dtx', '3': 7, '4': 1, '5': 8, '10': 'disableDtx'}, - {'1': 'source', '3': 8, '4': 1, '5': 14, '6': '.livekit.TrackSource', '10': 'source'}, - {'1': 'layers', '3': 9, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, - {'1': 'simulcast_codecs', '3': 10, '4': 3, '5': 11, '6': '.livekit.SimulcastCodec', '10': 'simulcastCodecs'}, + { + '1': 'source', + '3': 8, + '4': 1, + '5': 14, + '6': '.livekit.TrackSource', + '10': 'source' + }, + { + '1': 'layers', + '3': 9, + '4': 3, + '5': 11, + '6': '.livekit.VideoLayer', + '10': 'layers' + }, + { + '1': 'simulcast_codecs', + '3': 10, + '4': 3, + '5': 11, + '6': '.livekit.SimulcastCodec', + '10': 'simulcastCodecs' + }, {'1': 'sid', '3': 11, '4': 1, '5': 9, '10': 'sid'}, {'1': 'stereo', '3': 12, '4': 1, '5': 8, '10': 'stereo'}, {'1': 'disable_red', '3': 13, '4': 1, '5': 8, '10': 'disableRed'}, - {'1': 'encryption', '3': 14, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + { + '1': 'encryption', + '3': 14, + '4': 1, + '5': 14, + '6': '.livekit.Encryption.Type', + '10': 'encryption' + }, {'1': 'stream', '3': 15, '4': 1, '5': 9, '10': 'stream'}, ], }; @@ -209,7 +507,14 @@ const TrickleRequest$json = { '1': 'TrickleRequest', '2': [ {'1': 'candidateInit', '3': 1, '4': 1, '5': 9, '10': 'candidateInit'}, - {'1': 'target', '3': 2, '4': 1, '5': 14, '6': '.livekit.SignalTarget', '10': 'target'}, + { + '1': 'target', + '3': 2, + '4': 1, + '5': 14, + '6': '.livekit.SignalTarget', + '10': 'target' + }, ], }; @@ -237,17 +542,58 @@ const JoinResponse$json = { '1': 'JoinResponse', '2': [ {'1': 'room', '3': 1, '4': 1, '5': 11, '6': '.livekit.Room', '10': 'room'}, - {'1': 'participant', '3': 2, '4': 1, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'participant'}, - {'1': 'other_participants', '3': 3, '4': 3, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'otherParticipants'}, + { + '1': 'participant', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.ParticipantInfo', + '10': 'participant' + }, + { + '1': 'other_participants', + '3': 3, + '4': 3, + '5': 11, + '6': '.livekit.ParticipantInfo', + '10': 'otherParticipants' + }, {'1': 'server_version', '3': 4, '4': 1, '5': 9, '10': 'serverVersion'}, - {'1': 'ice_servers', '3': 5, '4': 3, '5': 11, '6': '.livekit.ICEServer', '10': 'iceServers'}, - {'1': 'subscriber_primary', '3': 6, '4': 1, '5': 8, '10': 'subscriberPrimary'}, + { + '1': 'ice_servers', + '3': 5, + '4': 3, + '5': 11, + '6': '.livekit.ICEServer', + '10': 'iceServers' + }, + { + '1': 'subscriber_primary', + '3': 6, + '4': 1, + '5': 8, + '10': 'subscriberPrimary' + }, {'1': 'alternative_url', '3': 7, '4': 1, '5': 9, '10': 'alternativeUrl'}, - {'1': 'client_configuration', '3': 8, '4': 1, '5': 11, '6': '.livekit.ClientConfiguration', '10': 'clientConfiguration'}, + { + '1': 'client_configuration', + '3': 8, + '4': 1, + '5': 11, + '6': '.livekit.ClientConfiguration', + '10': 'clientConfiguration' + }, {'1': 'server_region', '3': 9, '4': 1, '5': 9, '10': 'serverRegion'}, {'1': 'ping_timeout', '3': 10, '4': 1, '5': 5, '10': 'pingTimeout'}, {'1': 'ping_interval', '3': 11, '4': 1, '5': 5, '10': 'pingInterval'}, - {'1': 'server_info', '3': 12, '4': 1, '5': 11, '6': '.livekit.ServerInfo', '10': 'serverInfo'}, + { + '1': 'server_info', + '3': 12, + '4': 1, + '5': 11, + '6': '.livekit.ServerInfo', + '10': 'serverInfo' + }, {'1': 'sif_trailer', '3': 13, '4': 1, '5': 12, '10': 'sifTrailer'}, ], }; @@ -271,8 +617,22 @@ final $typed_data.Uint8List joinResponseDescriptor = $convert.base64Decode( const ReconnectResponse$json = { '1': 'ReconnectResponse', '2': [ - {'1': 'ice_servers', '3': 1, '4': 3, '5': 11, '6': '.livekit.ICEServer', '10': 'iceServers'}, - {'1': 'client_configuration', '3': 2, '4': 1, '5': 11, '6': '.livekit.ClientConfiguration', '10': 'clientConfiguration'}, + { + '1': 'ice_servers', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.ICEServer', + '10': 'iceServers' + }, + { + '1': 'client_configuration', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.ClientConfiguration', + '10': 'clientConfiguration' + }, ], }; @@ -287,14 +647,22 @@ const TrackPublishedResponse$json = { '1': 'TrackPublishedResponse', '2': [ {'1': 'cid', '3': 1, '4': 1, '5': 9, '10': 'cid'}, - {'1': 'track', '3': 2, '4': 1, '5': 11, '6': '.livekit.TrackInfo', '10': 'track'}, + { + '1': 'track', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.TrackInfo', + '10': 'track' + }, ], }; /// Descriptor for `TrackPublishedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trackPublishedResponseDescriptor = $convert.base64Decode( - 'ChZUcmFja1B1Ymxpc2hlZFJlc3BvbnNlEhAKA2NpZBgBIAEoCVIDY2lkEigKBXRyYWNrGAIgAS' - 'gLMhIubGl2ZWtpdC5UcmFja0luZm9SBXRyYWNr'); +final $typed_data.Uint8List trackPublishedResponseDescriptor = + $convert.base64Decode( + 'ChZUcmFja1B1Ymxpc2hlZFJlc3BvbnNlEhAKA2NpZBgBIAEoCVIDY2lkEigKBXRyYWNrGAIgAS' + 'gLMhIubGl2ZWtpdC5UcmFja0luZm9SBXRyYWNr'); @$core.Deprecated('Use trackUnpublishedResponseDescriptor instead') const TrackUnpublishedResponse$json = { @@ -305,9 +673,10 @@ const TrackUnpublishedResponse$json = { }; /// Descriptor for `TrackUnpublishedResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List trackUnpublishedResponseDescriptor = $convert.base64Decode( - 'ChhUcmFja1VucHVibGlzaGVkUmVzcG9uc2USGwoJdHJhY2tfc2lkGAEgASgJUgh0cmFja1NpZA' - '=='); +final $typed_data.Uint8List trackUnpublishedResponseDescriptor = + $convert.base64Decode( + 'ChhUcmFja1VucHVibGlzaGVkUmVzcG9uc2USGwoJdHJhY2tfc2lkGAEgASgJUgh0cmFja1NpZA' + '=='); @$core.Deprecated('Use sessionDescriptionDescriptor instead') const SessionDescription$json = { @@ -327,7 +696,14 @@ final $typed_data.Uint8List sessionDescriptionDescriptor = $convert.base64Decode const ParticipantUpdate$json = { '1': 'ParticipantUpdate', '2': [ - {'1': 'participants', '3': 1, '4': 3, '5': 11, '6': '.livekit.ParticipantInfo', '10': 'participants'}, + { + '1': 'participants', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.ParticipantInfo', + '10': 'participants' + }, ], }; @@ -342,7 +718,14 @@ const UpdateSubscription$json = { '2': [ {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, {'1': 'subscribe', '3': 2, '4': 1, '5': 8, '10': 'subscribe'}, - {'1': 'participant_tracks', '3': 3, '4': 3, '5': 11, '6': '.livekit.ParticipantTracks', '10': 'participantTracks'}, + { + '1': 'participant_tracks', + '3': 3, + '4': 3, + '5': 11, + '6': '.livekit.ParticipantTracks', + '10': 'participantTracks' + }, ], }; @@ -358,7 +741,14 @@ const UpdateTrackSettings$json = { '2': [ {'1': 'track_sids', '3': 1, '4': 3, '5': 9, '10': 'trackSids'}, {'1': 'disabled', '3': 3, '4': 1, '5': 8, '10': 'disabled'}, - {'1': 'quality', '3': 4, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + { + '1': 'quality', + '3': 4, + '4': 1, + '5': 14, + '6': '.livekit.VideoQuality', + '10': 'quality' + }, {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, {'1': 'fps', '3': 7, '4': 1, '5': 13, '10': 'fps'}, @@ -378,7 +768,14 @@ const LeaveRequest$json = { '1': 'LeaveRequest', '2': [ {'1': 'can_reconnect', '3': 1, '4': 1, '5': 8, '10': 'canReconnect'}, - {'1': 'reason', '3': 2, '4': 1, '5': 14, '6': '.livekit.DisconnectReason', '10': 'reason'}, + { + '1': 'reason', + '3': 2, + '4': 1, + '5': 14, + '6': '.livekit.DisconnectReason', + '10': 'reason' + }, ], }; @@ -392,7 +789,14 @@ const UpdateVideoLayers$json = { '1': 'UpdateVideoLayers', '2': [ {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, - {'1': 'layers', '3': 2, '4': 3, '5': 11, '6': '.livekit.VideoLayer', '10': 'layers'}, + { + '1': 'layers', + '3': 2, + '4': 3, + '5': 11, + '6': '.livekit.VideoLayer', + '10': 'layers' + }, ], }; @@ -411,9 +815,10 @@ const UpdateParticipantMetadata$json = { }; /// Descriptor for `UpdateParticipantMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateParticipantMetadataDescriptor = $convert.base64Decode( - 'ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEhoKCG1ldGFkYXRhGAEgASgJUghtZXRhZGF0YR' - 'ISCgRuYW1lGAIgASgJUgRuYW1l'); +final $typed_data.Uint8List updateParticipantMetadataDescriptor = + $convert.base64Decode( + 'ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEhoKCG1ldGFkYXRhGAEgASgJUghtZXRhZGF0YR' + 'ISCgRuYW1lGAIgASgJUgRuYW1l'); @$core.Deprecated('Use iCEServerDescriptor instead') const ICEServer$json = { @@ -434,7 +839,14 @@ final $typed_data.Uint8List iCEServerDescriptor = $convert.base64Decode( const SpeakersChanged$json = { '1': 'SpeakersChanged', '2': [ - {'1': 'speakers', '3': 1, '4': 3, '5': 11, '6': '.livekit.SpeakerInfo', '10': 'speakers'}, + { + '1': 'speakers', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.SpeakerInfo', + '10': 'speakers' + }, ], }; @@ -460,7 +872,14 @@ const ConnectionQualityInfo$json = { '1': 'ConnectionQualityInfo', '2': [ {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, - {'1': 'quality', '3': 2, '4': 1, '5': 14, '6': '.livekit.ConnectionQuality', '10': 'quality'}, + { + '1': 'quality', + '3': 2, + '4': 1, + '5': 14, + '6': '.livekit.ConnectionQuality', + '10': 'quality' + }, {'1': 'score', '3': 3, '4': 1, '5': 2, '10': 'score'}, ], }; @@ -475,14 +894,22 @@ final $typed_data.Uint8List connectionQualityInfoDescriptor = $convert.base64Dec const ConnectionQualityUpdate$json = { '1': 'ConnectionQualityUpdate', '2': [ - {'1': 'updates', '3': 1, '4': 3, '5': 11, '6': '.livekit.ConnectionQualityInfo', '10': 'updates'}, + { + '1': 'updates', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.ConnectionQualityInfo', + '10': 'updates' + }, ], }; /// Descriptor for `ConnectionQualityUpdate`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List connectionQualityUpdateDescriptor = $convert.base64Decode( - 'ChdDb25uZWN0aW9uUXVhbGl0eVVwZGF0ZRI4Cgd1cGRhdGVzGAEgAygLMh4ubGl2ZWtpdC5Db2' - '5uZWN0aW9uUXVhbGl0eUluZm9SB3VwZGF0ZXM='); +final $typed_data.Uint8List connectionQualityUpdateDescriptor = + $convert.base64Decode( + 'ChdDb25uZWN0aW9uUXVhbGl0eVVwZGF0ZRI4Cgd1cGRhdGVzGAEgAygLMh4ubGl2ZWtpdC5Db2' + '5uZWN0aW9uUXVhbGl0eUluZm9SB3VwZGF0ZXM='); @$core.Deprecated('Use streamStateInfoDescriptor instead') const StreamStateInfo$json = { @@ -490,7 +917,14 @@ const StreamStateInfo$json = { '2': [ {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, {'1': 'track_sid', '3': 2, '4': 1, '5': 9, '10': 'trackSid'}, - {'1': 'state', '3': 3, '4': 1, '5': 14, '6': '.livekit.StreamState', '10': 'state'}, + { + '1': 'state', + '3': 3, + '4': 1, + '5': 14, + '6': '.livekit.StreamState', + '10': 'state' + }, ], }; @@ -504,7 +938,14 @@ final $typed_data.Uint8List streamStateInfoDescriptor = $convert.base64Decode( const StreamStateUpdate$json = { '1': 'StreamStateUpdate', '2': [ - {'1': 'stream_states', '3': 1, '4': 3, '5': 11, '6': '.livekit.StreamStateInfo', '10': 'streamStates'}, + { + '1': 'stream_states', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.StreamStateInfo', + '10': 'streamStates' + }, ], }; @@ -517,7 +958,14 @@ final $typed_data.Uint8List streamStateUpdateDescriptor = $convert.base64Decode( const SubscribedQuality$json = { '1': 'SubscribedQuality', '2': [ - {'1': 'quality', '3': 1, '4': 1, '5': 14, '6': '.livekit.VideoQuality', '10': 'quality'}, + { + '1': 'quality', + '3': 1, + '4': 1, + '5': 14, + '6': '.livekit.VideoQuality', + '10': 'quality' + }, {'1': 'enabled', '3': 2, '4': 1, '5': 8, '10': 'enabled'}, ], }; @@ -532,7 +980,14 @@ const SubscribedCodec$json = { '1': 'SubscribedCodec', '2': [ {'1': 'codec', '3': 1, '4': 1, '5': 9, '10': 'codec'}, - {'1': 'qualities', '3': 2, '4': 3, '5': 11, '6': '.livekit.SubscribedQuality', '10': 'qualities'}, + { + '1': 'qualities', + '3': 2, + '4': 3, + '5': 11, + '6': '.livekit.SubscribedQuality', + '10': 'qualities' + }, ], }; @@ -546,8 +1001,22 @@ const SubscribedQualityUpdate$json = { '1': 'SubscribedQualityUpdate', '2': [ {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, - {'1': 'subscribed_qualities', '3': 2, '4': 3, '5': 11, '6': '.livekit.SubscribedQuality', '10': 'subscribedQualities'}, - {'1': 'subscribed_codecs', '3': 3, '4': 3, '5': 11, '6': '.livekit.SubscribedCodec', '10': 'subscribedCodecs'}, + { + '1': 'subscribed_qualities', + '3': 2, + '4': 3, + '5': 11, + '6': '.livekit.SubscribedQuality', + '10': 'subscribedQualities' + }, + { + '1': 'subscribed_codecs', + '3': 3, + '4': 3, + '5': 11, + '6': '.livekit.SubscribedCodec', + '10': 'subscribedCodecs' + }, ], }; @@ -565,7 +1034,13 @@ const TrackPermission$json = { {'1': 'participant_sid', '3': 1, '4': 1, '5': 9, '10': 'participantSid'}, {'1': 'all_tracks', '3': 2, '4': 1, '5': 8, '10': 'allTracks'}, {'1': 'track_sids', '3': 3, '4': 3, '5': 9, '10': 'trackSids'}, - {'1': 'participant_identity', '3': 4, '4': 1, '5': 9, '10': 'participantIdentity'}, + { + '1': 'participant_identity', + '3': 4, + '4': 1, + '5': 9, + '10': 'participantIdentity' + }, ], }; @@ -581,7 +1056,14 @@ const SubscriptionPermission$json = { '1': 'SubscriptionPermission', '2': [ {'1': 'all_participants', '3': 1, '4': 1, '5': 8, '10': 'allParticipants'}, - {'1': 'track_permissions', '3': 2, '4': 3, '5': 11, '6': '.livekit.TrackPermission', '10': 'trackPermissions'}, + { + '1': 'track_permissions', + '3': 2, + '4': 3, + '5': 11, + '6': '.livekit.TrackPermission', + '10': 'trackPermissions' + }, ], }; @@ -602,20 +1084,56 @@ const SubscriptionPermissionUpdate$json = { }; /// Descriptor for `SubscriptionPermissionUpdate`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscriptionPermissionUpdateDescriptor = $convert.base64Decode( - 'ChxTdWJzY3JpcHRpb25QZXJtaXNzaW9uVXBkYXRlEicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCV' - 'IOcGFydGljaXBhbnRTaWQSGwoJdHJhY2tfc2lkGAIgASgJUgh0cmFja1NpZBIYCgdhbGxvd2Vk' - 'GAMgASgIUgdhbGxvd2Vk'); +final $typed_data.Uint8List subscriptionPermissionUpdateDescriptor = + $convert.base64Decode( + 'ChxTdWJzY3JpcHRpb25QZXJtaXNzaW9uVXBkYXRlEicKD3BhcnRpY2lwYW50X3NpZBgBIAEoCV' + 'IOcGFydGljaXBhbnRTaWQSGwoJdHJhY2tfc2lkGAIgASgJUgh0cmFja1NpZBIYCgdhbGxvd2Vk' + 'GAMgASgIUgdhbGxvd2Vk'); @$core.Deprecated('Use syncStateDescriptor instead') const SyncState$json = { '1': 'SyncState', '2': [ - {'1': 'answer', '3': 1, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '10': 'answer'}, - {'1': 'subscription', '3': 2, '4': 1, '5': 11, '6': '.livekit.UpdateSubscription', '10': 'subscription'}, - {'1': 'publish_tracks', '3': 3, '4': 3, '5': 11, '6': '.livekit.TrackPublishedResponse', '10': 'publishTracks'}, - {'1': 'data_channels', '3': 4, '4': 3, '5': 11, '6': '.livekit.DataChannelInfo', '10': 'dataChannels'}, - {'1': 'offer', '3': 5, '4': 1, '5': 11, '6': '.livekit.SessionDescription', '10': 'offer'}, + { + '1': 'answer', + '3': 1, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '10': 'answer' + }, + { + '1': 'subscription', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.UpdateSubscription', + '10': 'subscription' + }, + { + '1': 'publish_tracks', + '3': 3, + '4': 3, + '5': 11, + '6': '.livekit.TrackPublishedResponse', + '10': 'publishTracks' + }, + { + '1': 'data_channels', + '3': 4, + '4': 3, + '5': 11, + '6': '.livekit.DataChannelInfo', + '10': 'dataChannels' + }, + { + '1': 'offer', + '3': 5, + '4': 1, + '5': 11, + '6': '.livekit.SessionDescription', + '10': 'offer' + }, ], }; @@ -634,7 +1152,14 @@ const DataChannelInfo$json = { '2': [ {'1': 'label', '3': 1, '4': 1, '5': 9, '10': 'label'}, {'1': 'id', '3': 2, '4': 1, '5': 13, '10': 'id'}, - {'1': 'target', '3': 3, '4': 1, '5': 14, '6': '.livekit.SignalTarget', '10': 'target'}, + { + '1': 'target', + '3': 3, + '4': 1, + '5': 14, + '6': '.livekit.SignalTarget', + '10': 'target' + }, ], }; @@ -647,12 +1172,34 @@ final $typed_data.Uint8List dataChannelInfoDescriptor = $convert.base64Decode( const SimulateScenario$json = { '1': 'SimulateScenario', '2': [ - {'1': 'speaker_update', '3': 1, '4': 1, '5': 5, '9': 0, '10': 'speakerUpdate'}, + { + '1': 'speaker_update', + '3': 1, + '4': 1, + '5': 5, + '9': 0, + '10': 'speakerUpdate' + }, {'1': 'node_failure', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'nodeFailure'}, {'1': 'migration', '3': 3, '4': 1, '5': 8, '9': 0, '10': 'migration'}, {'1': 'server_leave', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'serverLeave'}, - {'1': 'switch_candidate_protocol', '3': 5, '4': 1, '5': 14, '6': '.livekit.CandidateProtocol', '9': 0, '10': 'switchCandidateProtocol'}, - {'1': 'subscriber_bandwidth', '3': 6, '4': 1, '5': 3, '9': 0, '10': 'subscriberBandwidth'}, + { + '1': 'switch_candidate_protocol', + '3': 5, + '4': 1, + '5': 14, + '6': '.livekit.CandidateProtocol', + '9': 0, + '10': 'switchCandidateProtocol' + }, + { + '1': 'subscriber_bandwidth', + '3': 6, + '4': 1, + '5': 3, + '9': 0, + '10': 'subscriberBandwidth' + }, ], '8': [ {'1': 'scenario'}, @@ -685,7 +1232,13 @@ final $typed_data.Uint8List pingDescriptor = $convert.base64Decode( const Pong$json = { '1': 'Pong', '2': [ - {'1': 'last_ping_timestamp', '3': 1, '4': 1, '5': 3, '10': 'lastPingTimestamp'}, + { + '1': 'last_ping_timestamp', + '3': 1, + '4': 1, + '5': 3, + '10': 'lastPingTimestamp' + }, {'1': 'timestamp', '3': 2, '4': 1, '5': 3, '10': 'timestamp'}, ], }; @@ -699,7 +1252,14 @@ final $typed_data.Uint8List pongDescriptor = $convert.base64Decode( const RegionSettings$json = { '1': 'RegionSettings', '2': [ - {'1': 'regions', '3': 1, '4': 3, '5': 11, '6': '.livekit.RegionInfo', '10': 'regions'}, + { + '1': 'regions', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.RegionInfo', + '10': 'regions' + }, ], }; @@ -728,7 +1288,14 @@ const SubscriptionResponse$json = { '1': 'SubscriptionResponse', '2': [ {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, - {'1': 'err', '3': 2, '4': 1, '5': 14, '6': '.livekit.SubscriptionError', '10': 'err'}, + { + '1': 'err', + '3': 2, + '4': 1, + '5': 14, + '6': '.livekit.SubscriptionError', + '10': 'err' + }, ], }; @@ -736,4 +1303,3 @@ const SubscriptionResponse$json = { final $typed_data.Uint8List subscriptionResponseDescriptor = $convert.base64Decode( 'ChRTdWJzY3JpcHRpb25SZXNwb25zZRIbCgl0cmFja19zaWQYASABKAlSCHRyYWNrU2lkEiwKA2' 'VychgCIAEoDjIaLmxpdmVraXQuU3Vic2NyaXB0aW9uRXJyb3JSA2Vycg=='); - diff --git a/lib/src/proto/livekit_rtc.pbserver.dart b/lib/src/proto/livekit_rtc.pbserver.dart index 681e81ba..e2fd5270 100644 --- a/lib/src/proto/livekit_rtc.pbserver.dart +++ b/lib/src/proto/livekit_rtc.pbserver.dart @@ -11,4 +11,3 @@ // ignore_for_file: unnecessary_import, unnecessary_this, unused_import export 'livekit_rtc.pb.dart'; - From 6dca06cdf9e81929b31b05692c3f0b96067a9ded Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 21:46:01 +0800 Subject: [PATCH 04/12] update. --- pubspec.lock | 12 ++++++------ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 5e7caf53..2c2bdd2a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -149,10 +149,10 @@ packages: dependency: "direct main" description: name: dart_webrtc - sha256: dfe42714abe3eb83eefec407c9da7f8e341a899aa1b8ac2484af298cdfeb74a3 + sha256: "5897a3bdd6c7fded07e80e250260ca4c9cd61f9080911aa308b516e1206745a9" url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.1.3" dbus: dependency: transitive description: @@ -236,10 +236,10 @@ packages: dependency: "direct main" description: name: flutter_webrtc - sha256: "770c6f8babfdc4907539dc57bf9e98b89132eaa4486bac774c537dd25c2d5362" + sha256: f952d207725ea66f36f1e59898a8026645d1e0e02f1455710289f75f09e458e5 url: "https://pub.dev" source: hosted - version: "0.9.40" + version: "0.9.42+hotfix.1" flutter_window_close: dependency: "direct main" description: @@ -569,10 +569,10 @@ packages: dependency: transitive description: name: webrtc_interface - sha256: faec2b578f7cd588766843a8c59d4a0137c44de10b83341ce7bec05e104614d7 + sha256: "2efbd3e4e5ebeb2914253bcc51dafd3053c4b87b43f3076c74835a9deecbae3a" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index aa3184eb..f1ac7477 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,7 +38,7 @@ dependencies: uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^3.0.0 - flutter_webrtc: 0.9.42 + flutter_webrtc: 0.9.42+hotfix.1 flutter_window_close: ^0.2.2 device_info_plus: ^9.0.0 js: ^0.6.4 From c446842c49bfba054ebb8bf1a3faec719abad023 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 21:57:46 +0800 Subject: [PATCH 05/12] no need to setup frame cryptor if encryptionType is None. --- lib/src/e2ee/e2ee_manager.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/src/e2ee/e2ee_manager.dart b/lib/src/e2ee/e2ee_manager.dart index 01d776e6..d51b7dfb 100644 --- a/lib/src/e2ee/e2ee_manager.dart +++ b/lib/src/e2ee/e2ee_manager.dart @@ -18,6 +18,7 @@ import 'package:flutter_webrtc/flutter_webrtc.dart'; import '../core/room.dart'; import '../e2ee/events.dart'; +import '../e2ee/options.dart'; import '../events.dart'; import '../extensions.dart'; import '../managers/event.dart'; @@ -39,6 +40,10 @@ class E2EEManager { _listener = _room!.createListener(); _listener! ..on((event) async { + if (event.publication.encryptionType == EncryptionType.kNone) { + // no need to setup frame cryptor + return; + } var frameCryptor = await _addRtpSender( sender: event.publication.track!.sender!, identity: event.participant.identity, @@ -71,6 +76,10 @@ class E2EEManager { } }) ..on((event) async { + if (event.publication.encryptionType == EncryptionType.kNone) { + // no need to setup frame cryptor + return; + } var frameCryptor = await _addRtpReceiver( receiver: event.track.receiver!, identity: event.participant.identity, From 62e94258c4494fb3478ced0490269a87b53d4664 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 22:39:39 +0800 Subject: [PATCH 06/12] Skip frame encryption for AV1,VP9. --- example/lib/widgets/participant.dart | 3 +-- lib/src/core/engine.dart | 3 ++- lib/src/e2ee/e2ee_manager.dart | 9 ++++++--- lib/src/participant/local.dart | 25 ++++++++++++++----------- lib/src/participant/participant.dart | 3 +++ 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/example/lib/widgets/participant.dart b/example/lib/widgets/participant.dart index ed6ce94d..48fa70e9 100644 --- a/example/lib/widgets/participant.dart +++ b/example/lib/widgets/participant.dart @@ -169,8 +169,7 @@ abstract class _ParticipantWidgetState firstAudioPublication?.subscribed == true, connectionQuality: widget.participant.connectionQuality, isScreenShare: widget.isScreenShare, - enabledE2EE: widget.participant.firstTrackEncryptionType != - EncryptionType.kNone, + enabledE2EE: widget.participant.isEncrypted, ), ], ), diff --git a/lib/src/core/engine.dart b/lib/src/core/engine.dart index 302df8e1..e6dce4c7 100644 --- a/lib/src/core/engine.dart +++ b/lib/src/core/engine.dart @@ -204,11 +204,12 @@ class Engine extends Disposable with EventsEmittable { Iterable? videoLayers, Iterable? simulcastCodecs, String? sid, + String? videoCodec, }) async { // TODO: Check if cid already published lk_models.Encryption_Type encryptionType = lk_models.Encryption_Type.NONE; - if (roomOptions.e2eeOptions != null) { + if (roomOptions.e2eeOptions != null && !isSVCCodec(videoCodec ?? '')) { switch (roomOptions.e2eeOptions!.encryptionType) { case EncryptionType.kNone: encryptionType = lk_models.Encryption_Type.NONE; diff --git a/lib/src/e2ee/e2ee_manager.dart b/lib/src/e2ee/e2ee_manager.dart index d51b7dfb..66a7385c 100644 --- a/lib/src/e2ee/e2ee_manager.dart +++ b/lib/src/e2ee/e2ee_manager.dart @@ -15,6 +15,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter_webrtc/flutter_webrtc.dart'; +import 'package:livekit_client/src/utils.dart'; import '../core/room.dart'; import '../e2ee/events.dart'; @@ -40,7 +41,8 @@ class E2EEManager { _listener = _room!.createListener(); _listener! ..on((event) async { - if (event.publication.encryptionType == EncryptionType.kNone) { + if (event.publication.encryptionType == EncryptionType.kNone || + isSVCCodec(event.publication.track?.codec ?? '')) { // no need to setup frame cryptor return; } @@ -76,7 +78,9 @@ class E2EEManager { } }) ..on((event) async { - if (event.publication.encryptionType == EncryptionType.kNone) { + var codec = event.publication.mimeType.split('/')[1]; + if (event.publication.encryptionType == EncryptionType.kNone || + isSVCCodec(codec)) { // no need to setup frame cryptor return; } @@ -86,7 +90,6 @@ class E2EEManager { sid: event.publication.sid, ); if (kIsWeb) { - var codec = event.publication.mimeType.split('/')[1]; await frameCryptor.updateCodec(codec.toLowerCase()); } frameCryptor.onFrameCryptorStateChanged = (trackId, state) { diff --git a/lib/src/participant/local.dart b/lib/src/participant/local.dart index 2298311f..86849fb9 100644 --- a/lib/src/participant/local.dart +++ b/lib/src/participant/local.dart @@ -217,16 +217,18 @@ class LocalParticipant extends Participant { } final trackInfo = await room.engine.addTrack( - cid: track.getCid(), - name: publishOptions.name ?? - (track.source == TrackSource.screenShareVideo - ? VideoPublishOptions.defaultScreenShareName - : VideoPublishOptions.defaultCameraName), - kind: track.kind, - source: track.source.toPBType(), - dimensions: dimensions, - videoLayers: layers, - simulcastCodecs: simulcastCodecs); + cid: track.getCid(), + name: publishOptions.name ?? + (track.source == TrackSource.screenShareVideo + ? VideoPublishOptions.defaultScreenShareName + : VideoPublishOptions.defaultCameraName), + kind: track.kind, + source: track.source.toPBType(), + dimensions: dimensions, + videoLayers: layers, + simulcastCodecs: simulcastCodecs, + videoCodec: publishOptions.videoCodec, + ); logger.fine('publishVideoTrack addTrack response: ${trackInfo}'); @@ -621,7 +623,8 @@ class LocalParticipant extends Participant { codec: backupCodec.toLowerCase(), cid: cid, ), - ]); + ], + videoCodec: backupCodec); await room.engine.negotiate(); diff --git a/lib/src/participant/participant.dart b/lib/src/participant/participant.dart index 086e431b..d08435ff 100644 --- a/lib/src/participant/participant.dart +++ b/lib/src/participant/participant.dart @@ -115,6 +115,9 @@ abstract class Participant } } + bool get isEncrypted => [...audioTracks, ...videoTracks] + .every((track) => track.encryptionType != EncryptionType.kNone); + @internal bool get hasInfo => _participantInfo != null; From f8ea9efe23f850b86b587f37ee85086f555346ac Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Fri, 15 Sep 2023 22:44:08 +0800 Subject: [PATCH 07/12] fix import sorter. --- lib/src/e2ee/e2ee_manager.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/e2ee/e2ee_manager.dart b/lib/src/e2ee/e2ee_manager.dart index 66a7385c..f380b1d8 100644 --- a/lib/src/e2ee/e2ee_manager.dart +++ b/lib/src/e2ee/e2ee_manager.dart @@ -15,7 +15,6 @@ import 'package:flutter/foundation.dart'; import 'package:flutter_webrtc/flutter_webrtc.dart'; -import 'package:livekit_client/src/utils.dart'; import '../core/room.dart'; import '../e2ee/events.dart'; @@ -23,6 +22,7 @@ import '../e2ee/options.dart'; import '../events.dart'; import '../extensions.dart'; import '../managers/event.dart'; +import '../utils.dart'; import 'key_provider.dart'; class E2EEManager { From 46b4e58ad902ad73b7766c574e45771883efc1f5 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 20 Sep 2023 19:10:32 +0800 Subject: [PATCH 08/12] bump version for flutter-webrtc. --- ios/livekit_client.podspec | 2 +- macos/livekit_client.podspec | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/livekit_client.podspec b/ios/livekit_client.podspec index e7091aa0..ce845f02 100644 --- a/ios/livekit_client.podspec +++ b/ios/livekit_client.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'Flutter' - s.dependency 'WebRTC-SDK', '114.5735.06' + s.dependency 'WebRTC-SDK', '114.5735.07' end diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index 5ac0eecf..94cd3ad1 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -16,5 +16,5 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'FlutterMacOS' - s.dependency 'WebRTC-SDK', '114.5735.06' + s.dependency 'WebRTC-SDK', '114.5735.07' end diff --git a/pubspec.yaml b/pubspec.yaml index 9da584d5..2cf96bcc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,7 +38,7 @@ dependencies: uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^3.0.0 - flutter_webrtc: 0.9.42+hotfix.1 + flutter_webrtc: 0.9.43 flutter_window_close: ^0.2.2 device_info_plus: ^9.0.0 js: ^0.6.4 From 17a3a985e1cb09419164326f68818ab77579e8f9 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 20 Sep 2023 19:16:19 +0800 Subject: [PATCH 09/12] update default options for e2ee. --- lib/src/e2ee/key_provider.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/e2ee/key_provider.dart b/lib/src/e2ee/key_provider.dart index 084894f5..161081da 100644 --- a/lib/src/e2ee/key_provider.dart +++ b/lib/src/e2ee/key_provider.dart @@ -18,7 +18,8 @@ import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc; const defaultRatchetSalt = 'LKFrameEncryptionKey'; const defaultMagicBytes = 'LK-ROCKS'; -const defaultRatchetWindowSize = 16; +const defaultRatchetWindowSize = 0; +const defaultFailureTolerance = -1; class KeyInfo { final String participantId; @@ -68,7 +69,7 @@ class BaseKeyProvider implements KeyProvider { ratchetWindowSize: ratchetWindowSize ?? defaultRatchetWindowSize, uncryptedMagicBytes: Uint8List.fromList( (uncryptedMagicBytes ?? defaultMagicBytes).codeUnits), - failureTolerance: failureTolerance ?? -1, + failureTolerance: failureTolerance ?? defaultFailureTolerance, ); final keyProvider = await rtc.frameCryptorFactory.createDefaultKeyProvider(options); From e5919e2fd1b0aad35014f66a6ebd2cfcf70aa02a Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 20 Sep 2023 19:16:43 +0800 Subject: [PATCH 10/12] release: 1.5.0. --- CHANGELOG.md | 8 ++++++++ pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9812590a..b17a310a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## 1.5.0 + +* Update default bitrates according to VMAF guide +* Support multi-codec simulcast. +* Support SVC publishing with AV1/VP9. +* More robustness for E2EE. +* Configurable Audio Modes for Android. + ## 1.4.3 * Fix: remove js_bindings and use the built-in AudioContext for js interop to support flutter 3.13.0. diff --git a/pubspec.yaml b/pubspec.yaml index 2cf96bcc..28418ca1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ name: livekit_client description: Flutter Client SDK for LiveKit. Build real-time video and audio into your apps. Supports iOS, Android, and Web. -version: 1.4.3 +version: 1.5.0 homepage: https://livekit.io environment: From 8bc819ecfb1f40311c20aac3c9838182975ef548 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 20 Sep 2023 19:25:25 +0800 Subject: [PATCH 11/12] update. --- macos/livekit_client.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index 94cd3ad1..6ec48337 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' - s.platform = :osx, '10.11' + s.platform = :osx, '10.13' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.swift_version = '5.0' From 5f86b60799e7bae7b11be4060fee83fb6e8cd094 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 20 Sep 2023 19:49:34 +0800 Subject: [PATCH 12/12] Downgrade some pub versions for maximum compatibility. --- pubspec.lock | 62 ++++++++++++++++++++++++++-------------------------- pubspec.yaml | 4 ++-- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index f95b4969..c2858571 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: "direct main" description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" connectivity_plus: dependency: "direct main" description: @@ -133,10 +133,10 @@ packages: dependency: "direct main" description: name: cryptography - sha256: df156c5109286340817d21fa7b62f9140f17915077127dd70f8bd7a2a0997a35 + sha256: "11d083541666d80bba21190d35ff70b2497c81e064e82d1b8a07d801f7c7e282" url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.6.0" dart_style: dependency: transitive description: @@ -165,10 +165,10 @@ packages: dependency: "direct main" description: name: device_info_plus - sha256: "86add5ef97215562d2e090535b0a16f197902b10c369c558a100e74ea06e8659" + sha256: f52ab3b76b36ede4d135aab80194df8925b553686f0fa12226b4e2d658e45903 url: "https://pub.dev" source: hosted - version: "9.0.3" + version: "8.2.2" device_info_plus_platform_interface: dependency: transitive description: @@ -197,10 +197,10 @@ packages: dependency: transitive description: name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "6.1.4" fixnum: dependency: "direct main" description: @@ -236,10 +236,10 @@ packages: dependency: "direct main" description: name: flutter_webrtc - sha256: f952d207725ea66f36f1e59898a8026645d1e0e02f1455710289f75f09e458e5 + sha256: "3a9af7db39ed5971b81ca1650b80521469584ae36739bb1f0ab4d1befb512ff9" url: "https://pub.dev" source: hosted - version: "0.9.42+hotfix.1" + version: "0.9.43" flutter_window_close: dependency: "direct main" description: @@ -260,10 +260,10 @@ packages: dependency: "direct main" description: name: http - sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "0.13.6" http_parser: dependency: transitive description: @@ -308,18 +308,18 @@ packages: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: "direct main" description: @@ -481,10 +481,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -529,10 +529,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" tint: dependency: transitive description: @@ -573,6 +573,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" webrtc_interface: dependency: transitive description: @@ -585,18 +593,10 @@ packages: dependency: transitive description: name: win32 - sha256: "9e82a402b7f3d518fb9c02d0e9ae45952df31b9bf34d77baf19da2de03fc2aaa" - url: "https://pub.dev" - source: hosted - version: "5.0.7" - win32_registry: - dependency: transitive - description: - name: win32_registry - sha256: e4506d60b7244251bc59df15656a3093501c37fb5af02105a944d73eb95be4c9 + sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "4.1.4" xdg_directories: dependency: transitive description: @@ -622,5 +622,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.0.0 <4.0.0" + dart: ">=3.1.0 <4.0.0" flutter: ">=3.7.0" diff --git a/pubspec.yaml b/pubspec.yaml index 28418ca1..b116ea1c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -33,14 +33,14 @@ dependencies: cryptography: ^2.0.5 fixnum: ^1.0.1 meta: ^1.8.0 - http: ^1.1.0 + http: ^0.13.0 logging: ^1.1.0 uuid: ^3.0.6 synchronized: ^3.0.0+3 protobuf: ^3.0.0 flutter_webrtc: 0.9.43 flutter_window_close: ^0.2.2 - device_info_plus: ^9.0.0 + device_info_plus: ^8.0.0 js: ^0.6.4 platform_detect: ^2.0.7 dart_webrtc: 1.1.3