386 lines
13 KiB
Dart
386 lines
13 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from album.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 'album.pb.dart' as $0;
|
|
import 'blocks.pb.dart' as $1;
|
|
|
|
export 'album.pb.dart';
|
|
|
|
/// 相册服务
|
|
@$pb.GrpcServiceName('cloud.Album')
|
|
class AlbumClient 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 = [
|
|
'',
|
|
];
|
|
|
|
AlbumClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 创建相册
|
|
$grpc.ResponseFuture<$1.StatusReply> createAlbum(
|
|
$0.CreateAlbumRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$createAlbum, request, options: options);
|
|
}
|
|
|
|
/// 获取相册详情
|
|
$grpc.ResponseFuture<$0.CloudAlbumItem> getAlbum(
|
|
$1.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$getAlbum, request, options: options);
|
|
}
|
|
|
|
/// 更新相册
|
|
$grpc.ResponseFuture<$1.StatusReply> updateAlbum(
|
|
$0.CloudAlbumItem request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$updateAlbum, request, options: options);
|
|
}
|
|
|
|
/// 删除相册
|
|
$grpc.ResponseFuture<$1.StatusReply> deleteAlbum(
|
|
$1.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$deleteAlbum, request, options: options);
|
|
}
|
|
|
|
/// 获取相册列表
|
|
$grpc.ResponseFuture<$0.ListAlbumsResponse> listAlbums(
|
|
$1.FetchRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$listAlbums, request, options: options);
|
|
}
|
|
|
|
/// 设置封面照片
|
|
$grpc.ResponseFuture<$1.StatusReply> setCoverPhoto(
|
|
$0.SetCoverPhotoRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$setCoverPhoto, request, options: options);
|
|
}
|
|
|
|
/// 上传照片
|
|
$grpc.ResponseFuture<$1.StatusReply> uploadPhoto(
|
|
$0.CloudPhotoItem request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$uploadPhoto, request, options: options);
|
|
}
|
|
|
|
/// 获取照片详情
|
|
$grpc.ResponseFuture<$0.CloudPhotoItem> getPhoto(
|
|
$1.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$getPhoto, request, options: options);
|
|
}
|
|
|
|
/// 更新照片
|
|
$grpc.ResponseFuture<$1.StatusReply> updatePhoto(
|
|
$0.CloudPhotoItem request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$updatePhoto, request, options: options);
|
|
}
|
|
|
|
/// 删除照片
|
|
$grpc.ResponseFuture<$1.StatusReply> deletePhoto(
|
|
$1.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$deletePhoto, request, options: options);
|
|
}
|
|
|
|
/// 获取照片列表
|
|
$grpc.ResponseFuture<$0.ListPhotosResponse> listPhotos(
|
|
$1.FetchRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$listPhotos, request, options: options);
|
|
}
|
|
|
|
/// 移动照片到其他相册
|
|
$grpc.ResponseFuture<$1.StatusReply> movePhoto(
|
|
$0.MovePhotoRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$movePhoto, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$createAlbum =
|
|
$grpc.ClientMethod<$0.CreateAlbumRequest, $1.StatusReply>(
|
|
'/cloud.Album/CreateAlbum',
|
|
($0.CreateAlbumRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$getAlbum =
|
|
$grpc.ClientMethod<$1.IdentRequest, $0.CloudAlbumItem>(
|
|
'/cloud.Album/GetAlbum',
|
|
($1.IdentRequest value) => value.writeToBuffer(),
|
|
$0.CloudAlbumItem.fromBuffer);
|
|
static final _$updateAlbum =
|
|
$grpc.ClientMethod<$0.CloudAlbumItem, $1.StatusReply>(
|
|
'/cloud.Album/UpdateAlbum',
|
|
($0.CloudAlbumItem value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$deleteAlbum =
|
|
$grpc.ClientMethod<$1.IdentRequest, $1.StatusReply>(
|
|
'/cloud.Album/DeleteAlbum',
|
|
($1.IdentRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$listAlbums =
|
|
$grpc.ClientMethod<$1.FetchRequest, $0.ListAlbumsResponse>(
|
|
'/cloud.Album/ListAlbums',
|
|
($1.FetchRequest value) => value.writeToBuffer(),
|
|
$0.ListAlbumsResponse.fromBuffer);
|
|
static final _$setCoverPhoto =
|
|
$grpc.ClientMethod<$0.SetCoverPhotoRequest, $1.StatusReply>(
|
|
'/cloud.Album/SetCoverPhoto',
|
|
($0.SetCoverPhotoRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$uploadPhoto =
|
|
$grpc.ClientMethod<$0.CloudPhotoItem, $1.StatusReply>(
|
|
'/cloud.Album/UploadPhoto',
|
|
($0.CloudPhotoItem value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$getPhoto =
|
|
$grpc.ClientMethod<$1.IdentRequest, $0.CloudPhotoItem>(
|
|
'/cloud.Album/GetPhoto',
|
|
($1.IdentRequest value) => value.writeToBuffer(),
|
|
$0.CloudPhotoItem.fromBuffer);
|
|
static final _$updatePhoto =
|
|
$grpc.ClientMethod<$0.CloudPhotoItem, $1.StatusReply>(
|
|
'/cloud.Album/UpdatePhoto',
|
|
($0.CloudPhotoItem value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$deletePhoto =
|
|
$grpc.ClientMethod<$1.IdentRequest, $1.StatusReply>(
|
|
'/cloud.Album/DeletePhoto',
|
|
($1.IdentRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
static final _$listPhotos =
|
|
$grpc.ClientMethod<$1.FetchRequest, $0.ListPhotosResponse>(
|
|
'/cloud.Album/ListPhotos',
|
|
($1.FetchRequest value) => value.writeToBuffer(),
|
|
$0.ListPhotosResponse.fromBuffer);
|
|
static final _$movePhoto =
|
|
$grpc.ClientMethod<$0.MovePhotoRequest, $1.StatusReply>(
|
|
'/cloud.Album/MovePhoto',
|
|
($0.MovePhotoRequest value) => value.writeToBuffer(),
|
|
$1.StatusReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('cloud.Album')
|
|
abstract class AlbumServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'cloud.Album';
|
|
|
|
AlbumServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.CreateAlbumRequest, $1.StatusReply>(
|
|
'CreateAlbum',
|
|
createAlbum_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.CreateAlbumRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.IdentRequest, $0.CloudAlbumItem>(
|
|
'GetAlbum',
|
|
getAlbum_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.IdentRequest.fromBuffer(value),
|
|
($0.CloudAlbumItem value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.CloudAlbumItem, $1.StatusReply>(
|
|
'UpdateAlbum',
|
|
updateAlbum_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CloudAlbumItem.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.IdentRequest, $1.StatusReply>(
|
|
'DeleteAlbum',
|
|
deleteAlbum_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.IdentRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.FetchRequest, $0.ListAlbumsResponse>(
|
|
'ListAlbums',
|
|
listAlbums_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.FetchRequest.fromBuffer(value),
|
|
($0.ListAlbumsResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.SetCoverPhotoRequest, $1.StatusReply>(
|
|
'SetCoverPhoto',
|
|
setCoverPhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.SetCoverPhotoRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.CloudPhotoItem, $1.StatusReply>(
|
|
'UploadPhoto',
|
|
uploadPhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CloudPhotoItem.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.IdentRequest, $0.CloudPhotoItem>(
|
|
'GetPhoto',
|
|
getPhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.IdentRequest.fromBuffer(value),
|
|
($0.CloudPhotoItem value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.CloudPhotoItem, $1.StatusReply>(
|
|
'UpdatePhoto',
|
|
updatePhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.CloudPhotoItem.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.IdentRequest, $1.StatusReply>(
|
|
'DeletePhoto',
|
|
deletePhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.IdentRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.FetchRequest, $0.ListPhotosResponse>(
|
|
'ListPhotos',
|
|
listPhotos_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.FetchRequest.fromBuffer(value),
|
|
($0.ListPhotosResponse value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.MovePhotoRequest, $1.StatusReply>(
|
|
'MovePhoto',
|
|
movePhoto_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.MovePhotoRequest.fromBuffer(value),
|
|
($1.StatusReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> createAlbum_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.CreateAlbumRequest> $request) async {
|
|
return createAlbum($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> createAlbum(
|
|
$grpc.ServiceCall call, $0.CreateAlbumRequest request);
|
|
|
|
$async.Future<$0.CloudAlbumItem> getAlbum_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.IdentRequest> $request) async {
|
|
return getAlbum($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CloudAlbumItem> getAlbum(
|
|
$grpc.ServiceCall call, $1.IdentRequest request);
|
|
|
|
$async.Future<$1.StatusReply> updateAlbum_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.CloudAlbumItem> $request) async {
|
|
return updateAlbum($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> updateAlbum(
|
|
$grpc.ServiceCall call, $0.CloudAlbumItem request);
|
|
|
|
$async.Future<$1.StatusReply> deleteAlbum_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.IdentRequest> $request) async {
|
|
return deleteAlbum($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> deleteAlbum(
|
|
$grpc.ServiceCall call, $1.IdentRequest request);
|
|
|
|
$async.Future<$0.ListAlbumsResponse> listAlbums_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.FetchRequest> $request) async {
|
|
return listAlbums($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ListAlbumsResponse> listAlbums(
|
|
$grpc.ServiceCall call, $1.FetchRequest request);
|
|
|
|
$async.Future<$1.StatusReply> setCoverPhoto_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.SetCoverPhotoRequest> $request) async {
|
|
return setCoverPhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> setCoverPhoto(
|
|
$grpc.ServiceCall call, $0.SetCoverPhotoRequest request);
|
|
|
|
$async.Future<$1.StatusReply> uploadPhoto_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.CloudPhotoItem> $request) async {
|
|
return uploadPhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> uploadPhoto(
|
|
$grpc.ServiceCall call, $0.CloudPhotoItem request);
|
|
|
|
$async.Future<$0.CloudPhotoItem> getPhoto_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.IdentRequest> $request) async {
|
|
return getPhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.CloudPhotoItem> getPhoto(
|
|
$grpc.ServiceCall call, $1.IdentRequest request);
|
|
|
|
$async.Future<$1.StatusReply> updatePhoto_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.CloudPhotoItem> $request) async {
|
|
return updatePhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> updatePhoto(
|
|
$grpc.ServiceCall call, $0.CloudPhotoItem request);
|
|
|
|
$async.Future<$1.StatusReply> deletePhoto_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.IdentRequest> $request) async {
|
|
return deletePhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> deletePhoto(
|
|
$grpc.ServiceCall call, $1.IdentRequest request);
|
|
|
|
$async.Future<$0.ListPhotosResponse> listPhotos_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.FetchRequest> $request) async {
|
|
return listPhotos($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.ListPhotosResponse> listPhotos(
|
|
$grpc.ServiceCall call, $1.FetchRequest request);
|
|
|
|
$async.Future<$1.StatusReply> movePhoto_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.MovePhotoRequest> $request) async {
|
|
return movePhoto($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.StatusReply> movePhoto(
|
|
$grpc.ServiceCall call, $0.MovePhotoRequest request);
|
|
}
|