client/dart/initial/check.pbserver.dart

55 lines
1.7 KiB
Dart

// This is a generated file - do not edit.
//
// Generated from check.proto.
// @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 'check.pb.dart' as $0;
import 'check.pbjson.dart';
export 'check.pb.dart';
abstract class CheckServiceBase extends $pb.GeneratedService {
$async.Future<$0.StatusReply> hello($pb.ServerContext ctx, $0.Crc request);
$async.Future<$0.CheckForUpdatesReply> updates(
$pb.ServerContext ctx, $0.CheckForUpdatesRequest request);
$pb.GeneratedMessage createRequest($core.String methodName) {
switch (methodName) {
case 'Hello':
return $0.Crc();
case 'Updates':
return $0.CheckForUpdatesRequest();
default:
throw $core.ArgumentError('Unknown method: $methodName');
}
}
$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx,
$core.String methodName, $pb.GeneratedMessage request) {
switch (methodName) {
case 'Hello':
return hello(ctx, request as $0.Crc);
case 'Updates':
return updates(ctx, request as $0.CheckForUpdatesRequest);
default:
throw $core.ArgumentError('Unknown method: $methodName');
}
}
$core.Map<$core.String, $core.dynamic> get $json => CheckServiceBase$json;
$core.Map<$core.String, $core.Map<$core.String, $core.dynamic>>
get $messageJson => CheckServiceBase$messageJson;
}