@@ -31,66 +31,58 @@ class TestClient extends $grpc.Client {
3131 'https://www.googleapis.com/auth/datastore',
3232 ];
3333
34+ TestClient(super.channel, {super.options, super.interceptors});
35+
36+ $grpc.ResponseFuture<$0.Output> unary($0.Input request, {$grpc.CallOptions? options,}) {
37+ return $createUnaryCall(_$unary, request, options: options);
38+ }
39+
40+ $grpc.ResponseFuture<$0.Output> clientStreaming($async.Stream<$0.Input> request, {$grpc.CallOptions? options,}) {
41+ return $createStreamingCall(_$clientStreaming, request, options: options).single;
42+ }
43+
44+ $grpc.ResponseStream<$0.Output> serverStreaming($0.Input request, {$grpc.CallOptions? options,}) {
45+ return $createStreamingCall(_$serverStreaming, $async.Stream.fromIterable([request]), options: options);
46+ }
47+
48+ $grpc.ResponseStream<$0.Output> bidirectional($async.Stream<$0.Input> request, {$grpc.CallOptions? options,}) {
49+ return $createStreamingCall(_$bidirectional, request, options: options);
50+ }
51+
52+ $grpc.ResponseFuture<$0.Output> call($0.Input request, {$grpc.CallOptions? options,}) {
53+ return $createUnaryCall(_$call, request, options: options);
54+ }
55+
56+ $grpc.ResponseFuture<$0.Output> request($0.Input request, {$grpc.CallOptions? options,}) {
57+ return $createUnaryCall(_$request, request, options: options);
58+ }
59+
60+ // method descriptors
61+
3462 static final _$unary = $grpc.ClientMethod<$0.Input, $0.Output>(
3563 '/Test/Unary',
3664 ($0.Input value) => value.writeToBuffer(),
37- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
65+ $ 0.Output.fromBuffer);
3866 static final _$clientStreaming = $grpc.ClientMethod<$0.Input, $0.Output>(
3967 '/Test/ClientStreaming',
4068 ($0.Input value) => value.writeToBuffer(),
41- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
69+ $ 0.Output.fromBuffer);
4270 static final _$serverStreaming = $grpc.ClientMethod<$0.Input, $0.Output>(
4371 '/Test/ServerStreaming',
4472 ($0.Input value) => value.writeToBuffer(),
45- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
73+ $ 0.Output.fromBuffer);
4674 static final _$bidirectional = $grpc.ClientMethod<$0.Input, $0.Output>(
4775 '/Test/Bidirectional',
4876 ($0.Input value) => value.writeToBuffer(),
49- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
77+ $ 0.Output.fromBuffer);
5078 static final _$call = $grpc.ClientMethod<$0.Input, $0.Output>(
5179 '/Test/Call',
5280 ($0.Input value) => value.writeToBuffer(),
53- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
81+ $ 0.Output.fromBuffer);
5482 static final _$request = $grpc.ClientMethod<$0.Input, $0.Output>(
5583 '/Test/Request',
5684 ($0.Input value) => value.writeToBuffer(),
57- ($core.List <$core.int > value) => $0.Output .fromBuffer (value));
58-
59- TestClient (super .channel, {super .options, super .interceptors});
60-
61- $grpc.ResponseFuture <$0.Output > unary ($0.Input request,
62- {$grpc.CallOptions ? options}) {
63- return $createUnaryCall (_$unary, request, options: options);
64- }
65-
66- $grpc.ResponseFuture <$0.Output > clientStreaming (
67- $async.Stream <$0.Input > request,
68- {$grpc.CallOptions ? options}) {
69- return $createStreamingCall (_$clientStreaming, request, options: options)
70- .single;
71- }
72-
73- $grpc.ResponseStream <$0.Output > serverStreaming ($0.Input request,
74- {$grpc.CallOptions ? options}) {
75- return $createStreamingCall (
76- _$serverStreaming, $async.Stream .fromIterable ([request]),
77- options: options);
78- }
79-
80- $grpc.ResponseStream <$0.Output > bidirectional ($async.Stream <$0.Input > request,
81- {$grpc.CallOptions ? options}) {
82- return $createStreamingCall (_$bidirectional, request, options: options);
83- }
84-
85- $grpc.ResponseFuture <$0.Output > call ($0.Input request,
86- {$grpc.CallOptions ? options}) {
87- return $createUnaryCall (_$call, request, options: options);
88- }
89-
90- $grpc.ResponseFuture <$0.Output > request ($0.Input request,
91- {$grpc.CallOptions ? options}) {
92- return $createUnaryCall (_$request, request, options: options);
93- }
85+ $0.Output.fromBuffer);
9486}
9587
9688@$pb.GrpcServiceName('Test')
@@ -142,33 +134,32 @@ abstract class TestServiceBase extends $grpc.Service {
142134 ($0.Output value) => value.writeToBuffer()));
143135 }
144136
145- $async.Future <$0.Output > unary_Pre (
146- $grpc.ServiceCall $call, $async.Future <$0.Input > $request) async {
137+ $async.Future<$0.Output> unary_Pre($grpc.ServiceCall $call, $async.Future<$0.Input> $request) async {
147138 return unary($call, await $request);
148139 }
149140
150- $async.Stream <$0.Output > serverStreaming_Pre (
151- $grpc.ServiceCall $call, $async.Future <$0.Input > $request) async * {
141+ $async.Future<$0.Output> unary($grpc.ServiceCall call, $0.Input request);
142+
143+ $async.Future<$0.Output> clientStreaming($grpc.ServiceCall call, $async.Stream<$0.Input> request);
144+
145+ $async.Stream<$0.Output> serverStreaming_Pre($grpc.ServiceCall $call, $async.Future<$0.Input> $request) async* {
152146 yield* serverStreaming($call, await $request);
153147 }
154148
155- $async.Future <$0.Output > call_Pre (
156- $grpc.ServiceCall $call, $async.Future <$0.Input > $request) async {
149+ $async.Stream<$0.Output> serverStreaming($grpc.ServiceCall call, $0.Input request);
150+
151+ $async.Stream<$0.Output> bidirectional($grpc.ServiceCall call, $async.Stream<$0.Input> request);
152+
153+ $async.Future<$0.Output> call_Pre($grpc.ServiceCall $call, $async.Future<$0.Input> $request) async {
157154 return call($call, await $request);
158155 }
159156
160- $async.Future <$0.Output > request_Pre (
161- $grpc.ServiceCall $call, $async.Future <$0.Input > $request) async {
157+ $async.Future<$0.Output> call($grpc.ServiceCall call, $0.Input request);
158+
159+ $async.Future<$0.Output> request_Pre($grpc.ServiceCall $call, $async.Future<$0.Input> $request) async {
162160 return request($call, await $request);
163161 }
164162
165- $async.Future <$0.Output > unary ($grpc.ServiceCall call, $0.Input request);
166- $async.Future <$0.Output > clientStreaming (
167- $grpc.ServiceCall call, $async.Stream <$0.Input > request);
168- $async.Stream <$0.Output > serverStreaming (
169- $grpc.ServiceCall call, $0.Input request);
170- $async.Stream <$0.Output > bidirectional (
171- $grpc.ServiceCall call, $async.Stream <$0.Input > request);
172- $async.Future <$0.Output > call ($grpc.ServiceCall call, $0.Input request);
173163 $async.Future<$0.Output> request($grpc.ServiceCall call, $0.Input request);
164+
174165}
0 commit comments