diff --git a/.changes/protobuf-6-migration b/.changes/protobuf-6-migration new file mode 100644 index 00000000..2cad6844 --- /dev/null +++ b/.changes/protobuf-6-migration @@ -0,0 +1 @@ +patch type="chore" "Update protobuf dependency to v6.0.0" diff --git a/Makefile b/Makefile index 1b38b135..831f7214 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ proto: } format: - dart format lib/src/proto + dart format -l 120 lib/src/proto e2ee: dart compile js ./web/e2ee.worker.dart -o ./example/web/e2ee.worker.dart.js diff --git a/lib/src/proto/google/protobuf/timestamp.pb.dart b/lib/src/proto/google/protobuf/timestamp.pb.dart deleted file mode 100644 index 04d66d54..00000000 --- a/lib/src/proto/google/protobuf/timestamp.pb.dart +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright 2024 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: timestamp.proto -// -// @dart = 3.3 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names -// ignore_for_file: curly_braces_in_flow_control_structures -// ignore_for_file: deprecated_member_use_from_same_package -// ignore_for_file: implementation_imports, library_prefixes -// ignore_for_file: non_constant_identifier_names - -import 'dart:core' as $core; - -import 'package:fixnum/fixnum.dart' as $fixnum; -import 'package:protobuf/protobuf.dart' as $pb; -import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; - -export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; - -/// A Timestamp represents a point in time independent of any time zone or local -/// calendar, encoded as a count of seconds and fractions of seconds at -/// nanosecond resolution. The count is relative to an epoch at UTC midnight on -/// January 1, 1970, in the proleptic Gregorian calendar which extends the -/// Gregorian calendar backwards to year one. -/// -/// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -/// second table is needed for interpretation, using a [24-hour linear -/// smear](https://developers.google.com/time/smear). -/// -/// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -/// restricting to that range, we ensure that we can convert to and from [RFC -/// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -/// -/// # Examples -/// -/// Example 1: Compute Timestamp from POSIX `time()`. -/// -/// Timestamp timestamp; -/// timestamp.set_seconds(time(NULL)); -/// timestamp.set_nanos(0); -/// -/// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -/// -/// struct timeval tv; -/// gettimeofday(&tv, NULL); -/// -/// Timestamp timestamp; -/// timestamp.set_seconds(tv.tv_sec); -/// timestamp.set_nanos(tv.tv_usec * 1000); -/// -/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -/// -/// FILETIME ft; -/// GetSystemTimeAsFileTime(&ft); -/// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -/// -/// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -/// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -/// Timestamp timestamp; -/// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -/// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -/// -/// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -/// -/// long millis = System.currentTimeMillis(); -/// -/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -/// .setNanos((int) ((millis % 1000) * 1000000)).build(); -/// -/// Example 5: Compute Timestamp from Java `Instant.now()`. -/// -/// Instant now = Instant.now(); -/// -/// Timestamp timestamp = -/// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) -/// .setNanos(now.getNano()).build(); -/// -/// Example 6: Compute Timestamp from current time in Python. -/// -/// timestamp = Timestamp() -/// timestamp.GetCurrentTime() -/// -/// # JSON Mapping -/// -/// In JSON format, the Timestamp type is encoded as a string in the -/// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -/// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -/// where {year} is always expressed using four digits while {month}, {day}, -/// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -/// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -/// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -/// is required. A proto3 JSON serializer should always use UTC (as indicated by -/// "Z") when printing the Timestamp type and a proto3 JSON parser should be -/// able to accept both UTC and other timezones (as indicated by an offset). -/// -/// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -/// 01:30 UTC on January 15, 2017. -/// -/// In JavaScript, one can convert a Date object to this format using the -/// standard -/// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -/// method. In Python, a standard `datetime.datetime` object can be converted -/// to this format using -/// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -/// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -/// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -/// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() -/// ) to obtain a formatter capable of generating timestamps in this format. -class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { - factory Timestamp({ - $fixnum.Int64? seconds, - $core.int? nanos, - }) { - final result = create(); - if (seconds != null) result.seconds = seconds; - if (nanos != null) result.nanos = nanos; - return result; - } - - Timestamp._(); - - factory Timestamp.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Timestamp.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Timestamp', - package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, - fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) - ..aInt64(1, _omitFieldNames ? '' : 'seconds') - ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Timestamp clone() => Timestamp()..mergeFromMessage(this); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Timestamp copyWith(void Function(Timestamp) updates) => - super.copyWith((message) => updates(message as Timestamp)) as Timestamp; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Timestamp create() => Timestamp._(); - @$core.override - Timestamp createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Timestamp? _defaultInstance; - - /// Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must - /// be between -315576000000 and 315576000000 inclusive (which corresponds to - /// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). - @$pb.TagNumber(1) - $fixnum.Int64 get seconds => $_getI64(0); - @$pb.TagNumber(1) - set seconds($fixnum.Int64 value) => $_setInt64(0, value); - @$pb.TagNumber(1) - $core.bool hasSeconds() => $_has(0); - @$pb.TagNumber(1) - void clearSeconds() => $_clearField(1); - - /// Non-negative fractions of a second at nanosecond resolution. This field is - /// the nanosecond portion of the duration, not an alternative to seconds. - /// Negative second values with fractions must still have non-negative nanos - /// values that count forward in time. Must be between 0 and 999,999,999 - /// inclusive. - @$pb.TagNumber(2) - $core.int get nanos => $_getIZ(1); - @$pb.TagNumber(2) - set nanos($core.int value) => $_setSignedInt32(1, value); - @$pb.TagNumber(2) - $core.bool hasNanos() => $_has(1); - @$pb.TagNumber(2) - void clearNanos() => $_clearField(2); - - /// Creates a new instance from [dateTime]. - /// - /// Time zone information will not be preserved. - static Timestamp fromDateTime($core.DateTime dateTime) { - final result = create(); - $mixin.TimestampMixin.setFromDateTime(result, dateTime); - return result; - } -} - -const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/src/proto/livekit_metrics.pb.dart b/lib/src/proto/livekit_metrics.pb.dart index 2641f394..90a6d3a1 100644 --- a/lib/src/proto/livekit_metrics.pb.dart +++ b/lib/src/proto/livekit_metrics.pb.dart @@ -1,21 +1,20 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_metrics.proto -// +// Generated from livekit_metrics.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; - -import 'google/protobuf/timestamp.pb.dart' as $0; +import 'package:protobuf/well_known_types/google/protobuf/timestamp.pb.dart' as $0; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; @@ -51,13 +50,12 @@ class MetricsBatch extends $pb.GeneratedMessage { ..aInt64(1, _omitFieldNames ? '' : 'timestampMs') ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'normalizedTimestamp', subBuilder: $0.Timestamp.create) ..pPS(3, _omitFieldNames ? '' : 'strData') - ..pc(4, _omitFieldNames ? '' : 'timeSeries', $pb.PbFieldType.PM, - subBuilder: TimeSeriesMetric.create) - ..pc(5, _omitFieldNames ? '' : 'events', $pb.PbFieldType.PM, subBuilder: EventMetric.create) + ..pPM(4, _omitFieldNames ? '' : 'timeSeries', subBuilder: TimeSeriesMetric.create) + ..pPM(5, _omitFieldNames ? '' : 'events', subBuilder: EventMetric.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MetricsBatch clone() => MetricsBatch()..mergeFromMessage(this); + MetricsBatch clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MetricsBatch copyWith(void Function(MetricsBatch) updates) => super.copyWith((message) => updates(message as MetricsBatch)) as MetricsBatch; @@ -69,7 +67,6 @@ class MetricsBatch extends $pb.GeneratedMessage { static MetricsBatch create() => MetricsBatch._(); @$core.override MetricsBatch createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MetricsBatch getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MetricsBatch? _defaultInstance; @@ -138,15 +135,15 @@ class TimeSeriesMetric extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TimeSeriesMetric', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'label', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'participantIdentity', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'trackSid', $pb.PbFieldType.OU3) - ..pc(4, _omitFieldNames ? '' : 'samples', $pb.PbFieldType.PM, subBuilder: MetricSample.create) - ..a<$core.int>(5, _omitFieldNames ? '' : 'rid', $pb.PbFieldType.OU3) + ..aI(1, _omitFieldNames ? '' : 'label', fieldType: $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'participantIdentity', fieldType: $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'trackSid', fieldType: $pb.PbFieldType.OU3) + ..pPM(4, _omitFieldNames ? '' : 'samples', subBuilder: MetricSample.create) + ..aI(5, _omitFieldNames ? '' : 'rid', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TimeSeriesMetric clone() => TimeSeriesMetric()..mergeFromMessage(this); + TimeSeriesMetric clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TimeSeriesMetric copyWith(void Function(TimeSeriesMetric) updates) => super.copyWith((message) => updates(message as TimeSeriesMetric)) as TimeSeriesMetric; @@ -158,7 +155,6 @@ class TimeSeriesMetric extends $pb.GeneratedMessage { static TimeSeriesMetric create() => TimeSeriesMetric._(); @$core.override TimeSeriesMetric createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TimeSeriesMetric getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -231,11 +227,11 @@ class MetricSample extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'timestampMs') ..aOM<$0.Timestamp>(2, _omitFieldNames ? '' : 'normalizedTimestamp', subBuilder: $0.Timestamp.create) - ..a<$core.double>(3, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OF) + ..aD(3, _omitFieldNames ? '' : 'value', fieldType: $pb.PbFieldType.OF) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MetricSample clone() => MetricSample()..mergeFromMessage(this); + MetricSample clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MetricSample copyWith(void Function(MetricSample) updates) => super.copyWith((message) => updates(message as MetricSample)) as MetricSample; @@ -247,7 +243,6 @@ class MetricSample extends $pb.GeneratedMessage { static MetricSample create() => MetricSample._(); @$core.override MetricSample createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MetricSample getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MetricSample? _defaultInstance; @@ -317,19 +312,19 @@ class EventMetric extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EventMetric', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'label', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'participantIdentity', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'trackSid', $pb.PbFieldType.OU3) + ..aI(1, _omitFieldNames ? '' : 'label', fieldType: $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'participantIdentity', fieldType: $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'trackSid', fieldType: $pb.PbFieldType.OU3) ..aInt64(4, _omitFieldNames ? '' : 'startTimestampMs') ..aInt64(5, _omitFieldNames ? '' : 'endTimestampMs') ..aOM<$0.Timestamp>(6, _omitFieldNames ? '' : 'normalizedStartTimestamp', subBuilder: $0.Timestamp.create) ..aOM<$0.Timestamp>(7, _omitFieldNames ? '' : 'normalizedEndTimestamp', subBuilder: $0.Timestamp.create) ..aOS(8, _omitFieldNames ? '' : 'metadata') - ..a<$core.int>(9, _omitFieldNames ? '' : 'rid', $pb.PbFieldType.OU3) + ..aI(9, _omitFieldNames ? '' : 'rid', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - EventMetric clone() => EventMetric()..mergeFromMessage(this); + EventMetric clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EventMetric copyWith(void Function(EventMetric) updates) => super.copyWith((message) => updates(message as EventMetric)) as EventMetric; @@ -341,7 +336,6 @@ class EventMetric extends $pb.GeneratedMessage { static EventMetric create() => EventMetric._(); @$core.override EventMetric createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static EventMetric getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EventMetric? _defaultInstance; @@ -435,11 +429,15 @@ class EventMetric extends $pb.GeneratedMessage { class MetricsRecordingHeader extends $pb.GeneratedMessage { factory MetricsRecordingHeader({ $core.String? roomId, - $core.bool? enableUserDataTraining, + $fixnum.Int64? duration, + $0.Timestamp? startTime, + $core.Iterable<$core.MapEntry<$core.String, $core.String>>? roomTags, }) { final result = create(); if (roomId != null) result.roomId = roomId; - if (enableUserDataTraining != null) result.enableUserDataTraining = enableUserDataTraining; + if (duration != null) result.duration = duration; + if (startTime != null) result.startTime = startTime; + if (roomTags != null) result.roomTags.addEntries(roomTags); return result; } @@ -455,11 +453,17 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MetricsRecordingHeader', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'roomId') - ..aOB(2, _omitFieldNames ? '' : 'enableUserDataTraining') + ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM<$0.Timestamp>(4, _omitFieldNames ? '' : 'startTime', subBuilder: $0.Timestamp.create) + ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'roomTags', + entryClassName: 'MetricsRecordingHeader.RoomTagsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('livekit')) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MetricsRecordingHeader clone() => MetricsRecordingHeader()..mergeFromMessage(this); + MetricsRecordingHeader clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MetricsRecordingHeader copyWith(void Function(MetricsRecordingHeader) updates) => super.copyWith((message) => updates(message as MetricsRecordingHeader)) as MetricsRecordingHeader; @@ -471,7 +475,6 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage { static MetricsRecordingHeader create() => MetricsRecordingHeader._(); @$core.override MetricsRecordingHeader createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MetricsRecordingHeader getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -486,14 +489,28 @@ class MetricsRecordingHeader extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRoomId() => $_clearField(1); - @$pb.TagNumber(2) - $core.bool get enableUserDataTraining => $_getBF(1); - @$pb.TagNumber(2) - set enableUserDataTraining($core.bool value) => $_setBool(1, value); - @$pb.TagNumber(2) - $core.bool hasEnableUserDataTraining() => $_has(1); - @$pb.TagNumber(2) - void clearEnableUserDataTraining() => $_clearField(2); + @$pb.TagNumber(3) + $fixnum.Int64 get duration => $_getI64(1); + @$pb.TagNumber(3) + set duration($fixnum.Int64 value) => $_setInt64(1, value); + @$pb.TagNumber(3) + $core.bool hasDuration() => $_has(1); + @$pb.TagNumber(3) + void clearDuration() => $_clearField(3); + + @$pb.TagNumber(4) + $0.Timestamp get startTime => $_getN(2); + @$pb.TagNumber(4) + set startTime($0.Timestamp value) => $_setField(4, value); + @$pb.TagNumber(4) + $core.bool hasStartTime() => $_has(2); + @$pb.TagNumber(4) + void clearStartTime() => $_clearField(4); + @$pb.TagNumber(4) + $0.Timestamp ensureStartTime() => $_ensure(2); + + @$pb.TagNumber(5) + $pb.PbMap<$core.String, $core.String> get roomTags => $_getMap(3); } const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); diff --git a/lib/src/proto/livekit_metrics.pbenum.dart b/lib/src/proto/livekit_metrics.pbenum.dart index 536bd196..b52e5324 100644 --- a/lib/src/proto/livekit_metrics.pbenum.dart +++ b/lib/src/proto/livekit_metrics.pbenum.dart @@ -1,14 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_metrics.proto -// +// Generated from livekit_metrics.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; diff --git a/lib/src/proto/livekit_metrics.pbjson.dart b/lib/src/proto/livekit_metrics.pbjson.dart index e10d725e..14f4bcee 100644 --- a/lib/src/proto/livekit_metrics.pbjson.dart +++ b/lib/src/proto/livekit_metrics.pbjson.dart @@ -1,14 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_metrics.proto -// +// Generated from livekit_metrics.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -184,15 +185,27 @@ const MetricsRecordingHeader$json = { '1': 'MetricsRecordingHeader', '2': [ {'1': 'room_id', '3': 1, '4': 1, '5': 9, '10': 'roomId'}, - {'1': 'enable_user_data_training', '3': 2, '4': 1, '5': 8, '9': 0, '10': 'enableUserDataTraining', '17': true}, + {'1': 'duration', '3': 3, '4': 1, '5': 4, '10': 'duration'}, + {'1': 'start_time', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'}, + {'1': 'room_tags', '3': 5, '4': 3, '5': 11, '6': '.livekit.MetricsRecordingHeader.RoomTagsEntry', '10': 'roomTags'}, ], - '8': [ - {'1': '_enable_user_data_training'}, + '3': [MetricsRecordingHeader_RoomTagsEntry$json], +}; + +@$core.Deprecated('Use metricsRecordingHeaderDescriptor instead') +const MetricsRecordingHeader_RoomTagsEntry$json = { + '1': 'RoomTagsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, ], + '7': {'7': true}, }; /// Descriptor for `MetricsRecordingHeader`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricsRecordingHeaderDescriptor = - $convert.base64Decode('ChZNZXRyaWNzUmVjb3JkaW5nSGVhZGVyEhcKB3Jvb21faWQYASABKAlSBnJvb21JZBI+Chllbm' - 'FibGVfdXNlcl9kYXRhX3RyYWluaW5nGAIgASgISABSFmVuYWJsZVVzZXJEYXRhVHJhaW5pbmeI' - 'AQFCHAoaX2VuYWJsZV91c2VyX2RhdGFfdHJhaW5pbmc='); + $convert.base64Decode('ChZNZXRyaWNzUmVjb3JkaW5nSGVhZGVyEhcKB3Jvb21faWQYASABKAlSBnJvb21JZBIaCghkdX' + 'JhdGlvbhgDIAEoBFIIZHVyYXRpb24SOQoKc3RhcnRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90' + 'b2J1Zi5UaW1lc3RhbXBSCXN0YXJ0VGltZRJKCglyb29tX3RhZ3MYBSADKAsyLS5saXZla2l0Lk' + '1ldHJpY3NSZWNvcmRpbmdIZWFkZXIuUm9vbVRhZ3NFbnRyeVIIcm9vbVRhZ3MaOwoNUm9vbVRh' + 'Z3NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); diff --git a/lib/src/proto/livekit_models.pb.dart b/lib/src/proto/livekit_models.pb.dart index 694e7e8d..08430eab 100644 --- a/lib/src/proto/livekit_models.pb.dart +++ b/lib/src/proto/livekit_models.pb.dart @@ -1,22 +1,22 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_models.proto -// +// Generated from livekit_models.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; +import 'package:protobuf/well_known_types/google/protobuf/timestamp.pb.dart' as $1; -import 'google/protobuf/timestamp.pb.dart' as $0; -import 'livekit_metrics.pb.dart' as $1; +import 'livekit_metrics.pb.dart' as $0; import 'livekit_models.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; @@ -45,11 +45,11 @@ class Pagination extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Pagination', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'afterId') - ..a<$core.int>(2, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.O3) + ..aI(2, _omitFieldNames ? '' : 'limit') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Pagination clone() => Pagination()..mergeFromMessage(this); + Pagination clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Pagination copyWith(void Function(Pagination) updates) => super.copyWith((message) => updates(message as Pagination)) as Pagination; @@ -61,7 +61,6 @@ class Pagination extends $pb.GeneratedMessage { static Pagination create() => Pagination._(); @$core.override Pagination createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Pagination getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Pagination? _defaultInstance; @@ -108,7 +107,7 @@ class TokenPagination extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TokenPagination clone() => TokenPagination()..mergeFromMessage(this); + TokenPagination clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TokenPagination copyWith(void Function(TokenPagination) updates) => super.copyWith((message) => updates(message as TokenPagination)) as TokenPagination; @@ -120,7 +119,6 @@ class TokenPagination extends $pb.GeneratedMessage { static TokenPagination create() => TokenPagination._(); @$core.override TokenPagination createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TokenPagination getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -169,7 +167,7 @@ class ListUpdate extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListUpdate clone() => ListUpdate()..mergeFromMessage(this); + ListUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListUpdate copyWith(void Function(ListUpdate) updates) => super.copyWith((message) => updates(message as ListUpdate)) as ListUpdate; @@ -181,7 +179,6 @@ class ListUpdate extends $pb.GeneratedMessage { static ListUpdate create() => ListUpdate._(); @$core.override ListUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListUpdate? _defaultInstance; @@ -251,22 +248,22 @@ class Room extends $pb.GeneratedMessage { 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) + ..aI(3, _omitFieldNames ? '' : 'emptyTimeout', fieldType: $pb.PbFieldType.OU3) + ..aI(4, _omitFieldNames ? '' : 'maxParticipants', fieldType: $pb.PbFieldType.OU3) ..aInt64(5, _omitFieldNames ? '' : 'creationTime') ..aOS(6, _omitFieldNames ? '' : 'turnPassword') - ..pc(7, _omitFieldNames ? '' : 'enabledCodecs', $pb.PbFieldType.PM, subBuilder: Codec.create) + ..pPM(7, _omitFieldNames ? '' : 'enabledCodecs', subBuilder: Codec.create) ..aOS(8, _omitFieldNames ? '' : 'metadata') - ..a<$core.int>(9, _omitFieldNames ? '' : 'numParticipants', $pb.PbFieldType.OU3) + ..aI(9, _omitFieldNames ? '' : 'numParticipants', fieldType: $pb.PbFieldType.OU3) ..aOB(10, _omitFieldNames ? '' : 'activeRecording') - ..a<$core.int>(11, _omitFieldNames ? '' : 'numPublishers', $pb.PbFieldType.OU3) + ..aI(11, _omitFieldNames ? '' : 'numPublishers', fieldType: $pb.PbFieldType.OU3) ..aOM(13, _omitFieldNames ? '' : 'version', subBuilder: TimedVersion.create) - ..a<$core.int>(14, _omitFieldNames ? '' : 'departureTimeout', $pb.PbFieldType.OU3) + ..aI(14, _omitFieldNames ? '' : 'departureTimeout', fieldType: $pb.PbFieldType.OU3) ..aInt64(15, _omitFieldNames ? '' : 'creationTimeMs') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Room clone() => Room()..mergeFromMessage(this); + Room clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Room copyWith(void Function(Room) updates) => super.copyWith((message) => updates(message as Room)) as Room; @@ -277,7 +274,6 @@ class Room extends $pb.GeneratedMessage { static Room create() => Room._(); @$core.override Room createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Room getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Room? _defaultInstance; @@ -431,7 +427,7 @@ class Codec extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Codec clone() => Codec()..mergeFromMessage(this); + Codec clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Codec copyWith(void Function(Codec) updates) => super.copyWith((message) => updates(message as Codec)) as Codec; @@ -442,7 +438,6 @@ class Codec extends $pb.GeneratedMessage { static Codec create() => Codec._(); @$core.override Codec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Codec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Codec? _defaultInstance; @@ -490,12 +485,12 @@ class PlayoutDelay extends $pb.GeneratedMessage { 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) - ..a<$core.int>(3, _omitFieldNames ? '' : 'max', $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'min', fieldType: $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'max', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - PlayoutDelay clone() => PlayoutDelay()..mergeFromMessage(this); + PlayoutDelay clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PlayoutDelay copyWith(void Function(PlayoutDelay) updates) => super.copyWith((message) => updates(message as PlayoutDelay)) as PlayoutDelay; @@ -507,7 +502,6 @@ class PlayoutDelay extends $pb.GeneratedMessage { static PlayoutDelay create() => PlayoutDelay._(); @$core.override PlayoutDelay createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static PlayoutDelay getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PlayoutDelay? _defaultInstance; @@ -589,7 +583,7 @@ class ParticipantPermission extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ParticipantPermission clone() => ParticipantPermission()..mergeFromMessage(this); + ParticipantPermission clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ParticipantPermission copyWith(void Function(ParticipantPermission) updates) => super.copyWith((message) => updates(message as ParticipantPermission)) as ParticipantPermission; @@ -601,7 +595,6 @@ class ParticipantPermission extends $pb.GeneratedMessage { static ParticipantPermission create() => ParticipantPermission._(); @$core.override ParticipantPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -720,6 +713,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { DisconnectReason? disconnectReason, $fixnum.Int64? joinedAtMs, $core.Iterable? kindDetails, + $core.Iterable? dataTracks, }) { final result = create(); if (sid != null) result.sid = sid; @@ -738,6 +732,7 @@ class ParticipantInfo extends $pb.GeneratedMessage { if (disconnectReason != null) result.disconnectReason = disconnectReason; if (joinedAtMs != null) result.joinedAtMs = joinedAtMs; if (kindDetails != null) result.kindDetails.addAll(kindDetails); + if (dataTracks != null) result.dataTracks.addAll(dataTracks); return result; } @@ -753,40 +748,32 @@ class ParticipantInfo extends $pb.GeneratedMessage { 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) + ..aE(3, _omitFieldNames ? '' : 'state', enumValues: ParticipantInfo_State.values) + ..pPM(4, _omitFieldNames ? '' : 'tracks', subBuilder: TrackInfo.create) ..aOS(5, _omitFieldNames ? '' : 'metadata') ..aInt64(6, _omitFieldNames ? '' : 'joinedAt') ..aOS(9, _omitFieldNames ? '' : 'name') - ..a<$core.int>(10, _omitFieldNames ? '' : 'version', $pb.PbFieldType.OU3) + ..aI(10, _omitFieldNames ? '' : 'version', fieldType: $pb.PbFieldType.OU3) ..aOM(11, _omitFieldNames ? '' : 'permission', subBuilder: ParticipantPermission.create) ..aOS(12, _omitFieldNames ? '' : 'region') ..aOB(13, _omitFieldNames ? '' : 'isPublisher') - ..e(14, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, - defaultOrMaker: ParticipantInfo_Kind.STANDARD, - valueOf: ParticipantInfo_Kind.valueOf, - enumValues: ParticipantInfo_Kind.values) + ..aE(14, _omitFieldNames ? '' : 'kind', enumValues: ParticipantInfo_Kind.values) ..m<$core.String, $core.String>(15, _omitFieldNames ? '' : 'attributes', entryClassName: 'ParticipantInfo.AttributesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('livekit')) - ..e(16, _omitFieldNames ? '' : 'disconnectReason', $pb.PbFieldType.OE, - defaultOrMaker: DisconnectReason.UNKNOWN_REASON, - valueOf: DisconnectReason.valueOf, - enumValues: DisconnectReason.values) + ..aE(16, _omitFieldNames ? '' : 'disconnectReason', enumValues: DisconnectReason.values) ..aInt64(17, _omitFieldNames ? '' : 'joinedAtMs') ..pc(18, _omitFieldNames ? '' : 'kindDetails', $pb.PbFieldType.KE, valueOf: ParticipantInfo_KindDetail.valueOf, enumValues: ParticipantInfo_KindDetail.values, defaultEnumValue: ParticipantInfo_KindDetail.CLOUD_AGENT) + ..pPM(19, _omitFieldNames ? '' : 'dataTracks', subBuilder: DataTrackInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ParticipantInfo clone() => ParticipantInfo()..mergeFromMessage(this); + ParticipantInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ParticipantInfo copyWith(void Function(ParticipantInfo) updates) => super.copyWith((message) => updates(message as ParticipantInfo)) as ParticipantInfo; @@ -798,7 +785,6 @@ class ParticipantInfo extends $pb.GeneratedMessage { static ParticipantInfo create() => ParticipantInfo._(); @$core.override ParticipantInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -935,6 +921,9 @@ class ParticipantInfo extends $pb.GeneratedMessage { @$pb.TagNumber(18) $pb.PbList get kindDetails => $_getList(15); + + @$pb.TagNumber(19) + $pb.PbList get dataTracks => $_getList(16); } class Encryption extends $pb.GeneratedMessage { @@ -953,7 +942,7 @@ class Encryption extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Encryption clone() => Encryption()..mergeFromMessage(this); + Encryption clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Encryption copyWith(void Function(Encryption) updates) => super.copyWith((message) => updates(message as Encryption)) as Encryption; @@ -965,7 +954,6 @@ class Encryption extends $pb.GeneratedMessage { static Encryption create() => Encryption._(); @$core.override Encryption createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Encryption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Encryption? _defaultInstance; @@ -1004,16 +992,13 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'mimeType') ..aOS(2, _omitFieldNames ? '' : 'mid') ..aOS(3, _omitFieldNames ? '' : 'cid') - ..pc(4, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: VideoLayer.create) - ..e(5, _omitFieldNames ? '' : 'videoLayerMode', $pb.PbFieldType.OE, - defaultOrMaker: VideoLayer_Mode.MODE_UNUSED, - valueOf: VideoLayer_Mode.valueOf, - enumValues: VideoLayer_Mode.values) + ..pPM(4, _omitFieldNames ? '' : 'layers', subBuilder: VideoLayer.create) + ..aE(5, _omitFieldNames ? '' : 'videoLayerMode', enumValues: VideoLayer_Mode.values) ..aOS(6, _omitFieldNames ? '' : 'sdpCid') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SimulcastCodecInfo clone() => SimulcastCodecInfo()..mergeFromMessage(this); + SimulcastCodecInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SimulcastCodecInfo copyWith(void Function(SimulcastCodecInfo) updates) => super.copyWith((message) => updates(message as SimulcastCodecInfo)) as SimulcastCodecInfo; @@ -1025,7 +1010,6 @@ class SimulcastCodecInfo extends $pb.GeneratedMessage { static SimulcastCodecInfo create() => SimulcastCodecInfo._(); @$core.override SimulcastCodecInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SimulcastCodecInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1090,8 +1074,8 @@ class TrackInfo extends $pb.GeneratedMessage { TrackType? type, $core.String? name, $core.bool? muted, - @$core.Deprecated('This field is deprecated.') $core.int? width, - @$core.Deprecated('This field is deprecated.') $core.int? height, + $core.int? width, + $core.int? height, @$core.Deprecated('This field is deprecated.') $core.bool? simulcast, @$core.Deprecated('This field is deprecated.') $core.bool? disableDtx, TrackSource? source, @@ -1142,39 +1126,32 @@ class TrackInfo extends $pb.GeneratedMessage { 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) + ..aE(2, _omitFieldNames ? '' : 'type', 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) + ..aI(5, _omitFieldNames ? '' : 'width', fieldType: $pb.PbFieldType.OU3) + ..aI(6, _omitFieldNames ? '' : 'height', fieldType: $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) + ..aE(9, _omitFieldNames ? '' : 'source', enumValues: TrackSource.values) + ..pPM(10, _omitFieldNames ? '' : 'layers', subBuilder: VideoLayer.create) ..aOS(11, _omitFieldNames ? '' : 'mimeType') ..aOS(12, _omitFieldNames ? '' : 'mid') - ..pc(13, _omitFieldNames ? '' : 'codecs', $pb.PbFieldType.PM, - subBuilder: SimulcastCodecInfo.create) + ..pPM(13, _omitFieldNames ? '' : 'codecs', 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) + ..aE(16, _omitFieldNames ? '' : 'encryption', enumValues: Encryption_Type.values) ..aOS(17, _omitFieldNames ? '' : 'stream') ..aOM(18, _omitFieldNames ? '' : 'version', subBuilder: TimedVersion.create) ..pc(19, _omitFieldNames ? '' : 'audioFeatures', $pb.PbFieldType.KE, valueOf: AudioTrackFeature.valueOf, enumValues: AudioTrackFeature.values, defaultEnumValue: AudioTrackFeature.TF_STEREO) - ..e(20, _omitFieldNames ? '' : 'backupCodecPolicy', $pb.PbFieldType.OE, - defaultOrMaker: BackupCodecPolicy.PREFER_REGRESSION, - valueOf: BackupCodecPolicy.valueOf, - enumValues: BackupCodecPolicy.values) + ..aE(20, _omitFieldNames ? '' : 'backupCodecPolicy', enumValues: BackupCodecPolicy.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrackInfo clone() => TrackInfo()..mergeFromMessage(this); + TrackInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrackInfo copyWith(void Function(TrackInfo) updates) => super.copyWith((message) => updates(message as TrackInfo)) as TrackInfo; @@ -1186,7 +1163,6 @@ class TrackInfo extends $pb.GeneratedMessage { static TrackInfo create() => TrackInfo._(); @$core.override TrackInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrackInfo? _defaultInstance; @@ -1229,30 +1205,22 @@ class TrackInfo extends $pb.GeneratedMessage { /// original width of video (unset for audio) /// clients may receive a lower resolution version with simulcast - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(5) $core.int get width => $_getIZ(4); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(5) set width($core.int value) => $_setUnsignedInt32(4, value); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(5) $core.bool hasWidth() => $_has(4); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(5) void clearWidth() => $_clearField(5); /// original height of video (unset for audio) - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(6) $core.int get height => $_getIZ(5); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(6) set height($core.int value) => $_setUnsignedInt32(5, value); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(6) $core.bool hasHeight() => $_has(5); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(6) void clearHeight() => $_clearField(6); @@ -1385,6 +1353,212 @@ class TrackInfo extends $pb.GeneratedMessage { void clearBackupCodecPolicy() => $_clearField(20); } +class DataTrackInfo extends $pb.GeneratedMessage { + factory DataTrackInfo({ + $core.int? pubHandle, + $core.String? sid, + $core.String? name, + Encryption_Type? encryption, + }) { + final result = create(); + if (pubHandle != null) result.pubHandle = pubHandle; + if (sid != null) result.sid = sid; + if (name != null) result.name = name; + if (encryption != null) result.encryption = encryption; + return result; + } + + DataTrackInfo._(); + + factory DataTrackInfo.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DataTrackInfo.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataTrackInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aI(1, _omitFieldNames ? '' : 'pubHandle', fieldType: $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'sid') + ..aOS(3, _omitFieldNames ? '' : 'name') + ..aE(4, _omitFieldNames ? '' : 'encryption', enumValues: Encryption_Type.values) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackInfo clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackInfo copyWith(void Function(DataTrackInfo) updates) => + super.copyWith((message) => updates(message as DataTrackInfo)) as DataTrackInfo; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DataTrackInfo create() => DataTrackInfo._(); + @$core.override + DataTrackInfo createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static DataTrackInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataTrackInfo? _defaultInstance; + + /// Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher. + @$pb.TagNumber(1) + $core.int get pubHandle => $_getIZ(0); + @$pb.TagNumber(1) + set pubHandle($core.int value) => $_setUnsignedInt32(0, value); + @$pb.TagNumber(1) + $core.bool hasPubHandle() => $_has(0); + @$pb.TagNumber(1) + void clearPubHandle() => $_clearField(1); + + /// Server-assigned track identifier. + @$pb.TagNumber(2) + $core.String get sid => $_getSZ(1); + @$pb.TagNumber(2) + set sid($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasSid() => $_has(1); + @$pb.TagNumber(2) + void clearSid() => $_clearField(2); + + /// Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher. + @$pb.TagNumber(3) + $core.String get name => $_getSZ(2); + @$pb.TagNumber(3) + set name($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasName() => $_has(2); + @$pb.TagNumber(3) + void clearName() => $_clearField(3); + + /// Method used for end-to-end encryption (E2EE) on packet payloads. + @$pb.TagNumber(4) + Encryption_Type get encryption => $_getN(3); + @$pb.TagNumber(4) + set encryption(Encryption_Type value) => $_setField(4, value); + @$pb.TagNumber(4) + $core.bool hasEncryption() => $_has(3); + @$pb.TagNumber(4) + void clearEncryption() => $_clearField(4); +} + +class DataTrackExtensionParticipantSid extends $pb.GeneratedMessage { + factory DataTrackExtensionParticipantSid({ + DataTrackExtensionID? id, + $core.String? participantSid, + }) { + final result = create(); + if (id != null) result.id = id; + if (participantSid != null) result.participantSid = participantSid; + return result; + } + + DataTrackExtensionParticipantSid._(); + + factory DataTrackExtensionParticipantSid.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DataTrackExtensionParticipantSid.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataTrackExtensionParticipantSid', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aE(1, _omitFieldNames ? '' : 'id', enumValues: DataTrackExtensionID.values) + ..aOS(2, _omitFieldNames ? '' : 'participantSid') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackExtensionParticipantSid clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackExtensionParticipantSid copyWith(void Function(DataTrackExtensionParticipantSid) updates) => + super.copyWith((message) => updates(message as DataTrackExtensionParticipantSid)) + as DataTrackExtensionParticipantSid; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DataTrackExtensionParticipantSid create() => DataTrackExtensionParticipantSid._(); + @$core.override + DataTrackExtensionParticipantSid createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static DataTrackExtensionParticipantSid getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataTrackExtensionParticipantSid? _defaultInstance; + + @$pb.TagNumber(1) + DataTrackExtensionID get id => $_getN(0); + @$pb.TagNumber(1) + set id(DataTrackExtensionID value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasId() => $_has(0); + @$pb.TagNumber(1) + void clearId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get participantSid => $_getSZ(1); + @$pb.TagNumber(2) + set participantSid($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasParticipantSid() => $_has(1); + @$pb.TagNumber(2) + void clearParticipantSid() => $_clearField(2); +} + +class DataTrackSubscriptionOptions extends $pb.GeneratedMessage { + factory DataTrackSubscriptionOptions({ + $core.int? targetFps, + }) { + final result = create(); + if (targetFps != null) result.targetFps = targetFps; + return result; + } + + DataTrackSubscriptionOptions._(); + + factory DataTrackSubscriptionOptions.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DataTrackSubscriptionOptions.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataTrackSubscriptionOptions', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aI(1, _omitFieldNames ? '' : 'targetFps', fieldType: $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriptionOptions clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriptionOptions copyWith(void Function(DataTrackSubscriptionOptions) updates) => + super.copyWith((message) => updates(message as DataTrackSubscriptionOptions)) as DataTrackSubscriptionOptions; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DataTrackSubscriptionOptions create() => DataTrackSubscriptionOptions._(); + @$core.override + DataTrackSubscriptionOptions createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static DataTrackSubscriptionOptions getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataTrackSubscriptionOptions? _defaultInstance; + + /// Rate in frames per second (FPS) the subscriber wants to receive frames at. + /// If omitted, the subscriber defaults to the publisher's fps + @$pb.TagNumber(1) + $core.int get targetFps => $_getIZ(0); + @$pb.TagNumber(1) + set targetFps($core.int value) => $_setUnsignedInt32(0, value); + @$pb.TagNumber(1) + $core.bool hasTargetFps() => $_has(0); + @$pb.TagNumber(1) + void clearTargetFps() => $_clearField(1); +} + /// provide information about available spatial layers class VideoLayer extends $pb.GeneratedMessage { factory VideoLayer({ @@ -1417,18 +1591,17 @@ class VideoLayer extends $pb.GeneratedMessage { 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) - ..a<$core.int>(6, _omitFieldNames ? '' : 'spatialLayer', $pb.PbFieldType.O3) + ..aE(1, _omitFieldNames ? '' : 'quality', enumValues: VideoQuality.values) + ..aI(2, _omitFieldNames ? '' : 'width', fieldType: $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'height', fieldType: $pb.PbFieldType.OU3) + ..aI(4, _omitFieldNames ? '' : 'bitrate', fieldType: $pb.PbFieldType.OU3) + ..aI(5, _omitFieldNames ? '' : 'ssrc', fieldType: $pb.PbFieldType.OU3) + ..aI(6, _omitFieldNames ? '' : 'spatialLayer') ..aOS(7, _omitFieldNames ? '' : 'rid') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - VideoLayer clone() => VideoLayer()..mergeFromMessage(this); + VideoLayer clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') VideoLayer copyWith(void Function(VideoLayer) updates) => super.copyWith((message) => updates(message as VideoLayer)) as VideoLayer; @@ -1440,7 +1613,6 @@ class VideoLayer extends $pb.GeneratedMessage { static VideoLayer create() => VideoLayer._(); @$core.override VideoLayer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoLayer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static VideoLayer? _defaultInstance; @@ -1538,7 +1710,7 @@ class DataPacket extends $pb.GeneratedMessage { $core.Iterable<$core.String>? destinationIdentities, SipDTMF? sipDtmf, Transcription? transcription, - $1.MetricsBatch? metrics, + $0.MetricsBatch? metrics, ChatMessage? chatMessage, RpcRequest? rpcRequest, RpcAck? rpcAck, @@ -1599,15 +1771,14 @@ class DataPacket extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..oo(0, [2, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18]) - ..e(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, - defaultOrMaker: DataPacket_Kind.RELIABLE, valueOf: DataPacket_Kind.valueOf, enumValues: DataPacket_Kind.values) + ..aE(1, _omitFieldNames ? '' : 'kind', enumValues: DataPacket_Kind.values) ..aOM(2, _omitFieldNames ? '' : 'user', subBuilder: UserPacket.create) ..aOM(3, _omitFieldNames ? '' : 'speaker', subBuilder: ActiveSpeakerUpdate.create) ..aOS(4, _omitFieldNames ? '' : 'participantIdentity') ..pPS(5, _omitFieldNames ? '' : 'destinationIdentities') ..aOM(6, _omitFieldNames ? '' : 'sipDtmf', subBuilder: SipDTMF.create) ..aOM(7, _omitFieldNames ? '' : 'transcription', subBuilder: Transcription.create) - ..aOM<$1.MetricsBatch>(8, _omitFieldNames ? '' : 'metrics', subBuilder: $1.MetricsBatch.create) + ..aOM<$0.MetricsBatch>(8, _omitFieldNames ? '' : 'metrics', subBuilder: $0.MetricsBatch.create) ..aOM(9, _omitFieldNames ? '' : 'chatMessage', subBuilder: ChatMessage.create) ..aOM(10, _omitFieldNames ? '' : 'rpcRequest', subBuilder: RpcRequest.create) ..aOM(11, _omitFieldNames ? '' : 'rpcAck', subBuilder: RpcAck.create) @@ -1615,13 +1786,13 @@ class DataPacket extends $pb.GeneratedMessage { ..aOM(13, _omitFieldNames ? '' : 'streamHeader', subBuilder: DataStream_Header.create) ..aOM(14, _omitFieldNames ? '' : 'streamChunk', subBuilder: DataStream_Chunk.create) ..aOM(15, _omitFieldNames ? '' : 'streamTrailer', subBuilder: DataStream_Trailer.create) - ..a<$core.int>(16, _omitFieldNames ? '' : 'sequence', $pb.PbFieldType.OU3) + ..aI(16, _omitFieldNames ? '' : 'sequence', fieldType: $pb.PbFieldType.OU3) ..aOS(17, _omitFieldNames ? '' : 'participantSid') ..aOM(18, _omitFieldNames ? '' : 'encryptedPacket', subBuilder: EncryptedPacket.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataPacket clone() => DataPacket()..mergeFromMessage(this); + DataPacket clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataPacket copyWith(void Function(DataPacket) updates) => super.copyWith((message) => updates(message as DataPacket)) as DataPacket; @@ -1633,12 +1804,37 @@ class DataPacket extends $pb.GeneratedMessage { static DataPacket create() => DataPacket._(); @$core.override DataPacket createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DataPacket? _defaultInstance; + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(18) DataPacket_Value whichValue() => _DataPacket_ValueByTag[$_whichOneof(0)]!; + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(18) void clearValue() => $_clearField($_whichOneof(0)); @$core.Deprecated('This field is deprecated.') @@ -1718,15 +1914,15 @@ class DataPacket extends $pb.GeneratedMessage { Transcription ensureTranscription() => $_ensure(6); @$pb.TagNumber(8) - $1.MetricsBatch get metrics => $_getN(7); + $0.MetricsBatch get metrics => $_getN(7); @$pb.TagNumber(8) - set metrics($1.MetricsBatch value) => $_setField(8, value); + set metrics($0.MetricsBatch value) => $_setField(8, value); @$pb.TagNumber(8) $core.bool hasMetrics() => $_has(7); @$pb.TagNumber(8) void clearMetrics() => $_clearField(8); @$pb.TagNumber(8) - $1.MetricsBatch ensureMetrics() => $_ensure(7); + $0.MetricsBatch ensureMetrics() => $_ensure(7); @$pb.TagNumber(9) ChatMessage get chatMessage => $_getN(8); @@ -1862,15 +2058,14 @@ class EncryptedPacket extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EncryptedPacket', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'encryptionType', $pb.PbFieldType.OE, - defaultOrMaker: Encryption_Type.NONE, valueOf: Encryption_Type.valueOf, enumValues: Encryption_Type.values) + ..aE(1, _omitFieldNames ? '' : 'encryptionType', enumValues: Encryption_Type.values) ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'iv', $pb.PbFieldType.OY) - ..a<$core.int>(3, _omitFieldNames ? '' : 'keyIndex', $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'keyIndex', fieldType: $pb.PbFieldType.OU3) ..a<$core.List<$core.int>>(4, _omitFieldNames ? '' : 'encryptedValue', $pb.PbFieldType.OY) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - EncryptedPacket clone() => EncryptedPacket()..mergeFromMessage(this); + EncryptedPacket clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EncryptedPacket copyWith(void Function(EncryptedPacket) updates) => super.copyWith((message) => updates(message as EncryptedPacket)) as EncryptedPacket; @@ -1882,7 +2077,6 @@ class EncryptedPacket extends $pb.GeneratedMessage { static EncryptedPacket create() => EncryptedPacket._(); @$core.override EncryptedPacket createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static EncryptedPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1994,7 +2188,7 @@ class EncryptedPacketPayload extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - EncryptedPacketPayload clone() => EncryptedPacketPayload()..mergeFromMessage(this); + EncryptedPacketPayload clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') EncryptedPacketPayload copyWith(void Function(EncryptedPacketPayload) updates) => super.copyWith((message) => updates(message as EncryptedPacketPayload)) as EncryptedPacketPayload; @@ -2006,13 +2200,28 @@ class EncryptedPacketPayload extends $pb.GeneratedMessage { static EncryptedPacketPayload create() => EncryptedPacketPayload._(); @$core.override EncryptedPacketPayload createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static EncryptedPacketPayload getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EncryptedPacketPayload? _defaultInstance; + @$pb.TagNumber(1) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) EncryptedPacketPayload_Value whichValue() => _EncryptedPacketPayload_ValueByTag[$_whichOneof(0)]!; + @$pb.TagNumber(1) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) void clearValue() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) @@ -2125,11 +2334,11 @@ class ActiveSpeakerUpdate extends $pb.GeneratedMessage { 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) + ..pPM(1, _omitFieldNames ? '' : 'speakers', subBuilder: SpeakerInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ActiveSpeakerUpdate clone() => ActiveSpeakerUpdate()..mergeFromMessage(this); + ActiveSpeakerUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ActiveSpeakerUpdate copyWith(void Function(ActiveSpeakerUpdate) updates) => super.copyWith((message) => updates(message as ActiveSpeakerUpdate)) as ActiveSpeakerUpdate; @@ -2141,7 +2350,6 @@ class ActiveSpeakerUpdate extends $pb.GeneratedMessage { static ActiveSpeakerUpdate create() => ActiveSpeakerUpdate._(); @$core.override ActiveSpeakerUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ActiveSpeakerUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2175,12 +2383,12 @@ class SpeakerInfo extends $pb.GeneratedMessage { 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) + ..aD(2, _omitFieldNames ? '' : 'level', fieldType: $pb.PbFieldType.OF) ..aOB(3, _omitFieldNames ? '' : 'active') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SpeakerInfo clone() => SpeakerInfo()..mergeFromMessage(this); + SpeakerInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SpeakerInfo copyWith(void Function(SpeakerInfo) updates) => super.copyWith((message) => updates(message as SpeakerInfo)) as SpeakerInfo; @@ -2192,7 +2400,6 @@ class SpeakerInfo extends $pb.GeneratedMessage { static SpeakerInfo create() => SpeakerInfo._(); @$core.override SpeakerInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SpeakerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SpeakerInfo? _defaultInstance; @@ -2277,7 +2484,7 @@ class UserPacket extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UserPacket clone() => UserPacket()..mergeFromMessage(this); + UserPacket clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UserPacket copyWith(void Function(UserPacket) updates) => super.copyWith((message) => updates(message as UserPacket)) as UserPacket; @@ -2289,7 +2496,6 @@ class UserPacket extends $pb.GeneratedMessage { static UserPacket create() => UserPacket._(); @$core.override UserPacket createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UserPacket getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UserPacket? _defaultInstance; @@ -2412,12 +2618,12 @@ class SipDTMF extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SipDTMF', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(3, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'code', fieldType: $pb.PbFieldType.OU3) ..aOS(4, _omitFieldNames ? '' : 'digit') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SipDTMF clone() => SipDTMF()..mergeFromMessage(this); + SipDTMF clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SipDTMF copyWith(void Function(SipDTMF) updates) => super.copyWith((message) => updates(message as SipDTMF)) as SipDTMF; @@ -2429,7 +2635,6 @@ class SipDTMF extends $pb.GeneratedMessage { static SipDTMF create() => SipDTMF._(); @$core.override SipDTMF createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SipDTMF getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SipDTMF? _defaultInstance; @@ -2478,12 +2683,11 @@ class Transcription extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'transcribedParticipantIdentity') ..aOS(3, _omitFieldNames ? '' : 'trackId') - ..pc(4, _omitFieldNames ? '' : 'segments', $pb.PbFieldType.PM, - subBuilder: TranscriptionSegment.create) + ..pPM(4, _omitFieldNames ? '' : 'segments', subBuilder: TranscriptionSegment.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Transcription clone() => Transcription()..mergeFromMessage(this); + Transcription clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Transcription copyWith(void Function(Transcription) updates) => super.copyWith((message) => updates(message as Transcription)) as Transcription; @@ -2495,7 +2699,6 @@ class Transcription extends $pb.GeneratedMessage { static Transcription create() => Transcription._(); @$core.override Transcription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Transcription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Transcription? _defaultInstance; @@ -2562,7 +2765,7 @@ class TranscriptionSegment extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TranscriptionSegment clone() => TranscriptionSegment()..mergeFromMessage(this); + TranscriptionSegment clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TranscriptionSegment copyWith(void Function(TranscriptionSegment) updates) => super.copyWith((message) => updates(message as TranscriptionSegment)) as TranscriptionSegment; @@ -2574,7 +2777,6 @@ class TranscriptionSegment extends $pb.GeneratedMessage { static TranscriptionSegment create() => TranscriptionSegment._(); @$core.override TranscriptionSegment createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TranscriptionSegment getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2673,7 +2875,7 @@ class ChatMessage extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ChatMessage clone() => ChatMessage()..mergeFromMessage(this); + ChatMessage clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ChatMessage copyWith(void Function(ChatMessage) updates) => super.copyWith((message) => updates(message as ChatMessage)) as ChatMessage; @@ -2685,7 +2887,6 @@ class ChatMessage extends $pb.GeneratedMessage { static ChatMessage create() => ChatMessage._(); @$core.override ChatMessage createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ChatMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ChatMessage? _defaultInstance; @@ -2775,12 +2976,12 @@ class RpcRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'method') ..aOS(3, _omitFieldNames ? '' : 'payload') - ..a<$core.int>(4, _omitFieldNames ? '' : 'responseTimeoutMs', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'version', $pb.PbFieldType.OU3) + ..aI(4, _omitFieldNames ? '' : 'responseTimeoutMs', fieldType: $pb.PbFieldType.OU3) + ..aI(5, _omitFieldNames ? '' : 'version', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RpcRequest clone() => RpcRequest()..mergeFromMessage(this); + RpcRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RpcRequest copyWith(void Function(RpcRequest) updates) => super.copyWith((message) => updates(message as RpcRequest)) as RpcRequest; @@ -2792,7 +2993,6 @@ class RpcRequest extends $pb.GeneratedMessage { static RpcRequest create() => RpcRequest._(); @$core.override RpcRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RpcRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RpcRequest? _defaultInstance; @@ -2866,7 +3066,7 @@ class RpcAck extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RpcAck clone() => RpcAck()..mergeFromMessage(this); + RpcAck clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RpcAck copyWith(void Function(RpcAck) updates) => super.copyWith((message) => updates(message as RpcAck)) as RpcAck; @@ -2877,7 +3077,6 @@ class RpcAck extends $pb.GeneratedMessage { static RpcAck create() => RpcAck._(); @$core.override RpcAck createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RpcAck getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RpcAck? _defaultInstance; @@ -2929,7 +3128,7 @@ class RpcResponse extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RpcResponse clone() => RpcResponse()..mergeFromMessage(this); + RpcResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RpcResponse copyWith(void Function(RpcResponse) updates) => super.copyWith((message) => updates(message as RpcResponse)) as RpcResponse; @@ -2941,12 +3140,15 @@ class RpcResponse extends $pb.GeneratedMessage { static RpcResponse create() => RpcResponse._(); @$core.override RpcResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RpcResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RpcResponse? _defaultInstance; + @$pb.TagNumber(2) + @$pb.TagNumber(3) RpcResponse_Value whichValue() => _RpcResponse_ValueByTag[$_whichOneof(0)]!; + @$pb.TagNumber(2) + @$pb.TagNumber(3) void clearValue() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) @@ -3002,13 +3204,13 @@ class RpcError extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RpcError', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OU3) + ..aI(1, _omitFieldNames ? '' : 'code', fieldType: $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'message') ..aOS(3, _omitFieldNames ? '' : 'data') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RpcError clone() => RpcError()..mergeFromMessage(this); + RpcError clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RpcError copyWith(void Function(RpcError) updates) => super.copyWith((message) => updates(message as RpcError)) as RpcError; @@ -3020,7 +3222,6 @@ class RpcError extends $pb.GeneratedMessage { static RpcError create() => RpcError._(); @$core.override RpcError createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RpcError getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RpcError? _defaultInstance; @@ -3080,7 +3281,7 @@ class ParticipantTracks extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ParticipantTracks clone() => ParticipantTracks()..mergeFromMessage(this); + ParticipantTracks clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ParticipantTracks copyWith(void Function(ParticipantTracks) updates) => super.copyWith((message) => updates(message as ParticipantTracks)) as ParticipantTracks; @@ -3092,7 +3293,6 @@ class ParticipantTracks extends $pb.GeneratedMessage { static ParticipantTracks create() => ParticipantTracks._(); @$core.override ParticipantTracks createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantTracks getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3144,20 +3344,17 @@ class ServerInfo extends $pb.GeneratedMessage { 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) + ..aE(1, _omitFieldNames ? '' : 'edition', enumValues: ServerInfo_Edition.values) ..aOS(2, _omitFieldNames ? '' : 'version') - ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) + ..aI(3, _omitFieldNames ? '' : 'protocol') ..aOS(4, _omitFieldNames ? '' : 'region') ..aOS(5, _omitFieldNames ? '' : 'nodeId') ..aOS(6, _omitFieldNames ? '' : 'debugInfo') - ..a<$core.int>(7, _omitFieldNames ? '' : 'agentProtocol', $pb.PbFieldType.O3) + ..aI(7, _omitFieldNames ? '' : 'agentProtocol') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ServerInfo clone() => ServerInfo()..mergeFromMessage(this); + ServerInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ServerInfo copyWith(void Function(ServerInfo) updates) => super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo; @@ -3169,7 +3366,6 @@ class ServerInfo extends $pb.GeneratedMessage { static ServerInfo create() => ServerInfo._(); @$core.override ServerInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ServerInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ServerInfo? _defaultInstance; @@ -3279,10 +3475,9 @@ class ClientInfo extends $pb.GeneratedMessage { 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) + ..aE(1, _omitFieldNames ? '' : 'sdk', enumValues: ClientInfo_SDK.values) ..aOS(2, _omitFieldNames ? '' : 'version') - ..a<$core.int>(3, _omitFieldNames ? '' : 'protocol', $pb.PbFieldType.O3) + ..aI(3, _omitFieldNames ? '' : 'protocol') ..aOS(4, _omitFieldNames ? '' : 'os') ..aOS(5, _omitFieldNames ? '' : 'osVersion') ..aOS(6, _omitFieldNames ? '' : 'deviceModel') @@ -3294,7 +3489,7 @@ class ClientInfo extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ClientInfo clone() => ClientInfo()..mergeFromMessage(this); + ClientInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ClientInfo copyWith(void Function(ClientInfo) updates) => super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo; @@ -3306,7 +3501,6 @@ class ClientInfo extends $pb.GeneratedMessage { static ClientInfo create() => ClientInfo._(); @$core.override ClientInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ClientInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ClientInfo? _defaultInstance; @@ -3445,19 +3639,13 @@ class ClientConfiguration extends $pb.GeneratedMessage { 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) + ..aE(3, _omitFieldNames ? '' : 'resumeConnection', 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) + ..aE(5, _omitFieldNames ? '' : 'forceRelay', enumValues: ClientConfigSetting.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ClientConfiguration clone() => ClientConfiguration()..mergeFromMessage(this); + ClientConfiguration clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ClientConfiguration copyWith(void Function(ClientConfiguration) updates) => super.copyWith((message) => updates(message as ClientConfiguration)) as ClientConfiguration; @@ -3469,7 +3657,6 @@ class ClientConfiguration extends $pb.GeneratedMessage { static ClientConfiguration create() => ClientConfiguration._(); @$core.override ClientConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ClientConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3547,14 +3734,11 @@ class VideoConfiguration extends $pb.GeneratedMessage { 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) + ..aE(1, _omitFieldNames ? '' : 'hardwareEncoder', enumValues: ClientConfigSetting.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - VideoConfiguration clone() => VideoConfiguration()..mergeFromMessage(this); + VideoConfiguration clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') VideoConfiguration copyWith(void Function(VideoConfiguration) updates) => super.copyWith((message) => updates(message as VideoConfiguration)) as VideoConfiguration; @@ -3566,7 +3750,6 @@ class VideoConfiguration extends $pb.GeneratedMessage { static VideoConfiguration create() => VideoConfiguration._(); @$core.override VideoConfiguration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoConfiguration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3603,12 +3786,12 @@ class DisabledCodecs extends $pb.GeneratedMessage { 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) + ..pPM(1, _omitFieldNames ? '' : 'codecs', subBuilder: Codec.create) + ..pPM(2, _omitFieldNames ? '' : 'publish', subBuilder: Codec.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DisabledCodecs clone() => DisabledCodecs()..mergeFromMessage(this); + DisabledCodecs clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DisabledCodecs copyWith(void Function(DisabledCodecs) updates) => super.copyWith((message) => updates(message as DisabledCodecs)) as DisabledCodecs; @@ -3620,7 +3803,6 @@ class DisabledCodecs extends $pb.GeneratedMessage { static DisabledCodecs create() => DisabledCodecs._(); @$core.override DisabledCodecs createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DisabledCodecs getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DisabledCodecs? _defaultInstance; @@ -3636,8 +3818,8 @@ class DisabledCodecs extends $pb.GeneratedMessage { class RTPDrift extends $pb.GeneratedMessage { factory RTPDrift({ - $0.Timestamp? startTime, - $0.Timestamp? endTime, + $1.Timestamp? startTime, + $1.Timestamp? endTime, $core.double? duration, $fixnum.Int64? startTimestamp, $fixnum.Int64? endTimestamp, @@ -3669,9 +3851,9 @@ class RTPDrift extends $pb.GeneratedMessage { 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) + ..aOM<$1.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $1.Timestamp.create) + ..aD(3, _omitFieldNames ? '' : 'duration') ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'startTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'endTimestamp', $pb.PbFieldType.OU6, @@ -3679,12 +3861,12 @@ class RTPDrift extends $pb.GeneratedMessage { ..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) + ..aD(8, _omitFieldNames ? '' : 'driftMs') + ..aD(9, _omitFieldNames ? '' : 'clockRate') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RTPDrift clone() => RTPDrift()..mergeFromMessage(this); + RTPDrift clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RTPDrift copyWith(void Function(RTPDrift) updates) => super.copyWith((message) => updates(message as RTPDrift)) as RTPDrift; @@ -3696,32 +3878,31 @@ class RTPDrift extends $pb.GeneratedMessage { static RTPDrift create() => RTPDrift._(); @$core.override 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); + $1.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($0.Timestamp value) => $_setField(1, value); + set startTime($1.Timestamp value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) void clearStartTime() => $_clearField(1); @$pb.TagNumber(1) - $0.Timestamp ensureStartTime() => $_ensure(0); + $1.Timestamp ensureStartTime() => $_ensure(0); @$pb.TagNumber(2) - $0.Timestamp get endTime => $_getN(1); + $1.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($0.Timestamp value) => $_setField(2, value); + set endTime($1.Timestamp value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) void clearEndTime() => $_clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureEndTime() => $_ensure(1); + $1.Timestamp ensureEndTime() => $_ensure(1); @$pb.TagNumber(3) $core.double get duration => $_getN(2); @@ -3789,8 +3970,8 @@ class RTPDrift extends $pb.GeneratedMessage { class RTPStats extends $pb.GeneratedMessage { factory RTPStats({ - $0.Timestamp? startTime, - $0.Timestamp? endTime, + $1.Timestamp? startTime, + $1.Timestamp? endTime, $core.double? duration, $core.int? packets, $core.double? packetRate, @@ -3816,15 +3997,15 @@ class RTPStats extends $pb.GeneratedMessage { $core.int? nacks, $core.int? nackMisses, $core.int? plis, - $0.Timestamp? lastPli, + $1.Timestamp? lastPli, $core.int? firs, - $0.Timestamp? lastFir, + $1.Timestamp? lastFir, $core.int? rttCurrent, $core.int? rttMax, $core.int? keyFrames, - $0.Timestamp? lastKeyFrame, + $1.Timestamp? lastKeyFrame, $core.int? layerLockPlis, - $0.Timestamp? lastLayerLockPli, + $1.Timestamp? lastLayerLockPli, $core.int? nackAcks, $core.int? nackRepeated, $fixnum.Int64? headerBytes, @@ -3894,50 +4075,50 @@ class RTPStats extends $pb.GeneratedMessage { 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) + ..aOM<$1.Timestamp>(1, _omitFieldNames ? '' : 'startTime', subBuilder: $1.Timestamp.create) + ..aOM<$1.Timestamp>(2, _omitFieldNames ? '' : 'endTime', subBuilder: $1.Timestamp.create) + ..aD(3, _omitFieldNames ? '' : 'duration') + ..aI(4, _omitFieldNames ? '' : 'packets', fieldType: $pb.PbFieldType.OU3) + ..aD(5, _omitFieldNames ? '' : 'packetRate') ..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) + ..aD(7, _omitFieldNames ? '' : 'bitrate') + ..aI(8, _omitFieldNames ? '' : 'packetsLost', fieldType: $pb.PbFieldType.OU3) + ..aD(9, _omitFieldNames ? '' : 'packetLossRate') + ..aD(10, _omitFieldNames ? '' : 'packetLossPercentage', fieldType: $pb.PbFieldType.OF) + ..aI(11, _omitFieldNames ? '' : 'packetsDuplicate', fieldType: $pb.PbFieldType.OU3) + ..aD(12, _omitFieldNames ? '' : 'packetDuplicateRate') ..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) + ..aD(14, _omitFieldNames ? '' : 'bitrateDuplicate') + ..aI(15, _omitFieldNames ? '' : 'packetsPadding', fieldType: $pb.PbFieldType.OU3) + ..aD(16, _omitFieldNames ? '' : 'packetPaddingRate') ..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) + ..aD(18, _omitFieldNames ? '' : 'bitratePadding') + ..aI(19, _omitFieldNames ? '' : 'packetsOutOfOrder', fieldType: $pb.PbFieldType.OU3) + ..aI(20, _omitFieldNames ? '' : 'frames', fieldType: $pb.PbFieldType.OU3) + ..aD(21, _omitFieldNames ? '' : 'frameRate') + ..aD(22, _omitFieldNames ? '' : 'jitterCurrent') + ..aD(23, _omitFieldNames ? '' : 'jitterMax') ..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) + ..aI(25, _omitFieldNames ? '' : 'nacks', fieldType: $pb.PbFieldType.OU3) + ..aI(26, _omitFieldNames ? '' : 'nackMisses', fieldType: $pb.PbFieldType.OU3) + ..aI(27, _omitFieldNames ? '' : 'plis', fieldType: $pb.PbFieldType.OU3) + ..aOM<$1.Timestamp>(28, _omitFieldNames ? '' : 'lastPli', subBuilder: $1.Timestamp.create) + ..aI(29, _omitFieldNames ? '' : 'firs', fieldType: $pb.PbFieldType.OU3) + ..aOM<$1.Timestamp>(30, _omitFieldNames ? '' : 'lastFir', subBuilder: $1.Timestamp.create) + ..aI(31, _omitFieldNames ? '' : 'rttCurrent', fieldType: $pb.PbFieldType.OU3) + ..aI(32, _omitFieldNames ? '' : 'rttMax', fieldType: $pb.PbFieldType.OU3) + ..aI(33, _omitFieldNames ? '' : 'keyFrames', fieldType: $pb.PbFieldType.OU3) + ..aOM<$1.Timestamp>(34, _omitFieldNames ? '' : 'lastKeyFrame', subBuilder: $1.Timestamp.create) + ..aI(35, _omitFieldNames ? '' : 'layerLockPlis', fieldType: $pb.PbFieldType.OU3) + ..aOM<$1.Timestamp>(36, _omitFieldNames ? '' : 'lastLayerLockPli', subBuilder: $1.Timestamp.create) + ..aI(37, _omitFieldNames ? '' : 'nackAcks', fieldType: $pb.PbFieldType.OU3) + ..aI(38, _omitFieldNames ? '' : 'nackRepeated', fieldType: $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, @@ -3951,7 +4132,7 @@ class RTPStats extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RTPStats clone() => RTPStats()..mergeFromMessage(this); + RTPStats clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RTPStats copyWith(void Function(RTPStats) updates) => super.copyWith((message) => updates(message as RTPStats)) as RTPStats; @@ -3963,32 +4144,31 @@ class RTPStats extends $pb.GeneratedMessage { static RTPStats create() => RTPStats._(); @$core.override RTPStats createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RTPStats getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPStats? _defaultInstance; @$pb.TagNumber(1) - $0.Timestamp get startTime => $_getN(0); + $1.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($0.Timestamp value) => $_setField(1, value); + set startTime($1.Timestamp value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) void clearStartTime() => $_clearField(1); @$pb.TagNumber(1) - $0.Timestamp ensureStartTime() => $_ensure(0); + $1.Timestamp ensureStartTime() => $_ensure(0); @$pb.TagNumber(2) - $0.Timestamp get endTime => $_getN(1); + $1.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($0.Timestamp value) => $_setField(2, value); + set endTime($1.Timestamp value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) void clearEndTime() => $_clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureEndTime() => $_ensure(1); + $1.Timestamp ensureEndTime() => $_ensure(1); @$pb.TagNumber(3) $core.double get duration => $_getN(2); @@ -4210,15 +4390,15 @@ class RTPStats extends $pb.GeneratedMessage { void clearPlis() => $_clearField(27); @$pb.TagNumber(28) - $0.Timestamp get lastPli => $_getN(27); + $1.Timestamp get lastPli => $_getN(27); @$pb.TagNumber(28) - set lastPli($0.Timestamp value) => $_setField(28, value); + set lastPli($1.Timestamp value) => $_setField(28, value); @$pb.TagNumber(28) $core.bool hasLastPli() => $_has(27); @$pb.TagNumber(28) void clearLastPli() => $_clearField(28); @$pb.TagNumber(28) - $0.Timestamp ensureLastPli() => $_ensure(27); + $1.Timestamp ensureLastPli() => $_ensure(27); @$pb.TagNumber(29) $core.int get firs => $_getIZ(28); @@ -4230,15 +4410,15 @@ class RTPStats extends $pb.GeneratedMessage { void clearFirs() => $_clearField(29); @$pb.TagNumber(30) - $0.Timestamp get lastFir => $_getN(29); + $1.Timestamp get lastFir => $_getN(29); @$pb.TagNumber(30) - set lastFir($0.Timestamp value) => $_setField(30, value); + set lastFir($1.Timestamp value) => $_setField(30, value); @$pb.TagNumber(30) $core.bool hasLastFir() => $_has(29); @$pb.TagNumber(30) void clearLastFir() => $_clearField(30); @$pb.TagNumber(30) - $0.Timestamp ensureLastFir() => $_ensure(29); + $1.Timestamp ensureLastFir() => $_ensure(29); @$pb.TagNumber(31) $core.int get rttCurrent => $_getIZ(30); @@ -4268,15 +4448,15 @@ class RTPStats extends $pb.GeneratedMessage { void clearKeyFrames() => $_clearField(33); @$pb.TagNumber(34) - $0.Timestamp get lastKeyFrame => $_getN(33); + $1.Timestamp get lastKeyFrame => $_getN(33); @$pb.TagNumber(34) - set lastKeyFrame($0.Timestamp value) => $_setField(34, value); + set lastKeyFrame($1.Timestamp value) => $_setField(34, value); @$pb.TagNumber(34) $core.bool hasLastKeyFrame() => $_has(33); @$pb.TagNumber(34) void clearLastKeyFrame() => $_clearField(34); @$pb.TagNumber(34) - $0.Timestamp ensureLastKeyFrame() => $_ensure(33); + $1.Timestamp ensureLastKeyFrame() => $_ensure(33); @$pb.TagNumber(35) $core.int get layerLockPlis => $_getIZ(34); @@ -4288,15 +4468,15 @@ class RTPStats extends $pb.GeneratedMessage { void clearLayerLockPlis() => $_clearField(35); @$pb.TagNumber(36) - $0.Timestamp get lastLayerLockPli => $_getN(35); + $1.Timestamp get lastLayerLockPli => $_getN(35); @$pb.TagNumber(36) - set lastLayerLockPli($0.Timestamp value) => $_setField(36, value); + set lastLayerLockPli($1.Timestamp value) => $_setField(36, value); @$pb.TagNumber(36) $core.bool hasLastLayerLockPli() => $_has(35); @$pb.TagNumber(36) void clearLastLayerLockPli() => $_clearField(36); @$pb.TagNumber(36) - $0.Timestamp ensureLastLayerLockPli() => $_ensure(35); + $1.Timestamp ensureLastLayerLockPli() => $_ensure(35); @$pb.TagNumber(37) $core.int get nackAcks => $_getIZ(36); @@ -4420,19 +4600,19 @@ class RTCPSenderReportState extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RTCPSenderReportState', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'rtpTimestamp', $pb.PbFieldType.OU3) + ..aI(1, _omitFieldNames ? '' : 'rtpTimestamp', fieldType: $pb.PbFieldType.OU3) ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'rtpTimestampExt', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'ntpTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..aInt64(4, _omitFieldNames ? '' : 'at') ..aInt64(5, _omitFieldNames ? '' : 'atAdjusted') - ..a<$core.int>(6, _omitFieldNames ? '' : 'packets', $pb.PbFieldType.OU3) + ..aI(6, _omitFieldNames ? '' : 'packets', fieldType: $pb.PbFieldType.OU3) ..a<$fixnum.Int64>(7, _omitFieldNames ? '' : 'octets', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RTCPSenderReportState clone() => RTCPSenderReportState()..mergeFromMessage(this); + RTCPSenderReportState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RTCPSenderReportState copyWith(void Function(RTCPSenderReportState) updates) => super.copyWith((message) => updates(message as RTCPSenderReportState)) as RTCPSenderReportState; @@ -4444,7 +4624,6 @@ class RTCPSenderReportState extends $pb.GeneratedMessage { static RTCPSenderReportState create() => RTCPSenderReportState._(); @$core.override RTCPSenderReportState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RTCPSenderReportState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -4556,7 +4735,7 @@ class RTPForwarderState extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..oo(0, [7]) ..aOB(1, _omitFieldNames ? '' : 'started') - ..a<$core.int>(2, _omitFieldNames ? '' : 'referenceLayerSpatial', $pb.PbFieldType.O3) + ..aI(2, _omitFieldNames ? '' : 'referenceLayerSpatial') ..aInt64(3, _omitFieldNames ? '' : 'preStartTime') ..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'extFirstTimestamp', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) @@ -4564,12 +4743,12 @@ class RTPForwarderState extends $pb.GeneratedMessage { defaultOrMaker: $fixnum.Int64.ZERO) ..aOM(6, _omitFieldNames ? '' : 'rtpMunger', subBuilder: RTPMungerState.create) ..aOM(7, _omitFieldNames ? '' : 'vp8Munger', subBuilder: VP8MungerState.create) - ..pc(8, _omitFieldNames ? '' : 'senderReportState', $pb.PbFieldType.PM, + ..pPM(8, _omitFieldNames ? '' : 'senderReportState', subBuilder: RTCPSenderReportState.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RTPForwarderState clone() => RTPForwarderState()..mergeFromMessage(this); + RTPForwarderState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RTPForwarderState copyWith(void Function(RTPForwarderState) updates) => super.copyWith((message) => updates(message as RTPForwarderState)) as RTPForwarderState; @@ -4581,13 +4760,14 @@ class RTPForwarderState extends $pb.GeneratedMessage { static RTPForwarderState create() => RTPForwarderState._(); @$core.override RTPForwarderState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RTPForwarderState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPForwarderState? _defaultInstance; + @$pb.TagNumber(7) RTPForwarderState_CodecMunger whichCodecMunger() => _RTPForwarderState_CodecMungerByTag[$_whichOneof(0)]!; + @$pb.TagNumber(7) void clearCodecMunger() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) @@ -4703,7 +4883,7 @@ class RTPMungerState extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RTPMungerState clone() => RTPMungerState()..mergeFromMessage(this); + RTPMungerState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RTPMungerState copyWith(void Function(RTPMungerState) updates) => super.copyWith((message) => updates(message as RTPMungerState)) as RTPMungerState; @@ -4715,7 +4895,6 @@ class RTPMungerState extends $pb.GeneratedMessage { static RTPMungerState create() => RTPMungerState._(); @$core.override RTPMungerState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RTPMungerState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RTPMungerState? _defaultInstance; @@ -4806,17 +4985,17 @@ class VP8MungerState extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VP8MungerState', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'extLastPictureId', $pb.PbFieldType.O3) + ..aI(1, _omitFieldNames ? '' : 'extLastPictureId') ..aOB(2, _omitFieldNames ? '' : 'pictureIdUsed') - ..a<$core.int>(3, _omitFieldNames ? '' : 'lastTl0PicIdx', $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'lastTl0PicIdx', fieldType: $pb.PbFieldType.OU3) ..aOB(4, _omitFieldNames ? '' : 'tl0PicIdxUsed') ..aOB(5, _omitFieldNames ? '' : 'tidUsed') - ..a<$core.int>(6, _omitFieldNames ? '' : 'lastKeyIdx', $pb.PbFieldType.OU3) + ..aI(6, _omitFieldNames ? '' : 'lastKeyIdx', fieldType: $pb.PbFieldType.OU3) ..aOB(7, _omitFieldNames ? '' : 'keyIdxUsed') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - VP8MungerState clone() => VP8MungerState()..mergeFromMessage(this); + VP8MungerState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') VP8MungerState copyWith(void Function(VP8MungerState) updates) => super.copyWith((message) => updates(message as VP8MungerState)) as VP8MungerState; @@ -4828,7 +5007,6 @@ class VP8MungerState extends $pb.GeneratedMessage { static VP8MungerState create() => VP8MungerState._(); @$core.override VP8MungerState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static VP8MungerState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static VP8MungerState? _defaultInstance; @@ -4919,11 +5097,11 @@ class TimedVersion extends $pb.GeneratedMessage { 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) + ..aI(2, _omitFieldNames ? '' : 'ticks') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TimedVersion clone() => TimedVersion()..mergeFromMessage(this); + TimedVersion clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TimedVersion copyWith(void Function(TimedVersion) updates) => super.copyWith((message) => updates(message as TimedVersion)) as TimedVersion; @@ -4935,7 +5113,6 @@ class TimedVersion extends $pb.GeneratedMessage { static TimedVersion create() => TimedVersion._(); @$core.override TimedVersion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TimedVersion getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TimedVersion? _defaultInstance; @@ -4988,18 +5165,16 @@ class DataStream_TextHeader extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataStream.TextHeader', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'operationType', $pb.PbFieldType.OE, - defaultOrMaker: DataStream_OperationType.CREATE, - valueOf: DataStream_OperationType.valueOf, + ..aE(1, _omitFieldNames ? '' : 'operationType', enumValues: DataStream_OperationType.values) - ..a<$core.int>(2, _omitFieldNames ? '' : 'version', $pb.PbFieldType.O3) + ..aI(2, _omitFieldNames ? '' : 'version') ..aOS(3, _omitFieldNames ? '' : 'replyToStreamId') ..pPS(4, _omitFieldNames ? '' : 'attachedStreamIds') ..aOB(5, _omitFieldNames ? '' : 'generated') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream_TextHeader clone() => DataStream_TextHeader()..mergeFromMessage(this); + DataStream_TextHeader clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream_TextHeader copyWith(void Function(DataStream_TextHeader) updates) => super.copyWith((message) => updates(message as DataStream_TextHeader)) as DataStream_TextHeader; @@ -5011,7 +5186,6 @@ class DataStream_TextHeader extends $pb.GeneratedMessage { static DataStream_TextHeader create() => DataStream_TextHeader._(); @$core.override DataStream_TextHeader createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream_TextHeader getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -5082,7 +5256,7 @@ class DataStream_ByteHeader extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream_ByteHeader clone() => DataStream_ByteHeader()..mergeFromMessage(this); + DataStream_ByteHeader clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream_ByteHeader copyWith(void Function(DataStream_ByteHeader) updates) => super.copyWith((message) => updates(message as DataStream_ByteHeader)) as DataStream_ByteHeader; @@ -5094,7 +5268,6 @@ class DataStream_ByteHeader extends $pb.GeneratedMessage { static DataStream_ByteHeader create() => DataStream_ByteHeader._(); @$core.override DataStream_ByteHeader createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream_ByteHeader getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -5160,8 +5333,7 @@ class DataStream_Header extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'topic') ..aOS(4, _omitFieldNames ? '' : 'mimeType') ..a<$fixnum.Int64>(5, _omitFieldNames ? '' : 'totalLength', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..e(7, _omitFieldNames ? '' : 'encryptionType', $pb.PbFieldType.OE, - defaultOrMaker: Encryption_Type.NONE, valueOf: Encryption_Type.valueOf, enumValues: Encryption_Type.values) + ..aE(7, _omitFieldNames ? '' : 'encryptionType', enumValues: Encryption_Type.values) ..m<$core.String, $core.String>(8, _omitFieldNames ? '' : 'attributes', entryClassName: 'DataStream.Header.AttributesEntry', keyFieldType: $pb.PbFieldType.OS, @@ -5172,7 +5344,7 @@ class DataStream_Header extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream_Header clone() => DataStream_Header()..mergeFromMessage(this); + DataStream_Header clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream_Header copyWith(void Function(DataStream_Header) updates) => super.copyWith((message) => updates(message as DataStream_Header)) as DataStream_Header; @@ -5184,13 +5356,16 @@ class DataStream_Header extends $pb.GeneratedMessage { static DataStream_Header create() => DataStream_Header._(); @$core.override DataStream_Header createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream_Header getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DataStream_Header? _defaultInstance; + @$pb.TagNumber(9) + @$pb.TagNumber(10) DataStream_Header_ContentHeader whichContentHeader() => _DataStream_Header_ContentHeaderByTag[$_whichOneof(0)]!; + @$pb.TagNumber(9) + @$pb.TagNumber(10) void clearContentHeader() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) @@ -5308,12 +5483,12 @@ class DataStream_Chunk extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'streamId') ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'chunkIndex', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) ..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'content', $pb.PbFieldType.OY) - ..a<$core.int>(4, _omitFieldNames ? '' : 'version', $pb.PbFieldType.O3) + ..aI(4, _omitFieldNames ? '' : 'version') ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'iv', $pb.PbFieldType.OY) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream_Chunk clone() => DataStream_Chunk()..mergeFromMessage(this); + DataStream_Chunk clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream_Chunk copyWith(void Function(DataStream_Chunk) updates) => super.copyWith((message) => updates(message as DataStream_Chunk)) as DataStream_Chunk; @@ -5325,7 +5500,6 @@ class DataStream_Chunk extends $pb.GeneratedMessage { static DataStream_Chunk create() => DataStream_Chunk._(); @$core.override DataStream_Chunk createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream_Chunk getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -5415,7 +5589,7 @@ class DataStream_Trailer extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream_Trailer clone() => DataStream_Trailer()..mergeFromMessage(this); + DataStream_Trailer clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream_Trailer copyWith(void Function(DataStream_Trailer) updates) => super.copyWith((message) => updates(message as DataStream_Trailer)) as DataStream_Trailer; @@ -5427,7 +5601,6 @@ class DataStream_Trailer extends $pb.GeneratedMessage { static DataStream_Trailer create() => DataStream_Trailer._(); @$core.override DataStream_Trailer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream_Trailer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -5471,7 +5644,7 @@ class DataStream extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataStream clone() => DataStream()..mergeFromMessage(this); + DataStream clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataStream copyWith(void Function(DataStream) updates) => super.copyWith((message) => updates(message as DataStream)) as DataStream; @@ -5483,20 +5656,70 @@ class DataStream extends $pb.GeneratedMessage { static DataStream create() => DataStream._(); @$core.override DataStream createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataStream getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DataStream? _defaultInstance; } +class FilterParams extends $pb.GeneratedMessage { + factory FilterParams({ + $core.Iterable<$core.String>? includeEvents, + $core.Iterable<$core.String>? excludeEvents, + }) { + final result = create(); + if (includeEvents != null) result.includeEvents.addAll(includeEvents); + if (excludeEvents != null) result.excludeEvents.addAll(excludeEvents); + return result; + } + + FilterParams._(); + + factory FilterParams.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory FilterParams.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FilterParams', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'includeEvents') + ..pPS(2, _omitFieldNames ? '' : 'excludeEvents') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + FilterParams clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + FilterParams copyWith(void Function(FilterParams) updates) => + super.copyWith((message) => updates(message as FilterParams)) as FilterParams; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FilterParams create() => FilterParams._(); + @$core.override + FilterParams createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static FilterParams getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FilterParams? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbList<$core.String> get includeEvents => $_getList(0); + + @$pb.TagNumber(2) + $pb.PbList<$core.String> get excludeEvents => $_getList(1); +} + class WebhookConfig extends $pb.GeneratedMessage { factory WebhookConfig({ $core.String? url, $core.String? signingKey, + FilterParams? filterParams, }) { final result = create(); if (url != null) result.url = url; if (signingKey != null) result.signingKey = signingKey; + if (filterParams != null) result.filterParams = filterParams; return result; } @@ -5512,10 +5735,11 @@ class WebhookConfig extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'url') ..aOS(2, _omitFieldNames ? '' : 'signingKey') + ..aOM(3, _omitFieldNames ? '' : 'filterParams', subBuilder: FilterParams.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - WebhookConfig clone() => WebhookConfig()..mergeFromMessage(this); + WebhookConfig clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') WebhookConfig copyWith(void Function(WebhookConfig) updates) => super.copyWith((message) => updates(message as WebhookConfig)) as WebhookConfig; @@ -5527,7 +5751,6 @@ class WebhookConfig extends $pb.GeneratedMessage { static WebhookConfig create() => WebhookConfig._(); @$core.override WebhookConfig createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static WebhookConfig getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static WebhookConfig? _defaultInstance; @@ -5549,6 +5772,17 @@ class WebhookConfig extends $pb.GeneratedMessage { $core.bool hasSigningKey() => $_has(1); @$pb.TagNumber(2) void clearSigningKey() => $_clearField(2); + + @$pb.TagNumber(3) + FilterParams get filterParams => $_getN(2); + @$pb.TagNumber(3) + set filterParams(FilterParams value) => $_setField(3, value); + @$pb.TagNumber(3) + $core.bool hasFilterParams() => $_has(2); + @$pb.TagNumber(3) + void clearFilterParams() => $_clearField(3); + @$pb.TagNumber(3) + FilterParams ensureFilterParams() => $_ensure(2); } class SubscribedAudioCodec extends $pb.GeneratedMessage { @@ -5578,7 +5812,7 @@ class SubscribedAudioCodec extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscribedAudioCodec clone() => SubscribedAudioCodec()..mergeFromMessage(this); + SubscribedAudioCodec clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscribedAudioCodec copyWith(void Function(SubscribedAudioCodec) updates) => super.copyWith((message) => updates(message as SubscribedAudioCodec)) as SubscribedAudioCodec; @@ -5590,7 +5824,6 @@ class SubscribedAudioCodec extends $pb.GeneratedMessage { static SubscribedAudioCodec create() => SubscribedAudioCodec._(); @$core.override SubscribedAudioCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribedAudioCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); diff --git a/lib/src/proto/livekit_models.pbenum.dart b/lib/src/proto/livekit_models.pbenum.dart index 469e1149..b815a6ac 100644 --- a/lib/src/proto/livekit_models.pbenum.dart +++ b/lib/src/proto/livekit_models.pbenum.dart @@ -1,14 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_models.proto -// +// Generated from livekit_models.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; @@ -131,6 +131,23 @@ class TrackSource extends $pb.ProtobufEnum { const TrackSource._(super.value, super.name); } +class DataTrackExtensionID extends $pb.ProtobufEnum { + static const DataTrackExtensionID DTEI_INVALID = DataTrackExtensionID._(0, _omitEnumNames ? '' : 'DTEI_INVALID'); + static const DataTrackExtensionID DTEI_PARTICIPANT_SID = + DataTrackExtensionID._(1, _omitEnumNames ? '' : 'DTEI_PARTICIPANT_SID'); + + static const $core.List values = [ + DTEI_INVALID, + DTEI_PARTICIPANT_SID, + ]; + + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1); + static DataTrackExtensionID? valueOf($core.int value) => + value < 0 || value >= _byValue.length ? null : _byValue[value]; + + const DataTrackExtensionID._(super.value, super.name); +} + class VideoQuality extends $pb.ProtobufEnum { static const VideoQuality LOW = VideoQuality._(0, _omitEnumNames ? '' : 'LOW'); static const VideoQuality MEDIUM = VideoQuality._(1, _omitEnumNames ? '' : 'MEDIUM'); @@ -375,15 +392,19 @@ class ParticipantInfo_Kind extends $pb.ProtobufEnum { /// LiveKit agents static const ParticipantInfo_Kind AGENT = ParticipantInfo_Kind._(4, _omitEnumNames ? '' : 'AGENT'); + /// Connectors participants + static const ParticipantInfo_Kind CONNECTOR = ParticipantInfo_Kind._(7, _omitEnumNames ? '' : 'CONNECTOR'); + static const $core.List values = [ STANDARD, INGRESS, EGRESS, SIP, AGENT, + CONNECTOR, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 4); + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 7); static ParticipantInfo_Kind? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; @@ -395,13 +416,19 @@ class ParticipantInfo_KindDetail extends $pb.ProtobufEnum { ParticipantInfo_KindDetail._(0, _omitEnumNames ? '' : 'CLOUD_AGENT'); static const ParticipantInfo_KindDetail FORWARDED = ParticipantInfo_KindDetail._(1, _omitEnumNames ? '' : 'FORWARDED'); + static const ParticipantInfo_KindDetail CONNECTOR_WHATSAPP = + ParticipantInfo_KindDetail._(2, _omitEnumNames ? '' : 'CONNECTOR_WHATSAPP'); + static const ParticipantInfo_KindDetail CONNECTOR_TWILIO = + ParticipantInfo_KindDetail._(3, _omitEnumNames ? '' : 'CONNECTOR_TWILIO'); static const $core.List values = [ CLOUD_AGENT, FORWARDED, + CONNECTOR_WHATSAPP, + CONNECTOR_TWILIO, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1); + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3); static ParticipantInfo_KindDetail? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; diff --git a/lib/src/proto/livekit_models.pbjson.dart b/lib/src/proto/livekit_models.pbjson.dart index 0b7bd06e..4f5746a7 100644 --- a/lib/src/proto/livekit_models.pbjson.dart +++ b/lib/src/proto/livekit_models.pbjson.dart @@ -1,14 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_models.proto -// +// Generated from livekit_models.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -106,6 +107,20 @@ final $typed_data.Uint8List trackSourceDescriptor = $convert.base64Decode('CgtUcmFja1NvdXJjZRILCgdVTktOT1dOEAASCgoGQ0FNRVJBEAESDgoKTUlDUk9QSE9ORRACEh' 'AKDFNDUkVFTl9TSEFSRRADEhYKElNDUkVFTl9TSEFSRV9BVURJTxAE'); +@$core.Deprecated('Use dataTrackExtensionIDDescriptor instead') +const DataTrackExtensionID$json = { + '1': 'DataTrackExtensionID', + '2': [ + {'1': 'DTEI_INVALID', '2': 0}, + {'1': 'DTEI_PARTICIPANT_SID', '2': 1}, + ], +}; + +/// Descriptor for `DataTrackExtensionID`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List dataTrackExtensionIDDescriptor = + $convert.base64Decode('ChREYXRhVHJhY2tFeHRlbnNpb25JRBIQCgxEVEVJX0lOVkFMSUQQABIYChREVEVJX1BBUlRJQ0' + 'lQQU5UX1NJRBAB'); + @$core.Deprecated('Use videoQualityDescriptor instead') const VideoQuality$json = { '1': 'VideoQuality', @@ -294,7 +309,7 @@ const Room$json = { {'1': 'creation_time_ms', '3': 15, '4': 1, '5': 3, '10': 'creationTimeMs'}, {'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': 'metadata', '3': 8, '4': 1, '5': 9, '8': {}, '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'}, @@ -310,10 +325,11 @@ final $typed_data.Uint8List roomDescriptor = '50cxIjCg1jcmVhdGlvbl90aW1lGAUgASgDUgxjcmVhdGlvblRpbWUSKAoQY3JlYXRpb25fdGlt' 'ZV9tcxgPIAEoA1IOY3JlYXRpb25UaW1lTXMSIwoNdHVybl9wYXNzd29yZBgGIAEoCVIMdHVybl' 'Bhc3N3b3JkEjUKDmVuYWJsZWRfY29kZWNzGAcgAygLMg4ubGl2ZWtpdC5Db2RlY1INZW5hYmxl' - 'ZENvZGVjcxIaCghtZXRhZGF0YRgIIAEoCVIIbWV0YWRhdGESKQoQbnVtX3BhcnRpY2lwYW50cx' - 'gJIAEoDVIPbnVtUGFydGljaXBhbnRzEiUKDm51bV9wdWJsaXNoZXJzGAsgASgNUg1udW1QdWJs' - 'aXNoZXJzEikKEGFjdGl2ZV9yZWNvcmRpbmcYCiABKAhSD2FjdGl2ZVJlY29yZGluZxIvCgd2ZX' - 'JzaW9uGA0gASgLMhUubGl2ZWtpdC5UaW1lZFZlcnNpb25SB3ZlcnNpb24='); + 'ZENvZGVjcxJCCghtZXRhZGF0YRgIIAEoCUImiLUYAZK1GB48cmVkYWN0ZWQgKHt7IC5TaXplIH' + '19IGJ5dGVzKT5SCG1ldGFkYXRhEikKEG51bV9wYXJ0aWNpcGFudHMYCSABKA1SD251bVBhcnRp' + 'Y2lwYW50cxIlCg5udW1fcHVibGlzaGVycxgLIAEoDVINbnVtUHVibGlzaGVycxIpChBhY3Rpdm' + 'VfcmVjb3JkaW5nGAogASgIUg9hY3RpdmVSZWNvcmRpbmcSLwoHdmVyc2lvbhgNIAEoCzIVLmxp' + 'dmVraXQuVGltZWRWZXJzaW9uUgd2ZXJzaW9u'); @$core.Deprecated('Use codecDescriptor instead') const Codec$json = { @@ -392,18 +408,27 @@ const ParticipantInfo$json = { {'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': 'metadata', '3': 5, '4': 1, '5': 9, '8': {}, '10': 'metadata'}, {'1': 'joined_at', '3': 6, '4': 1, '5': 3, '10': 'joinedAt'}, {'1': 'joined_at_ms', '3': 17, '4': 1, '5': 3, '10': 'joinedAtMs'}, - {'1': 'name', '3': 9, '4': 1, '5': 9, '10': 'name'}, + {'1': 'name', '3': 9, '4': 1, '5': 9, '8': {}, '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'}, {'1': 'kind', '3': 14, '4': 1, '5': 14, '6': '.livekit.ParticipantInfo.Kind', '10': 'kind'}, - {'1': 'attributes', '3': 15, '4': 3, '5': 11, '6': '.livekit.ParticipantInfo.AttributesEntry', '10': 'attributes'}, + { + '1': 'attributes', + '3': 15, + '4': 3, + '5': 11, + '6': '.livekit.ParticipantInfo.AttributesEntry', + '8': {}, + '10': 'attributes' + }, {'1': 'disconnect_reason', '3': 16, '4': 1, '5': 14, '6': '.livekit.DisconnectReason', '10': 'disconnectReason'}, {'1': 'kind_details', '3': 18, '4': 3, '5': 14, '6': '.livekit.ParticipantInfo.KindDetail', '10': 'kindDetails'}, + {'1': 'data_tracks', '3': 19, '4': 3, '5': 11, '6': '.livekit.DataTrackInfo', '10': 'dataTracks'}, ], '3': [ParticipantInfo_AttributesEntry$json], '4': [ParticipantInfo_State$json, ParticipantInfo_Kind$json, ParticipantInfo_KindDetail$json], @@ -439,6 +464,7 @@ const ParticipantInfo_Kind$json = { {'1': 'EGRESS', '2': 2}, {'1': 'SIP', '2': 3}, {'1': 'AGENT', '2': 4}, + {'1': 'CONNECTOR', '2': 7}, ], }; @@ -448,6 +474,8 @@ const ParticipantInfo_KindDetail$json = { '2': [ {'1': 'CLOUD_AGENT', '2': 0}, {'1': 'FORWARDED', '2': 1}, + {'1': 'CONNECTOR_WHATSAPP', '2': 2}, + {'1': 'CONNECTOR_TWILIO', '2': 3}, ], }; @@ -455,21 +483,25 @@ const ParticipantInfo_KindDetail$json = { final $typed_data.Uint8List participantInfoDescriptor = $convert.base64Decode('Cg9QYXJ0aWNpcGFudEluZm8SEAoDc2lkGAEgASgJUgNzaWQSGgoIaWRlbnRpdHkYAiABKAlSCG' 'lkZW50aXR5EjQKBXN0YXRlGAMgASgOMh4ubGl2ZWtpdC5QYXJ0aWNpcGFudEluZm8uU3RhdGVS' - 'BXN0YXRlEioKBnRyYWNrcxgEIAMoCzISLmxpdmVraXQuVHJhY2tJbmZvUgZ0cmFja3MSGgoIbW' - 'V0YWRhdGEYBSABKAlSCG1ldGFkYXRhEhsKCWpvaW5lZF9hdBgGIAEoA1IIam9pbmVkQXQSIAoM' - 'am9pbmVkX2F0X21zGBEgASgDUgpqb2luZWRBdE1zEhIKBG5hbWUYCSABKAlSBG5hbWUSGAoHdm' - 'Vyc2lvbhgKIAEoDVIHdmVyc2lvbhI+CgpwZXJtaXNzaW9uGAsgASgLMh4ubGl2ZWtpdC5QYXJ0' - 'aWNpcGFudFBlcm1pc3Npb25SCnBlcm1pc3Npb24SFgoGcmVnaW9uGAwgASgJUgZyZWdpb24SIQ' - 'oMaXNfcHVibGlzaGVyGA0gASgIUgtpc1B1Ymxpc2hlchIxCgRraW5kGA4gASgOMh0ubGl2ZWtp' - 'dC5QYXJ0aWNpcGFudEluZm8uS2luZFIEa2luZBJICgphdHRyaWJ1dGVzGA8gAygLMigubGl2ZW' - 'tpdC5QYXJ0aWNpcGFudEluZm8uQXR0cmlidXRlc0VudHJ5UgphdHRyaWJ1dGVzEkYKEWRpc2Nv' - 'bm5lY3RfcmVhc29uGBAgASgOMhkubGl2ZWtpdC5EaXNjb25uZWN0UmVhc29uUhBkaXNjb25uZW' - 'N0UmVhc29uEkYKDGtpbmRfZGV0YWlscxgSIAMoDjIjLmxpdmVraXQuUGFydGljaXBhbnRJbmZv' - 'LktpbmREZXRhaWxSC2tpbmREZXRhaWxzGj0KD0F0dHJpYnV0ZXNFbnRyeRIQCgNrZXkYASABKA' - 'lSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIj4KBVN0YXRlEgsKB0pPSU5JTkcQABIK' - 'CgZKT0lORUQQARIKCgZBQ1RJVkUQAhIQCgxESVNDT05ORUNURUQQAyJBCgRLaW5kEgwKCFNUQU' - '5EQVJEEAASCwoHSU5HUkVTUxABEgoKBkVHUkVTUxACEgcKA1NJUBADEgkKBUFHRU5UEAQiLAoK' - 'S2luZERldGFpbBIPCgtDTE9VRF9BR0VOVBAAEg0KCUZPUldBUkRFRBAB'); + 'BXN0YXRlEioKBnRyYWNrcxgEIAMoCzISLmxpdmVraXQuVHJhY2tJbmZvUgZ0cmFja3MSQgoIbW' + 'V0YWRhdGEYBSABKAlCJoi1GAGStRgePHJlZGFjdGVkICh7eyAuU2l6ZSB9fSBieXRlcyk+Ught' + 'ZXRhZGF0YRIbCglqb2luZWRfYXQYBiABKANSCGpvaW5lZEF0EiAKDGpvaW5lZF9hdF9tcxgRIA' + 'EoA1IKam9pbmVkQXRNcxIYCgRuYW1lGAkgASgJQgSItRgBUgRuYW1lEhgKB3ZlcnNpb24YCiAB' + 'KA1SB3ZlcnNpb24SPgoKcGVybWlzc2lvbhgLIAEoCzIeLmxpdmVraXQuUGFydGljaXBhbnRQZX' + 'JtaXNzaW9uUgpwZXJtaXNzaW9uEhYKBnJlZ2lvbhgMIAEoCVIGcmVnaW9uEiEKDGlzX3B1Ymxp' + 'c2hlchgNIAEoCFILaXNQdWJsaXNoZXISMQoEa2luZBgOIAEoDjIdLmxpdmVraXQuUGFydGljaX' + 'BhbnRJbmZvLktpbmRSBGtpbmQScAoKYXR0cmlidXRlcxgPIAMoCzIoLmxpdmVraXQuUGFydGlj' + 'aXBhbnRJbmZvLkF0dHJpYnV0ZXNFbnRyeUImiLUYAZK1GB48cmVkYWN0ZWQgKHt7IC5TaXplIH' + '19IGJ5dGVzKT5SCmF0dHJpYnV0ZXMSRgoRZGlzY29ubmVjdF9yZWFzb24YECABKA4yGS5saXZl' + 'a2l0LkRpc2Nvbm5lY3RSZWFzb25SEGRpc2Nvbm5lY3RSZWFzb24SRgoMa2luZF9kZXRhaWxzGB' + 'IgAygOMiMubGl2ZWtpdC5QYXJ0aWNpcGFudEluZm8uS2luZERldGFpbFILa2luZERldGFpbHMS' + 'NwoLZGF0YV90cmFja3MYEyADKAsyFi5saXZla2l0LkRhdGFUcmFja0luZm9SCmRhdGFUcmFja3' + 'MaPQoPQXR0cmlidXRlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2' + 'YWx1ZToCOAEiPgoFU3RhdGUSCwoHSk9JTklORxAAEgoKBkpPSU5FRBABEgoKBkFDVElWRRACEh' + 'AKDERJU0NPTk5FQ1RFRBADIlAKBEtpbmQSDAoIU1RBTkRBUkQQABILCgdJTkdSRVNTEAESCgoG' + 'RUdSRVNTEAISBwoDU0lQEAMSCQoFQUdFTlQQBBINCglDT05ORUNUT1IQByJaCgpLaW5kRGV0YW' + 'lsEg8KC0NMT1VEX0FHRU5UEAASDQoJRk9SV0FSREVEEAESFgoSQ09OTkVDVE9SX1dIQVRTQVBQ' + 'EAISFAoQQ09OTkVDVE9SX1RXSUxJTxAD'); @$core.Deprecated('Use encryptionDescriptor instead') const Encryption$json = { @@ -518,24 +550,10 @@ const TrackInfo$json = { '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': 'name', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'name'}, {'1': 'muted', '3': 4, '4': 1, '5': 8, '10': 'muted'}, - { - '1': 'width', - '3': 5, - '4': 1, - '5': 13, - '8': {'3': true}, - '10': 'width', - }, - { - '1': 'height', - '3': 6, - '4': 1, - '5': 13, - '8': {'3': true}, - '10': 'height', - }, + {'1': 'width', '3': 5, '4': 1, '5': 13, '10': 'width'}, + {'1': 'height', '3': 6, '4': 1, '5': 13, '10': 'height'}, { '1': 'simulcast', '3': 7, @@ -592,19 +610,67 @@ const TrackInfo$json = { /// Descriptor for `TrackInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trackInfoDescriptor = $convert.base64Decode('CglUcmFja0luZm8SEAoDc2lkGAEgASgJUgNzaWQSJgoEdHlwZRgCIAEoDjISLmxpdmVraXQuVH' - 'JhY2tUeXBlUgR0eXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSFAoFbXV0ZWQYBCABKAhSBW11dGVk' - 'EhgKBXdpZHRoGAUgASgNQgIYAVIFd2lkdGgSGgoGaGVpZ2h0GAYgASgNQgIYAVIGaGVpZ2h0Ei' - 'AKCXNpbXVsY2FzdBgHIAEoCEICGAFSCXNpbXVsY2FzdBIjCgtkaXNhYmxlX2R0eBgIIAEoCEIC' - 'GAFSCmRpc2FibGVEdHgSLAoGc291cmNlGAkgASgOMhQubGl2ZWtpdC5UcmFja1NvdXJjZVIGc2' - '91cmNlEi8KBmxheWVycxgKIAMoCzITLmxpdmVraXQuVmlkZW9MYXllckICGAFSBmxheWVycxIb' - 'CgltaW1lX3R5cGUYCyABKAlSCG1pbWVUeXBlEhAKA21pZBgMIAEoCVIDbWlkEjMKBmNvZGVjcx' - 'gNIAMoCzIbLmxpdmVraXQuU2ltdWxjYXN0Q29kZWNJbmZvUgZjb2RlY3MSGgoGc3RlcmVvGA4g' - 'ASgIQgIYAVIGc3RlcmVvEh8KC2Rpc2FibGVfcmVkGA8gASgIUgpkaXNhYmxlUmVkEjgKCmVuY3' - 'J5cHRpb24YECABKA4yGC5saXZla2l0LkVuY3J5cHRpb24uVHlwZVIKZW5jcnlwdGlvbhIWCgZz' - 'dHJlYW0YESABKAlSBnN0cmVhbRIvCgd2ZXJzaW9uGBIgASgLMhUubGl2ZWtpdC5UaW1lZFZlcn' - 'Npb25SB3ZlcnNpb24SQQoOYXVkaW9fZmVhdHVyZXMYEyADKA4yGi5saXZla2l0LkF1ZGlvVHJh' - 'Y2tGZWF0dXJlUg1hdWRpb0ZlYXR1cmVzEkoKE2JhY2t1cF9jb2RlY19wb2xpY3kYFCABKA4yGi' - '5saXZla2l0LkJhY2t1cENvZGVjUG9saWN5UhFiYWNrdXBDb2RlY1BvbGljeQ=='); + 'JhY2tUeXBlUgR0eXBlEhgKBG5hbWUYAyABKAlCBIi1GAFSBG5hbWUSFAoFbXV0ZWQYBCABKAhS' + 'BW11dGVkEhQKBXdpZHRoGAUgASgNUgV3aWR0aBIWCgZoZWlnaHQYBiABKA1SBmhlaWdodBIgCg' + 'lzaW11bGNhc3QYByABKAhCAhgBUglzaW11bGNhc3QSIwoLZGlzYWJsZV9kdHgYCCABKAhCAhgB' + 'UgpkaXNhYmxlRHR4EiwKBnNvdXJjZRgJIAEoDjIULmxpdmVraXQuVHJhY2tTb3VyY2VSBnNvdX' + 'JjZRIvCgZsYXllcnMYCiADKAsyEy5saXZla2l0LlZpZGVvTGF5ZXJCAhgBUgZsYXllcnMSGwoJ' + 'bWltZV90eXBlGAsgASgJUghtaW1lVHlwZRIQCgNtaWQYDCABKAlSA21pZBIzCgZjb2RlY3MYDS' + 'ADKAsyGy5saXZla2l0LlNpbXVsY2FzdENvZGVjSW5mb1IGY29kZWNzEhoKBnN0ZXJlbxgOIAEo' + 'CEICGAFSBnN0ZXJlbxIfCgtkaXNhYmxlX3JlZBgPIAEoCFIKZGlzYWJsZVJlZBI4CgplbmNyeX' + 'B0aW9uGBAgASgOMhgubGl2ZWtpdC5FbmNyeXB0aW9uLlR5cGVSCmVuY3J5cHRpb24SFgoGc3Ry' + 'ZWFtGBEgASgJUgZzdHJlYW0SLwoHdmVyc2lvbhgSIAEoCzIVLmxpdmVraXQuVGltZWRWZXJzaW' + '9uUgd2ZXJzaW9uEkEKDmF1ZGlvX2ZlYXR1cmVzGBMgAygOMhoubGl2ZWtpdC5BdWRpb1RyYWNr' + 'RmVhdHVyZVINYXVkaW9GZWF0dXJlcxJKChNiYWNrdXBfY29kZWNfcG9saWN5GBQgASgOMhoubG' + 'l2ZWtpdC5CYWNrdXBDb2RlY1BvbGljeVIRYmFja3VwQ29kZWNQb2xpY3k='); + +@$core.Deprecated('Use dataTrackInfoDescriptor instead') +const DataTrackInfo$json = { + '1': 'DataTrackInfo', + '2': [ + {'1': 'pub_handle', '3': 1, '4': 1, '5': 13, '10': 'pubHandle'}, + {'1': 'sid', '3': 2, '4': 1, '5': 9, '10': 'sid'}, + {'1': 'name', '3': 3, '4': 1, '5': 9, '10': 'name'}, + {'1': 'encryption', '3': 4, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + ], +}; + +/// Descriptor for `DataTrackInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dataTrackInfoDescriptor = + $convert.base64Decode('Cg1EYXRhVHJhY2tJbmZvEh0KCnB1Yl9oYW5kbGUYASABKA1SCXB1YkhhbmRsZRIQCgNzaWQYAi' + 'ABKAlSA3NpZBISCgRuYW1lGAMgASgJUgRuYW1lEjgKCmVuY3J5cHRpb24YBCABKA4yGC5saXZl' + 'a2l0LkVuY3J5cHRpb24uVHlwZVIKZW5jcnlwdGlvbg=='); + +@$core.Deprecated('Use dataTrackExtensionParticipantSidDescriptor instead') +const DataTrackExtensionParticipantSid$json = { + '1': 'DataTrackExtensionParticipantSid', + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 14, '6': '.livekit.DataTrackExtensionID', '10': 'id'}, + {'1': 'participant_sid', '3': 2, '4': 1, '5': 9, '10': 'participantSid'}, + ], +}; + +/// Descriptor for `DataTrackExtensionParticipantSid`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dataTrackExtensionParticipantSidDescriptor = + $convert.base64Decode('CiBEYXRhVHJhY2tFeHRlbnNpb25QYXJ0aWNpcGFudFNpZBItCgJpZBgBIAEoDjIdLmxpdmVraX' + 'QuRGF0YVRyYWNrRXh0ZW5zaW9uSURSAmlkEicKD3BhcnRpY2lwYW50X3NpZBgCIAEoCVIOcGFy' + 'dGljaXBhbnRTaWQ='); + +@$core.Deprecated('Use dataTrackSubscriptionOptionsDescriptor instead') +const DataTrackSubscriptionOptions$json = { + '1': 'DataTrackSubscriptionOptions', + '2': [ + {'1': 'target_fps', '3': 1, '4': 1, '5': 13, '9': 0, '10': 'targetFps', '17': true}, + ], + '8': [ + {'1': '_target_fps'}, + ], +}; + +/// Descriptor for `DataTrackSubscriptionOptions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dataTrackSubscriptionOptionsDescriptor = + $convert.base64Decode('ChxEYXRhVHJhY2tTdWJzY3JpcHRpb25PcHRpb25zEiIKCnRhcmdldF9mcHMYASABKA1IAFIJdG' + 'FyZ2V0RnBziAEBQg0KC190YXJnZXRfZnBz'); @$core.Deprecated('Use videoLayerDescriptor instead') const VideoLayer$json = { @@ -1566,19 +1632,35 @@ final $typed_data.Uint8List dataStreamDescriptor = 'x1ZRgCIAEoCVIFdmFsdWU6AjgBIkEKDU9wZXJhdGlvblR5cGUSCgoGQ1JFQVRFEAASCgoGVVBE' 'QVRFEAESCgoGREVMRVRFEAISDAoIUkVBQ1RJT04QAw=='); +@$core.Deprecated('Use filterParamsDescriptor instead') +const FilterParams$json = { + '1': 'FilterParams', + '2': [ + {'1': 'include_events', '3': 1, '4': 3, '5': 9, '10': 'includeEvents'}, + {'1': 'exclude_events', '3': 2, '4': 3, '5': 9, '10': 'excludeEvents'}, + ], +}; + +/// Descriptor for `FilterParams`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List filterParamsDescriptor = + $convert.base64Decode('CgxGaWx0ZXJQYXJhbXMSJQoOaW5jbHVkZV9ldmVudHMYASADKAlSDWluY2x1ZGVFdmVudHMSJQ' + 'oOZXhjbHVkZV9ldmVudHMYAiADKAlSDWV4Y2x1ZGVFdmVudHM='); + @$core.Deprecated('Use webhookConfigDescriptor instead') const WebhookConfig$json = { '1': 'WebhookConfig', '2': [ {'1': 'url', '3': 1, '4': 1, '5': 9, '10': 'url'}, {'1': 'signing_key', '3': 2, '4': 1, '5': 9, '10': 'signingKey'}, + {'1': 'filter_params', '3': 3, '4': 1, '5': 11, '6': '.livekit.FilterParams', '10': 'filterParams'}, ], }; /// Descriptor for `WebhookConfig`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List webhookConfigDescriptor = $convert.base64Decode('Cg1XZWJob29rQ29uZmlnEhAKA3VybBgBIAEoCVIDdXJsEh8KC3NpZ25pbmdfa2V5GAIgASgJUg' - 'pzaWduaW5nS2V5'); + 'pzaWduaW5nS2V5EjoKDWZpbHRlcl9wYXJhbXMYAyABKAsyFS5saXZla2l0LkZpbHRlclBhcmFt' + 'c1IMZmlsdGVyUGFyYW1z'); @$core.Deprecated('Use subscribedAudioCodecDescriptor instead') const SubscribedAudioCodec$json = { diff --git a/lib/src/proto/livekit_rtc.pb.dart b/lib/src/proto/livekit_rtc.pb.dart index 40049d6e..42457eb8 100644 --- a/lib/src/proto/livekit_rtc.pb.dart +++ b/lib/src/proto/livekit_rtc.pb.dart @@ -1,21 +1,21 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_rtc.proto -// +// Generated from livekit_rtc.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'livekit_models.pb.dart' as $2; +import 'livekit_models.pb.dart' as $0; import 'livekit_rtc.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; @@ -40,6 +40,9 @@ enum SignalRequest_Message { pingReq, updateAudioTrack, updateVideoTrack, + publishDataTrackRequest, + unpublishDataTrackRequest, + updateDataSubscription, notSet } @@ -62,6 +65,9 @@ class SignalRequest extends $pb.GeneratedMessage { Ping? pingReq, UpdateLocalAudioTrack? updateAudioTrack, UpdateLocalVideoTrack? updateVideoTrack, + PublishDataTrackRequest? publishDataTrackRequest, + UnpublishDataTrackRequest? unpublishDataTrackRequest, + UpdateDataSubscription? updateDataSubscription, }) { final result = create(); if (offer != null) result.offer = offer; @@ -81,6 +87,9 @@ class SignalRequest extends $pb.GeneratedMessage { if (pingReq != null) result.pingReq = pingReq; if (updateAudioTrack != null) result.updateAudioTrack = updateAudioTrack; if (updateVideoTrack != null) result.updateVideoTrack = updateVideoTrack; + if (publishDataTrackRequest != null) result.publishDataTrackRequest = publishDataTrackRequest; + if (unpublishDataTrackRequest != null) result.unpublishDataTrackRequest = unpublishDataTrackRequest; + if (updateDataSubscription != null) result.updateDataSubscription = updateDataSubscription; return result; } @@ -110,11 +119,14 @@ class SignalRequest extends $pb.GeneratedMessage { 16: SignalRequest_Message.pingReq, 17: SignalRequest_Message.updateAudioTrack, 18: SignalRequest_Message.updateVideoTrack, + 19: SignalRequest_Message.publishDataTrackRequest, + 20: SignalRequest_Message.unpublishDataTrackRequest, + 21: SignalRequest_Message.updateDataSubscription, 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, 17, 18]) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]) ..aOM(1, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) ..aOM(3, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) @@ -136,10 +148,16 @@ class SignalRequest extends $pb.GeneratedMessage { subBuilder: UpdateLocalAudioTrack.create) ..aOM(18, _omitFieldNames ? '' : 'updateVideoTrack', subBuilder: UpdateLocalVideoTrack.create) + ..aOM(19, _omitFieldNames ? '' : 'publishDataTrackRequest', + subBuilder: PublishDataTrackRequest.create) + ..aOM(20, _omitFieldNames ? '' : 'unpublishDataTrackRequest', + subBuilder: UnpublishDataTrackRequest.create) + ..aOM(21, _omitFieldNames ? '' : 'updateDataSubscription', + subBuilder: UpdateDataSubscription.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SignalRequest clone() => SignalRequest()..mergeFromMessage(this); + SignalRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SignalRequest copyWith(void Function(SignalRequest) updates) => super.copyWith((message) => updates(message as SignalRequest)) as SignalRequest; @@ -151,12 +169,51 @@ class SignalRequest extends $pb.GeneratedMessage { static SignalRequest create() => SignalRequest._(); @$core.override SignalRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SignalRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SignalRequest? _defaultInstance; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(16) + @$pb.TagNumber(17) + @$pb.TagNumber(18) + @$pb.TagNumber(19) + @$pb.TagNumber(20) + @$pb.TagNumber(21) SignalRequest_Message whichMessage() => _SignalRequest_MessageByTag[$_whichOneof(0)]!; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(16) + @$pb.TagNumber(17) + @$pb.TagNumber(18) + @$pb.TagNumber(19) + @$pb.TagNumber(20) + @$pb.TagNumber(21) void clearMessage() => $_clearField($_whichOneof(0)); /// participant offer for publisher @@ -363,6 +420,42 @@ class SignalRequest extends $pb.GeneratedMessage { void clearUpdateVideoTrack() => $_clearField(18); @$pb.TagNumber(18) UpdateLocalVideoTrack ensureUpdateVideoTrack() => $_ensure(16); + + /// Publish a data track + @$pb.TagNumber(19) + PublishDataTrackRequest get publishDataTrackRequest => $_getN(17); + @$pb.TagNumber(19) + set publishDataTrackRequest(PublishDataTrackRequest value) => $_setField(19, value); + @$pb.TagNumber(19) + $core.bool hasPublishDataTrackRequest() => $_has(17); + @$pb.TagNumber(19) + void clearPublishDataTrackRequest() => $_clearField(19); + @$pb.TagNumber(19) + PublishDataTrackRequest ensurePublishDataTrackRequest() => $_ensure(17); + + /// Unpublish a data track + @$pb.TagNumber(20) + UnpublishDataTrackRequest get unpublishDataTrackRequest => $_getN(18); + @$pb.TagNumber(20) + set unpublishDataTrackRequest(UnpublishDataTrackRequest value) => $_setField(20, value); + @$pb.TagNumber(20) + $core.bool hasUnpublishDataTrackRequest() => $_has(18); + @$pb.TagNumber(20) + void clearUnpublishDataTrackRequest() => $_clearField(20); + @$pb.TagNumber(20) + UnpublishDataTrackRequest ensureUnpublishDataTrackRequest() => $_ensure(18); + + /// Update subscription state for one or more data tracks + @$pb.TagNumber(21) + UpdateDataSubscription get updateDataSubscription => $_getN(19); + @$pb.TagNumber(21) + set updateDataSubscription(UpdateDataSubscription value) => $_setField(21, value); + @$pb.TagNumber(21) + $core.bool hasUpdateDataSubscription() => $_has(19); + @$pb.TagNumber(21) + void clearUpdateDataSubscription() => $_clearField(21); + @$pb.TagNumber(21) + UpdateDataSubscription ensureUpdateDataSubscription() => $_ensure(19); } enum SignalResponse_Message { @@ -391,6 +484,9 @@ enum SignalResponse_Message { roomMoved, mediaSectionsRequirement, subscribedAudioCodecUpdate, + publishDataTrackResponse, + unpublishDataTrackResponse, + dataTrackSubscriberHandles, notSet } @@ -421,6 +517,9 @@ class SignalResponse extends $pb.GeneratedMessage { RoomMovedResponse? roomMoved, MediaSectionsRequirement? mediaSectionsRequirement, SubscribedAudioCodecUpdate? subscribedAudioCodecUpdate, + PublishDataTrackResponse? publishDataTrackResponse, + UnpublishDataTrackResponse? unpublishDataTrackResponse, + DataTrackSubscriberHandles? dataTrackSubscriberHandles, }) { final result = create(); if (join != null) result.join = join; @@ -448,6 +547,9 @@ class SignalResponse extends $pb.GeneratedMessage { if (roomMoved != null) result.roomMoved = roomMoved; if (mediaSectionsRequirement != null) result.mediaSectionsRequirement = mediaSectionsRequirement; if (subscribedAudioCodecUpdate != null) result.subscribedAudioCodecUpdate = subscribedAudioCodecUpdate; + if (publishDataTrackResponse != null) result.publishDataTrackResponse = publishDataTrackResponse; + if (unpublishDataTrackResponse != null) result.unpublishDataTrackResponse = unpublishDataTrackResponse; + if (dataTrackSubscriberHandles != null) result.dataTrackSubscriberHandles = dataTrackSubscriberHandles; return result; } @@ -485,11 +587,14 @@ class SignalResponse extends $pb.GeneratedMessage { 24: SignalResponse_Message.roomMoved, 25: SignalResponse_Message.mediaSectionsRequirement, 26: SignalResponse_Message.subscribedAudioCodecUpdate, + 27: SignalResponse_Message.publishDataTrackResponse, + 28: SignalResponse_Message.unpublishDataTrackResponse, + 29: SignalResponse_Message.dataTrackSubscriberHandles, 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, 22, 23, 24, 25, 26]) + ..oo(0, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]) ..aOM(1, _omitFieldNames ? '' : 'join', subBuilder: JoinResponse.create) ..aOM(2, _omitFieldNames ? '' : 'answer', subBuilder: SessionDescription.create) ..aOM(3, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) @@ -522,10 +627,16 @@ class SignalResponse extends $pb.GeneratedMessage { subBuilder: MediaSectionsRequirement.create) ..aOM(26, _omitFieldNames ? '' : 'subscribedAudioCodecUpdate', subBuilder: SubscribedAudioCodecUpdate.create) + ..aOM(27, _omitFieldNames ? '' : 'publishDataTrackResponse', + subBuilder: PublishDataTrackResponse.create) + ..aOM(28, _omitFieldNames ? '' : 'unpublishDataTrackResponse', + subBuilder: UnpublishDataTrackResponse.create) + ..aOM(29, _omitFieldNames ? '' : 'dataTrackSubscriberHandles', + subBuilder: DataTrackSubscriberHandles.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SignalResponse clone() => SignalResponse()..mergeFromMessage(this); + SignalResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SignalResponse copyWith(void Function(SignalResponse) updates) => super.copyWith((message) => updates(message as SignalResponse)) as SignalResponse; @@ -537,12 +648,67 @@ class SignalResponse extends $pb.GeneratedMessage { static SignalResponse create() => SignalResponse._(); @$core.override SignalResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SignalResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SignalResponse? _defaultInstance; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(16) + @$pb.TagNumber(17) + @$pb.TagNumber(18) + @$pb.TagNumber(19) + @$pb.TagNumber(20) + @$pb.TagNumber(21) + @$pb.TagNumber(22) + @$pb.TagNumber(23) + @$pb.TagNumber(24) + @$pb.TagNumber(25) + @$pb.TagNumber(26) + @$pb.TagNumber(27) + @$pb.TagNumber(28) + @$pb.TagNumber(29) SignalResponse_Message whichMessage() => _SignalResponse_MessageByTag[$_whichOneof(0)]!; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) + @$pb.TagNumber(12) + @$pb.TagNumber(13) + @$pb.TagNumber(14) + @$pb.TagNumber(15) + @$pb.TagNumber(16) + @$pb.TagNumber(17) + @$pb.TagNumber(18) + @$pb.TagNumber(19) + @$pb.TagNumber(20) + @$pb.TagNumber(21) + @$pb.TagNumber(22) + @$pb.TagNumber(23) + @$pb.TagNumber(24) + @$pb.TagNumber(25) + @$pb.TagNumber(26) + @$pb.TagNumber(27) + @$pb.TagNumber(28) + @$pb.TagNumber(29) void clearMessage() => $_clearField($_whichOneof(0)); /// sent when join is accepted @@ -841,14 +1007,50 @@ class SignalResponse extends $pb.GeneratedMessage { void clearSubscribedAudioCodecUpdate() => $_clearField(26); @$pb.TagNumber(26) SubscribedAudioCodecUpdate ensureSubscribedAudioCodecUpdate() => $_ensure(24); + + /// Sent in response to `PublishDataTrackRequest`. + @$pb.TagNumber(27) + PublishDataTrackResponse get publishDataTrackResponse => $_getN(25); + @$pb.TagNumber(27) + set publishDataTrackResponse(PublishDataTrackResponse value) => $_setField(27, value); + @$pb.TagNumber(27) + $core.bool hasPublishDataTrackResponse() => $_has(25); + @$pb.TagNumber(27) + void clearPublishDataTrackResponse() => $_clearField(27); + @$pb.TagNumber(27) + PublishDataTrackResponse ensurePublishDataTrackResponse() => $_ensure(25); + + /// Sent in response to `UnpublishDataTrackRequest` or SFU-initiated unpublish. + @$pb.TagNumber(28) + UnpublishDataTrackResponse get unpublishDataTrackResponse => $_getN(26); + @$pb.TagNumber(28) + set unpublishDataTrackResponse(UnpublishDataTrackResponse value) => $_setField(28, value); + @$pb.TagNumber(28) + $core.bool hasUnpublishDataTrackResponse() => $_has(26); + @$pb.TagNumber(28) + void clearUnpublishDataTrackResponse() => $_clearField(28); + @$pb.TagNumber(28) + UnpublishDataTrackResponse ensureUnpublishDataTrackResponse() => $_ensure(26); + + /// Sent to data track subscribers to provide mapping from track SIDs to handles. + @$pb.TagNumber(29) + DataTrackSubscriberHandles get dataTrackSubscriberHandles => $_getN(27); + @$pb.TagNumber(29) + set dataTrackSubscriberHandles(DataTrackSubscriberHandles value) => $_setField(29, value); + @$pb.TagNumber(29) + $core.bool hasDataTrackSubscriberHandles() => $_has(27); + @$pb.TagNumber(29) + void clearDataTrackSubscriberHandles() => $_clearField(29); + @$pb.TagNumber(29) + DataTrackSubscriberHandles ensureDataTrackSubscriberHandles() => $_ensure(27); } class SimulcastCodec extends $pb.GeneratedMessage { factory SimulcastCodec({ $core.String? codec, $core.String? cid, - $core.Iterable<$2.VideoLayer>? layers, - $2.VideoLayer_Mode? videoLayerMode, + $core.Iterable<$0.VideoLayer>? layers, + $0.VideoLayer_Mode? videoLayerMode, }) { final result = create(); if (codec != null) result.codec = codec; @@ -870,15 +1072,12 @@ class SimulcastCodec extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'codec') ..aOS(2, _omitFieldNames ? '' : 'cid') - ..pc<$2.VideoLayer>(4, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $2.VideoLayer.create) - ..e<$2.VideoLayer_Mode>(5, _omitFieldNames ? '' : 'videoLayerMode', $pb.PbFieldType.OE, - defaultOrMaker: $2.VideoLayer_Mode.MODE_UNUSED, - valueOf: $2.VideoLayer_Mode.valueOf, - enumValues: $2.VideoLayer_Mode.values) + ..pPM<$0.VideoLayer>(4, _omitFieldNames ? '' : 'layers', subBuilder: $0.VideoLayer.create) + ..aE<$0.VideoLayer_Mode>(5, _omitFieldNames ? '' : 'videoLayerMode', enumValues: $0.VideoLayer_Mode.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SimulcastCodec clone() => SimulcastCodec()..mergeFromMessage(this); + SimulcastCodec clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SimulcastCodec copyWith(void Function(SimulcastCodec) updates) => super.copyWith((message) => updates(message as SimulcastCodec)) as SimulcastCodec; @@ -890,7 +1089,6 @@ class SimulcastCodec extends $pb.GeneratedMessage { static SimulcastCodec create() => SimulcastCodec._(); @$core.override SimulcastCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SimulcastCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SimulcastCodec? _defaultInstance; @@ -914,12 +1112,12 @@ class SimulcastCodec extends $pb.GeneratedMessage { void clearCid() => $_clearField(2); @$pb.TagNumber(4) - $pb.PbList<$2.VideoLayer> get layers => $_getList(2); + $pb.PbList<$0.VideoLayer> get layers => $_getList(2); @$pb.TagNumber(5) - $2.VideoLayer_Mode get videoLayerMode => $_getN(3); + $0.VideoLayer_Mode get videoLayerMode => $_getN(3); @$pb.TagNumber(5) - set videoLayerMode($2.VideoLayer_Mode value) => $_setField(5, value); + set videoLayerMode($0.VideoLayer_Mode value) => $_setField(5, value); @$pb.TagNumber(5) $core.bool hasVideoLayerMode() => $_has(3); @$pb.TagNumber(5) @@ -930,21 +1128,21 @@ class AddTrackRequest extends $pb.GeneratedMessage { factory AddTrackRequest({ $core.String? cid, $core.String? name, - $2.TrackType? type, + $0.TrackType? type, $core.int? width, $core.int? height, $core.bool? muted, @$core.Deprecated('This field is deprecated.') $core.bool? disableDtx, - $2.TrackSource? source, - $core.Iterable<$2.VideoLayer>? layers, + $0.TrackSource? source, + $core.Iterable<$0.VideoLayer>? layers, $core.Iterable? simulcastCodecs, $core.String? sid, @$core.Deprecated('This field is deprecated.') $core.bool? stereo, $core.bool? disableRed, - $2.Encryption_Type? encryption, + $0.Encryption_Type? encryption, $core.String? stream, - $2.BackupCodecPolicy? backupCodecPolicy, - $core.Iterable<$2.AudioTrackFeature>? audioFeatures, + $0.BackupCodecPolicy? backupCodecPolicy, + $core.Iterable<$0.AudioTrackFeature>? audioFeatures, }) { final result = create(); if (cid != null) result.cid = cid; @@ -979,37 +1177,28 @@ class AddTrackRequest extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'cid') ..aOS(2, _omitFieldNames ? '' : 'name') - ..e<$2.TrackType>(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, - defaultOrMaker: $2.TrackType.AUDIO, valueOf: $2.TrackType.valueOf, enumValues: $2.TrackType.values) - ..a<$core.int>(4, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..aE<$0.TrackType>(3, _omitFieldNames ? '' : 'type', enumValues: $0.TrackType.values) + ..aI(4, _omitFieldNames ? '' : 'width', fieldType: $pb.PbFieldType.OU3) + ..aI(5, _omitFieldNames ? '' : 'height', fieldType: $pb.PbFieldType.OU3) ..aOB(6, _omitFieldNames ? '' : 'muted') ..aOB(7, _omitFieldNames ? '' : 'disableDtx') - ..e<$2.TrackSource>(8, _omitFieldNames ? '' : 'source', $pb.PbFieldType.OE, - defaultOrMaker: $2.TrackSource.UNKNOWN, valueOf: $2.TrackSource.valueOf, enumValues: $2.TrackSource.values) - ..pc<$2.VideoLayer>(9, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $2.VideoLayer.create) - ..pc(10, _omitFieldNames ? '' : 'simulcastCodecs', $pb.PbFieldType.PM, - subBuilder: SimulcastCodec.create) + ..aE<$0.TrackSource>(8, _omitFieldNames ? '' : 'source', enumValues: $0.TrackSource.values) + ..pPM<$0.VideoLayer>(9, _omitFieldNames ? '' : 'layers', subBuilder: $0.VideoLayer.create) + ..pPM(10, _omitFieldNames ? '' : 'simulcastCodecs', subBuilder: SimulcastCodec.create) ..aOS(11, _omitFieldNames ? '' : 'sid') ..aOB(12, _omitFieldNames ? '' : 'stereo') ..aOB(13, _omitFieldNames ? '' : 'disableRed') - ..e<$2.Encryption_Type>(14, _omitFieldNames ? '' : 'encryption', $pb.PbFieldType.OE, - defaultOrMaker: $2.Encryption_Type.NONE, - valueOf: $2.Encryption_Type.valueOf, - enumValues: $2.Encryption_Type.values) + ..aE<$0.Encryption_Type>(14, _omitFieldNames ? '' : 'encryption', enumValues: $0.Encryption_Type.values) ..aOS(15, _omitFieldNames ? '' : 'stream') - ..e<$2.BackupCodecPolicy>(16, _omitFieldNames ? '' : 'backupCodecPolicy', $pb.PbFieldType.OE, - defaultOrMaker: $2.BackupCodecPolicy.PREFER_REGRESSION, - valueOf: $2.BackupCodecPolicy.valueOf, - enumValues: $2.BackupCodecPolicy.values) - ..pc<$2.AudioTrackFeature>(17, _omitFieldNames ? '' : 'audioFeatures', $pb.PbFieldType.KE, - valueOf: $2.AudioTrackFeature.valueOf, - enumValues: $2.AudioTrackFeature.values, - defaultEnumValue: $2.AudioTrackFeature.TF_STEREO) + ..aE<$0.BackupCodecPolicy>(16, _omitFieldNames ? '' : 'backupCodecPolicy', enumValues: $0.BackupCodecPolicy.values) + ..pc<$0.AudioTrackFeature>(17, _omitFieldNames ? '' : 'audioFeatures', $pb.PbFieldType.KE, + valueOf: $0.AudioTrackFeature.valueOf, + enumValues: $0.AudioTrackFeature.values, + defaultEnumValue: $0.AudioTrackFeature.TF_STEREO) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - AddTrackRequest clone() => AddTrackRequest()..mergeFromMessage(this); + AddTrackRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') AddTrackRequest copyWith(void Function(AddTrackRequest) updates) => super.copyWith((message) => updates(message as AddTrackRequest)) as AddTrackRequest; @@ -1021,7 +1210,6 @@ class AddTrackRequest extends $pb.GeneratedMessage { static AddTrackRequest create() => AddTrackRequest._(); @$core.override AddTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static AddTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1047,9 +1235,9 @@ class AddTrackRequest extends $pb.GeneratedMessage { void clearName() => $_clearField(2); @$pb.TagNumber(3) - $2.TrackType get type => $_getN(2); + $0.TrackType get type => $_getN(2); @$pb.TagNumber(3) - set type($2.TrackType value) => $_setField(3, value); + set type($0.TrackType value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasType() => $_has(2); @$pb.TagNumber(3) @@ -1098,16 +1286,16 @@ class AddTrackRequest extends $pb.GeneratedMessage { void clearDisableDtx() => $_clearField(7); @$pb.TagNumber(8) - $2.TrackSource get source => $_getN(7); + $0.TrackSource get source => $_getN(7); @$pb.TagNumber(8) - set source($2.TrackSource value) => $_setField(8, value); + set source($0.TrackSource value) => $_setField(8, value); @$pb.TagNumber(8) $core.bool hasSource() => $_has(7); @$pb.TagNumber(8) void clearSource() => $_clearField(8); @$pb.TagNumber(9) - $pb.PbList<$2.VideoLayer> get layers => $_getList(8); + $pb.PbList<$0.VideoLayer> get layers => $_getList(8); @$pb.TagNumber(10) $pb.PbList get simulcastCodecs => $_getList(9); @@ -1146,9 +1334,9 @@ class AddTrackRequest extends $pb.GeneratedMessage { void clearDisableRed() => $_clearField(13); @$pb.TagNumber(14) - $2.Encryption_Type get encryption => $_getN(13); + $0.Encryption_Type get encryption => $_getN(13); @$pb.TagNumber(14) - set encryption($2.Encryption_Type value) => $_setField(14, value); + set encryption($0.Encryption_Type value) => $_setField(14, value); @$pb.TagNumber(14) $core.bool hasEncryption() => $_has(13); @$pb.TagNumber(14) @@ -1166,16 +1354,387 @@ class AddTrackRequest extends $pb.GeneratedMessage { void clearStream() => $_clearField(15); @$pb.TagNumber(16) - $2.BackupCodecPolicy get backupCodecPolicy => $_getN(15); + $0.BackupCodecPolicy get backupCodecPolicy => $_getN(15); @$pb.TagNumber(16) - set backupCodecPolicy($2.BackupCodecPolicy value) => $_setField(16, value); + set backupCodecPolicy($0.BackupCodecPolicy value) => $_setField(16, value); @$pb.TagNumber(16) $core.bool hasBackupCodecPolicy() => $_has(15); @$pb.TagNumber(16) void clearBackupCodecPolicy() => $_clearField(16); @$pb.TagNumber(17) - $pb.PbList<$2.AudioTrackFeature> get audioFeatures => $_getList(16); + $pb.PbList<$0.AudioTrackFeature> get audioFeatures => $_getList(16); +} + +class PublishDataTrackRequest extends $pb.GeneratedMessage { + factory PublishDataTrackRequest({ + $core.int? pubHandle, + $core.String? name, + $0.Encryption_Type? encryption, + }) { + final result = create(); + if (pubHandle != null) result.pubHandle = pubHandle; + if (name != null) result.name = name; + if (encryption != null) result.encryption = encryption; + return result; + } + + PublishDataTrackRequest._(); + + factory PublishDataTrackRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PublishDataTrackRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishDataTrackRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aI(1, _omitFieldNames ? '' : 'pubHandle', fieldType: $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'name') + ..aE<$0.Encryption_Type>(3, _omitFieldNames ? '' : 'encryption', enumValues: $0.Encryption_Type.values) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublishDataTrackRequest clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublishDataTrackRequest copyWith(void Function(PublishDataTrackRequest) updates) => + super.copyWith((message) => updates(message as PublishDataTrackRequest)) as PublishDataTrackRequest; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PublishDataTrackRequest create() => PublishDataTrackRequest._(); + @$core.override + PublishDataTrackRequest createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static PublishDataTrackRequest getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PublishDataTrackRequest? _defaultInstance; + + /// Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher. + /// This must be non-zero and unique for each data track published by the publisher. + @$pb.TagNumber(1) + $core.int get pubHandle => $_getIZ(0); + @$pb.TagNumber(1) + set pubHandle($core.int value) => $_setUnsignedInt32(0, value); + @$pb.TagNumber(1) + $core.bool hasPubHandle() => $_has(0); + @$pb.TagNumber(1) + void clearPubHandle() => $_clearField(1); + + /// Human-readable identifier (e.g., `geoLocation`, `servoPosition.x`, etc.), unique per publisher. + /// This must be non-empty and no longer than 256 characters. + @$pb.TagNumber(2) + $core.String get name => $_getSZ(1); + @$pb.TagNumber(2) + set name($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasName() => $_has(1); + @$pb.TagNumber(2) + void clearName() => $_clearField(2); + + /// Method used for end-to-end encryption (E2EE) on frame payloads. + @$pb.TagNumber(3) + $0.Encryption_Type get encryption => $_getN(2); + @$pb.TagNumber(3) + set encryption($0.Encryption_Type value) => $_setField(3, value); + @$pb.TagNumber(3) + $core.bool hasEncryption() => $_has(2); + @$pb.TagNumber(3) + void clearEncryption() => $_clearField(3); +} + +class PublishDataTrackResponse extends $pb.GeneratedMessage { + factory PublishDataTrackResponse({ + $0.DataTrackInfo? info, + }) { + final result = create(); + if (info != null) result.info = info; + return result; + } + + PublishDataTrackResponse._(); + + factory PublishDataTrackResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory PublishDataTrackResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishDataTrackResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$0.DataTrackInfo>(1, _omitFieldNames ? '' : 'info', subBuilder: $0.DataTrackInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublishDataTrackResponse clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + PublishDataTrackResponse copyWith(void Function(PublishDataTrackResponse) updates) => + super.copyWith((message) => updates(message as PublishDataTrackResponse)) as PublishDataTrackResponse; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PublishDataTrackResponse create() => PublishDataTrackResponse._(); + @$core.override + PublishDataTrackResponse createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static PublishDataTrackResponse getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static PublishDataTrackResponse? _defaultInstance; + + /// Information about the published track. + @$pb.TagNumber(1) + $0.DataTrackInfo get info => $_getN(0); + @$pb.TagNumber(1) + set info($0.DataTrackInfo value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasInfo() => $_has(0); + @$pb.TagNumber(1) + void clearInfo() => $_clearField(1); + @$pb.TagNumber(1) + $0.DataTrackInfo ensureInfo() => $_ensure(0); +} + +class UnpublishDataTrackRequest extends $pb.GeneratedMessage { + factory UnpublishDataTrackRequest({ + $core.int? pubHandle, + }) { + final result = create(); + if (pubHandle != null) result.pubHandle = pubHandle; + return result; + } + + UnpublishDataTrackRequest._(); + + factory UnpublishDataTrackRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UnpublishDataTrackRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UnpublishDataTrackRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aI(1, _omitFieldNames ? '' : 'pubHandle', fieldType: $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UnpublishDataTrackRequest clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UnpublishDataTrackRequest copyWith(void Function(UnpublishDataTrackRequest) updates) => + super.copyWith((message) => updates(message as UnpublishDataTrackRequest)) as UnpublishDataTrackRequest; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UnpublishDataTrackRequest create() => UnpublishDataTrackRequest._(); + @$core.override + UnpublishDataTrackRequest createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static UnpublishDataTrackRequest getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UnpublishDataTrackRequest? _defaultInstance; + + /// Publisher handle of the track to unpublish. + @$pb.TagNumber(1) + $core.int get pubHandle => $_getIZ(0); + @$pb.TagNumber(1) + set pubHandle($core.int value) => $_setUnsignedInt32(0, value); + @$pb.TagNumber(1) + $core.bool hasPubHandle() => $_has(0); + @$pb.TagNumber(1) + void clearPubHandle() => $_clearField(1); +} + +class UnpublishDataTrackResponse extends $pb.GeneratedMessage { + factory UnpublishDataTrackResponse({ + $0.DataTrackInfo? info, + }) { + final result = create(); + if (info != null) result.info = info; + return result; + } + + UnpublishDataTrackResponse._(); + + factory UnpublishDataTrackResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UnpublishDataTrackResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UnpublishDataTrackResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOM<$0.DataTrackInfo>(1, _omitFieldNames ? '' : 'info', subBuilder: $0.DataTrackInfo.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UnpublishDataTrackResponse clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UnpublishDataTrackResponse copyWith(void Function(UnpublishDataTrackResponse) updates) => + super.copyWith((message) => updates(message as UnpublishDataTrackResponse)) as UnpublishDataTrackResponse; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UnpublishDataTrackResponse create() => UnpublishDataTrackResponse._(); + @$core.override + UnpublishDataTrackResponse createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static UnpublishDataTrackResponse getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UnpublishDataTrackResponse? _defaultInstance; + + /// Information about the unpublished track. + @$pb.TagNumber(1) + $0.DataTrackInfo get info => $_getN(0); + @$pb.TagNumber(1) + set info($0.DataTrackInfo value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasInfo() => $_has(0); + @$pb.TagNumber(1) + void clearInfo() => $_clearField(1); + @$pb.TagNumber(1) + $0.DataTrackInfo ensureInfo() => $_ensure(0); +} + +class DataTrackSubscriberHandles_PublishedDataTrack extends $pb.GeneratedMessage { + factory DataTrackSubscriberHandles_PublishedDataTrack({ + $core.String? publisherIdentity, + $core.String? publisherSid, + $core.String? trackSid, + }) { + final result = create(); + if (publisherIdentity != null) result.publisherIdentity = publisherIdentity; + if (publisherSid != null) result.publisherSid = publisherSid; + if (trackSid != null) result.trackSid = trackSid; + return result; + } + + DataTrackSubscriberHandles_PublishedDataTrack._(); + + factory DataTrackSubscriberHandles_PublishedDataTrack.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DataTrackSubscriberHandles_PublishedDataTrack.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DataTrackSubscriberHandles.PublishedDataTrack', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'publisherIdentity') + ..aOS(2, _omitFieldNames ? '' : 'publisherSid') + ..aOS(3, _omitFieldNames ? '' : 'trackSid') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriberHandles_PublishedDataTrack clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriberHandles_PublishedDataTrack copyWith( + void Function(DataTrackSubscriberHandles_PublishedDataTrack) updates) => + super.copyWith((message) => updates(message as DataTrackSubscriberHandles_PublishedDataTrack)) + as DataTrackSubscriberHandles_PublishedDataTrack; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DataTrackSubscriberHandles_PublishedDataTrack create() => DataTrackSubscriberHandles_PublishedDataTrack._(); + @$core.override + DataTrackSubscriberHandles_PublishedDataTrack createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static DataTrackSubscriberHandles_PublishedDataTrack getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataTrackSubscriberHandles_PublishedDataTrack? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get publisherIdentity => $_getSZ(0); + @$pb.TagNumber(1) + set publisherIdentity($core.String value) => $_setString(0, value); + @$pb.TagNumber(1) + $core.bool hasPublisherIdentity() => $_has(0); + @$pb.TagNumber(1) + void clearPublisherIdentity() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get publisherSid => $_getSZ(1); + @$pb.TagNumber(2) + set publisherSid($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasPublisherSid() => $_has(1); + @$pb.TagNumber(2) + void clearPublisherSid() => $_clearField(2); + + @$pb.TagNumber(3) + $core.String get trackSid => $_getSZ(2); + @$pb.TagNumber(3) + set trackSid($core.String value) => $_setString(2, value); + @$pb.TagNumber(3) + $core.bool hasTrackSid() => $_has(2); + @$pb.TagNumber(3) + void clearTrackSid() => $_clearField(3); +} + +class DataTrackSubscriberHandles extends $pb.GeneratedMessage { + factory DataTrackSubscriberHandles({ + $core.Iterable<$core.MapEntry<$core.int, DataTrackSubscriberHandles_PublishedDataTrack>>? subHandles, + }) { + final result = create(); + if (subHandles != null) result.subHandles.addEntries(subHandles); + return result; + } + + DataTrackSubscriberHandles._(); + + factory DataTrackSubscriberHandles.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory DataTrackSubscriberHandles.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataTrackSubscriberHandles', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..m<$core.int, DataTrackSubscriberHandles_PublishedDataTrack>(1, _omitFieldNames ? '' : 'subHandles', + entryClassName: 'DataTrackSubscriberHandles.SubHandlesEntry', + keyFieldType: $pb.PbFieldType.OU3, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: DataTrackSubscriberHandles_PublishedDataTrack.create, + valueDefaultOrMaker: DataTrackSubscriberHandles_PublishedDataTrack.getDefault, + packageName: const $pb.PackageName('livekit')) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriberHandles clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + DataTrackSubscriberHandles copyWith(void Function(DataTrackSubscriberHandles) updates) => + super.copyWith((message) => updates(message as DataTrackSubscriberHandles)) as DataTrackSubscriberHandles; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DataTrackSubscriberHandles create() => DataTrackSubscriberHandles._(); + @$core.override + DataTrackSubscriberHandles createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static DataTrackSubscriberHandles getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DataTrackSubscriberHandles? _defaultInstance; + + /// Maps handles from incoming packets to the track SIDs that the packets belong to. + @$pb.TagNumber(1) + $pb.PbMap<$core.int, DataTrackSubscriberHandles_PublishedDataTrack> get subHandles => $_getMap(0); } class TrickleRequest extends $pb.GeneratedMessage { @@ -1202,13 +1761,12 @@ class TrickleRequest extends $pb.GeneratedMessage { 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) + ..aE(2, _omitFieldNames ? '' : 'target', enumValues: SignalTarget.values) ..aOB(3, _omitFieldNames ? '' : 'final') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrickleRequest clone() => TrickleRequest()..mergeFromMessage(this); + TrickleRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrickleRequest copyWith(void Function(TrickleRequest) updates) => super.copyWith((message) => updates(message as TrickleRequest)) as TrickleRequest; @@ -1220,7 +1778,6 @@ class TrickleRequest extends $pb.GeneratedMessage { static TrickleRequest create() => TrickleRequest._(); @$core.override TrickleRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrickleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TrickleRequest? _defaultInstance; @@ -1280,7 +1837,7 @@ class MuteTrackRequest extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MuteTrackRequest clone() => MuteTrackRequest()..mergeFromMessage(this); + MuteTrackRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MuteTrackRequest copyWith(void Function(MuteTrackRequest) updates) => super.copyWith((message) => updates(message as MuteTrackRequest)) as MuteTrackRequest; @@ -1292,7 +1849,6 @@ class MuteTrackRequest extends $pb.GeneratedMessage { static MuteTrackRequest create() => MuteTrackRequest._(); @$core.override MuteTrackRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MuteTrackRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1319,20 +1875,20 @@ class MuteTrackRequest extends $pb.GeneratedMessage { class JoinResponse extends $pb.GeneratedMessage { factory JoinResponse({ - $2.Room? room, - $2.ParticipantInfo? participant, - $core.Iterable<$2.ParticipantInfo>? otherParticipants, + $0.Room? room, + $0.ParticipantInfo? participant, + $core.Iterable<$0.ParticipantInfo>? otherParticipants, $core.String? serverVersion, $core.Iterable? iceServers, $core.bool? subscriberPrimary, $core.String? alternativeUrl, - $2.ClientConfiguration? clientConfiguration, + $0.ClientConfiguration? clientConfiguration, $core.String? serverRegion, $core.int? pingTimeout, $core.int? pingInterval, - $2.ServerInfo? serverInfo, + $0.ServerInfo? serverInfo, $core.List<$core.int>? sifTrailer, - $core.Iterable<$2.Codec>? enabledPublishCodecs, + $core.Iterable<$0.Codec>? enabledPublishCodecs, $core.bool? fastPublish, }) { final result = create(); @@ -1364,27 +1920,26 @@ class JoinResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'JoinResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$2.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $2.Room.create) - ..aOM<$2.ParticipantInfo>(2, _omitFieldNames ? '' : 'participant', subBuilder: $2.ParticipantInfo.create) - ..pc<$2.ParticipantInfo>(3, _omitFieldNames ? '' : 'otherParticipants', $pb.PbFieldType.PM, - subBuilder: $2.ParticipantInfo.create) + ..aOM<$0.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $0.Room.create) + ..aOM<$0.ParticipantInfo>(2, _omitFieldNames ? '' : 'participant', subBuilder: $0.ParticipantInfo.create) + ..pPM<$0.ParticipantInfo>(3, _omitFieldNames ? '' : 'otherParticipants', subBuilder: $0.ParticipantInfo.create) ..aOS(4, _omitFieldNames ? '' : 'serverVersion') - ..pc(5, _omitFieldNames ? '' : 'iceServers', $pb.PbFieldType.PM, subBuilder: ICEServer.create) + ..pPM(5, _omitFieldNames ? '' : 'iceServers', subBuilder: ICEServer.create) ..aOB(6, _omitFieldNames ? '' : 'subscriberPrimary') ..aOS(7, _omitFieldNames ? '' : 'alternativeUrl') - ..aOM<$2.ClientConfiguration>(8, _omitFieldNames ? '' : 'clientConfiguration', - subBuilder: $2.ClientConfiguration.create) + ..aOM<$0.ClientConfiguration>(8, _omitFieldNames ? '' : 'clientConfiguration', + subBuilder: $0.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<$2.ServerInfo>(12, _omitFieldNames ? '' : 'serverInfo', subBuilder: $2.ServerInfo.create) + ..aI(10, _omitFieldNames ? '' : 'pingTimeout') + ..aI(11, _omitFieldNames ? '' : 'pingInterval') + ..aOM<$0.ServerInfo>(12, _omitFieldNames ? '' : 'serverInfo', subBuilder: $0.ServerInfo.create) ..a<$core.List<$core.int>>(13, _omitFieldNames ? '' : 'sifTrailer', $pb.PbFieldType.OY) - ..pc<$2.Codec>(14, _omitFieldNames ? '' : 'enabledPublishCodecs', $pb.PbFieldType.PM, subBuilder: $2.Codec.create) + ..pPM<$0.Codec>(14, _omitFieldNames ? '' : 'enabledPublishCodecs', subBuilder: $0.Codec.create) ..aOB(15, _omitFieldNames ? '' : 'fastPublish') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - JoinResponse clone() => JoinResponse()..mergeFromMessage(this); + JoinResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') JoinResponse copyWith(void Function(JoinResponse) updates) => super.copyWith((message) => updates(message as JoinResponse)) as JoinResponse; @@ -1396,35 +1951,34 @@ class JoinResponse extends $pb.GeneratedMessage { static JoinResponse create() => JoinResponse._(); @$core.override JoinResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static JoinResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static JoinResponse? _defaultInstance; @$pb.TagNumber(1) - $2.Room get room => $_getN(0); + $0.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($2.Room value) => $_setField(1, value); + set room($0.Room value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) void clearRoom() => $_clearField(1); @$pb.TagNumber(1) - $2.Room ensureRoom() => $_ensure(0); + $0.Room ensureRoom() => $_ensure(0); @$pb.TagNumber(2) - $2.ParticipantInfo get participant => $_getN(1); + $0.ParticipantInfo get participant => $_getN(1); @$pb.TagNumber(2) - set participant($2.ParticipantInfo value) => $_setField(2, value); + set participant($0.ParticipantInfo value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasParticipant() => $_has(1); @$pb.TagNumber(2) void clearParticipant() => $_clearField(2); @$pb.TagNumber(2) - $2.ParticipantInfo ensureParticipant() => $_ensure(1); + $0.ParticipantInfo ensureParticipant() => $_ensure(1); @$pb.TagNumber(3) - $pb.PbList<$2.ParticipantInfo> get otherParticipants => $_getList(2); + $pb.PbList<$0.ParticipantInfo> get otherParticipants => $_getList(2); /// deprecated. use server_info.version instead. @$pb.TagNumber(4) @@ -1461,15 +2015,15 @@ class JoinResponse extends $pb.GeneratedMessage { void clearAlternativeUrl() => $_clearField(7); @$pb.TagNumber(8) - $2.ClientConfiguration get clientConfiguration => $_getN(7); + $0.ClientConfiguration get clientConfiguration => $_getN(7); @$pb.TagNumber(8) - set clientConfiguration($2.ClientConfiguration value) => $_setField(8, value); + set clientConfiguration($0.ClientConfiguration value) => $_setField(8, value); @$pb.TagNumber(8) $core.bool hasClientConfiguration() => $_has(7); @$pb.TagNumber(8) void clearClientConfiguration() => $_clearField(8); @$pb.TagNumber(8) - $2.ClientConfiguration ensureClientConfiguration() => $_ensure(7); + $0.ClientConfiguration ensureClientConfiguration() => $_ensure(7); /// deprecated. use server_info.region instead. @$pb.TagNumber(9) @@ -1500,15 +2054,15 @@ class JoinResponse extends $pb.GeneratedMessage { void clearPingInterval() => $_clearField(11); @$pb.TagNumber(12) - $2.ServerInfo get serverInfo => $_getN(11); + $0.ServerInfo get serverInfo => $_getN(11); @$pb.TagNumber(12) - set serverInfo($2.ServerInfo value) => $_setField(12, value); + set serverInfo($0.ServerInfo value) => $_setField(12, value); @$pb.TagNumber(12) $core.bool hasServerInfo() => $_has(11); @$pb.TagNumber(12) void clearServerInfo() => $_clearField(12); @$pb.TagNumber(12) - $2.ServerInfo ensureServerInfo() => $_ensure(11); + $0.ServerInfo ensureServerInfo() => $_ensure(11); /// Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled @$pb.TagNumber(13) @@ -1521,7 +2075,7 @@ class JoinResponse extends $pb.GeneratedMessage { void clearSifTrailer() => $_clearField(13); @$pb.TagNumber(14) - $pb.PbList<$2.Codec> get enabledPublishCodecs => $_getList(13); + $pb.PbList<$0.Codec> get enabledPublishCodecs => $_getList(13); /// when set, client should attempt to establish publish peer connection when joining room to speed up publishing @$pb.TagNumber(15) @@ -1537,8 +2091,8 @@ class JoinResponse extends $pb.GeneratedMessage { class ReconnectResponse extends $pb.GeneratedMessage { factory ReconnectResponse({ $core.Iterable? iceServers, - $2.ClientConfiguration? clientConfiguration, - $2.ServerInfo? serverInfo, + $0.ClientConfiguration? clientConfiguration, + $0.ServerInfo? serverInfo, $core.int? lastMessageSeq, }) { final result = create(); @@ -1560,15 +2114,15 @@ class ReconnectResponse extends $pb.GeneratedMessage { 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<$2.ClientConfiguration>(2, _omitFieldNames ? '' : 'clientConfiguration', - subBuilder: $2.ClientConfiguration.create) - ..aOM<$2.ServerInfo>(3, _omitFieldNames ? '' : 'serverInfo', subBuilder: $2.ServerInfo.create) - ..a<$core.int>(4, _omitFieldNames ? '' : 'lastMessageSeq', $pb.PbFieldType.OU3) + ..pPM(1, _omitFieldNames ? '' : 'iceServers', subBuilder: ICEServer.create) + ..aOM<$0.ClientConfiguration>(2, _omitFieldNames ? '' : 'clientConfiguration', + subBuilder: $0.ClientConfiguration.create) + ..aOM<$0.ServerInfo>(3, _omitFieldNames ? '' : 'serverInfo', subBuilder: $0.ServerInfo.create) + ..aI(4, _omitFieldNames ? '' : 'lastMessageSeq', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ReconnectResponse clone() => ReconnectResponse()..mergeFromMessage(this); + ReconnectResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ReconnectResponse copyWith(void Function(ReconnectResponse) updates) => super.copyWith((message) => updates(message as ReconnectResponse)) as ReconnectResponse; @@ -1580,7 +2134,6 @@ class ReconnectResponse extends $pb.GeneratedMessage { static ReconnectResponse create() => ReconnectResponse._(); @$core.override ReconnectResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ReconnectResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1590,26 +2143,26 @@ class ReconnectResponse extends $pb.GeneratedMessage { $pb.PbList get iceServers => $_getList(0); @$pb.TagNumber(2) - $2.ClientConfiguration get clientConfiguration => $_getN(1); + $0.ClientConfiguration get clientConfiguration => $_getN(1); @$pb.TagNumber(2) - set clientConfiguration($2.ClientConfiguration value) => $_setField(2, value); + set clientConfiguration($0.ClientConfiguration value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasClientConfiguration() => $_has(1); @$pb.TagNumber(2) void clearClientConfiguration() => $_clearField(2); @$pb.TagNumber(2) - $2.ClientConfiguration ensureClientConfiguration() => $_ensure(1); + $0.ClientConfiguration ensureClientConfiguration() => $_ensure(1); @$pb.TagNumber(3) - $2.ServerInfo get serverInfo => $_getN(2); + $0.ServerInfo get serverInfo => $_getN(2); @$pb.TagNumber(3) - set serverInfo($2.ServerInfo value) => $_setField(3, value); + set serverInfo($0.ServerInfo value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasServerInfo() => $_has(2); @$pb.TagNumber(3) void clearServerInfo() => $_clearField(3); @$pb.TagNumber(3) - $2.ServerInfo ensureServerInfo() => $_ensure(2); + $0.ServerInfo ensureServerInfo() => $_ensure(2); /// last sequence number of reliable message received before resuming @$pb.TagNumber(4) @@ -1625,7 +2178,7 @@ class ReconnectResponse extends $pb.GeneratedMessage { class TrackPublishedResponse extends $pb.GeneratedMessage { factory TrackPublishedResponse({ $core.String? cid, - $2.TrackInfo? track, + $0.TrackInfo? track, }) { final result = create(); if (cid != null) result.cid = cid; @@ -1645,11 +2198,11 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackPublishedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'cid') - ..aOM<$2.TrackInfo>(2, _omitFieldNames ? '' : 'track', subBuilder: $2.TrackInfo.create) + ..aOM<$0.TrackInfo>(2, _omitFieldNames ? '' : 'track', subBuilder: $0.TrackInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrackPublishedResponse clone() => TrackPublishedResponse()..mergeFromMessage(this); + TrackPublishedResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrackPublishedResponse copyWith(void Function(TrackPublishedResponse) updates) => super.copyWith((message) => updates(message as TrackPublishedResponse)) as TrackPublishedResponse; @@ -1661,7 +2214,6 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { static TrackPublishedResponse create() => TrackPublishedResponse._(); @$core.override TrackPublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackPublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1677,15 +2229,15 @@ class TrackPublishedResponse extends $pb.GeneratedMessage { void clearCid() => $_clearField(1); @$pb.TagNumber(2) - $2.TrackInfo get track => $_getN(1); + $0.TrackInfo get track => $_getN(1); @$pb.TagNumber(2) - set track($2.TrackInfo value) => $_setField(2, value); + set track($0.TrackInfo value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasTrack() => $_has(1); @$pb.TagNumber(2) void clearTrack() => $_clearField(2); @$pb.TagNumber(2) - $2.TrackInfo ensureTrack() => $_ensure(1); + $0.TrackInfo ensureTrack() => $_ensure(1); } class TrackUnpublishedResponse extends $pb.GeneratedMessage { @@ -1712,7 +2264,7 @@ class TrackUnpublishedResponse extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrackUnpublishedResponse clone() => TrackUnpublishedResponse()..mergeFromMessage(this); + TrackUnpublishedResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrackUnpublishedResponse copyWith(void Function(TrackUnpublishedResponse) updates) => super.copyWith((message) => updates(message as TrackUnpublishedResponse)) as TrackUnpublishedResponse; @@ -1724,7 +2276,6 @@ class TrackUnpublishedResponse extends $pb.GeneratedMessage { static TrackUnpublishedResponse create() => TrackUnpublishedResponse._(); @$core.override TrackUnpublishedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackUnpublishedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1745,11 +2296,13 @@ class SessionDescription extends $pb.GeneratedMessage { $core.String? type, $core.String? sdp, $core.int? id, + $core.Iterable<$core.MapEntry<$core.String, $core.String>>? midToTrackId, }) { final result = create(); if (type != null) result.type = type; if (sdp != null) result.sdp = sdp; if (id != null) result.id = id; + if (midToTrackId != null) result.midToTrackId.addEntries(midToTrackId); return result; } @@ -1766,11 +2319,16 @@ class SessionDescription extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'type') ..aOS(2, _omitFieldNames ? '' : 'sdp') - ..a<$core.int>(3, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'id', fieldType: $pb.PbFieldType.OU3) + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'midToTrackId', + entryClassName: 'SessionDescription.MidToTrackIdEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('livekit')) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SessionDescription clone() => SessionDescription()..mergeFromMessage(this); + SessionDescription clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SessionDescription copyWith(void Function(SessionDescription) updates) => super.copyWith((message) => updates(message as SessionDescription)) as SessionDescription; @@ -1782,7 +2340,6 @@ class SessionDescription extends $pb.GeneratedMessage { static SessionDescription create() => SessionDescription._(); @$core.override SessionDescription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SessionDescription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1814,11 +2371,14 @@ class SessionDescription extends $pb.GeneratedMessage { $core.bool hasId() => $_has(2); @$pb.TagNumber(3) void clearId() => $_clearField(3); + + @$pb.TagNumber(4) + $pb.PbMap<$core.String, $core.String> get midToTrackId => $_getMap(3); } class ParticipantUpdate extends $pb.GeneratedMessage { factory ParticipantUpdate({ - $core.Iterable<$2.ParticipantInfo>? participants, + $core.Iterable<$0.ParticipantInfo>? participants, }) { final result = create(); if (participants != null) result.participants.addAll(participants); @@ -1836,12 +2396,11 @@ class ParticipantUpdate extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ParticipantUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc<$2.ParticipantInfo>(1, _omitFieldNames ? '' : 'participants', $pb.PbFieldType.PM, - subBuilder: $2.ParticipantInfo.create) + ..pPM<$0.ParticipantInfo>(1, _omitFieldNames ? '' : 'participants', subBuilder: $0.ParticipantInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ParticipantUpdate clone() => ParticipantUpdate()..mergeFromMessage(this); + ParticipantUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ParticipantUpdate copyWith(void Function(ParticipantUpdate) updates) => super.copyWith((message) => updates(message as ParticipantUpdate)) as ParticipantUpdate; @@ -1853,21 +2412,20 @@ class ParticipantUpdate extends $pb.GeneratedMessage { static ParticipantUpdate create() => ParticipantUpdate._(); @$core.override ParticipantUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ParticipantUpdate? _defaultInstance; @$pb.TagNumber(1) - $pb.PbList<$2.ParticipantInfo> get participants => $_getList(0); + $pb.PbList<$0.ParticipantInfo> get participants => $_getList(0); } class UpdateSubscription extends $pb.GeneratedMessage { factory UpdateSubscription({ $core.Iterable<$core.String>? trackSids, $core.bool? subscribe, - $core.Iterable<$2.ParticipantTracks>? participantTracks, + $core.Iterable<$0.ParticipantTracks>? participantTracks, }) { final result = create(); if (trackSids != null) result.trackSids.addAll(trackSids); @@ -1889,12 +2447,11 @@ class UpdateSubscription extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'trackSids') ..aOB(2, _omitFieldNames ? '' : 'subscribe') - ..pc<$2.ParticipantTracks>(3, _omitFieldNames ? '' : 'participantTracks', $pb.PbFieldType.PM, - subBuilder: $2.ParticipantTracks.create) + ..pPM<$0.ParticipantTracks>(3, _omitFieldNames ? '' : 'participantTracks', subBuilder: $0.ParticipantTracks.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateSubscription clone() => UpdateSubscription()..mergeFromMessage(this); + UpdateSubscription clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateSubscription copyWith(void Function(UpdateSubscription) updates) => super.copyWith((message) => updates(message as UpdateSubscription)) as UpdateSubscription; @@ -1906,7 +2463,6 @@ class UpdateSubscription extends $pb.GeneratedMessage { static UpdateSubscription create() => UpdateSubscription._(); @$core.override UpdateSubscription createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateSubscription getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1925,14 +2481,140 @@ class UpdateSubscription extends $pb.GeneratedMessage { void clearSubscribe() => $_clearField(2); @$pb.TagNumber(3) - $pb.PbList<$2.ParticipantTracks> get participantTracks => $_getList(2); + $pb.PbList<$0.ParticipantTracks> get participantTracks => $_getList(2); +} + +class UpdateDataSubscription_Update extends $pb.GeneratedMessage { + factory UpdateDataSubscription_Update({ + $core.String? trackSid, + $core.bool? subscribe, + $0.DataTrackSubscriptionOptions? options, + }) { + final result = create(); + if (trackSid != null) result.trackSid = trackSid; + if (subscribe != null) result.subscribe = subscribe; + if (options != null) result.options = options; + return result; + } + + UpdateDataSubscription_Update._(); + + factory UpdateDataSubscription_Update.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UpdateDataSubscription_Update.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateDataSubscription.Update', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'trackSid') + ..aOB(2, _omitFieldNames ? '' : 'subscribe') + ..aOM<$0.DataTrackSubscriptionOptions>(3, _omitFieldNames ? '' : 'options', + subBuilder: $0.DataTrackSubscriptionOptions.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateDataSubscription_Update clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateDataSubscription_Update copyWith(void Function(UpdateDataSubscription_Update) updates) => + super.copyWith((message) => updates(message as UpdateDataSubscription_Update)) as UpdateDataSubscription_Update; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateDataSubscription_Update create() => UpdateDataSubscription_Update._(); + @$core.override + UpdateDataSubscription_Update createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static UpdateDataSubscription_Update getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateDataSubscription_Update? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get trackSid => $_getSZ(0); + @$pb.TagNumber(1) + set trackSid($core.String value) => $_setString(0, value); + @$pb.TagNumber(1) + $core.bool hasTrackSid() => $_has(0); + @$pb.TagNumber(1) + void clearTrackSid() => $_clearField(1); + + @$pb.TagNumber(2) + $core.bool get subscribe => $_getBF(1); + @$pb.TagNumber(2) + set subscribe($core.bool value) => $_setBool(1, value); + @$pb.TagNumber(2) + $core.bool hasSubscribe() => $_has(1); + @$pb.TagNumber(2) + void clearSubscribe() => $_clearField(2); + + /// Options to apply when initially subscribing or updating an existing subscription. + /// When unsubscribing, this field is ignored. + @$pb.TagNumber(3) + $0.DataTrackSubscriptionOptions get options => $_getN(2); + @$pb.TagNumber(3) + set options($0.DataTrackSubscriptionOptions value) => $_setField(3, value); + @$pb.TagNumber(3) + $core.bool hasOptions() => $_has(2); + @$pb.TagNumber(3) + void clearOptions() => $_clearField(3); + @$pb.TagNumber(3) + $0.DataTrackSubscriptionOptions ensureOptions() => $_ensure(2); +} + +class UpdateDataSubscription extends $pb.GeneratedMessage { + factory UpdateDataSubscription({ + $core.Iterable? updates, + }) { + final result = create(); + if (updates != null) result.updates.addAll(updates); + return result; + } + + UpdateDataSubscription._(); + + factory UpdateDataSubscription.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory UpdateDataSubscription.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateDataSubscription', + package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) + ..pPM(1, _omitFieldNames ? '' : 'updates', + subBuilder: UpdateDataSubscription_Update.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateDataSubscription clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + UpdateDataSubscription copyWith(void Function(UpdateDataSubscription) updates) => + super.copyWith((message) => updates(message as UpdateDataSubscription)) as UpdateDataSubscription; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateDataSubscription create() => UpdateDataSubscription._(); + @$core.override + UpdateDataSubscription createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static UpdateDataSubscription getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static UpdateDataSubscription? _defaultInstance; + + @$pb.TagNumber(1) + $pb.PbList get updates => $_getList(0); } class UpdateTrackSettings extends $pb.GeneratedMessage { factory UpdateTrackSettings({ $core.Iterable<$core.String>? trackSids, $core.bool? disabled, - $2.VideoQuality? quality, + $0.VideoQuality? quality, $core.int? width, $core.int? height, $core.int? fps, @@ -1962,16 +2644,15 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'trackSids') ..aOB(3, _omitFieldNames ? '' : 'disabled') - ..e<$2.VideoQuality>(4, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, - defaultOrMaker: $2.VideoQuality.LOW, valueOf: $2.VideoQuality.valueOf, enumValues: $2.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) + ..aE<$0.VideoQuality>(4, _omitFieldNames ? '' : 'quality', enumValues: $0.VideoQuality.values) + ..aI(5, _omitFieldNames ? '' : 'width', fieldType: $pb.PbFieldType.OU3) + ..aI(6, _omitFieldNames ? '' : 'height', fieldType: $pb.PbFieldType.OU3) + ..aI(7, _omitFieldNames ? '' : 'fps', fieldType: $pb.PbFieldType.OU3) + ..aI(8, _omitFieldNames ? '' : 'priority', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateTrackSettings clone() => UpdateTrackSettings()..mergeFromMessage(this); + UpdateTrackSettings clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateTrackSettings copyWith(void Function(UpdateTrackSettings) updates) => super.copyWith((message) => updates(message as UpdateTrackSettings)) as UpdateTrackSettings; @@ -1983,7 +2664,6 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { static UpdateTrackSettings create() => UpdateTrackSettings._(); @$core.override UpdateTrackSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateTrackSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2004,9 +2684,9 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { /// deprecated in favor of width & height @$pb.TagNumber(4) - $2.VideoQuality get quality => $_getN(2); + $0.VideoQuality get quality => $_getN(2); @$pb.TagNumber(4) - set quality($2.VideoQuality value) => $_setField(4, value); + set quality($0.VideoQuality value) => $_setField(4, value); @$pb.TagNumber(4) $core.bool hasQuality() => $_has(2); @$pb.TagNumber(4) @@ -2061,7 +2741,7 @@ class UpdateTrackSettings extends $pb.GeneratedMessage { class UpdateLocalAudioTrack extends $pb.GeneratedMessage { factory UpdateLocalAudioTrack({ $core.String? trackSid, - $core.Iterable<$2.AudioTrackFeature>? features, + $core.Iterable<$0.AudioTrackFeature>? features, }) { final result = create(); if (trackSid != null) result.trackSid = trackSid; @@ -2081,14 +2761,14 @@ class UpdateLocalAudioTrack extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateLocalAudioTrack', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..pc<$2.AudioTrackFeature>(2, _omitFieldNames ? '' : 'features', $pb.PbFieldType.KE, - valueOf: $2.AudioTrackFeature.valueOf, - enumValues: $2.AudioTrackFeature.values, - defaultEnumValue: $2.AudioTrackFeature.TF_STEREO) + ..pc<$0.AudioTrackFeature>(2, _omitFieldNames ? '' : 'features', $pb.PbFieldType.KE, + valueOf: $0.AudioTrackFeature.valueOf, + enumValues: $0.AudioTrackFeature.values, + defaultEnumValue: $0.AudioTrackFeature.TF_STEREO) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateLocalAudioTrack clone() => UpdateLocalAudioTrack()..mergeFromMessage(this); + UpdateLocalAudioTrack clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateLocalAudioTrack copyWith(void Function(UpdateLocalAudioTrack) updates) => super.copyWith((message) => updates(message as UpdateLocalAudioTrack)) as UpdateLocalAudioTrack; @@ -2100,7 +2780,6 @@ class UpdateLocalAudioTrack extends $pb.GeneratedMessage { static UpdateLocalAudioTrack create() => UpdateLocalAudioTrack._(); @$core.override UpdateLocalAudioTrack createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateLocalAudioTrack getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2116,7 +2795,7 @@ class UpdateLocalAudioTrack extends $pb.GeneratedMessage { void clearTrackSid() => $_clearField(1); @$pb.TagNumber(2) - $pb.PbList<$2.AudioTrackFeature> get features => $_getList(1); + $pb.PbList<$0.AudioTrackFeature> get features => $_getList(1); } class UpdateLocalVideoTrack extends $pb.GeneratedMessage { @@ -2144,12 +2823,12 @@ class UpdateLocalVideoTrack extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateLocalVideoTrack', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..a<$core.int>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OU3) - ..a<$core.int>(3, _omitFieldNames ? '' : 'height', $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'width', fieldType: $pb.PbFieldType.OU3) + ..aI(3, _omitFieldNames ? '' : 'height', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateLocalVideoTrack clone() => UpdateLocalVideoTrack()..mergeFromMessage(this); + UpdateLocalVideoTrack clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateLocalVideoTrack copyWith(void Function(UpdateLocalVideoTrack) updates) => super.copyWith((message) => updates(message as UpdateLocalVideoTrack)) as UpdateLocalVideoTrack; @@ -2161,7 +2840,6 @@ class UpdateLocalVideoTrack extends $pb.GeneratedMessage { static UpdateLocalVideoTrack create() => UpdateLocalVideoTrack._(); @$core.override UpdateLocalVideoTrack createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateLocalVideoTrack getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2198,7 +2876,7 @@ class UpdateLocalVideoTrack extends $pb.GeneratedMessage { class LeaveRequest extends $pb.GeneratedMessage { factory LeaveRequest({ $core.bool? canReconnect, - $2.DisconnectReason? reason, + $0.DisconnectReason? reason, LeaveRequest_Action? action, RegionSettings? regions, }) { @@ -2221,19 +2899,13 @@ class LeaveRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LeaveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOB(1, _omitFieldNames ? '' : 'canReconnect') - ..e<$2.DisconnectReason>(2, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, - defaultOrMaker: $2.DisconnectReason.UNKNOWN_REASON, - valueOf: $2.DisconnectReason.valueOf, - enumValues: $2.DisconnectReason.values) - ..e(3, _omitFieldNames ? '' : 'action', $pb.PbFieldType.OE, - defaultOrMaker: LeaveRequest_Action.DISCONNECT, - valueOf: LeaveRequest_Action.valueOf, - enumValues: LeaveRequest_Action.values) + ..aE<$0.DisconnectReason>(2, _omitFieldNames ? '' : 'reason', enumValues: $0.DisconnectReason.values) + ..aE(3, _omitFieldNames ? '' : 'action', enumValues: LeaveRequest_Action.values) ..aOM(4, _omitFieldNames ? '' : 'regions', subBuilder: RegionSettings.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - LeaveRequest clone() => LeaveRequest()..mergeFromMessage(this); + LeaveRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') LeaveRequest copyWith(void Function(LeaveRequest) updates) => super.copyWith((message) => updates(message as LeaveRequest)) as LeaveRequest; @@ -2245,7 +2917,6 @@ class LeaveRequest extends $pb.GeneratedMessage { static LeaveRequest create() => LeaveRequest._(); @$core.override LeaveRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static LeaveRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LeaveRequest? _defaultInstance; @@ -2263,9 +2934,9 @@ class LeaveRequest extends $pb.GeneratedMessage { void clearCanReconnect() => $_clearField(1); @$pb.TagNumber(2) - $2.DisconnectReason get reason => $_getN(1); + $0.DisconnectReason get reason => $_getN(1); @$pb.TagNumber(2) - set reason($2.DisconnectReason value) => $_setField(2, value); + set reason($0.DisconnectReason value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasReason() => $_has(1); @$pb.TagNumber(2) @@ -2297,7 +2968,7 @@ class LeaveRequest extends $pb.GeneratedMessage { class UpdateVideoLayers extends $pb.GeneratedMessage { factory UpdateVideoLayers({ $core.String? trackSid, - $core.Iterable<$2.VideoLayer>? layers, + $core.Iterable<$0.VideoLayer>? layers, }) { final result = create(); if (trackSid != null) result.trackSid = trackSid; @@ -2317,11 +2988,11 @@ class UpdateVideoLayers extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateVideoLayers', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..pc<$2.VideoLayer>(2, _omitFieldNames ? '' : 'layers', $pb.PbFieldType.PM, subBuilder: $2.VideoLayer.create) + ..pPM<$0.VideoLayer>(2, _omitFieldNames ? '' : 'layers', subBuilder: $0.VideoLayer.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateVideoLayers clone() => UpdateVideoLayers()..mergeFromMessage(this); + UpdateVideoLayers clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateVideoLayers copyWith(void Function(UpdateVideoLayers) updates) => super.copyWith((message) => updates(message as UpdateVideoLayers)) as UpdateVideoLayers; @@ -2333,7 +3004,6 @@ class UpdateVideoLayers extends $pb.GeneratedMessage { static UpdateVideoLayers create() => UpdateVideoLayers._(); @$core.override UpdateVideoLayers createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateVideoLayers getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2349,7 +3019,7 @@ class UpdateVideoLayers extends $pb.GeneratedMessage { void clearTrackSid() => $_clearField(1); @$pb.TagNumber(2) - $pb.PbList<$2.VideoLayer> get layers => $_getList(1); + $pb.PbList<$0.VideoLayer> get layers => $_getList(1); } class UpdateParticipantMetadata extends $pb.GeneratedMessage { @@ -2385,11 +3055,11 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('livekit')) - ..a<$core.int>(4, _omitFieldNames ? '' : 'requestId', $pb.PbFieldType.OU3) + ..aI(4, _omitFieldNames ? '' : 'requestId', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UpdateParticipantMetadata clone() => UpdateParticipantMetadata()..mergeFromMessage(this); + UpdateParticipantMetadata clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') UpdateParticipantMetadata copyWith(void Function(UpdateParticipantMetadata) updates) => super.copyWith((message) => updates(message as UpdateParticipantMetadata)) as UpdateParticipantMetadata; @@ -2401,7 +3071,6 @@ class UpdateParticipantMetadata extends $pb.GeneratedMessage { static UpdateParticipantMetadata create() => UpdateParticipantMetadata._(); @$core.override UpdateParticipantMetadata createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateParticipantMetadata getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2469,7 +3138,7 @@ class ICEServer extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ICEServer clone() => ICEServer()..mergeFromMessage(this); + ICEServer clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ICEServer copyWith(void Function(ICEServer) updates) => super.copyWith((message) => updates(message as ICEServer)) as ICEServer; @@ -2481,7 +3150,6 @@ class ICEServer extends $pb.GeneratedMessage { static ICEServer create() => ICEServer._(); @$core.override ICEServer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ICEServer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ICEServer? _defaultInstance; @@ -2510,7 +3178,7 @@ class ICEServer extends $pb.GeneratedMessage { class SpeakersChanged extends $pb.GeneratedMessage { factory SpeakersChanged({ - $core.Iterable<$2.SpeakerInfo>? speakers, + $core.Iterable<$0.SpeakerInfo>? speakers, }) { final result = create(); if (speakers != null) result.speakers.addAll(speakers); @@ -2527,11 +3195,11 @@ class SpeakersChanged extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SpeakersChanged', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..pc<$2.SpeakerInfo>(1, _omitFieldNames ? '' : 'speakers', $pb.PbFieldType.PM, subBuilder: $2.SpeakerInfo.create) + ..pPM<$0.SpeakerInfo>(1, _omitFieldNames ? '' : 'speakers', subBuilder: $0.SpeakerInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SpeakersChanged clone() => SpeakersChanged()..mergeFromMessage(this); + SpeakersChanged clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SpeakersChanged copyWith(void Function(SpeakersChanged) updates) => super.copyWith((message) => updates(message as SpeakersChanged)) as SpeakersChanged; @@ -2543,19 +3211,18 @@ class SpeakersChanged extends $pb.GeneratedMessage { static SpeakersChanged create() => SpeakersChanged._(); @$core.override SpeakersChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SpeakersChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SpeakersChanged? _defaultInstance; @$pb.TagNumber(1) - $pb.PbList<$2.SpeakerInfo> get speakers => $_getList(0); + $pb.PbList<$0.SpeakerInfo> get speakers => $_getList(0); } class RoomUpdate extends $pb.GeneratedMessage { factory RoomUpdate({ - $2.Room? room, + $0.Room? room, }) { final result = create(); if (room != null) result.room = room; @@ -2572,11 +3239,11 @@ class RoomUpdate extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoomUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$2.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $2.Room.create) + ..aOM<$0.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $0.Room.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RoomUpdate clone() => RoomUpdate()..mergeFromMessage(this); + RoomUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RoomUpdate copyWith(void Function(RoomUpdate) updates) => super.copyWith((message) => updates(message as RoomUpdate)) as RoomUpdate; @@ -2588,27 +3255,26 @@ class RoomUpdate extends $pb.GeneratedMessage { static RoomUpdate create() => RoomUpdate._(); @$core.override RoomUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RoomUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RoomUpdate? _defaultInstance; @$pb.TagNumber(1) - $2.Room get room => $_getN(0); + $0.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($2.Room value) => $_setField(1, value); + set room($0.Room value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) void clearRoom() => $_clearField(1); @$pb.TagNumber(1) - $2.Room ensureRoom() => $_ensure(0); + $0.Room ensureRoom() => $_ensure(0); } class ConnectionQualityInfo extends $pb.GeneratedMessage { factory ConnectionQualityInfo({ $core.String? participantSid, - $2.ConnectionQuality? quality, + $0.ConnectionQuality? quality, $core.double? score, }) { final result = create(); @@ -2630,15 +3296,12 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConnectionQualityInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'participantSid') - ..e<$2.ConnectionQuality>(2, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, - defaultOrMaker: $2.ConnectionQuality.POOR, - valueOf: $2.ConnectionQuality.valueOf, - enumValues: $2.ConnectionQuality.values) - ..a<$core.double>(3, _omitFieldNames ? '' : 'score', $pb.PbFieldType.OF) + ..aE<$0.ConnectionQuality>(2, _omitFieldNames ? '' : 'quality', enumValues: $0.ConnectionQuality.values) + ..aD(3, _omitFieldNames ? '' : 'score', fieldType: $pb.PbFieldType.OF) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ConnectionQualityInfo clone() => ConnectionQualityInfo()..mergeFromMessage(this); + ConnectionQualityInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ConnectionQualityInfo copyWith(void Function(ConnectionQualityInfo) updates) => super.copyWith((message) => updates(message as ConnectionQualityInfo)) as ConnectionQualityInfo; @@ -2650,7 +3313,6 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { static ConnectionQualityInfo create() => ConnectionQualityInfo._(); @$core.override ConnectionQualityInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ConnectionQualityInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2666,9 +3328,9 @@ class ConnectionQualityInfo extends $pb.GeneratedMessage { void clearParticipantSid() => $_clearField(1); @$pb.TagNumber(2) - $2.ConnectionQuality get quality => $_getN(1); + $0.ConnectionQuality get quality => $_getN(1); @$pb.TagNumber(2) - set quality($2.ConnectionQuality value) => $_setField(2, value); + set quality($0.ConnectionQuality value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasQuality() => $_has(1); @$pb.TagNumber(2) @@ -2704,12 +3366,11 @@ class ConnectionQualityUpdate extends $pb.GeneratedMessage { 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) + ..pPM(1, _omitFieldNames ? '' : 'updates', subBuilder: ConnectionQualityInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ConnectionQualityUpdate clone() => ConnectionQualityUpdate()..mergeFromMessage(this); + ConnectionQualityUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ConnectionQualityUpdate copyWith(void Function(ConnectionQualityUpdate) updates) => super.copyWith((message) => updates(message as ConnectionQualityUpdate)) as ConnectionQualityUpdate; @@ -2721,7 +3382,6 @@ class ConnectionQualityUpdate extends $pb.GeneratedMessage { static ConnectionQualityUpdate create() => ConnectionQualityUpdate._(); @$core.override ConnectionQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ConnectionQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2756,12 +3416,11 @@ class StreamStateInfo extends $pb.GeneratedMessage { 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) + ..aE(3, _omitFieldNames ? '' : 'state', enumValues: StreamState.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StreamStateInfo clone() => StreamStateInfo()..mergeFromMessage(this); + StreamStateInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') StreamStateInfo copyWith(void Function(StreamStateInfo) updates) => super.copyWith((message) => updates(message as StreamStateInfo)) as StreamStateInfo; @@ -2773,7 +3432,6 @@ class StreamStateInfo extends $pb.GeneratedMessage { static StreamStateInfo create() => StreamStateInfo._(); @$core.override StreamStateInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static StreamStateInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2827,12 +3485,11 @@ class StreamStateUpdate extends $pb.GeneratedMessage { 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) + ..pPM(1, _omitFieldNames ? '' : 'streamStates', subBuilder: StreamStateInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StreamStateUpdate clone() => StreamStateUpdate()..mergeFromMessage(this); + StreamStateUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') StreamStateUpdate copyWith(void Function(StreamStateUpdate) updates) => super.copyWith((message) => updates(message as StreamStateUpdate)) as StreamStateUpdate; @@ -2844,7 +3501,6 @@ class StreamStateUpdate extends $pb.GeneratedMessage { static StreamStateUpdate create() => StreamStateUpdate._(); @$core.override StreamStateUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static StreamStateUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2856,7 +3512,7 @@ class StreamStateUpdate extends $pb.GeneratedMessage { class SubscribedQuality extends $pb.GeneratedMessage { factory SubscribedQuality({ - $2.VideoQuality? quality, + $0.VideoQuality? quality, $core.bool? enabled, }) { final result = create(); @@ -2876,13 +3532,12 @@ class SubscribedQuality extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedQuality', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e<$2.VideoQuality>(1, _omitFieldNames ? '' : 'quality', $pb.PbFieldType.OE, - defaultOrMaker: $2.VideoQuality.LOW, valueOf: $2.VideoQuality.valueOf, enumValues: $2.VideoQuality.values) + ..aE<$0.VideoQuality>(1, _omitFieldNames ? '' : 'quality', enumValues: $0.VideoQuality.values) ..aOB(2, _omitFieldNames ? '' : 'enabled') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscribedQuality clone() => SubscribedQuality()..mergeFromMessage(this); + SubscribedQuality clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscribedQuality copyWith(void Function(SubscribedQuality) updates) => super.copyWith((message) => updates(message as SubscribedQuality)) as SubscribedQuality; @@ -2894,16 +3549,15 @@ class SubscribedQuality extends $pb.GeneratedMessage { static SubscribedQuality create() => SubscribedQuality._(); @$core.override SubscribedQuality createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribedQuality getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SubscribedQuality? _defaultInstance; @$pb.TagNumber(1) - $2.VideoQuality get quality => $_getN(0); + $0.VideoQuality get quality => $_getN(0); @$pb.TagNumber(1) - set quality($2.VideoQuality value) => $_setField(1, value); + set quality($0.VideoQuality value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasQuality() => $_has(0); @$pb.TagNumber(1) @@ -2941,12 +3595,11 @@ class SubscribedCodec extends $pb.GeneratedMessage { 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) + ..pPM(2, _omitFieldNames ? '' : 'qualities', subBuilder: SubscribedQuality.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscribedCodec clone() => SubscribedCodec()..mergeFromMessage(this); + SubscribedCodec clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscribedCodec copyWith(void Function(SubscribedCodec) updates) => super.copyWith((message) => updates(message as SubscribedCodec)) as SubscribedCodec; @@ -2958,7 +3611,6 @@ class SubscribedCodec extends $pb.GeneratedMessage { static SubscribedCodec create() => SubscribedCodec._(); @$core.override SubscribedCodec createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribedCodec getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3002,14 +3654,12 @@ class SubscribedQualityUpdate extends $pb.GeneratedMessage { 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) + ..pPM(2, _omitFieldNames ? '' : 'subscribedQualities', subBuilder: SubscribedQuality.create) + ..pPM(3, _omitFieldNames ? '' : 'subscribedCodecs', subBuilder: SubscribedCodec.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscribedQualityUpdate clone() => SubscribedQualityUpdate()..mergeFromMessage(this); + SubscribedQualityUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscribedQualityUpdate copyWith(void Function(SubscribedQualityUpdate) updates) => super.copyWith((message) => updates(message as SubscribedQualityUpdate)) as SubscribedQualityUpdate; @@ -3021,7 +3671,6 @@ class SubscribedQualityUpdate extends $pb.GeneratedMessage { static SubscribedQualityUpdate create() => SubscribedQualityUpdate._(); @$core.override SubscribedQualityUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribedQualityUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3047,7 +3696,7 @@ class SubscribedQualityUpdate extends $pb.GeneratedMessage { class SubscribedAudioCodecUpdate extends $pb.GeneratedMessage { factory SubscribedAudioCodecUpdate({ $core.String? trackSid, - $core.Iterable<$2.SubscribedAudioCodec>? subscribedAudioCodecs, + $core.Iterable<$0.SubscribedAudioCodec>? subscribedAudioCodecs, }) { final result = create(); if (trackSid != null) result.trackSid = trackSid; @@ -3067,12 +3716,12 @@ class SubscribedAudioCodecUpdate extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribedAudioCodecUpdate', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..pc<$2.SubscribedAudioCodec>(2, _omitFieldNames ? '' : 'subscribedAudioCodecs', $pb.PbFieldType.PM, - subBuilder: $2.SubscribedAudioCodec.create) + ..pPM<$0.SubscribedAudioCodec>(2, _omitFieldNames ? '' : 'subscribedAudioCodecs', + subBuilder: $0.SubscribedAudioCodec.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscribedAudioCodecUpdate clone() => SubscribedAudioCodecUpdate()..mergeFromMessage(this); + SubscribedAudioCodecUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscribedAudioCodecUpdate copyWith(void Function(SubscribedAudioCodecUpdate) updates) => super.copyWith((message) => updates(message as SubscribedAudioCodecUpdate)) as SubscribedAudioCodecUpdate; @@ -3084,7 +3733,6 @@ class SubscribedAudioCodecUpdate extends $pb.GeneratedMessage { static SubscribedAudioCodecUpdate create() => SubscribedAudioCodecUpdate._(); @$core.override SubscribedAudioCodecUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribedAudioCodecUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3100,7 +3748,7 @@ class SubscribedAudioCodecUpdate extends $pb.GeneratedMessage { void clearTrackSid() => $_clearField(1); @$pb.TagNumber(2) - $pb.PbList<$2.SubscribedAudioCodec> get subscribedAudioCodecs => $_getList(1); + $pb.PbList<$0.SubscribedAudioCodec> get subscribedAudioCodecs => $_getList(1); } class TrackPermission extends $pb.GeneratedMessage { @@ -3135,7 +3783,7 @@ class TrackPermission extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrackPermission clone() => TrackPermission()..mergeFromMessage(this); + TrackPermission clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrackPermission copyWith(void Function(TrackPermission) updates) => super.copyWith((message) => updates(message as TrackPermission)) as TrackPermission; @@ -3147,7 +3795,6 @@ class TrackPermission extends $pb.GeneratedMessage { static TrackPermission create() => TrackPermission._(); @$core.override TrackPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3208,12 +3855,11 @@ class SubscriptionPermission extends $pb.GeneratedMessage { 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) + ..pPM(2, _omitFieldNames ? '' : 'trackPermissions', subBuilder: TrackPermission.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscriptionPermission clone() => SubscriptionPermission()..mergeFromMessage(this); + SubscriptionPermission clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscriptionPermission copyWith(void Function(SubscriptionPermission) updates) => super.copyWith((message) => updates(message as SubscriptionPermission)) as SubscriptionPermission; @@ -3225,7 +3871,6 @@ class SubscriptionPermission extends $pb.GeneratedMessage { static SubscriptionPermission create() => SubscriptionPermission._(); @$core.override SubscriptionPermission createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscriptionPermission getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3274,7 +3919,7 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscriptionPermissionUpdate clone() => SubscriptionPermissionUpdate()..mergeFromMessage(this); + SubscriptionPermissionUpdate clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscriptionPermissionUpdate copyWith(void Function(SubscriptionPermissionUpdate) updates) => super.copyWith((message) => updates(message as SubscriptionPermissionUpdate)) as SubscriptionPermissionUpdate; @@ -3286,7 +3931,6 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { static SubscriptionPermissionUpdate create() => SubscriptionPermissionUpdate._(); @$core.override SubscriptionPermissionUpdate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscriptionPermissionUpdate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3322,10 +3966,10 @@ class SubscriptionPermissionUpdate extends $pb.GeneratedMessage { class RoomMovedResponse extends $pb.GeneratedMessage { factory RoomMovedResponse({ - $2.Room? room, + $0.Room? room, $core.String? token, - $2.ParticipantInfo? participant, - $core.Iterable<$2.ParticipantInfo>? otherParticipants, + $0.ParticipantInfo? participant, + $core.Iterable<$0.ParticipantInfo>? otherParticipants, }) { final result = create(); if (room != null) result.room = room; @@ -3346,15 +3990,14 @@ class RoomMovedResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RoomMovedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$2.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $2.Room.create) + ..aOM<$0.Room>(1, _omitFieldNames ? '' : 'room', subBuilder: $0.Room.create) ..aOS(2, _omitFieldNames ? '' : 'token') - ..aOM<$2.ParticipantInfo>(3, _omitFieldNames ? '' : 'participant', subBuilder: $2.ParticipantInfo.create) - ..pc<$2.ParticipantInfo>(4, _omitFieldNames ? '' : 'otherParticipants', $pb.PbFieldType.PM, - subBuilder: $2.ParticipantInfo.create) + ..aOM<$0.ParticipantInfo>(3, _omitFieldNames ? '' : 'participant', subBuilder: $0.ParticipantInfo.create) + ..pPM<$0.ParticipantInfo>(4, _omitFieldNames ? '' : 'otherParticipants', subBuilder: $0.ParticipantInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RoomMovedResponse clone() => RoomMovedResponse()..mergeFromMessage(this); + RoomMovedResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RoomMovedResponse copyWith(void Function(RoomMovedResponse) updates) => super.copyWith((message) => updates(message as RoomMovedResponse)) as RoomMovedResponse; @@ -3366,7 +4009,6 @@ class RoomMovedResponse extends $pb.GeneratedMessage { static RoomMovedResponse create() => RoomMovedResponse._(); @$core.override RoomMovedResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RoomMovedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3374,15 +4016,15 @@ class RoomMovedResponse extends $pb.GeneratedMessage { /// information about the new room @$pb.TagNumber(1) - $2.Room get room => $_getN(0); + $0.Room get room => $_getN(0); @$pb.TagNumber(1) - set room($2.Room value) => $_setField(1, value); + set room($0.Room value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasRoom() => $_has(0); @$pb.TagNumber(1) void clearRoom() => $_clearField(1); @$pb.TagNumber(1) - $2.Room ensureRoom() => $_ensure(0); + $0.Room ensureRoom() => $_ensure(0); /// new reconnect token that can be used to reconnect to the new room @$pb.TagNumber(2) @@ -3395,18 +4037,18 @@ class RoomMovedResponse extends $pb.GeneratedMessage { void clearToken() => $_clearField(2); @$pb.TagNumber(3) - $2.ParticipantInfo get participant => $_getN(2); + $0.ParticipantInfo get participant => $_getN(2); @$pb.TagNumber(3) - set participant($2.ParticipantInfo value) => $_setField(3, value); + set participant($0.ParticipantInfo value) => $_setField(3, value); @$pb.TagNumber(3) $core.bool hasParticipant() => $_has(2); @$pb.TagNumber(3) void clearParticipant() => $_clearField(3); @$pb.TagNumber(3) - $2.ParticipantInfo ensureParticipant() => $_ensure(2); + $0.ParticipantInfo ensureParticipant() => $_ensure(2); @$pb.TagNumber(4) - $pb.PbList<$2.ParticipantInfo> get otherParticipants => $_getList(3); + $pb.PbList<$0.ParticipantInfo> get otherParticipants => $_getList(3); } class SyncState extends $pb.GeneratedMessage { @@ -3418,6 +4060,7 @@ class SyncState extends $pb.GeneratedMessage { SessionDescription? offer, $core.Iterable<$core.String>? trackSidsDisabled, $core.Iterable? datachannelReceiveStates, + $core.Iterable? publishDataTracks, }) { final result = create(); if (answer != null) result.answer = answer; @@ -3427,6 +4070,7 @@ class SyncState extends $pb.GeneratedMessage { if (offer != null) result.offer = offer; if (trackSidsDisabled != null) result.trackSidsDisabled.addAll(trackSidsDisabled); if (datachannelReceiveStates != null) result.datachannelReceiveStates.addAll(datachannelReceiveStates); + if (publishDataTracks != null) result.publishDataTracks.addAll(publishDataTracks); return result; } @@ -3442,18 +4086,18 @@ class SyncState extends $pb.GeneratedMessage { 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) + ..pPM(3, _omitFieldNames ? '' : 'publishTracks', subBuilder: TrackPublishedResponse.create) + ..pPM(4, _omitFieldNames ? '' : 'dataChannels', subBuilder: DataChannelInfo.create) ..aOM(5, _omitFieldNames ? '' : 'offer', subBuilder: SessionDescription.create) ..pPS(6, _omitFieldNames ? '' : 'trackSidsDisabled') - ..pc(7, _omitFieldNames ? '' : 'datachannelReceiveStates', $pb.PbFieldType.PM, + ..pPM(7, _omitFieldNames ? '' : 'datachannelReceiveStates', subBuilder: DataChannelReceiveState.create) + ..pPM(8, _omitFieldNames ? '' : 'publishDataTracks', + subBuilder: PublishDataTrackResponse.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SyncState clone() => SyncState()..mergeFromMessage(this); + SyncState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SyncState copyWith(void Function(SyncState) updates) => super.copyWith((message) => updates(message as SyncState)) as SyncState; @@ -3465,7 +4109,6 @@ class SyncState extends $pb.GeneratedMessage { static SyncState create() => SyncState._(); @$core.override SyncState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SyncState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SyncState? _defaultInstance; @@ -3520,6 +4163,9 @@ class SyncState extends $pb.GeneratedMessage { @$pb.TagNumber(7) $pb.PbList get datachannelReceiveStates => $_getList(6); + + @$pb.TagNumber(8) + $pb.PbList get publishDataTracks => $_getList(7); } class DataChannelReceiveState extends $pb.GeneratedMessage { @@ -3545,11 +4191,11 @@ class DataChannelReceiveState extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DataChannelReceiveState', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'publisherSid') - ..a<$core.int>(2, _omitFieldNames ? '' : 'lastSeq', $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'lastSeq', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataChannelReceiveState clone() => DataChannelReceiveState()..mergeFromMessage(this); + DataChannelReceiveState clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataChannelReceiveState copyWith(void Function(DataChannelReceiveState) updates) => super.copyWith((message) => updates(message as DataChannelReceiveState)) as DataChannelReceiveState; @@ -3561,7 +4207,6 @@ class DataChannelReceiveState extends $pb.GeneratedMessage { static DataChannelReceiveState create() => DataChannelReceiveState._(); @$core.override DataChannelReceiveState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataChannelReceiveState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3610,13 +4255,12 @@ class DataChannelInfo extends $pb.GeneratedMessage { 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) + ..aI(2, _omitFieldNames ? '' : 'id', fieldType: $pb.PbFieldType.OU3) + ..aE(3, _omitFieldNames ? '' : 'target', enumValues: SignalTarget.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DataChannelInfo clone() => DataChannelInfo()..mergeFromMessage(this); + DataChannelInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') DataChannelInfo copyWith(void Function(DataChannelInfo) updates) => super.copyWith((message) => updates(message as DataChannelInfo)) as DataChannelInfo; @@ -3628,7 +4272,6 @@ class DataChannelInfo extends $pb.GeneratedMessage { static DataChannelInfo create() => DataChannelInfo._(); @$core.override DataChannelInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DataChannelInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3725,12 +4368,11 @@ class SimulateScenario extends $pb.GeneratedMessage { 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, 7, 8, 9]) - ..a<$core.int>(1, _omitFieldNames ? '' : 'speakerUpdate', $pb.PbFieldType.O3) + ..aI(1, _omitFieldNames ? '' : 'speakerUpdate') ..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) + ..aE(5, _omitFieldNames ? '' : 'switchCandidateProtocol', enumValues: CandidateProtocol.values) ..aInt64(6, _omitFieldNames ? '' : 'subscriberBandwidth') ..aOB(7, _omitFieldNames ? '' : 'disconnectSignalOnResume') ..aOB(8, _omitFieldNames ? '' : 'disconnectSignalOnResumeNoMessages') @@ -3738,7 +4380,7 @@ class SimulateScenario extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SimulateScenario clone() => SimulateScenario()..mergeFromMessage(this); + SimulateScenario clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SimulateScenario copyWith(void Function(SimulateScenario) updates) => super.copyWith((message) => updates(message as SimulateScenario)) as SimulateScenario; @@ -3750,13 +4392,30 @@ class SimulateScenario extends $pb.GeneratedMessage { static SimulateScenario create() => SimulateScenario._(); @$core.override SimulateScenario createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SimulateScenario getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SimulateScenario? _defaultInstance; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) SimulateScenario_Scenario whichScenario() => _SimulateScenario_ScenarioByTag[$_whichOneof(0)]!; + @$pb.TagNumber(1) + @$pb.TagNumber(2) + @$pb.TagNumber(3) + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) void clearScenario() => $_clearField($_whichOneof(0)); /// simulate N seconds of speaker activity @@ -3876,7 +4535,7 @@ class Ping extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Ping clone() => Ping()..mergeFromMessage(this); + Ping clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Ping copyWith(void Function(Ping) updates) => super.copyWith((message) => updates(message as Ping)) as Ping; @@ -3887,7 +4546,6 @@ class Ping extends $pb.GeneratedMessage { static Ping create() => Ping._(); @$core.override Ping createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Ping getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Ping? _defaultInstance; @@ -3937,7 +4595,7 @@ class Pong extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Pong clone() => Pong()..mergeFromMessage(this); + Pong clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Pong copyWith(void Function(Pong) updates) => super.copyWith((message) => updates(message as Pong)) as Pong; @@ -3948,7 +4606,6 @@ class Pong extends $pb.GeneratedMessage { static Pong create() => Pong._(); @$core.override Pong createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Pong getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Pong? _defaultInstance; @@ -3992,11 +4649,11 @@ class RegionSettings extends $pb.GeneratedMessage { 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) + ..pPM(1, _omitFieldNames ? '' : 'regions', subBuilder: RegionInfo.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RegionSettings clone() => RegionSettings()..mergeFromMessage(this); + RegionSettings clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RegionSettings copyWith(void Function(RegionSettings) updates) => super.copyWith((message) => updates(message as RegionSettings)) as RegionSettings; @@ -4008,7 +4665,6 @@ class RegionSettings extends $pb.GeneratedMessage { static RegionSettings create() => RegionSettings._(); @$core.override RegionSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RegionSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RegionSettings? _defaultInstance; @@ -4046,7 +4702,7 @@ class RegionInfo extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RegionInfo clone() => RegionInfo()..mergeFromMessage(this); + RegionInfo clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RegionInfo copyWith(void Function(RegionInfo) updates) => super.copyWith((message) => updates(message as RegionInfo)) as RegionInfo; @@ -4058,7 +4714,6 @@ class RegionInfo extends $pb.GeneratedMessage { static RegionInfo create() => RegionInfo._(); @$core.override RegionInfo createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RegionInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RegionInfo? _defaultInstance; @@ -4094,7 +4749,7 @@ class RegionInfo extends $pb.GeneratedMessage { class SubscriptionResponse extends $pb.GeneratedMessage { factory SubscriptionResponse({ $core.String? trackSid, - $2.SubscriptionError? err, + $0.SubscriptionError? err, }) { final result = create(); if (trackSid != null) result.trackSid = trackSid; @@ -4114,14 +4769,11 @@ class SubscriptionResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'trackSid') - ..e<$2.SubscriptionError>(2, _omitFieldNames ? '' : 'err', $pb.PbFieldType.OE, - defaultOrMaker: $2.SubscriptionError.SE_UNKNOWN, - valueOf: $2.SubscriptionError.valueOf, - enumValues: $2.SubscriptionError.values) + ..aE<$0.SubscriptionError>(2, _omitFieldNames ? '' : 'err', enumValues: $0.SubscriptionError.values) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - SubscriptionResponse clone() => SubscriptionResponse()..mergeFromMessage(this); + SubscriptionResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') SubscriptionResponse copyWith(void Function(SubscriptionResponse) updates) => super.copyWith((message) => updates(message as SubscriptionResponse)) as SubscriptionResponse; @@ -4133,7 +4785,6 @@ class SubscriptionResponse extends $pb.GeneratedMessage { static SubscriptionResponse create() => SubscriptionResponse._(); @$core.override SubscriptionResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscriptionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -4149,16 +4800,26 @@ class SubscriptionResponse extends $pb.GeneratedMessage { void clearTrackSid() => $_clearField(1); @$pb.TagNumber(2) - $2.SubscriptionError get err => $_getN(1); + $0.SubscriptionError get err => $_getN(1); @$pb.TagNumber(2) - set err($2.SubscriptionError value) => $_setField(2, value); + set err($0.SubscriptionError value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasErr() => $_has(1); @$pb.TagNumber(2) void clearErr() => $_clearField(2); } -enum RequestResponse_Request { trickle, addTrack, mute, updateMetadata, updateAudioTrack, updateVideoTrack, notSet } +enum RequestResponse_Request { + trickle, + addTrack, + mute, + updateMetadata, + updateAudioTrack, + updateVideoTrack, + publishDataTrack, + unpublishDataTrack, + notSet +} class RequestResponse extends $pb.GeneratedMessage { factory RequestResponse({ @@ -4171,6 +4832,8 @@ class RequestResponse extends $pb.GeneratedMessage { UpdateParticipantMetadata? updateMetadata, UpdateLocalAudioTrack? updateAudioTrack, UpdateLocalVideoTrack? updateVideoTrack, + PublishDataTrackRequest? publishDataTrack, + UnpublishDataTrackRequest? unpublishDataTrack, }) { final result = create(); if (requestId != null) result.requestId = requestId; @@ -4182,6 +4845,8 @@ class RequestResponse extends $pb.GeneratedMessage { if (updateMetadata != null) result.updateMetadata = updateMetadata; if (updateAudioTrack != null) result.updateAudioTrack = updateAudioTrack; if (updateVideoTrack != null) result.updateVideoTrack = updateVideoTrack; + if (publishDataTrack != null) result.publishDataTrack = publishDataTrack; + if (unpublishDataTrack != null) result.unpublishDataTrack = unpublishDataTrack; return result; } @@ -4200,16 +4865,15 @@ class RequestResponse extends $pb.GeneratedMessage { 7: RequestResponse_Request.updateMetadata, 8: RequestResponse_Request.updateAudioTrack, 9: RequestResponse_Request.updateVideoTrack, + 10: RequestResponse_Request.publishDataTrack, + 11: RequestResponse_Request.unpublishDataTrack, 0: RequestResponse_Request.notSet }; static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RequestResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7, 8, 9]) - ..a<$core.int>(1, _omitFieldNames ? '' : 'requestId', $pb.PbFieldType.OU3) - ..e(2, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, - defaultOrMaker: RequestResponse_Reason.OK, - valueOf: RequestResponse_Reason.valueOf, - enumValues: RequestResponse_Reason.values) + ..oo(0, [4, 5, 6, 7, 8, 9, 10, 11]) + ..aI(1, _omitFieldNames ? '' : 'requestId', fieldType: $pb.PbFieldType.OU3) + ..aE(2, _omitFieldNames ? '' : 'reason', enumValues: RequestResponse_Reason.values) ..aOS(3, _omitFieldNames ? '' : 'message') ..aOM(4, _omitFieldNames ? '' : 'trickle', subBuilder: TrickleRequest.create) ..aOM(5, _omitFieldNames ? '' : 'addTrack', subBuilder: AddTrackRequest.create) @@ -4218,10 +4882,14 @@ class RequestResponse extends $pb.GeneratedMessage { subBuilder: UpdateParticipantMetadata.create) ..aOM(8, _omitFieldNames ? '' : 'updateAudioTrack', subBuilder: UpdateLocalAudioTrack.create) ..aOM(9, _omitFieldNames ? '' : 'updateVideoTrack', subBuilder: UpdateLocalVideoTrack.create) + ..aOM(10, _omitFieldNames ? '' : 'publishDataTrack', + subBuilder: PublishDataTrackRequest.create) + ..aOM(11, _omitFieldNames ? '' : 'unpublishDataTrack', + subBuilder: UnpublishDataTrackRequest.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - RequestResponse clone() => RequestResponse()..mergeFromMessage(this); + RequestResponse clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') RequestResponse copyWith(void Function(RequestResponse) updates) => super.copyWith((message) => updates(message as RequestResponse)) as RequestResponse; @@ -4233,13 +4901,28 @@ class RequestResponse extends $pb.GeneratedMessage { static RequestResponse create() => RequestResponse._(); @$core.override RequestResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RequestResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RequestResponse? _defaultInstance; + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) RequestResponse_Request whichRequest() => _RequestResponse_RequestByTag[$_whichOneof(0)]!; + @$pb.TagNumber(4) + @$pb.TagNumber(5) + @$pb.TagNumber(6) + @$pb.TagNumber(7) + @$pb.TagNumber(8) + @$pb.TagNumber(9) + @$pb.TagNumber(10) + @$pb.TagNumber(11) void clearRequest() => $_clearField($_whichOneof(0)); @$pb.TagNumber(1) @@ -4334,6 +5017,28 @@ class RequestResponse extends $pb.GeneratedMessage { void clearUpdateVideoTrack() => $_clearField(9); @$pb.TagNumber(9) UpdateLocalVideoTrack ensureUpdateVideoTrack() => $_ensure(8); + + @$pb.TagNumber(10) + PublishDataTrackRequest get publishDataTrack => $_getN(9); + @$pb.TagNumber(10) + set publishDataTrack(PublishDataTrackRequest value) => $_setField(10, value); + @$pb.TagNumber(10) + $core.bool hasPublishDataTrack() => $_has(9); + @$pb.TagNumber(10) + void clearPublishDataTrack() => $_clearField(10); + @$pb.TagNumber(10) + PublishDataTrackRequest ensurePublishDataTrack() => $_ensure(9); + + @$pb.TagNumber(11) + UnpublishDataTrackRequest get unpublishDataTrack => $_getN(10); + @$pb.TagNumber(11) + set unpublishDataTrack(UnpublishDataTrackRequest value) => $_setField(11, value); + @$pb.TagNumber(11) + $core.bool hasUnpublishDataTrack() => $_has(10); + @$pb.TagNumber(11) + void clearUnpublishDataTrack() => $_clearField(11); + @$pb.TagNumber(11) + UnpublishDataTrackRequest ensureUnpublishDataTrack() => $_ensure(10); } class TrackSubscribed extends $pb.GeneratedMessage { @@ -4359,7 +5064,7 @@ class TrackSubscribed extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - TrackSubscribed clone() => TrackSubscribed()..mergeFromMessage(this); + TrackSubscribed clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') TrackSubscribed copyWith(void Function(TrackSubscribed) updates) => super.copyWith((message) => updates(message as TrackSubscribed)) as TrackSubscribed; @@ -4371,7 +5076,6 @@ class TrackSubscribed extends $pb.GeneratedMessage { static TrackSubscribed create() => TrackSubscribed._(); @$core.override TrackSubscribed createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackSubscribed getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -4420,7 +5124,7 @@ class ConnectionSettings extends $pb.GeneratedMessage { ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ConnectionSettings clone() => ConnectionSettings()..mergeFromMessage(this); + ConnectionSettings clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ConnectionSettings copyWith(void Function(ConnectionSettings) updates) => super.copyWith((message) => updates(message as ConnectionSettings)) as ConnectionSettings; @@ -4432,7 +5136,6 @@ class ConnectionSettings extends $pb.GeneratedMessage { static ConnectionSettings create() => ConnectionSettings._(); @$core.override ConnectionSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ConnectionSettings getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -4477,14 +5180,14 @@ class ConnectionSettings extends $pb.GeneratedMessage { class JoinRequest extends $pb.GeneratedMessage { factory JoinRequest({ - $2.ClientInfo? clientInfo, + $0.ClientInfo? clientInfo, ConnectionSettings? connectionSettings, $core.String? metadata, $core.Iterable<$core.MapEntry<$core.String, $core.String>>? participantAttributes, $core.Iterable? addTrackRequests, SessionDescription? publisherOffer, $core.bool? reconnect, - $2.ReconnectReason? reconnectReason, + $0.ReconnectReason? reconnectReason, $core.String? participantSid, SyncState? syncState, }) { @@ -4512,7 +5215,7 @@ class JoinRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'JoinRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..aOM<$2.ClientInfo>(1, _omitFieldNames ? '' : 'clientInfo', subBuilder: $2.ClientInfo.create) + ..aOM<$0.ClientInfo>(1, _omitFieldNames ? '' : 'clientInfo', subBuilder: $0.ClientInfo.create) ..aOM(2, _omitFieldNames ? '' : 'connectionSettings', subBuilder: ConnectionSettings.create) ..aOS(3, _omitFieldNames ? '' : 'metadata') ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'participantAttributes', @@ -4520,20 +5223,16 @@ class JoinRequest extends $pb.GeneratedMessage { keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('livekit')) - ..pc(5, _omitFieldNames ? '' : 'addTrackRequests', $pb.PbFieldType.PM, - subBuilder: AddTrackRequest.create) + ..pPM(5, _omitFieldNames ? '' : 'addTrackRequests', subBuilder: AddTrackRequest.create) ..aOM(6, _omitFieldNames ? '' : 'publisherOffer', subBuilder: SessionDescription.create) ..aOB(7, _omitFieldNames ? '' : 'reconnect') - ..e<$2.ReconnectReason>(8, _omitFieldNames ? '' : 'reconnectReason', $pb.PbFieldType.OE, - defaultOrMaker: $2.ReconnectReason.RR_UNKNOWN, - valueOf: $2.ReconnectReason.valueOf, - enumValues: $2.ReconnectReason.values) + ..aE<$0.ReconnectReason>(8, _omitFieldNames ? '' : 'reconnectReason', enumValues: $0.ReconnectReason.values) ..aOS(9, _omitFieldNames ? '' : 'participantSid') ..aOM(10, _omitFieldNames ? '' : 'syncState', subBuilder: SyncState.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - JoinRequest clone() => JoinRequest()..mergeFromMessage(this); + JoinRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') JoinRequest copyWith(void Function(JoinRequest) updates) => super.copyWith((message) => updates(message as JoinRequest)) as JoinRequest; @@ -4545,21 +5244,20 @@ class JoinRequest extends $pb.GeneratedMessage { static JoinRequest create() => JoinRequest._(); @$core.override JoinRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static JoinRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static JoinRequest? _defaultInstance; @$pb.TagNumber(1) - $2.ClientInfo get clientInfo => $_getN(0); + $0.ClientInfo get clientInfo => $_getN(0); @$pb.TagNumber(1) - set clientInfo($2.ClientInfo value) => $_setField(1, value); + set clientInfo($0.ClientInfo value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasClientInfo() => $_has(0); @$pb.TagNumber(1) void clearClientInfo() => $_clearField(1); @$pb.TagNumber(1) - $2.ClientInfo ensureClientInfo() => $_ensure(0); + $0.ClientInfo ensureClientInfo() => $_ensure(0); @$pb.TagNumber(2) ConnectionSettings get connectionSettings => $_getN(1); @@ -4611,9 +5309,9 @@ class JoinRequest extends $pb.GeneratedMessage { void clearReconnect() => $_clearField(7); @$pb.TagNumber(8) - $2.ReconnectReason get reconnectReason => $_getN(7); + $0.ReconnectReason get reconnectReason => $_getN(7); @$pb.TagNumber(8) - set reconnectReason($2.ReconnectReason value) => $_setField(8, value); + set reconnectReason($0.ReconnectReason value) => $_setField(8, value); @$pb.TagNumber(8) $core.bool hasReconnectReason() => $_has(7); @$pb.TagNumber(8) @@ -4662,15 +5360,13 @@ class WrappedJoinRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WrappedJoinRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..e(1, _omitFieldNames ? '' : 'compression', $pb.PbFieldType.OE, - defaultOrMaker: WrappedJoinRequest_Compression.NONE, - valueOf: WrappedJoinRequest_Compression.valueOf, + ..aE(1, _omitFieldNames ? '' : 'compression', enumValues: WrappedJoinRequest_Compression.values) ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'joinRequest', $pb.PbFieldType.OY) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - WrappedJoinRequest clone() => WrappedJoinRequest()..mergeFromMessage(this); + WrappedJoinRequest clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') WrappedJoinRequest copyWith(void Function(WrappedJoinRequest) updates) => super.copyWith((message) => updates(message as WrappedJoinRequest)) as WrappedJoinRequest; @@ -4682,7 +5378,6 @@ class WrappedJoinRequest extends $pb.GeneratedMessage { static WrappedJoinRequest create() => WrappedJoinRequest._(); @$core.override WrappedJoinRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static WrappedJoinRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -4729,12 +5424,12 @@ class MediaSectionsRequirement extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MediaSectionsRequirement', package: const $pb.PackageName(_omitMessageNames ? '' : 'livekit'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'numAudios', $pb.PbFieldType.OU3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'numVideos', $pb.PbFieldType.OU3) + ..aI(1, _omitFieldNames ? '' : 'numAudios', fieldType: $pb.PbFieldType.OU3) + ..aI(2, _omitFieldNames ? '' : 'numVideos', fieldType: $pb.PbFieldType.OU3) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - MediaSectionsRequirement clone() => MediaSectionsRequirement()..mergeFromMessage(this); + MediaSectionsRequirement clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') MediaSectionsRequirement copyWith(void Function(MediaSectionsRequirement) updates) => super.copyWith((message) => updates(message as MediaSectionsRequirement)) as MediaSectionsRequirement; @@ -4746,7 +5441,6 @@ class MediaSectionsRequirement extends $pb.GeneratedMessage { static MediaSectionsRequirement create() => MediaSectionsRequirement._(); @$core.override MediaSectionsRequirement createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MediaSectionsRequirement getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); diff --git a/lib/src/proto/livekit_rtc.pbenum.dart b/lib/src/proto/livekit_rtc.pbenum.dart index d45ac2fd..6ea0e498 100644 --- a/lib/src/proto/livekit_rtc.pbenum.dart +++ b/lib/src/proto/livekit_rtc.pbenum.dart @@ -1,14 +1,14 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_rtc.proto -// +// Generated from livekit_rtc.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports import 'dart:core' as $core; @@ -91,6 +91,13 @@ class RequestResponse_Reason extends $pb.ProtobufEnum { RequestResponse_Reason._(5, _omitEnumNames ? '' : 'UNSUPPORTED_TYPE'); static const RequestResponse_Reason UNCLASSIFIED_ERROR = RequestResponse_Reason._(6, _omitEnumNames ? '' : 'UNCLASSIFIED_ERROR'); + static const RequestResponse_Reason INVALID_HANDLE = + RequestResponse_Reason._(7, _omitEnumNames ? '' : 'INVALID_HANDLE'); + static const RequestResponse_Reason INVALID_NAME = RequestResponse_Reason._(8, _omitEnumNames ? '' : 'INVALID_NAME'); + static const RequestResponse_Reason DUPLICATE_HANDLE = + RequestResponse_Reason._(9, _omitEnumNames ? '' : 'DUPLICATE_HANDLE'); + static const RequestResponse_Reason DUPLICATE_NAME = + RequestResponse_Reason._(10, _omitEnumNames ? '' : 'DUPLICATE_NAME'); static const $core.List values = [ OK, @@ -100,9 +107,13 @@ class RequestResponse_Reason extends $pb.ProtobufEnum { QUEUED, UNSUPPORTED_TYPE, UNCLASSIFIED_ERROR, + INVALID_HANDLE, + INVALID_NAME, + DUPLICATE_HANDLE, + DUPLICATE_NAME, ]; - static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6); + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 10); static RequestResponse_Reason? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; diff --git a/lib/src/proto/livekit_rtc.pbjson.dart b/lib/src/proto/livekit_rtc.pbjson.dart index 910a1750..40abe174 100644 --- a/lib/src/proto/livekit_rtc.pbjson.dart +++ b/lib/src/proto/livekit_rtc.pbjson.dart @@ -1,14 +1,15 @@ +// This is a generated file - do not edit. // -// Generated code. Do not modify. -// source: livekit_rtc.proto -// +// Generated from livekit_rtc.proto. + // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes -// ignore_for_file: non_constant_identifier_names +// ignore_for_file: non_constant_identifier_names, prefer_relative_imports +// ignore_for_file: unused_import import 'dart:convert' as $convert; import 'dart:core' as $core; @@ -116,6 +117,33 @@ const SignalRequest$json = { '9': 0, '10': 'updateVideoTrack' }, + { + '1': 'publish_data_track_request', + '3': 19, + '4': 1, + '5': 11, + '6': '.livekit.PublishDataTrackRequest', + '9': 0, + '10': 'publishDataTrackRequest' + }, + { + '1': 'unpublish_data_track_request', + '3': 20, + '4': 1, + '5': 11, + '6': '.livekit.UnpublishDataTrackRequest', + '9': 0, + '10': 'unpublishDataTrackRequest' + }, + { + '1': 'update_data_subscription', + '3': 21, + '4': 1, + '5': 11, + '6': '.livekit.UpdateDataSubscription', + '9': 0, + '10': 'updateDataSubscription' + }, ], '8': [ {'1': 'message'}, @@ -142,8 +170,13 @@ final $typed_data.Uint8List signalRequestDescriptor = 'V0YWRhdGESKgoIcGluZ19yZXEYECABKAsyDS5saXZla2l0LlBpbmdIAFIHcGluZ1JlcRJOChJ1' 'cGRhdGVfYXVkaW9fdHJhY2sYESABKAsyHi5saXZla2l0LlVwZGF0ZUxvY2FsQXVkaW9UcmFja0' 'gAUhB1cGRhdGVBdWRpb1RyYWNrEk4KEnVwZGF0ZV92aWRlb190cmFjaxgSIAEoCzIeLmxpdmVr' - 'aXQuVXBkYXRlTG9jYWxWaWRlb1RyYWNrSABSEHVwZGF0ZVZpZGVvVHJhY2tCCQoHbWVzc2FnZQ' - '=='); + 'aXQuVXBkYXRlTG9jYWxWaWRlb1RyYWNrSABSEHVwZGF0ZVZpZGVvVHJhY2sSXwoacHVibGlzaF' + '9kYXRhX3RyYWNrX3JlcXVlc3QYEyABKAsyIC5saXZla2l0LlB1Ymxpc2hEYXRhVHJhY2tSZXF1' + 'ZXN0SABSF3B1Ymxpc2hEYXRhVHJhY2tSZXF1ZXN0EmUKHHVucHVibGlzaF9kYXRhX3RyYWNrX3' + 'JlcXVlc3QYFCABKAsyIi5saXZla2l0LlVucHVibGlzaERhdGFUcmFja1JlcXVlc3RIAFIZdW5w' + 'dWJsaXNoRGF0YVRyYWNrUmVxdWVzdBJbChh1cGRhdGVfZGF0YV9zdWJzY3JpcHRpb24YFSABKA' + 'syHy5saXZla2l0LlVwZGF0ZURhdGFTdWJzY3JpcHRpb25IAFIWdXBkYXRlRGF0YVN1YnNjcmlw' + 'dGlvbkIJCgdtZXNzYWdl'); @$core.Deprecated('Use signalResponseDescriptor instead') const SignalResponse$json = { @@ -270,6 +303,33 @@ const SignalResponse$json = { '9': 0, '10': 'subscribedAudioCodecUpdate' }, + { + '1': 'publish_data_track_response', + '3': 27, + '4': 1, + '5': 11, + '6': '.livekit.PublishDataTrackResponse', + '9': 0, + '10': 'publishDataTrackResponse' + }, + { + '1': 'unpublish_data_track_response', + '3': 28, + '4': 1, + '5': 11, + '6': '.livekit.UnpublishDataTrackResponse', + '9': 0, + '10': 'unpublishDataTrackResponse' + }, + { + '1': 'data_track_subscriber_handles', + '3': 29, + '4': 1, + '5': 11, + '6': '.livekit.DataTrackSubscriberHandles', + '9': 0, + '10': 'dataTrackSubscriberHandles' + }, ], '8': [ {'1': 'message'}, @@ -308,7 +368,13 @@ final $typed_data.Uint8List signalResponseDescriptor = 'NfcmVxdWlyZW1lbnQYGSABKAsyIS5saXZla2l0Lk1lZGlhU2VjdGlvbnNSZXF1aXJlbWVudEgA' 'UhhtZWRpYVNlY3Rpb25zUmVxdWlyZW1lbnQSaAodc3Vic2NyaWJlZF9hdWRpb19jb2RlY191cG' 'RhdGUYGiABKAsyIy5saXZla2l0LlN1YnNjcmliZWRBdWRpb0NvZGVjVXBkYXRlSABSGnN1YnNj' - 'cmliZWRBdWRpb0NvZGVjVXBkYXRlQgkKB21lc3NhZ2U='); + 'cmliZWRBdWRpb0NvZGVjVXBkYXRlEmIKG3B1Ymxpc2hfZGF0YV90cmFja19yZXNwb25zZRgbIA' + 'EoCzIhLmxpdmVraXQuUHVibGlzaERhdGFUcmFja1Jlc3BvbnNlSABSGHB1Ymxpc2hEYXRhVHJh' + 'Y2tSZXNwb25zZRJoCh11bnB1Ymxpc2hfZGF0YV90cmFja19yZXNwb25zZRgcIAEoCzIjLmxpdm' + 'VraXQuVW5wdWJsaXNoRGF0YVRyYWNrUmVzcG9uc2VIAFIadW5wdWJsaXNoRGF0YVRyYWNrUmVz' + 'cG9uc2USaAodZGF0YV90cmFja19zdWJzY3JpYmVyX2hhbmRsZXMYHSABKAsyIy5saXZla2l0Lk' + 'RhdGFUcmFja1N1YnNjcmliZXJIYW5kbGVzSABSGmRhdGFUcmFja1N1YnNjcmliZXJIYW5kbGVz' + 'QgkKB21lc3NhZ2U='); @$core.Deprecated('Use simulcastCodecDescriptor instead') const SimulcastCodec$json = { @@ -388,6 +454,114 @@ final $typed_data.Uint8List addTrackRequestDescriptor = 'ZWtpdC5CYWNrdXBDb2RlY1BvbGljeVIRYmFja3VwQ29kZWNQb2xpY3kSQQoOYXVkaW9fZmVhdH' 'VyZXMYESADKA4yGi5saXZla2l0LkF1ZGlvVHJhY2tGZWF0dXJlUg1hdWRpb0ZlYXR1cmVz'); +@$core.Deprecated('Use publishDataTrackRequestDescriptor instead') +const PublishDataTrackRequest$json = { + '1': 'PublishDataTrackRequest', + '2': [ + {'1': 'pub_handle', '3': 1, '4': 1, '5': 13, '10': 'pubHandle'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + {'1': 'encryption', '3': 3, '4': 1, '5': 14, '6': '.livekit.Encryption.Type', '10': 'encryption'}, + ], +}; + +/// Descriptor for `PublishDataTrackRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List publishDataTrackRequestDescriptor = + $convert.base64Decode('ChdQdWJsaXNoRGF0YVRyYWNrUmVxdWVzdBIdCgpwdWJfaGFuZGxlGAEgASgNUglwdWJIYW5kbG' + 'USEgoEbmFtZRgCIAEoCVIEbmFtZRI4CgplbmNyeXB0aW9uGAMgASgOMhgubGl2ZWtpdC5FbmNy' + 'eXB0aW9uLlR5cGVSCmVuY3J5cHRpb24='); + +@$core.Deprecated('Use publishDataTrackResponseDescriptor instead') +const PublishDataTrackResponse$json = { + '1': 'PublishDataTrackResponse', + '2': [ + {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.livekit.DataTrackInfo', '10': 'info'}, + ], +}; + +/// Descriptor for `PublishDataTrackResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List publishDataTrackResponseDescriptor = + $convert.base64Decode('ChhQdWJsaXNoRGF0YVRyYWNrUmVzcG9uc2USKgoEaW5mbxgBIAEoCzIWLmxpdmVraXQuRGF0YV' + 'RyYWNrSW5mb1IEaW5mbw=='); + +@$core.Deprecated('Use unpublishDataTrackRequestDescriptor instead') +const UnpublishDataTrackRequest$json = { + '1': 'UnpublishDataTrackRequest', + '2': [ + {'1': 'pub_handle', '3': 1, '4': 1, '5': 13, '10': 'pubHandle'}, + ], +}; + +/// Descriptor for `UnpublishDataTrackRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List unpublishDataTrackRequestDescriptor = + $convert.base64Decode('ChlVbnB1Ymxpc2hEYXRhVHJhY2tSZXF1ZXN0Eh0KCnB1Yl9oYW5kbGUYASABKA1SCXB1Ykhhbm' + 'RsZQ=='); + +@$core.Deprecated('Use unpublishDataTrackResponseDescriptor instead') +const UnpublishDataTrackResponse$json = { + '1': 'UnpublishDataTrackResponse', + '2': [ + {'1': 'info', '3': 1, '4': 1, '5': 11, '6': '.livekit.DataTrackInfo', '10': 'info'}, + ], +}; + +/// Descriptor for `UnpublishDataTrackResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List unpublishDataTrackResponseDescriptor = + $convert.base64Decode('ChpVbnB1Ymxpc2hEYXRhVHJhY2tSZXNwb25zZRIqCgRpbmZvGAEgASgLMhYubGl2ZWtpdC5EYX' + 'RhVHJhY2tJbmZvUgRpbmZv'); + +@$core.Deprecated('Use dataTrackSubscriberHandlesDescriptor instead') +const DataTrackSubscriberHandles$json = { + '1': 'DataTrackSubscriberHandles', + '2': [ + { + '1': 'sub_handles', + '3': 1, + '4': 3, + '5': 11, + '6': '.livekit.DataTrackSubscriberHandles.SubHandlesEntry', + '10': 'subHandles' + }, + ], + '3': [DataTrackSubscriberHandles_PublishedDataTrack$json, DataTrackSubscriberHandles_SubHandlesEntry$json], +}; + +@$core.Deprecated('Use dataTrackSubscriberHandlesDescriptor instead') +const DataTrackSubscriberHandles_PublishedDataTrack$json = { + '1': 'PublishedDataTrack', + '2': [ + {'1': 'publisher_identity', '3': 1, '4': 1, '5': 9, '10': 'publisherIdentity'}, + {'1': 'publisher_sid', '3': 2, '4': 1, '5': 9, '10': 'publisherSid'}, + {'1': 'track_sid', '3': 3, '4': 1, '5': 9, '10': 'trackSid'}, + ], +}; + +@$core.Deprecated('Use dataTrackSubscriberHandlesDescriptor instead') +const DataTrackSubscriberHandles_SubHandlesEntry$json = { + '1': 'SubHandlesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 13, '10': 'key'}, + { + '1': 'value', + '3': 2, + '4': 1, + '5': 11, + '6': '.livekit.DataTrackSubscriberHandles.PublishedDataTrack', + '10': 'value' + }, + ], + '7': {'7': true}, +}; + +/// Descriptor for `DataTrackSubscriberHandles`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dataTrackSubscriberHandlesDescriptor = + $convert.base64Decode('ChpEYXRhVHJhY2tTdWJzY3JpYmVySGFuZGxlcxJUCgtzdWJfaGFuZGxlcxgBIAMoCzIzLmxpdm' + 'VraXQuRGF0YVRyYWNrU3Vic2NyaWJlckhhbmRsZXMuU3ViSGFuZGxlc0VudHJ5UgpzdWJIYW5k' + 'bGVzGoUBChJQdWJsaXNoZWREYXRhVHJhY2sSLQoScHVibGlzaGVyX2lkZW50aXR5GAEgASgJUh' + 'FwdWJsaXNoZXJJZGVudGl0eRIjCg1wdWJsaXNoZXJfc2lkGAIgASgJUgxwdWJsaXNoZXJTaWQS' + 'GwoJdHJhY2tfc2lkGAMgASgJUgh0cmFja1NpZBp1Cg9TdWJIYW5kbGVzRW50cnkSEAoDa2V5GA' + 'EgASgNUgNrZXkSTAoFdmFsdWUYAiABKAsyNi5saXZla2l0LkRhdGFUcmFja1N1YnNjcmliZXJI' + 'YW5kbGVzLlB1Ymxpc2hlZERhdGFUcmFja1IFdmFsdWU6AjgB'); + @$core.Deprecated('Use trickleRequestDescriptor instead') const TrickleRequest$json = { '1': 'TrickleRequest', @@ -524,13 +698,35 @@ const SessionDescription$json = { {'1': 'type', '3': 1, '4': 1, '5': 9, '10': 'type'}, {'1': 'sdp', '3': 2, '4': 1, '5': 9, '10': 'sdp'}, {'1': 'id', '3': 3, '4': 1, '5': 13, '10': 'id'}, + { + '1': 'mid_to_track_id', + '3': 4, + '4': 3, + '5': 11, + '6': '.livekit.SessionDescription.MidToTrackIdEntry', + '10': 'midToTrackId' + }, + ], + '3': [SessionDescription_MidToTrackIdEntry$json], +}; + +@$core.Deprecated('Use sessionDescriptionDescriptor instead') +const SessionDescription_MidToTrackIdEntry$json = { + '1': 'MidToTrackIdEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, ], + '7': {'7': true}, }; /// Descriptor for `SessionDescription`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sessionDescriptionDescriptor = $convert.base64Decode('ChJTZXNzaW9uRGVzY3JpcHRpb24SEgoEdHlwZRgBIAEoCVIEdHlwZRIQCgNzZHAYAiABKAlSA3' - 'NkcBIOCgJpZBgDIAEoDVICaWQ='); + 'NkcBIOCgJpZBgDIAEoDVICaWQSVAoPbWlkX3RvX3RyYWNrX2lkGAQgAygLMi0ubGl2ZWtpdC5T' + 'ZXNzaW9uRGVzY3JpcHRpb24uTWlkVG9UcmFja0lkRW50cnlSDG1pZFRvVHJhY2tJZBo/ChFNaW' + 'RUb1RyYWNrSWRFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6' + 'AjgB'); @$core.Deprecated('Use participantUpdateDescriptor instead') const ParticipantUpdate$json = { @@ -561,6 +757,33 @@ final $typed_data.Uint8List updateSubscriptionDescriptor = 'N1YnNjcmliZRgCIAEoCFIJc3Vic2NyaWJlEkkKEnBhcnRpY2lwYW50X3RyYWNrcxgDIAMoCzIa' 'LmxpdmVraXQuUGFydGljaXBhbnRUcmFja3NSEXBhcnRpY2lwYW50VHJhY2tz'); +@$core.Deprecated('Use updateDataSubscriptionDescriptor instead') +const UpdateDataSubscription$json = { + '1': 'UpdateDataSubscription', + '2': [ + {'1': 'updates', '3': 1, '4': 3, '5': 11, '6': '.livekit.UpdateDataSubscription.Update', '10': 'updates'}, + ], + '3': [UpdateDataSubscription_Update$json], +}; + +@$core.Deprecated('Use updateDataSubscriptionDescriptor instead') +const UpdateDataSubscription_Update$json = { + '1': 'Update', + '2': [ + {'1': 'track_sid', '3': 1, '4': 1, '5': 9, '10': 'trackSid'}, + {'1': 'subscribe', '3': 2, '4': 1, '5': 8, '10': 'subscribe'}, + {'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.livekit.DataTrackSubscriptionOptions', '10': 'options'}, + ], +}; + +/// Descriptor for `UpdateDataSubscription`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateDataSubscriptionDescriptor = + $convert.base64Decode('ChZVcGRhdGVEYXRhU3Vic2NyaXB0aW9uEkAKB3VwZGF0ZXMYASADKAsyJi5saXZla2l0LlVwZG' + 'F0ZURhdGFTdWJzY3JpcHRpb24uVXBkYXRlUgd1cGRhdGVzGoQBCgZVcGRhdGUSGwoJdHJhY2tf' + 'c2lkGAEgASgJUgh0cmFja1NpZBIcCglzdWJzY3JpYmUYAiABKAhSCXN1YnNjcmliZRI/CgdvcH' + 'Rpb25zGAMgASgLMiUubGl2ZWtpdC5EYXRhVHJhY2tTdWJzY3JpcHRpb25PcHRpb25zUgdvcHRp' + 'b25z'); + @$core.Deprecated('Use updateTrackSettingsDescriptor instead') const UpdateTrackSettings$json = { '1': 'UpdateTrackSettings', @@ -660,14 +883,15 @@ final $typed_data.Uint8List updateVideoLayersDescriptor = const UpdateParticipantMetadata$json = { '1': 'UpdateParticipantMetadata', '2': [ - {'1': 'metadata', '3': 1, '4': 1, '5': 9, '10': 'metadata'}, - {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + {'1': 'metadata', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'metadata'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'name'}, { '1': 'attributes', '3': 3, '4': 3, '5': 11, '6': '.livekit.UpdateParticipantMetadata.AttributesEntry', + '8': {}, '10': 'attributes' }, {'1': 'request_id', '3': 4, '4': 1, '5': 13, '10': 'requestId'}, @@ -687,11 +911,13 @@ const UpdateParticipantMetadata_AttributesEntry$json = { /// Descriptor for `UpdateParticipantMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateParticipantMetadataDescriptor = - $convert.base64Decode('ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEhoKCG1ldGFkYXRhGAEgASgJUghtZXRhZGF0YR' - 'ISCgRuYW1lGAIgASgJUgRuYW1lElIKCmF0dHJpYnV0ZXMYAyADKAsyMi5saXZla2l0LlVwZGF0' - 'ZVBhcnRpY2lwYW50TWV0YWRhdGEuQXR0cmlidXRlc0VudHJ5UgphdHRyaWJ1dGVzEh0KCnJlcX' - 'Vlc3RfaWQYBCABKA1SCXJlcXVlc3RJZBo9Cg9BdHRyaWJ1dGVzRW50cnkSEAoDa2V5GAEgASgJ' - 'UgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + $convert.base64Decode('ChlVcGRhdGVQYXJ0aWNpcGFudE1ldGFkYXRhEkIKCG1ldGFkYXRhGAEgASgJQiaItRgBkrUYHj' + 'xyZWRhY3RlZCAoe3sgLlNpemUgfX0gYnl0ZXMpPlIIbWV0YWRhdGESOgoEbmFtZRgCIAEoCUIm' + 'iLUYAZK1GB48cmVkYWN0ZWQgKHt7IC5TaXplIH19IGJ5dGVzKT5SBG5hbWUSegoKYXR0cmlidX' + 'RlcxgDIAMoCzIyLmxpdmVraXQuVXBkYXRlUGFydGljaXBhbnRNZXRhZGF0YS5BdHRyaWJ1dGVz' + 'RW50cnlCJoi1GAGStRgePHJlZGFjdGVkICh7eyAuU2l6ZSB9fSBieXRlcyk+UgphdHRyaWJ1dG' + 'VzEh0KCnJlcXVlc3RfaWQYBCABKA1SCXJlcXVlc3RJZBo9Cg9BdHRyaWJ1dGVzRW50cnkSEAoD' + 'a2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); @$core.Deprecated('Use iCEServerDescriptor instead') const ICEServer$json = { @@ -951,6 +1177,14 @@ const SyncState$json = { '6': '.livekit.DataChannelReceiveState', '10': 'datachannelReceiveStates' }, + { + '1': 'publish_data_tracks', + '3': 8, + '4': 3, + '5': 11, + '6': '.livekit.PublishDataTrackResponse', + '10': 'publishDataTracks' + }, ], }; @@ -964,7 +1198,8 @@ final $typed_data.Uint8List syncStateDescriptor = 'gLMhsubGl2ZWtpdC5TZXNzaW9uRGVzY3JpcHRpb25SBW9mZmVyEi4KE3RyYWNrX3NpZHNfZGlz' 'YWJsZWQYBiADKAlSEXRyYWNrU2lkc0Rpc2FibGVkEl4KGmRhdGFjaGFubmVsX3JlY2VpdmVfc3' 'RhdGVzGAcgAygLMiAubGl2ZWtpdC5EYXRhQ2hhbm5lbFJlY2VpdmVTdGF0ZVIYZGF0YWNoYW5u' - 'ZWxSZWNlaXZlU3RhdGVz'); + 'ZWxSZWNlaXZlU3RhdGVzElEKE3B1Ymxpc2hfZGF0YV90cmFja3MYCCADKAsyIS5saXZla2l0Ll' + 'B1Ymxpc2hEYXRhVHJhY2tSZXNwb25zZVIRcHVibGlzaERhdGFUcmFja3M='); @$core.Deprecated('Use dataChannelReceiveStateDescriptor instead') const DataChannelReceiveState$json = { @@ -1148,6 +1383,24 @@ const RequestResponse$json = { '9': 0, '10': 'updateVideoTrack' }, + { + '1': 'publish_data_track', + '3': 10, + '4': 1, + '5': 11, + '6': '.livekit.PublishDataTrackRequest', + '9': 0, + '10': 'publishDataTrack' + }, + { + '1': 'unpublish_data_track', + '3': 11, + '4': 1, + '5': 11, + '6': '.livekit.UnpublishDataTrackRequest', + '9': 0, + '10': 'unpublishDataTrack' + }, ], '4': [RequestResponse_Reason$json], '8': [ @@ -1166,6 +1419,10 @@ const RequestResponse_Reason$json = { {'1': 'QUEUED', '2': 4}, {'1': 'UNSUPPORTED_TYPE', '2': 5}, {'1': 'UNCLASSIFIED_ERROR', '2': 6}, + {'1': 'INVALID_HANDLE', '2': 7}, + {'1': 'INVALID_NAME', '2': 8}, + {'1': 'DUPLICATE_HANDLE', '2': 9}, + {'1': 'DUPLICATE_NAME', '2': 10}, ], }; @@ -1180,10 +1437,14 @@ final $typed_data.Uint8List requestResponseDescriptor = 'YXJ0aWNpcGFudE1ldGFkYXRhSABSDnVwZGF0ZU1ldGFkYXRhEk4KEnVwZGF0ZV9hdWRpb190cm' 'FjaxgIIAEoCzIeLmxpdmVraXQuVXBkYXRlTG9jYWxBdWRpb1RyYWNrSABSEHVwZGF0ZUF1ZGlv' 'VHJhY2sSTgoSdXBkYXRlX3ZpZGVvX3RyYWNrGAkgASgLMh4ubGl2ZWtpdC5VcGRhdGVMb2NhbF' - 'ZpZGVvVHJhY2tIAFIQdXBkYXRlVmlkZW9UcmFjayJ+CgZSZWFzb24SBgoCT0sQABINCglOT1Rf' - 'Rk9VTkQQARIPCgtOT1RfQUxMT1dFRBACEhIKDkxJTUlUX0VYQ0VFREVEEAMSCgoGUVVFVUVEEA' - 'QSFAoQVU5TVVBQT1JURURfVFlQRRAFEhYKElVOQ0xBU1NJRklFRF9FUlJPUhAGQgkKB3JlcXVl' - 'c3Q='); + 'ZpZGVvVHJhY2tIAFIQdXBkYXRlVmlkZW9UcmFjaxJQChJwdWJsaXNoX2RhdGFfdHJhY2sYCiAB' + 'KAsyIC5saXZla2l0LlB1Ymxpc2hEYXRhVHJhY2tSZXF1ZXN0SABSEHB1Ymxpc2hEYXRhVHJhY2' + 'sSVgoUdW5wdWJsaXNoX2RhdGFfdHJhY2sYCyABKAsyIi5saXZla2l0LlVucHVibGlzaERhdGFU' + 'cmFja1JlcXVlc3RIAFISdW5wdWJsaXNoRGF0YVRyYWNrIs4BCgZSZWFzb24SBgoCT0sQABINCg' + 'lOT1RfRk9VTkQQARIPCgtOT1RfQUxMT1dFRBACEhIKDkxJTUlUX0VYQ0VFREVEEAMSCgoGUVVF' + 'VUVEEAQSFAoQVU5TVVBQT1JURURfVFlQRRAFEhYKElVOQ0xBU1NJRklFRF9FUlJPUhAGEhIKDk' + 'lOVkFMSURfSEFORExFEAcSEAoMSU5WQUxJRF9OQU1FEAgSFAoQRFVQTElDQVRFX0hBTkRMRRAJ' + 'EhIKDkRVUExJQ0FURV9OQU1FEApCCQoHcmVxdWVzdA=='); @$core.Deprecated('Use trackSubscribedDescriptor instead') const TrackSubscribed$json = { @@ -1232,13 +1493,14 @@ const JoinRequest$json = { '6': '.livekit.ConnectionSettings', '10': 'connectionSettings' }, - {'1': 'metadata', '3': 3, '4': 1, '5': 9, '10': 'metadata'}, + {'1': 'metadata', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'metadata'}, { '1': 'participant_attributes', '3': 4, '4': 3, '5': 11, '6': '.livekit.JoinRequest.ParticipantAttributesEntry', + '8': {}, '10': 'participantAttributes' }, {'1': 'add_track_requests', '3': 5, '4': 3, '5': 11, '6': '.livekit.AddTrackRequest', '10': 'addTrackRequests'}, @@ -1265,17 +1527,18 @@ const JoinRequest_ParticipantAttributesEntry$json = { final $typed_data.Uint8List joinRequestDescriptor = $convert.base64Decode('CgtKb2luUmVxdWVzdBI0CgtjbGllbnRfaW5mbxgBIAEoCzITLmxpdmVraXQuQ2xpZW50SW5mb1' 'IKY2xpZW50SW5mbxJMChNjb25uZWN0aW9uX3NldHRpbmdzGAIgASgLMhsubGl2ZWtpdC5Db25u' - 'ZWN0aW9uU2V0dGluZ3NSEmNvbm5lY3Rpb25TZXR0aW5ncxIaCghtZXRhZGF0YRgDIAEoCVIIbW' - 'V0YWRhdGESZgoWcGFydGljaXBhbnRfYXR0cmlidXRlcxgEIAMoCzIvLmxpdmVraXQuSm9pblJl' - 'cXVlc3QuUGFydGljaXBhbnRBdHRyaWJ1dGVzRW50cnlSFXBhcnRpY2lwYW50QXR0cmlidXRlcx' - 'JGChJhZGRfdHJhY2tfcmVxdWVzdHMYBSADKAsyGC5saXZla2l0LkFkZFRyYWNrUmVxdWVzdFIQ' - 'YWRkVHJhY2tSZXF1ZXN0cxJECg9wdWJsaXNoZXJfb2ZmZXIYBiABKAsyGy5saXZla2l0LlNlc3' - 'Npb25EZXNjcmlwdGlvblIOcHVibGlzaGVyT2ZmZXISHAoJcmVjb25uZWN0GAcgASgIUglyZWNv' - 'bm5lY3QSQwoQcmVjb25uZWN0X3JlYXNvbhgIIAEoDjIYLmxpdmVraXQuUmVjb25uZWN0UmVhc2' - '9uUg9yZWNvbm5lY3RSZWFzb24SJwoPcGFydGljaXBhbnRfc2lkGAkgASgJUg5wYXJ0aWNpcGFu' - 'dFNpZBIxCgpzeW5jX3N0YXRlGAogASgLMhIubGl2ZWtpdC5TeW5jU3RhdGVSCXN5bmNTdGF0ZR' - 'pIChpQYXJ0aWNpcGFudEF0dHJpYnV0ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1' - 'ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'ZWN0aW9uU2V0dGluZ3NSEmNvbm5lY3Rpb25TZXR0aW5ncxJCCghtZXRhZGF0YRgDIAEoCUImiL' + 'UYAZK1GB48cmVkYWN0ZWQgKHt7IC5TaXplIH19IGJ5dGVzKT5SCG1ldGFkYXRhEo4BChZwYXJ0' + 'aWNpcGFudF9hdHRyaWJ1dGVzGAQgAygLMi8ubGl2ZWtpdC5Kb2luUmVxdWVzdC5QYXJ0aWNpcG' + 'FudEF0dHJpYnV0ZXNFbnRyeUImiLUYAZK1GB48cmVkYWN0ZWQgKHt7IC5TaXplIH19IGJ5dGVz' + 'KT5SFXBhcnRpY2lwYW50QXR0cmlidXRlcxJGChJhZGRfdHJhY2tfcmVxdWVzdHMYBSADKAsyGC' + '5saXZla2l0LkFkZFRyYWNrUmVxdWVzdFIQYWRkVHJhY2tSZXF1ZXN0cxJECg9wdWJsaXNoZXJf' + 'b2ZmZXIYBiABKAsyGy5saXZla2l0LlNlc3Npb25EZXNjcmlwdGlvblIOcHVibGlzaGVyT2ZmZX' + 'ISHAoJcmVjb25uZWN0GAcgASgIUglyZWNvbm5lY3QSQwoQcmVjb25uZWN0X3JlYXNvbhgIIAEo' + 'DjIYLmxpdmVraXQuUmVjb25uZWN0UmVhc29uUg9yZWNvbm5lY3RSZWFzb24SJwoPcGFydGljaX' + 'BhbnRfc2lkGAkgASgJUg5wYXJ0aWNpcGFudFNpZBIxCgpzeW5jX3N0YXRlGAogASgLMhIubGl2' + 'ZWtpdC5TeW5jU3RhdGVSCXN5bmNTdGF0ZRpIChpQYXJ0aWNpcGFudEF0dHJpYnV0ZXNFbnRyeR' + 'IQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); @$core.Deprecated('Use wrappedJoinRequestDescriptor instead') const WrappedJoinRequest$json = { diff --git a/pubspec.lock b/pubspec.lock index bf5917ec..8d498a6d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -596,10 +596,10 @@ packages: dependency: "direct main" description: name: protobuf - sha256: de9c9eb2c33f8e933a42932fe1dc504800ca45ebc3d673e6ed7f39754ee4053e + sha256: "75ec242d22e950bdcc79ee38dd520ce4ee0bc491d7fadc4ea47694604d22bf06" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "6.0.0" pub_semver: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 4533867f..27150709 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: logging: ^1.1.0 uuid: ^4.5.1 synchronized: ^3.0.0+3 - protobuf: ^4.2.0 + protobuf: ^6.0.0 device_info_plus: ^12.2.0 sdp_transform: ^0.3.2 web: ^1.0.0