app-starlock/lib/talk/starChart/proto/talk_expect.pb.dart

189 lines
7.7 KiB
Dart
Raw Permalink Normal View History

//
// 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 TalkExpectReq extends $pb.GeneratedMessage {
factory TalkExpectReq({
$core.Iterable<VideoTypeE>? videoType,
$core.Iterable<AudioTypeE>? audioType,
}) {
final $result = create();
if (videoType != null) {
$result.videoType.addAll(videoType);
}
if (audioType != null) {
$result.audioType.addAll(audioType);
}
return $result;
}
TalkExpectReq._() : super();
factory TalkExpectReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory TalkExpectReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkExpectReq', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
..pc<VideoTypeE>(1, _omitFieldNames ? '' : 'VideoType', $pb.PbFieldType.KE, protoName: 'VideoType', valueOf: VideoTypeE.valueOf, enumValues: VideoTypeE.values, defaultEnumValue: VideoTypeE.NONE_V)
..pc<AudioTypeE>(2, _omitFieldNames ? '' : 'AudioType', $pb.PbFieldType.KE, protoName: 'AudioType', valueOf: AudioTypeE.valueOf, enumValues: AudioTypeE.values, defaultEnumValue: 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')
TalkExpectReq clone() => TalkExpectReq()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
TalkExpectReq copyWith(void Function(TalkExpectReq) updates) => super.copyWith((message) => updates(message as TalkExpectReq)) as TalkExpectReq;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TalkExpectReq create() => TalkExpectReq._();
TalkExpectReq createEmptyInstance() => create();
static $pb.PbList<TalkExpectReq> createRepeated() => $pb.PbList<TalkExpectReq>();
@$core.pragma('dart2js:noInline')
static TalkExpectReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkExpectReq>(create);
static TalkExpectReq? _defaultInstance;
/// 如果接收到NONE的话意味着对方关闭了喇叭或者视频显示发送方应该停止发送
/// 支持的类型是数组
@$pb.TagNumber(1)
$core.List<VideoTypeE> get videoType => $_getList(0);
@$pb.TagNumber(2)
$core.List<AudioTypeE> get audioType => $_getList(1);
}
/// 这是音视频提供方的回应,含义为:“马上我就会为你发送这个格式的音视频,你准备好解析器吧”
class TalkExpectResp extends $pb.GeneratedMessage {
factory TalkExpectResp({
$core.int? width,
$core.int? height,
$core.int? rotate,
VideoTypeE? videoType,
AudioTypeE? audioType,
}) {
final $result = create();
if (width != null) {
$result.width = width;
}
if (height != null) {
$result.height = height;
}
if (rotate != null) {
$result.rotate = rotate;
}
if (videoType != null) {
$result.videoType = videoType;
}
if (audioType != null) {
$result.audioType = audioType;
}
return $result;
}
TalkExpectResp._() : super();
factory TalkExpectResp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory TalkExpectResp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkExpectResp', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'Width', $pb.PbFieldType.OU3, protoName: 'Width')
..a<$core.int>(2, _omitFieldNames ? '' : 'Height', $pb.PbFieldType.OU3, protoName: 'Height')
..a<$core.int>(3, _omitFieldNames ? '' : 'Rotate', $pb.PbFieldType.OU3, protoName: 'Rotate')
..e<VideoTypeE>(4, _omitFieldNames ? '' : 'VideoType', $pb.PbFieldType.OE, protoName: 'VideoType', defaultOrMaker: VideoTypeE.NONE_V, valueOf: VideoTypeE.valueOf, enumValues: VideoTypeE.values)
..e<AudioTypeE>(5, _omitFieldNames ? '' : 'AudioType', $pb.PbFieldType.OE, protoName: 'AudioType', defaultOrMaker: AudioTypeE.NONE_A, valueOf: AudioTypeE.valueOf, enumValues: AudioTypeE.values)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
TalkExpectResp clone() => TalkExpectResp()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
TalkExpectResp copyWith(void Function(TalkExpectResp) updates) => super.copyWith((message) => updates(message as TalkExpectResp)) as TalkExpectResp;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TalkExpectResp create() => TalkExpectResp._();
TalkExpectResp createEmptyInstance() => create();
static $pb.PbList<TalkExpectResp> createRepeated() => $pb.PbList<TalkExpectResp>();
@$core.pragma('dart2js:noInline')
static TalkExpectResp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkExpectResp>(create);
static TalkExpectResp? _defaultInstance;
/// 宽度,单位像素
@$pb.TagNumber(1)
$core.int get width => $_getIZ(0);
@$pb.TagNumber(1)
set width($core.int v) { $_setUnsignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasWidth() => $_has(0);
@$pb.TagNumber(1)
void clearWidth() => clearField(1);
/// 高度,单位像素
@$pb.TagNumber(2)
$core.int get height => $_getIZ(1);
@$pb.TagNumber(2)
set height($core.int v) { $_setUnsignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasHeight() => $_has(1);
@$pb.TagNumber(2)
void clearHeight() => clearField(2);
/// 旋转角度 默认0
@$pb.TagNumber(3)
$core.int get rotate => $_getIZ(2);
@$pb.TagNumber(3)
set rotate($core.int v) { $_setUnsignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasRotate() => $_has(2);
@$pb.TagNumber(3)
void clearRotate() => clearField(3);
/// 即将发送的音视频格式
@$pb.TagNumber(4)
VideoTypeE get videoType => $_getN(3);
@$pb.TagNumber(4)
set videoType(VideoTypeE v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasVideoType() => $_has(3);
@$pb.TagNumber(4)
void clearVideoType() => clearField(4);
@$pb.TagNumber(5)
AudioTypeE get audioType => $_getN(4);
@$pb.TagNumber(5)
set audioType(AudioTypeE v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasAudioType() => $_has(4);
@$pb.TagNumber(5)
void clearAudioType() => clearField(5);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');