diff options
Diffstat (limited to 'protos/lib/src/generated/todo.pbgrpc.dart')
-rw-r--r-- | protos/lib/src/generated/todo.pbgrpc.dart | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/protos/lib/src/generated/todo.pbgrpc.dart b/protos/lib/src/generated/todo.pbgrpc.dart deleted file mode 100644 index 35e0860..0000000 --- a/protos/lib/src/generated/todo.pbgrpc.dart +++ /dev/null @@ -1,79 +0,0 @@ -// -// Generated code. Do not modify. -// source: todo.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -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 'todo.pb.dart' as $0; - -export 'todo.pb.dart'; - -@$pb.GrpcServiceName('TodoService') -class TodoServiceClient extends $grpc.Client { - static final _$getTodo = $grpc.ClientMethod<$0.GetTodoByIdRequest, $0.Todo>( - '/TodoService/getTodo', - ($0.GetTodoByIdRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Todo.fromBuffer(value)); - static final _$getTodoStream = $grpc.ClientMethod<$0.GetTodoByIdRequest, $0.Todo>( - '/TodoService/getTodoStream', - ($0.GetTodoByIdRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Todo.fromBuffer(value)); - - TodoServiceClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, - interceptors: interceptors); - - $grpc.ResponseFuture<$0.Todo> getTodo($0.GetTodoByIdRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getTodo, request, options: options); - } - - $grpc.ResponseStream<$0.Todo> getTodoStream($0.GetTodoByIdRequest request, {$grpc.CallOptions? options}) { - return $createStreamingCall(_$getTodoStream, $async.Stream.fromIterable([request]), options: options); - } -} - -@$pb.GrpcServiceName('TodoService') -abstract class TodoServiceBase extends $grpc.Service { - $core.String get $name => 'TodoService'; - - TodoServiceBase() { - $addMethod($grpc.ServiceMethod<$0.GetTodoByIdRequest, $0.Todo>( - 'getTodo', - getTodo_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetTodoByIdRequest.fromBuffer(value), - ($0.Todo value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetTodoByIdRequest, $0.Todo>( - 'getTodoStream', - getTodoStream_Pre, - false, - true, - ($core.List<$core.int> value) => $0.GetTodoByIdRequest.fromBuffer(value), - ($0.Todo value) => value.writeToBuffer())); - } - - $async.Future<$0.Todo> getTodo_Pre($grpc.ServiceCall call, $async.Future<$0.GetTodoByIdRequest> request) async { - return getTodo(call, await request); - } - - $async.Stream<$0.Todo> getTodoStream_Pre($grpc.ServiceCall call, $async.Future<$0.GetTodoByIdRequest> request) async* { - yield* getTodoStream(call, await request); - } - - $async.Future<$0.Todo> getTodo($grpc.ServiceCall call, $0.GetTodoByIdRequest request); - $async.Stream<$0.Todo> getTodoStream($grpc.ServiceCall call, $0.GetTodoByIdRequest request); -} |