85 lines
3.2 KiB
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Generated code. Do not modify.
// source: generic.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;
class GenericResp extends $pb.GeneratedMessage {
factory GenericResp({
$core.int? code,
$core.String? message,
}) {
final $result = create();
if (code != null) {
$result.code = code;
}
if (message != null) {
$result.message = message;
}
return $result;
}
GenericResp._() : super();
factory GenericResp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GenericResp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GenericResp', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
..a<$core.int>(2, _omitFieldNames ? '' : 'Code', $pb.PbFieldType.O3, protoName: 'Code')
..aOS(4, _omitFieldNames ? '' : 'message')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GenericResp clone() => GenericResp()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GenericResp copyWith(void Function(GenericResp) updates) => super.copyWith((message) => updates(message as GenericResp)) as GenericResp;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static GenericResp create() => GenericResp._();
GenericResp createEmptyInstance() => create();
static $pb.PbList<GenericResp> createRepeated() => $pb.PbList<GenericResp>();
@$core.pragma('dart2js:noInline')
static GenericResp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GenericResp>(create);
static GenericResp? _defaultInstance;
/// 代码用于区分特定错误无错误为0
@$pb.TagNumber(2)
$core.int get code => $_getIZ(0);
@$pb.TagNumber(2)
set code($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(2)
$core.bool hasCode() => $_has(0);
@$pb.TagNumber(2)
void clearCode() => clearField(2);
/// 消息成功为ok失败为错误消息
@$pb.TagNumber(4)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(4)
set message($core.String v) { $_setString(1, v); }
@$pb.TagNumber(4)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(4)
void clearMessage() => clearField(4);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');