750 lines
26 KiB
Dart
750 lines
26 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from blocks.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:fixnum/fixnum.dart' as $fixnum;
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
|
|
|
class FetchRequest extends $pb.GeneratedMessage {
|
|
factory FetchRequest({
|
|
$fixnum.Int64? pageNo,
|
|
$fixnum.Int64? pageSize,
|
|
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? params,
|
|
}) {
|
|
final result = create();
|
|
if (pageNo != null) result.pageNo = pageNo;
|
|
if (pageSize != null) result.pageSize = pageSize;
|
|
if (params != null) result.params.addEntries(params);
|
|
return result;
|
|
}
|
|
|
|
FetchRequest._();
|
|
|
|
factory FetchRequest.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory FetchRequest.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'FetchRequest',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aInt64(1, _omitFieldNames ? '' : 'pageNo')
|
|
..aInt64(2, _omitFieldNames ? '' : 'pageSize')
|
|
..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'params',
|
|
entryClassName: 'FetchRequest.ParamsEntry',
|
|
keyFieldType: $pb.PbFieldType.OS,
|
|
valueFieldType: $pb.PbFieldType.OS,
|
|
packageName: const $pb.PackageName('feed'))
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
FetchRequest clone() => FetchRequest()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
FetchRequest copyWith(void Function(FetchRequest) updates) =>
|
|
super.copyWith((message) => updates(message as FetchRequest))
|
|
as FetchRequest;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static FetchRequest create() => FetchRequest._();
|
|
@$core.override
|
|
FetchRequest createEmptyInstance() => create();
|
|
static $pb.PbList<FetchRequest> createRepeated() =>
|
|
$pb.PbList<FetchRequest>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static FetchRequest getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<FetchRequest>(create);
|
|
static FetchRequest? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$fixnum.Int64 get pageNo => $_getI64(0);
|
|
@$pb.TagNumber(1)
|
|
set pageNo($fixnum.Int64 value) => $_setInt64(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasPageNo() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearPageNo() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$fixnum.Int64 get pageSize => $_getI64(1);
|
|
@$pb.TagNumber(2)
|
|
set pageSize($fixnum.Int64 value) => $_setInt64(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasPageSize() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearPageSize() => $_clearField(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
$pb.PbMap<$core.String, $core.String> get params => $_getMap(2);
|
|
}
|
|
|
|
class IdentRequest extends $pb.GeneratedMessage {
|
|
factory IdentRequest({
|
|
$fixnum.Int64? id,
|
|
$core.String? identity,
|
|
}) {
|
|
final result = create();
|
|
if (id != null) result.id = id;
|
|
if (identity != null) result.identity = identity;
|
|
return result;
|
|
}
|
|
|
|
IdentRequest._();
|
|
|
|
factory IdentRequest.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory IdentRequest.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'IdentRequest',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aInt64(1, _omitFieldNames ? '' : 'id')
|
|
..aOS(2, _omitFieldNames ? '' : 'identity')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
IdentRequest clone() => IdentRequest()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
IdentRequest copyWith(void Function(IdentRequest) updates) =>
|
|
super.copyWith((message) => updates(message as IdentRequest))
|
|
as IdentRequest;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static IdentRequest create() => IdentRequest._();
|
|
@$core.override
|
|
IdentRequest createEmptyInstance() => create();
|
|
static $pb.PbList<IdentRequest> createRepeated() =>
|
|
$pb.PbList<IdentRequest>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static IdentRequest getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<IdentRequest>(create);
|
|
static IdentRequest? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$fixnum.Int64 get id => $_getI64(0);
|
|
@$pb.TagNumber(1)
|
|
set id($fixnum.Int64 value) => $_setInt64(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasId() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearId() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$core.String get identity => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set identity($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasIdentity() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearIdentity() => $_clearField(2);
|
|
}
|
|
|
|
class VersionRequest extends $pb.GeneratedMessage {
|
|
factory VersionRequest({
|
|
$fixnum.Int64? version,
|
|
}) {
|
|
final result = create();
|
|
if (version != null) result.version = version;
|
|
return result;
|
|
}
|
|
|
|
VersionRequest._();
|
|
|
|
factory VersionRequest.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory VersionRequest.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'VersionRequest',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aInt64(1, _omitFieldNames ? '' : 'version')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
VersionRequest clone() => VersionRequest()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
VersionRequest copyWith(void Function(VersionRequest) updates) =>
|
|
super.copyWith((message) => updates(message as VersionRequest))
|
|
as VersionRequest;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static VersionRequest create() => VersionRequest._();
|
|
@$core.override
|
|
VersionRequest createEmptyInstance() => create();
|
|
static $pb.PbList<VersionRequest> createRepeated() =>
|
|
$pb.PbList<VersionRequest>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static VersionRequest getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<VersionRequest>(create);
|
|
static VersionRequest? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$fixnum.Int64 get version => $_getI64(0);
|
|
@$pb.TagNumber(1)
|
|
set version($fixnum.Int64 value) => $_setInt64(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasVersion() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearVersion() => $_clearField(1);
|
|
}
|
|
|
|
class SearchRequest extends $pb.GeneratedMessage {
|
|
factory SearchRequest({
|
|
$core.String? keyword,
|
|
}) {
|
|
final result = create();
|
|
if (keyword != null) result.keyword = keyword;
|
|
return result;
|
|
}
|
|
|
|
SearchRequest._();
|
|
|
|
factory SearchRequest.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory SearchRequest.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'SearchRequest',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'keyword')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
SearchRequest clone() => SearchRequest()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
SearchRequest copyWith(void Function(SearchRequest) updates) =>
|
|
super.copyWith((message) => updates(message as SearchRequest))
|
|
as SearchRequest;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static SearchRequest create() => SearchRequest._();
|
|
@$core.override
|
|
SearchRequest createEmptyInstance() => create();
|
|
static $pb.PbList<SearchRequest> createRepeated() =>
|
|
$pb.PbList<SearchRequest>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static SearchRequest getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<SearchRequest>(create);
|
|
static SearchRequest? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get keyword => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set keyword($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasKeyword() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearKeyword() => $_clearField(1);
|
|
}
|
|
|
|
class StatusReply extends $pb.GeneratedMessage {
|
|
factory StatusReply({
|
|
$core.String? data,
|
|
$fixnum.Int64? timeseq,
|
|
}) {
|
|
final result = create();
|
|
if (data != null) result.data = data;
|
|
if (timeseq != null) result.timeseq = timeseq;
|
|
return result;
|
|
}
|
|
|
|
StatusReply._();
|
|
|
|
factory StatusReply.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory StatusReply.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'StatusReply',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'data')
|
|
..aInt64(2, _omitFieldNames ? '' : 'timeseq')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
StatusReply clone() => StatusReply()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
StatusReply copyWith(void Function(StatusReply) updates) =>
|
|
super.copyWith((message) => updates(message as StatusReply))
|
|
as StatusReply;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static StatusReply create() => StatusReply._();
|
|
@$core.override
|
|
StatusReply createEmptyInstance() => create();
|
|
static $pb.PbList<StatusReply> createRepeated() => $pb.PbList<StatusReply>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static StatusReply getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<StatusReply>(create);
|
|
static StatusReply? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get data => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set data($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasData() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearData() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$fixnum.Int64 get timeseq => $_getI64(1);
|
|
@$pb.TagNumber(2)
|
|
set timeseq($fixnum.Int64 value) => $_setInt64(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasTimeseq() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearTimeseq() => $_clearField(2);
|
|
}
|
|
|
|
class Empty extends $pb.GeneratedMessage {
|
|
factory Empty() => create();
|
|
|
|
Empty._();
|
|
|
|
factory Empty.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory Empty.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'Empty',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
Empty clone() => Empty()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
Empty copyWith(void Function(Empty) updates) =>
|
|
super.copyWith((message) => updates(message as Empty)) as Empty;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static Empty create() => Empty._();
|
|
@$core.override
|
|
Empty createEmptyInstance() => create();
|
|
static $pb.PbList<Empty> createRepeated() => $pb.PbList<Empty>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static Empty getDefault() =>
|
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
|
|
static Empty? _defaultInstance;
|
|
}
|
|
|
|
/// 推文列表
|
|
class PostListReply extends $pb.GeneratedMessage {
|
|
factory PostListReply({
|
|
$core.Iterable<PostItem>? list,
|
|
$fixnum.Int64? cnt,
|
|
}) {
|
|
final result = create();
|
|
if (list != null) result.list.addAll(list);
|
|
if (cnt != null) result.cnt = cnt;
|
|
return result;
|
|
}
|
|
|
|
PostListReply._();
|
|
|
|
factory PostListReply.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory PostListReply.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'PostListReply',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..pc<PostItem>(1, _omitFieldNames ? '' : 'list', $pb.PbFieldType.PM,
|
|
subBuilder: PostItem.create)
|
|
..aInt64(2, _omitFieldNames ? '' : 'cnt')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostListReply clone() => PostListReply()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostListReply copyWith(void Function(PostListReply) updates) =>
|
|
super.copyWith((message) => updates(message as PostListReply))
|
|
as PostListReply;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostListReply create() => PostListReply._();
|
|
@$core.override
|
|
PostListReply createEmptyInstance() => create();
|
|
static $pb.PbList<PostListReply> createRepeated() =>
|
|
$pb.PbList<PostListReply>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostListReply getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<PostListReply>(create);
|
|
static PostListReply? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$pb.PbList<PostItem> get list => $_getList(0);
|
|
|
|
@$pb.TagNumber(2)
|
|
$fixnum.Int64 get cnt => $_getI64(1);
|
|
@$pb.TagNumber(2)
|
|
set cnt($fixnum.Int64 value) => $_setInt64(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasCnt() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearCnt() => $_clearField(2);
|
|
}
|
|
|
|
/// 推文
|
|
class PostItem extends $pb.GeneratedMessage {
|
|
factory PostItem({
|
|
$core.String? identity,
|
|
$core.String? content,
|
|
$fixnum.Int64? feedId,
|
|
$core.String? feedIdentity,
|
|
$core.bool? isOpen,
|
|
$fixnum.Int64? cntUnlike,
|
|
$fixnum.Int64? cntComment,
|
|
$fixnum.Int64? cntLike,
|
|
$core.Iterable<AttachItem>? attachs,
|
|
$core.Iterable<TagItem>? tags,
|
|
}) {
|
|
final result = create();
|
|
if (identity != null) result.identity = identity;
|
|
if (content != null) result.content = content;
|
|
if (feedId != null) result.feedId = feedId;
|
|
if (feedIdentity != null) result.feedIdentity = feedIdentity;
|
|
if (isOpen != null) result.isOpen = isOpen;
|
|
if (cntUnlike != null) result.cntUnlike = cntUnlike;
|
|
if (cntComment != null) result.cntComment = cntComment;
|
|
if (cntLike != null) result.cntLike = cntLike;
|
|
if (attachs != null) result.attachs.addAll(attachs);
|
|
if (tags != null) result.tags.addAll(tags);
|
|
return result;
|
|
}
|
|
|
|
PostItem._();
|
|
|
|
factory PostItem.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory PostItem.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'PostItem',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'identity')
|
|
..aOS(2, _omitFieldNames ? '' : 'content')
|
|
..aInt64(3, _omitFieldNames ? '' : 'feedId')
|
|
..aOS(4, _omitFieldNames ? '' : 'feedIdentity')
|
|
..aOB(5, _omitFieldNames ? '' : 'isOpen')
|
|
..aInt64(6, _omitFieldNames ? '' : 'cntUnlike')
|
|
..aInt64(7, _omitFieldNames ? '' : 'cntComment')
|
|
..aInt64(8, _omitFieldNames ? '' : 'cntLike')
|
|
..pc<AttachItem>(9, _omitFieldNames ? '' : 'attachs', $pb.PbFieldType.PM,
|
|
subBuilder: AttachItem.create)
|
|
..pc<TagItem>(10, _omitFieldNames ? '' : 'tags', $pb.PbFieldType.PM,
|
|
subBuilder: TagItem.create)
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostItem clone() => PostItem()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostItem copyWith(void Function(PostItem) updates) =>
|
|
super.copyWith((message) => updates(message as PostItem)) as PostItem;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostItem create() => PostItem._();
|
|
@$core.override
|
|
PostItem createEmptyInstance() => create();
|
|
static $pb.PbList<PostItem> createRepeated() => $pb.PbList<PostItem>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostItem getDefault() =>
|
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PostItem>(create);
|
|
static PostItem? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get identity => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set identity($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasIdentity() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearIdentity() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$core.String get content => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set content($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasContent() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearContent() => $_clearField(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
$fixnum.Int64 get feedId => $_getI64(2);
|
|
@$pb.TagNumber(3)
|
|
set feedId($fixnum.Int64 value) => $_setInt64(2, value);
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasFeedId() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearFeedId() => $_clearField(3);
|
|
|
|
@$pb.TagNumber(4)
|
|
$core.String get feedIdentity => $_getSZ(3);
|
|
@$pb.TagNumber(4)
|
|
set feedIdentity($core.String value) => $_setString(3, value);
|
|
@$pb.TagNumber(4)
|
|
$core.bool hasFeedIdentity() => $_has(3);
|
|
@$pb.TagNumber(4)
|
|
void clearFeedIdentity() => $_clearField(4);
|
|
|
|
@$pb.TagNumber(5)
|
|
$core.bool get isOpen => $_getBF(4);
|
|
@$pb.TagNumber(5)
|
|
set isOpen($core.bool value) => $_setBool(4, value);
|
|
@$pb.TagNumber(5)
|
|
$core.bool hasIsOpen() => $_has(4);
|
|
@$pb.TagNumber(5)
|
|
void clearIsOpen() => $_clearField(5);
|
|
|
|
@$pb.TagNumber(6)
|
|
$fixnum.Int64 get cntUnlike => $_getI64(5);
|
|
@$pb.TagNumber(6)
|
|
set cntUnlike($fixnum.Int64 value) => $_setInt64(5, value);
|
|
@$pb.TagNumber(6)
|
|
$core.bool hasCntUnlike() => $_has(5);
|
|
@$pb.TagNumber(6)
|
|
void clearCntUnlike() => $_clearField(6);
|
|
|
|
@$pb.TagNumber(7)
|
|
$fixnum.Int64 get cntComment => $_getI64(6);
|
|
@$pb.TagNumber(7)
|
|
set cntComment($fixnum.Int64 value) => $_setInt64(6, value);
|
|
@$pb.TagNumber(7)
|
|
$core.bool hasCntComment() => $_has(6);
|
|
@$pb.TagNumber(7)
|
|
void clearCntComment() => $_clearField(7);
|
|
|
|
@$pb.TagNumber(8)
|
|
$fixnum.Int64 get cntLike => $_getI64(7);
|
|
@$pb.TagNumber(8)
|
|
set cntLike($fixnum.Int64 value) => $_setInt64(7, value);
|
|
@$pb.TagNumber(8)
|
|
$core.bool hasCntLike() => $_has(7);
|
|
@$pb.TagNumber(8)
|
|
void clearCntLike() => $_clearField(8);
|
|
|
|
@$pb.TagNumber(9)
|
|
$pb.PbList<AttachItem> get attachs => $_getList(8);
|
|
|
|
@$pb.TagNumber(10)
|
|
$pb.PbList<TagItem> get tags => $_getList(9);
|
|
}
|
|
|
|
/// 附件
|
|
class AttachItem extends $pb.GeneratedMessage {
|
|
factory AttachItem({
|
|
$core.String? identity,
|
|
$core.String? attachType,
|
|
$core.String? url,
|
|
}) {
|
|
final result = create();
|
|
if (identity != null) result.identity = identity;
|
|
if (attachType != null) result.attachType = attachType;
|
|
if (url != null) result.url = url;
|
|
return result;
|
|
}
|
|
|
|
AttachItem._();
|
|
|
|
factory AttachItem.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory AttachItem.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'AttachItem',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'identity')
|
|
..aOS(2, _omitFieldNames ? '' : 'attachType')
|
|
..aOS(3, _omitFieldNames ? '' : 'url')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AttachItem clone() => AttachItem()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AttachItem copyWith(void Function(AttachItem) updates) =>
|
|
super.copyWith((message) => updates(message as AttachItem)) as AttachItem;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static AttachItem create() => AttachItem._();
|
|
@$core.override
|
|
AttachItem createEmptyInstance() => create();
|
|
static $pb.PbList<AttachItem> createRepeated() => $pb.PbList<AttachItem>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static AttachItem getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<AttachItem>(create);
|
|
static AttachItem? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get identity => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set identity($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasIdentity() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearIdentity() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$core.String get attachType => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set attachType($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasAttachType() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearAttachType() => $_clearField(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
$core.String get url => $_getSZ(2);
|
|
@$pb.TagNumber(3)
|
|
set url($core.String value) => $_setString(2, value);
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasUrl() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearUrl() => $_clearField(3);
|
|
}
|
|
|
|
/// 标签
|
|
class TagItem extends $pb.GeneratedMessage {
|
|
factory TagItem({
|
|
$core.String? key,
|
|
$core.String? content,
|
|
}) {
|
|
final result = create();
|
|
if (key != null) result.key = key;
|
|
if (content != null) result.content = content;
|
|
return result;
|
|
}
|
|
|
|
TagItem._();
|
|
|
|
factory TagItem.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory TagItem.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'TagItem',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'key')
|
|
..aOS(2, _omitFieldNames ? '' : 'content')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
TagItem clone() => TagItem()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
TagItem copyWith(void Function(TagItem) updates) =>
|
|
super.copyWith((message) => updates(message as TagItem)) as TagItem;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static TagItem create() => TagItem._();
|
|
@$core.override
|
|
TagItem createEmptyInstance() => create();
|
|
static $pb.PbList<TagItem> createRepeated() => $pb.PbList<TagItem>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static TagItem getDefault() =>
|
|
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TagItem>(create);
|
|
static TagItem? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get key => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set key($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasKey() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearKey() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$core.String get content => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set content($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasContent() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearContent() => $_clearField(2);
|
|
}
|
|
|
|
const $core.bool _omitFieldNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
const $core.bool _omitMessageNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_message_names');
|