| /// |
| // Generated code. Do not modify. |
| // source: test |
| // |
| // @dart = 2.3 |
| // ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type |
| |
| import 'dart:async' as $async; |
| import 'dart:core' as $core; |
| |
| import 'package:protobuf/protobuf.dart' as $pb; |
| |
| class Empty extends $pb.GeneratedMessage { |
| static final $pb.BuilderInfo _i = $pb.BuilderInfo('Empty', createEmptyInstance: create) |
| ..hasRequiredFields = false |
| ; |
| |
| Empty._() : super(); |
| factory Empty() => create(); |
| factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); |
| factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); |
| Empty clone() => Empty()..mergeFromMessage(this); |
| Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)); |
| $pb.BuilderInfo get info_ => _i; |
| @$core.pragma('dart2js:noInline') |
| static Empty create() => Empty._(); |
| 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 TestApi { |
| $pb.RpcClient _client; |
| TestApi(this._client); |
| |
| $async.Future<Empty> ping($pb.ClientContext ctx, Empty request) { |
| var emptyResponse = Empty(); |
| return _client.invoke<Empty>(ctx, 'Test', 'Ping', request, emptyResponse); |
| } |
| } |
| |