/// // Generated code. Do not modify. // source: message.proto // // @dart = 2.12 // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; import 'user.pb.dart' as $0; import 'thread.pb.dart' as $1; class Text extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Text', createEmptyInstance: create) ..aOS( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'content') ..hasRequiredFields = false; Text._() : super(); factory Text({ $core.String? content, }) { final _result = create(); if (content != null) { _result.content = content; } return _result; } factory Text.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Text.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Text clone() => Text()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Text copyWith(void Function(Text) updates) => super.copyWith((message) => updates(message as Text)) as Text; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Text create() => Text._(); Text createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Text getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Text? _defaultInstance; @$pb.TagNumber(1) $core.String get content => $_getSZ(0); @$pb.TagNumber(1) set content($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasContent() => $_has(0); @$pb.TagNumber(1) void clearContent() => clearField(1); } class Image extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Image', createEmptyInstance: create) ..aOS( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mediaId', protoName: 'mediaId') ..aOS( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'picUrl', protoName: 'picUrl') ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'imageUrl', protoName: 'imageUrl') ..hasRequiredFields = false; Image._() : super(); factory Image({ $core.String? mediaId, $core.String? picUrl, $core.String? imageUrl, }) { final _result = create(); if (mediaId != null) { _result.mediaId = mediaId; } if (picUrl != null) { _result.picUrl = picUrl; } if (imageUrl != null) { _result.imageUrl = imageUrl; } return _result; } factory Image.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Image.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Image clone() => Image()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Image copyWith(void Function(Image) updates) => super.copyWith((message) => updates(message as Image)) as Image; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Image create() => Image._(); Image createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Image getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Image? _defaultInstance; @$pb.TagNumber(1) $core.String get mediaId => $_getSZ(0); @$pb.TagNumber(1) set mediaId($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMediaId() => $_has(0); @$pb.TagNumber(1) void clearMediaId() => clearField(1); @$pb.TagNumber(2) $core.String get picUrl => $_getSZ(1); @$pb.TagNumber(2) set picUrl($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasPicUrl() => $_has(1); @$pb.TagNumber(2) void clearPicUrl() => clearField(2); @$pb.TagNumber(3) $core.String get imageUrl => $_getSZ(2); @$pb.TagNumber(3) set imageUrl($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasImageUrl() => $_has(2); @$pb.TagNumber(3) void clearImageUrl() => clearField(3); } class File extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'File', createEmptyInstance: create) ..aOS( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fileUrl', protoName: 'fileUrl') ..aOS( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fileName', protoName: 'fileName') ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fileSize', protoName: 'fileSize') ..hasRequiredFields = false; File._() : super(); factory File({ $core.String? fileUrl, $core.String? fileName, $core.String? fileSize, }) { final _result = create(); if (fileUrl != null) { _result.fileUrl = fileUrl; } if (fileName != null) { _result.fileName = fileName; } if (fileSize != null) { _result.fileSize = fileSize; } return _result; } factory File.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory File.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') File clone() => File()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') File copyWith(void Function(File) updates) => super.copyWith((message) => updates(message as File)) as File; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static File create() => File._(); File createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static File getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static File? _defaultInstance; @$pb.TagNumber(1) $core.String get fileUrl => $_getSZ(0); @$pb.TagNumber(1) set fileUrl($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasFileUrl() => $_has(0); @$pb.TagNumber(1) void clearFileUrl() => clearField(1); @$pb.TagNumber(2) $core.String get fileName => $_getSZ(1); @$pb.TagNumber(2) set fileName($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasFileName() => $_has(1); @$pb.TagNumber(2) void clearFileName() => clearField(2); @$pb.TagNumber(3) $core.String get fileSize => $_getSZ(2); @$pb.TagNumber(3) set fileSize($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasFileSize() => $_has(2); @$pb.TagNumber(3) void clearFileSize() => clearField(3); } class Voice extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Voice', createEmptyInstance: create) ..aOS( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mediaId', protoName: 'mediaId') ..aOS( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'format') ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'voiceUrl', protoName: 'voiceUrl') ..a<$core.int>( 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'length', $pb.PbFieldType.O3) ..aOB( 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'played') ..hasRequiredFields = false; Voice._() : super(); factory Voice({ $core.String? mediaId, $core.String? format, $core.String? voiceUrl, $core.int? length, $core.bool? played, }) { final _result = create(); if (mediaId != null) { _result.mediaId = mediaId; } if (format != null) { _result.format = format; } if (voiceUrl != null) { _result.voiceUrl = voiceUrl; } if (length != null) { _result.length = length; } if (played != null) { _result.played = played; } return _result; } factory Voice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Voice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Voice clone() => Voice()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Voice copyWith(void Function(Voice) updates) => super.copyWith((message) => updates(message as Voice)) as Voice; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Voice create() => Voice._(); Voice createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Voice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Voice? _defaultInstance; @$pb.TagNumber(1) $core.String get mediaId => $_getSZ(0); @$pb.TagNumber(1) set mediaId($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasMediaId() => $_has(0); @$pb.TagNumber(1) void clearMediaId() => clearField(1); @$pb.TagNumber(2) $core.String get format => $_getSZ(1); @$pb.TagNumber(2) set format($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasFormat() => $_has(1); @$pb.TagNumber(2) void clearFormat() => clearField(2); @$pb.TagNumber(3) $core.String get voiceUrl => $_getSZ(2); @$pb.TagNumber(3) set voiceUrl($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasVoiceUrl() => $_has(2); @$pb.TagNumber(3) void clearVoiceUrl() => clearField(3); @$pb.TagNumber(4) $core.int get length => $_getIZ(3); @$pb.TagNumber(4) set length($core.int v) { $_setSignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasLength() => $_has(3); @$pb.TagNumber(4) void clearLength() => clearField(4); @$pb.TagNumber(5) $core.bool get played => $_getBF(4); @$pb.TagNumber(5) set played($core.bool v) { $_setBool(4, v); } @$pb.TagNumber(5) $core.bool hasPlayed() => $_has(4); @$pb.TagNumber(5) void clearPlayed() => clearField(5); } class Video extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Video', createEmptyInstance: create) ..aOS( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mediaId', protoName: 'mediaId') ..aOS( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'thumbMediaId', protoName: 'thumbMediaId') ..aOS( 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'videoOrShortUrl', protoName: 'videoOrShortUrl') ..aOS( 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'videoOrShortThumbUrl', protoName: 'videoOrShortThumbUrl') ..hasRequiredFields = false; Video._() : super(); factory Video({ $core.String? mediaId, $core.String? thumbMediaId, $core.String? videoOrShortUrl, $core.String? videoOrShortThumbUrl, }) { final _result = create(); if (mediaId != null) { _result.mediaId = mediaId; } if (thumbMediaId != null) { _result.thumbMediaId = thumbMediaId; } if (videoOrShortUrl != null) { _result.videoOrShortUrl = videoOrShortUrl; } if (videoOrShortThumbUrl != null) { _result.videoOrShortThumbUrl = videoOrShortThumbUrl; } return _result; } factory Video.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Video.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Video clone() => Video()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Video copyWith(void Function(Video) updates) => super.copyWith((message) => updates(message as Video)) as Video; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Video create() => Video._(); Video createEmptyInstance() => create(); static $pb.PbList