77 lines
3.4 KiB
Dart
77 lines
3.4 KiB
Dart
|
|
//
|
|||
|
|
// Generated code. Do not modify.
|
|||
|
|
// source: talk_expect.proto
|
|||
|
|
//
|
|||
|
|
// @dart = 2.12
|
|||
|
|
|
|||
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|||
|
|
// ignore_for_file: constant_identifier_names, library_prefixes
|
|||
|
|
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
|||
|
|
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
|||
|
|
|
|||
|
|
import 'dart:core' as $core;
|
|||
|
|
|
|||
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|||
|
|
|
|||
|
|
import 'talk_expect.pbenum.dart';
|
|||
|
|
|
|||
|
|
export 'talk_expect.pbenum.dart';
|
|||
|
|
|
|||
|
|
class TalkExpect extends $pb.GeneratedMessage {
|
|||
|
|
factory TalkExpect({
|
|||
|
|
$core.Iterable<TalkExpect_VideoTypeE>? videoType,
|
|||
|
|
$core.Iterable<TalkExpect_AudioTypeE>? audioType,
|
|||
|
|
}) {
|
|||
|
|
final $result = create();
|
|||
|
|
if (videoType != null) {
|
|||
|
|
$result.videoType.addAll(videoType);
|
|||
|
|
}
|
|||
|
|
if (audioType != null) {
|
|||
|
|
$result.audioType.addAll(audioType);
|
|||
|
|
}
|
|||
|
|
return $result;
|
|||
|
|
}
|
|||
|
|
TalkExpect._() : super();
|
|||
|
|
factory TalkExpect.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|||
|
|
factory TalkExpect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|||
|
|
|
|||
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkExpect', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
|||
|
|
..pc<TalkExpect_VideoTypeE>(1, _omitFieldNames ? '' : 'VideoType', $pb.PbFieldType.KE, protoName: 'VideoType', valueOf: TalkExpect_VideoTypeE.valueOf, enumValues: TalkExpect_VideoTypeE.values, defaultEnumValue: TalkExpect_VideoTypeE.NONE_V)
|
|||
|
|
..pc<TalkExpect_AudioTypeE>(2, _omitFieldNames ? '' : 'AudioType', $pb.PbFieldType.KE, protoName: 'AudioType', valueOf: TalkExpect_AudioTypeE.valueOf, enumValues: TalkExpect_AudioTypeE.values, defaultEnumValue: TalkExpect_AudioTypeE.NONE_A)
|
|||
|
|
..hasRequiredFields = false
|
|||
|
|
;
|
|||
|
|
|
|||
|
|
@$core.Deprecated(
|
|||
|
|
'Using this can add significant overhead to your binary. '
|
|||
|
|
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
|||
|
|
'Will be removed in next major version')
|
|||
|
|
TalkExpect clone() => TalkExpect()..mergeFromMessage(this);
|
|||
|
|
@$core.Deprecated(
|
|||
|
|
'Using this can add significant overhead to your binary. '
|
|||
|
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
|||
|
|
'Will be removed in next major version')
|
|||
|
|
TalkExpect copyWith(void Function(TalkExpect) updates) => super.copyWith((message) => updates(message as TalkExpect)) as TalkExpect;
|
|||
|
|
|
|||
|
|
$pb.BuilderInfo get info_ => _i;
|
|||
|
|
|
|||
|
|
@$core.pragma('dart2js:noInline')
|
|||
|
|
static TalkExpect create() => TalkExpect._();
|
|||
|
|
TalkExpect createEmptyInstance() => create();
|
|||
|
|
static $pb.PbList<TalkExpect> createRepeated() => $pb.PbList<TalkExpect>();
|
|||
|
|
@$core.pragma('dart2js:noInline')
|
|||
|
|
static TalkExpect getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkExpect>(create);
|
|||
|
|
static TalkExpect? _defaultInstance;
|
|||
|
|
|
|||
|
|
/// 如果接收到NONE的话,意味着对方关闭了喇叭或者视频显示,发送方应该停止发送
|
|||
|
|
/// 支持的类型是数组
|
|||
|
|
@$pb.TagNumber(1)
|
|||
|
|
$core.List<TalkExpect_VideoTypeE> get videoType => $_getList(0);
|
|||
|
|
|
|||
|
|
@$pb.TagNumber(2)
|
|||
|
|
$core.List<TalkExpect_AudioTypeE> get audioType => $_getList(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
|||
|
|
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|