267 lines
9.5 KiB
Dart
267 lines
9.5 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from post.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 CommentListReply extends $pb.GeneratedMessage {
|
|
factory CommentListReply({
|
|
$core.Iterable<CommentItem>? list,
|
|
$fixnum.Int64? total,
|
|
}) {
|
|
final result = create();
|
|
if (list != null) result.list.addAll(list);
|
|
if (total != null) result.total = total;
|
|
return result;
|
|
}
|
|
|
|
CommentListReply._();
|
|
|
|
factory CommentListReply.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory CommentListReply.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'CommentListReply',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..pc<CommentItem>(1, _omitFieldNames ? '' : 'list', $pb.PbFieldType.PM,
|
|
subBuilder: CommentItem.create)
|
|
..aInt64(2, _omitFieldNames ? '' : 'total')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
CommentListReply clone() => CommentListReply()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
CommentListReply copyWith(void Function(CommentListReply) updates) =>
|
|
super.copyWith((message) => updates(message as CommentListReply))
|
|
as CommentListReply;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static CommentListReply create() => CommentListReply._();
|
|
@$core.override
|
|
CommentListReply createEmptyInstance() => create();
|
|
static $pb.PbList<CommentListReply> createRepeated() =>
|
|
$pb.PbList<CommentListReply>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static CommentListReply getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<CommentListReply>(create);
|
|
static CommentListReply? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$pb.PbList<CommentItem> get list => $_getList(0);
|
|
|
|
@$pb.TagNumber(2)
|
|
$fixnum.Int64 get total => $_getI64(1);
|
|
@$pb.TagNumber(2)
|
|
set total($fixnum.Int64 value) => $_setInt64(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasTotal() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearTotal() => $_clearField(2);
|
|
}
|
|
|
|
class CommentItem extends $pb.GeneratedMessage {
|
|
factory CommentItem({
|
|
$core.String? identity,
|
|
$core.String? postIdentity,
|
|
$core.String? feedIdentity,
|
|
$core.String? content,
|
|
$core.Iterable<CommentItem>? subComment,
|
|
}) {
|
|
final result = create();
|
|
if (identity != null) result.identity = identity;
|
|
if (postIdentity != null) result.postIdentity = postIdentity;
|
|
if (feedIdentity != null) result.feedIdentity = feedIdentity;
|
|
if (content != null) result.content = content;
|
|
if (subComment != null) result.subComment.addAll(subComment);
|
|
return result;
|
|
}
|
|
|
|
CommentItem._();
|
|
|
|
factory CommentItem.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory CommentItem.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'CommentItem',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'identity')
|
|
..aOS(2, _omitFieldNames ? '' : 'postIdentity')
|
|
..aOS(3, _omitFieldNames ? '' : 'feedIdentity')
|
|
..aOS(4, _omitFieldNames ? '' : 'content')
|
|
..pc<CommentItem>(
|
|
5, _omitFieldNames ? '' : 'subComment', $pb.PbFieldType.PM,
|
|
subBuilder: CommentItem.create)
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
CommentItem clone() => CommentItem()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
CommentItem copyWith(void Function(CommentItem) updates) =>
|
|
super.copyWith((message) => updates(message as CommentItem))
|
|
as CommentItem;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static CommentItem create() => CommentItem._();
|
|
@$core.override
|
|
CommentItem createEmptyInstance() => create();
|
|
static $pb.PbList<CommentItem> createRepeated() => $pb.PbList<CommentItem>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static CommentItem getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<CommentItem>(create);
|
|
static CommentItem? _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 postIdentity => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set postIdentity($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasPostIdentity() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearPostIdentity() => $_clearField(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
$core.String get feedIdentity => $_getSZ(2);
|
|
@$pb.TagNumber(3)
|
|
set feedIdentity($core.String value) => $_setString(2, value);
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasFeedIdentity() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearFeedIdentity() => $_clearField(3);
|
|
|
|
@$pb.TagNumber(4)
|
|
$core.String get content => $_getSZ(3);
|
|
@$pb.TagNumber(4)
|
|
set content($core.String value) => $_setString(3, value);
|
|
@$pb.TagNumber(4)
|
|
$core.bool hasContent() => $_has(3);
|
|
@$pb.TagNumber(4)
|
|
void clearContent() => $_clearField(4);
|
|
|
|
@$pb.TagNumber(5)
|
|
$pb.PbList<CommentItem> get subComment => $_getList(4);
|
|
}
|
|
|
|
class PostActionRequest extends $pb.GeneratedMessage {
|
|
factory PostActionRequest({
|
|
$core.String? actionOp,
|
|
$core.String? actionType,
|
|
$core.String? identity,
|
|
}) {
|
|
final result = create();
|
|
if (actionOp != null) result.actionOp = actionOp;
|
|
if (actionType != null) result.actionType = actionType;
|
|
if (identity != null) result.identity = identity;
|
|
return result;
|
|
}
|
|
|
|
PostActionRequest._();
|
|
|
|
factory PostActionRequest.fromBuffer($core.List<$core.int> data,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromBuffer(data, registry);
|
|
factory PostActionRequest.fromJson($core.String json,
|
|
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
|
create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
|
_omitMessageNames ? '' : 'PostActionRequest',
|
|
package: const $pb.PackageName(_omitMessageNames ? '' : 'feed'),
|
|
createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'actionOp')
|
|
..aOS(2, _omitFieldNames ? '' : 'actionType')
|
|
..aOS(3, _omitFieldNames ? '' : 'identity')
|
|
..hasRequiredFields = false;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostActionRequest clone() => PostActionRequest()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
PostActionRequest copyWith(void Function(PostActionRequest) updates) =>
|
|
super.copyWith((message) => updates(message as PostActionRequest))
|
|
as PostActionRequest;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostActionRequest create() => PostActionRequest._();
|
|
@$core.override
|
|
PostActionRequest createEmptyInstance() => create();
|
|
static $pb.PbList<PostActionRequest> createRepeated() =>
|
|
$pb.PbList<PostActionRequest>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static PostActionRequest getDefault() => _defaultInstance ??=
|
|
$pb.GeneratedMessage.$_defaultFor<PostActionRequest>(create);
|
|
static PostActionRequest? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$core.String get actionOp => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set actionOp($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasActionOp() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearActionOp() => $_clearField(1);
|
|
|
|
@$pb.TagNumber(2)
|
|
$core.String get actionType => $_getSZ(1);
|
|
@$pb.TagNumber(2)
|
|
set actionType($core.String value) => $_setString(1, value);
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasActionType() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearActionType() => $_clearField(2);
|
|
|
|
@$pb.TagNumber(3)
|
|
$core.String get identity => $_getSZ(2);
|
|
@$pb.TagNumber(3)
|
|
set identity($core.String value) => $_setString(2, value);
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasIdentity() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearIdentity() => $_clearField(3);
|
|
}
|
|
|
|
const $core.bool _omitFieldNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
const $core.bool _omitMessageNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_message_names');
|