126 lines
3.8 KiB
Dart
126 lines
3.8 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from data.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 'data.pb.dart' as $0;
|
|
|
|
export 'data.pb.dart';
|
|
|
|
/// initial-数据
|
|
@$pb.GrpcServiceName('initial.Data')
|
|
class DataClient 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 = [
|
|
'',
|
|
];
|
|
|
|
DataClient(super.channel, {super.options, super.interceptors});
|
|
|
|
$grpc.ResponseFuture<$0.CountryReply> country(
|
|
$0.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$country, request, options: options);
|
|
}
|
|
|
|
/// 系统区域数据,默认级别:市
|
|
$grpc.ResponseFuture<$0.AreasReply> areas(
|
|
$0.AreasRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$areas, request, options: options);
|
|
}
|
|
|
|
/// 系统数据
|
|
$grpc.ResponseFuture<$0.DatasReply> datas(
|
|
$0.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$datas, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$country = $grpc.ClientMethod<$0.Empty, $0.CountryReply>(
|
|
'/initial.Data/Country',
|
|
($0.Empty value) => value.writeToBuffer(),
|
|
$0.CountryReply.fromBuffer);
|
|
static final _$areas = $grpc.ClientMethod<$0.AreasRequest, $0.AreasReply>(
|
|
'/initial.Data/Areas',
|
|
($0.AreasRequest value) => value.writeToBuffer(),
|
|
$0.AreasReply.fromBuffer);
|
|
static final _$datas = $grpc.ClientMethod<$0.Empty, $0.DatasReply>(
|
|
'/initial.Data/Datas',
|
|
($0.Empty value) => value.writeToBuffer(),
|
|
$0.DatasReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('initial.Data')
|
|
abstract class DataServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'initial.Data';
|
|
|
|
DataServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.Empty, $0.CountryReply>(
|
|
'Country',
|
|
country_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
|
($0.CountryReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.AreasRequest, $0.AreasReply>(
|
|
'Areas',
|
|
areas_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.AreasRequest.fromBuffer(value),
|
|
($0.AreasReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.Empty, $0.DatasReply>(
|
|
'Datas',
|
|
datas_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
|
($0.DatasReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.CountryReply> country_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
|
|
return country($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CountryReply> country(
|
|
$grpc.ServiceCall call, $0.Empty request);
|
|
|
|
$async.Future<$0.AreasReply> areas_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.AreasRequest> $request) async {
|
|
return areas($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.AreasReply> areas(
|
|
$grpc.ServiceCall call, $0.AreasRequest request);
|
|
|
|
$async.Future<$0.DatasReply> datas_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
|
|
return datas($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.DatasReply> datas($grpc.ServiceCall call, $0.Empty request);
|
|
}
|