80 lines
3.1 KiB
Dart
80 lines
3.1 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: accounts/accounts_v1.proto
|
|
//
|
|
// @dart = 2.12
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// ignore_for_file: constant_identifier_names, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
|
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
|
|
|
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 'accounts_v1.pb.dart' as $3;
|
|
|
|
export 'accounts_v1.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('accounts.Accounts')
|
|
class AccountsClient extends $grpc.Client {
|
|
static final _$signUp = $grpc.ClientMethod<$3.AccountWithPassword, $3.AccountFullWithToken>(
|
|
'/accounts.Accounts/SignUp',
|
|
($3.AccountWithPassword value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $3.AccountFullWithToken.fromBuffer(value));
|
|
static final _$signIn = $grpc.ClientMethod<$3.AccountWithPassword, $3.AccountFullWithToken>(
|
|
'/accounts.Accounts/SignIn',
|
|
($3.AccountWithPassword value) => value.writeToBuffer(),
|
|
($core.List<$core.int> value) => $3.AccountFullWithToken.fromBuffer(value));
|
|
|
|
AccountsClient($grpc.ClientChannel channel,
|
|
{$grpc.CallOptions? options,
|
|
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
|
|
: super(channel, options: options,
|
|
interceptors: interceptors);
|
|
|
|
$grpc.ResponseFuture<$3.AccountFullWithToken> signUp($3.AccountWithPassword request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$signUp, request, options: options);
|
|
}
|
|
|
|
$grpc.ResponseFuture<$3.AccountFullWithToken> signIn($3.AccountWithPassword request, {$grpc.CallOptions? options}) {
|
|
return $createUnaryCall(_$signIn, request, options: options);
|
|
}
|
|
}
|
|
|
|
@$pb.GrpcServiceName('accounts.Accounts')
|
|
abstract class AccountsServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'accounts.Accounts';
|
|
|
|
AccountsServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$3.AccountWithPassword, $3.AccountFullWithToken>(
|
|
'SignUp',
|
|
signUp_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $3.AccountWithPassword.fromBuffer(value),
|
|
($3.AccountFullWithToken value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$3.AccountWithPassword, $3.AccountFullWithToken>(
|
|
'SignIn',
|
|
signIn_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $3.AccountWithPassword.fromBuffer(value),
|
|
($3.AccountFullWithToken value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$3.AccountFullWithToken> signUp_Pre($grpc.ServiceCall call, $async.Future<$3.AccountWithPassword> request) async {
|
|
return signUp(call, await request);
|
|
}
|
|
|
|
$async.Future<$3.AccountFullWithToken> signIn_Pre($grpc.ServiceCall call, $async.Future<$3.AccountWithPassword> request) async {
|
|
return signIn(call, await request);
|
|
}
|
|
|
|
$async.Future<$3.AccountFullWithToken> signUp($grpc.ServiceCall call, $3.AccountWithPassword request);
|
|
$async.Future<$3.AccountFullWithToken> signIn($grpc.ServiceCall call, $3.AccountWithPassword request);
|
|
}
|