Skip to content

Commit

Permalink
Trinsic Authenticator: Backend Spike, iOS + Android apps (#3025) (#1582)
Browse files Browse the repository at this point in the history
Co-authored-by: geel9 <[email protected]>
Co-authored-by: mewmba <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2023
1 parent 622ae5c commit 6f291c6
Show file tree
Hide file tree
Showing 17 changed files with 2,105 additions and 2,043 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,73 +15,73 @@ import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;

import 'file-management.pb.dart' as $0;
import 'file-management.pb.dart' as $7;

export 'file-management.pb.dart';

@$pb.GrpcServiceName('services.filemanagement.v1.FileManagement')
class FileManagementClient extends $grpc.Client {
static final _$uploadFile =
$grpc.ClientMethod<$0.UploadFileRequest, $0.UploadFileResponse>(
$grpc.ClientMethod<$7.UploadFileRequest, $7.UploadFileResponse>(
'/services.filemanagement.v1.FileManagement/UploadFile',
($0.UploadFileRequest value) => value.writeToBuffer(),
($7.UploadFileRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$0.UploadFileResponse.fromBuffer(value));
$7.UploadFileResponse.fromBuffer(value));
static final _$getFile =
$grpc.ClientMethod<$0.GetFileRequest, $0.GetFileResponse>(
$grpc.ClientMethod<$7.GetFileRequest, $7.GetFileResponse>(
'/services.filemanagement.v1.FileManagement/GetFile',
($0.GetFileRequest value) => value.writeToBuffer(),
($7.GetFileRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$0.GetFileResponse.fromBuffer(value));
$7.GetFileResponse.fromBuffer(value));
static final _$deleteFile =
$grpc.ClientMethod<$0.DeleteFileRequest, $0.DeleteFileResponse>(
$grpc.ClientMethod<$7.DeleteFileRequest, $7.DeleteFileResponse>(
'/services.filemanagement.v1.FileManagement/DeleteFile',
($0.DeleteFileRequest value) => value.writeToBuffer(),
($7.DeleteFileRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$0.DeleteFileResponse.fromBuffer(value));
$7.DeleteFileResponse.fromBuffer(value));
static final _$listFiles =
$grpc.ClientMethod<$0.ListFilesRequest, $0.ListFilesResponse>(
$grpc.ClientMethod<$7.ListFilesRequest, $7.ListFilesResponse>(
'/services.filemanagement.v1.FileManagement/ListFiles',
($0.ListFilesRequest value) => value.writeToBuffer(),
($7.ListFilesRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$0.ListFilesResponse.fromBuffer(value));
$7.ListFilesResponse.fromBuffer(value));
static final _$getStorageStats =
$grpc.ClientMethod<$0.GetStorageStatsRequest, $0.GetStorageStatsResponse>(
$grpc.ClientMethod<$7.GetStorageStatsRequest, $7.GetStorageStatsResponse>(
'/services.filemanagement.v1.FileManagement/GetStorageStats',
($0.GetStorageStatsRequest value) => value.writeToBuffer(),
($7.GetStorageStatsRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$0.GetStorageStatsResponse.fromBuffer(value));
$7.GetStorageStatsResponse.fromBuffer(value));

FileManagementClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options, interceptors: interceptors);

$grpc.ResponseFuture<$0.UploadFileResponse> uploadFile(
$0.UploadFileRequest request,
$grpc.ResponseFuture<$7.UploadFileResponse> uploadFile(
$7.UploadFileRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$uploadFile, request, options: options);
}

$grpc.ResponseFuture<$0.GetFileResponse> getFile($0.GetFileRequest request,
$grpc.ResponseFuture<$7.GetFileResponse> getFile($7.GetFileRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$getFile, request, options: options);
}

$grpc.ResponseFuture<$0.DeleteFileResponse> deleteFile(
$0.DeleteFileRequest request,
$grpc.ResponseFuture<$7.DeleteFileResponse> deleteFile(
$7.DeleteFileRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$deleteFile, request, options: options);
}

$grpc.ResponseFuture<$0.ListFilesResponse> listFiles(
$0.ListFilesRequest request,
$grpc.ResponseFuture<$7.ListFilesResponse> listFiles(
$7.ListFilesRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$listFiles, request, options: options);
}

$grpc.ResponseFuture<$0.GetStorageStatsResponse> getStorageStats(
$0.GetStorageStatsRequest request,
$grpc.ResponseFuture<$7.GetStorageStatsResponse> getStorageStats(
$7.GetStorageStatsRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$getStorageStats, request, options: options);
}
Expand All @@ -92,79 +92,79 @@ abstract class FileManagementServiceBase extends $grpc.Service {
$core.String get $name => 'services.filemanagement.v1.FileManagement';

FileManagementServiceBase() {
$addMethod($grpc.ServiceMethod<$0.UploadFileRequest, $0.UploadFileResponse>(
$addMethod($grpc.ServiceMethod<$7.UploadFileRequest, $7.UploadFileResponse>(
'UploadFile',
uploadFile_Pre,
false,
false,
($core.List<$core.int> value) => $0.UploadFileRequest.fromBuffer(value),
($0.UploadFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetFileRequest, $0.GetFileResponse>(
($core.List<$core.int> value) => $7.UploadFileRequest.fromBuffer(value),
($7.UploadFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$7.GetFileRequest, $7.GetFileResponse>(
'GetFile',
getFile_Pre,
false,
false,
($core.List<$core.int> value) => $0.GetFileRequest.fromBuffer(value),
($0.GetFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DeleteFileRequest, $0.DeleteFileResponse>(
($core.List<$core.int> value) => $7.GetFileRequest.fromBuffer(value),
($7.GetFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$7.DeleteFileRequest, $7.DeleteFileResponse>(
'DeleteFile',
deleteFile_Pre,
false,
false,
($core.List<$core.int> value) => $0.DeleteFileRequest.fromBuffer(value),
($0.DeleteFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ListFilesRequest, $0.ListFilesResponse>(
($core.List<$core.int> value) => $7.DeleteFileRequest.fromBuffer(value),
($7.DeleteFileResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$7.ListFilesRequest, $7.ListFilesResponse>(
'ListFiles',
listFiles_Pre,
false,
false,
($core.List<$core.int> value) => $0.ListFilesRequest.fromBuffer(value),
($0.ListFilesResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetStorageStatsRequest,
$0.GetStorageStatsResponse>(
($core.List<$core.int> value) => $7.ListFilesRequest.fromBuffer(value),
($7.ListFilesResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$7.GetStorageStatsRequest,
$7.GetStorageStatsResponse>(
'GetStorageStats',
getStorageStats_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.GetStorageStatsRequest.fromBuffer(value),
($0.GetStorageStatsResponse value) => value.writeToBuffer()));
$7.GetStorageStatsRequest.fromBuffer(value),
($7.GetStorageStatsResponse value) => value.writeToBuffer()));
}

$async.Future<$0.UploadFileResponse> uploadFile_Pre($grpc.ServiceCall call,
$async.Future<$0.UploadFileRequest> request) async {
$async.Future<$7.UploadFileResponse> uploadFile_Pre($grpc.ServiceCall call,
$async.Future<$7.UploadFileRequest> request) async {
return uploadFile(call, await request);
}

$async.Future<$0.GetFileResponse> getFile_Pre(
$grpc.ServiceCall call, $async.Future<$0.GetFileRequest> request) async {
$async.Future<$7.GetFileResponse> getFile_Pre(
$grpc.ServiceCall call, $async.Future<$7.GetFileRequest> request) async {
return getFile(call, await request);
}

$async.Future<$0.DeleteFileResponse> deleteFile_Pre($grpc.ServiceCall call,
$async.Future<$0.DeleteFileRequest> request) async {
$async.Future<$7.DeleteFileResponse> deleteFile_Pre($grpc.ServiceCall call,
$async.Future<$7.DeleteFileRequest> request) async {
return deleteFile(call, await request);
}

$async.Future<$0.ListFilesResponse> listFiles_Pre($grpc.ServiceCall call,
$async.Future<$0.ListFilesRequest> request) async {
$async.Future<$7.ListFilesResponse> listFiles_Pre($grpc.ServiceCall call,
$async.Future<$7.ListFilesRequest> request) async {
return listFiles(call, await request);
}

$async.Future<$0.GetStorageStatsResponse> getStorageStats_Pre(
$async.Future<$7.GetStorageStatsResponse> getStorageStats_Pre(
$grpc.ServiceCall call,
$async.Future<$0.GetStorageStatsRequest> request) async {
$async.Future<$7.GetStorageStatsRequest> request) async {
return getStorageStats(call, await request);
}

$async.Future<$0.UploadFileResponse> uploadFile(
$grpc.ServiceCall call, $0.UploadFileRequest request);
$async.Future<$0.GetFileResponse> getFile(
$grpc.ServiceCall call, $0.GetFileRequest request);
$async.Future<$0.DeleteFileResponse> deleteFile(
$grpc.ServiceCall call, $0.DeleteFileRequest request);
$async.Future<$0.ListFilesResponse> listFiles(
$grpc.ServiceCall call, $0.ListFilesRequest request);
$async.Future<$0.GetStorageStatsResponse> getStorageStats(
$grpc.ServiceCall call, $0.GetStorageStatsRequest request);
$async.Future<$7.UploadFileResponse> uploadFile(
$grpc.ServiceCall call, $7.UploadFileRequest request);
$async.Future<$7.GetFileResponse> getFile(
$grpc.ServiceCall call, $7.GetFileRequest request);
$async.Future<$7.DeleteFileResponse> deleteFile(
$grpc.ServiceCall call, $7.DeleteFileRequest request);
$async.Future<$7.ListFilesResponse> listFiles(
$grpc.ServiceCall call, $7.ListFilesRequest request);
$async.Future<$7.GetStorageStatsResponse> getStorageStats(
$grpc.ServiceCall call, $7.GetStorageStatsRequest request);
}
Loading

0 comments on commit 6f291c6

Please sign in to comment.