1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Api {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("Api");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("methods", &self.methods);
25 debug_struct.field("options", &self.options);
26 debug_struct.field("version", &self.version);
27 debug_struct.field("source_context", &self.source_context);
28 debug_struct.field("mixins", &self.mixins);
29 debug_struct.field("syntax", &self.syntax);
30 if !self._unknown_fields.is_empty() {
31 debug_struct.field("_unknown_fields", &self._unknown_fields);
32 }
33 debug_struct.finish()
34 }
35}
36
37impl std::fmt::Debug for super::Method {
38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39 let mut debug_struct = f.debug_struct("Method");
40 debug_struct.field("name", &self.name);
41 debug_struct.field("request_type_url", &self.request_type_url);
42 debug_struct.field("request_streaming", &self.request_streaming);
43 debug_struct.field("response_type_url", &self.response_type_url);
44 debug_struct.field("response_streaming", &self.response_streaming);
45 debug_struct.field("options", &self.options);
46 debug_struct.field("syntax", &self.syntax);
47 if !self._unknown_fields.is_empty() {
48 debug_struct.field("_unknown_fields", &self._unknown_fields);
49 }
50 debug_struct.finish()
51 }
52}
53
54impl std::fmt::Debug for super::Mixin {
55 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56 let mut debug_struct = f.debug_struct("Mixin");
57 debug_struct.field("name", &self.name);
58 debug_struct.field("root", &self.root);
59 if !self._unknown_fields.is_empty() {
60 debug_struct.field("_unknown_fields", &self._unknown_fields);
61 }
62 debug_struct.finish()
63 }
64}
65
66impl std::fmt::Debug for super::FileDescriptorSet {
67 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
68 let mut debug_struct = f.debug_struct("FileDescriptorSet");
69 debug_struct.field("file", &self.file);
70 if !self._unknown_fields.is_empty() {
71 debug_struct.field("_unknown_fields", &self._unknown_fields);
72 }
73 debug_struct.finish()
74 }
75}
76
77impl std::fmt::Debug for super::FileDescriptorProto {
78 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
79 let mut debug_struct = f.debug_struct("FileDescriptorProto");
80 debug_struct.field("name", &self.name);
81 debug_struct.field("package", &self.package);
82 debug_struct.field("dependency", &self.dependency);
83 debug_struct.field("public_dependency", &self.public_dependency);
84 debug_struct.field("weak_dependency", &self.weak_dependency);
85 debug_struct.field("message_type", &self.message_type);
86 debug_struct.field("enum_type", &self.enum_type);
87 debug_struct.field("service", &self.service);
88 debug_struct.field("extension", &self.extension);
89 debug_struct.field("options", &self.options);
90 debug_struct.field("source_code_info", &self.source_code_info);
91 debug_struct.field("syntax", &self.syntax);
92 debug_struct.field("edition", &self.edition);
93 if !self._unknown_fields.is_empty() {
94 debug_struct.field("_unknown_fields", &self._unknown_fields);
95 }
96 debug_struct.finish()
97 }
98}
99
100impl std::fmt::Debug for super::DescriptorProto {
101 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
102 let mut debug_struct = f.debug_struct("DescriptorProto");
103 debug_struct.field("name", &self.name);
104 debug_struct.field("field", &self.field);
105 debug_struct.field("extension", &self.extension);
106 debug_struct.field("nested_type", &self.nested_type);
107 debug_struct.field("enum_type", &self.enum_type);
108 debug_struct.field("extension_range", &self.extension_range);
109 debug_struct.field("oneof_decl", &self.oneof_decl);
110 debug_struct.field("options", &self.options);
111 debug_struct.field("reserved_range", &self.reserved_range);
112 debug_struct.field("reserved_name", &self.reserved_name);
113 if !self._unknown_fields.is_empty() {
114 debug_struct.field("_unknown_fields", &self._unknown_fields);
115 }
116 debug_struct.finish()
117 }
118}
119
120impl std::fmt::Debug for super::descriptor_proto::ExtensionRange {
121 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
122 let mut debug_struct = f.debug_struct("ExtensionRange");
123 debug_struct.field("start", &self.start);
124 debug_struct.field("end", &self.end);
125 debug_struct.field("options", &self.options);
126 if !self._unknown_fields.is_empty() {
127 debug_struct.field("_unknown_fields", &self._unknown_fields);
128 }
129 debug_struct.finish()
130 }
131}
132
133impl std::fmt::Debug for super::descriptor_proto::ReservedRange {
134 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
135 let mut debug_struct = f.debug_struct("ReservedRange");
136 debug_struct.field("start", &self.start);
137 debug_struct.field("end", &self.end);
138 if !self._unknown_fields.is_empty() {
139 debug_struct.field("_unknown_fields", &self._unknown_fields);
140 }
141 debug_struct.finish()
142 }
143}
144
145impl std::fmt::Debug for super::ExtensionRangeOptions {
146 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147 let mut debug_struct = f.debug_struct("ExtensionRangeOptions");
148 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
149 debug_struct.field("declaration", &self.declaration);
150 debug_struct.field("features", &self.features);
151 debug_struct.field("verification", &self.verification);
152 if !self._unknown_fields.is_empty() {
153 debug_struct.field("_unknown_fields", &self._unknown_fields);
154 }
155 debug_struct.finish()
156 }
157}
158
159impl std::fmt::Debug for super::extension_range_options::Declaration {
160 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161 let mut debug_struct = f.debug_struct("Declaration");
162 debug_struct.field("number", &self.number);
163 debug_struct.field("full_name", &self.full_name);
164 debug_struct.field("r#type", &self.r#type);
165 debug_struct.field("reserved", &self.reserved);
166 debug_struct.field("repeated", &self.repeated);
167 if !self._unknown_fields.is_empty() {
168 debug_struct.field("_unknown_fields", &self._unknown_fields);
169 }
170 debug_struct.finish()
171 }
172}
173
174impl std::fmt::Debug for super::FieldDescriptorProto {
175 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
176 let mut debug_struct = f.debug_struct("FieldDescriptorProto");
177 debug_struct.field("name", &self.name);
178 debug_struct.field("number", &self.number);
179 debug_struct.field("label", &self.label);
180 debug_struct.field("r#type", &self.r#type);
181 debug_struct.field("type_name", &self.type_name);
182 debug_struct.field("extendee", &self.extendee);
183 debug_struct.field("default_value", &self.default_value);
184 debug_struct.field("oneof_index", &self.oneof_index);
185 debug_struct.field("json_name", &self.json_name);
186 debug_struct.field("options", &self.options);
187 debug_struct.field("proto3_optional", &self.proto3_optional);
188 if !self._unknown_fields.is_empty() {
189 debug_struct.field("_unknown_fields", &self._unknown_fields);
190 }
191 debug_struct.finish()
192 }
193}
194
195impl std::fmt::Debug for super::OneofDescriptorProto {
196 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
197 let mut debug_struct = f.debug_struct("OneofDescriptorProto");
198 debug_struct.field("name", &self.name);
199 debug_struct.field("options", &self.options);
200 if !self._unknown_fields.is_empty() {
201 debug_struct.field("_unknown_fields", &self._unknown_fields);
202 }
203 debug_struct.finish()
204 }
205}
206
207impl std::fmt::Debug for super::EnumDescriptorProto {
208 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
209 let mut debug_struct = f.debug_struct("EnumDescriptorProto");
210 debug_struct.field("name", &self.name);
211 debug_struct.field("value", &self.value);
212 debug_struct.field("options", &self.options);
213 debug_struct.field("reserved_range", &self.reserved_range);
214 debug_struct.field("reserved_name", &self.reserved_name);
215 if !self._unknown_fields.is_empty() {
216 debug_struct.field("_unknown_fields", &self._unknown_fields);
217 }
218 debug_struct.finish()
219 }
220}
221
222impl std::fmt::Debug for super::enum_descriptor_proto::EnumReservedRange {
223 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
224 let mut debug_struct = f.debug_struct("EnumReservedRange");
225 debug_struct.field("start", &self.start);
226 debug_struct.field("end", &self.end);
227 if !self._unknown_fields.is_empty() {
228 debug_struct.field("_unknown_fields", &self._unknown_fields);
229 }
230 debug_struct.finish()
231 }
232}
233
234impl std::fmt::Debug for super::EnumValueDescriptorProto {
235 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
236 let mut debug_struct = f.debug_struct("EnumValueDescriptorProto");
237 debug_struct.field("name", &self.name);
238 debug_struct.field("number", &self.number);
239 debug_struct.field("options", &self.options);
240 if !self._unknown_fields.is_empty() {
241 debug_struct.field("_unknown_fields", &self._unknown_fields);
242 }
243 debug_struct.finish()
244 }
245}
246
247impl std::fmt::Debug for super::ServiceDescriptorProto {
248 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
249 let mut debug_struct = f.debug_struct("ServiceDescriptorProto");
250 debug_struct.field("name", &self.name);
251 debug_struct.field("method", &self.method);
252 debug_struct.field("options", &self.options);
253 if !self._unknown_fields.is_empty() {
254 debug_struct.field("_unknown_fields", &self._unknown_fields);
255 }
256 debug_struct.finish()
257 }
258}
259
260impl std::fmt::Debug for super::MethodDescriptorProto {
261 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
262 let mut debug_struct = f.debug_struct("MethodDescriptorProto");
263 debug_struct.field("name", &self.name);
264 debug_struct.field("input_type", &self.input_type);
265 debug_struct.field("output_type", &self.output_type);
266 debug_struct.field("options", &self.options);
267 debug_struct.field("client_streaming", &self.client_streaming);
268 debug_struct.field("server_streaming", &self.server_streaming);
269 if !self._unknown_fields.is_empty() {
270 debug_struct.field("_unknown_fields", &self._unknown_fields);
271 }
272 debug_struct.finish()
273 }
274}
275
276impl std::fmt::Debug for super::FileOptions {
277 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278 let mut debug_struct = f.debug_struct("FileOptions");
279 debug_struct.field("java_package", &self.java_package);
280 debug_struct.field("java_outer_classname", &self.java_outer_classname);
281 debug_struct.field("java_multiple_files", &self.java_multiple_files);
282 debug_struct.field(
283 "java_generate_equals_and_hash",
284 &self.java_generate_equals_and_hash,
285 );
286 debug_struct.field("java_string_check_utf8", &self.java_string_check_utf8);
287 debug_struct.field("optimize_for", &self.optimize_for);
288 debug_struct.field("go_package", &self.go_package);
289 debug_struct.field("cc_generic_services", &self.cc_generic_services);
290 debug_struct.field("java_generic_services", &self.java_generic_services);
291 debug_struct.field("py_generic_services", &self.py_generic_services);
292 debug_struct.field("deprecated", &self.deprecated);
293 debug_struct.field("cc_enable_arenas", &self.cc_enable_arenas);
294 debug_struct.field("objc_class_prefix", &self.objc_class_prefix);
295 debug_struct.field("csharp_namespace", &self.csharp_namespace);
296 debug_struct.field("swift_prefix", &self.swift_prefix);
297 debug_struct.field("php_class_prefix", &self.php_class_prefix);
298 debug_struct.field("php_namespace", &self.php_namespace);
299 debug_struct.field("php_metadata_namespace", &self.php_metadata_namespace);
300 debug_struct.field("ruby_package", &self.ruby_package);
301 debug_struct.field("features", &self.features);
302 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
303 if !self._unknown_fields.is_empty() {
304 debug_struct.field("_unknown_fields", &self._unknown_fields);
305 }
306 debug_struct.finish()
307 }
308}
309
310impl std::fmt::Debug for super::MessageOptions {
311 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
312 let mut debug_struct = f.debug_struct("MessageOptions");
313 debug_struct.field("message_set_wire_format", &self.message_set_wire_format);
314 debug_struct.field(
315 "no_standard_descriptor_accessor",
316 &self.no_standard_descriptor_accessor,
317 );
318 debug_struct.field("deprecated", &self.deprecated);
319 debug_struct.field("map_entry", &self.map_entry);
320 debug_struct.field(
321 "deprecated_legacy_json_field_conflicts",
322 &self.deprecated_legacy_json_field_conflicts,
323 );
324 debug_struct.field("features", &self.features);
325 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
326 if !self._unknown_fields.is_empty() {
327 debug_struct.field("_unknown_fields", &self._unknown_fields);
328 }
329 debug_struct.finish()
330 }
331}
332
333impl std::fmt::Debug for super::FieldOptions {
334 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
335 let mut debug_struct = f.debug_struct("FieldOptions");
336 debug_struct.field("ctype", &self.ctype);
337 debug_struct.field("packed", &self.packed);
338 debug_struct.field("jstype", &self.jstype);
339 debug_struct.field("lazy", &self.lazy);
340 debug_struct.field("unverified_lazy", &self.unverified_lazy);
341 debug_struct.field("deprecated", &self.deprecated);
342 debug_struct.field("weak", &self.weak);
343 debug_struct.field("debug_redact", &self.debug_redact);
344 debug_struct.field("retention", &self.retention);
345 debug_struct.field("targets", &self.targets);
346 debug_struct.field("edition_defaults", &self.edition_defaults);
347 debug_struct.field("features", &self.features);
348 debug_struct.field("feature_support", &self.feature_support);
349 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
350 if !self._unknown_fields.is_empty() {
351 debug_struct.field("_unknown_fields", &self._unknown_fields);
352 }
353 debug_struct.finish()
354 }
355}
356
357impl std::fmt::Debug for super::field_options::EditionDefault {
358 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
359 let mut debug_struct = f.debug_struct("EditionDefault");
360 debug_struct.field("edition", &self.edition);
361 debug_struct.field("value", &self.value);
362 if !self._unknown_fields.is_empty() {
363 debug_struct.field("_unknown_fields", &self._unknown_fields);
364 }
365 debug_struct.finish()
366 }
367}
368
369impl std::fmt::Debug for super::field_options::FeatureSupport {
370 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
371 let mut debug_struct = f.debug_struct("FeatureSupport");
372 debug_struct.field("edition_introduced", &self.edition_introduced);
373 debug_struct.field("edition_deprecated", &self.edition_deprecated);
374 debug_struct.field("deprecation_warning", &self.deprecation_warning);
375 debug_struct.field("edition_removed", &self.edition_removed);
376 if !self._unknown_fields.is_empty() {
377 debug_struct.field("_unknown_fields", &self._unknown_fields);
378 }
379 debug_struct.finish()
380 }
381}
382
383impl std::fmt::Debug for super::OneofOptions {
384 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
385 let mut debug_struct = f.debug_struct("OneofOptions");
386 debug_struct.field("features", &self.features);
387 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
388 if !self._unknown_fields.is_empty() {
389 debug_struct.field("_unknown_fields", &self._unknown_fields);
390 }
391 debug_struct.finish()
392 }
393}
394
395impl std::fmt::Debug for super::EnumOptions {
396 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
397 let mut debug_struct = f.debug_struct("EnumOptions");
398 debug_struct.field("allow_alias", &self.allow_alias);
399 debug_struct.field("deprecated", &self.deprecated);
400 debug_struct.field(
401 "deprecated_legacy_json_field_conflicts",
402 &self.deprecated_legacy_json_field_conflicts,
403 );
404 debug_struct.field("features", &self.features);
405 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
406 if !self._unknown_fields.is_empty() {
407 debug_struct.field("_unknown_fields", &self._unknown_fields);
408 }
409 debug_struct.finish()
410 }
411}
412
413impl std::fmt::Debug for super::EnumValueOptions {
414 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
415 let mut debug_struct = f.debug_struct("EnumValueOptions");
416 debug_struct.field("deprecated", &self.deprecated);
417 debug_struct.field("features", &self.features);
418 debug_struct.field("debug_redact", &self.debug_redact);
419 debug_struct.field("feature_support", &self.feature_support);
420 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
421 if !self._unknown_fields.is_empty() {
422 debug_struct.field("_unknown_fields", &self._unknown_fields);
423 }
424 debug_struct.finish()
425 }
426}
427
428impl std::fmt::Debug for super::ServiceOptions {
429 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
430 let mut debug_struct = f.debug_struct("ServiceOptions");
431 debug_struct.field("features", &self.features);
432 debug_struct.field("deprecated", &self.deprecated);
433 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
434 if !self._unknown_fields.is_empty() {
435 debug_struct.field("_unknown_fields", &self._unknown_fields);
436 }
437 debug_struct.finish()
438 }
439}
440
441impl std::fmt::Debug for super::MethodOptions {
442 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
443 let mut debug_struct = f.debug_struct("MethodOptions");
444 debug_struct.field("deprecated", &self.deprecated);
445 debug_struct.field("idempotency_level", &self.idempotency_level);
446 debug_struct.field("features", &self.features);
447 debug_struct.field("uninterpreted_option", &self.uninterpreted_option);
448 if !self._unknown_fields.is_empty() {
449 debug_struct.field("_unknown_fields", &self._unknown_fields);
450 }
451 debug_struct.finish()
452 }
453}
454
455impl std::fmt::Debug for super::UninterpretedOption {
456 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
457 let mut debug_struct = f.debug_struct("UninterpretedOption");
458 debug_struct.field("name", &self.name);
459 debug_struct.field("identifier_value", &self.identifier_value);
460 debug_struct.field("positive_int_value", &self.positive_int_value);
461 debug_struct.field("negative_int_value", &self.negative_int_value);
462 debug_struct.field("double_value", &self.double_value);
463 debug_struct.field("string_value", &self.string_value);
464 debug_struct.field("aggregate_value", &self.aggregate_value);
465 if !self._unknown_fields.is_empty() {
466 debug_struct.field("_unknown_fields", &self._unknown_fields);
467 }
468 debug_struct.finish()
469 }
470}
471
472impl std::fmt::Debug for super::uninterpreted_option::NamePart {
473 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
474 let mut debug_struct = f.debug_struct("NamePart");
475 debug_struct.field("name_part", &self.name_part);
476 debug_struct.field("is_extension", &self.is_extension);
477 if !self._unknown_fields.is_empty() {
478 debug_struct.field("_unknown_fields", &self._unknown_fields);
479 }
480 debug_struct.finish()
481 }
482}
483
484impl std::fmt::Debug for super::FeatureSet {
485 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
486 let mut debug_struct = f.debug_struct("FeatureSet");
487 debug_struct.field("field_presence", &self.field_presence);
488 debug_struct.field("enum_type", &self.enum_type);
489 debug_struct.field("repeated_field_encoding", &self.repeated_field_encoding);
490 debug_struct.field("utf8_validation", &self.utf8_validation);
491 debug_struct.field("message_encoding", &self.message_encoding);
492 debug_struct.field("json_format", &self.json_format);
493 if !self._unknown_fields.is_empty() {
494 debug_struct.field("_unknown_fields", &self._unknown_fields);
495 }
496 debug_struct.finish()
497 }
498}
499
500impl std::fmt::Debug for super::FeatureSetDefaults {
501 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
502 let mut debug_struct = f.debug_struct("FeatureSetDefaults");
503 debug_struct.field("defaults", &self.defaults);
504 debug_struct.field("minimum_edition", &self.minimum_edition);
505 debug_struct.field("maximum_edition", &self.maximum_edition);
506 if !self._unknown_fields.is_empty() {
507 debug_struct.field("_unknown_fields", &self._unknown_fields);
508 }
509 debug_struct.finish()
510 }
511}
512
513impl std::fmt::Debug for super::feature_set_defaults::FeatureSetEditionDefault {
514 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
515 let mut debug_struct = f.debug_struct("FeatureSetEditionDefault");
516 debug_struct.field("edition", &self.edition);
517 debug_struct.field("overridable_features", &self.overridable_features);
518 debug_struct.field("fixed_features", &self.fixed_features);
519 if !self._unknown_fields.is_empty() {
520 debug_struct.field("_unknown_fields", &self._unknown_fields);
521 }
522 debug_struct.finish()
523 }
524}
525
526impl std::fmt::Debug for super::SourceCodeInfo {
527 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
528 let mut debug_struct = f.debug_struct("SourceCodeInfo");
529 debug_struct.field("location", &self.location);
530 if !self._unknown_fields.is_empty() {
531 debug_struct.field("_unknown_fields", &self._unknown_fields);
532 }
533 debug_struct.finish()
534 }
535}
536
537impl std::fmt::Debug for super::source_code_info::Location {
538 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
539 let mut debug_struct = f.debug_struct("Location");
540 debug_struct.field("path", &self.path);
541 debug_struct.field("span", &self.span);
542 debug_struct.field("leading_comments", &self.leading_comments);
543 debug_struct.field("trailing_comments", &self.trailing_comments);
544 debug_struct.field("leading_detached_comments", &self.leading_detached_comments);
545 if !self._unknown_fields.is_empty() {
546 debug_struct.field("_unknown_fields", &self._unknown_fields);
547 }
548 debug_struct.finish()
549 }
550}
551
552impl std::fmt::Debug for super::GeneratedCodeInfo {
553 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
554 let mut debug_struct = f.debug_struct("GeneratedCodeInfo");
555 debug_struct.field("annotation", &self.annotation);
556 if !self._unknown_fields.is_empty() {
557 debug_struct.field("_unknown_fields", &self._unknown_fields);
558 }
559 debug_struct.finish()
560 }
561}
562
563impl std::fmt::Debug for super::generated_code_info::Annotation {
564 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
565 let mut debug_struct = f.debug_struct("Annotation");
566 debug_struct.field("path", &self.path);
567 debug_struct.field("source_file", &self.source_file);
568 debug_struct.field("begin", &self.begin);
569 debug_struct.field("end", &self.end);
570 debug_struct.field("semantic", &self.semantic);
571 if !self._unknown_fields.is_empty() {
572 debug_struct.field("_unknown_fields", &self._unknown_fields);
573 }
574 debug_struct.finish()
575 }
576}
577
578impl std::fmt::Debug for super::SourceContext {
579 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
580 let mut debug_struct = f.debug_struct("SourceContext");
581 debug_struct.field("file_name", &self.file_name);
582 if !self._unknown_fields.is_empty() {
583 debug_struct.field("_unknown_fields", &self._unknown_fields);
584 }
585 debug_struct.finish()
586 }
587}
588
589impl std::fmt::Debug for super::Type {
590 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
591 let mut debug_struct = f.debug_struct("Type");
592 debug_struct.field("name", &self.name);
593 debug_struct.field("fields", &self.fields);
594 debug_struct.field("oneofs", &self.oneofs);
595 debug_struct.field("options", &self.options);
596 debug_struct.field("source_context", &self.source_context);
597 debug_struct.field("syntax", &self.syntax);
598 debug_struct.field("edition", &self.edition);
599 if !self._unknown_fields.is_empty() {
600 debug_struct.field("_unknown_fields", &self._unknown_fields);
601 }
602 debug_struct.finish()
603 }
604}
605
606impl std::fmt::Debug for super::Field {
607 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
608 let mut debug_struct = f.debug_struct("Field");
609 debug_struct.field("kind", &self.kind);
610 debug_struct.field("cardinality", &self.cardinality);
611 debug_struct.field("number", &self.number);
612 debug_struct.field("name", &self.name);
613 debug_struct.field("type_url", &self.type_url);
614 debug_struct.field("oneof_index", &self.oneof_index);
615 debug_struct.field("packed", &self.packed);
616 debug_struct.field("options", &self.options);
617 debug_struct.field("json_name", &self.json_name);
618 debug_struct.field("default_value", &self.default_value);
619 if !self._unknown_fields.is_empty() {
620 debug_struct.field("_unknown_fields", &self._unknown_fields);
621 }
622 debug_struct.finish()
623 }
624}
625
626impl std::fmt::Debug for super::Enum {
627 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
628 let mut debug_struct = f.debug_struct("Enum");
629 debug_struct.field("name", &self.name);
630 debug_struct.field("enumvalue", &self.enumvalue);
631 debug_struct.field("options", &self.options);
632 debug_struct.field("source_context", &self.source_context);
633 debug_struct.field("syntax", &self.syntax);
634 debug_struct.field("edition", &self.edition);
635 if !self._unknown_fields.is_empty() {
636 debug_struct.field("_unknown_fields", &self._unknown_fields);
637 }
638 debug_struct.finish()
639 }
640}
641
642impl std::fmt::Debug for super::EnumValue {
643 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
644 let mut debug_struct = f.debug_struct("EnumValue");
645 debug_struct.field("name", &self.name);
646 debug_struct.field("number", &self.number);
647 debug_struct.field("options", &self.options);
648 if !self._unknown_fields.is_empty() {
649 debug_struct.field("_unknown_fields", &self._unknown_fields);
650 }
651 debug_struct.finish()
652 }
653}
654
655impl std::fmt::Debug for super::Option {
656 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
657 let mut debug_struct = f.debug_struct("Option");
658 debug_struct.field("name", &self.name);
659 debug_struct.field("value", &self.value);
660 if !self._unknown_fields.is_empty() {
661 debug_struct.field("_unknown_fields", &self._unknown_fields);
662 }
663 debug_struct.finish()
664 }
665}