101 lines
3.0 KiB
Dart
101 lines
3.0 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from space.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 'blocks.pb.dart' as $0;
|
|
import 'space.pb.dart' as $1;
|
|
|
|
export 'space.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('cloud.Space')
|
|
class SpaceClient 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 = [
|
|
'',
|
|
];
|
|
|
|
SpaceClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 获取空间数据
|
|
$grpc.ResponseFuture<$1.CloudSpace> get(
|
|
$0.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
/// 获取空间数据
|
|
$grpc.ResponseFuture<$1.CloudSpace> getByKeyIdentifier(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$getByKeyIdentifier, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$get = $grpc.ClientMethod<$0.Empty, $1.CloudSpace>(
|
|
'/cloud.Space/Get',
|
|
($0.Empty value) => value.writeToBuffer(),
|
|
$1.CloudSpace.fromBuffer);
|
|
static final _$getByKeyIdentifier =
|
|
$grpc.ClientMethod<$0.IdentRequest, $1.CloudSpace>(
|
|
'/cloud.Space/GetByKeyIdentifier',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$1.CloudSpace.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('cloud.Space')
|
|
abstract class SpaceServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'cloud.Space';
|
|
|
|
SpaceServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.Empty, $1.CloudSpace>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
|
($1.CloudSpace value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $1.CloudSpace>(
|
|
'GetByKeyIdentifier',
|
|
getByKeyIdentifier_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($1.CloudSpace value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$1.CloudSpace> get_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.CloudSpace> get($grpc.ServiceCall call, $0.Empty request);
|
|
|
|
$async.Future<$1.CloudSpace> getByKeyIdentifier_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return getByKeyIdentifier($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.CloudSpace> getByKeyIdentifier(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
}
|