xref: /aosp_15_r20/tools/netsim/rust/proto/src/frontend.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 // This file is generated by rust-protobuf 3.2.0. Do not edit
2 // .proto file is parsed by protoc 3.21.12
3 // @generated
4 
5 // https://github.com/rust-lang/rust-clippy/issues/702
6 #![allow(unknown_lints)]
7 #![allow(clippy::all)]
8 
9 #![allow(unused_attributes)]
10 #![cfg_attr(rustfmt, rustfmt::skip)]
11 
12 #![allow(dead_code)]
13 #![allow(missing_docs)]
14 #![allow(non_camel_case_types)]
15 #![allow(non_snake_case)]
16 #![allow(non_upper_case_globals)]
17 #![allow(trivial_casts)]
18 #![allow(unused_results)]
19 #![allow(unused_mut)]
20 
21 //! Generated file from `netsim/frontend.proto`
22 
23 /// Generated files are compatible only with the same version
24 /// of protobuf runtime.
25 const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
26 
27 #[derive(PartialEq,Clone,Default,Debug)]
28 // @@protoc_insertion_point(message:netsim.frontend.VersionResponse)
29 pub struct VersionResponse {
30     // message fields
31     // @@protoc_insertion_point(field:netsim.frontend.VersionResponse.version)
32     pub version: ::std::string::String,
33     // special fields
34     // @@protoc_insertion_point(special_field:netsim.frontend.VersionResponse.special_fields)
35     pub special_fields: ::protobuf::SpecialFields,
36 }
37 
38 impl<'a> ::std::default::Default for &'a VersionResponse {
default() -> &'a VersionResponse39     fn default() -> &'a VersionResponse {
40         <VersionResponse as ::protobuf::Message>::default_instance()
41     }
42 }
43 
44 impl VersionResponse {
new() -> VersionResponse45     pub fn new() -> VersionResponse {
46         ::std::default::Default::default()
47     }
48 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData49     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
50         let mut fields = ::std::vec::Vec::with_capacity(1);
51         let mut oneofs = ::std::vec::Vec::with_capacity(0);
52         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
53             "version",
54             |m: &VersionResponse| { &m.version },
55             |m: &mut VersionResponse| { &mut m.version },
56         ));
57         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<VersionResponse>(
58             "VersionResponse",
59             fields,
60             oneofs,
61         )
62     }
63 }
64 
65 impl ::protobuf::Message for VersionResponse {
66     const NAME: &'static str = "VersionResponse";
67 
is_initialized(&self) -> bool68     fn is_initialized(&self) -> bool {
69         true
70     }
71 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>72     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
73         while let Some(tag) = is.read_raw_tag_or_eof()? {
74             match tag {
75                 10 => {
76                     self.version = is.read_string()?;
77                 },
78                 tag => {
79                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
80                 },
81             };
82         }
83         ::std::result::Result::Ok(())
84     }
85 
86     // Compute sizes of nested messages
87     #[allow(unused_variables)]
compute_size(&self) -> u6488     fn compute_size(&self) -> u64 {
89         let mut my_size = 0;
90         if !self.version.is_empty() {
91             my_size += ::protobuf::rt::string_size(1, &self.version);
92         }
93         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
94         self.special_fields.cached_size().set(my_size as u32);
95         my_size
96     }
97 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>98     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
99         if !self.version.is_empty() {
100             os.write_string(1, &self.version)?;
101         }
102         os.write_unknown_fields(self.special_fields.unknown_fields())?;
103         ::std::result::Result::Ok(())
104     }
105 
special_fields(&self) -> &::protobuf::SpecialFields106     fn special_fields(&self) -> &::protobuf::SpecialFields {
107         &self.special_fields
108     }
109 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields110     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
111         &mut self.special_fields
112     }
113 
new() -> VersionResponse114     fn new() -> VersionResponse {
115         VersionResponse::new()
116     }
117 
clear(&mut self)118     fn clear(&mut self) {
119         self.version.clear();
120         self.special_fields.clear();
121     }
122 
default_instance() -> &'static VersionResponse123     fn default_instance() -> &'static VersionResponse {
124         static instance: VersionResponse = VersionResponse {
125             version: ::std::string::String::new(),
126             special_fields: ::protobuf::SpecialFields::new(),
127         };
128         &instance
129     }
130 }
131 
132 impl ::protobuf::MessageFull for VersionResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor133     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
134         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
135         descriptor.get(|| file_descriptor().message_by_package_relative_name("VersionResponse").unwrap()).clone()
136     }
137 }
138 
139 impl ::std::fmt::Display for VersionResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result140     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
141         ::protobuf::text_format::fmt(self, f)
142     }
143 }
144 
145 impl ::protobuf::reflect::ProtobufValue for VersionResponse {
146     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
147 }
148 
149 #[derive(PartialEq,Clone,Default,Debug)]
150 // @@protoc_insertion_point(message:netsim.frontend.CreateDeviceRequest)
151 pub struct CreateDeviceRequest {
152     // message fields
153     // @@protoc_insertion_point(field:netsim.frontend.CreateDeviceRequest.device)
154     pub device: ::protobuf::MessageField<super::model::DeviceCreate>,
155     // special fields
156     // @@protoc_insertion_point(special_field:netsim.frontend.CreateDeviceRequest.special_fields)
157     pub special_fields: ::protobuf::SpecialFields,
158 }
159 
160 impl<'a> ::std::default::Default for &'a CreateDeviceRequest {
default() -> &'a CreateDeviceRequest161     fn default() -> &'a CreateDeviceRequest {
162         <CreateDeviceRequest as ::protobuf::Message>::default_instance()
163     }
164 }
165 
166 impl CreateDeviceRequest {
new() -> CreateDeviceRequest167     pub fn new() -> CreateDeviceRequest {
168         ::std::default::Default::default()
169     }
170 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData171     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
172         let mut fields = ::std::vec::Vec::with_capacity(1);
173         let mut oneofs = ::std::vec::Vec::with_capacity(0);
174         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::model::DeviceCreate>(
175             "device",
176             |m: &CreateDeviceRequest| { &m.device },
177             |m: &mut CreateDeviceRequest| { &mut m.device },
178         ));
179         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CreateDeviceRequest>(
180             "CreateDeviceRequest",
181             fields,
182             oneofs,
183         )
184     }
185 }
186 
187 impl ::protobuf::Message for CreateDeviceRequest {
188     const NAME: &'static str = "CreateDeviceRequest";
189 
is_initialized(&self) -> bool190     fn is_initialized(&self) -> bool {
191         true
192     }
193 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>194     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
195         while let Some(tag) = is.read_raw_tag_or_eof()? {
196             match tag {
197                 10 => {
198                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.device)?;
199                 },
200                 tag => {
201                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
202                 },
203             };
204         }
205         ::std::result::Result::Ok(())
206     }
207 
208     // Compute sizes of nested messages
209     #[allow(unused_variables)]
compute_size(&self) -> u64210     fn compute_size(&self) -> u64 {
211         let mut my_size = 0;
212         if let Some(v) = self.device.as_ref() {
213             let len = v.compute_size();
214             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
215         }
216         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
217         self.special_fields.cached_size().set(my_size as u32);
218         my_size
219     }
220 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>221     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
222         if let Some(v) = self.device.as_ref() {
223             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
224         }
225         os.write_unknown_fields(self.special_fields.unknown_fields())?;
226         ::std::result::Result::Ok(())
227     }
228 
special_fields(&self) -> &::protobuf::SpecialFields229     fn special_fields(&self) -> &::protobuf::SpecialFields {
230         &self.special_fields
231     }
232 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields233     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
234         &mut self.special_fields
235     }
236 
new() -> CreateDeviceRequest237     fn new() -> CreateDeviceRequest {
238         CreateDeviceRequest::new()
239     }
240 
clear(&mut self)241     fn clear(&mut self) {
242         self.device.clear();
243         self.special_fields.clear();
244     }
245 
default_instance() -> &'static CreateDeviceRequest246     fn default_instance() -> &'static CreateDeviceRequest {
247         static instance: CreateDeviceRequest = CreateDeviceRequest {
248             device: ::protobuf::MessageField::none(),
249             special_fields: ::protobuf::SpecialFields::new(),
250         };
251         &instance
252     }
253 }
254 
255 impl ::protobuf::MessageFull for CreateDeviceRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor256     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
257         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
258         descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDeviceRequest").unwrap()).clone()
259     }
260 }
261 
262 impl ::std::fmt::Display for CreateDeviceRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result263     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
264         ::protobuf::text_format::fmt(self, f)
265     }
266 }
267 
268 impl ::protobuf::reflect::ProtobufValue for CreateDeviceRequest {
269     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
270 }
271 
272 #[derive(PartialEq,Clone,Default,Debug)]
273 // @@protoc_insertion_point(message:netsim.frontend.CreateDeviceResponse)
274 pub struct CreateDeviceResponse {
275     // message fields
276     // @@protoc_insertion_point(field:netsim.frontend.CreateDeviceResponse.device)
277     pub device: ::protobuf::MessageField<super::model::Device>,
278     // special fields
279     // @@protoc_insertion_point(special_field:netsim.frontend.CreateDeviceResponse.special_fields)
280     pub special_fields: ::protobuf::SpecialFields,
281 }
282 
283 impl<'a> ::std::default::Default for &'a CreateDeviceResponse {
default() -> &'a CreateDeviceResponse284     fn default() -> &'a CreateDeviceResponse {
285         <CreateDeviceResponse as ::protobuf::Message>::default_instance()
286     }
287 }
288 
289 impl CreateDeviceResponse {
new() -> CreateDeviceResponse290     pub fn new() -> CreateDeviceResponse {
291         ::std::default::Default::default()
292     }
293 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData294     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
295         let mut fields = ::std::vec::Vec::with_capacity(1);
296         let mut oneofs = ::std::vec::Vec::with_capacity(0);
297         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::model::Device>(
298             "device",
299             |m: &CreateDeviceResponse| { &m.device },
300             |m: &mut CreateDeviceResponse| { &mut m.device },
301         ));
302         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CreateDeviceResponse>(
303             "CreateDeviceResponse",
304             fields,
305             oneofs,
306         )
307     }
308 }
309 
310 impl ::protobuf::Message for CreateDeviceResponse {
311     const NAME: &'static str = "CreateDeviceResponse";
312 
is_initialized(&self) -> bool313     fn is_initialized(&self) -> bool {
314         true
315     }
316 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>317     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
318         while let Some(tag) = is.read_raw_tag_or_eof()? {
319             match tag {
320                 10 => {
321                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.device)?;
322                 },
323                 tag => {
324                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
325                 },
326             };
327         }
328         ::std::result::Result::Ok(())
329     }
330 
331     // Compute sizes of nested messages
332     #[allow(unused_variables)]
compute_size(&self) -> u64333     fn compute_size(&self) -> u64 {
334         let mut my_size = 0;
335         if let Some(v) = self.device.as_ref() {
336             let len = v.compute_size();
337             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
338         }
339         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
340         self.special_fields.cached_size().set(my_size as u32);
341         my_size
342     }
343 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>344     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
345         if let Some(v) = self.device.as_ref() {
346             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
347         }
348         os.write_unknown_fields(self.special_fields.unknown_fields())?;
349         ::std::result::Result::Ok(())
350     }
351 
special_fields(&self) -> &::protobuf::SpecialFields352     fn special_fields(&self) -> &::protobuf::SpecialFields {
353         &self.special_fields
354     }
355 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields356     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
357         &mut self.special_fields
358     }
359 
new() -> CreateDeviceResponse360     fn new() -> CreateDeviceResponse {
361         CreateDeviceResponse::new()
362     }
363 
clear(&mut self)364     fn clear(&mut self) {
365         self.device.clear();
366         self.special_fields.clear();
367     }
368 
default_instance() -> &'static CreateDeviceResponse369     fn default_instance() -> &'static CreateDeviceResponse {
370         static instance: CreateDeviceResponse = CreateDeviceResponse {
371             device: ::protobuf::MessageField::none(),
372             special_fields: ::protobuf::SpecialFields::new(),
373         };
374         &instance
375     }
376 }
377 
378 impl ::protobuf::MessageFull for CreateDeviceResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor379     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
380         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
381         descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDeviceResponse").unwrap()).clone()
382     }
383 }
384 
385 impl ::std::fmt::Display for CreateDeviceResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result386     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
387         ::protobuf::text_format::fmt(self, f)
388     }
389 }
390 
391 impl ::protobuf::reflect::ProtobufValue for CreateDeviceResponse {
392     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
393 }
394 
395 #[derive(PartialEq,Clone,Default,Debug)]
396 // @@protoc_insertion_point(message:netsim.frontend.DeleteChipRequest)
397 pub struct DeleteChipRequest {
398     // message fields
399     // @@protoc_insertion_point(field:netsim.frontend.DeleteChipRequest.id)
400     pub id: u32,
401     // special fields
402     // @@protoc_insertion_point(special_field:netsim.frontend.DeleteChipRequest.special_fields)
403     pub special_fields: ::protobuf::SpecialFields,
404 }
405 
406 impl<'a> ::std::default::Default for &'a DeleteChipRequest {
default() -> &'a DeleteChipRequest407     fn default() -> &'a DeleteChipRequest {
408         <DeleteChipRequest as ::protobuf::Message>::default_instance()
409     }
410 }
411 
412 impl DeleteChipRequest {
new() -> DeleteChipRequest413     pub fn new() -> DeleteChipRequest {
414         ::std::default::Default::default()
415     }
416 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData417     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
418         let mut fields = ::std::vec::Vec::with_capacity(1);
419         let mut oneofs = ::std::vec::Vec::with_capacity(0);
420         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
421             "id",
422             |m: &DeleteChipRequest| { &m.id },
423             |m: &mut DeleteChipRequest| { &mut m.id },
424         ));
425         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DeleteChipRequest>(
426             "DeleteChipRequest",
427             fields,
428             oneofs,
429         )
430     }
431 }
432 
433 impl ::protobuf::Message for DeleteChipRequest {
434     const NAME: &'static str = "DeleteChipRequest";
435 
is_initialized(&self) -> bool436     fn is_initialized(&self) -> bool {
437         true
438     }
439 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>440     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
441         while let Some(tag) = is.read_raw_tag_or_eof()? {
442             match tag {
443                 16 => {
444                     self.id = is.read_uint32()?;
445                 },
446                 tag => {
447                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
448                 },
449             };
450         }
451         ::std::result::Result::Ok(())
452     }
453 
454     // Compute sizes of nested messages
455     #[allow(unused_variables)]
compute_size(&self) -> u64456     fn compute_size(&self) -> u64 {
457         let mut my_size = 0;
458         if self.id != 0 {
459             my_size += ::protobuf::rt::uint32_size(2, self.id);
460         }
461         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
462         self.special_fields.cached_size().set(my_size as u32);
463         my_size
464     }
465 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>466     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
467         if self.id != 0 {
468             os.write_uint32(2, self.id)?;
469         }
470         os.write_unknown_fields(self.special_fields.unknown_fields())?;
471         ::std::result::Result::Ok(())
472     }
473 
special_fields(&self) -> &::protobuf::SpecialFields474     fn special_fields(&self) -> &::protobuf::SpecialFields {
475         &self.special_fields
476     }
477 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields478     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
479         &mut self.special_fields
480     }
481 
new() -> DeleteChipRequest482     fn new() -> DeleteChipRequest {
483         DeleteChipRequest::new()
484     }
485 
clear(&mut self)486     fn clear(&mut self) {
487         self.id = 0;
488         self.special_fields.clear();
489     }
490 
default_instance() -> &'static DeleteChipRequest491     fn default_instance() -> &'static DeleteChipRequest {
492         static instance: DeleteChipRequest = DeleteChipRequest {
493             id: 0,
494             special_fields: ::protobuf::SpecialFields::new(),
495         };
496         &instance
497     }
498 }
499 
500 impl ::protobuf::MessageFull for DeleteChipRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor501     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
502         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
503         descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteChipRequest").unwrap()).clone()
504     }
505 }
506 
507 impl ::std::fmt::Display for DeleteChipRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result508     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
509         ::protobuf::text_format::fmt(self, f)
510     }
511 }
512 
513 impl ::protobuf::reflect::ProtobufValue for DeleteChipRequest {
514     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
515 }
516 
517 #[derive(PartialEq,Clone,Default,Debug)]
518 // @@protoc_insertion_point(message:netsim.frontend.PatchDeviceRequest)
519 pub struct PatchDeviceRequest {
520     // message fields
521     // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.id)
522     pub id: ::std::option::Option<u32>,
523     // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.device)
524     pub device: ::protobuf::MessageField<patch_device_request::PatchDeviceFields>,
525     // special fields
526     // @@protoc_insertion_point(special_field:netsim.frontend.PatchDeviceRequest.special_fields)
527     pub special_fields: ::protobuf::SpecialFields,
528 }
529 
530 impl<'a> ::std::default::Default for &'a PatchDeviceRequest {
default() -> &'a PatchDeviceRequest531     fn default() -> &'a PatchDeviceRequest {
532         <PatchDeviceRequest as ::protobuf::Message>::default_instance()
533     }
534 }
535 
536 impl PatchDeviceRequest {
new() -> PatchDeviceRequest537     pub fn new() -> PatchDeviceRequest {
538         ::std::default::Default::default()
539     }
540 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData541     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
542         let mut fields = ::std::vec::Vec::with_capacity(2);
543         let mut oneofs = ::std::vec::Vec::with_capacity(0);
544         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
545             "id",
546             |m: &PatchDeviceRequest| { &m.id },
547             |m: &mut PatchDeviceRequest| { &mut m.id },
548         ));
549         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, patch_device_request::PatchDeviceFields>(
550             "device",
551             |m: &PatchDeviceRequest| { &m.device },
552             |m: &mut PatchDeviceRequest| { &mut m.device },
553         ));
554         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<PatchDeviceRequest>(
555             "PatchDeviceRequest",
556             fields,
557             oneofs,
558         )
559     }
560 }
561 
562 impl ::protobuf::Message for PatchDeviceRequest {
563     const NAME: &'static str = "PatchDeviceRequest";
564 
is_initialized(&self) -> bool565     fn is_initialized(&self) -> bool {
566         true
567     }
568 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>569     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
570         while let Some(tag) = is.read_raw_tag_or_eof()? {
571             match tag {
572                 8 => {
573                     self.id = ::std::option::Option::Some(is.read_uint32()?);
574                 },
575                 18 => {
576                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.device)?;
577                 },
578                 tag => {
579                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
580                 },
581             };
582         }
583         ::std::result::Result::Ok(())
584     }
585 
586     // Compute sizes of nested messages
587     #[allow(unused_variables)]
compute_size(&self) -> u64588     fn compute_size(&self) -> u64 {
589         let mut my_size = 0;
590         if let Some(v) = self.id {
591             my_size += ::protobuf::rt::uint32_size(1, v);
592         }
593         if let Some(v) = self.device.as_ref() {
594             let len = v.compute_size();
595             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
596         }
597         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
598         self.special_fields.cached_size().set(my_size as u32);
599         my_size
600     }
601 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>602     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
603         if let Some(v) = self.id {
604             os.write_uint32(1, v)?;
605         }
606         if let Some(v) = self.device.as_ref() {
607             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
608         }
609         os.write_unknown_fields(self.special_fields.unknown_fields())?;
610         ::std::result::Result::Ok(())
611     }
612 
special_fields(&self) -> &::protobuf::SpecialFields613     fn special_fields(&self) -> &::protobuf::SpecialFields {
614         &self.special_fields
615     }
616 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields617     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
618         &mut self.special_fields
619     }
620 
new() -> PatchDeviceRequest621     fn new() -> PatchDeviceRequest {
622         PatchDeviceRequest::new()
623     }
624 
clear(&mut self)625     fn clear(&mut self) {
626         self.id = ::std::option::Option::None;
627         self.device.clear();
628         self.special_fields.clear();
629     }
630 
default_instance() -> &'static PatchDeviceRequest631     fn default_instance() -> &'static PatchDeviceRequest {
632         static instance: PatchDeviceRequest = PatchDeviceRequest {
633             id: ::std::option::Option::None,
634             device: ::protobuf::MessageField::none(),
635             special_fields: ::protobuf::SpecialFields::new(),
636         };
637         &instance
638     }
639 }
640 
641 impl ::protobuf::MessageFull for PatchDeviceRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor642     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
643         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
644         descriptor.get(|| file_descriptor().message_by_package_relative_name("PatchDeviceRequest").unwrap()).clone()
645     }
646 }
647 
648 impl ::std::fmt::Display for PatchDeviceRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result649     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
650         ::protobuf::text_format::fmt(self, f)
651     }
652 }
653 
654 impl ::protobuf::reflect::ProtobufValue for PatchDeviceRequest {
655     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
656 }
657 
658 /// Nested message and enums of message `PatchDeviceRequest`
659 pub mod patch_device_request {
660     #[derive(PartialEq,Clone,Default,Debug)]
661     // @@protoc_insertion_point(message:netsim.frontend.PatchDeviceRequest.PatchDeviceFields)
662     pub struct PatchDeviceFields {
663         // message fields
664         // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.name)
665         pub name: ::std::option::Option<::std::string::String>,
666         // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.visible)
667         pub visible: ::std::option::Option<bool>,
668         // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.position)
669         pub position: ::protobuf::MessageField<super::super::model::Position>,
670         // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.orientation)
671         pub orientation: ::protobuf::MessageField<super::super::model::Orientation>,
672         // @@protoc_insertion_point(field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.chips)
673         pub chips: ::std::vec::Vec<super::super::model::Chip>,
674         // special fields
675         // @@protoc_insertion_point(special_field:netsim.frontend.PatchDeviceRequest.PatchDeviceFields.special_fields)
676         pub special_fields: ::protobuf::SpecialFields,
677     }
678 
679     impl<'a> ::std::default::Default for &'a PatchDeviceFields {
default() -> &'a PatchDeviceFields680         fn default() -> &'a PatchDeviceFields {
681             <PatchDeviceFields as ::protobuf::Message>::default_instance()
682         }
683     }
684 
685     impl PatchDeviceFields {
new() -> PatchDeviceFields686         pub fn new() -> PatchDeviceFields {
687             ::std::default::Default::default()
688         }
689 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData690         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
691             let mut fields = ::std::vec::Vec::with_capacity(5);
692             let mut oneofs = ::std::vec::Vec::with_capacity(0);
693             fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
694                 "name",
695                 |m: &PatchDeviceFields| { &m.name },
696                 |m: &mut PatchDeviceFields| { &mut m.name },
697             ));
698             fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
699                 "visible",
700                 |m: &PatchDeviceFields| { &m.visible },
701                 |m: &mut PatchDeviceFields| { &mut m.visible },
702             ));
703             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::model::Position>(
704                 "position",
705                 |m: &PatchDeviceFields| { &m.position },
706                 |m: &mut PatchDeviceFields| { &mut m.position },
707             ));
708             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::model::Orientation>(
709                 "orientation",
710                 |m: &PatchDeviceFields| { &m.orientation },
711                 |m: &mut PatchDeviceFields| { &mut m.orientation },
712             ));
713             fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
714                 "chips",
715                 |m: &PatchDeviceFields| { &m.chips },
716                 |m: &mut PatchDeviceFields| { &mut m.chips },
717             ));
718             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<PatchDeviceFields>(
719                 "PatchDeviceRequest.PatchDeviceFields",
720                 fields,
721                 oneofs,
722             )
723         }
724     }
725 
726     impl ::protobuf::Message for PatchDeviceFields {
727         const NAME: &'static str = "PatchDeviceFields";
728 
is_initialized(&self) -> bool729         fn is_initialized(&self) -> bool {
730             true
731         }
732 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>733         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
734             while let Some(tag) = is.read_raw_tag_or_eof()? {
735                 match tag {
736                     18 => {
737                         self.name = ::std::option::Option::Some(is.read_string()?);
738                     },
739                     24 => {
740                         self.visible = ::std::option::Option::Some(is.read_bool()?);
741                     },
742                     34 => {
743                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.position)?;
744                     },
745                     42 => {
746                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.orientation)?;
747                     },
748                     50 => {
749                         self.chips.push(is.read_message()?);
750                     },
751                     tag => {
752                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
753                     },
754                 };
755             }
756             ::std::result::Result::Ok(())
757         }
758 
759         // Compute sizes of nested messages
760         #[allow(unused_variables)]
compute_size(&self) -> u64761         fn compute_size(&self) -> u64 {
762             let mut my_size = 0;
763             if let Some(v) = self.name.as_ref() {
764                 my_size += ::protobuf::rt::string_size(2, &v);
765             }
766             if let Some(v) = self.visible {
767                 my_size += 1 + 1;
768             }
769             if let Some(v) = self.position.as_ref() {
770                 let len = v.compute_size();
771                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
772             }
773             if let Some(v) = self.orientation.as_ref() {
774                 let len = v.compute_size();
775                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
776             }
777             for value in &self.chips {
778                 let len = value.compute_size();
779                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
780             };
781             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
782             self.special_fields.cached_size().set(my_size as u32);
783             my_size
784         }
785 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>786         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
787             if let Some(v) = self.name.as_ref() {
788                 os.write_string(2, v)?;
789             }
790             if let Some(v) = self.visible {
791                 os.write_bool(3, v)?;
792             }
793             if let Some(v) = self.position.as_ref() {
794                 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
795             }
796             if let Some(v) = self.orientation.as_ref() {
797                 ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
798             }
799             for v in &self.chips {
800                 ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
801             };
802             os.write_unknown_fields(self.special_fields.unknown_fields())?;
803             ::std::result::Result::Ok(())
804         }
805 
special_fields(&self) -> &::protobuf::SpecialFields806         fn special_fields(&self) -> &::protobuf::SpecialFields {
807             &self.special_fields
808         }
809 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields810         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
811             &mut self.special_fields
812         }
813 
new() -> PatchDeviceFields814         fn new() -> PatchDeviceFields {
815             PatchDeviceFields::new()
816         }
817 
clear(&mut self)818         fn clear(&mut self) {
819             self.name = ::std::option::Option::None;
820             self.visible = ::std::option::Option::None;
821             self.position.clear();
822             self.orientation.clear();
823             self.chips.clear();
824             self.special_fields.clear();
825         }
826 
default_instance() -> &'static PatchDeviceFields827         fn default_instance() -> &'static PatchDeviceFields {
828             static instance: PatchDeviceFields = PatchDeviceFields {
829                 name: ::std::option::Option::None,
830                 visible: ::std::option::Option::None,
831                 position: ::protobuf::MessageField::none(),
832                 orientation: ::protobuf::MessageField::none(),
833                 chips: ::std::vec::Vec::new(),
834                 special_fields: ::protobuf::SpecialFields::new(),
835             };
836             &instance
837         }
838     }
839 
840     impl ::protobuf::MessageFull for PatchDeviceFields {
descriptor() -> ::protobuf::reflect::MessageDescriptor841         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
842             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
843             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PatchDeviceRequest.PatchDeviceFields").unwrap()).clone()
844         }
845     }
846 
847     impl ::std::fmt::Display for PatchDeviceFields {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result848         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
849             ::protobuf::text_format::fmt(self, f)
850         }
851     }
852 
853     impl ::protobuf::reflect::ProtobufValue for PatchDeviceFields {
854         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
855     }
856 }
857 
858 #[derive(PartialEq,Clone,Default,Debug)]
859 // @@protoc_insertion_point(message:netsim.frontend.ListDeviceResponse)
860 pub struct ListDeviceResponse {
861     // message fields
862     // @@protoc_insertion_point(field:netsim.frontend.ListDeviceResponse.devices)
863     pub devices: ::std::vec::Vec<super::model::Device>,
864     // @@protoc_insertion_point(field:netsim.frontend.ListDeviceResponse.last_modified)
865     pub last_modified: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>,
866     // special fields
867     // @@protoc_insertion_point(special_field:netsim.frontend.ListDeviceResponse.special_fields)
868     pub special_fields: ::protobuf::SpecialFields,
869 }
870 
871 impl<'a> ::std::default::Default for &'a ListDeviceResponse {
default() -> &'a ListDeviceResponse872     fn default() -> &'a ListDeviceResponse {
873         <ListDeviceResponse as ::protobuf::Message>::default_instance()
874     }
875 }
876 
877 impl ListDeviceResponse {
new() -> ListDeviceResponse878     pub fn new() -> ListDeviceResponse {
879         ::std::default::Default::default()
880     }
881 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData882     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
883         let mut fields = ::std::vec::Vec::with_capacity(2);
884         let mut oneofs = ::std::vec::Vec::with_capacity(0);
885         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
886             "devices",
887             |m: &ListDeviceResponse| { &m.devices },
888             |m: &mut ListDeviceResponse| { &mut m.devices },
889         ));
890         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>(
891             "last_modified",
892             |m: &ListDeviceResponse| { &m.last_modified },
893             |m: &mut ListDeviceResponse| { &mut m.last_modified },
894         ));
895         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ListDeviceResponse>(
896             "ListDeviceResponse",
897             fields,
898             oneofs,
899         )
900     }
901 }
902 
903 impl ::protobuf::Message for ListDeviceResponse {
904     const NAME: &'static str = "ListDeviceResponse";
905 
is_initialized(&self) -> bool906     fn is_initialized(&self) -> bool {
907         true
908     }
909 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>910     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
911         while let Some(tag) = is.read_raw_tag_or_eof()? {
912             match tag {
913                 10 => {
914                     self.devices.push(is.read_message()?);
915                 },
916                 18 => {
917                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.last_modified)?;
918                 },
919                 tag => {
920                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
921                 },
922             };
923         }
924         ::std::result::Result::Ok(())
925     }
926 
927     // Compute sizes of nested messages
928     #[allow(unused_variables)]
compute_size(&self) -> u64929     fn compute_size(&self) -> u64 {
930         let mut my_size = 0;
931         for value in &self.devices {
932             let len = value.compute_size();
933             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
934         };
935         if let Some(v) = self.last_modified.as_ref() {
936             let len = v.compute_size();
937             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
938         }
939         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
940         self.special_fields.cached_size().set(my_size as u32);
941         my_size
942     }
943 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>944     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
945         for v in &self.devices {
946             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
947         };
948         if let Some(v) = self.last_modified.as_ref() {
949             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
950         }
951         os.write_unknown_fields(self.special_fields.unknown_fields())?;
952         ::std::result::Result::Ok(())
953     }
954 
special_fields(&self) -> &::protobuf::SpecialFields955     fn special_fields(&self) -> &::protobuf::SpecialFields {
956         &self.special_fields
957     }
958 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields959     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
960         &mut self.special_fields
961     }
962 
new() -> ListDeviceResponse963     fn new() -> ListDeviceResponse {
964         ListDeviceResponse::new()
965     }
966 
clear(&mut self)967     fn clear(&mut self) {
968         self.devices.clear();
969         self.last_modified.clear();
970         self.special_fields.clear();
971     }
972 
default_instance() -> &'static ListDeviceResponse973     fn default_instance() -> &'static ListDeviceResponse {
974         static instance: ListDeviceResponse = ListDeviceResponse {
975             devices: ::std::vec::Vec::new(),
976             last_modified: ::protobuf::MessageField::none(),
977             special_fields: ::protobuf::SpecialFields::new(),
978         };
979         &instance
980     }
981 }
982 
983 impl ::protobuf::MessageFull for ListDeviceResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor984     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
985         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
986         descriptor.get(|| file_descriptor().message_by_package_relative_name("ListDeviceResponse").unwrap()).clone()
987     }
988 }
989 
990 impl ::std::fmt::Display for ListDeviceResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result991     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
992         ::protobuf::text_format::fmt(self, f)
993     }
994 }
995 
996 impl ::protobuf::reflect::ProtobufValue for ListDeviceResponse {
997     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
998 }
999 
1000 #[derive(PartialEq,Clone,Default,Debug)]
1001 // @@protoc_insertion_point(message:netsim.frontend.SubscribeDeviceRequest)
1002 pub struct SubscribeDeviceRequest {
1003     // message fields
1004     // @@protoc_insertion_point(field:netsim.frontend.SubscribeDeviceRequest.last_modified)
1005     pub last_modified: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>,
1006     // special fields
1007     // @@protoc_insertion_point(special_field:netsim.frontend.SubscribeDeviceRequest.special_fields)
1008     pub special_fields: ::protobuf::SpecialFields,
1009 }
1010 
1011 impl<'a> ::std::default::Default for &'a SubscribeDeviceRequest {
default() -> &'a SubscribeDeviceRequest1012     fn default() -> &'a SubscribeDeviceRequest {
1013         <SubscribeDeviceRequest as ::protobuf::Message>::default_instance()
1014     }
1015 }
1016 
1017 impl SubscribeDeviceRequest {
new() -> SubscribeDeviceRequest1018     pub fn new() -> SubscribeDeviceRequest {
1019         ::std::default::Default::default()
1020     }
1021 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1022     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1023         let mut fields = ::std::vec::Vec::with_capacity(1);
1024         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1025         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>(
1026             "last_modified",
1027             |m: &SubscribeDeviceRequest| { &m.last_modified },
1028             |m: &mut SubscribeDeviceRequest| { &mut m.last_modified },
1029         ));
1030         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SubscribeDeviceRequest>(
1031             "SubscribeDeviceRequest",
1032             fields,
1033             oneofs,
1034         )
1035     }
1036 }
1037 
1038 impl ::protobuf::Message for SubscribeDeviceRequest {
1039     const NAME: &'static str = "SubscribeDeviceRequest";
1040 
is_initialized(&self) -> bool1041     fn is_initialized(&self) -> bool {
1042         true
1043     }
1044 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1045     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1046         while let Some(tag) = is.read_raw_tag_or_eof()? {
1047             match tag {
1048                 10 => {
1049                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.last_modified)?;
1050                 },
1051                 tag => {
1052                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1053                 },
1054             };
1055         }
1056         ::std::result::Result::Ok(())
1057     }
1058 
1059     // Compute sizes of nested messages
1060     #[allow(unused_variables)]
compute_size(&self) -> u641061     fn compute_size(&self) -> u64 {
1062         let mut my_size = 0;
1063         if let Some(v) = self.last_modified.as_ref() {
1064             let len = v.compute_size();
1065             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1066         }
1067         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1068         self.special_fields.cached_size().set(my_size as u32);
1069         my_size
1070     }
1071 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1072     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1073         if let Some(v) = self.last_modified.as_ref() {
1074             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1075         }
1076         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1077         ::std::result::Result::Ok(())
1078     }
1079 
special_fields(&self) -> &::protobuf::SpecialFields1080     fn special_fields(&self) -> &::protobuf::SpecialFields {
1081         &self.special_fields
1082     }
1083 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1084     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1085         &mut self.special_fields
1086     }
1087 
new() -> SubscribeDeviceRequest1088     fn new() -> SubscribeDeviceRequest {
1089         SubscribeDeviceRequest::new()
1090     }
1091 
clear(&mut self)1092     fn clear(&mut self) {
1093         self.last_modified.clear();
1094         self.special_fields.clear();
1095     }
1096 
default_instance() -> &'static SubscribeDeviceRequest1097     fn default_instance() -> &'static SubscribeDeviceRequest {
1098         static instance: SubscribeDeviceRequest = SubscribeDeviceRequest {
1099             last_modified: ::protobuf::MessageField::none(),
1100             special_fields: ::protobuf::SpecialFields::new(),
1101         };
1102         &instance
1103     }
1104 }
1105 
1106 impl ::protobuf::MessageFull for SubscribeDeviceRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor1107     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1108         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1109         descriptor.get(|| file_descriptor().message_by_package_relative_name("SubscribeDeviceRequest").unwrap()).clone()
1110     }
1111 }
1112 
1113 impl ::std::fmt::Display for SubscribeDeviceRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1114     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1115         ::protobuf::text_format::fmt(self, f)
1116     }
1117 }
1118 
1119 impl ::protobuf::reflect::ProtobufValue for SubscribeDeviceRequest {
1120     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1121 }
1122 
1123 #[derive(PartialEq,Clone,Default,Debug)]
1124 // @@protoc_insertion_point(message:netsim.frontend.SubscribeDeviceResponse)
1125 pub struct SubscribeDeviceResponse {
1126     // message oneof groups
1127     pub response: ::std::option::Option<subscribe_device_response::Response>,
1128     // special fields
1129     // @@protoc_insertion_point(special_field:netsim.frontend.SubscribeDeviceResponse.special_fields)
1130     pub special_fields: ::protobuf::SpecialFields,
1131 }
1132 
1133 impl<'a> ::std::default::Default for &'a SubscribeDeviceResponse {
default() -> &'a SubscribeDeviceResponse1134     fn default() -> &'a SubscribeDeviceResponse {
1135         <SubscribeDeviceResponse as ::protobuf::Message>::default_instance()
1136     }
1137 }
1138 
1139 impl SubscribeDeviceResponse {
new() -> SubscribeDeviceResponse1140     pub fn new() -> SubscribeDeviceResponse {
1141         ::std::default::Default::default()
1142     }
1143 
1144     // .netsim.frontend.ListDeviceResponse list_device_response = 1;
1145 
list_device_response(&self) -> &ListDeviceResponse1146     pub fn list_device_response(&self) -> &ListDeviceResponse {
1147         match self.response {
1148             ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(ref v)) => v,
1149             _ => <ListDeviceResponse as ::protobuf::Message>::default_instance(),
1150         }
1151     }
1152 
clear_list_device_response(&mut self)1153     pub fn clear_list_device_response(&mut self) {
1154         self.response = ::std::option::Option::None;
1155     }
1156 
has_list_device_response(&self) -> bool1157     pub fn has_list_device_response(&self) -> bool {
1158         match self.response {
1159             ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(..)) => true,
1160             _ => false,
1161         }
1162     }
1163 
1164     // Param is passed by value, moved
set_list_device_response(&mut self, v: ListDeviceResponse)1165     pub fn set_list_device_response(&mut self, v: ListDeviceResponse) {
1166         self.response = ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(v))
1167     }
1168 
1169     // Mutable pointer to the field.
mut_list_device_response(&mut self) -> &mut ListDeviceResponse1170     pub fn mut_list_device_response(&mut self) -> &mut ListDeviceResponse {
1171         if let ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(_)) = self.response {
1172         } else {
1173             self.response = ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(ListDeviceResponse::new()));
1174         }
1175         match self.response {
1176             ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(ref mut v)) => v,
1177             _ => panic!(),
1178         }
1179     }
1180 
1181     // Take field
take_list_device_response(&mut self) -> ListDeviceResponse1182     pub fn take_list_device_response(&mut self) -> ListDeviceResponse {
1183         if self.has_list_device_response() {
1184             match self.response.take() {
1185                 ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(v)) => v,
1186                 _ => panic!(),
1187             }
1188         } else {
1189             ListDeviceResponse::new()
1190         }
1191     }
1192 
1193     // .google.protobuf.Empty empty_response = 2;
1194 
empty_response(&self) -> &::protobuf::well_known_types::empty::Empty1195     pub fn empty_response(&self) -> &::protobuf::well_known_types::empty::Empty {
1196         match self.response {
1197             ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(ref v)) => v,
1198             _ => <::protobuf::well_known_types::empty::Empty as ::protobuf::Message>::default_instance(),
1199         }
1200     }
1201 
clear_empty_response(&mut self)1202     pub fn clear_empty_response(&mut self) {
1203         self.response = ::std::option::Option::None;
1204     }
1205 
has_empty_response(&self) -> bool1206     pub fn has_empty_response(&self) -> bool {
1207         match self.response {
1208             ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(..)) => true,
1209             _ => false,
1210         }
1211     }
1212 
1213     // Param is passed by value, moved
set_empty_response(&mut self, v: ::protobuf::well_known_types::empty::Empty)1214     pub fn set_empty_response(&mut self, v: ::protobuf::well_known_types::empty::Empty) {
1215         self.response = ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(v))
1216     }
1217 
1218     // Mutable pointer to the field.
mut_empty_response(&mut self) -> &mut ::protobuf::well_known_types::empty::Empty1219     pub fn mut_empty_response(&mut self) -> &mut ::protobuf::well_known_types::empty::Empty {
1220         if let ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(_)) = self.response {
1221         } else {
1222             self.response = ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(::protobuf::well_known_types::empty::Empty::new()));
1223         }
1224         match self.response {
1225             ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(ref mut v)) => v,
1226             _ => panic!(),
1227         }
1228     }
1229 
1230     // Take field
take_empty_response(&mut self) -> ::protobuf::well_known_types::empty::Empty1231     pub fn take_empty_response(&mut self) -> ::protobuf::well_known_types::empty::Empty {
1232         if self.has_empty_response() {
1233             match self.response.take() {
1234                 ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(v)) => v,
1235                 _ => panic!(),
1236             }
1237         } else {
1238             ::protobuf::well_known_types::empty::Empty::new()
1239         }
1240     }
1241 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1242     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1243         let mut fields = ::std::vec::Vec::with_capacity(2);
1244         let mut oneofs = ::std::vec::Vec::with_capacity(1);
1245         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ListDeviceResponse>(
1246             "list_device_response",
1247             SubscribeDeviceResponse::has_list_device_response,
1248             SubscribeDeviceResponse::list_device_response,
1249             SubscribeDeviceResponse::mut_list_device_response,
1250             SubscribeDeviceResponse::set_list_device_response,
1251         ));
1252         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::empty::Empty>(
1253             "empty_response",
1254             SubscribeDeviceResponse::has_empty_response,
1255             SubscribeDeviceResponse::empty_response,
1256             SubscribeDeviceResponse::mut_empty_response,
1257             SubscribeDeviceResponse::set_empty_response,
1258         ));
1259         oneofs.push(subscribe_device_response::Response::generated_oneof_descriptor_data());
1260         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SubscribeDeviceResponse>(
1261             "SubscribeDeviceResponse",
1262             fields,
1263             oneofs,
1264         )
1265     }
1266 }
1267 
1268 impl ::protobuf::Message for SubscribeDeviceResponse {
1269     const NAME: &'static str = "SubscribeDeviceResponse";
1270 
is_initialized(&self) -> bool1271     fn is_initialized(&self) -> bool {
1272         true
1273     }
1274 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1275     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1276         while let Some(tag) = is.read_raw_tag_or_eof()? {
1277             match tag {
1278                 10 => {
1279                     self.response = ::std::option::Option::Some(subscribe_device_response::Response::ListDeviceResponse(is.read_message()?));
1280                 },
1281                 18 => {
1282                     self.response = ::std::option::Option::Some(subscribe_device_response::Response::EmptyResponse(is.read_message()?));
1283                 },
1284                 tag => {
1285                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1286                 },
1287             };
1288         }
1289         ::std::result::Result::Ok(())
1290     }
1291 
1292     // Compute sizes of nested messages
1293     #[allow(unused_variables)]
compute_size(&self) -> u641294     fn compute_size(&self) -> u64 {
1295         let mut my_size = 0;
1296         if let ::std::option::Option::Some(ref v) = self.response {
1297             match v {
1298                 &subscribe_device_response::Response::ListDeviceResponse(ref v) => {
1299                     let len = v.compute_size();
1300                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1301                 },
1302                 &subscribe_device_response::Response::EmptyResponse(ref v) => {
1303                     let len = v.compute_size();
1304                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1305                 },
1306             };
1307         }
1308         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1309         self.special_fields.cached_size().set(my_size as u32);
1310         my_size
1311     }
1312 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1313     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1314         if let ::std::option::Option::Some(ref v) = self.response {
1315             match v {
1316                 &subscribe_device_response::Response::ListDeviceResponse(ref v) => {
1317                     ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1318                 },
1319                 &subscribe_device_response::Response::EmptyResponse(ref v) => {
1320                     ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1321                 },
1322             };
1323         }
1324         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1325         ::std::result::Result::Ok(())
1326     }
1327 
special_fields(&self) -> &::protobuf::SpecialFields1328     fn special_fields(&self) -> &::protobuf::SpecialFields {
1329         &self.special_fields
1330     }
1331 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1332     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1333         &mut self.special_fields
1334     }
1335 
new() -> SubscribeDeviceResponse1336     fn new() -> SubscribeDeviceResponse {
1337         SubscribeDeviceResponse::new()
1338     }
1339 
clear(&mut self)1340     fn clear(&mut self) {
1341         self.response = ::std::option::Option::None;
1342         self.response = ::std::option::Option::None;
1343         self.special_fields.clear();
1344     }
1345 
default_instance() -> &'static SubscribeDeviceResponse1346     fn default_instance() -> &'static SubscribeDeviceResponse {
1347         static instance: SubscribeDeviceResponse = SubscribeDeviceResponse {
1348             response: ::std::option::Option::None,
1349             special_fields: ::protobuf::SpecialFields::new(),
1350         };
1351         &instance
1352     }
1353 }
1354 
1355 impl ::protobuf::MessageFull for SubscribeDeviceResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor1356     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1357         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1358         descriptor.get(|| file_descriptor().message_by_package_relative_name("SubscribeDeviceResponse").unwrap()).clone()
1359     }
1360 }
1361 
1362 impl ::std::fmt::Display for SubscribeDeviceResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1363     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1364         ::protobuf::text_format::fmt(self, f)
1365     }
1366 }
1367 
1368 impl ::protobuf::reflect::ProtobufValue for SubscribeDeviceResponse {
1369     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1370 }
1371 
1372 /// Nested message and enums of message `SubscribeDeviceResponse`
1373 pub mod subscribe_device_response {
1374 
1375     #[derive(Clone,PartialEq,Debug)]
1376     #[non_exhaustive]
1377     // @@protoc_insertion_point(oneof:netsim.frontend.SubscribeDeviceResponse.response)
1378     pub enum Response {
1379         // @@protoc_insertion_point(oneof_field:netsim.frontend.SubscribeDeviceResponse.list_device_response)
1380         ListDeviceResponse(super::ListDeviceResponse),
1381         // @@protoc_insertion_point(oneof_field:netsim.frontend.SubscribeDeviceResponse.empty_response)
1382         EmptyResponse(::protobuf::well_known_types::empty::Empty),
1383     }
1384 
1385     impl ::protobuf::Oneof for Response {
1386     }
1387 
1388     impl ::protobuf::OneofFull for Response {
descriptor() -> ::protobuf::reflect::OneofDescriptor1389         fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
1390             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
1391             descriptor.get(|| <super::SubscribeDeviceResponse as ::protobuf::MessageFull>::descriptor().oneof_by_name("response").unwrap()).clone()
1392         }
1393     }
1394 
1395     impl Response {
generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData1396         pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
1397             ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Response>("response")
1398         }
1399     }
1400 }
1401 
1402 #[derive(PartialEq,Clone,Default,Debug)]
1403 // @@protoc_insertion_point(message:netsim.frontend.PatchCaptureRequest)
1404 pub struct PatchCaptureRequest {
1405     // message fields
1406     // @@protoc_insertion_point(field:netsim.frontend.PatchCaptureRequest.id)
1407     pub id: u32,
1408     // @@protoc_insertion_point(field:netsim.frontend.PatchCaptureRequest.patch)
1409     pub patch: ::protobuf::MessageField<patch_capture_request::PatchCapture>,
1410     // special fields
1411     // @@protoc_insertion_point(special_field:netsim.frontend.PatchCaptureRequest.special_fields)
1412     pub special_fields: ::protobuf::SpecialFields,
1413 }
1414 
1415 impl<'a> ::std::default::Default for &'a PatchCaptureRequest {
default() -> &'a PatchCaptureRequest1416     fn default() -> &'a PatchCaptureRequest {
1417         <PatchCaptureRequest as ::protobuf::Message>::default_instance()
1418     }
1419 }
1420 
1421 impl PatchCaptureRequest {
new() -> PatchCaptureRequest1422     pub fn new() -> PatchCaptureRequest {
1423         ::std::default::Default::default()
1424     }
1425 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1426     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1427         let mut fields = ::std::vec::Vec::with_capacity(2);
1428         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1429         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1430             "id",
1431             |m: &PatchCaptureRequest| { &m.id },
1432             |m: &mut PatchCaptureRequest| { &mut m.id },
1433         ));
1434         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, patch_capture_request::PatchCapture>(
1435             "patch",
1436             |m: &PatchCaptureRequest| { &m.patch },
1437             |m: &mut PatchCaptureRequest| { &mut m.patch },
1438         ));
1439         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<PatchCaptureRequest>(
1440             "PatchCaptureRequest",
1441             fields,
1442             oneofs,
1443         )
1444     }
1445 }
1446 
1447 impl ::protobuf::Message for PatchCaptureRequest {
1448     const NAME: &'static str = "PatchCaptureRequest";
1449 
is_initialized(&self) -> bool1450     fn is_initialized(&self) -> bool {
1451         true
1452     }
1453 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1454     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1455         while let Some(tag) = is.read_raw_tag_or_eof()? {
1456             match tag {
1457                 8 => {
1458                     self.id = is.read_uint32()?;
1459                 },
1460                 18 => {
1461                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.patch)?;
1462                 },
1463                 tag => {
1464                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1465                 },
1466             };
1467         }
1468         ::std::result::Result::Ok(())
1469     }
1470 
1471     // Compute sizes of nested messages
1472     #[allow(unused_variables)]
compute_size(&self) -> u641473     fn compute_size(&self) -> u64 {
1474         let mut my_size = 0;
1475         if self.id != 0 {
1476             my_size += ::protobuf::rt::uint32_size(1, self.id);
1477         }
1478         if let Some(v) = self.patch.as_ref() {
1479             let len = v.compute_size();
1480             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1481         }
1482         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1483         self.special_fields.cached_size().set(my_size as u32);
1484         my_size
1485     }
1486 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1487     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1488         if self.id != 0 {
1489             os.write_uint32(1, self.id)?;
1490         }
1491         if let Some(v) = self.patch.as_ref() {
1492             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1493         }
1494         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1495         ::std::result::Result::Ok(())
1496     }
1497 
special_fields(&self) -> &::protobuf::SpecialFields1498     fn special_fields(&self) -> &::protobuf::SpecialFields {
1499         &self.special_fields
1500     }
1501 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1502     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1503         &mut self.special_fields
1504     }
1505 
new() -> PatchCaptureRequest1506     fn new() -> PatchCaptureRequest {
1507         PatchCaptureRequest::new()
1508     }
1509 
clear(&mut self)1510     fn clear(&mut self) {
1511         self.id = 0;
1512         self.patch.clear();
1513         self.special_fields.clear();
1514     }
1515 
default_instance() -> &'static PatchCaptureRequest1516     fn default_instance() -> &'static PatchCaptureRequest {
1517         static instance: PatchCaptureRequest = PatchCaptureRequest {
1518             id: 0,
1519             patch: ::protobuf::MessageField::none(),
1520             special_fields: ::protobuf::SpecialFields::new(),
1521         };
1522         &instance
1523     }
1524 }
1525 
1526 impl ::protobuf::MessageFull for PatchCaptureRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor1527     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1528         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1529         descriptor.get(|| file_descriptor().message_by_package_relative_name("PatchCaptureRequest").unwrap()).clone()
1530     }
1531 }
1532 
1533 impl ::std::fmt::Display for PatchCaptureRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1534     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1535         ::protobuf::text_format::fmt(self, f)
1536     }
1537 }
1538 
1539 impl ::protobuf::reflect::ProtobufValue for PatchCaptureRequest {
1540     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1541 }
1542 
1543 /// Nested message and enums of message `PatchCaptureRequest`
1544 pub mod patch_capture_request {
1545     #[derive(PartialEq,Clone,Default,Debug)]
1546     // @@protoc_insertion_point(message:netsim.frontend.PatchCaptureRequest.PatchCapture)
1547     pub struct PatchCapture {
1548         // message fields
1549         // @@protoc_insertion_point(field:netsim.frontend.PatchCaptureRequest.PatchCapture.state)
1550         pub state: ::std::option::Option<bool>,
1551         // special fields
1552         // @@protoc_insertion_point(special_field:netsim.frontend.PatchCaptureRequest.PatchCapture.special_fields)
1553         pub special_fields: ::protobuf::SpecialFields,
1554     }
1555 
1556     impl<'a> ::std::default::Default for &'a PatchCapture {
default() -> &'a PatchCapture1557         fn default() -> &'a PatchCapture {
1558             <PatchCapture as ::protobuf::Message>::default_instance()
1559         }
1560     }
1561 
1562     impl PatchCapture {
new() -> PatchCapture1563         pub fn new() -> PatchCapture {
1564             ::std::default::Default::default()
1565         }
1566 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1567         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1568             let mut fields = ::std::vec::Vec::with_capacity(1);
1569             let mut oneofs = ::std::vec::Vec::with_capacity(0);
1570             fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1571                 "state",
1572                 |m: &PatchCapture| { &m.state },
1573                 |m: &mut PatchCapture| { &mut m.state },
1574             ));
1575             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<PatchCapture>(
1576                 "PatchCaptureRequest.PatchCapture",
1577                 fields,
1578                 oneofs,
1579             )
1580         }
1581     }
1582 
1583     impl ::protobuf::Message for PatchCapture {
1584         const NAME: &'static str = "PatchCapture";
1585 
is_initialized(&self) -> bool1586         fn is_initialized(&self) -> bool {
1587             true
1588         }
1589 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1590         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1591             while let Some(tag) = is.read_raw_tag_or_eof()? {
1592                 match tag {
1593                     8 => {
1594                         self.state = ::std::option::Option::Some(is.read_bool()?);
1595                     },
1596                     tag => {
1597                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1598                     },
1599                 };
1600             }
1601             ::std::result::Result::Ok(())
1602         }
1603 
1604         // Compute sizes of nested messages
1605         #[allow(unused_variables)]
compute_size(&self) -> u641606         fn compute_size(&self) -> u64 {
1607             let mut my_size = 0;
1608             if let Some(v) = self.state {
1609                 my_size += 1 + 1;
1610             }
1611             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1612             self.special_fields.cached_size().set(my_size as u32);
1613             my_size
1614         }
1615 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1616         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1617             if let Some(v) = self.state {
1618                 os.write_bool(1, v)?;
1619             }
1620             os.write_unknown_fields(self.special_fields.unknown_fields())?;
1621             ::std::result::Result::Ok(())
1622         }
1623 
special_fields(&self) -> &::protobuf::SpecialFields1624         fn special_fields(&self) -> &::protobuf::SpecialFields {
1625             &self.special_fields
1626         }
1627 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1628         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1629             &mut self.special_fields
1630         }
1631 
new() -> PatchCapture1632         fn new() -> PatchCapture {
1633             PatchCapture::new()
1634         }
1635 
clear(&mut self)1636         fn clear(&mut self) {
1637             self.state = ::std::option::Option::None;
1638             self.special_fields.clear();
1639         }
1640 
default_instance() -> &'static PatchCapture1641         fn default_instance() -> &'static PatchCapture {
1642             static instance: PatchCapture = PatchCapture {
1643                 state: ::std::option::Option::None,
1644                 special_fields: ::protobuf::SpecialFields::new(),
1645             };
1646             &instance
1647         }
1648     }
1649 
1650     impl ::protobuf::MessageFull for PatchCapture {
descriptor() -> ::protobuf::reflect::MessageDescriptor1651         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1652             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1653             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PatchCaptureRequest.PatchCapture").unwrap()).clone()
1654         }
1655     }
1656 
1657     impl ::std::fmt::Display for PatchCapture {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1658         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1659             ::protobuf::text_format::fmt(self, f)
1660         }
1661     }
1662 
1663     impl ::protobuf::reflect::ProtobufValue for PatchCapture {
1664         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1665     }
1666 }
1667 
1668 #[derive(PartialEq,Clone,Default,Debug)]
1669 // @@protoc_insertion_point(message:netsim.frontend.ListCaptureResponse)
1670 pub struct ListCaptureResponse {
1671     // message fields
1672     // @@protoc_insertion_point(field:netsim.frontend.ListCaptureResponse.captures)
1673     pub captures: ::std::vec::Vec<super::model::Capture>,
1674     // special fields
1675     // @@protoc_insertion_point(special_field:netsim.frontend.ListCaptureResponse.special_fields)
1676     pub special_fields: ::protobuf::SpecialFields,
1677 }
1678 
1679 impl<'a> ::std::default::Default for &'a ListCaptureResponse {
default() -> &'a ListCaptureResponse1680     fn default() -> &'a ListCaptureResponse {
1681         <ListCaptureResponse as ::protobuf::Message>::default_instance()
1682     }
1683 }
1684 
1685 impl ListCaptureResponse {
new() -> ListCaptureResponse1686     pub fn new() -> ListCaptureResponse {
1687         ::std::default::Default::default()
1688     }
1689 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1690     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1691         let mut fields = ::std::vec::Vec::with_capacity(1);
1692         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1693         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1694             "captures",
1695             |m: &ListCaptureResponse| { &m.captures },
1696             |m: &mut ListCaptureResponse| { &mut m.captures },
1697         ));
1698         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ListCaptureResponse>(
1699             "ListCaptureResponse",
1700             fields,
1701             oneofs,
1702         )
1703     }
1704 }
1705 
1706 impl ::protobuf::Message for ListCaptureResponse {
1707     const NAME: &'static str = "ListCaptureResponse";
1708 
is_initialized(&self) -> bool1709     fn is_initialized(&self) -> bool {
1710         true
1711     }
1712 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1713     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1714         while let Some(tag) = is.read_raw_tag_or_eof()? {
1715             match tag {
1716                 10 => {
1717                     self.captures.push(is.read_message()?);
1718                 },
1719                 tag => {
1720                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1721                 },
1722             };
1723         }
1724         ::std::result::Result::Ok(())
1725     }
1726 
1727     // Compute sizes of nested messages
1728     #[allow(unused_variables)]
compute_size(&self) -> u641729     fn compute_size(&self) -> u64 {
1730         let mut my_size = 0;
1731         for value in &self.captures {
1732             let len = value.compute_size();
1733             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1734         };
1735         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1736         self.special_fields.cached_size().set(my_size as u32);
1737         my_size
1738     }
1739 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1740     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1741         for v in &self.captures {
1742             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1743         };
1744         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1745         ::std::result::Result::Ok(())
1746     }
1747 
special_fields(&self) -> &::protobuf::SpecialFields1748     fn special_fields(&self) -> &::protobuf::SpecialFields {
1749         &self.special_fields
1750     }
1751 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1752     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1753         &mut self.special_fields
1754     }
1755 
new() -> ListCaptureResponse1756     fn new() -> ListCaptureResponse {
1757         ListCaptureResponse::new()
1758     }
1759 
clear(&mut self)1760     fn clear(&mut self) {
1761         self.captures.clear();
1762         self.special_fields.clear();
1763     }
1764 
default_instance() -> &'static ListCaptureResponse1765     fn default_instance() -> &'static ListCaptureResponse {
1766         static instance: ListCaptureResponse = ListCaptureResponse {
1767             captures: ::std::vec::Vec::new(),
1768             special_fields: ::protobuf::SpecialFields::new(),
1769         };
1770         &instance
1771     }
1772 }
1773 
1774 impl ::protobuf::MessageFull for ListCaptureResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor1775     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1776         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1777         descriptor.get(|| file_descriptor().message_by_package_relative_name("ListCaptureResponse").unwrap()).clone()
1778     }
1779 }
1780 
1781 impl ::std::fmt::Display for ListCaptureResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1782     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1783         ::protobuf::text_format::fmt(self, f)
1784     }
1785 }
1786 
1787 impl ::protobuf::reflect::ProtobufValue for ListCaptureResponse {
1788     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1789 }
1790 
1791 #[derive(PartialEq,Clone,Default,Debug)]
1792 // @@protoc_insertion_point(message:netsim.frontend.GetCaptureRequest)
1793 pub struct GetCaptureRequest {
1794     // message fields
1795     // @@protoc_insertion_point(field:netsim.frontend.GetCaptureRequest.id)
1796     pub id: u32,
1797     // special fields
1798     // @@protoc_insertion_point(special_field:netsim.frontend.GetCaptureRequest.special_fields)
1799     pub special_fields: ::protobuf::SpecialFields,
1800 }
1801 
1802 impl<'a> ::std::default::Default for &'a GetCaptureRequest {
default() -> &'a GetCaptureRequest1803     fn default() -> &'a GetCaptureRequest {
1804         <GetCaptureRequest as ::protobuf::Message>::default_instance()
1805     }
1806 }
1807 
1808 impl GetCaptureRequest {
new() -> GetCaptureRequest1809     pub fn new() -> GetCaptureRequest {
1810         ::std::default::Default::default()
1811     }
1812 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1813     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1814         let mut fields = ::std::vec::Vec::with_capacity(1);
1815         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1816         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1817             "id",
1818             |m: &GetCaptureRequest| { &m.id },
1819             |m: &mut GetCaptureRequest| { &mut m.id },
1820         ));
1821         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetCaptureRequest>(
1822             "GetCaptureRequest",
1823             fields,
1824             oneofs,
1825         )
1826     }
1827 }
1828 
1829 impl ::protobuf::Message for GetCaptureRequest {
1830     const NAME: &'static str = "GetCaptureRequest";
1831 
is_initialized(&self) -> bool1832     fn is_initialized(&self) -> bool {
1833         true
1834     }
1835 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1836     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1837         while let Some(tag) = is.read_raw_tag_or_eof()? {
1838             match tag {
1839                 8 => {
1840                     self.id = is.read_uint32()?;
1841                 },
1842                 tag => {
1843                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1844                 },
1845             };
1846         }
1847         ::std::result::Result::Ok(())
1848     }
1849 
1850     // Compute sizes of nested messages
1851     #[allow(unused_variables)]
compute_size(&self) -> u641852     fn compute_size(&self) -> u64 {
1853         let mut my_size = 0;
1854         if self.id != 0 {
1855             my_size += ::protobuf::rt::uint32_size(1, self.id);
1856         }
1857         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1858         self.special_fields.cached_size().set(my_size as u32);
1859         my_size
1860     }
1861 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1862     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1863         if self.id != 0 {
1864             os.write_uint32(1, self.id)?;
1865         }
1866         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1867         ::std::result::Result::Ok(())
1868     }
1869 
special_fields(&self) -> &::protobuf::SpecialFields1870     fn special_fields(&self) -> &::protobuf::SpecialFields {
1871         &self.special_fields
1872     }
1873 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1874     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1875         &mut self.special_fields
1876     }
1877 
new() -> GetCaptureRequest1878     fn new() -> GetCaptureRequest {
1879         GetCaptureRequest::new()
1880     }
1881 
clear(&mut self)1882     fn clear(&mut self) {
1883         self.id = 0;
1884         self.special_fields.clear();
1885     }
1886 
default_instance() -> &'static GetCaptureRequest1887     fn default_instance() -> &'static GetCaptureRequest {
1888         static instance: GetCaptureRequest = GetCaptureRequest {
1889             id: 0,
1890             special_fields: ::protobuf::SpecialFields::new(),
1891         };
1892         &instance
1893     }
1894 }
1895 
1896 impl ::protobuf::MessageFull for GetCaptureRequest {
descriptor() -> ::protobuf::reflect::MessageDescriptor1897     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1898         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1899         descriptor.get(|| file_descriptor().message_by_package_relative_name("GetCaptureRequest").unwrap()).clone()
1900     }
1901 }
1902 
1903 impl ::std::fmt::Display for GetCaptureRequest {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1904     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1905         ::protobuf::text_format::fmt(self, f)
1906     }
1907 }
1908 
1909 impl ::protobuf::reflect::ProtobufValue for GetCaptureRequest {
1910     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1911 }
1912 
1913 #[derive(PartialEq,Clone,Default,Debug)]
1914 // @@protoc_insertion_point(message:netsim.frontend.GetCaptureResponse)
1915 pub struct GetCaptureResponse {
1916     // message fields
1917     // @@protoc_insertion_point(field:netsim.frontend.GetCaptureResponse.capture_stream)
1918     pub capture_stream: ::std::vec::Vec<u8>,
1919     // special fields
1920     // @@protoc_insertion_point(special_field:netsim.frontend.GetCaptureResponse.special_fields)
1921     pub special_fields: ::protobuf::SpecialFields,
1922 }
1923 
1924 impl<'a> ::std::default::Default for &'a GetCaptureResponse {
default() -> &'a GetCaptureResponse1925     fn default() -> &'a GetCaptureResponse {
1926         <GetCaptureResponse as ::protobuf::Message>::default_instance()
1927     }
1928 }
1929 
1930 impl GetCaptureResponse {
new() -> GetCaptureResponse1931     pub fn new() -> GetCaptureResponse {
1932         ::std::default::Default::default()
1933     }
1934 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1935     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1936         let mut fields = ::std::vec::Vec::with_capacity(1);
1937         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1938         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1939             "capture_stream",
1940             |m: &GetCaptureResponse| { &m.capture_stream },
1941             |m: &mut GetCaptureResponse| { &mut m.capture_stream },
1942         ));
1943         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetCaptureResponse>(
1944             "GetCaptureResponse",
1945             fields,
1946             oneofs,
1947         )
1948     }
1949 }
1950 
1951 impl ::protobuf::Message for GetCaptureResponse {
1952     const NAME: &'static str = "GetCaptureResponse";
1953 
is_initialized(&self) -> bool1954     fn is_initialized(&self) -> bool {
1955         true
1956     }
1957 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1958     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1959         while let Some(tag) = is.read_raw_tag_or_eof()? {
1960             match tag {
1961                 10 => {
1962                     self.capture_stream = is.read_bytes()?;
1963                 },
1964                 tag => {
1965                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1966                 },
1967             };
1968         }
1969         ::std::result::Result::Ok(())
1970     }
1971 
1972     // Compute sizes of nested messages
1973     #[allow(unused_variables)]
compute_size(&self) -> u641974     fn compute_size(&self) -> u64 {
1975         let mut my_size = 0;
1976         if !self.capture_stream.is_empty() {
1977             my_size += ::protobuf::rt::bytes_size(1, &self.capture_stream);
1978         }
1979         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1980         self.special_fields.cached_size().set(my_size as u32);
1981         my_size
1982     }
1983 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1984     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1985         if !self.capture_stream.is_empty() {
1986             os.write_bytes(1, &self.capture_stream)?;
1987         }
1988         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1989         ::std::result::Result::Ok(())
1990     }
1991 
special_fields(&self) -> &::protobuf::SpecialFields1992     fn special_fields(&self) -> &::protobuf::SpecialFields {
1993         &self.special_fields
1994     }
1995 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1996     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1997         &mut self.special_fields
1998     }
1999 
new() -> GetCaptureResponse2000     fn new() -> GetCaptureResponse {
2001         GetCaptureResponse::new()
2002     }
2003 
clear(&mut self)2004     fn clear(&mut self) {
2005         self.capture_stream.clear();
2006         self.special_fields.clear();
2007     }
2008 
default_instance() -> &'static GetCaptureResponse2009     fn default_instance() -> &'static GetCaptureResponse {
2010         static instance: GetCaptureResponse = GetCaptureResponse {
2011             capture_stream: ::std::vec::Vec::new(),
2012             special_fields: ::protobuf::SpecialFields::new(),
2013         };
2014         &instance
2015     }
2016 }
2017 
2018 impl ::protobuf::MessageFull for GetCaptureResponse {
descriptor() -> ::protobuf::reflect::MessageDescriptor2019     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2020         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2021         descriptor.get(|| file_descriptor().message_by_package_relative_name("GetCaptureResponse").unwrap()).clone()
2022     }
2023 }
2024 
2025 impl ::std::fmt::Display for GetCaptureResponse {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2026     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2027         ::protobuf::text_format::fmt(self, f)
2028     }
2029 }
2030 
2031 impl ::protobuf::reflect::ProtobufValue for GetCaptureResponse {
2032     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2033 }
2034 
2035 static file_descriptor_proto_data: &'static [u8] = b"\
2036     \n\x15netsim/frontend.proto\x12\x0fnetsim.frontend\x1a\x1bgoogle/protobu\
2037     f/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x12netsim/model\
2038     .proto\"+\n\x0fVersionResponse\x12\x18\n\x07version\x18\x01\x20\x01(\tR\
2039     \x07version\"I\n\x13CreateDeviceRequest\x122\n\x06device\x18\x01\x20\x01\
2040     (\x0b2\x1a.netsim.model.DeviceCreateR\x06device\"D\n\x14CreateDeviceResp\
2041     onse\x12,\n\x06device\x18\x01\x20\x01(\x0b2\x14.netsim.model.DeviceR\x06\
2042     device\"#\n\x11DeleteChipRequest\x12\x0e\n\x02id\x18\x02\x20\x01(\rR\x02\
2043     id\"\xa4\x03\n\x12PatchDeviceRequest\x12\x13\n\x02id\x18\x01\x20\x01(\rH\
2044     \0R\x02id\x88\x01\x01\x12M\n\x06device\x18\x02\x20\x01(\x0b25.netsim.fro\
2045     ntend.PatchDeviceRequest.PatchDeviceFieldsR\x06device\x1a\xa2\x02\n\x11P\
2046     atchDeviceFields\x12\x17\n\x04name\x18\x02\x20\x01(\tH\0R\x04name\x88\
2047     \x01\x01\x12\x1d\n\x07visible\x18\x03\x20\x01(\x08H\x01R\x07visible\x88\
2048     \x01\x01\x127\n\x08position\x18\x04\x20\x01(\x0b2\x16.netsim.model.Posit\
2049     ionH\x02R\x08position\x88\x01\x01\x12@\n\x0borientation\x18\x05\x20\x01(\
2050     \x0b2\x19.netsim.model.OrientationH\x03R\x0borientation\x88\x01\x01\x12(\
2051     \n\x05chips\x18\x06\x20\x03(\x0b2\x12.netsim.model.ChipR\x05chipsB\x07\n\
2052     \x05_nameB\n\n\x08_visibleB\x0b\n\t_positionB\x0e\n\x0c_orientationB\x05\
2053     \n\x03_id\"\x85\x01\n\x12ListDeviceResponse\x12.\n\x07devices\x18\x01\
2054     \x20\x03(\x0b2\x14.netsim.model.DeviceR\x07devices\x12?\n\rlast_modified\
2055     \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0clastModified\"p\
2056     \n\x16SubscribeDeviceRequest\x12D\n\rlast_modified\x18\x01\x20\x01(\x0b2\
2057     \x1a.google.protobuf.TimestampH\0R\x0clastModified\x88\x01\x01B\x10\n\
2058     \x0e_last_modified\"\xbf\x01\n\x17SubscribeDeviceResponse\x12W\n\x14list\
2059     _device_response\x18\x01\x20\x01(\x0b2#.netsim.frontend.ListDeviceRespon\
2060     seH\0R\x12listDeviceResponse\x12?\n\x0eempty_response\x18\x02\x20\x01(\
2061     \x0b2\x16.google.protobuf.EmptyH\0R\remptyResponseB\n\n\x08response\"\
2062     \xa3\x01\n\x13PatchCaptureRequest\x12\x0e\n\x02id\x18\x01\x20\x01(\rR\
2063     \x02id\x12G\n\x05patch\x18\x02\x20\x01(\x0b21.netsim.frontend.PatchCaptu\
2064     reRequest.PatchCaptureR\x05patch\x1a3\n\x0cPatchCapture\x12\x19\n\x05sta\
2065     te\x18\x01\x20\x01(\x08H\0R\x05state\x88\x01\x01B\x08\n\x06_state\"H\n\
2066     \x13ListCaptureResponse\x121\n\x08captures\x18\x01\x20\x03(\x0b2\x15.net\
2067     sim.model.CaptureR\x08captures\"#\n\x11GetCaptureRequest\x12\x0e\n\x02id\
2068     \x18\x01\x20\x01(\rR\x02id\";\n\x12GetCaptureResponse\x12%\n\x0ecapture_\
2069     stream\x18\x01\x20\x01(\x0cR\rcaptureStream2\xaa\x06\n\x0fFrontendServic\
2070     e\x12F\n\nGetVersion\x12\x16.google.protobuf.Empty\x1a\x20.netsim.fronte\
2071     nd.VersionResponse\x12[\n\x0cCreateDevice\x12$.netsim.frontend.CreateDev\
2072     iceRequest\x1a%.netsim.frontend.CreateDeviceResponse\x12H\n\nDeleteChip\
2073     \x12\".netsim.frontend.DeleteChipRequest\x1a\x16.google.protobuf.Empty\
2074     \x12J\n\x0bPatchDevice\x12#.netsim.frontend.PatchDeviceRequest\x1a\x16.g\
2075     oogle.protobuf.Empty\x127\n\x05Reset\x12\x16.google.protobuf.Empty\x1a\
2076     \x16.google.protobuf.Empty\x12I\n\nListDevice\x12\x16.google.protobuf.Em\
2077     pty\x1a#.netsim.frontend.ListDeviceResponse\x12d\n\x0fSubscribeDevice\
2078     \x12'.netsim.frontend.SubscribeDeviceRequest\x1a(.netsim.frontend.Subscr\
2079     ibeDeviceResponse\x12L\n\x0cPatchCapture\x12$.netsim.frontend.PatchCaptu\
2080     reRequest\x1a\x16.google.protobuf.Empty\x12K\n\x0bListCapture\x12\x16.go\
2081     ogle.protobuf.Empty\x1a$.netsim.frontend.ListCaptureResponse\x12W\n\nGet\
2082     Capture\x12\".netsim.frontend.GetCaptureRequest\x1a#.netsim.frontend.Get\
2083     CaptureResponse0\x01b\x06proto3\
2084 ";
2085 
2086 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto2087 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
2088     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
2089     file_descriptor_proto_lazy.get(|| {
2090         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
2091     })
2092 }
2093 
2094 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor2095 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
2096     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
2097     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
2098     file_descriptor.get(|| {
2099         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
2100             let mut deps = ::std::vec::Vec::with_capacity(3);
2101             deps.push(::protobuf::well_known_types::empty::file_descriptor().clone());
2102             deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone());
2103             deps.push(super::model::file_descriptor().clone());
2104             let mut messages = ::std::vec::Vec::with_capacity(14);
2105             messages.push(VersionResponse::generated_message_descriptor_data());
2106             messages.push(CreateDeviceRequest::generated_message_descriptor_data());
2107             messages.push(CreateDeviceResponse::generated_message_descriptor_data());
2108             messages.push(DeleteChipRequest::generated_message_descriptor_data());
2109             messages.push(PatchDeviceRequest::generated_message_descriptor_data());
2110             messages.push(ListDeviceResponse::generated_message_descriptor_data());
2111             messages.push(SubscribeDeviceRequest::generated_message_descriptor_data());
2112             messages.push(SubscribeDeviceResponse::generated_message_descriptor_data());
2113             messages.push(PatchCaptureRequest::generated_message_descriptor_data());
2114             messages.push(ListCaptureResponse::generated_message_descriptor_data());
2115             messages.push(GetCaptureRequest::generated_message_descriptor_data());
2116             messages.push(GetCaptureResponse::generated_message_descriptor_data());
2117             messages.push(patch_device_request::PatchDeviceFields::generated_message_descriptor_data());
2118             messages.push(patch_capture_request::PatchCapture::generated_message_descriptor_data());
2119             let mut enums = ::std::vec::Vec::with_capacity(0);
2120             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
2121                 file_descriptor_proto(),
2122                 deps,
2123                 messages,
2124                 enums,
2125             )
2126         });
2127         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
2128     })
2129 }
2130