You've already forked dart-core-sdk
Latest generation
This commit is contained in:
@@ -16,7 +16,6 @@ import 'dart:core' as $core;
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'google/api/httpbody.pb.dart' as $61;
|
||||
import 'tiny-url.pb.dart' as $60;
|
||||
|
||||
export 'tiny-url.pb.dart';
|
||||
@@ -63,14 +62,14 @@ class TinyURLServiceClient extends $grpc.Client {
|
||||
'/api.TinyURLService/DeletePartnerAppTinyURL',
|
||||
($60.DeletePartnerAppTinyURLRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $60.DeletePartnerAppTinyURLResponse.fromBuffer(value));
|
||||
static final _$getLongURL = $grpc.ClientMethod<$60.GetLongURLRequest, $60.GetLongURLResult>(
|
||||
'/api.TinyURLService/GetLongURL',
|
||||
($60.GetLongURLRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $60.GetLongURLResult.fromBuffer(value));
|
||||
static final _$downloadFile = $grpc.ClientMethod<$60.DownloadFileRequest, $61.HttpBody>(
|
||||
'/api.TinyURLService/DownloadFile',
|
||||
($60.DownloadFileRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $61.HttpBody.fromBuffer(value));
|
||||
static final _$getSiteTinyURL = $grpc.ClientMethod<$60.GetSiteTinyURLRequest, $60.GetSiteTinyURLResult>(
|
||||
'/api.TinyURLService/GetSiteTinyURL',
|
||||
($60.GetSiteTinyURLRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $60.GetSiteTinyURLResult.fromBuffer(value));
|
||||
static final _$getPartnerAppTinyURL = $grpc.ClientMethod<$60.GetPartnerAppTinyURLRequest, $60.GetPartnerAppTinyURLResult>(
|
||||
'/api.TinyURLService/GetPartnerAppTinyURL',
|
||||
($60.GetPartnerAppTinyURLRequest value) => value.writeToBuffer(),
|
||||
($core.List<$core.int> value) => $60.GetPartnerAppTinyURLResult.fromBuffer(value));
|
||||
|
||||
TinyURLServiceClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
@@ -106,12 +105,12 @@ class TinyURLServiceClient extends $grpc.Client {
|
||||
return $createUnaryCall(_$deletePartnerAppTinyURL, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$60.GetLongURLResult> getLongURL($60.GetLongURLRequest request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$getLongURL, request, options: options);
|
||||
$grpc.ResponseFuture<$60.GetSiteTinyURLResult> getSiteTinyURL($60.GetSiteTinyURLRequest request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$getSiteTinyURL, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$61.HttpBody> downloadFile($60.DownloadFileRequest request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$downloadFile, request, options: options);
|
||||
$grpc.ResponseFuture<$60.GetPartnerAppTinyURLResult> getPartnerAppTinyURL($60.GetPartnerAppTinyURLRequest request, {$grpc.CallOptions? options}) {
|
||||
return $createUnaryCall(_$getPartnerAppTinyURL, request, options: options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,20 +175,20 @@ abstract class TinyURLServiceBase extends $grpc.Service {
|
||||
false,
|
||||
($core.List<$core.int> value) => $60.DeletePartnerAppTinyURLRequest.fromBuffer(value),
|
||||
($60.DeletePartnerAppTinyURLResponse value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$60.GetLongURLRequest, $60.GetLongURLResult>(
|
||||
'GetLongURL',
|
||||
getLongURL_Pre,
|
||||
$addMethod($grpc.ServiceMethod<$60.GetSiteTinyURLRequest, $60.GetSiteTinyURLResult>(
|
||||
'GetSiteTinyURL',
|
||||
getSiteTinyURL_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $60.GetLongURLRequest.fromBuffer(value),
|
||||
($60.GetLongURLResult value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$60.DownloadFileRequest, $61.HttpBody>(
|
||||
'DownloadFile',
|
||||
downloadFile_Pre,
|
||||
($core.List<$core.int> value) => $60.GetSiteTinyURLRequest.fromBuffer(value),
|
||||
($60.GetSiteTinyURLResult value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$60.GetPartnerAppTinyURLRequest, $60.GetPartnerAppTinyURLResult>(
|
||||
'GetPartnerAppTinyURL',
|
||||
getPartnerAppTinyURL_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $60.DownloadFileRequest.fromBuffer(value),
|
||||
($61.HttpBody value) => value.writeToBuffer()));
|
||||
($core.List<$core.int> value) => $60.GetPartnerAppTinyURLRequest.fromBuffer(value),
|
||||
($60.GetPartnerAppTinyURLResult value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$60.ShortenSiteURLResult> shortenSiteURL_Pre($grpc.ServiceCall $call, $async.Future<$60.ShortenSiteURLRequest> $request) async {
|
||||
@@ -224,12 +223,12 @@ abstract class TinyURLServiceBase extends $grpc.Service {
|
||||
return deletePartnerAppTinyURL($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$60.GetLongURLResult> getLongURL_Pre($grpc.ServiceCall $call, $async.Future<$60.GetLongURLRequest> $request) async {
|
||||
return getLongURL($call, await $request);
|
||||
$async.Future<$60.GetSiteTinyURLResult> getSiteTinyURL_Pre($grpc.ServiceCall $call, $async.Future<$60.GetSiteTinyURLRequest> $request) async {
|
||||
return getSiteTinyURL($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$61.HttpBody> downloadFile_Pre($grpc.ServiceCall $call, $async.Future<$60.DownloadFileRequest> $request) async {
|
||||
return downloadFile($call, await $request);
|
||||
$async.Future<$60.GetPartnerAppTinyURLResult> getPartnerAppTinyURL_Pre($grpc.ServiceCall $call, $async.Future<$60.GetPartnerAppTinyURLRequest> $request) async {
|
||||
return getPartnerAppTinyURL($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$60.ShortenSiteURLResult> shortenSiteURL($grpc.ServiceCall call, $60.ShortenSiteURLRequest request);
|
||||
@@ -240,6 +239,6 @@ abstract class TinyURLServiceBase extends $grpc.Service {
|
||||
$async.Future<$60.ListPartnerAppTinyURLsResponse> listPartnerAppTinyURLs($grpc.ServiceCall call, $60.ListPartnerAppTinyURLsRequest request);
|
||||
$async.Future<$60.DeleteSiteTinyURLResponse> deleteSiteTinyURL($grpc.ServiceCall call, $60.DeleteSiteTinyURLRequest request);
|
||||
$async.Future<$60.DeletePartnerAppTinyURLResponse> deletePartnerAppTinyURL($grpc.ServiceCall call, $60.DeletePartnerAppTinyURLRequest request);
|
||||
$async.Future<$60.GetLongURLResult> getLongURL($grpc.ServiceCall call, $60.GetLongURLRequest request);
|
||||
$async.Future<$61.HttpBody> downloadFile($grpc.ServiceCall call, $60.DownloadFileRequest request);
|
||||
$async.Future<$60.GetSiteTinyURLResult> getSiteTinyURL($grpc.ServiceCall call, $60.GetSiteTinyURLRequest request);
|
||||
$async.Future<$60.GetPartnerAppTinyURLResult> getPartnerAppTinyURL($grpc.ServiceCall call, $60.GetPartnerAppTinyURLRequest request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user