| /// |
| // Generated code. Do not modify. |
| /// |
| // ignore_for_file: non_constant_identifier_names,library_prefixes,unused_import |
| |
| import 'dart:async'; |
| // ignore: UNUSED_SHOWN_NAME |
| import 'dart:core' show int, bool, double, String, List, override; |
| |
| import 'package:protobuf/protobuf.dart' as $pb; |
| |
| class Empty extends $pb.GeneratedMessage { |
| static final $pb.BuilderInfo _i = new $pb.BuilderInfo('Empty') |
| ..hasRequiredFields = false |
| ; |
| |
| Empty() : super(); |
| Empty.fromBuffer(List<int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromBuffer(i, r); |
| Empty.fromJson(String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) : super.fromJson(i, r); |
| Empty clone() => new Empty()..mergeFromMessage(this); |
| Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)); |
| $pb.BuilderInfo get info_ => _i; |
| static Empty create() => new Empty(); |
| static $pb.PbList<Empty> createRepeated() => new $pb.PbList<Empty>(); |
| static Empty getDefault() => _defaultInstance ??= create()..freeze(); |
| static Empty _defaultInstance; |
| static void $checkItem(Empty v) { |
| if (v is! Empty) $pb.checkItemFailed(v, _i.messageName); |
| } |
| } |
| |
| class TestApi { |
| $pb.RpcClient _client; |
| TestApi(this._client); |
| |
| Future<Empty> ping($pb.ClientContext ctx, Empty request) { |
| var emptyResponse = new Empty(); |
| return _client.invoke<Empty>(ctx, 'Test', 'Ping', request, emptyResponse); |
| } |
| } |
| |