/// // Generated code. Do not modify. // source: client.proto // // @dart = 2.12 // ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name import 'dart:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'client.pb.dart' as $0; export 'client.pb.dart'; class PaintClient extends $grpc.Client { static final _$paint = $grpc.ClientMethod<$0.PaintRequest, $0.PaintReply>( '/PaintClient/Paint', ($0.PaintRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.PaintReply.fromBuffer(value)); static final _$monitor = $grpc.ClientMethod<$0.MonitorSub, $0.MonitorReply>( '/PaintClient/Monitor', ($0.MonitorSub value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.MonitorReply.fromBuffer(value)); static final _$requestRTC = $grpc.ClientMethod<$0.RTCData, $0.RTCData>( '/PaintClient/RequestRTC', ($0.RTCData value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.RTCData.fromBuffer(value)); PaintClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.PaintReply> paint($0.PaintRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$paint, request, options: options); } $grpc.ResponseStream<$0.MonitorReply> monitor($0.MonitorSub request, {$grpc.CallOptions? options}) { return $createStreamingCall( _$monitor, $async.Stream.fromIterable([request]), options: options); } $grpc.ResponseStream<$0.RTCData> requestRTC($async.Stream<$0.RTCData> request, {$grpc.CallOptions? options}) { return $createStreamingCall(_$requestRTC, request, options: options); } } abstract class PaintClientServiceBase extends $grpc.Service { $core.String get $name => 'PaintClient'; PaintClientServiceBase() { $addMethod($grpc.ServiceMethod<$0.PaintRequest, $0.PaintReply>( 'Paint', paint_Pre, false, false, ($core.List<$core.int> value) => $0.PaintRequest.fromBuffer(value), ($0.PaintReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.MonitorSub, $0.MonitorReply>( 'Monitor', monitor_Pre, false, true, ($core.List<$core.int> value) => $0.MonitorSub.fromBuffer(value), ($0.MonitorReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.RTCData, $0.RTCData>( 'RequestRTC', requestRTC, true, true, ($core.List<$core.int> value) => $0.RTCData.fromBuffer(value), ($0.RTCData value) => value.writeToBuffer())); } $async.Future<$0.PaintReply> paint_Pre( $grpc.ServiceCall call, $async.Future<$0.PaintRequest> request) async { return paint(call, await request); } $async.Stream<$0.MonitorReply> monitor_Pre( $grpc.ServiceCall call, $async.Future<$0.MonitorSub> request) async* { yield* monitor(call, await request); } $async.Future<$0.PaintReply> paint( $grpc.ServiceCall call, $0.PaintRequest request); $async.Stream<$0.MonitorReply> monitor( $grpc.ServiceCall call, $0.MonitorSub request); $async.Stream<$0.RTCData> requestRTC( $grpc.ServiceCall call, $async.Stream<$0.RTCData> request); }