You've already forked dart-core-sdk
Latest generation
This commit is contained in:
@@ -15,40 +15,40 @@ import 'dart:core' as $core;
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'attachmentV2.pb.dart' as $59;
|
||||
import 'attachmentV2.pb.dart' as $3;
|
||||
|
||||
export 'attachmentV2.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('api.AttachmentServiceV2')
|
||||
class AttachmentServiceV2Client extends $grpc.Client {
|
||||
static final _$upload = $grpc.ClientMethod<$59.UploadAttachmentV2Request, $59.UploadAttachmentV2Response>(
|
||||
static final _$upload = $grpc.ClientMethod<$3.UploadAttachmentV2Request, $3.UploadAttachmentV2Response>(
|
||||
'/api.AttachmentServiceV2/Upload',
|
||||
($59.UploadAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.UploadAttachmentV2Response.fromBuffer(value));
|
||||
static final _$addLink = $grpc.ClientMethod<$59.AddLinkV2Request, $59.AddLinkV2Response>(
|
||||
($3.UploadAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.UploadAttachmentV2Response.fromBuffer(value));
|
||||
static final _$addLink = $grpc.ClientMethod<$3.AddLinkV2Request, $3.AddLinkV2Response>(
|
||||
'/api.AttachmentServiceV2/AddLink',
|
||||
($59.AddLinkV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.AddLinkV2Response.fromBuffer(value));
|
||||
static final _$download = $grpc.ClientMethod<$59.DownloadAttachmentV2Request, $59.DownloadAttachmentV2Response>(
|
||||
($3.AddLinkV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.AddLinkV2Response.fromBuffer(value));
|
||||
static final _$download = $grpc.ClientMethod<$3.DownloadAttachmentV2Request, $3.DownloadAttachmentV2Response>(
|
||||
'/api.AttachmentServiceV2/Download',
|
||||
($59.DownloadAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.DownloadAttachmentV2Response.fromBuffer(value));
|
||||
static final _$delete = $grpc.ClientMethod<$59.DeleteAttachmentV2Request, $59.DeleteAttachmentV2Response>(
|
||||
($3.DownloadAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.DownloadAttachmentV2Response.fromBuffer(value));
|
||||
static final _$delete = $grpc.ClientMethod<$3.DeleteAttachmentV2Request, $3.DeleteAttachmentV2Response>(
|
||||
'/api.AttachmentServiceV2/Delete',
|
||||
($59.DeleteAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.DeleteAttachmentV2Response.fromBuffer(value));
|
||||
static final _$list = $grpc.ClientMethod<$59.ListAttachmentsV2Request, $59.ListAttachmentsV2Response>(
|
||||
($3.DeleteAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.DeleteAttachmentV2Response.fromBuffer(value));
|
||||
static final _$list = $grpc.ClientMethod<$3.ListAttachmentsV2Request, $3.ListAttachmentsV2Response>(
|
||||
'/api.AttachmentServiceV2/List',
|
||||
($59.ListAttachmentsV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.ListAttachmentsV2Response.fromBuffer(value));
|
||||
static final _$share = $grpc.ClientMethod<$59.ShareAttachmentV2Request, $59.ShareAttachmentV2Response>(
|
||||
($3.ListAttachmentsV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.ListAttachmentsV2Response.fromBuffer(value));
|
||||
static final _$share = $grpc.ClientMethod<$3.ShareAttachmentV2Request, $3.ShareAttachmentV2Response>(
|
||||
'/api.AttachmentServiceV2/Share',
|
||||
($59.ShareAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.ShareAttachmentV2Response.fromBuffer(value));
|
||||
static final _$deleteAll = $grpc.ClientMethod<$59.DeleteAllAttachmentsV2Request, $59.DeleteAllAttachmentsV2Response>(
|
||||
($3.ShareAttachmentV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.ShareAttachmentV2Response.fromBuffer(value));
|
||||
static final _$deleteAll = $grpc.ClientMethod<$3.DeleteAllAttachmentsV2Request, $3.DeleteAllAttachmentsV2Response>(
|
||||
'/api.AttachmentServiceV2/DeleteAll',
|
||||
($59.DeleteAllAttachmentsV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $59.DeleteAllAttachmentsV2Response.fromBuffer(value));
|
||||
($3.DeleteAllAttachmentsV2Request value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $3.DeleteAllAttachmentsV2Response.fromBuffer(value));
|
||||
|
||||
AttachmentServiceV2Client($grpc.ClientChannel channel,
|
||||
{$grpc.CallOptions? options,
|
||||
@@ -56,31 +56,31 @@ class AttachmentServiceV2Client extends $grpc.Client {
|
||||
: super(channel, options: options,
|
||||
interceptors: interceptors);
|
||||
|
||||
$grpc.ResponseFuture<$59.UploadAttachmentV2Response> upload($59.UploadAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.UploadAttachmentV2Response> upload($3.UploadAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$upload, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.AddLinkV2Response> addLink($59.AddLinkV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.AddLinkV2Response> addLink($3.AddLinkV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$addLink, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.DownloadAttachmentV2Response> download($59.DownloadAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.DownloadAttachmentV2Response> download($3.DownloadAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$download, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.DeleteAttachmentV2Response> delete($59.DeleteAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.DeleteAttachmentV2Response> delete($3.DeleteAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$delete, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.ListAttachmentsV2Response> list($59.ListAttachmentsV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.ListAttachmentsV2Response> list($3.ListAttachmentsV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$list, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.ShareAttachmentV2Response> share($59.ShareAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.ShareAttachmentV2Response> share($3.ShareAttachmentV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$share, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$59.DeleteAllAttachmentsV2Response> deleteAll($59.DeleteAllAttachmentsV2Request request, {$grpc.CallOptions? options}) {
|
||||
$grpc.ResponseFuture<$3.DeleteAllAttachmentsV2Response> deleteAll($3.DeleteAllAttachmentsV2Request request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$deleteAll, request, options: options);
|
||||
}
|
||||
}
|
||||
@@ -90,90 +90,90 @@ abstract class AttachmentServiceV2ServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'api.AttachmentServiceV2';
|
||||
|
||||
AttachmentServiceV2ServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$59.UploadAttachmentV2Request, $59.UploadAttachmentV2Response>(
|
||||
$addMethod($grpc.ServiceMethod<$3.UploadAttachmentV2Request, $3.UploadAttachmentV2Response>(
|
||||
'Upload',
|
||||
upload_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.UploadAttachmentV2Request.fromBuffer(value),
|
||||
($59.UploadAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.AddLinkV2Request, $59.AddLinkV2Response>(
|
||||
($core.List<$core.int> value) => $3.UploadAttachmentV2Request.fromBuffer(value),
|
||||
($3.UploadAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.AddLinkV2Request, $3.AddLinkV2Response>(
|
||||
'AddLink',
|
||||
addLink_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.AddLinkV2Request.fromBuffer(value),
|
||||
($59.AddLinkV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.DownloadAttachmentV2Request, $59.DownloadAttachmentV2Response>(
|
||||
($core.List<$core.int> value) => $3.AddLinkV2Request.fromBuffer(value),
|
||||
($3.AddLinkV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.DownloadAttachmentV2Request, $3.DownloadAttachmentV2Response>(
|
||||
'Download',
|
||||
download_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.DownloadAttachmentV2Request.fromBuffer(value),
|
||||
($59.DownloadAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.DeleteAttachmentV2Request, $59.DeleteAttachmentV2Response>(
|
||||
($core.List<$core.int> value) => $3.DownloadAttachmentV2Request.fromBuffer(value),
|
||||
($3.DownloadAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.DeleteAttachmentV2Request, $3.DeleteAttachmentV2Response>(
|
||||
'Delete',
|
||||
delete_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.DeleteAttachmentV2Request.fromBuffer(value),
|
||||
($59.DeleteAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.ListAttachmentsV2Request, $59.ListAttachmentsV2Response>(
|
||||
($core.List<$core.int> value) => $3.DeleteAttachmentV2Request.fromBuffer(value),
|
||||
($3.DeleteAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.ListAttachmentsV2Request, $3.ListAttachmentsV2Response>(
|
||||
'List',
|
||||
list_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.ListAttachmentsV2Request.fromBuffer(value),
|
||||
($59.ListAttachmentsV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.ShareAttachmentV2Request, $59.ShareAttachmentV2Response>(
|
||||
($core.List<$core.int> value) => $3.ListAttachmentsV2Request.fromBuffer(value),
|
||||
($3.ListAttachmentsV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.ShareAttachmentV2Request, $3.ShareAttachmentV2Response>(
|
||||
'Share',
|
||||
share_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.ShareAttachmentV2Request.fromBuffer(value),
|
||||
($59.ShareAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$59.DeleteAllAttachmentsV2Request, $59.DeleteAllAttachmentsV2Response>(
|
||||
($core.List<$core.int> value) => $3.ShareAttachmentV2Request.fromBuffer(value),
|
||||
($3.ShareAttachmentV2Response value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$3.DeleteAllAttachmentsV2Request, $3.DeleteAllAttachmentsV2Response>(
|
||||
'DeleteAll',
|
||||
deleteAll_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $59.DeleteAllAttachmentsV2Request.fromBuffer(value),
|
||||
($59.DeleteAllAttachmentsV2Response value) => value.writeToBuffer()));
|
||||
($core.List<$core.int> value) => $3.DeleteAllAttachmentsV2Request.fromBuffer(value),
|
||||
($3.DeleteAllAttachmentsV2Response value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$59.UploadAttachmentV2Response> upload_Pre($grpc.ServiceCall $call, $async.Future<$59.UploadAttachmentV2Request> $request) async {
|
||||
$async.Future<$3.UploadAttachmentV2Response> upload_Pre($grpc.ServiceCall $call, $async.Future<$3.UploadAttachmentV2Request> $request) async {
|
||||
return upload($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.AddLinkV2Response> addLink_Pre($grpc.ServiceCall $call, $async.Future<$59.AddLinkV2Request> $request) async {
|
||||
$async.Future<$3.AddLinkV2Response> addLink_Pre($grpc.ServiceCall $call, $async.Future<$3.AddLinkV2Request> $request) async {
|
||||
return addLink($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.DownloadAttachmentV2Response> download_Pre($grpc.ServiceCall $call, $async.Future<$59.DownloadAttachmentV2Request> $request) async {
|
||||
$async.Future<$3.DownloadAttachmentV2Response> download_Pre($grpc.ServiceCall $call, $async.Future<$3.DownloadAttachmentV2Request> $request) async {
|
||||
return download($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.DeleteAttachmentV2Response> delete_Pre($grpc.ServiceCall $call, $async.Future<$59.DeleteAttachmentV2Request> $request) async {
|
||||
$async.Future<$3.DeleteAttachmentV2Response> delete_Pre($grpc.ServiceCall $call, $async.Future<$3.DeleteAttachmentV2Request> $request) async {
|
||||
return delete($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.ListAttachmentsV2Response> list_Pre($grpc.ServiceCall $call, $async.Future<$59.ListAttachmentsV2Request> $request) async {
|
||||
$async.Future<$3.ListAttachmentsV2Response> list_Pre($grpc.ServiceCall $call, $async.Future<$3.ListAttachmentsV2Request> $request) async {
|
||||
return list($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.ShareAttachmentV2Response> share_Pre($grpc.ServiceCall $call, $async.Future<$59.ShareAttachmentV2Request> $request) async {
|
||||
$async.Future<$3.ShareAttachmentV2Response> share_Pre($grpc.ServiceCall $call, $async.Future<$3.ShareAttachmentV2Request> $request) async {
|
||||
return share($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.DeleteAllAttachmentsV2Response> deleteAll_Pre($grpc.ServiceCall $call, $async.Future<$59.DeleteAllAttachmentsV2Request> $request) async {
|
||||
$async.Future<$3.DeleteAllAttachmentsV2Response> deleteAll_Pre($grpc.ServiceCall $call, $async.Future<$3.DeleteAllAttachmentsV2Request> $request) async {
|
||||
return deleteAll($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$59.UploadAttachmentV2Response> upload($grpc.ServiceCall call, $59.UploadAttachmentV2Request request);
|
||||
$async.Future<$59.AddLinkV2Response> addLink($grpc.ServiceCall call, $59.AddLinkV2Request request);
|
||||
$async.Future<$59.DownloadAttachmentV2Response> download($grpc.ServiceCall call, $59.DownloadAttachmentV2Request request);
|
||||
$async.Future<$59.DeleteAttachmentV2Response> delete($grpc.ServiceCall call, $59.DeleteAttachmentV2Request request);
|
||||
$async.Future<$59.ListAttachmentsV2Response> list($grpc.ServiceCall call, $59.ListAttachmentsV2Request request);
|
||||
$async.Future<$59.ShareAttachmentV2Response> share($grpc.ServiceCall call, $59.ShareAttachmentV2Request request);
|
||||
$async.Future<$59.DeleteAllAttachmentsV2Response> deleteAll($grpc.ServiceCall call, $59.DeleteAllAttachmentsV2Request request);
|
||||
$async.Future<$3.UploadAttachmentV2Response> upload($grpc.ServiceCall call, $3.UploadAttachmentV2Request request);
|
||||
$async.Future<$3.AddLinkV2Response> addLink($grpc.ServiceCall call, $3.AddLinkV2Request request);
|
||||
$async.Future<$3.DownloadAttachmentV2Response> download($grpc.ServiceCall call, $3.DownloadAttachmentV2Request request);
|
||||
$async.Future<$3.DeleteAttachmentV2Response> delete($grpc.ServiceCall call, $3.DeleteAttachmentV2Request request);
|
||||
$async.Future<$3.ListAttachmentsV2Response> list($grpc.ServiceCall call, $3.ListAttachmentsV2Request request);
|
||||
$async.Future<$3.ShareAttachmentV2Response> share($grpc.ServiceCall call, $3.ShareAttachmentV2Request request);
|
||||
$async.Future<$3.DeleteAllAttachmentsV2Response> deleteAll($grpc.ServiceCall call, $3.DeleteAllAttachmentsV2Request request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user