2021-07-06 09:08:24 +08:00
|
|
|
///
|
|
|
|
// Generated code. Do not modify.
|
|
|
|
// source: ffi_response.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;
|
|
|
|
|
2021-07-07 22:24:26 +08:00
|
|
|
import 'ffi_response.pbenum.dart';
|
|
|
|
|
|
|
|
export 'ffi_response.pbenum.dart';
|
|
|
|
|
2021-07-06 09:08:24 +08:00
|
|
|
class FFIResponse extends $pb.GeneratedMessage {
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FFIResponse', createEmptyInstance: create)
|
2021-07-07 22:24:26 +08:00
|
|
|
..a<$core.List<$core.int>>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'payload', $pb.PbFieldType.OY)
|
|
|
|
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error')
|
|
|
|
..e<FFIStatusCode>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OE, defaultOrMaker: FFIStatusCode.Unknown, valueOf: FFIStatusCode.valueOf, enumValues: FFIStatusCode.values)
|
2021-07-06 09:08:24 +08:00
|
|
|
..hasRequiredFields = false
|
|
|
|
;
|
|
|
|
|
|
|
|
FFIResponse._() : super();
|
|
|
|
factory FFIResponse({
|
|
|
|
$core.List<$core.int>? payload,
|
|
|
|
$core.String? error,
|
2021-07-07 22:24:26 +08:00
|
|
|
FFIStatusCode? code,
|
2021-07-06 09:08:24 +08:00
|
|
|
}) {
|
|
|
|
final _result = create();
|
|
|
|
if (payload != null) {
|
|
|
|
_result.payload = payload;
|
|
|
|
}
|
|
|
|
if (error != null) {
|
|
|
|
_result.error = error;
|
|
|
|
}
|
2021-07-07 22:24:26 +08:00
|
|
|
if (code != null) {
|
|
|
|
_result.code = code;
|
|
|
|
}
|
2021-07-06 09:08:24 +08:00
|
|
|
return _result;
|
|
|
|
}
|
|
|
|
factory FFIResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
|
|
factory FFIResponse.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')
|
|
|
|
FFIResponse clone() => FFIResponse()..mergeFromMessage(this);
|
|
|
|
@$core.Deprecated(
|
|
|
|
'Using this can add significant overhead to your binary. '
|
|
|
|
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
|
|
|
'Will be removed in next major version')
|
|
|
|
FFIResponse copyWith(void Function(FFIResponse) updates) => super.copyWith((message) => updates(message as FFIResponse)) as FFIResponse; // ignore: deprecated_member_use
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static FFIResponse create() => FFIResponse._();
|
|
|
|
FFIResponse createEmptyInstance() => create();
|
|
|
|
static $pb.PbList<FFIResponse> createRepeated() => $pb.PbList<FFIResponse>();
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
|
|
static FFIResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FFIResponse>(create);
|
|
|
|
static FFIResponse? _defaultInstance;
|
|
|
|
|
|
|
|
@$pb.TagNumber(1)
|
2021-07-07 22:24:26 +08:00
|
|
|
$core.List<$core.int> get payload => $_getN(0);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(1)
|
2021-07-07 22:24:26 +08:00
|
|
|
set payload($core.List<$core.int> v) { $_setBytes(0, v); }
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(1)
|
2021-07-07 22:24:26 +08:00
|
|
|
$core.bool hasPayload() => $_has(0);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(1)
|
2021-07-07 22:24:26 +08:00
|
|
|
void clearPayload() => clearField(1);
|
2021-07-06 09:08:24 +08:00
|
|
|
|
|
|
|
@$pb.TagNumber(2)
|
2021-07-07 22:24:26 +08:00
|
|
|
$core.String get error => $_getSZ(1);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(2)
|
2021-07-07 22:24:26 +08:00
|
|
|
set error($core.String v) { $_setString(1, v); }
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(2)
|
2021-07-07 22:24:26 +08:00
|
|
|
$core.bool hasError() => $_has(1);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(2)
|
2021-07-07 22:24:26 +08:00
|
|
|
void clearError() => clearField(2);
|
2021-07-06 09:08:24 +08:00
|
|
|
|
|
|
|
@$pb.TagNumber(3)
|
2021-07-07 22:24:26 +08:00
|
|
|
FFIStatusCode get code => $_getN(2);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(3)
|
2021-07-07 22:24:26 +08:00
|
|
|
set code(FFIStatusCode v) { setField(3, v); }
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(3)
|
2021-07-07 22:24:26 +08:00
|
|
|
$core.bool hasCode() => $_has(2);
|
2021-07-06 09:08:24 +08:00
|
|
|
@$pb.TagNumber(3)
|
2021-07-07 22:24:26 +08:00
|
|
|
void clearCode() => clearField(3);
|
2021-07-06 09:08:24 +08:00
|
|
|
}
|
|
|
|
|