@@ -31,66 +31,58 @@ class TestClient extends $grpc.Client {
31
31
'https://www.googleapis.com/auth/datastore',
32
32
];
33
33
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
+
34
62
static final _$unary = $grpc.ClientMethod<$0.Input, $0.Output>(
35
63
'/Test/Unary',
36
64
($0.Input value) => value.writeToBuffer(),
37
- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
65
+ $ 0.Output.fromBuffer);
38
66
static final _$clientStreaming = $grpc.ClientMethod<$0.Input, $0.Output>(
39
67
'/Test/ClientStreaming',
40
68
($0.Input value) => value.writeToBuffer(),
41
- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
69
+ $ 0.Output.fromBuffer);
42
70
static final _$serverStreaming = $grpc.ClientMethod<$0.Input, $0.Output>(
43
71
'/Test/ServerStreaming',
44
72
($0.Input value) => value.writeToBuffer(),
45
- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
73
+ $ 0.Output.fromBuffer);
46
74
static final _$bidirectional = $grpc.ClientMethod<$0.Input, $0.Output>(
47
75
'/Test/Bidirectional',
48
76
($0.Input value) => value.writeToBuffer(),
49
- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
77
+ $ 0.Output.fromBuffer);
50
78
static final _$call = $grpc.ClientMethod<$0.Input, $0.Output>(
51
79
'/Test/Call',
52
80
($0.Input value) => value.writeToBuffer(),
53
- ($core. List <$core. int > value) => $ 0.Output .fromBuffer (value) );
81
+ $ 0.Output.fromBuffer);
54
82
static final _$request = $grpc.ClientMethod<$0.Input, $0.Output>(
55
83
'/Test/Request',
56
84
($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);
94
86
}
95
87
96
88
@$pb.GrpcServiceName('Test')
@@ -142,33 +134,32 @@ abstract class TestServiceBase extends $grpc.Service {
142
134
($0.Output value) => value.writeToBuffer()));
143
135
}
144
136
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 {
147
138
return unary($call, await $request);
148
139
}
149
140
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* {
152
146
yield* serverStreaming($call, await $request);
153
147
}
154
148
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 {
157
154
return call($call, await $request);
158
155
}
159
156
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 {
162
160
return request($call, await $request);
163
161
}
164
162
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);
173
163
$async.Future<$0.Output> request($grpc.ServiceCall call, $0.Input request);
164
+
174
165
}
0 commit comments