| // This is a generated file - do not edit. |
| // |
| // Generated from test. |
| |
| // @dart = 3.3 |
| |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references |
| // ignore_for_file: constant_identifier_names |
| // ignore_for_file: curly_braces_in_flow_control_structures |
| // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes |
| // ignore_for_file: non_constant_identifier_names |
| |
| import 'dart:async' as $async; |
| import 'dart:core' as $core; |
| |
| import 'package:protobuf/protobuf.dart' as $pb; |
| |
| import 'test.pb.dart' as $0; |
| import 'test.pbjson.dart'; |
| |
| export 'test.pb.dart'; |
| |
| abstract class TestServiceBase extends $pb.GeneratedService { |
| $async.Future<$0.Empty> ping($pb.ServerContext ctx, $0.Empty request); |
| |
| $pb.GeneratedMessage createRequest($core.String methodName) { |
| switch (methodName) { |
| case 'Ping': |
| return $0.Empty(); |
| default: |
| throw $core.ArgumentError('Unknown method: $methodName'); |
| } |
| } |
| |
| $async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, |
| $core.String methodName, $pb.GeneratedMessage request) { |
| switch (methodName) { |
| case 'Ping': |
| return ping(ctx, request as $0.Empty); |
| default: |
| throw $core.ArgumentError('Unknown method: $methodName'); |
| } |
| } |
| |
| $core.Map<$core.String, $core.dynamic> get $json => TestServiceBase$json; |
| $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> |
| get $messageJson => TestServiceBase$messageJson; |
| } |