diff --git a/.github/actions/pana/action.yml b/.github/actions/pana/action.yml index 947cd4de5..0b16abe06 100644 --- a/.github/actions/pana/action.yml +++ b/.github/actions/pana/action.yml @@ -22,24 +22,36 @@ runs: using: "composite" steps: - name: Temporary Override Local Dependencies - uses: mikefarah/yq@master - with: - cmd: | - # --- stream_video_flutter --- - yq eval '.dependencies.stream_video = {"path": "../stream_video"}' -i packages/stream_video_flutter/pubspec.yaml - yq eval '.dependency_overrides.stream_video = {"path": "../stream_video"}' -i packages/stream_video_flutter/pubspec.yaml + shell: bash + run: | + # Add dependency_overrides to use local paths instead of pub.dev versions + # This preserves the original YAML formatting by appending to files + + # --- stream_video_flutter --- + cat >> packages/stream_video_flutter/pubspec.yaml << 'PUBSPEC_EOF' + + dependency_overrides: + stream_video: + path: ../stream_video + PUBSPEC_EOF + + # --- stream_video_push_notification --- + cat >> packages/stream_video_push_notification/pubspec.yaml << 'PUBSPEC_EOF' + + dependency_overrides: + stream_video: + path: ../stream_video + stream_video_flutter: + path: ../stream_video_flutter + PUBSPEC_EOF - # --- stream_video_push_notification --- - yq eval '.dependencies.stream_video = {"path": "../stream_video"}' -i packages/stream_video_push_notification/pubspec.yaml - yq eval '.dependencies.stream_video_flutter = {"path": "../stream_video_flutter"}' -i packages/stream_video_push_notification/pubspec.yaml - yq eval '.dependency_overrides.stream_video = {"path": "../stream_video"}' -i packages/stream_video_push_notification/pubspec.yaml - yq eval '.dependency_overrides.stream_video_flutter = {"path": "../stream_video_flutter"}' -i packages/stream_video_push_notification/pubspec.yaml + # --- stream_video_noise_cancellation --- + cat >> packages/stream_video_noise_cancellation/pubspec.yaml << 'PUBSPEC_EOF' - # --- stream_video_noise_cancellation --- - yq eval '.dependencies.stream_video = {"path": "../stream_video"}' -i packages/stream_video_noise_cancellation/pubspec.yaml - yq eval '.dependencies.stream_video_flutter = {"path": "../stream_video_flutter"}' -i packages/stream_video_noise_cancellation/pubspec.yaml - yq eval '.dependency_overrides.stream_video = {"path": "../stream_video"}' -i packages/stream_video_noise_cancellation/pubspec.yaml - yq eval '.dependency_overrides.stream_video_flutter = {"path": "../stream_video_flutter"}' -i packages/stream_video_noise_cancellation/pubspec.yaml + dependency_overrides: + stream_video: + path: ../stream_video + PUBSPEC_EOF - name: Install Flutter uses: subosito/flutter-action@v2 diff --git a/packages/stream_video/lib/protobuf/google/protobuf/duration.pb.dart b/packages/stream_video/lib/protobuf/google/protobuf/duration.pb.dart deleted file mode 100644 index 2d57bc8fe..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/duration.pb.dart +++ /dev/null @@ -1,175 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from duration.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 Duration represents a signed, fixed-length span of time represented -/// as a count of seconds and fractions of seconds at nanosecond -/// resolution. It is independent of any calendar and concepts like "day" -/// or "month". It is related to Timestamp in that the difference between -/// two Timestamp values is a Duration and it can be added or subtracted -/// from a Timestamp. Range is approximately +-10,000 years. -/// -/// # Examples -/// -/// Example 1: Compute Duration from two Timestamps in pseudo code. -/// -/// Timestamp start = ...; -/// Timestamp end = ...; -/// Duration duration = ...; -/// -/// duration.seconds = end.seconds - start.seconds; -/// duration.nanos = end.nanos - start.nanos; -/// -/// if (duration.seconds < 0 && duration.nanos > 0) { -/// duration.seconds += 1; -/// duration.nanos -= 1000000000; -/// } else if (duration.seconds > 0 && duration.nanos < 0) { -/// duration.seconds -= 1; -/// duration.nanos += 1000000000; -/// } -/// -/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -/// -/// Timestamp start = ...; -/// Duration duration = ...; -/// Timestamp end = ...; -/// -/// end.seconds = start.seconds + duration.seconds; -/// end.nanos = start.nanos + duration.nanos; -/// -/// if (end.nanos < 0) { -/// end.seconds -= 1; -/// end.nanos += 1000000000; -/// } else if (end.nanos >= 1000000000) { -/// end.seconds += 1; -/// end.nanos -= 1000000000; -/// } -/// -/// Example 3: Compute Duration from datetime.timedelta in Python. -/// -/// td = datetime.timedelta(days=3, minutes=10) -/// duration = Duration() -/// duration.FromTimedelta(td) -/// -/// # JSON Mapping -/// -/// In JSON format, the Duration type is encoded as a string rather than an -/// object, where the string ends in the suffix "s" (indicating seconds) and -/// is preceded by the number of seconds, with nanoseconds expressed as -/// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -/// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -/// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -/// microsecond should be expressed in JSON format as "3.000001s". -class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { - factory Duration({ - $fixnum.Int64? seconds, - $core.int? nanos, - }) { - final result = create(); - if (seconds != null) result.seconds = seconds; - if (nanos != null) result.nanos = nanos; - return result; - } - - Duration._(); - - factory Duration.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Duration.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Duration', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.duration) - ..aInt64(1, _omitFieldNames ? '' : 'seconds') - ..aI(2, _omitFieldNames ? '' : 'nanos') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Duration clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Duration copyWith(void Function(Duration) updates) => - super.copyWith((message) => updates(message as Duration)) as Duration; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Duration create() => Duration._(); - @$core.override - Duration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Duration getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Duration? _defaultInstance; - - /// Signed seconds of the span of time. Must be from -315,576,000,000 - /// to +315,576,000,000 inclusive. Note: these bounds are computed from: - /// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - @$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); - - /// Signed fractions of a second at nanosecond resolution of the span - /// of time. Durations less than one second are represented with a 0 - /// `seconds` field and a positive or negative `nanos` field. For durations - /// of one second or more, a non-zero value for the `nanos` field must be - /// of the same sign as the `seconds` field. Must be from -999,999,999 - /// to +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); - - /// Converts the [Duration] to [$core.Duration]. - /// - /// This is a lossy conversion, as [$core.Duration] is limited to [int] - /// microseconds and also does not support nanosecond precision. - $core.Duration toDart() => $core.Duration( - seconds: seconds.toInt(), - microseconds: nanos ~/ 1000, - ); - - /// Creates a new instance from [$core.Duration]. - static Duration fromDart($core.Duration duration) => Duration() - ..seconds = $fixnum.Int64(duration.inSeconds) - ..nanos = - (duration.inMicroseconds % $core.Duration.microsecondsPerSecond) * 1000; -} - -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/packages/stream_video/lib/protobuf/google/protobuf/duration.pbenum.dart b/packages/stream_video/lib/protobuf/google/protobuf/duration.pbenum.dart deleted file mode 100644 index d657a7a63..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/duration.pbenum.dart +++ /dev/null @@ -1,11 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from duration.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 diff --git a/packages/stream_video/lib/protobuf/google/protobuf/duration.pbjson.dart b/packages/stream_video/lib/protobuf/google/protobuf/duration.pbjson.dart deleted file mode 100644 index 000c73a03..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/duration.pbjson.dart +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from duration.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, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use durationDescriptor instead') -const Duration$json = { - '1': 'Duration', - '2': [ - {'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'}, - {'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'}, - ], -}; - -/// Descriptor for `Duration`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List durationDescriptor = $convert.base64Decode( - 'CghEdXJhdGlvbhIYCgdzZWNvbmRzGAEgASgDUgdzZWNvbmRzEhQKBW5hbm9zGAIgASgFUgVuYW' - '5vcw=='); diff --git a/packages/stream_video/lib/protobuf/google/protobuf/duration.proto b/packages/stream_video/lib/protobuf/google/protobuf/duration.proto deleted file mode 100644 index 41f40c222..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/duration.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/durationpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DurationProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -message Duration { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} diff --git a/packages/stream_video/lib/protobuf/google/protobuf/struct.pb.dart b/packages/stream_video/lib/protobuf/google/protobuf/struct.pb.dart deleted file mode 100644 index 1f79c2b70..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/struct.pb.dart +++ /dev/null @@ -1,317 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from struct.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:protobuf/protobuf.dart' as $pb; -import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; - -import 'struct.pbenum.dart'; - -export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; - -export 'struct.pbenum.dart'; - -/// `Struct` represents a structured data value, consisting of fields -/// which map to dynamically typed values. In some languages, `Struct` -/// might be supported by a native representation. For example, in -/// scripting languages like JS a struct is represented as an -/// object. The details of that representation are described together -/// with the proto support for the language. -/// -/// The JSON representation for `Struct` is JSON object. -class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { - factory Struct({ - $core.Iterable<$core.MapEntry<$core.String, Value>>? fields, - }) { - final result = create(); - if (fields != null) result.fields.addEntries(fields); - return result; - } - - Struct._(); - - factory Struct.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Struct.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Struct', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.struct) - ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', - entryClassName: 'Struct.FieldsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Value.create, - valueDefaultOrMaker: Value.getDefault, - packageName: const $pb.PackageName('google.protobuf')) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Struct clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Struct copyWith(void Function(Struct) updates) => - super.copyWith((message) => updates(message as Struct)) as Struct; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Struct create() => Struct._(); - @$core.override - Struct createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Struct getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Struct? _defaultInstance; - - /// Unordered map of dynamically typed values. - @$pb.TagNumber(1) - $pb.PbMap<$core.String, Value> get fields => $_getMap(0); -} - -enum Value_Kind { - nullValue, - numberValue, - stringValue, - boolValue, - structValue, - listValue, - notSet -} - -/// `Value` represents a dynamically typed value which can be either -/// null, a number, a string, a boolean, a recursive struct value, or a -/// list of values. A producer of value is expected to set one of these -/// variants. Absence of any variant indicates an error. -/// -/// The JSON representation for `Value` is JSON value. -class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { - factory Value({ - NullValue? nullValue, - $core.double? numberValue, - $core.String? stringValue, - $core.bool? boolValue, - Struct? structValue, - ListValue? listValue, - }) { - final result = create(); - if (nullValue != null) result.nullValue = nullValue; - if (numberValue != null) result.numberValue = numberValue; - if (stringValue != null) result.stringValue = stringValue; - if (boolValue != null) result.boolValue = boolValue; - if (structValue != null) result.structValue = structValue; - if (listValue != null) result.listValue = listValue; - return result; - } - - Value._(); - - factory Value.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Value.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1: Value_Kind.nullValue, - 2: Value_Kind.numberValue, - 3: Value_Kind.stringValue, - 4: Value_Kind.boolValue, - 5: Value_Kind.structValue, - 6: Value_Kind.listValue, - 0: Value_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.value) - ..oo(0, [1, 2, 3, 4, 5, 6]) - ..aE(1, _omitFieldNames ? '' : 'nullValue', - enumValues: NullValue.values) - ..aD(2, _omitFieldNames ? '' : 'numberValue') - ..aOS(3, _omitFieldNames ? '' : 'stringValue') - ..aOB(4, _omitFieldNames ? '' : 'boolValue') - ..aOM(5, _omitFieldNames ? '' : 'structValue', - subBuilder: Struct.create) - ..aOM(6, _omitFieldNames ? '' : 'listValue', - subBuilder: ListValue.create) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Value clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) as Value; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Value create() => Value._(); - @$core.override - Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Value getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Value? _defaultInstance; - - @$pb.TagNumber(1) - @$pb.TagNumber(2) - @$pb.TagNumber(3) - @$pb.TagNumber(4) - @$pb.TagNumber(5) - @$pb.TagNumber(6) - Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; - @$pb.TagNumber(1) - @$pb.TagNumber(2) - @$pb.TagNumber(3) - @$pb.TagNumber(4) - @$pb.TagNumber(5) - @$pb.TagNumber(6) - void clearKind() => $_clearField($_whichOneof(0)); - - /// Represents a null value. - @$pb.TagNumber(1) - NullValue get nullValue => $_getN(0); - @$pb.TagNumber(1) - set nullValue(NullValue value) => $_setField(1, value); - @$pb.TagNumber(1) - $core.bool hasNullValue() => $_has(0); - @$pb.TagNumber(1) - void clearNullValue() => $_clearField(1); - - /// Represents a double value. - @$pb.TagNumber(2) - $core.double get numberValue => $_getN(1); - @$pb.TagNumber(2) - set numberValue($core.double value) => $_setDouble(1, value); - @$pb.TagNumber(2) - $core.bool hasNumberValue() => $_has(1); - @$pb.TagNumber(2) - void clearNumberValue() => $_clearField(2); - - /// Represents a string value. - @$pb.TagNumber(3) - $core.String get stringValue => $_getSZ(2); - @$pb.TagNumber(3) - set stringValue($core.String value) => $_setString(2, value); - @$pb.TagNumber(3) - $core.bool hasStringValue() => $_has(2); - @$pb.TagNumber(3) - void clearStringValue() => $_clearField(3); - - /// Represents a boolean value. - @$pb.TagNumber(4) - $core.bool get boolValue => $_getBF(3); - @$pb.TagNumber(4) - set boolValue($core.bool value) => $_setBool(3, value); - @$pb.TagNumber(4) - $core.bool hasBoolValue() => $_has(3); - @$pb.TagNumber(4) - void clearBoolValue() => $_clearField(4); - - /// Represents a structured value. - @$pb.TagNumber(5) - Struct get structValue => $_getN(4); - @$pb.TagNumber(5) - set structValue(Struct value) => $_setField(5, value); - @$pb.TagNumber(5) - $core.bool hasStructValue() => $_has(4); - @$pb.TagNumber(5) - void clearStructValue() => $_clearField(5); - @$pb.TagNumber(5) - Struct ensureStructValue() => $_ensure(4); - - /// Represents a repeated `Value`. - @$pb.TagNumber(6) - ListValue get listValue => $_getN(5); - @$pb.TagNumber(6) - set listValue(ListValue value) => $_setField(6, value); - @$pb.TagNumber(6) - $core.bool hasListValue() => $_has(5); - @$pb.TagNumber(6) - void clearListValue() => $_clearField(6); - @$pb.TagNumber(6) - ListValue ensureListValue() => $_ensure(5); -} - -/// `ListValue` is a wrapper around a repeated field of values. -/// -/// The JSON representation for `ListValue` is JSON array. -class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { - factory ListValue({ - $core.Iterable? values, - }) { - final result = create(); - if (values != null) result.values.addAll(values); - return result; - } - - ListValue._(); - - factory ListValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory ListValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'ListValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.listValue) - ..pPM(1, _omitFieldNames ? '' : 'values', subBuilder: Value.create) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - ListValue copyWith(void Function(ListValue) updates) => - super.copyWith((message) => updates(message as ListValue)) as ListValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static ListValue create() => ListValue._(); - @$core.override - ListValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static ListValue getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static ListValue? _defaultInstance; - - /// Repeated field of dynamically typed values. - @$pb.TagNumber(1) - $pb.PbList get values => $_getList(0); -} - -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/packages/stream_video/lib/protobuf/google/protobuf/struct.pbenum.dart b/packages/stream_video/lib/protobuf/google/protobuf/struct.pbenum.dart deleted file mode 100644 index 454da8300..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/struct.pbenum.dart +++ /dev/null @@ -1,39 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from struct.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 - -import 'dart:core' as $core; - -import 'package:protobuf/protobuf.dart' as $pb; - -/// `NullValue` is a singleton enumeration to represent the null value for the -/// `Value` type union. -/// -/// The JSON representation for `NullValue` is JSON `null`. -class NullValue extends $pb.ProtobufEnum { - /// Null value. - static const NullValue NULL_VALUE = - NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); - - static const $core.List values = [ - NULL_VALUE, - ]; - - static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 0); - static NullValue? valueOf($core.int value) => - value < 0 || value >= _byValue.length ? null : _byValue[value]; - - const NullValue._(super.value, super.name); -} - -const $core.bool _omitEnumNames = - $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/packages/stream_video/lib/protobuf/google/protobuf/struct.pbjson.dart b/packages/stream_video/lib/protobuf/google/protobuf/struct.pbjson.dart deleted file mode 100644 index 0fcc8c65c..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/struct.pbjson.dart +++ /dev/null @@ -1,135 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from struct.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, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use nullValueDescriptor instead') -const NullValue$json = { - '1': 'NullValue', - '2': [ - {'1': 'NULL_VALUE', '2': 0}, - ], -}; - -/// Descriptor for `NullValue`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List nullValueDescriptor = - $convert.base64Decode('CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); - -@$core.Deprecated('Use structDescriptor instead') -const Struct$json = { - '1': 'Struct', - '2': [ - { - '1': 'fields', - '3': 1, - '4': 3, - '5': 11, - '6': '.google.protobuf.Struct.FieldsEntry', - '10': 'fields' - }, - ], - '3': [Struct_FieldsEntry$json], -}; - -@$core.Deprecated('Use structDescriptor instead') -const Struct_FieldsEntry$json = { - '1': 'FieldsEntry', - '2': [ - {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, - { - '1': 'value', - '3': 2, - '4': 1, - '5': 11, - '6': '.google.protobuf.Value', - '10': 'value' - }, - ], - '7': {'7': true}, -}; - -/// Descriptor for `Struct`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List structDescriptor = $convert.base64Decode( - 'CgZTdHJ1Y3QSOwoGZmllbGRzGAEgAygLMiMuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdC5GaWVsZH' - 'NFbnRyeVIGZmllbGRzGlEKC0ZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVl' - 'GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgV2YWx1ZToCOAE='); - -@$core.Deprecated('Use valueDescriptor instead') -const Value$json = { - '1': 'Value', - '2': [ - { - '1': 'null_value', - '3': 1, - '4': 1, - '5': 14, - '6': '.google.protobuf.NullValue', - '9': 0, - '10': 'nullValue' - }, - {'1': 'number_value', '3': 2, '4': 1, '5': 1, '9': 0, '10': 'numberValue'}, - {'1': 'string_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'stringValue'}, - {'1': 'bool_value', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - { - '1': 'struct_value', - '3': 5, - '4': 1, - '5': 11, - '6': '.google.protobuf.Struct', - '9': 0, - '10': 'structValue' - }, - { - '1': 'list_value', - '3': 6, - '4': 1, - '5': 11, - '6': '.google.protobuf.ListValue', - '9': 0, - '10': 'listValue' - }, - ], - '8': [ - {'1': 'kind'}, - ], -}; - -/// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' - 'gAUgludWxsVmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAIgASgBSABSC251bWJlclZhbHVlEiMKDHN0' - 'cmluZ192YWx1ZRgDIAEoCUgAUgtzdHJpbmdWYWx1ZRIfCgpib29sX3ZhbHVlGAQgASgISABSCW' - 'Jvb2xWYWx1ZRI8CgxzdHJ1Y3RfdmFsdWUYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0' - 'SABSC3N0cnVjdFZhbHVlEjsKCmxpc3RfdmFsdWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuTG' - 'lzdFZhbHVlSABSCWxpc3RWYWx1ZUIGCgRraW5k'); - -@$core.Deprecated('Use listValueDescriptor instead') -const ListValue$json = { - '1': 'ListValue', - '2': [ - { - '1': 'values', - '3': 1, - '4': 3, - '5': 11, - '6': '.google.protobuf.Value', - '10': 'values' - }, - ], -}; - -/// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( - 'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW' - 'x1ZXM='); diff --git a/packages/stream_video/lib/protobuf/google/protobuf/struct.proto b/packages/stream_video/lib/protobuf/google/protobuf/struct.proto deleted file mode 100644 index 1bf0c1ad9..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/struct.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/structpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "StructProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -message Struct { - // Unordered map of dynamically typed values. - map fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of these -// variants. Absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} diff --git a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pb.dart b/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pb.dart deleted file mode 100644 index 485d99738..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pb.dart +++ /dev/null @@ -1,199 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from 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, - wellKnownType: $mixin.WellKnownType.timestamp) - ..aInt64(1, _omitFieldNames ? '' : 'seconds') - ..aI(2, _omitFieldNames ? '' : 'nanos') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Timestamp clone() => deepCopy(); - @$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/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbenum.dart b/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbenum.dart deleted file mode 100644 index f9dd31ce8..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbenum.dart +++ /dev/null @@ -1,11 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from 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, library_prefixes -// ignore_for_file: non_constant_identifier_names diff --git a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbjson.dart b/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbjson.dart deleted file mode 100644 index 574bbe761..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.pbjson.dart +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from 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, library_prefixes -// ignore_for_file: non_constant_identifier_names, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use timestampDescriptor instead') -const Timestamp$json = { - '1': 'Timestamp', - '2': [ - {'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'}, - {'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'}, - ], -}; - -/// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode( - 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbm' - 'Fub3M='); diff --git a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.proto b/packages/stream_video/lib/protobuf/google/protobuf/timestamp.proto deleted file mode 100644 index fd308bd4b..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/timestamp.proto +++ /dev/null @@ -1,145 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/timestamppb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// 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. -// -message Timestamp { - // 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). - int64 seconds = 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. - int32 nanos = 2; -} diff --git a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pb.dart b/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pb.dart deleted file mode 100644 index dd9dabd40..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pb.dart +++ /dev/null @@ -1,598 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from wrappers.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; - -/// Wrapper message for `double`. -/// -/// The JSON representation for `DoubleValue` is JSON number. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class DoubleValue extends $pb.GeneratedMessage with $mixin.DoubleValueMixin { - factory DoubleValue({ - $core.double? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - DoubleValue._(); - - factory DoubleValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory DoubleValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'DoubleValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.doubleValue) - ..aD(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DoubleValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - DoubleValue copyWith(void Function(DoubleValue) updates) => - super.copyWith((message) => updates(message as DoubleValue)) - as DoubleValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static DoubleValue create() => DoubleValue._(); - @$core.override - DoubleValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DoubleValue getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DoubleValue? _defaultInstance; - - /// The double value. - @$pb.TagNumber(1) - $core.double get value => $_getN(0); - @$pb.TagNumber(1) - set value($core.double value) => $_setDouble(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `float`. -/// -/// The JSON representation for `FloatValue` is JSON number. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class FloatValue extends $pb.GeneratedMessage with $mixin.FloatValueMixin { - factory FloatValue({ - $core.double? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - FloatValue._(); - - factory FloatValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory FloatValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FloatValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.floatValue) - ..aD(1, _omitFieldNames ? '' : 'value', fieldType: $pb.PbFieldType.OF) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FloatValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FloatValue copyWith(void Function(FloatValue) updates) => - super.copyWith((message) => updates(message as FloatValue)) as FloatValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static FloatValue create() => FloatValue._(); - @$core.override - FloatValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static FloatValue getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static FloatValue? _defaultInstance; - - /// The float value. - @$pb.TagNumber(1) - $core.double get value => $_getN(0); - @$pb.TagNumber(1) - set value($core.double value) => $_setFloat(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `int64`. -/// -/// The JSON representation for `Int64Value` is JSON string. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class Int64Value extends $pb.GeneratedMessage with $mixin.Int64ValueMixin { - factory Int64Value({ - $fixnum.Int64? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - Int64Value._(); - - factory Int64Value.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Int64Value.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Int64Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.int64Value) - ..aInt64(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int64Value clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int64Value copyWith(void Function(Int64Value) updates) => - super.copyWith((message) => updates(message as Int64Value)) as Int64Value; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Int64Value create() => Int64Value._(); - @$core.override - Int64Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Int64Value getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static Int64Value? _defaultInstance; - - /// The int64 value. - @$pb.TagNumber(1) - $fixnum.Int64 get value => $_getI64(0); - @$pb.TagNumber(1) - set value($fixnum.Int64 value) => $_setInt64(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `uint64`. -/// -/// The JSON representation for `UInt64Value` is JSON string. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class UInt64Value extends $pb.GeneratedMessage with $mixin.UInt64ValueMixin { - factory UInt64Value({ - $fixnum.Int64? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - UInt64Value._(); - - factory UInt64Value.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory UInt64Value.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'UInt64Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.uint64Value) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt64Value clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt64Value copyWith(void Function(UInt64Value) updates) => - super.copyWith((message) => updates(message as UInt64Value)) - as UInt64Value; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static UInt64Value create() => UInt64Value._(); - @$core.override - UInt64Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static UInt64Value getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static UInt64Value? _defaultInstance; - - /// The uint64 value. - @$pb.TagNumber(1) - $fixnum.Int64 get value => $_getI64(0); - @$pb.TagNumber(1) - set value($fixnum.Int64 value) => $_setInt64(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `int32`. -/// -/// The JSON representation for `Int32Value` is JSON number. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class Int32Value extends $pb.GeneratedMessage with $mixin.Int32ValueMixin { - factory Int32Value({ - $core.int? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - Int32Value._(); - - factory Int32Value.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory Int32Value.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'Int32Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.int32Value) - ..aI(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int32Value clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - Int32Value copyWith(void Function(Int32Value) updates) => - super.copyWith((message) => updates(message as Int32Value)) as Int32Value; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Int32Value create() => Int32Value._(); - @$core.override - Int32Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Int32Value getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static Int32Value? _defaultInstance; - - /// The int32 value. - @$pb.TagNumber(1) - $core.int get value => $_getIZ(0); - @$pb.TagNumber(1) - set value($core.int value) => $_setSignedInt32(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `uint32`. -/// -/// The JSON representation for `UInt32Value` is JSON number. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class UInt32Value extends $pb.GeneratedMessage with $mixin.UInt32ValueMixin { - factory UInt32Value({ - $core.int? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - UInt32Value._(); - - factory UInt32Value.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory UInt32Value.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'UInt32Value', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.uint32Value) - ..aI(1, _omitFieldNames ? '' : 'value', fieldType: $pb.PbFieldType.OU3) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt32Value clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - UInt32Value copyWith(void Function(UInt32Value) updates) => - super.copyWith((message) => updates(message as UInt32Value)) - as UInt32Value; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static UInt32Value create() => UInt32Value._(); - @$core.override - UInt32Value createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static UInt32Value getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static UInt32Value? _defaultInstance; - - /// The uint32 value. - @$pb.TagNumber(1) - $core.int get value => $_getIZ(0); - @$pb.TagNumber(1) - set value($core.int value) => $_setUnsignedInt32(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `bool`. -/// -/// The JSON representation for `BoolValue` is JSON `true` and `false`. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class BoolValue extends $pb.GeneratedMessage with $mixin.BoolValueMixin { - factory BoolValue({ - $core.bool? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - BoolValue._(); - - factory BoolValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory BoolValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BoolValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.boolValue) - ..aOB(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoolValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BoolValue copyWith(void Function(BoolValue) updates) => - super.copyWith((message) => updates(message as BoolValue)) as BoolValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BoolValue create() => BoolValue._(); - @$core.override - BoolValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BoolValue getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static BoolValue? _defaultInstance; - - /// The bool value. - @$pb.TagNumber(1) - $core.bool get value => $_getBF(0); - @$pb.TagNumber(1) - set value($core.bool value) => $_setBool(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `string`. -/// -/// The JSON representation for `StringValue` is JSON string. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class StringValue extends $pb.GeneratedMessage with $mixin.StringValueMixin { - factory StringValue({ - $core.String? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - StringValue._(); - - factory StringValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory StringValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'StringValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.stringValue) - ..aOS(1, _omitFieldNames ? '' : 'value') - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StringValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - StringValue copyWith(void Function(StringValue) updates) => - super.copyWith((message) => updates(message as StringValue)) - as StringValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static StringValue create() => StringValue._(); - @$core.override - StringValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static StringValue getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static StringValue? _defaultInstance; - - /// The string value. - @$pb.TagNumber(1) - $core.String get value => $_getSZ(0); - @$pb.TagNumber(1) - set value($core.String value) => $_setString(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -/// Wrapper message for `bytes`. -/// -/// The JSON representation for `BytesValue` is JSON string. -/// -/// Not recommended for use in new APIs, but still useful for legacy APIs and -/// has no plan to be removed. -class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin { - factory BytesValue({ - $core.List<$core.int>? value, - }) { - final result = create(); - if (value != null) result.value = value; - return result; - } - - BytesValue._(); - - factory BytesValue.fromBuffer($core.List<$core.int> data, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(data, registry); - factory BytesValue.fromJson($core.String json, - [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(json, registry); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'BytesValue', - package: - const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), - createEmptyInstance: create, - wellKnownType: $mixin.WellKnownType.bytesValue) - ..a<$core.List<$core.int>>( - 1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BytesValue clone() => deepCopy(); - @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - BytesValue copyWith(void Function(BytesValue) updates) => - super.copyWith((message) => updates(message as BytesValue)) as BytesValue; - - @$core.override - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static BytesValue create() => BytesValue._(); - @$core.override - BytesValue createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static BytesValue getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static BytesValue? _defaultInstance; - - /// The bytes value. - @$pb.TagNumber(1) - $core.List<$core.int> get value => $_getN(0); - @$pb.TagNumber(1) - set value($core.List<$core.int> value) => $_setBytes(0, value); - @$pb.TagNumber(1) - $core.bool hasValue() => $_has(0); - @$pb.TagNumber(1) - void clearValue() => $_clearField(1); -} - -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/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbenum.dart b/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbenum.dart deleted file mode 100644 index 355173bd3..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbenum.dart +++ /dev/null @@ -1,11 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from wrappers.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 diff --git a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbjson.dart b/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbjson.dart deleted file mode 100644 index 7ce449c4c..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.pbjson.dart +++ /dev/null @@ -1,123 +0,0 @@ -// This is a generated file - do not edit. -// -// Generated from wrappers.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, unused_import - -import 'dart:convert' as $convert; -import 'dart:core' as $core; -import 'dart:typed_data' as $typed_data; - -@$core.Deprecated('Use doubleValueDescriptor instead') -const DoubleValue$json = { - '1': 'DoubleValue', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 1, '10': 'value'}, - ], -}; - -/// Descriptor for `DoubleValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List doubleValueDescriptor = - $convert.base64Decode('CgtEb3VibGVWYWx1ZRIUCgV2YWx1ZRgBIAEoAVIFdmFsdWU='); - -@$core.Deprecated('Use floatValueDescriptor instead') -const FloatValue$json = { - '1': 'FloatValue', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 2, '10': 'value'}, - ], -}; - -/// Descriptor for `FloatValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List floatValueDescriptor = - $convert.base64Decode('CgpGbG9hdFZhbHVlEhQKBXZhbHVlGAEgASgCUgV2YWx1ZQ=='); - -@$core.Deprecated('Use int64ValueDescriptor instead') -const Int64Value$json = { - '1': 'Int64Value', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 3, '10': 'value'}, - ], -}; - -/// Descriptor for `Int64Value`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List int64ValueDescriptor = - $convert.base64Decode('CgpJbnQ2NFZhbHVlEhQKBXZhbHVlGAEgASgDUgV2YWx1ZQ=='); - -@$core.Deprecated('Use uInt64ValueDescriptor instead') -const UInt64Value$json = { - '1': 'UInt64Value', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 4, '10': 'value'}, - ], -}; - -/// Descriptor for `UInt64Value`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List uInt64ValueDescriptor = - $convert.base64Decode('CgtVSW50NjRWYWx1ZRIUCgV2YWx1ZRgBIAEoBFIFdmFsdWU='); - -@$core.Deprecated('Use int32ValueDescriptor instead') -const Int32Value$json = { - '1': 'Int32Value', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 5, '10': 'value'}, - ], -}; - -/// Descriptor for `Int32Value`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List int32ValueDescriptor = - $convert.base64Decode('CgpJbnQzMlZhbHVlEhQKBXZhbHVlGAEgASgFUgV2YWx1ZQ=='); - -@$core.Deprecated('Use uInt32ValueDescriptor instead') -const UInt32Value$json = { - '1': 'UInt32Value', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 13, '10': 'value'}, - ], -}; - -/// Descriptor for `UInt32Value`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List uInt32ValueDescriptor = - $convert.base64Decode('CgtVSW50MzJWYWx1ZRIUCgV2YWx1ZRgBIAEoDVIFdmFsdWU='); - -@$core.Deprecated('Use boolValueDescriptor instead') -const BoolValue$json = { - '1': 'BoolValue', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 8, '10': 'value'}, - ], -}; - -/// Descriptor for `BoolValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List boolValueDescriptor = - $convert.base64Decode('CglCb29sVmFsdWUSFAoFdmFsdWUYASABKAhSBXZhbHVl'); - -@$core.Deprecated('Use stringValueDescriptor instead') -const StringValue$json = { - '1': 'StringValue', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 9, '10': 'value'}, - ], -}; - -/// Descriptor for `StringValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List stringValueDescriptor = - $convert.base64Decode('CgtTdHJpbmdWYWx1ZRIUCgV2YWx1ZRgBIAEoCVIFdmFsdWU='); - -@$core.Deprecated('Use bytesValueDescriptor instead') -const BytesValue$json = { - '1': 'BytesValue', - '2': [ - {'1': 'value', '3': 1, '4': 1, '5': 12, '10': 'value'}, - ], -}; - -/// Descriptor for `BytesValue`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List bytesValueDescriptor = - $convert.base64Decode('CgpCeXRlc1ZhbHVlEhQKBXZhbHVlGAEgASgMUgV2YWx1ZQ=='); diff --git a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.proto b/packages/stream_video/lib/protobuf/google/protobuf/wrappers.proto deleted file mode 100644 index e583e7c40..000000000 --- a/packages/stream_video/lib/protobuf/google/protobuf/wrappers.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// Wrappers for primitive (non-message) types. These types were needed -// for legacy reasons and are not recommended for use in new APIs. -// -// Historically these wrappers were useful to have presence on proto3 primitive -// fields, but proto3 syntax has been updated to support the `optional` keyword. -// Using that keyword is now the strongly preferred way to add presence to -// proto3 primitive fields. -// -// A secondary usecase was to embed primitives in the `google.protobuf.Any` -// type: it is now recommended that you embed your value in your own wrapper -// message which can be specifically documented. -// -// These wrappers have no meaningful use within repeated fields as they lack -// the ability to detect presence on individual elements. -// These wrappers have no meaningful use within a map or a oneof since -// individual entries of a map or fields of a oneof can already detect presence. - -syntax = "proto3"; - -package google.protobuf; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "WrappersProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; - -// Wrapper message for `double`. -// -// The JSON representation for `DoubleValue` is JSON number. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message DoubleValue { - // The double value. - double value = 1; -} - -// Wrapper message for `float`. -// -// The JSON representation for `FloatValue` is JSON number. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message FloatValue { - // The float value. - float value = 1; -} - -// Wrapper message for `int64`. -// -// The JSON representation for `Int64Value` is JSON string. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message Int64Value { - // The int64 value. - int64 value = 1; -} - -// Wrapper message for `uint64`. -// -// The JSON representation for `UInt64Value` is JSON string. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message UInt64Value { - // The uint64 value. - uint64 value = 1; -} - -// Wrapper message for `int32`. -// -// The JSON representation for `Int32Value` is JSON number. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message Int32Value { - // The int32 value. - int32 value = 1; -} - -// Wrapper message for `uint32`. -// -// The JSON representation for `UInt32Value` is JSON number. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message UInt32Value { - // The uint32 value. - uint32 value = 1; -} - -// Wrapper message for `bool`. -// -// The JSON representation for `BoolValue` is JSON `true` and `false`. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message BoolValue { - // The bool value. - bool value = 1; -} - -// Wrapper message for `string`. -// -// The JSON representation for `StringValue` is JSON string. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message StringValue { - // The string value. - string value = 1; -} - -// Wrapper message for `bytes`. -// -// The JSON representation for `BytesValue` is JSON string. -// -// Not recommended for use in new APIs, but still useful for legacy APIs and -// has no plan to be removed. -message BytesValue { - // The bytes value. - bytes value = 1; -} diff --git a/packages/stream_video/lib/protobuf/video/sfu/event/events.pb.dart b/packages/stream_video/lib/protobuf/video/sfu/event/events.pb.dart index eb26f0ab6..62bf2b8dc 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/event/events.pb.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/event/events.pb.dart @@ -8,7 +8,7 @@ // 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; @@ -240,7 +240,6 @@ class SfuEvent extends $pb.GeneratedMessage { static SfuEvent create() => SfuEvent._(); @$core.override SfuEvent createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SfuEvent getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -644,8 +643,6 @@ class ChangePublishOptions extends $pb.GeneratedMessage { static ChangePublishOptions create() => ChangePublishOptions._(); @$core.override ChangePublishOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ChangePublishOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -700,8 +697,6 @@ class ChangePublishOptionsComplete extends $pb.GeneratedMessage { ChangePublishOptionsComplete._(); @$core.override ChangePublishOptionsComplete createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ChangePublishOptionsComplete getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -744,8 +739,6 @@ class ParticipantMigrationComplete extends $pb.GeneratedMessage { ParticipantMigrationComplete._(); @$core.override ParticipantMigrationComplete createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantMigrationComplete getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -792,7 +785,6 @@ class PinsChanged extends $pb.GeneratedMessage { static PinsChanged create() => PinsChanged._(); @$core.override PinsChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static PinsChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -849,7 +841,6 @@ class Error extends $pb.GeneratedMessage { static Error create() => Error._(); @$core.override Error createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Error getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -921,7 +912,6 @@ class ICETrickle extends $pb.GeneratedMessage { static ICETrickle create() => ICETrickle._(); @$core.override ICETrickle createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ICETrickle getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -986,7 +976,6 @@ class ICERestart extends $pb.GeneratedMessage { static ICERestart create() => ICERestart._(); @$core.override ICERestart createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ICERestart getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1067,7 +1056,6 @@ class SfuRequest extends $pb.GeneratedMessage { static SfuRequest create() => SfuRequest._(); @$core.override SfuRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SfuRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1160,8 +1148,6 @@ class LeaveCallRequest extends $pb.GeneratedMessage { static LeaveCallRequest create() => LeaveCallRequest._(); @$core.override LeaveCallRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static LeaveCallRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1219,8 +1205,6 @@ class HealthCheckRequest extends $pb.GeneratedMessage { static HealthCheckRequest create() => HealthCheckRequest._(); @$core.override HealthCheckRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static HealthCheckRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1268,8 +1252,6 @@ class HealthCheckResponse extends $pb.GeneratedMessage { static HealthCheckResponse create() => HealthCheckResponse._(); @$core.override HealthCheckResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static HealthCheckResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1338,8 +1320,6 @@ class TrackPublished extends $pb.GeneratedMessage { static TrackPublished create() => TrackPublished._(); @$core.override TrackPublished createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackPublished getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1444,8 +1424,6 @@ class TrackUnpublished extends $pb.GeneratedMessage { static TrackUnpublished create() => TrackUnpublished._(); @$core.override TrackUnpublished createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackUnpublished getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1593,7 +1571,6 @@ 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); @@ -1791,8 +1768,6 @@ class ReconnectDetails extends $pb.GeneratedMessage { static ReconnectDetails create() => ReconnectDetails._(); @$core.override ReconnectDetails createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ReconnectDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1900,7 +1875,6 @@ class Migration extends $pb.GeneratedMessage { static Migration create() => Migration._(); @$core.override Migration createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Migration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1974,8 +1948,6 @@ 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); @@ -2060,8 +2032,6 @@ class ParticipantJoined extends $pb.GeneratedMessage { static ParticipantJoined create() => ParticipantJoined._(); @$core.override ParticipantJoined createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantJoined getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2133,8 +2103,6 @@ class ParticipantLeft extends $pb.GeneratedMessage { static ParticipantLeft create() => ParticipantLeft._(); @$core.override ParticipantLeft createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantLeft getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2206,8 +2174,6 @@ class ParticipantUpdated extends $pb.GeneratedMessage { static ParticipantUpdated create() => ParticipantUpdated._(); @$core.override ParticipantUpdated createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantUpdated getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2278,8 +2244,6 @@ class SubscriberOffer extends $pb.GeneratedMessage { static SubscriberOffer create() => SubscriberOffer._(); @$core.override SubscriberOffer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscriberOffer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2344,8 +2308,6 @@ class PublisherAnswer extends $pb.GeneratedMessage { static PublisherAnswer create() => PublisherAnswer._(); @$core.override PublisherAnswer createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static PublisherAnswer getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2407,8 +2369,6 @@ class ConnectionQualityChanged extends $pb.GeneratedMessage { static ConnectionQualityChanged create() => ConnectionQualityChanged._(); @$core.override ConnectionQualityChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ConnectionQualityChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2467,8 +2427,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); @@ -2547,8 +2505,6 @@ class DominantSpeakerChanged extends $pb.GeneratedMessage { static DominantSpeakerChanged create() => DominantSpeakerChanged._(); @$core.override DominantSpeakerChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static DominantSpeakerChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2621,7 +2577,6 @@ class AudioLevel extends $pb.GeneratedMessage { static AudioLevel create() => AudioLevel._(); @$core.override AudioLevel createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static AudioLevel getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2707,8 +2662,6 @@ class AudioLevelChanged extends $pb.GeneratedMessage { static AudioLevelChanged create() => AudioLevelChanged._(); @$core.override AudioLevelChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static AudioLevelChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2766,7 +2719,6 @@ class AudioSender extends $pb.GeneratedMessage { static AudioSender create() => AudioSender._(); @$core.override AudioSender createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static AudioSender getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2867,8 +2819,6 @@ class VideoLayerSetting extends $pb.GeneratedMessage { static VideoLayerSetting create() => VideoLayerSetting._(); @$core.override VideoLayerSetting createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoLayerSetting getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2992,7 +2942,6 @@ class VideoSender extends $pb.GeneratedMessage { static VideoSender create() => VideoSender._(); @$core.override VideoSender createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoSender getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3077,8 +3026,6 @@ class ChangePublishQuality extends $pb.GeneratedMessage { static ChangePublishQuality create() => ChangePublishQuality._(); @$core.override ChangePublishQuality createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ChangePublishQuality getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3151,8 +3098,6 @@ class CallGrantsUpdated extends $pb.GeneratedMessage { static CallGrantsUpdated create() => CallGrantsUpdated._(); @$core.override CallGrantsUpdated createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static CallGrantsUpdated getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3221,7 +3166,6 @@ class GoAway extends $pb.GeneratedMessage { static GoAway create() => GoAway._(); @$core.override GoAway createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GoAway getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3279,7 +3223,6 @@ class CallEnded extends $pb.GeneratedMessage { static CallEnded create() => CallEnded._(); @$core.override CallEnded createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CallEnded getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3338,8 +3281,6 @@ class InboundStateNotification extends $pb.GeneratedMessage { static InboundStateNotification create() => InboundStateNotification._(); @$core.override InboundStateNotification createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static InboundStateNotification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -3399,8 +3340,6 @@ class InboundVideoState extends $pb.GeneratedMessage { static InboundVideoState create() => InboundVideoState._(); @$core.override InboundVideoState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static InboundVideoState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); diff --git a/packages/stream_video/lib/protobuf/video/sfu/event/events.pbenum.dart b/packages/stream_video/lib/protobuf/video/sfu/event/events.pbenum.dart index b276b4a72..3e535de32 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/event/events.pbenum.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/event/events.pbenum.dart @@ -8,4 +8,4 @@ // 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 diff --git a/packages/stream_video/lib/protobuf/video/sfu/event/events.pbjson.dart b/packages/stream_video/lib/protobuf/video/sfu/event/events.pbjson.dart index 6dfcde965..24a420501 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/event/events.pbjson.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/event/events.pbjson.dart @@ -8,7 +8,8 @@ // 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, unused_import +// 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; diff --git a/packages/stream_video/lib/protobuf/video/sfu/models/models.pb.dart b/packages/stream_video/lib/protobuf/video/sfu/models/models.pb.dart index 6d715ea8b..0344adaf1 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/models/models.pb.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/models/models.pb.dart @@ -8,14 +8,16 @@ // 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/struct.pb.dart' as $1; +import 'package:protobuf/well_known_types/google/protobuf/timestamp.pb.dart' + as $0; -import '../../../google/protobuf/struct.pb.dart' as $1; -import '../../../google/protobuf/timestamp.pb.dart' as $0; import 'models.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; @@ -75,7 +77,6 @@ class CallState extends $pb.GeneratedMessage { static CallState create() => CallState._(); @$core.override CallState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CallState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -162,8 +163,6 @@ class ParticipantCount extends $pb.GeneratedMessage { static ParticipantCount create() => ParticipantCount._(); @$core.override ParticipantCount createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ParticipantCount getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -233,7 +232,6 @@ class Pin extends $pb.GeneratedMessage { static Pin create() => Pin._(); @$core.override Pin createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Pin getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -348,7 +346,6 @@ class Participant extends $pb.GeneratedMessage { static Participant create() => Participant._(); @$core.override Participant createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Participant getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -518,8 +515,6 @@ class StreamQuality extends $pb.GeneratedMessage { static StreamQuality create() => StreamQuality._(); @$core.override StreamQuality createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static StreamQuality getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -587,8 +582,6 @@ class VideoDimension extends $pb.GeneratedMessage { static VideoDimension create() => VideoDimension._(); @$core.override VideoDimension createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoDimension getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -666,7 +659,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); @@ -767,8 +759,6 @@ class SubscribeOption extends $pb.GeneratedMessage { static SubscribeOption create() => SubscribeOption._(); @$core.override SubscribeOption createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SubscribeOption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -861,8 +851,6 @@ class PublishOption extends $pb.GeneratedMessage { static PublishOption create() => PublishOption._(); @$core.override PublishOption createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static PublishOption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1045,7 +1033,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); @@ -1143,7 +1130,6 @@ class ICETrickle extends $pb.GeneratedMessage { static ICETrickle create() => ICETrickle._(); @$core.override ICETrickle createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ICETrickle getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1221,8 +1207,6 @@ class AudioBitrate extends $pb.GeneratedMessage { static AudioBitrate create() => AudioBitrate._(); @$core.override AudioBitrate createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static AudioBitrate getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1315,7 +1299,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); @@ -1455,7 +1438,6 @@ class Error extends $pb.GeneratedMessage { static Error create() => Error._(); @$core.override Error createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Error getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1539,8 +1521,6 @@ class ClientDetails extends $pb.GeneratedMessage { static ClientDetails create() => ClientDetails._(); @$core.override ClientDetails createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ClientDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1639,7 +1619,6 @@ class Sdk extends $pb.GeneratedMessage { static Sdk create() => Sdk._(); @$core.override Sdk createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Sdk getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1727,7 +1706,6 @@ class OS extends $pb.GeneratedMessage { static OS create() => OS._(); @$core.override OS createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static OS getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1803,7 +1781,6 @@ class Browser extends $pb.GeneratedMessage { static Browser create() => Browser._(); @$core.override Browser createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Browser getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1886,7 +1863,6 @@ class RTMPIngress extends $pb.GeneratedMessage { static RTMPIngress create() => RTMPIngress._(); @$core.override RTMPIngress createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RTMPIngress getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2001,7 +1977,6 @@ class Device extends $pb.GeneratedMessage { static Device create() => Device._(); @$core.override Device createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Device getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2086,7 +2061,6 @@ class Call extends $pb.GeneratedMessage { static Call create() => Call._(); @$core.override Call createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Call getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2213,7 +2187,6 @@ class CallGrants extends $pb.GeneratedMessage { static CallGrants create() => CallGrants._(); @$core.override CallGrants createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CallGrants getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2294,8 +2267,6 @@ class InputDevices extends $pb.GeneratedMessage { static InputDevices create() => InputDevices._(); @$core.override InputDevices createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static InputDevices getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2367,8 +2338,6 @@ class AndroidState extends $pb.GeneratedMessage { static AndroidState create() => AndroidState._(); @$core.override AndroidState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static AndroidState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2437,7 +2406,6 @@ class AppleState extends $pb.GeneratedMessage { static AppleState create() => AppleState._(); @$core.override AppleState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static AppleState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2522,8 +2490,6 @@ class PerformanceStats extends $pb.GeneratedMessage { static PerformanceStats create() => PerformanceStats._(); @$core.override PerformanceStats createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static PerformanceStats getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2594,6 +2560,555 @@ class PerformanceStats extends $pb.GeneratedMessage { void clearTargetBitrate() => $_clearField(6); } +/// =================================================================== +/// BASE (shared by all RTP directions) +/// =================================================================== +class RtpBase extends $pb.GeneratedMessage { + factory RtpBase({ + $core.int? ssrc, + $core.String? kind, + $core.double? timestampMs, + }) { + final result = create(); + if (ssrc != null) result.ssrc = ssrc; + if (kind != null) result.kind = kind; + if (timestampMs != null) result.timestampMs = timestampMs; + return result; + } + + RtpBase._(); + + factory RtpBase.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RtpBase.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RtpBase', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.models'), + createEmptyInstance: create) + ..aI(1, _omitFieldNames ? '' : 'ssrc', fieldType: $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'kind') + ..aD(3, _omitFieldNames ? '' : 'timestampMs') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RtpBase clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RtpBase copyWith(void Function(RtpBase) updates) => + super.copyWith((message) => updates(message as RtpBase)) as RtpBase; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RtpBase create() => RtpBase._(); + @$core.override + RtpBase createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static RtpBase getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RtpBase? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get ssrc => $_getIZ(0); + @$pb.TagNumber(1) + set ssrc($core.int value) => $_setUnsignedInt32(0, value); + @$pb.TagNumber(1) + $core.bool hasSsrc() => $_has(0); + @$pb.TagNumber(1) + void clearSsrc() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get kind => $_getSZ(1); + @$pb.TagNumber(2) + set kind($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasKind() => $_has(1); + @$pb.TagNumber(2) + void clearKind() => $_clearField(2); + + @$pb.TagNumber(3) + $core.double get timestampMs => $_getN(2); + @$pb.TagNumber(3) + set timestampMs($core.double value) => $_setDouble(2, value); + @$pb.TagNumber(3) + $core.bool hasTimestampMs() => $_has(2); + @$pb.TagNumber(3) + void clearTimestampMs() => $_clearField(3); +} + +/// =================================================================== +/// INBOUND (SUBSCRIBER RECEIVING MEDIA) +/// =================================================================== +class InboundRtp extends $pb.GeneratedMessage { + factory InboundRtp({ + RtpBase? base, + $core.double? jitterSeconds, + $fixnum.Int64? packetsReceived, + $fixnum.Int64? packetsLost, + $core.double? packetLossPercent, + $core.int? concealmentEvents, + $core.double? concealmentPercent, + $core.double? fps, + $core.double? freezeDurationSeconds, + $core.double? avgDecodeTimeSeconds, + $core.int? minDimensionPx, + }) { + final result = create(); + if (base != null) result.base = base; + if (jitterSeconds != null) result.jitterSeconds = jitterSeconds; + if (packetsReceived != null) result.packetsReceived = packetsReceived; + if (packetsLost != null) result.packetsLost = packetsLost; + if (packetLossPercent != null) result.packetLossPercent = packetLossPercent; + if (concealmentEvents != null) result.concealmentEvents = concealmentEvents; + if (concealmentPercent != null) + result.concealmentPercent = concealmentPercent; + if (fps != null) result.fps = fps; + if (freezeDurationSeconds != null) + result.freezeDurationSeconds = freezeDurationSeconds; + if (avgDecodeTimeSeconds != null) + result.avgDecodeTimeSeconds = avgDecodeTimeSeconds; + if (minDimensionPx != null) result.minDimensionPx = minDimensionPx; + return result; + } + + InboundRtp._(); + + factory InboundRtp.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory InboundRtp.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'InboundRtp', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.models'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'base', subBuilder: RtpBase.create) + ..aD(2, _omitFieldNames ? '' : 'jitterSeconds') + ..a<$fixnum.Int64>( + 3, _omitFieldNames ? '' : 'packetsReceived', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'packetsLost', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..aD(5, _omitFieldNames ? '' : 'packetLossPercent') + ..aI(10, _omitFieldNames ? '' : 'concealmentEvents', + fieldType: $pb.PbFieldType.OU3) + ..aD(11, _omitFieldNames ? '' : 'concealmentPercent') + ..aD(20, _omitFieldNames ? '' : 'fps') + ..aD(21, _omitFieldNames ? '' : 'freezeDurationSeconds') + ..aD(22, _omitFieldNames ? '' : 'avgDecodeTimeSeconds') + ..aI(23, _omitFieldNames ? '' : 'minDimensionPx', + fieldType: $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + InboundRtp clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + InboundRtp copyWith(void Function(InboundRtp) updates) => + super.copyWith((message) => updates(message as InboundRtp)) as InboundRtp; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static InboundRtp create() => InboundRtp._(); + @$core.override + InboundRtp createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static InboundRtp getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static InboundRtp? _defaultInstance; + + @$pb.TagNumber(1) + RtpBase get base => $_getN(0); + @$pb.TagNumber(1) + set base(RtpBase value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasBase() => $_has(0); + @$pb.TagNumber(1) + void clearBase() => $_clearField(1); + @$pb.TagNumber(1) + RtpBase ensureBase() => $_ensure(0); + + @$pb.TagNumber(2) + $core.double get jitterSeconds => $_getN(1); + @$pb.TagNumber(2) + set jitterSeconds($core.double value) => $_setDouble(1, value); + @$pb.TagNumber(2) + $core.bool hasJitterSeconds() => $_has(1); + @$pb.TagNumber(2) + void clearJitterSeconds() => $_clearField(2); + + @$pb.TagNumber(3) + $fixnum.Int64 get packetsReceived => $_getI64(2); + @$pb.TagNumber(3) + set packetsReceived($fixnum.Int64 value) => $_setInt64(2, value); + @$pb.TagNumber(3) + $core.bool hasPacketsReceived() => $_has(2); + @$pb.TagNumber(3) + void clearPacketsReceived() => $_clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get packetsLost => $_getI64(3); + @$pb.TagNumber(4) + set packetsLost($fixnum.Int64 value) => $_setInt64(3, value); + @$pb.TagNumber(4) + $core.bool hasPacketsLost() => $_has(3); + @$pb.TagNumber(4) + void clearPacketsLost() => $_clearField(4); + + @$pb.TagNumber(5) + $core.double get packetLossPercent => $_getN(4); + @$pb.TagNumber(5) + set packetLossPercent($core.double value) => $_setDouble(4, value); + @$pb.TagNumber(5) + $core.bool hasPacketLossPercent() => $_has(4); + @$pb.TagNumber(5) + void clearPacketLossPercent() => $_clearField(5); + + /// -------- AUDIO METRICS -------- + @$pb.TagNumber(10) + $core.int get concealmentEvents => $_getIZ(5); + @$pb.TagNumber(10) + set concealmentEvents($core.int value) => $_setUnsignedInt32(5, value); + @$pb.TagNumber(10) + $core.bool hasConcealmentEvents() => $_has(5); + @$pb.TagNumber(10) + void clearConcealmentEvents() => $_clearField(10); + + @$pb.TagNumber(11) + $core.double get concealmentPercent => $_getN(6); + @$pb.TagNumber(11) + set concealmentPercent($core.double value) => $_setDouble(6, value); + @$pb.TagNumber(11) + $core.bool hasConcealmentPercent() => $_has(6); + @$pb.TagNumber(11) + void clearConcealmentPercent() => $_clearField(11); + + /// -------- VIDEO METRICS -------- + @$pb.TagNumber(20) + $core.double get fps => $_getN(7); + @$pb.TagNumber(20) + set fps($core.double value) => $_setDouble(7, value); + @$pb.TagNumber(20) + $core.bool hasFps() => $_has(7); + @$pb.TagNumber(20) + void clearFps() => $_clearField(20); + + @$pb.TagNumber(21) + $core.double get freezeDurationSeconds => $_getN(8); + @$pb.TagNumber(21) + set freezeDurationSeconds($core.double value) => $_setDouble(8, value); + @$pb.TagNumber(21) + $core.bool hasFreezeDurationSeconds() => $_has(8); + @$pb.TagNumber(21) + void clearFreezeDurationSeconds() => $_clearField(21); + + @$pb.TagNumber(22) + $core.double get avgDecodeTimeSeconds => $_getN(9); + @$pb.TagNumber(22) + set avgDecodeTimeSeconds($core.double value) => $_setDouble(9, value); + @$pb.TagNumber(22) + $core.bool hasAvgDecodeTimeSeconds() => $_has(9); + @$pb.TagNumber(22) + void clearAvgDecodeTimeSeconds() => $_clearField(22); + + @$pb.TagNumber(23) + $core.int get minDimensionPx => $_getIZ(10); + @$pb.TagNumber(23) + set minDimensionPx($core.int value) => $_setUnsignedInt32(10, value); + @$pb.TagNumber(23) + $core.bool hasMinDimensionPx() => $_has(10); + @$pb.TagNumber(23) + void clearMinDimensionPx() => $_clearField(23); +} + +/// =================================================================== +/// OUTBOUND (PUBLISHER SENDING MEDIA) +/// =================================================================== +class OutboundRtp extends $pb.GeneratedMessage { + factory OutboundRtp({ + RtpBase? base, + $core.double? fps, + $core.double? avgEncodeTimeSeconds, + $core.double? bitrateBps, + $core.int? minDimensionPx, + }) { + final result = create(); + if (base != null) result.base = base; + if (fps != null) result.fps = fps; + if (avgEncodeTimeSeconds != null) + result.avgEncodeTimeSeconds = avgEncodeTimeSeconds; + if (bitrateBps != null) result.bitrateBps = bitrateBps; + if (minDimensionPx != null) result.minDimensionPx = minDimensionPx; + return result; + } + + OutboundRtp._(); + + factory OutboundRtp.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory OutboundRtp.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OutboundRtp', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.models'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'base', subBuilder: RtpBase.create) + ..aD(10, _omitFieldNames ? '' : 'fps') + ..aD(11, _omitFieldNames ? '' : 'avgEncodeTimeSeconds') + ..aD(12, _omitFieldNames ? '' : 'bitrateBps') + ..aI(13, _omitFieldNames ? '' : 'minDimensionPx', + fieldType: $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + OutboundRtp clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + OutboundRtp copyWith(void Function(OutboundRtp) updates) => + super.copyWith((message) => updates(message as OutboundRtp)) + as OutboundRtp; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static OutboundRtp create() => OutboundRtp._(); + @$core.override + OutboundRtp createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static OutboundRtp getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static OutboundRtp? _defaultInstance; + + @$pb.TagNumber(1) + RtpBase get base => $_getN(0); + @$pb.TagNumber(1) + set base(RtpBase value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasBase() => $_has(0); + @$pb.TagNumber(1) + void clearBase() => $_clearField(1); + @$pb.TagNumber(1) + RtpBase ensureBase() => $_ensure(0); + + @$pb.TagNumber(10) + $core.double get fps => $_getN(1); + @$pb.TagNumber(10) + set fps($core.double value) => $_setDouble(1, value); + @$pb.TagNumber(10) + $core.bool hasFps() => $_has(1); + @$pb.TagNumber(10) + void clearFps() => $_clearField(10); + + @$pb.TagNumber(11) + $core.double get avgEncodeTimeSeconds => $_getN(2); + @$pb.TagNumber(11) + set avgEncodeTimeSeconds($core.double value) => $_setDouble(2, value); + @$pb.TagNumber(11) + $core.bool hasAvgEncodeTimeSeconds() => $_has(2); + @$pb.TagNumber(11) + void clearAvgEncodeTimeSeconds() => $_clearField(11); + + @$pb.TagNumber(12) + $core.double get bitrateBps => $_getN(3); + @$pb.TagNumber(12) + set bitrateBps($core.double value) => $_setDouble(3, value); + @$pb.TagNumber(12) + $core.bool hasBitrateBps() => $_has(3); + @$pb.TagNumber(12) + void clearBitrateBps() => $_clearField(12); + + @$pb.TagNumber(13) + $core.int get minDimensionPx => $_getIZ(4); + @$pb.TagNumber(13) + set minDimensionPx($core.int value) => $_setUnsignedInt32(4, value); + @$pb.TagNumber(13) + $core.bool hasMinDimensionPx() => $_has(4); + @$pb.TagNumber(13) + void clearMinDimensionPx() => $_clearField(13); +} + +/// =================================================================== +/// SFU FEEDBACK: REMOTE-INBOUND (Publisher receives feedback) +/// =================================================================== +class RemoteInboundRtp extends $pb.GeneratedMessage { + factory RemoteInboundRtp({ + RtpBase? base, + $core.double? jitterSeconds, + $core.double? roundTripTimeS, + }) { + final result = create(); + if (base != null) result.base = base; + if (jitterSeconds != null) result.jitterSeconds = jitterSeconds; + if (roundTripTimeS != null) result.roundTripTimeS = roundTripTimeS; + return result; + } + + RemoteInboundRtp._(); + + factory RemoteInboundRtp.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RemoteInboundRtp.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RemoteInboundRtp', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.models'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'base', subBuilder: RtpBase.create) + ..aD(2, _omitFieldNames ? '' : 'jitterSeconds') + ..aD(3, _omitFieldNames ? '' : 'roundTripTimeS') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RemoteInboundRtp clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RemoteInboundRtp copyWith(void Function(RemoteInboundRtp) updates) => + super.copyWith((message) => updates(message as RemoteInboundRtp)) + as RemoteInboundRtp; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RemoteInboundRtp create() => RemoteInboundRtp._(); + @$core.override + RemoteInboundRtp createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static RemoteInboundRtp getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RemoteInboundRtp? _defaultInstance; + + @$pb.TagNumber(1) + RtpBase get base => $_getN(0); + @$pb.TagNumber(1) + set base(RtpBase value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasBase() => $_has(0); + @$pb.TagNumber(1) + void clearBase() => $_clearField(1); + @$pb.TagNumber(1) + RtpBase ensureBase() => $_ensure(0); + + @$pb.TagNumber(2) + $core.double get jitterSeconds => $_getN(1); + @$pb.TagNumber(2) + set jitterSeconds($core.double value) => $_setDouble(1, value); + @$pb.TagNumber(2) + $core.bool hasJitterSeconds() => $_has(1); + @$pb.TagNumber(2) + void clearJitterSeconds() => $_clearField(2); + + @$pb.TagNumber(3) + $core.double get roundTripTimeS => $_getN(2); + @$pb.TagNumber(3) + set roundTripTimeS($core.double value) => $_setDouble(2, value); + @$pb.TagNumber(3) + $core.bool hasRoundTripTimeS() => $_has(2); + @$pb.TagNumber(3) + void clearRoundTripTimeS() => $_clearField(3); +} + +/// =================================================================== +/// SFU FEEDBACK: REMOTE-OUTBOUND (Subscriber receives feedback) +/// =================================================================== +class RemoteOutboundRtp extends $pb.GeneratedMessage { + factory RemoteOutboundRtp({ + RtpBase? base, + $core.double? jitterSeconds, + $core.double? roundTripTimeS, + }) { + final result = create(); + if (base != null) result.base = base; + if (jitterSeconds != null) result.jitterSeconds = jitterSeconds; + if (roundTripTimeS != null) result.roundTripTimeS = roundTripTimeS; + return result; + } + + RemoteOutboundRtp._(); + + factory RemoteOutboundRtp.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory RemoteOutboundRtp.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RemoteOutboundRtp', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.models'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'base', subBuilder: RtpBase.create) + ..aD(2, _omitFieldNames ? '' : 'jitterSeconds') + ..aD(3, _omitFieldNames ? '' : 'roundTripTimeS') + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RemoteOutboundRtp clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + RemoteOutboundRtp copyWith(void Function(RemoteOutboundRtp) updates) => + super.copyWith((message) => updates(message as RemoteOutboundRtp)) + as RemoteOutboundRtp; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RemoteOutboundRtp create() => RemoteOutboundRtp._(); + @$core.override + RemoteOutboundRtp createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static RemoteOutboundRtp getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RemoteOutboundRtp? _defaultInstance; + + @$pb.TagNumber(1) + RtpBase get base => $_getN(0); + @$pb.TagNumber(1) + set base(RtpBase value) => $_setField(1, value); + @$pb.TagNumber(1) + $core.bool hasBase() => $_has(0); + @$pb.TagNumber(1) + void clearBase() => $_clearField(1); + @$pb.TagNumber(1) + RtpBase ensureBase() => $_ensure(0); + + @$pb.TagNumber(2) + $core.double get jitterSeconds => $_getN(1); + @$pb.TagNumber(2) + set jitterSeconds($core.double value) => $_setDouble(1, value); + @$pb.TagNumber(2) + $core.bool hasJitterSeconds() => $_has(1); + @$pb.TagNumber(2) + void clearJitterSeconds() => $_clearField(2); + + @$pb.TagNumber(3) + $core.double get roundTripTimeS => $_getN(2); + @$pb.TagNumber(3) + set roundTripTimeS($core.double value) => $_setDouble(2, value); + @$pb.TagNumber(3) + $core.bool hasRoundTripTimeS() => $_has(2); + @$pb.TagNumber(3) + void clearRoundTripTimeS() => $_clearField(3); +} + const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const $core.bool _omitMessageNames = diff --git a/packages/stream_video/lib/protobuf/video/sfu/models/models.pbenum.dart b/packages/stream_video/lib/protobuf/video/sfu/models/models.pbenum.dart index db0c29454..f20077364 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/models/models.pbenum.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/models/models.pbenum.dart @@ -8,7 +8,7 @@ // 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; @@ -539,13 +539,19 @@ class ClientCapability extends $pb.ProtobufEnum { ClientCapability._( 1, _omitEnumNames ? '' : 'CLIENT_CAPABILITY_SUBSCRIBER_VIDEO_PAUSE'); + /// Instructs SFU that stats will be sent to the coordinator + static const ClientCapability CLIENT_CAPABILITY_COORDINATOR_STATS = + ClientCapability._( + 2, _omitEnumNames ? '' : 'CLIENT_CAPABILITY_COORDINATOR_STATS'); + static const $core.List values = [ CLIENT_CAPABILITY_UNSPECIFIED, CLIENT_CAPABILITY_SUBSCRIBER_VIDEO_PAUSE, + CLIENT_CAPABILITY_COORDINATOR_STATS, ]; static final $core.List _byValue = - $pb.ProtobufEnum.$_initByValueList(values, 1); + $pb.ProtobufEnum.$_initByValueList(values, 2); static ClientCapability? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; diff --git a/packages/stream_video/lib/protobuf/video/sfu/models/models.pbjson.dart b/packages/stream_video/lib/protobuf/video/sfu/models/models.pbjson.dart index 10899209a..d3ff963ab 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/models/models.pbjson.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/models/models.pbjson.dart @@ -8,7 +8,8 @@ // 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, unused_import +// 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; @@ -311,13 +312,15 @@ const ClientCapability$json = { '2': [ {'1': 'CLIENT_CAPABILITY_UNSPECIFIED', '2': 0}, {'1': 'CLIENT_CAPABILITY_SUBSCRIBER_VIDEO_PAUSE', '2': 1}, + {'1': 'CLIENT_CAPABILITY_COORDINATOR_STATS', '2': 2}, ], }; /// Descriptor for `ClientCapability`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List clientCapabilityDescriptor = $convert.base64Decode( 'ChBDbGllbnRDYXBhYmlsaXR5EiEKHUNMSUVOVF9DQVBBQklMSVRZX1VOU1BFQ0lGSUVEEAASLA' - 'ooQ0xJRU5UX0NBUEFCSUxJVFlfU1VCU0NSSUJFUl9WSURFT19QQVVTRRAB'); + 'ooQ0xJRU5UX0NBUEFCSUxJVFlfU1VCU0NSSUJFUl9WSURFT19QQVVTRRABEicKI0NMSUVOVF9D' + 'QVBBQklMSVRZX0NPT1JESU5BVE9SX1NUQVRTEAI='); @$core.Deprecated('Use callStateDescriptor instead') const CallState$json = { @@ -1112,3 +1115,163 @@ final $typed_data.Uint8List performanceStatsDescriptor = $convert.base64Decode( 'IOYXZnRnJhbWVUaW1lTXMSFwoHYXZnX2ZwcxgEIAEoAlIGYXZnRnBzElAKD3ZpZGVvX2RpbWVu' 'c2lvbhgFIAEoCzInLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlZpZGVvRGltZW5zaW9uUg52aW' 'Rlb0RpbWVuc2lvbhIlCg50YXJnZXRfYml0cmF0ZRgGIAEoBVINdGFyZ2V0Qml0cmF0ZQ=='); + +@$core.Deprecated('Use rtpBaseDescriptor instead') +const RtpBase$json = { + '1': 'RtpBase', + '2': [ + {'1': 'ssrc', '3': 1, '4': 1, '5': 13, '10': 'ssrc'}, + {'1': 'kind', '3': 2, '4': 1, '5': 9, '10': 'kind'}, + {'1': 'timestamp_ms', '3': 3, '4': 1, '5': 1, '10': 'timestampMs'}, + ], +}; + +/// Descriptor for `RtpBase`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rtpBaseDescriptor = $convert.base64Decode( + 'CgdSdHBCYXNlEhIKBHNzcmMYASABKA1SBHNzcmMSEgoEa2luZBgCIAEoCVIEa2luZBIhCgx0aW' + '1lc3RhbXBfbXMYAyABKAFSC3RpbWVzdGFtcE1z'); + +@$core.Deprecated('Use inboundRtpDescriptor instead') +const InboundRtp$json = { + '1': 'InboundRtp', + '2': [ + { + '1': 'base', + '3': 1, + '4': 1, + '5': 11, + '6': '.stream.video.sfu.models.RtpBase', + '10': 'base' + }, + {'1': 'jitter_seconds', '3': 2, '4': 1, '5': 1, '10': 'jitterSeconds'}, + {'1': 'packets_received', '3': 3, '4': 1, '5': 4, '10': 'packetsReceived'}, + {'1': 'packets_lost', '3': 4, '4': 1, '5': 4, '10': 'packetsLost'}, + { + '1': 'packet_loss_percent', + '3': 5, + '4': 1, + '5': 1, + '10': 'packetLossPercent' + }, + { + '1': 'concealment_events', + '3': 10, + '4': 1, + '5': 13, + '10': 'concealmentEvents' + }, + { + '1': 'concealment_percent', + '3': 11, + '4': 1, + '5': 1, + '10': 'concealmentPercent' + }, + {'1': 'fps', '3': 20, '4': 1, '5': 1, '10': 'fps'}, + { + '1': 'freeze_duration_seconds', + '3': 21, + '4': 1, + '5': 1, + '10': 'freezeDurationSeconds' + }, + { + '1': 'avg_decode_time_seconds', + '3': 22, + '4': 1, + '5': 1, + '10': 'avgDecodeTimeSeconds' + }, + {'1': 'min_dimension_px', '3': 23, '4': 1, '5': 13, '10': 'minDimensionPx'}, + ], +}; + +/// Descriptor for `InboundRtp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List inboundRtpDescriptor = $convert.base64Decode( + 'CgpJbmJvdW5kUnRwEjQKBGJhc2UYASABKAsyIC5zdHJlYW0udmlkZW8uc2Z1Lm1vZGVscy5SdH' + 'BCYXNlUgRiYXNlEiUKDmppdHRlcl9zZWNvbmRzGAIgASgBUg1qaXR0ZXJTZWNvbmRzEikKEHBh' + 'Y2tldHNfcmVjZWl2ZWQYAyABKARSD3BhY2tldHNSZWNlaXZlZBIhCgxwYWNrZXRzX2xvc3QYBC' + 'ABKARSC3BhY2tldHNMb3N0Ei4KE3BhY2tldF9sb3NzX3BlcmNlbnQYBSABKAFSEXBhY2tldExv' + 'c3NQZXJjZW50Ei0KEmNvbmNlYWxtZW50X2V2ZW50cxgKIAEoDVIRY29uY2VhbG1lbnRFdmVudH' + 'MSLwoTY29uY2VhbG1lbnRfcGVyY2VudBgLIAEoAVISY29uY2VhbG1lbnRQZXJjZW50EhAKA2Zw' + 'cxgUIAEoAVIDZnBzEjYKF2ZyZWV6ZV9kdXJhdGlvbl9zZWNvbmRzGBUgASgBUhVmcmVlemVEdX' + 'JhdGlvblNlY29uZHMSNQoXYXZnX2RlY29kZV90aW1lX3NlY29uZHMYFiABKAFSFGF2Z0RlY29k' + 'ZVRpbWVTZWNvbmRzEigKEG1pbl9kaW1lbnNpb25fcHgYFyABKA1SDm1pbkRpbWVuc2lvblB4'); + +@$core.Deprecated('Use outboundRtpDescriptor instead') +const OutboundRtp$json = { + '1': 'OutboundRtp', + '2': [ + { + '1': 'base', + '3': 1, + '4': 1, + '5': 11, + '6': '.stream.video.sfu.models.RtpBase', + '10': 'base' + }, + {'1': 'fps', '3': 10, '4': 1, '5': 1, '10': 'fps'}, + { + '1': 'avg_encode_time_seconds', + '3': 11, + '4': 1, + '5': 1, + '10': 'avgEncodeTimeSeconds' + }, + {'1': 'bitrate_bps', '3': 12, '4': 1, '5': 1, '10': 'bitrateBps'}, + {'1': 'min_dimension_px', '3': 13, '4': 1, '5': 13, '10': 'minDimensionPx'}, + ], +}; + +/// Descriptor for `OutboundRtp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List outboundRtpDescriptor = $convert.base64Decode( + 'CgtPdXRib3VuZFJ0cBI0CgRiYXNlGAEgASgLMiAuc3RyZWFtLnZpZGVvLnNmdS5tb2RlbHMuUn' + 'RwQmFzZVIEYmFzZRIQCgNmcHMYCiABKAFSA2ZwcxI1ChdhdmdfZW5jb2RlX3RpbWVfc2Vjb25k' + 'cxgLIAEoAVIUYXZnRW5jb2RlVGltZVNlY29uZHMSHwoLYml0cmF0ZV9icHMYDCABKAFSCmJpdH' + 'JhdGVCcHMSKAoQbWluX2RpbWVuc2lvbl9weBgNIAEoDVIObWluRGltZW5zaW9uUHg='); + +@$core.Deprecated('Use remoteInboundRtpDescriptor instead') +const RemoteInboundRtp$json = { + '1': 'RemoteInboundRtp', + '2': [ + { + '1': 'base', + '3': 1, + '4': 1, + '5': 11, + '6': '.stream.video.sfu.models.RtpBase', + '10': 'base' + }, + {'1': 'jitter_seconds', '3': 2, '4': 1, '5': 1, '10': 'jitterSeconds'}, + {'1': 'round_trip_time_s', '3': 3, '4': 1, '5': 1, '10': 'roundTripTimeS'}, + ], +}; + +/// Descriptor for `RemoteInboundRtp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List remoteInboundRtpDescriptor = $convert.base64Decode( + 'ChBSZW1vdGVJbmJvdW5kUnRwEjQKBGJhc2UYASABKAsyIC5zdHJlYW0udmlkZW8uc2Z1Lm1vZG' + 'Vscy5SdHBCYXNlUgRiYXNlEiUKDmppdHRlcl9zZWNvbmRzGAIgASgBUg1qaXR0ZXJTZWNvbmRz' + 'EikKEXJvdW5kX3RyaXBfdGltZV9zGAMgASgBUg5yb3VuZFRyaXBUaW1lUw=='); + +@$core.Deprecated('Use remoteOutboundRtpDescriptor instead') +const RemoteOutboundRtp$json = { + '1': 'RemoteOutboundRtp', + '2': [ + { + '1': 'base', + '3': 1, + '4': 1, + '5': 11, + '6': '.stream.video.sfu.models.RtpBase', + '10': 'base' + }, + {'1': 'jitter_seconds', '3': 2, '4': 1, '5': 1, '10': 'jitterSeconds'}, + {'1': 'round_trip_time_s', '3': 3, '4': 1, '5': 1, '10': 'roundTripTimeS'}, + ], +}; + +/// Descriptor for `RemoteOutboundRtp`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List remoteOutboundRtpDescriptor = $convert.base64Decode( + 'ChFSZW1vdGVPdXRib3VuZFJ0cBI0CgRiYXNlGAEgASgLMiAuc3RyZWFtLnZpZGVvLnNmdS5tb2' + 'RlbHMuUnRwQmFzZVIEYmFzZRIlCg5qaXR0ZXJfc2Vjb25kcxgCIAEoAVINaml0dGVyU2Vjb25k' + 'cxIpChFyb3VuZF90cmlwX3RpbWVfcxgDIAEoAVIOcm91bmRUcmlwVGltZVM='); diff --git a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pb.dart b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pb.dart index b5371a10b..44a7205e0 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pb.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pb.dart @@ -8,7 +8,7 @@ // 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:async' as $async; import 'dart:core' as $core; @@ -62,8 +62,6 @@ class StartNoiseCancellationRequest extends $pb.GeneratedMessage { StartNoiseCancellationRequest._(); @$core.override StartNoiseCancellationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static StartNoiseCancellationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -123,8 +121,6 @@ class StartNoiseCancellationResponse extends $pb.GeneratedMessage { StartNoiseCancellationResponse._(); @$core.override StartNoiseCancellationResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static StartNoiseCancellationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -185,8 +181,6 @@ class StopNoiseCancellationRequest extends $pb.GeneratedMessage { StopNoiseCancellationRequest._(); @$core.override StopNoiseCancellationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static StopNoiseCancellationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -246,8 +240,6 @@ class StopNoiseCancellationResponse extends $pb.GeneratedMessage { StopNoiseCancellationResponse._(); @$core.override StopNoiseCancellationResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static StopNoiseCancellationResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -309,8 +301,6 @@ class Reconnection extends $pb.GeneratedMessage { static Reconnection create() => Reconnection._(); @$core.override Reconnection createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static Reconnection getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -388,7 +378,6 @@ class Telemetry extends $pb.GeneratedMessage { static Telemetry create() => Telemetry._(); @$core.override Telemetry createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Telemetry getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -422,6 +411,140 @@ class Telemetry extends $pb.GeneratedMessage { Reconnection ensureReconnection() => $_ensure(1); } +class SendMetricsRequest extends $pb.GeneratedMessage { + factory SendMetricsRequest({ + $core.String? sessionId, + $core.String? unifiedSessionId, + $core.Iterable<$0.InboundRtp>? inbounds, + $core.Iterable<$0.OutboundRtp>? outbounds, + $core.Iterable<$0.RemoteInboundRtp>? remoteInbounds, + $core.Iterable<$0.RemoteOutboundRtp>? remoteOutbounds, + }) { + final result = create(); + if (sessionId != null) result.sessionId = sessionId; + if (unifiedSessionId != null) result.unifiedSessionId = unifiedSessionId; + if (inbounds != null) result.inbounds.addAll(inbounds); + if (outbounds != null) result.outbounds.addAll(outbounds); + if (remoteInbounds != null) result.remoteInbounds.addAll(remoteInbounds); + if (remoteOutbounds != null) result.remoteOutbounds.addAll(remoteOutbounds); + return result; + } + + SendMetricsRequest._(); + + factory SendMetricsRequest.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory SendMetricsRequest.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SendMetricsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.signal'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sessionId') + ..aOS(2, _omitFieldNames ? '' : 'unifiedSessionId') + ..pPM<$0.InboundRtp>(3, _omitFieldNames ? '' : 'inbounds', + subBuilder: $0.InboundRtp.create) + ..pPM<$0.OutboundRtp>(4, _omitFieldNames ? '' : 'outbounds', + subBuilder: $0.OutboundRtp.create) + ..pPM<$0.RemoteInboundRtp>(5, _omitFieldNames ? '' : 'remoteInbounds', + subBuilder: $0.RemoteInboundRtp.create) + ..pPM<$0.RemoteOutboundRtp>(6, _omitFieldNames ? '' : 'remoteOutbounds', + subBuilder: $0.RemoteOutboundRtp.create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + SendMetricsRequest clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + SendMetricsRequest copyWith(void Function(SendMetricsRequest) updates) => + super.copyWith((message) => updates(message as SendMetricsRequest)) + as SendMetricsRequest; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SendMetricsRequest create() => SendMetricsRequest._(); + @$core.override + SendMetricsRequest createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static SendMetricsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static SendMetricsRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get sessionId => $_getSZ(0); + @$pb.TagNumber(1) + set sessionId($core.String value) => $_setString(0, value); + @$pb.TagNumber(1) + $core.bool hasSessionId() => $_has(0); + @$pb.TagNumber(1) + void clearSessionId() => $_clearField(1); + + @$pb.TagNumber(2) + $core.String get unifiedSessionId => $_getSZ(1); + @$pb.TagNumber(2) + set unifiedSessionId($core.String value) => $_setString(1, value); + @$pb.TagNumber(2) + $core.bool hasUnifiedSessionId() => $_has(1); + @$pb.TagNumber(2) + void clearUnifiedSessionId() => $_clearField(2); + + @$pb.TagNumber(3) + $pb.PbList<$0.InboundRtp> get inbounds => $_getList(2); + + @$pb.TagNumber(4) + $pb.PbList<$0.OutboundRtp> get outbounds => $_getList(3); + + @$pb.TagNumber(5) + $pb.PbList<$0.RemoteInboundRtp> get remoteInbounds => $_getList(4); + + @$pb.TagNumber(6) + $pb.PbList<$0.RemoteOutboundRtp> get remoteOutbounds => $_getList(5); +} + +class SendMetricsResponse extends $pb.GeneratedMessage { + factory SendMetricsResponse() => create(); + + SendMetricsResponse._(); + + factory SendMetricsResponse.fromBuffer($core.List<$core.int> data, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(data, registry); + factory SendMetricsResponse.fromJson($core.String json, + [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(json, registry); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SendMetricsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'stream.video.sfu.signal'), + createEmptyInstance: create) + ..hasRequiredFields = false; + + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + SendMetricsResponse clone() => deepCopy(); + @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') + SendMetricsResponse copyWith(void Function(SendMetricsResponse) updates) => + super.copyWith((message) => updates(message as SendMetricsResponse)) + as SendMetricsResponse; + + @$core.override + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SendMetricsResponse create() => SendMetricsResponse._(); + @$core.override + SendMetricsResponse createEmptyInstance() => create(); + @$core.pragma('dart2js:noInline') + static SendMetricsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static SendMetricsResponse? _defaultInstance; +} + enum SendStatsRequest_DeviceState { android, apple, notSet } class SendStatsRequest extends $pb.GeneratedMessage { @@ -533,8 +656,6 @@ class SendStatsRequest extends $pb.GeneratedMessage { static SendStatsRequest create() => SendStatsRequest._(); @$core.override SendStatsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SendStatsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -765,8 +886,6 @@ class SendStatsResponse extends $pb.GeneratedMessage { static SendStatsResponse create() => SendStatsResponse._(); @$core.override SendStatsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SendStatsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -828,8 +947,6 @@ class ICERestartRequest extends $pb.GeneratedMessage { static ICERestartRequest create() => ICERestartRequest._(); @$core.override ICERestartRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ICERestartRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -895,8 +1012,6 @@ class ICERestartResponse extends $pb.GeneratedMessage { static ICERestartResponse create() => ICERestartResponse._(); @$core.override ICERestartResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ICERestartResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -959,8 +1074,6 @@ class UpdateMuteStatesRequest extends $pb.GeneratedMessage { static UpdateMuteStatesRequest create() => UpdateMuteStatesRequest._(); @$core.override UpdateMuteStatesRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateMuteStatesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1021,8 +1134,6 @@ class UpdateMuteStatesResponse extends $pb.GeneratedMessage { static UpdateMuteStatesResponse create() => UpdateMuteStatesResponse._(); @$core.override UpdateMuteStatesResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateMuteStatesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1084,8 +1195,6 @@ class TrackMuteState extends $pb.GeneratedMessage { static TrackMuteState create() => TrackMuteState._(); @$core.override TrackMuteState createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackMuteState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1150,8 +1259,6 @@ class AudioMuteChanged extends $pb.GeneratedMessage { static AudioMuteChanged create() => AudioMuteChanged._(); @$core.override AudioMuteChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static AudioMuteChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1207,8 +1314,6 @@ class VideoMuteChanged extends $pb.GeneratedMessage { static VideoMuteChanged create() => VideoMuteChanged._(); @$core.override VideoMuteChanged createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static VideoMuteChanged getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1270,8 +1375,6 @@ class UpdateSubscriptionsRequest extends $pb.GeneratedMessage { static UpdateSubscriptionsRequest create() => UpdateSubscriptionsRequest._(); @$core.override UpdateSubscriptionsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateSubscriptionsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1334,8 +1437,6 @@ class UpdateSubscriptionsResponse extends $pb.GeneratedMessage { UpdateSubscriptionsResponse._(); @$core.override UpdateSubscriptionsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateSubscriptionsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1405,8 +1506,6 @@ class TrackSubscriptionDetails extends $pb.GeneratedMessage { static TrackSubscriptionDetails create() => TrackSubscriptionDetails._(); @$core.override TrackSubscriptionDetails createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static TrackSubscriptionDetails getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1498,8 +1597,6 @@ class SendAnswerRequest extends $pb.GeneratedMessage { static SendAnswerRequest create() => SendAnswerRequest._(); @$core.override SendAnswerRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SendAnswerRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1574,8 +1671,6 @@ class SendAnswerResponse extends $pb.GeneratedMessage { static SendAnswerResponse create() => SendAnswerResponse._(); @$core.override SendAnswerResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SendAnswerResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1634,8 +1729,6 @@ class ICETrickleResponse extends $pb.GeneratedMessage { static ICETrickleResponse create() => ICETrickleResponse._(); @$core.override ICETrickleResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static ICETrickleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1700,8 +1793,6 @@ class SetPublisherRequest extends $pb.GeneratedMessage { static SetPublisherRequest create() => SetPublisherRequest._(); @$core.override SetPublisherRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SetPublisherRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1780,8 +1871,6 @@ class SetPublisherResponse extends $pb.GeneratedMessage { static SetPublisherResponse create() => SetPublisherResponse._(); @$core.override SetPublisherResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); @$core.pragma('dart2js:noInline') static SetPublisherResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1868,6 +1957,10 @@ class SignalServerApi { $pb.ClientContext? ctx, SendStatsRequest request) => _client.invoke( ctx, 'SignalServer', 'SendStats', request, SendStatsResponse()); + $async.Future sendMetrics( + $pb.ClientContext? ctx, SendMetricsRequest request) => + _client.invoke( + ctx, 'SignalServer', 'SendMetrics', request, SendMetricsResponse()); $async.Future startNoiseCancellation( $pb.ClientContext? ctx, StartNoiseCancellationRequest request) => _client.invoke(ctx, 'SignalServer', diff --git a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbenum.dart b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbenum.dart index 61150e2a6..f1213a622 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbenum.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbenum.dart @@ -8,4 +8,4 @@ // 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 diff --git a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbjson.dart b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbjson.dart index 1d47b785b..fc4f9671a 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbjson.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbjson.dart @@ -8,7 +8,8 @@ // 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, unused_import +// 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; @@ -141,6 +142,73 @@ final $typed_data.Uint8List telemetryDescriptor = $convert.base64Decode( 'lvblRpbWVTZWNvbmRzEksKDHJlY29ubmVjdGlvbhgCIAEoCzIlLnN0cmVhbS52aWRlby5zZnUu' 'c2lnbmFsLlJlY29ubmVjdGlvbkgAUgxyZWNvbm5lY3Rpb25CBgoEZGF0YQ=='); +@$core.Deprecated('Use sendMetricsRequestDescriptor instead') +const SendMetricsRequest$json = { + '1': 'SendMetricsRequest', + '2': [ + {'1': 'session_id', '3': 1, '4': 1, '5': 9, '10': 'sessionId'}, + { + '1': 'unified_session_id', + '3': 2, + '4': 1, + '5': 9, + '10': 'unifiedSessionId' + }, + { + '1': 'inbounds', + '3': 3, + '4': 3, + '5': 11, + '6': '.stream.video.sfu.models.InboundRtp', + '10': 'inbounds' + }, + { + '1': 'outbounds', + '3': 4, + '4': 3, + '5': 11, + '6': '.stream.video.sfu.models.OutboundRtp', + '10': 'outbounds' + }, + { + '1': 'remote_inbounds', + '3': 5, + '4': 3, + '5': 11, + '6': '.stream.video.sfu.models.RemoteInboundRtp', + '10': 'remoteInbounds' + }, + { + '1': 'remote_outbounds', + '3': 6, + '4': 3, + '5': 11, + '6': '.stream.video.sfu.models.RemoteOutboundRtp', + '10': 'remoteOutbounds' + }, + ], +}; + +/// Descriptor for `SendMetricsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sendMetricsRequestDescriptor = $convert.base64Decode( + 'ChJTZW5kTWV0cmljc1JlcXVlc3QSHQoKc2Vzc2lvbl9pZBgBIAEoCVIJc2Vzc2lvbklkEiwKEn' + 'VuaWZpZWRfc2Vzc2lvbl9pZBgCIAEoCVIQdW5pZmllZFNlc3Npb25JZBI/CghpbmJvdW5kcxgD' + 'IAMoCzIjLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLkluYm91bmRSdHBSCGluYm91bmRzEkIKCW' + '91dGJvdW5kcxgEIAMoCzIkLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLk91dGJvdW5kUnRwUglv' + 'dXRib3VuZHMSUgoPcmVtb3RlX2luYm91bmRzGAUgAygLMikuc3RyZWFtLnZpZGVvLnNmdS5tb2' + 'RlbHMuUmVtb3RlSW5ib3VuZFJ0cFIOcmVtb3RlSW5ib3VuZHMSVQoQcmVtb3RlX291dGJvdW5k' + 'cxgGIAMoCzIqLnN0cmVhbS52aWRlby5zZnUubW9kZWxzLlJlbW90ZU91dGJvdW5kUnRwUg9yZW' + '1vdGVPdXRib3VuZHM='); + +@$core.Deprecated('Use sendMetricsResponseDescriptor instead') +const SendMetricsResponse$json = { + '1': 'SendMetricsResponse', +}; + +/// Descriptor for `SendMetricsResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sendMetricsResponseDescriptor = + $convert.base64Decode('ChNTZW5kTWV0cmljc1Jlc3BvbnNl'); + @$core.Deprecated('Use sendStatsRequestDescriptor instead') const SendStatsRequest$json = { '1': 'SendStatsRequest', @@ -642,6 +710,11 @@ const $core.Map<$core.String, $core.dynamic> SignalServerServiceBase$json = { '2': '.stream.video.sfu.signal.SendStatsRequest', '3': '.stream.video.sfu.signal.SendStatsResponse' }, + { + '1': 'SendMetrics', + '2': '.stream.video.sfu.signal.SendMetricsRequest', + '3': '.stream.video.sfu.signal.SendMetricsResponse' + }, { '1': 'StartNoiseCancellation', '2': '.stream.video.sfu.signal.StartNoiseCancellationRequest', @@ -691,6 +764,13 @@ const $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> '.stream.video.sfu.models.RTMPIngress': $0.RTMPIngress$json, '.stream.video.sfu.models.PerformanceStats': $0.PerformanceStats$json, '.stream.video.sfu.signal.SendStatsResponse': SendStatsResponse$json, + '.stream.video.sfu.signal.SendMetricsRequest': SendMetricsRequest$json, + '.stream.video.sfu.models.InboundRtp': $0.InboundRtp$json, + '.stream.video.sfu.models.RtpBase': $0.RtpBase$json, + '.stream.video.sfu.models.OutboundRtp': $0.OutboundRtp$json, + '.stream.video.sfu.models.RemoteInboundRtp': $0.RemoteInboundRtp$json, + '.stream.video.sfu.models.RemoteOutboundRtp': $0.RemoteOutboundRtp$json, + '.stream.video.sfu.signal.SendMetricsResponse': SendMetricsResponse$json, '.stream.video.sfu.signal.StartNoiseCancellationRequest': StartNoiseCancellationRequest$json, '.stream.video.sfu.signal.StartNoiseCancellationResponse': @@ -717,9 +797,10 @@ final $typed_data.Uint8List signalServerServiceDescriptor = $convert.base64Decod 'duYWwuSUNFUmVzdGFydFJlcXVlc3QaKy5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5JQ0VSZXN0' 'YXJ0UmVzcG9uc2USYgoJU2VuZFN0YXRzEikuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU2VuZF' 'N0YXRzUmVxdWVzdBoqLnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlNlbmRTdGF0c1Jlc3BvbnNl' - 'EokBChZTdGFydE5vaXNlQ2FuY2VsbGF0aW9uEjYuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU3' - 'RhcnROb2lzZUNhbmNlbGxhdGlvblJlcXVlc3QaNy5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5T' - 'dGFydE5vaXNlQ2FuY2VsbGF0aW9uUmVzcG9uc2UShgEKFVN0b3BOb2lzZUNhbmNlbGxhdGlvbh' - 'I1LnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlN0b3BOb2lzZUNhbmNlbGxhdGlvblJlcXVlc3Qa' - 'Ni5zdHJlYW0udmlkZW8uc2Z1LnNpZ25hbC5TdG9wTm9pc2VDYW5jZWxsYXRpb25SZXNwb25zZQ' - '=='); + 'EmgKC1NlbmRNZXRyaWNzEisuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU2VuZE1ldHJpY3NSZX' + 'F1ZXN0Giwuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU2VuZE1ldHJpY3NSZXNwb25zZRKJAQoW' + 'U3RhcnROb2lzZUNhbmNlbGxhdGlvbhI2LnN0cmVhbS52aWRlby5zZnUuc2lnbmFsLlN0YXJ0Tm' + '9pc2VDYW5jZWxsYXRpb25SZXF1ZXN0Gjcuc3RyZWFtLnZpZGVvLnNmdS5zaWduYWwuU3RhcnRO' + 'b2lzZUNhbmNlbGxhdGlvblJlc3BvbnNlEoYBChVTdG9wTm9pc2VDYW5jZWxsYXRpb24SNS5zdH' + 'JlYW0udmlkZW8uc2Z1LnNpZ25hbC5TdG9wTm9pc2VDYW5jZWxsYXRpb25SZXF1ZXN0GjYuc3Ry' + 'ZWFtLnZpZGVvLnNmdS5zaWduYWwuU3RvcE5vaXNlQ2FuY2VsbGF0aW9uUmVzcG9uc2U='); diff --git a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbserver.dart b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbserver.dart index 31ee555ab..2b3c79be6 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbserver.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbserver.dart @@ -8,7 +8,7 @@ // 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:async' as $async; import 'dart:core' as $core; @@ -36,6 +36,8 @@ abstract class SignalServerServiceBase extends $pb.GeneratedService { $pb.ServerContext ctx, $1.ICERestartRequest request); $async.Future<$1.SendStatsResponse> sendStats( $pb.ServerContext ctx, $1.SendStatsRequest request); + $async.Future<$1.SendMetricsResponse> sendMetrics( + $pb.ServerContext ctx, $1.SendMetricsRequest request); $async.Future<$1.StartNoiseCancellationResponse> startNoiseCancellation( $pb.ServerContext ctx, $1.StartNoiseCancellationRequest request); $async.Future<$1.StopNoiseCancellationResponse> stopNoiseCancellation( @@ -57,6 +59,8 @@ abstract class SignalServerServiceBase extends $pb.GeneratedService { return $1.ICERestartRequest(); case 'SendStats': return $1.SendStatsRequest(); + case 'SendMetrics': + return $1.SendMetricsRequest(); case 'StartNoiseCancellation': return $1.StartNoiseCancellationRequest(); case 'StopNoiseCancellation': @@ -84,6 +88,8 @@ abstract class SignalServerServiceBase extends $pb.GeneratedService { return iceRestart(ctx, request as $1.ICERestartRequest); case 'SendStats': return sendStats(ctx, request as $1.SendStatsRequest); + case 'SendMetrics': + return sendMetrics(ctx, request as $1.SendMetricsRequest); case 'StartNoiseCancellation': return startNoiseCancellation( ctx, request as $1.StartNoiseCancellationRequest); diff --git a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbtwirp.dart b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbtwirp.dart index 00dd4c1a7..13cb6afde 100644 --- a/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbtwirp.dart +++ b/packages/stream_video/lib/protobuf/video/sfu/signal_rpc/signal.pbtwirp.dart @@ -39,6 +39,11 @@ abstract class SignalServer { Future sendStats(twirp.Context ctx, SendStatsRequest req); + Future sendMetrics( + twirp.Context ctx, + SendMetricsRequest req, + ); + Future startNoiseCancellation( twirp.Context ctx, StartNoiseCancellationRequest req, @@ -285,6 +290,36 @@ class SignalServerJSONClient implements SignalServer { } } + @override + Future sendMetrics( + twirp.Context ctx, + SendMetricsRequest req, + ) async { + ctx = twirp.withPackageName(ctx, 'signal'); + ctx = twirp.withServiceName(ctx, 'SignalServer'); + ctx = twirp.withMethodName(ctx, 'SendMetrics'); + return interceptor((ctx, req) { + return callSendMetrics(ctx, req); + })(ctx, req); + } + + Future callSendMetrics( + twirp.Context ctx, + SendMetricsRequest req, + ) async { + try { + Uri url = Uri.parse( + baseUrl + prefix + 'stream.video.sfu.signal.SignalServer/SendMetrics', + ); + final data = await doJSONRequest(ctx, url, hooks, req); + final SendMetricsResponse res = SendMetricsResponse.create(); + res.mergeFromProto3Json(json.decode(data)); + return Future.value(res); + } catch (e) { + rethrow; + } + } + @override Future startNoiseCancellation( twirp.Context ctx, @@ -587,6 +622,36 @@ class SignalServerProtobufClient implements SignalServer { } } + @override + Future sendMetrics( + twirp.Context ctx, + SendMetricsRequest req, + ) async { + ctx = twirp.withPackageName(ctx, 'signal'); + ctx = twirp.withServiceName(ctx, 'SignalServer'); + ctx = twirp.withMethodName(ctx, 'SendMetrics'); + return interceptor((ctx, req) { + return callSendMetrics(ctx, req); + })(ctx, req); + } + + Future callSendMetrics( + twirp.Context ctx, + SendMetricsRequest req, + ) async { + try { + Uri url = Uri.parse( + baseUrl + prefix + 'stream.video.sfu.signal.SignalServer/SendMetrics', + ); + final data = await doProtobufRequest(ctx, url, hooks, req); + final SendMetricsResponse res = SendMetricsResponse.create(); + res.mergeFromBuffer(data); + return Future.value(res); + } catch (e) { + rethrow; + } + } + @override Future startNoiseCancellation( twirp.Context ctx, diff --git a/packages/stream_video/pubspec.yaml b/packages/stream_video/pubspec.yaml index 0cb84a3b1..cf801cdfe 100644 --- a/packages/stream_video/pubspec.yaml +++ b/packages/stream_video/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: jose: ^0.3.4 meta: ^1.16.0 package_info_plus: ^9.0.0 - protobuf: ^5.0.0 + protobuf: ^6.0.0 rxdart: ^0.28.0 sdp_transform: ^0.3.2 state_notifier: ^1.0.0 @@ -46,7 +46,7 @@ dev_dependencies: sdk: flutter mockito: ^5.4.2 mocktail: ^1.0.0 - protoc_plugin: ^23.0.0 + protoc_plugin: ^25.0.0 pubspec_parse: ^1.2.1 topics: diff --git a/packages/stream_video_noise_cancellation/example/lib/main.dart b/packages/stream_video_noise_cancellation/example/lib/main.dart new file mode 100644 index 000000000..3eaeee254 --- /dev/null +++ b/packages/stream_video_noise_cancellation/example/lib/main.dart @@ -0,0 +1,16 @@ +// ignore_for_file: unused_local_variable + +import 'package:stream_video/stream_video.dart'; +import 'package:stream_video_noise_cancellation/noise_cancellation_audio_processor.dart'; + +void main() { + // Initialize StreamVideo with noise cancellation audio processor + final client = StreamVideo( + 'your-api-key', + user: User.regular(userId: 'user-id'), + userToken: 'your-user-token', + options: StreamVideoOptions( + audioProcessor: NoiseCancellationAudioProcessor(), + ), + ); +} diff --git a/packages/stream_video_noise_cancellation/example/pubspec.yaml b/packages/stream_video_noise_cancellation/example/pubspec.yaml new file mode 100644 index 000000000..6f14c437d --- /dev/null +++ b/packages/stream_video_noise_cancellation/example/pubspec.yaml @@ -0,0 +1,17 @@ +name: stream_video_noise_cancellation_example + +environment: + sdk: ^3.8.0 + flutter: ">=3.32.0" + +dependencies: + flutter: + sdk: flutter + stream_video: ^1.2.2 + stream_video_noise_cancellation: ^1.2.2 + +dependency_overrides: + stream_video: + path: ../../stream_video + stream_video_noise_cancellation: + path: ../../stream_video_noise_cancellation diff --git a/packages/stream_video_noise_cancellation/lib/noise_cancellation_audio_processor.dart b/packages/stream_video_noise_cancellation/lib/noise_cancellation_audio_processor.dart index 5b779b2a7..eabdf01fd 100644 --- a/packages/stream_video_noise_cancellation/lib/noise_cancellation_audio_processor.dart +++ b/packages/stream_video_noise_cancellation/lib/noise_cancellation_audio_processor.dart @@ -1,8 +1,18 @@ +/// This library provides [NoiseCancellationAudioProcessor], an [AudioProcessor] +/// implementation that applies real-time noise cancellation to audio streams +/// during video calls. +library; + import 'package:flutter/services.dart'; import 'package:stream_video/stream_video.dart'; import 'stream_video_noise_cancellation.dart'; +/// An [AudioProcessor] implementation that provides real-time noise cancellation. +/// +/// Note: Noise cancellation is only supported on iOS and Android platforms. +/// On unsupported platforms, methods will return appropriate fallback values. class NoiseCancellationAudioProcessor extends AudioProcessor { + /// Creates a new [NoiseCancellationAudioProcessor] instance. NoiseCancellationAudioProcessor() { _init(); } @@ -21,6 +31,7 @@ class NoiseCancellationAudioProcessor extends AudioProcessor { } } + /// Returns whether noise cancellation is currently enabled. @override Future> isEnabled() async { try { @@ -37,6 +48,7 @@ class NoiseCancellationAudioProcessor extends AudioProcessor { } } + /// Enables or disables noise cancellation. @override Future> setEnabled(bool enabled) async { try { @@ -55,6 +67,7 @@ class NoiseCancellationAudioProcessor extends AudioProcessor { } } + /// Checks if the current device supports advanced audio processing. @override Future> deviceSupportsAdvancedAudioProcessing() async { try { diff --git a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation.dart b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation.dart index 47be069fa..aa453435a 100644 --- a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation.dart +++ b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation.dart @@ -6,19 +6,30 @@ library; import 'stream_video_noise_cancellation_platform_interface.dart'; +/// Provides access to noise cancellation functionality. +/// +/// This class serves as the main entry point for interacting with +/// platform-specific noise cancellation features. It delegates all +/// operations to the appropriate platform implementation. class StreamVideoNoiseCancellation { + /// Registers the noise cancellation processor with the native platform. + /// + /// This must be called before using other noise cancellation features. Future registerProcessor() { return StreamVideoNoiseCancellationPlatform.instance.registerProcessor(); } + /// Returns whether noise cancellation is currently enabled. Future isEnabled() { return StreamVideoNoiseCancellationPlatform.instance.isEnabled(); } + /// Enables or disables noise cancellation. Future setEnabled(bool enabled) { return StreamVideoNoiseCancellationPlatform.instance.setEnabled(enabled); } + /// Checks if the device supports advanced audio processing. Future deviceSupportsAdvancedAudioProcessing() { return StreamVideoNoiseCancellationPlatform.instance .deviceSupportsAdvancedAudioProcessing(); diff --git a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_method_channel.dart b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_method_channel.dart index 8bbb6c6b9..fbc85308c 100644 --- a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_method_channel.dart +++ b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_method_channel.dart @@ -1,3 +1,6 @@ +/// Method channel implementation for Stream Video noise cancellation. +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:stream_video/stream_video.dart'; @@ -11,6 +14,7 @@ class MethodChannelStreamVideoNoiseCancellation @visibleForTesting final methodChannel = const MethodChannel('stream_video_noise_cancellation'); + /// Registers the noise cancellation processor with the native platform. @override Future registerProcessor() async { if (!CurrentPlatform.isAndroid && !CurrentPlatform.isIos) { @@ -22,6 +26,7 @@ class MethodChannelStreamVideoNoiseCancellation await methodChannel.invokeMethod('registerProcessor'); } + /// Returns whether noise cancellation is currently enabled. @override Future isEnabled() async { if (!CurrentPlatform.isAndroid && !CurrentPlatform.isIos) { @@ -33,6 +38,7 @@ class MethodChannelStreamVideoNoiseCancellation return methodChannel.invokeMethod('isEnabled'); } + /// Enables or disables noise cancellation. @override Future setEnabled(bool enabled) { if (!CurrentPlatform.isAndroid && !CurrentPlatform.isIos) { @@ -44,6 +50,7 @@ class MethodChannelStreamVideoNoiseCancellation return methodChannel.invokeMethod('setEnabled', {'enabled': enabled}); } + /// Checks if the device supports advanced audio processing. @override Future deviceSupportsAdvancedAudioProcessing() { if (!CurrentPlatform.isAndroid && !CurrentPlatform.isIos) { diff --git a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_platform_interface.dart b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_platform_interface.dart index 0cb38a63f..0be6a1da8 100644 --- a/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_platform_interface.dart +++ b/packages/stream_video_noise_cancellation/lib/stream_video_noise_cancellation_platform_interface.dart @@ -1,7 +1,12 @@ +/// Platform interface for Stream Video noise cancellation. +library; + import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'stream_video_noise_cancellation_method_channel.dart'; +/// The interface that platform-specific implementations of noise cancellation +/// must extend. abstract class StreamVideoNoiseCancellationPlatform extends PlatformInterface { /// Constructs a StreamVideoNoiseCancellationPlatform. StreamVideoNoiseCancellationPlatform() : super(token: _token); @@ -24,18 +29,22 @@ abstract class StreamVideoNoiseCancellationPlatform extends PlatformInterface { _instance = instance; } + /// Registers the noise cancellation processor with the native platform. Future registerProcessor() { throw UnimplementedError('registerProcessor() has not been implemented.'); } + /// Returns whether noise cancellation is currently enabled. Future isEnabled() { throw UnimplementedError('isEnabled() has not been implemented.'); } + /// Enables or disables noise cancellation. Future setEnabled(bool enabled) { throw UnimplementedError('setEnabled() has not been implemented.'); } + /// Checks if the device supports advanced audio processing. Future deviceSupportsAdvancedAudioProcessing() { throw UnimplementedError( 'deviceSupportsAdvancedAudioProcessing() has not been implemented.', diff --git a/packages/stream_video_push_notification/example/lib/main.dart b/packages/stream_video_push_notification/example/lib/main.dart new file mode 100644 index 000000000..6cd33f8b5 --- /dev/null +++ b/packages/stream_video_push_notification/example/lib/main.dart @@ -0,0 +1,21 @@ +// ignore_for_file: unused_local_variable + +import 'package:stream_video/stream_video.dart'; +import 'package:stream_video_push_notification/stream_video_push_notification.dart'; + +void main() { + // Initialize StreamVideo with push notification support + final client = StreamVideo( + 'your-api-key', + user: User.regular(userId: 'user-id'), + userToken: 'your-user-token', + pushNotificationManagerProvider: StreamVideoPushNotificationManager.create( + iosPushProvider: const StreamVideoPushProvider.apn( + name: 'your-apn-provider-name', + ), + androidPushProvider: const StreamVideoPushProvider.firebase( + name: 'your-firebase-provider-name', + ), + ), + ); +} diff --git a/packages/stream_video_push_notification/example/pubspec.yaml b/packages/stream_video_push_notification/example/pubspec.yaml new file mode 100644 index 000000000..15e7d84bb --- /dev/null +++ b/packages/stream_video_push_notification/example/pubspec.yaml @@ -0,0 +1,17 @@ +name: stream_video_push_notification_example + +environment: + sdk: ^3.8.0 + flutter: ">=3.32.0" + +dependencies: + flutter: + sdk: flutter + stream_video: ^1.2.2 + stream_video_push_notification: ^1.2.2 + +dependency_overrides: + stream_video: + path: ../../stream_video + stream_video_push_notification: + path: ../../stream_video_push_notification