google_cloud_iam_admin_v1/model/
debug.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::AuditData {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("AuditData");
23        debug_struct.field("permission_delta", &self.permission_delta);
24        if !self._unknown_fields.is_empty() {
25            debug_struct.field("_unknown_fields", &self._unknown_fields);
26        }
27        debug_struct.finish()
28    }
29}
30
31impl std::fmt::Debug for super::audit_data::PermissionDelta {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        let mut debug_struct = f.debug_struct("PermissionDelta");
34        debug_struct.field("added_permissions", &self.added_permissions);
35        debug_struct.field("removed_permissions", &self.removed_permissions);
36        if !self._unknown_fields.is_empty() {
37            debug_struct.field("_unknown_fields", &self._unknown_fields);
38        }
39        debug_struct.finish()
40    }
41}
42
43impl std::fmt::Debug for super::ServiceAccount {
44    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45        let mut debug_struct = f.debug_struct("ServiceAccount");
46        debug_struct.field("name", &self.name);
47        debug_struct.field("project_id", &self.project_id);
48        debug_struct.field("unique_id", &self.unique_id);
49        debug_struct.field("email", &self.email);
50        debug_struct.field("display_name", &self.display_name);
51        debug_struct.field("etag", &self.etag);
52        debug_struct.field("description", &self.description);
53        debug_struct.field("oauth2_client_id", &self.oauth2_client_id);
54        debug_struct.field("disabled", &self.disabled);
55        if !self._unknown_fields.is_empty() {
56            debug_struct.field("_unknown_fields", &self._unknown_fields);
57        }
58        debug_struct.finish()
59    }
60}
61
62impl std::fmt::Debug for super::CreateServiceAccountRequest {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        let mut debug_struct = f.debug_struct("CreateServiceAccountRequest");
65        debug_struct.field("name", &self.name);
66        debug_struct.field("account_id", &self.account_id);
67        debug_struct.field("service_account", &self.service_account);
68        if !self._unknown_fields.is_empty() {
69            debug_struct.field("_unknown_fields", &self._unknown_fields);
70        }
71        debug_struct.finish()
72    }
73}
74
75impl std::fmt::Debug for super::ListServiceAccountsRequest {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("ListServiceAccountsRequest");
78        debug_struct.field("name", &self.name);
79        debug_struct.field("page_size", &self.page_size);
80        debug_struct.field("page_token", &self.page_token);
81        if !self._unknown_fields.is_empty() {
82            debug_struct.field("_unknown_fields", &self._unknown_fields);
83        }
84        debug_struct.finish()
85    }
86}
87
88impl std::fmt::Debug for super::ListServiceAccountsResponse {
89    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
90        let mut debug_struct = f.debug_struct("ListServiceAccountsResponse");
91        debug_struct.field("accounts", &self.accounts);
92        debug_struct.field("next_page_token", &self.next_page_token);
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::GetServiceAccountRequest {
101    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
102        let mut debug_struct = f.debug_struct("GetServiceAccountRequest");
103        debug_struct.field("name", &self.name);
104        if !self._unknown_fields.is_empty() {
105            debug_struct.field("_unknown_fields", &self._unknown_fields);
106        }
107        debug_struct.finish()
108    }
109}
110
111impl std::fmt::Debug for super::DeleteServiceAccountRequest {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("DeleteServiceAccountRequest");
114        debug_struct.field("name", &self.name);
115        if !self._unknown_fields.is_empty() {
116            debug_struct.field("_unknown_fields", &self._unknown_fields);
117        }
118        debug_struct.finish()
119    }
120}
121
122impl std::fmt::Debug for super::PatchServiceAccountRequest {
123    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124        let mut debug_struct = f.debug_struct("PatchServiceAccountRequest");
125        debug_struct.field("service_account", &self.service_account);
126        debug_struct.field("update_mask", &self.update_mask);
127        if !self._unknown_fields.is_empty() {
128            debug_struct.field("_unknown_fields", &self._unknown_fields);
129        }
130        debug_struct.finish()
131    }
132}
133
134impl std::fmt::Debug for super::UndeleteServiceAccountRequest {
135    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136        let mut debug_struct = f.debug_struct("UndeleteServiceAccountRequest");
137        debug_struct.field("name", &self.name);
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::UndeleteServiceAccountResponse {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("UndeleteServiceAccountResponse");
148        debug_struct.field("restored_account", &self.restored_account);
149        if !self._unknown_fields.is_empty() {
150            debug_struct.field("_unknown_fields", &self._unknown_fields);
151        }
152        debug_struct.finish()
153    }
154}
155
156impl std::fmt::Debug for super::EnableServiceAccountRequest {
157    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
158        let mut debug_struct = f.debug_struct("EnableServiceAccountRequest");
159        debug_struct.field("name", &self.name);
160        if !self._unknown_fields.is_empty() {
161            debug_struct.field("_unknown_fields", &self._unknown_fields);
162        }
163        debug_struct.finish()
164    }
165}
166
167impl std::fmt::Debug for super::DisableServiceAccountRequest {
168    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
169        let mut debug_struct = f.debug_struct("DisableServiceAccountRequest");
170        debug_struct.field("name", &self.name);
171        if !self._unknown_fields.is_empty() {
172            debug_struct.field("_unknown_fields", &self._unknown_fields);
173        }
174        debug_struct.finish()
175    }
176}
177
178impl std::fmt::Debug for super::ListServiceAccountKeysRequest {
179    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180        let mut debug_struct = f.debug_struct("ListServiceAccountKeysRequest");
181        debug_struct.field("name", &self.name);
182        debug_struct.field("key_types", &self.key_types);
183        if !self._unknown_fields.is_empty() {
184            debug_struct.field("_unknown_fields", &self._unknown_fields);
185        }
186        debug_struct.finish()
187    }
188}
189
190impl std::fmt::Debug for super::ListServiceAccountKeysResponse {
191    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192        let mut debug_struct = f.debug_struct("ListServiceAccountKeysResponse");
193        debug_struct.field("keys", &self.keys);
194        if !self._unknown_fields.is_empty() {
195            debug_struct.field("_unknown_fields", &self._unknown_fields);
196        }
197        debug_struct.finish()
198    }
199}
200
201impl std::fmt::Debug for super::GetServiceAccountKeyRequest {
202    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
203        let mut debug_struct = f.debug_struct("GetServiceAccountKeyRequest");
204        debug_struct.field("name", &self.name);
205        debug_struct.field("public_key_type", &self.public_key_type);
206        if !self._unknown_fields.is_empty() {
207            debug_struct.field("_unknown_fields", &self._unknown_fields);
208        }
209        debug_struct.finish()
210    }
211}
212
213impl std::fmt::Debug for super::ServiceAccountKey {
214    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
215        let mut debug_struct = f.debug_struct("ServiceAccountKey");
216        debug_struct.field("name", &self.name);
217        debug_struct.field("private_key_type", &self.private_key_type);
218        debug_struct.field("key_algorithm", &self.key_algorithm);
219        debug_struct.field("private_key_data", &self.private_key_data);
220        debug_struct.field("public_key_data", &self.public_key_data);
221        debug_struct.field("valid_after_time", &self.valid_after_time);
222        debug_struct.field("valid_before_time", &self.valid_before_time);
223        debug_struct.field("key_origin", &self.key_origin);
224        debug_struct.field("key_type", &self.key_type);
225        debug_struct.field("disabled", &self.disabled);
226        if !self._unknown_fields.is_empty() {
227            debug_struct.field("_unknown_fields", &self._unknown_fields);
228        }
229        debug_struct.finish()
230    }
231}
232
233impl std::fmt::Debug for super::CreateServiceAccountKeyRequest {
234    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
235        let mut debug_struct = f.debug_struct("CreateServiceAccountKeyRequest");
236        debug_struct.field("name", &self.name);
237        debug_struct.field("private_key_type", &self.private_key_type);
238        debug_struct.field("key_algorithm", &self.key_algorithm);
239        if !self._unknown_fields.is_empty() {
240            debug_struct.field("_unknown_fields", &self._unknown_fields);
241        }
242        debug_struct.finish()
243    }
244}
245
246impl std::fmt::Debug for super::UploadServiceAccountKeyRequest {
247    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
248        let mut debug_struct = f.debug_struct("UploadServiceAccountKeyRequest");
249        debug_struct.field("name", &self.name);
250        debug_struct.field("public_key_data", &self.public_key_data);
251        if !self._unknown_fields.is_empty() {
252            debug_struct.field("_unknown_fields", &self._unknown_fields);
253        }
254        debug_struct.finish()
255    }
256}
257
258impl std::fmt::Debug for super::DeleteServiceAccountKeyRequest {
259    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
260        let mut debug_struct = f.debug_struct("DeleteServiceAccountKeyRequest");
261        debug_struct.field("name", &self.name);
262        if !self._unknown_fields.is_empty() {
263            debug_struct.field("_unknown_fields", &self._unknown_fields);
264        }
265        debug_struct.finish()
266    }
267}
268
269impl std::fmt::Debug for super::DisableServiceAccountKeyRequest {
270    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
271        let mut debug_struct = f.debug_struct("DisableServiceAccountKeyRequest");
272        debug_struct.field("name", &self.name);
273        if !self._unknown_fields.is_empty() {
274            debug_struct.field("_unknown_fields", &self._unknown_fields);
275        }
276        debug_struct.finish()
277    }
278}
279
280impl std::fmt::Debug for super::EnableServiceAccountKeyRequest {
281    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
282        let mut debug_struct = f.debug_struct("EnableServiceAccountKeyRequest");
283        debug_struct.field("name", &self.name);
284        if !self._unknown_fields.is_empty() {
285            debug_struct.field("_unknown_fields", &self._unknown_fields);
286        }
287        debug_struct.finish()
288    }
289}
290
291impl std::fmt::Debug for super::SignBlobRequest {
292    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
293        let mut debug_struct = f.debug_struct("SignBlobRequest");
294        debug_struct.field("name", &self.name);
295        debug_struct.field("bytes_to_sign", &self.bytes_to_sign);
296        if !self._unknown_fields.is_empty() {
297            debug_struct.field("_unknown_fields", &self._unknown_fields);
298        }
299        debug_struct.finish()
300    }
301}
302
303impl std::fmt::Debug for super::SignBlobResponse {
304    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
305        let mut debug_struct = f.debug_struct("SignBlobResponse");
306        debug_struct.field("key_id", &self.key_id);
307        debug_struct.field("signature", &self.signature);
308        if !self._unknown_fields.is_empty() {
309            debug_struct.field("_unknown_fields", &self._unknown_fields);
310        }
311        debug_struct.finish()
312    }
313}
314
315impl std::fmt::Debug for super::SignJwtRequest {
316    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
317        let mut debug_struct = f.debug_struct("SignJwtRequest");
318        debug_struct.field("name", &self.name);
319        debug_struct.field("payload", &self.payload);
320        if !self._unknown_fields.is_empty() {
321            debug_struct.field("_unknown_fields", &self._unknown_fields);
322        }
323        debug_struct.finish()
324    }
325}
326
327impl std::fmt::Debug for super::SignJwtResponse {
328    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
329        let mut debug_struct = f.debug_struct("SignJwtResponse");
330        debug_struct.field("key_id", &self.key_id);
331        debug_struct.field("signed_jwt", &self.signed_jwt);
332        if !self._unknown_fields.is_empty() {
333            debug_struct.field("_unknown_fields", &self._unknown_fields);
334        }
335        debug_struct.finish()
336    }
337}
338
339impl std::fmt::Debug for super::Role {
340    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
341        let mut debug_struct = f.debug_struct("Role");
342        debug_struct.field("name", &self.name);
343        debug_struct.field("title", &self.title);
344        debug_struct.field("description", &self.description);
345        debug_struct.field("included_permissions", &self.included_permissions);
346        debug_struct.field("stage", &self.stage);
347        debug_struct.field("etag", &self.etag);
348        debug_struct.field("deleted", &self.deleted);
349        if !self._unknown_fields.is_empty() {
350            debug_struct.field("_unknown_fields", &self._unknown_fields);
351        }
352        debug_struct.finish()
353    }
354}
355
356impl std::fmt::Debug for super::QueryGrantableRolesRequest {
357    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
358        let mut debug_struct = f.debug_struct("QueryGrantableRolesRequest");
359        debug_struct.field("full_resource_name", &self.full_resource_name);
360        debug_struct.field("view", &self.view);
361        debug_struct.field("page_size", &self.page_size);
362        debug_struct.field("page_token", &self.page_token);
363        if !self._unknown_fields.is_empty() {
364            debug_struct.field("_unknown_fields", &self._unknown_fields);
365        }
366        debug_struct.finish()
367    }
368}
369
370impl std::fmt::Debug for super::QueryGrantableRolesResponse {
371    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
372        let mut debug_struct = f.debug_struct("QueryGrantableRolesResponse");
373        debug_struct.field("roles", &self.roles);
374        debug_struct.field("next_page_token", &self.next_page_token);
375        if !self._unknown_fields.is_empty() {
376            debug_struct.field("_unknown_fields", &self._unknown_fields);
377        }
378        debug_struct.finish()
379    }
380}
381
382impl std::fmt::Debug for super::ListRolesRequest {
383    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
384        let mut debug_struct = f.debug_struct("ListRolesRequest");
385        debug_struct.field("parent", &self.parent);
386        debug_struct.field("page_size", &self.page_size);
387        debug_struct.field("page_token", &self.page_token);
388        debug_struct.field("view", &self.view);
389        debug_struct.field("show_deleted", &self.show_deleted);
390        if !self._unknown_fields.is_empty() {
391            debug_struct.field("_unknown_fields", &self._unknown_fields);
392        }
393        debug_struct.finish()
394    }
395}
396
397impl std::fmt::Debug for super::ListRolesResponse {
398    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
399        let mut debug_struct = f.debug_struct("ListRolesResponse");
400        debug_struct.field("roles", &self.roles);
401        debug_struct.field("next_page_token", &self.next_page_token);
402        if !self._unknown_fields.is_empty() {
403            debug_struct.field("_unknown_fields", &self._unknown_fields);
404        }
405        debug_struct.finish()
406    }
407}
408
409impl std::fmt::Debug for super::GetRoleRequest {
410    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
411        let mut debug_struct = f.debug_struct("GetRoleRequest");
412        debug_struct.field("name", &self.name);
413        if !self._unknown_fields.is_empty() {
414            debug_struct.field("_unknown_fields", &self._unknown_fields);
415        }
416        debug_struct.finish()
417    }
418}
419
420impl std::fmt::Debug for super::CreateRoleRequest {
421    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
422        let mut debug_struct = f.debug_struct("CreateRoleRequest");
423        debug_struct.field("parent", &self.parent);
424        debug_struct.field("role_id", &self.role_id);
425        debug_struct.field("role", &self.role);
426        if !self._unknown_fields.is_empty() {
427            debug_struct.field("_unknown_fields", &self._unknown_fields);
428        }
429        debug_struct.finish()
430    }
431}
432
433impl std::fmt::Debug for super::UpdateRoleRequest {
434    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
435        let mut debug_struct = f.debug_struct("UpdateRoleRequest");
436        debug_struct.field("name", &self.name);
437        debug_struct.field("role", &self.role);
438        debug_struct.field("update_mask", &self.update_mask);
439        if !self._unknown_fields.is_empty() {
440            debug_struct.field("_unknown_fields", &self._unknown_fields);
441        }
442        debug_struct.finish()
443    }
444}
445
446impl std::fmt::Debug for super::DeleteRoleRequest {
447    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
448        let mut debug_struct = f.debug_struct("DeleteRoleRequest");
449        debug_struct.field("name", &self.name);
450        debug_struct.field("etag", &self.etag);
451        if !self._unknown_fields.is_empty() {
452            debug_struct.field("_unknown_fields", &self._unknown_fields);
453        }
454        debug_struct.finish()
455    }
456}
457
458impl std::fmt::Debug for super::UndeleteRoleRequest {
459    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
460        let mut debug_struct = f.debug_struct("UndeleteRoleRequest");
461        debug_struct.field("name", &self.name);
462        debug_struct.field("etag", &self.etag);
463        if !self._unknown_fields.is_empty() {
464            debug_struct.field("_unknown_fields", &self._unknown_fields);
465        }
466        debug_struct.finish()
467    }
468}
469
470impl std::fmt::Debug for super::Permission {
471    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
472        let mut debug_struct = f.debug_struct("Permission");
473        debug_struct.field("name", &self.name);
474        debug_struct.field("title", &self.title);
475        debug_struct.field("description", &self.description);
476        debug_struct.field("only_in_predefined_roles", &self.only_in_predefined_roles);
477        debug_struct.field("stage", &self.stage);
478        debug_struct.field(
479            "custom_roles_support_level",
480            &self.custom_roles_support_level,
481        );
482        debug_struct.field("api_disabled", &self.api_disabled);
483        debug_struct.field("primary_permission", &self.primary_permission);
484        if !self._unknown_fields.is_empty() {
485            debug_struct.field("_unknown_fields", &self._unknown_fields);
486        }
487        debug_struct.finish()
488    }
489}
490
491impl std::fmt::Debug for super::QueryTestablePermissionsRequest {
492    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
493        let mut debug_struct = f.debug_struct("QueryTestablePermissionsRequest");
494        debug_struct.field("full_resource_name", &self.full_resource_name);
495        debug_struct.field("page_size", &self.page_size);
496        debug_struct.field("page_token", &self.page_token);
497        if !self._unknown_fields.is_empty() {
498            debug_struct.field("_unknown_fields", &self._unknown_fields);
499        }
500        debug_struct.finish()
501    }
502}
503
504impl std::fmt::Debug for super::QueryTestablePermissionsResponse {
505    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
506        let mut debug_struct = f.debug_struct("QueryTestablePermissionsResponse");
507        debug_struct.field("permissions", &self.permissions);
508        debug_struct.field("next_page_token", &self.next_page_token);
509        if !self._unknown_fields.is_empty() {
510            debug_struct.field("_unknown_fields", &self._unknown_fields);
511        }
512        debug_struct.finish()
513    }
514}
515
516impl std::fmt::Debug for super::QueryAuditableServicesRequest {
517    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
518        let mut debug_struct = f.debug_struct("QueryAuditableServicesRequest");
519        debug_struct.field("full_resource_name", &self.full_resource_name);
520        if !self._unknown_fields.is_empty() {
521            debug_struct.field("_unknown_fields", &self._unknown_fields);
522        }
523        debug_struct.finish()
524    }
525}
526
527impl std::fmt::Debug for super::QueryAuditableServicesResponse {
528    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
529        let mut debug_struct = f.debug_struct("QueryAuditableServicesResponse");
530        debug_struct.field("services", &self.services);
531        if !self._unknown_fields.is_empty() {
532            debug_struct.field("_unknown_fields", &self._unknown_fields);
533        }
534        debug_struct.finish()
535    }
536}
537
538impl std::fmt::Debug for super::query_auditable_services_response::AuditableService {
539    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
540        let mut debug_struct = f.debug_struct("AuditableService");
541        debug_struct.field("name", &self.name);
542        if !self._unknown_fields.is_empty() {
543            debug_struct.field("_unknown_fields", &self._unknown_fields);
544        }
545        debug_struct.finish()
546    }
547}
548
549impl std::fmt::Debug for super::LintPolicyRequest {
550    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
551        let mut debug_struct = f.debug_struct("LintPolicyRequest");
552        debug_struct.field("full_resource_name", &self.full_resource_name);
553        debug_struct.field("lint_object", &self.lint_object);
554        if !self._unknown_fields.is_empty() {
555            debug_struct.field("_unknown_fields", &self._unknown_fields);
556        }
557        debug_struct.finish()
558    }
559}
560
561impl std::fmt::Debug for super::LintResult {
562    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
563        let mut debug_struct = f.debug_struct("LintResult");
564        debug_struct.field("level", &self.level);
565        debug_struct.field("validation_unit_name", &self.validation_unit_name);
566        debug_struct.field("severity", &self.severity);
567        debug_struct.field("field_name", &self.field_name);
568        debug_struct.field("location_offset", &self.location_offset);
569        debug_struct.field("debug_message", &self.debug_message);
570        if !self._unknown_fields.is_empty() {
571            debug_struct.field("_unknown_fields", &self._unknown_fields);
572        }
573        debug_struct.finish()
574    }
575}
576
577impl std::fmt::Debug for super::LintPolicyResponse {
578    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
579        let mut debug_struct = f.debug_struct("LintPolicyResponse");
580        debug_struct.field("lint_results", &self.lint_results);
581        if !self._unknown_fields.is_empty() {
582            debug_struct.field("_unknown_fields", &self._unknown_fields);
583        }
584        debug_struct.finish()
585    }
586}