| abstract class TestServiceBase extends $pb.GeneratedService { |
| $async.Future<SomeReply> aMethod($pb.ServerContext ctx, SomeRequest request); |
| $async.Future<$0.AnotherReply> anotherMethod($pb.ServerContext ctx, $0.EmptyMessage request); |
| |
| $pb.GeneratedMessage createRequest($core.String method) { |
| switch (method) { |
| case 'AMethod': return new SomeRequest(); |
| case 'AnotherMethod': return new $0.EmptyMessage(); |
| default: throw new $core.ArgumentError('Unknown method: $method'); |
| } |
| } |
| |
| $async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, $core.String method, $pb.GeneratedMessage request) { |
| switch (method) { |
| case 'AMethod': return this.aMethod(ctx, request); |
| case 'AnotherMethod': return this.anotherMethod(ctx, request); |
| default: throw new $core.ArgumentError('Unknown method: $method'); |
| } |
| } |
| |
| $core.Map<$core.String, $core.dynamic> get $json => TestServiceBase$json; |
| $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> get $messageJson => TestServiceBase$messageJson; |
| } |
| |