130 lines
4.1 KiB
Dart
130 lines
4.1 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:grpc/service_api.dart' as $grpc;
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
import 'check.pb.dart' as $0;
|
|
|
|
export 'check.pb.dart';
|
|
|
|
/// initial-检测是否有新版或新的配置
|
|
@$pb.GrpcServiceName('initial.Check')
|
|
class CheckClient extends $grpc.Client {
|
|
/// The hostname for this service.
|
|
static const $core.String defaultHost = '';
|
|
|
|
/// OAuth scopes needed for the client.
|
|
static const $core.List<$core.String> oauthScopes = [
|
|
'',
|
|
];
|
|
|
|
CheckClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// HELLO
|
|
$grpc.ResponseFuture<$0.StatusReply> hello(
|
|
$0.Crc request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$hello, request, options: options);
|
|
}
|
|
|
|
/// 获取应用的相关配置信息
|
|
$grpc.ResponseFuture<$0.ConfigReply> config(
|
|
$0.ConfigRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$config, request, options: options);
|
|
}
|
|
|
|
/// 检查更新
|
|
$grpc.ResponseFuture<$0.CheckForUpdatesReply> updates(
|
|
$0.CheckForUpdatesRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$updates, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$hello = $grpc.ClientMethod<$0.Crc, $0.StatusReply>(
|
|
'/initial.Check/Hello',
|
|
($0.Crc value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$config = $grpc.ClientMethod<$0.ConfigRequest, $0.ConfigReply>(
|
|
'/initial.Check/Config',
|
|
($0.ConfigRequest value) => value.writeToBuffer(),
|
|
$0.ConfigReply.fromBuffer);
|
|
static final _$updates =
|
|
$grpc.ClientMethod<$0.CheckForUpdatesRequest, $0.CheckForUpdatesReply>(
|
|
'/initial.Check/Updates',
|
|
($0.CheckForUpdatesRequest value) => value.writeToBuffer(),
|
|
$0.CheckForUpdatesReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('initial.Check')
|
|
abstract class CheckServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'initial.Check';
|
|
|
|
CheckServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.Crc, $0.StatusReply>(
|
|
'Hello',
|
|
hello_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Crc.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.ConfigRequest, $0.ConfigReply>(
|
|
'Config',
|
|
config_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.ConfigRequest.fromBuffer(value),
|
|
($0.ConfigReply value) => value.writeToBuffer()));
|
|
$addMethod(
|
|
$grpc.ServiceMethod<$0.CheckForUpdatesRequest, $0.CheckForUpdatesReply>(
|
|
'Updates',
|
|
updates_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.CheckForUpdatesRequest.fromBuffer(value),
|
|
($0.CheckForUpdatesReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> hello_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Crc> $request) async {
|
|
return hello($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> hello($grpc.ServiceCall call, $0.Crc request);
|
|
|
|
$async.Future<$0.ConfigReply> config_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.ConfigRequest> $request) async {
|
|
return config($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ConfigReply> config(
|
|
$grpc.ServiceCall call, $0.ConfigRequest request);
|
|
|
|
$async.Future<$0.CheckForUpdatesReply> updates_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.CheckForUpdatesRequest> $request) async {
|
|
return updates($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CheckForUpdatesReply> updates(
|
|
$grpc.ServiceCall call, $0.CheckForUpdatesRequest request);
|
|
}
|