xref: /aosp_15_r20/tools/netsim/rust/proto/src/frontend_grpc.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 // This file is generated. Do not edit
2 // @generated
3 
4 // https://github.com/Manishearth/rust-clippy/issues/702
5 #![allow(unknown_lints)]
6 #![allow(clippy::all)]
7 #![allow(dead_code)]
8 #![allow(missing_docs)]
9 #![allow(non_camel_case_types)]
10 #![allow(non_snake_case)]
11 #![allow(non_upper_case_globals)]
12 #![allow(trivial_casts)]
13 #![allow(unsafe_code)]
14 #![allow(unused_imports)]
15 #![allow(unused_results)]
16 
17 const METHOD_FRONTEND_SERVICE_GET_VERSION: ::grpcio::Method<
18     super::empty::Empty,
19     super::frontend::VersionResponse,
20 > = ::grpcio::Method {
21     ty: ::grpcio::MethodType::Unary,
22     name: "/netsim.frontend.FrontendService/GetVersion",
23     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
24     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
25 };
26 
27 const METHOD_FRONTEND_SERVICE_CREATE_DEVICE: ::grpcio::Method<
28     super::frontend::CreateDeviceRequest,
29     super::frontend::CreateDeviceResponse,
30 > = ::grpcio::Method {
31     ty: ::grpcio::MethodType::Unary,
32     name: "/netsim.frontend.FrontendService/CreateDevice",
33     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
34     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
35 };
36 
37 const METHOD_FRONTEND_SERVICE_DELETE_CHIP: ::grpcio::Method<
38     super::frontend::DeleteChipRequest,
39     super::empty::Empty,
40 > = ::grpcio::Method {
41     ty: ::grpcio::MethodType::Unary,
42     name: "/netsim.frontend.FrontendService/DeleteChip",
43     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
44     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
45 };
46 
47 const METHOD_FRONTEND_SERVICE_PATCH_DEVICE: ::grpcio::Method<
48     super::frontend::PatchDeviceRequest,
49     super::empty::Empty,
50 > = ::grpcio::Method {
51     ty: ::grpcio::MethodType::Unary,
52     name: "/netsim.frontend.FrontendService/PatchDevice",
53     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
54     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
55 };
56 
57 const METHOD_FRONTEND_SERVICE_RESET: ::grpcio::Method<super::empty::Empty, super::empty::Empty> =
58     ::grpcio::Method {
59         ty: ::grpcio::MethodType::Unary,
60         name: "/netsim.frontend.FrontendService/Reset",
61         req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
62         resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
63     };
64 
65 const METHOD_FRONTEND_SERVICE_LIST_DEVICE: ::grpcio::Method<
66     super::empty::Empty,
67     super::frontend::ListDeviceResponse,
68 > = ::grpcio::Method {
69     ty: ::grpcio::MethodType::Unary,
70     name: "/netsim.frontend.FrontendService/ListDevice",
71     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
72     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
73 };
74 
75 const METHOD_FRONTEND_SERVICE_SUBSCRIBE_DEVICE: ::grpcio::Method<
76     super::frontend::SubscribeDeviceRequest,
77     super::frontend::SubscribeDeviceResponse,
78 > = ::grpcio::Method {
79     ty: ::grpcio::MethodType::Unary,
80     name: "/netsim.frontend.FrontendService/SubscribeDevice",
81     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
82     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
83 };
84 
85 const METHOD_FRONTEND_SERVICE_PATCH_CAPTURE: ::grpcio::Method<
86     super::frontend::PatchCaptureRequest,
87     super::empty::Empty,
88 > = ::grpcio::Method {
89     ty: ::grpcio::MethodType::Unary,
90     name: "/netsim.frontend.FrontendService/PatchCapture",
91     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
92     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
93 };
94 
95 const METHOD_FRONTEND_SERVICE_LIST_CAPTURE: ::grpcio::Method<
96     super::empty::Empty,
97     super::frontend::ListCaptureResponse,
98 > = ::grpcio::Method {
99     ty: ::grpcio::MethodType::Unary,
100     name: "/netsim.frontend.FrontendService/ListCapture",
101     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
102     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
103 };
104 
105 const METHOD_FRONTEND_SERVICE_GET_CAPTURE: ::grpcio::Method<
106     super::frontend::GetCaptureRequest,
107     super::frontend::GetCaptureResponse,
108 > = ::grpcio::Method {
109     ty: ::grpcio::MethodType::ServerStreaming,
110     name: "/netsim.frontend.FrontendService/GetCapture",
111     req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
112     resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
113 };
114 
115 #[derive(Clone)]
116 pub struct FrontendServiceClient {
117     pub client: ::grpcio::Client,
118 }
119 
120 impl FrontendServiceClient {
new(channel: ::grpcio::Channel) -> Self121     pub fn new(channel: ::grpcio::Channel) -> Self {
122         FrontendServiceClient { client: ::grpcio::Client::new(channel) }
123     }
124 
get_version_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::frontend::VersionResponse>125     pub fn get_version_opt(
126         &self,
127         req: &super::empty::Empty,
128         opt: ::grpcio::CallOption,
129     ) -> ::grpcio::Result<super::frontend::VersionResponse> {
130         self.client.unary_call(&METHOD_FRONTEND_SERVICE_GET_VERSION, req, opt)
131     }
132 
get_version( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<super::frontend::VersionResponse>133     pub fn get_version(
134         &self,
135         req: &super::empty::Empty,
136     ) -> ::grpcio::Result<super::frontend::VersionResponse> {
137         self.get_version_opt(req, ::grpcio::CallOption::default())
138     }
139 
get_version_async_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::VersionResponse>>140     pub fn get_version_async_opt(
141         &self,
142         req: &super::empty::Empty,
143         opt: ::grpcio::CallOption,
144     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::VersionResponse>> {
145         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_GET_VERSION, req, opt)
146     }
147 
get_version_async( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::VersionResponse>>148     pub fn get_version_async(
149         &self,
150         req: &super::empty::Empty,
151     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::VersionResponse>> {
152         self.get_version_async_opt(req, ::grpcio::CallOption::default())
153     }
154 
create_device_opt( &self, req: &super::frontend::CreateDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::frontend::CreateDeviceResponse>155     pub fn create_device_opt(
156         &self,
157         req: &super::frontend::CreateDeviceRequest,
158         opt: ::grpcio::CallOption,
159     ) -> ::grpcio::Result<super::frontend::CreateDeviceResponse> {
160         self.client.unary_call(&METHOD_FRONTEND_SERVICE_CREATE_DEVICE, req, opt)
161     }
162 
create_device( &self, req: &super::frontend::CreateDeviceRequest, ) -> ::grpcio::Result<super::frontend::CreateDeviceResponse>163     pub fn create_device(
164         &self,
165         req: &super::frontend::CreateDeviceRequest,
166     ) -> ::grpcio::Result<super::frontend::CreateDeviceResponse> {
167         self.create_device_opt(req, ::grpcio::CallOption::default())
168     }
169 
create_device_async_opt( &self, req: &super::frontend::CreateDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::CreateDeviceResponse>>170     pub fn create_device_async_opt(
171         &self,
172         req: &super::frontend::CreateDeviceRequest,
173         opt: ::grpcio::CallOption,
174     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::CreateDeviceResponse>>
175     {
176         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_CREATE_DEVICE, req, opt)
177     }
178 
create_device_async( &self, req: &super::frontend::CreateDeviceRequest, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::CreateDeviceResponse>>179     pub fn create_device_async(
180         &self,
181         req: &super::frontend::CreateDeviceRequest,
182     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::CreateDeviceResponse>>
183     {
184         self.create_device_async_opt(req, ::grpcio::CallOption::default())
185     }
186 
delete_chip_opt( &self, req: &super::frontend::DeleteChipRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::empty::Empty>187     pub fn delete_chip_opt(
188         &self,
189         req: &super::frontend::DeleteChipRequest,
190         opt: ::grpcio::CallOption,
191     ) -> ::grpcio::Result<super::empty::Empty> {
192         self.client.unary_call(&METHOD_FRONTEND_SERVICE_DELETE_CHIP, req, opt)
193     }
194 
delete_chip( &self, req: &super::frontend::DeleteChipRequest, ) -> ::grpcio::Result<super::empty::Empty>195     pub fn delete_chip(
196         &self,
197         req: &super::frontend::DeleteChipRequest,
198     ) -> ::grpcio::Result<super::empty::Empty> {
199         self.delete_chip_opt(req, ::grpcio::CallOption::default())
200     }
201 
delete_chip_async_opt( &self, req: &super::frontend::DeleteChipRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>202     pub fn delete_chip_async_opt(
203         &self,
204         req: &super::frontend::DeleteChipRequest,
205         opt: ::grpcio::CallOption,
206     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
207         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_DELETE_CHIP, req, opt)
208     }
209 
delete_chip_async( &self, req: &super::frontend::DeleteChipRequest, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>210     pub fn delete_chip_async(
211         &self,
212         req: &super::frontend::DeleteChipRequest,
213     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
214         self.delete_chip_async_opt(req, ::grpcio::CallOption::default())
215     }
216 
patch_device_opt( &self, req: &super::frontend::PatchDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::empty::Empty>217     pub fn patch_device_opt(
218         &self,
219         req: &super::frontend::PatchDeviceRequest,
220         opt: ::grpcio::CallOption,
221     ) -> ::grpcio::Result<super::empty::Empty> {
222         self.client.unary_call(&METHOD_FRONTEND_SERVICE_PATCH_DEVICE, req, opt)
223     }
224 
patch_device( &self, req: &super::frontend::PatchDeviceRequest, ) -> ::grpcio::Result<super::empty::Empty>225     pub fn patch_device(
226         &self,
227         req: &super::frontend::PatchDeviceRequest,
228     ) -> ::grpcio::Result<super::empty::Empty> {
229         self.patch_device_opt(req, ::grpcio::CallOption::default())
230     }
231 
patch_device_async_opt( &self, req: &super::frontend::PatchDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>232     pub fn patch_device_async_opt(
233         &self,
234         req: &super::frontend::PatchDeviceRequest,
235         opt: ::grpcio::CallOption,
236     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
237         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_PATCH_DEVICE, req, opt)
238     }
239 
patch_device_async( &self, req: &super::frontend::PatchDeviceRequest, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>240     pub fn patch_device_async(
241         &self,
242         req: &super::frontend::PatchDeviceRequest,
243     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
244         self.patch_device_async_opt(req, ::grpcio::CallOption::default())
245     }
246 
reset_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::empty::Empty>247     pub fn reset_opt(
248         &self,
249         req: &super::empty::Empty,
250         opt: ::grpcio::CallOption,
251     ) -> ::grpcio::Result<super::empty::Empty> {
252         self.client.unary_call(&METHOD_FRONTEND_SERVICE_RESET, req, opt)
253     }
254 
reset(&self, req: &super::empty::Empty) -> ::grpcio::Result<super::empty::Empty>255     pub fn reset(&self, req: &super::empty::Empty) -> ::grpcio::Result<super::empty::Empty> {
256         self.reset_opt(req, ::grpcio::CallOption::default())
257     }
258 
reset_async_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>259     pub fn reset_async_opt(
260         &self,
261         req: &super::empty::Empty,
262         opt: ::grpcio::CallOption,
263     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
264         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_RESET, req, opt)
265     }
266 
reset_async( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>267     pub fn reset_async(
268         &self,
269         req: &super::empty::Empty,
270     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
271         self.reset_async_opt(req, ::grpcio::CallOption::default())
272     }
273 
list_device_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::frontend::ListDeviceResponse>274     pub fn list_device_opt(
275         &self,
276         req: &super::empty::Empty,
277         opt: ::grpcio::CallOption,
278     ) -> ::grpcio::Result<super::frontend::ListDeviceResponse> {
279         self.client.unary_call(&METHOD_FRONTEND_SERVICE_LIST_DEVICE, req, opt)
280     }
281 
list_device( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<super::frontend::ListDeviceResponse>282     pub fn list_device(
283         &self,
284         req: &super::empty::Empty,
285     ) -> ::grpcio::Result<super::frontend::ListDeviceResponse> {
286         self.list_device_opt(req, ::grpcio::CallOption::default())
287     }
288 
list_device_async_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListDeviceResponse>>289     pub fn list_device_async_opt(
290         &self,
291         req: &super::empty::Empty,
292         opt: ::grpcio::CallOption,
293     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListDeviceResponse>> {
294         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_LIST_DEVICE, req, opt)
295     }
296 
list_device_async( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListDeviceResponse>>297     pub fn list_device_async(
298         &self,
299         req: &super::empty::Empty,
300     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListDeviceResponse>> {
301         self.list_device_async_opt(req, ::grpcio::CallOption::default())
302     }
303 
subscribe_device_opt( &self, req: &super::frontend::SubscribeDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::frontend::SubscribeDeviceResponse>304     pub fn subscribe_device_opt(
305         &self,
306         req: &super::frontend::SubscribeDeviceRequest,
307         opt: ::grpcio::CallOption,
308     ) -> ::grpcio::Result<super::frontend::SubscribeDeviceResponse> {
309         self.client.unary_call(&METHOD_FRONTEND_SERVICE_SUBSCRIBE_DEVICE, req, opt)
310     }
311 
subscribe_device( &self, req: &super::frontend::SubscribeDeviceRequest, ) -> ::grpcio::Result<super::frontend::SubscribeDeviceResponse>312     pub fn subscribe_device(
313         &self,
314         req: &super::frontend::SubscribeDeviceRequest,
315     ) -> ::grpcio::Result<super::frontend::SubscribeDeviceResponse> {
316         self.subscribe_device_opt(req, ::grpcio::CallOption::default())
317     }
318 
subscribe_device_async_opt( &self, req: &super::frontend::SubscribeDeviceRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::SubscribeDeviceResponse>>319     pub fn subscribe_device_async_opt(
320         &self,
321         req: &super::frontend::SubscribeDeviceRequest,
322         opt: ::grpcio::CallOption,
323     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::SubscribeDeviceResponse>>
324     {
325         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_SUBSCRIBE_DEVICE, req, opt)
326     }
327 
subscribe_device_async( &self, req: &super::frontend::SubscribeDeviceRequest, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::SubscribeDeviceResponse>>328     pub fn subscribe_device_async(
329         &self,
330         req: &super::frontend::SubscribeDeviceRequest,
331     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::SubscribeDeviceResponse>>
332     {
333         self.subscribe_device_async_opt(req, ::grpcio::CallOption::default())
334     }
335 
patch_capture_opt( &self, req: &super::frontend::PatchCaptureRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::empty::Empty>336     pub fn patch_capture_opt(
337         &self,
338         req: &super::frontend::PatchCaptureRequest,
339         opt: ::grpcio::CallOption,
340     ) -> ::grpcio::Result<super::empty::Empty> {
341         self.client.unary_call(&METHOD_FRONTEND_SERVICE_PATCH_CAPTURE, req, opt)
342     }
343 
patch_capture( &self, req: &super::frontend::PatchCaptureRequest, ) -> ::grpcio::Result<super::empty::Empty>344     pub fn patch_capture(
345         &self,
346         req: &super::frontend::PatchCaptureRequest,
347     ) -> ::grpcio::Result<super::empty::Empty> {
348         self.patch_capture_opt(req, ::grpcio::CallOption::default())
349     }
350 
patch_capture_async_opt( &self, req: &super::frontend::PatchCaptureRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>351     pub fn patch_capture_async_opt(
352         &self,
353         req: &super::frontend::PatchCaptureRequest,
354         opt: ::grpcio::CallOption,
355     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
356         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_PATCH_CAPTURE, req, opt)
357     }
358 
patch_capture_async( &self, req: &super::frontend::PatchCaptureRequest, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>>359     pub fn patch_capture_async(
360         &self,
361         req: &super::frontend::PatchCaptureRequest,
362     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::empty::Empty>> {
363         self.patch_capture_async_opt(req, ::grpcio::CallOption::default())
364     }
365 
list_capture_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<super::frontend::ListCaptureResponse>366     pub fn list_capture_opt(
367         &self,
368         req: &super::empty::Empty,
369         opt: ::grpcio::CallOption,
370     ) -> ::grpcio::Result<super::frontend::ListCaptureResponse> {
371         self.client.unary_call(&METHOD_FRONTEND_SERVICE_LIST_CAPTURE, req, opt)
372     }
373 
list_capture( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<super::frontend::ListCaptureResponse>374     pub fn list_capture(
375         &self,
376         req: &super::empty::Empty,
377     ) -> ::grpcio::Result<super::frontend::ListCaptureResponse> {
378         self.list_capture_opt(req, ::grpcio::CallOption::default())
379     }
380 
list_capture_async_opt( &self, req: &super::empty::Empty, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListCaptureResponse>>381     pub fn list_capture_async_opt(
382         &self,
383         req: &super::empty::Empty,
384         opt: ::grpcio::CallOption,
385     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListCaptureResponse>> {
386         self.client.unary_call_async(&METHOD_FRONTEND_SERVICE_LIST_CAPTURE, req, opt)
387     }
388 
list_capture_async( &self, req: &super::empty::Empty, ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListCaptureResponse>>389     pub fn list_capture_async(
390         &self,
391         req: &super::empty::Empty,
392     ) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::frontend::ListCaptureResponse>> {
393         self.list_capture_async_opt(req, ::grpcio::CallOption::default())
394     }
395 
get_capture_opt( &self, req: &super::frontend::GetCaptureRequest, opt: ::grpcio::CallOption, ) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver<super::frontend::GetCaptureResponse>>396     pub fn get_capture_opt(
397         &self,
398         req: &super::frontend::GetCaptureRequest,
399         opt: ::grpcio::CallOption,
400     ) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver<super::frontend::GetCaptureResponse>>
401     {
402         self.client.server_streaming(&METHOD_FRONTEND_SERVICE_GET_CAPTURE, req, opt)
403     }
404 
get_capture( &self, req: &super::frontend::GetCaptureRequest, ) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver<super::frontend::GetCaptureResponse>>405     pub fn get_capture(
406         &self,
407         req: &super::frontend::GetCaptureRequest,
408     ) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver<super::frontend::GetCaptureResponse>>
409     {
410         self.get_capture_opt(req, ::grpcio::CallOption::default())
411     }
spawn<F>(&self, f: F) where F: ::std::future::Future<Output = ()> + Send + 'static,412     pub fn spawn<F>(&self, f: F)
413     where
414         F: ::std::future::Future<Output = ()> + Send + 'static,
415     {
416         self.client.spawn(f)
417     }
418 }
419 
420 pub trait FrontendService {
get_version( &mut self, ctx: ::grpcio::RpcContext, _req: super::empty::Empty, sink: ::grpcio::UnarySink<super::frontend::VersionResponse>, )421     fn get_version(
422         &mut self,
423         ctx: ::grpcio::RpcContext,
424         _req: super::empty::Empty,
425         sink: ::grpcio::UnarySink<super::frontend::VersionResponse>,
426     ) {
427         grpcio::unimplemented_call!(ctx, sink)
428     }
create_device( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::CreateDeviceRequest, sink: ::grpcio::UnarySink<super::frontend::CreateDeviceResponse>, )429     fn create_device(
430         &mut self,
431         ctx: ::grpcio::RpcContext,
432         _req: super::frontend::CreateDeviceRequest,
433         sink: ::grpcio::UnarySink<super::frontend::CreateDeviceResponse>,
434     ) {
435         grpcio::unimplemented_call!(ctx, sink)
436     }
delete_chip( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::DeleteChipRequest, sink: ::grpcio::UnarySink<super::empty::Empty>, )437     fn delete_chip(
438         &mut self,
439         ctx: ::grpcio::RpcContext,
440         _req: super::frontend::DeleteChipRequest,
441         sink: ::grpcio::UnarySink<super::empty::Empty>,
442     ) {
443         grpcio::unimplemented_call!(ctx, sink)
444     }
patch_device( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::PatchDeviceRequest, sink: ::grpcio::UnarySink<super::empty::Empty>, )445     fn patch_device(
446         &mut self,
447         ctx: ::grpcio::RpcContext,
448         _req: super::frontend::PatchDeviceRequest,
449         sink: ::grpcio::UnarySink<super::empty::Empty>,
450     ) {
451         grpcio::unimplemented_call!(ctx, sink)
452     }
reset( &mut self, ctx: ::grpcio::RpcContext, _req: super::empty::Empty, sink: ::grpcio::UnarySink<super::empty::Empty>, )453     fn reset(
454         &mut self,
455         ctx: ::grpcio::RpcContext,
456         _req: super::empty::Empty,
457         sink: ::grpcio::UnarySink<super::empty::Empty>,
458     ) {
459         grpcio::unimplemented_call!(ctx, sink)
460     }
list_device( &mut self, ctx: ::grpcio::RpcContext, _req: super::empty::Empty, sink: ::grpcio::UnarySink<super::frontend::ListDeviceResponse>, )461     fn list_device(
462         &mut self,
463         ctx: ::grpcio::RpcContext,
464         _req: super::empty::Empty,
465         sink: ::grpcio::UnarySink<super::frontend::ListDeviceResponse>,
466     ) {
467         grpcio::unimplemented_call!(ctx, sink)
468     }
subscribe_device( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::SubscribeDeviceRequest, sink: ::grpcio::UnarySink<super::frontend::SubscribeDeviceResponse>, )469     fn subscribe_device(
470         &mut self,
471         ctx: ::grpcio::RpcContext,
472         _req: super::frontend::SubscribeDeviceRequest,
473         sink: ::grpcio::UnarySink<super::frontend::SubscribeDeviceResponse>,
474     ) {
475         grpcio::unimplemented_call!(ctx, sink)
476     }
patch_capture( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::PatchCaptureRequest, sink: ::grpcio::UnarySink<super::empty::Empty>, )477     fn patch_capture(
478         &mut self,
479         ctx: ::grpcio::RpcContext,
480         _req: super::frontend::PatchCaptureRequest,
481         sink: ::grpcio::UnarySink<super::empty::Empty>,
482     ) {
483         grpcio::unimplemented_call!(ctx, sink)
484     }
list_capture( &mut self, ctx: ::grpcio::RpcContext, _req: super::empty::Empty, sink: ::grpcio::UnarySink<super::frontend::ListCaptureResponse>, )485     fn list_capture(
486         &mut self,
487         ctx: ::grpcio::RpcContext,
488         _req: super::empty::Empty,
489         sink: ::grpcio::UnarySink<super::frontend::ListCaptureResponse>,
490     ) {
491         grpcio::unimplemented_call!(ctx, sink)
492     }
get_capture( &mut self, ctx: ::grpcio::RpcContext, _req: super::frontend::GetCaptureRequest, sink: ::grpcio::ServerStreamingSink<super::frontend::GetCaptureResponse>, )493     fn get_capture(
494         &mut self,
495         ctx: ::grpcio::RpcContext,
496         _req: super::frontend::GetCaptureRequest,
497         sink: ::grpcio::ServerStreamingSink<super::frontend::GetCaptureResponse>,
498     ) {
499         grpcio::unimplemented_call!(ctx, sink)
500     }
501 }
502 
create_frontend_service<S: FrontendService + Send + Clone + 'static>( s: S, ) -> ::grpcio::Service503 pub fn create_frontend_service<S: FrontendService + Send + Clone + 'static>(
504     s: S,
505 ) -> ::grpcio::Service {
506     let mut builder = ::grpcio::ServiceBuilder::new();
507     let mut instance = s.clone();
508     builder = builder
509         .add_unary_handler(&METHOD_FRONTEND_SERVICE_GET_VERSION, move |ctx, req, resp| {
510             instance.get_version(ctx, req, resp)
511         });
512     let mut instance = s.clone();
513     builder = builder
514         .add_unary_handler(&METHOD_FRONTEND_SERVICE_CREATE_DEVICE, move |ctx, req, resp| {
515             instance.create_device(ctx, req, resp)
516         });
517     let mut instance = s.clone();
518     builder = builder
519         .add_unary_handler(&METHOD_FRONTEND_SERVICE_DELETE_CHIP, move |ctx, req, resp| {
520             instance.delete_chip(ctx, req, resp)
521         });
522     let mut instance = s.clone();
523     builder = builder
524         .add_unary_handler(&METHOD_FRONTEND_SERVICE_PATCH_DEVICE, move |ctx, req, resp| {
525             instance.patch_device(ctx, req, resp)
526         });
527     let mut instance = s.clone();
528     builder = builder.add_unary_handler(&METHOD_FRONTEND_SERVICE_RESET, move |ctx, req, resp| {
529         instance.reset(ctx, req, resp)
530     });
531     let mut instance = s.clone();
532     builder = builder
533         .add_unary_handler(&METHOD_FRONTEND_SERVICE_LIST_DEVICE, move |ctx, req, resp| {
534             instance.list_device(ctx, req, resp)
535         });
536     let mut instance = s.clone();
537     builder = builder
538         .add_unary_handler(&METHOD_FRONTEND_SERVICE_SUBSCRIBE_DEVICE, move |ctx, req, resp| {
539             instance.subscribe_device(ctx, req, resp)
540         });
541     let mut instance = s.clone();
542     builder = builder
543         .add_unary_handler(&METHOD_FRONTEND_SERVICE_PATCH_CAPTURE, move |ctx, req, resp| {
544             instance.patch_capture(ctx, req, resp)
545         });
546     let mut instance = s.clone();
547     builder = builder
548         .add_unary_handler(&METHOD_FRONTEND_SERVICE_LIST_CAPTURE, move |ctx, req, resp| {
549             instance.list_capture(ctx, req, resp)
550         });
551     let mut instance = s;
552     builder = builder.add_server_streaming_handler(
553         &METHOD_FRONTEND_SERVICE_GET_CAPTURE,
554         move |ctx, req, resp| instance.get_capture(ctx, req, resp),
555     );
556     builder.build()
557 }
558