218 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			218 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from bookmark.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 'blocks.pb.dart' as $1;
 | |
| import 'bookmark.pb.dart' as $0;
 | |
| 
 | |
| export 'bookmark.pb.dart';
 | |
| 
 | |
| /// 书签服务
 | |
| @$pb.GrpcServiceName('cloud.Bookmark')
 | |
| class BookmarkClient 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 = [
 | |
|     '',
 | |
|   ];
 | |
| 
 | |
|   BookmarkClient(super.channel, {super.options, super.interceptors});
 | |
| 
 | |
|   /// 创建书签
 | |
|   $grpc.ResponseFuture<$1.StatusReply> createBookmark(
 | |
|     $0.CreateBookmarkRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$createBookmark, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 获取书签详情
 | |
|   $grpc.ResponseFuture<$0.CloudBookmarkItem> getBookmark(
 | |
|     $1.IDRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$getBookmark, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 更新书签
 | |
|   $grpc.ResponseFuture<$1.StatusReply> updateBookmark(
 | |
|     $0.CloudBookmarkItem request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$updateBookmark, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 删除书签
 | |
|   $grpc.ResponseFuture<$1.StatusReply> deleteBookmark(
 | |
|     $1.IDRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$deleteBookmark, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 获取书签列表
 | |
|   $grpc.ResponseFuture<$0.ListBookmarksResponse> listBookmarks(
 | |
|     $1.FetchRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$listBookmarks, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 导入书签
 | |
|   $grpc.ResponseFuture<$1.StatusReply> importBookmarks(
 | |
|     $0.ImportBookmarksRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$importBookmarks, request, options: options);
 | |
|   }
 | |
| 
 | |
|   // method descriptors
 | |
| 
 | |
|   static final _$createBookmark =
 | |
|       $grpc.ClientMethod<$0.CreateBookmarkRequest, $1.StatusReply>(
 | |
|           '/cloud.Bookmark/CreateBookmark',
 | |
|           ($0.CreateBookmarkRequest value) => value.writeToBuffer(),
 | |
|           $1.StatusReply.fromBuffer);
 | |
|   static final _$getBookmark =
 | |
|       $grpc.ClientMethod<$1.IDRequest, $0.CloudBookmarkItem>(
 | |
|           '/cloud.Bookmark/GetBookmark',
 | |
|           ($1.IDRequest value) => value.writeToBuffer(),
 | |
|           $0.CloudBookmarkItem.fromBuffer);
 | |
|   static final _$updateBookmark =
 | |
|       $grpc.ClientMethod<$0.CloudBookmarkItem, $1.StatusReply>(
 | |
|           '/cloud.Bookmark/UpdateBookmark',
 | |
|           ($0.CloudBookmarkItem value) => value.writeToBuffer(),
 | |
|           $1.StatusReply.fromBuffer);
 | |
|   static final _$deleteBookmark =
 | |
|       $grpc.ClientMethod<$1.IDRequest, $1.StatusReply>(
 | |
|           '/cloud.Bookmark/DeleteBookmark',
 | |
|           ($1.IDRequest value) => value.writeToBuffer(),
 | |
|           $1.StatusReply.fromBuffer);
 | |
|   static final _$listBookmarks =
 | |
|       $grpc.ClientMethod<$1.FetchRequest, $0.ListBookmarksResponse>(
 | |
|           '/cloud.Bookmark/ListBookmarks',
 | |
|           ($1.FetchRequest value) => value.writeToBuffer(),
 | |
|           $0.ListBookmarksResponse.fromBuffer);
 | |
|   static final _$importBookmarks =
 | |
|       $grpc.ClientMethod<$0.ImportBookmarksRequest, $1.StatusReply>(
 | |
|           '/cloud.Bookmark/ImportBookmarks',
 | |
|           ($0.ImportBookmarksRequest value) => value.writeToBuffer(),
 | |
|           $1.StatusReply.fromBuffer);
 | |
| }
 | |
| 
 | |
| @$pb.GrpcServiceName('cloud.Bookmark')
 | |
| abstract class BookmarkServiceBase extends $grpc.Service {
 | |
|   $core.String get $name => 'cloud.Bookmark';
 | |
| 
 | |
|   BookmarkServiceBase() {
 | |
|     $addMethod($grpc.ServiceMethod<$0.CreateBookmarkRequest, $1.StatusReply>(
 | |
|         'CreateBookmark',
 | |
|         createBookmark_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) =>
 | |
|             $0.CreateBookmarkRequest.fromBuffer(value),
 | |
|         ($1.StatusReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$1.IDRequest, $0.CloudBookmarkItem>(
 | |
|         'GetBookmark',
 | |
|         getBookmark_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $1.IDRequest.fromBuffer(value),
 | |
|         ($0.CloudBookmarkItem value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$0.CloudBookmarkItem, $1.StatusReply>(
 | |
|         'UpdateBookmark',
 | |
|         updateBookmark_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $0.CloudBookmarkItem.fromBuffer(value),
 | |
|         ($1.StatusReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$1.IDRequest, $1.StatusReply>(
 | |
|         'DeleteBookmark',
 | |
|         deleteBookmark_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $1.IDRequest.fromBuffer(value),
 | |
|         ($1.StatusReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$1.FetchRequest, $0.ListBookmarksResponse>(
 | |
|         'ListBookmarks',
 | |
|         listBookmarks_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $1.FetchRequest.fromBuffer(value),
 | |
|         ($0.ListBookmarksResponse value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$0.ImportBookmarksRequest, $1.StatusReply>(
 | |
|         'ImportBookmarks',
 | |
|         importBookmarks_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) =>
 | |
|             $0.ImportBookmarksRequest.fromBuffer(value),
 | |
|         ($1.StatusReply value) => value.writeToBuffer()));
 | |
|   }
 | |
| 
 | |
|   $async.Future<$1.StatusReply> createBookmark_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.CreateBookmarkRequest> $request) async {
 | |
|     return createBookmark($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$1.StatusReply> createBookmark(
 | |
|       $grpc.ServiceCall call, $0.CreateBookmarkRequest request);
 | |
| 
 | |
|   $async.Future<$0.CloudBookmarkItem> getBookmark_Pre(
 | |
|       $grpc.ServiceCall $call, $async.Future<$1.IDRequest> $request) async {
 | |
|     return getBookmark($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.CloudBookmarkItem> getBookmark(
 | |
|       $grpc.ServiceCall call, $1.IDRequest request);
 | |
| 
 | |
|   $async.Future<$1.StatusReply> updateBookmark_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.CloudBookmarkItem> $request) async {
 | |
|     return updateBookmark($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$1.StatusReply> updateBookmark(
 | |
|       $grpc.ServiceCall call, $0.CloudBookmarkItem request);
 | |
| 
 | |
|   $async.Future<$1.StatusReply> deleteBookmark_Pre(
 | |
|       $grpc.ServiceCall $call, $async.Future<$1.IDRequest> $request) async {
 | |
|     return deleteBookmark($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$1.StatusReply> deleteBookmark(
 | |
|       $grpc.ServiceCall call, $1.IDRequest request);
 | |
| 
 | |
|   $async.Future<$0.ListBookmarksResponse> listBookmarks_Pre(
 | |
|       $grpc.ServiceCall $call, $async.Future<$1.FetchRequest> $request) async {
 | |
|     return listBookmarks($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.ListBookmarksResponse> listBookmarks(
 | |
|       $grpc.ServiceCall call, $1.FetchRequest request);
 | |
| 
 | |
|   $async.Future<$1.StatusReply> importBookmarks_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.ImportBookmarksRequest> $request) async {
 | |
|     return importBookmarks($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$1.StatusReply> importBookmarks(
 | |
|       $grpc.ServiceCall call, $0.ImportBookmarksRequest request);
 | |
| }
 |