client.pbgrpc.dart 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ///
  2. // Generated code. Do not modify.
  3. // source: client.proto
  4. //
  5. // @dart = 2.12
  6. // 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
  7. import 'dart:async' as $async;
  8. import 'dart:core' as $core;
  9. import 'package:grpc/service_api.dart' as $grpc;
  10. import 'client.pb.dart' as $0;
  11. export 'client.pb.dart';
  12. class PaintClient extends $grpc.Client {
  13. static final _$paint = $grpc.ClientMethod<$0.PaintRequest, $0.PaintReply>(
  14. '/PaintClient/Paint',
  15. ($0.PaintRequest value) => value.writeToBuffer(),
  16. ($core.List<$core.int> value) => $0.PaintReply.fromBuffer(value));
  17. static final _$monitor = $grpc.ClientMethod<$0.MonitorSub, $0.MonitorReply>(
  18. '/PaintClient/Monitor',
  19. ($0.MonitorSub value) => value.writeToBuffer(),
  20. ($core.List<$core.int> value) => $0.MonitorReply.fromBuffer(value));
  21. static final _$requestRTC = $grpc.ClientMethod<$0.RTCData, $0.RTCData>(
  22. '/PaintClient/RequestRTC',
  23. ($0.RTCData value) => value.writeToBuffer(),
  24. ($core.List<$core.int> value) => $0.RTCData.fromBuffer(value));
  25. PaintClient($grpc.ClientChannel channel,
  26. {$grpc.CallOptions? options,
  27. $core.Iterable<$grpc.ClientInterceptor>? interceptors})
  28. : super(channel, options: options, interceptors: interceptors);
  29. $grpc.ResponseFuture<$0.PaintReply> paint($0.PaintRequest request,
  30. {$grpc.CallOptions? options}) {
  31. return $createUnaryCall(_$paint, request, options: options);
  32. }
  33. $grpc.ResponseStream<$0.MonitorReply> monitor($0.MonitorSub request,
  34. {$grpc.CallOptions? options}) {
  35. return $createStreamingCall(
  36. _$monitor, $async.Stream.fromIterable([request]),
  37. options: options);
  38. }
  39. $grpc.ResponseStream<$0.RTCData> requestRTC($async.Stream<$0.RTCData> request,
  40. {$grpc.CallOptions? options}) {
  41. return $createStreamingCall(_$requestRTC, request, options: options);
  42. }
  43. }
  44. abstract class PaintClientServiceBase extends $grpc.Service {
  45. $core.String get $name => 'PaintClient';
  46. PaintClientServiceBase() {
  47. $addMethod($grpc.ServiceMethod<$0.PaintRequest, $0.PaintReply>(
  48. 'Paint',
  49. paint_Pre,
  50. false,
  51. false,
  52. ($core.List<$core.int> value) => $0.PaintRequest.fromBuffer(value),
  53. ($0.PaintReply value) => value.writeToBuffer()));
  54. $addMethod($grpc.ServiceMethod<$0.MonitorSub, $0.MonitorReply>(
  55. 'Monitor',
  56. monitor_Pre,
  57. false,
  58. true,
  59. ($core.List<$core.int> value) => $0.MonitorSub.fromBuffer(value),
  60. ($0.MonitorReply value) => value.writeToBuffer()));
  61. $addMethod($grpc.ServiceMethod<$0.RTCData, $0.RTCData>(
  62. 'RequestRTC',
  63. requestRTC,
  64. true,
  65. true,
  66. ($core.List<$core.int> value) => $0.RTCData.fromBuffer(value),
  67. ($0.RTCData value) => value.writeToBuffer()));
  68. }
  69. $async.Future<$0.PaintReply> paint_Pre(
  70. $grpc.ServiceCall call, $async.Future<$0.PaintRequest> request) async {
  71. return paint(call, await request);
  72. }
  73. $async.Stream<$0.MonitorReply> monitor_Pre(
  74. $grpc.ServiceCall call, $async.Future<$0.MonitorSub> request) async* {
  75. yield* monitor(call, await request);
  76. }
  77. $async.Future<$0.PaintReply> paint(
  78. $grpc.ServiceCall call, $0.PaintRequest request);
  79. $async.Stream<$0.MonitorReply> monitor(
  80. $grpc.ServiceCall call, $0.MonitorSub request);
  81. $async.Stream<$0.RTCData> requestRTC(
  82. $grpc.ServiceCall call, $async.Stream<$0.RTCData> request);
  83. }