google_cloud_storage/generated/gapic/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::DeleteBucketRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("DeleteBucketRequest");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
25        debug_struct.field(
26            "if_metageneration_not_match",
27            &self.if_metageneration_not_match,
28        );
29        if !self._unknown_fields.is_empty() {
30            debug_struct.field("_unknown_fields", &self._unknown_fields);
31        }
32        debug_struct.finish()
33    }
34}
35
36impl std::fmt::Debug for super::GetBucketRequest {
37    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
38        let mut debug_struct = f.debug_struct("GetBucketRequest");
39        debug_struct.field("name", &self.name);
40        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
41        debug_struct.field(
42            "if_metageneration_not_match",
43            &self.if_metageneration_not_match,
44        );
45        debug_struct.field("read_mask", &self.read_mask);
46        if !self._unknown_fields.is_empty() {
47            debug_struct.field("_unknown_fields", &self._unknown_fields);
48        }
49        debug_struct.finish()
50    }
51}
52
53impl std::fmt::Debug for super::CreateBucketRequest {
54    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
55        let mut debug_struct = f.debug_struct("CreateBucketRequest");
56        debug_struct.field("parent", &self.parent);
57        debug_struct.field("bucket", &self.bucket);
58        debug_struct.field("bucket_id", &self.bucket_id);
59        debug_struct.field("predefined_acl", &self.predefined_acl);
60        debug_struct.field(
61            "predefined_default_object_acl",
62            &self.predefined_default_object_acl,
63        );
64        debug_struct.field("enable_object_retention", &self.enable_object_retention);
65        if !self._unknown_fields.is_empty() {
66            debug_struct.field("_unknown_fields", &self._unknown_fields);
67        }
68        debug_struct.finish()
69    }
70}
71
72impl std::fmt::Debug for super::ListBucketsRequest {
73    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
74        let mut debug_struct = f.debug_struct("ListBucketsRequest");
75        debug_struct.field("parent", &self.parent);
76        debug_struct.field("page_size", &self.page_size);
77        debug_struct.field("page_token", &self.page_token);
78        debug_struct.field("prefix", &self.prefix);
79        debug_struct.field("read_mask", &self.read_mask);
80        if !self._unknown_fields.is_empty() {
81            debug_struct.field("_unknown_fields", &self._unknown_fields);
82        }
83        debug_struct.finish()
84    }
85}
86
87impl std::fmt::Debug for super::ListBucketsResponse {
88    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
89        let mut debug_struct = f.debug_struct("ListBucketsResponse");
90        debug_struct.field("buckets", &self.buckets);
91        debug_struct.field("next_page_token", &self.next_page_token);
92        if !self._unknown_fields.is_empty() {
93            debug_struct.field("_unknown_fields", &self._unknown_fields);
94        }
95        debug_struct.finish()
96    }
97}
98
99impl std::fmt::Debug for super::LockBucketRetentionPolicyRequest {
100    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
101        let mut debug_struct = f.debug_struct("LockBucketRetentionPolicyRequest");
102        debug_struct.field("bucket", &self.bucket);
103        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
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::UpdateBucketRequest {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("UpdateBucketRequest");
114        debug_struct.field("bucket", &self.bucket);
115        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
116        debug_struct.field(
117            "if_metageneration_not_match",
118            &self.if_metageneration_not_match,
119        );
120        debug_struct.field("predefined_acl", &self.predefined_acl);
121        debug_struct.field(
122            "predefined_default_object_acl",
123            &self.predefined_default_object_acl,
124        );
125        debug_struct.field("update_mask", &self.update_mask);
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::ComposeObjectRequest {
134    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
135        let mut debug_struct = f.debug_struct("ComposeObjectRequest");
136        debug_struct.field("destination", &self.destination);
137        debug_struct.field("source_objects", &self.source_objects);
138        debug_struct.field(
139            "destination_predefined_acl",
140            &self.destination_predefined_acl,
141        );
142        debug_struct.field("if_generation_match", &self.if_generation_match);
143        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
144        debug_struct.field("kms_key", &self.kms_key);
145        debug_struct.field(
146            "common_object_request_params",
147            &self.common_object_request_params,
148        );
149        debug_struct.field("object_checksums", &self.object_checksums);
150        if !self._unknown_fields.is_empty() {
151            debug_struct.field("_unknown_fields", &self._unknown_fields);
152        }
153        debug_struct.finish()
154    }
155}
156
157impl std::fmt::Debug for super::compose_object_request::SourceObject {
158    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
159        let mut debug_struct = f.debug_struct("SourceObject");
160        debug_struct.field("name", &self.name);
161        debug_struct.field("generation", &self.generation);
162        debug_struct.field("object_preconditions", &self.object_preconditions);
163        if !self._unknown_fields.is_empty() {
164            debug_struct.field("_unknown_fields", &self._unknown_fields);
165        }
166        debug_struct.finish()
167    }
168}
169
170impl std::fmt::Debug for super::compose_object_request::source_object::ObjectPreconditions {
171    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
172        let mut debug_struct = f.debug_struct("ObjectPreconditions");
173        debug_struct.field("if_generation_match", &self.if_generation_match);
174        if !self._unknown_fields.is_empty() {
175            debug_struct.field("_unknown_fields", &self._unknown_fields);
176        }
177        debug_struct.finish()
178    }
179}
180
181impl std::fmt::Debug for super::DeleteObjectRequest {
182    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
183        let mut debug_struct = f.debug_struct("DeleteObjectRequest");
184        debug_struct.field("bucket", &self.bucket);
185        debug_struct.field("object", &self.object);
186        debug_struct.field("generation", &self.generation);
187        debug_struct.field("if_generation_match", &self.if_generation_match);
188        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
189        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
190        debug_struct.field(
191            "if_metageneration_not_match",
192            &self.if_metageneration_not_match,
193        );
194        debug_struct.field(
195            "common_object_request_params",
196            &self.common_object_request_params,
197        );
198        if !self._unknown_fields.is_empty() {
199            debug_struct.field("_unknown_fields", &self._unknown_fields);
200        }
201        debug_struct.finish()
202    }
203}
204
205impl std::fmt::Debug for super::RestoreObjectRequest {
206    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
207        let mut debug_struct = f.debug_struct("RestoreObjectRequest");
208        debug_struct.field("bucket", &self.bucket);
209        debug_struct.field("object", &self.object);
210        debug_struct.field("generation", &self.generation);
211        debug_struct.field("restore_token", &self.restore_token);
212        debug_struct.field("if_generation_match", &self.if_generation_match);
213        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
214        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
215        debug_struct.field(
216            "if_metageneration_not_match",
217            &self.if_metageneration_not_match,
218        );
219        debug_struct.field("copy_source_acl", &self.copy_source_acl);
220        debug_struct.field(
221            "common_object_request_params",
222            &self.common_object_request_params,
223        );
224        if !self._unknown_fields.is_empty() {
225            debug_struct.field("_unknown_fields", &self._unknown_fields);
226        }
227        debug_struct.finish()
228    }
229}
230
231impl std::fmt::Debug for super::ReadObjectRequest {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("ReadObjectRequest");
234        debug_struct.field("bucket", &self.bucket);
235        debug_struct.field("object", &self.object);
236        debug_struct.field("generation", &self.generation);
237        debug_struct.field("read_offset", &self.read_offset);
238        debug_struct.field("read_limit", &self.read_limit);
239        debug_struct.field("if_generation_match", &self.if_generation_match);
240        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
241        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
242        debug_struct.field(
243            "if_metageneration_not_match",
244            &self.if_metageneration_not_match,
245        );
246        debug_struct.field(
247            "common_object_request_params",
248            &self.common_object_request_params,
249        );
250        debug_struct.field("read_mask", &self.read_mask);
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::GetObjectRequest {
259    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
260        let mut debug_struct = f.debug_struct("GetObjectRequest");
261        debug_struct.field("bucket", &self.bucket);
262        debug_struct.field("object", &self.object);
263        debug_struct.field("generation", &self.generation);
264        debug_struct.field("soft_deleted", &self.soft_deleted);
265        debug_struct.field("if_generation_match", &self.if_generation_match);
266        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
267        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
268        debug_struct.field(
269            "if_metageneration_not_match",
270            &self.if_metageneration_not_match,
271        );
272        debug_struct.field(
273            "common_object_request_params",
274            &self.common_object_request_params,
275        );
276        debug_struct.field("read_mask", &self.read_mask);
277        debug_struct.field("restore_token", &self.restore_token);
278        if !self._unknown_fields.is_empty() {
279            debug_struct.field("_unknown_fields", &self._unknown_fields);
280        }
281        debug_struct.finish()
282    }
283}
284
285impl std::fmt::Debug for super::WriteObjectSpec {
286    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
287        let mut debug_struct = f.debug_struct("WriteObjectSpec");
288        debug_struct.field("resource", &self.resource);
289        debug_struct.field("predefined_acl", &self.predefined_acl);
290        debug_struct.field("if_generation_match", &self.if_generation_match);
291        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
292        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
293        debug_struct.field(
294            "if_metageneration_not_match",
295            &self.if_metageneration_not_match,
296        );
297        debug_struct.field("object_size", &self.object_size);
298        debug_struct.field("appendable", &self.appendable);
299        if !self._unknown_fields.is_empty() {
300            debug_struct.field("_unknown_fields", &self._unknown_fields);
301        }
302        debug_struct.finish()
303    }
304}
305
306impl std::fmt::Debug for super::ListObjectsRequest {
307    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
308        let mut debug_struct = f.debug_struct("ListObjectsRequest");
309        debug_struct.field("parent", &self.parent);
310        debug_struct.field("page_size", &self.page_size);
311        debug_struct.field("page_token", &self.page_token);
312        debug_struct.field("delimiter", &self.delimiter);
313        debug_struct.field(
314            "include_trailing_delimiter",
315            &self.include_trailing_delimiter,
316        );
317        debug_struct.field("prefix", &self.prefix);
318        debug_struct.field("versions", &self.versions);
319        debug_struct.field("read_mask", &self.read_mask);
320        debug_struct.field("lexicographic_start", &self.lexicographic_start);
321        debug_struct.field("lexicographic_end", &self.lexicographic_end);
322        debug_struct.field("soft_deleted", &self.soft_deleted);
323        debug_struct.field(
324            "include_folders_as_prefixes",
325            &self.include_folders_as_prefixes,
326        );
327        debug_struct.field("match_glob", &self.match_glob);
328        debug_struct.field("filter", &self.filter);
329        if !self._unknown_fields.is_empty() {
330            debug_struct.field("_unknown_fields", &self._unknown_fields);
331        }
332        debug_struct.finish()
333    }
334}
335
336impl std::fmt::Debug for super::RewriteObjectRequest {
337    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
338        let mut debug_struct = f.debug_struct("RewriteObjectRequest");
339        debug_struct.field("destination_name", &self.destination_name);
340        debug_struct.field("destination_bucket", &self.destination_bucket);
341        debug_struct.field("destination_kms_key", &self.destination_kms_key);
342        debug_struct.field("destination", &self.destination);
343        debug_struct.field("source_bucket", &self.source_bucket);
344        debug_struct.field("source_object", &self.source_object);
345        debug_struct.field("source_generation", &self.source_generation);
346        debug_struct.field("rewrite_token", &self.rewrite_token);
347        debug_struct.field(
348            "destination_predefined_acl",
349            &self.destination_predefined_acl,
350        );
351        debug_struct.field("if_generation_match", &self.if_generation_match);
352        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
353        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
354        debug_struct.field(
355            "if_metageneration_not_match",
356            &self.if_metageneration_not_match,
357        );
358        debug_struct.field(
359            "if_source_generation_match",
360            &self.if_source_generation_match,
361        );
362        debug_struct.field(
363            "if_source_generation_not_match",
364            &self.if_source_generation_not_match,
365        );
366        debug_struct.field(
367            "if_source_metageneration_match",
368            &self.if_source_metageneration_match,
369        );
370        debug_struct.field(
371            "if_source_metageneration_not_match",
372            &self.if_source_metageneration_not_match,
373        );
374        debug_struct.field(
375            "max_bytes_rewritten_per_call",
376            &self.max_bytes_rewritten_per_call,
377        );
378        debug_struct.field(
379            "copy_source_encryption_algorithm",
380            &self.copy_source_encryption_algorithm,
381        );
382        debug_struct.field(
383            "copy_source_encryption_key_bytes",
384            &self.copy_source_encryption_key_bytes,
385        );
386        debug_struct.field(
387            "copy_source_encryption_key_sha256_bytes",
388            &self.copy_source_encryption_key_sha256_bytes,
389        );
390        debug_struct.field(
391            "common_object_request_params",
392            &self.common_object_request_params,
393        );
394        debug_struct.field("object_checksums", &self.object_checksums);
395        if !self._unknown_fields.is_empty() {
396            debug_struct.field("_unknown_fields", &self._unknown_fields);
397        }
398        debug_struct.finish()
399    }
400}
401
402impl std::fmt::Debug for super::RewriteResponse {
403    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
404        let mut debug_struct = f.debug_struct("RewriteResponse");
405        debug_struct.field("total_bytes_rewritten", &self.total_bytes_rewritten);
406        debug_struct.field("object_size", &self.object_size);
407        debug_struct.field("done", &self.done);
408        debug_struct.field("rewrite_token", &self.rewrite_token);
409        debug_struct.field("resource", &self.resource);
410        if !self._unknown_fields.is_empty() {
411            debug_struct.field("_unknown_fields", &self._unknown_fields);
412        }
413        debug_struct.finish()
414    }
415}
416
417impl std::fmt::Debug for super::MoveObjectRequest {
418    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
419        let mut debug_struct = f.debug_struct("MoveObjectRequest");
420        debug_struct.field("bucket", &self.bucket);
421        debug_struct.field("source_object", &self.source_object);
422        debug_struct.field("destination_object", &self.destination_object);
423        debug_struct.field(
424            "if_source_generation_match",
425            &self.if_source_generation_match,
426        );
427        debug_struct.field(
428            "if_source_generation_not_match",
429            &self.if_source_generation_not_match,
430        );
431        debug_struct.field(
432            "if_source_metageneration_match",
433            &self.if_source_metageneration_match,
434        );
435        debug_struct.field(
436            "if_source_metageneration_not_match",
437            &self.if_source_metageneration_not_match,
438        );
439        debug_struct.field("if_generation_match", &self.if_generation_match);
440        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
441        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
442        debug_struct.field(
443            "if_metageneration_not_match",
444            &self.if_metageneration_not_match,
445        );
446        if !self._unknown_fields.is_empty() {
447            debug_struct.field("_unknown_fields", &self._unknown_fields);
448        }
449        debug_struct.finish()
450    }
451}
452
453impl std::fmt::Debug for super::UpdateObjectRequest {
454    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
455        let mut debug_struct = f.debug_struct("UpdateObjectRequest");
456        debug_struct.field("object", &self.object);
457        debug_struct.field("if_generation_match", &self.if_generation_match);
458        debug_struct.field("if_generation_not_match", &self.if_generation_not_match);
459        debug_struct.field("if_metageneration_match", &self.if_metageneration_match);
460        debug_struct.field(
461            "if_metageneration_not_match",
462            &self.if_metageneration_not_match,
463        );
464        debug_struct.field("predefined_acl", &self.predefined_acl);
465        debug_struct.field("update_mask", &self.update_mask);
466        debug_struct.field(
467            "common_object_request_params",
468            &self.common_object_request_params,
469        );
470        debug_struct.field(
471            "override_unlocked_retention",
472            &self.override_unlocked_retention,
473        );
474        if !self._unknown_fields.is_empty() {
475            debug_struct.field("_unknown_fields", &self._unknown_fields);
476        }
477        debug_struct.finish()
478    }
479}
480
481impl std::fmt::Debug for super::CommonObjectRequestParams {
482    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
483        let mut debug_struct = f.debug_struct("CommonObjectRequestParams");
484        debug_struct.field("encryption_algorithm", &self.encryption_algorithm);
485        debug_struct.field("encryption_key_bytes", &self.encryption_key_bytes);
486        debug_struct.field(
487            "encryption_key_sha256_bytes",
488            &self.encryption_key_sha256_bytes,
489        );
490        if !self._unknown_fields.is_empty() {
491            debug_struct.field("_unknown_fields", &self._unknown_fields);
492        }
493        debug_struct.finish()
494    }
495}
496
497impl std::fmt::Debug for super::Bucket {
498    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
499        let mut debug_struct = f.debug_struct("Bucket");
500        debug_struct.field("name", &self.name);
501        debug_struct.field("bucket_id", &self.bucket_id);
502        debug_struct.field("etag", &self.etag);
503        debug_struct.field("project", &self.project);
504        debug_struct.field("metageneration", &self.metageneration);
505        debug_struct.field("location", &self.location);
506        debug_struct.field("location_type", &self.location_type);
507        debug_struct.field("storage_class", &self.storage_class);
508        debug_struct.field("rpo", &self.rpo);
509        debug_struct.field("acl", &self.acl);
510        debug_struct.field("default_object_acl", &self.default_object_acl);
511        debug_struct.field("lifecycle", &self.lifecycle);
512        debug_struct.field("create_time", &self.create_time);
513        debug_struct.field("cors", &self.cors);
514        debug_struct.field("update_time", &self.update_time);
515        debug_struct.field("default_event_based_hold", &self.default_event_based_hold);
516        debug_struct.field("labels", &self.labels);
517        debug_struct.field("website", &self.website);
518        debug_struct.field("versioning", &self.versioning);
519        debug_struct.field("logging", &self.logging);
520        debug_struct.field("owner", &self.owner);
521        debug_struct.field("encryption", &self.encryption);
522        debug_struct.field("billing", &self.billing);
523        debug_struct.field("retention_policy", &self.retention_policy);
524        debug_struct.field("iam_config", &self.iam_config);
525        debug_struct.field("satisfies_pzs", &self.satisfies_pzs);
526        debug_struct.field("custom_placement_config", &self.custom_placement_config);
527        debug_struct.field("autoclass", &self.autoclass);
528        debug_struct.field("hierarchical_namespace", &self.hierarchical_namespace);
529        debug_struct.field("soft_delete_policy", &self.soft_delete_policy);
530        debug_struct.field("object_retention", &self.object_retention);
531        debug_struct.field("ip_filter", &self.ip_filter);
532        if !self._unknown_fields.is_empty() {
533            debug_struct.field("_unknown_fields", &self._unknown_fields);
534        }
535        debug_struct.finish()
536    }
537}
538
539impl std::fmt::Debug for super::bucket::Billing {
540    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
541        let mut debug_struct = f.debug_struct("Billing");
542        debug_struct.field("requester_pays", &self.requester_pays);
543        if !self._unknown_fields.is_empty() {
544            debug_struct.field("_unknown_fields", &self._unknown_fields);
545        }
546        debug_struct.finish()
547    }
548}
549
550impl std::fmt::Debug for super::bucket::Cors {
551    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
552        let mut debug_struct = f.debug_struct("Cors");
553        debug_struct.field("origin", &self.origin);
554        debug_struct.field("method", &self.method);
555        debug_struct.field("response_header", &self.response_header);
556        debug_struct.field("max_age_seconds", &self.max_age_seconds);
557        if !self._unknown_fields.is_empty() {
558            debug_struct.field("_unknown_fields", &self._unknown_fields);
559        }
560        debug_struct.finish()
561    }
562}
563
564impl std::fmt::Debug for super::bucket::Encryption {
565    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
566        let mut debug_struct = f.debug_struct("Encryption");
567        debug_struct.field("default_kms_key", &self.default_kms_key);
568        debug_struct.field(
569            "google_managed_encryption_enforcement_config",
570            &self.google_managed_encryption_enforcement_config,
571        );
572        debug_struct.field(
573            "customer_managed_encryption_enforcement_config",
574            &self.customer_managed_encryption_enforcement_config,
575        );
576        debug_struct.field(
577            "customer_supplied_encryption_enforcement_config",
578            &self.customer_supplied_encryption_enforcement_config,
579        );
580        if !self._unknown_fields.is_empty() {
581            debug_struct.field("_unknown_fields", &self._unknown_fields);
582        }
583        debug_struct.finish()
584    }
585}
586
587impl std::fmt::Debug for super::bucket::encryption::GoogleManagedEncryptionEnforcementConfig {
588    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
589        let mut debug_struct = f.debug_struct("GoogleManagedEncryptionEnforcementConfig");
590        debug_struct.field("restriction_mode", &self.restriction_mode);
591        debug_struct.field("effective_time", &self.effective_time);
592        if !self._unknown_fields.is_empty() {
593            debug_struct.field("_unknown_fields", &self._unknown_fields);
594        }
595        debug_struct.finish()
596    }
597}
598
599impl std::fmt::Debug for super::bucket::encryption::CustomerManagedEncryptionEnforcementConfig {
600    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
601        let mut debug_struct = f.debug_struct("CustomerManagedEncryptionEnforcementConfig");
602        debug_struct.field("restriction_mode", &self.restriction_mode);
603        debug_struct.field("effective_time", &self.effective_time);
604        if !self._unknown_fields.is_empty() {
605            debug_struct.field("_unknown_fields", &self._unknown_fields);
606        }
607        debug_struct.finish()
608    }
609}
610
611impl std::fmt::Debug for super::bucket::encryption::CustomerSuppliedEncryptionEnforcementConfig {
612    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
613        let mut debug_struct = f.debug_struct("CustomerSuppliedEncryptionEnforcementConfig");
614        debug_struct.field("restriction_mode", &self.restriction_mode);
615        debug_struct.field("effective_time", &self.effective_time);
616        if !self._unknown_fields.is_empty() {
617            debug_struct.field("_unknown_fields", &self._unknown_fields);
618        }
619        debug_struct.finish()
620    }
621}
622
623impl std::fmt::Debug for super::bucket::IamConfig {
624    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
625        let mut debug_struct = f.debug_struct("IamConfig");
626        debug_struct.field(
627            "uniform_bucket_level_access",
628            &self.uniform_bucket_level_access,
629        );
630        debug_struct.field("public_access_prevention", &self.public_access_prevention);
631        if !self._unknown_fields.is_empty() {
632            debug_struct.field("_unknown_fields", &self._unknown_fields);
633        }
634        debug_struct.finish()
635    }
636}
637
638impl std::fmt::Debug for super::bucket::iam_config::UniformBucketLevelAccess {
639    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
640        let mut debug_struct = f.debug_struct("UniformBucketLevelAccess");
641        debug_struct.field("enabled", &self.enabled);
642        debug_struct.field("lock_time", &self.lock_time);
643        if !self._unknown_fields.is_empty() {
644            debug_struct.field("_unknown_fields", &self._unknown_fields);
645        }
646        debug_struct.finish()
647    }
648}
649
650impl std::fmt::Debug for super::bucket::Lifecycle {
651    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
652        let mut debug_struct = f.debug_struct("Lifecycle");
653        debug_struct.field("rule", &self.rule);
654        if !self._unknown_fields.is_empty() {
655            debug_struct.field("_unknown_fields", &self._unknown_fields);
656        }
657        debug_struct.finish()
658    }
659}
660
661impl std::fmt::Debug for super::bucket::lifecycle::Rule {
662    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
663        let mut debug_struct = f.debug_struct("Rule");
664        debug_struct.field("action", &self.action);
665        debug_struct.field("condition", &self.condition);
666        if !self._unknown_fields.is_empty() {
667            debug_struct.field("_unknown_fields", &self._unknown_fields);
668        }
669        debug_struct.finish()
670    }
671}
672
673impl std::fmt::Debug for super::bucket::lifecycle::rule::Action {
674    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
675        let mut debug_struct = f.debug_struct("Action");
676        debug_struct.field("r#type", &self.r#type);
677        debug_struct.field("storage_class", &self.storage_class);
678        if !self._unknown_fields.is_empty() {
679            debug_struct.field("_unknown_fields", &self._unknown_fields);
680        }
681        debug_struct.finish()
682    }
683}
684
685impl std::fmt::Debug for super::bucket::lifecycle::rule::Condition {
686    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
687        let mut debug_struct = f.debug_struct("Condition");
688        debug_struct.field("age_days", &self.age_days);
689        debug_struct.field("created_before", &self.created_before);
690        debug_struct.field("is_live", &self.is_live);
691        debug_struct.field("num_newer_versions", &self.num_newer_versions);
692        debug_struct.field("matches_storage_class", &self.matches_storage_class);
693        debug_struct.field("days_since_custom_time", &self.days_since_custom_time);
694        debug_struct.field("custom_time_before", &self.custom_time_before);
695        debug_struct.field(
696            "days_since_noncurrent_time",
697            &self.days_since_noncurrent_time,
698        );
699        debug_struct.field("noncurrent_time_before", &self.noncurrent_time_before);
700        debug_struct.field("matches_prefix", &self.matches_prefix);
701        debug_struct.field("matches_suffix", &self.matches_suffix);
702        if !self._unknown_fields.is_empty() {
703            debug_struct.field("_unknown_fields", &self._unknown_fields);
704        }
705        debug_struct.finish()
706    }
707}
708
709impl std::fmt::Debug for super::bucket::Logging {
710    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
711        let mut debug_struct = f.debug_struct("Logging");
712        debug_struct.field("log_bucket", &self.log_bucket);
713        debug_struct.field("log_object_prefix", &self.log_object_prefix);
714        if !self._unknown_fields.is_empty() {
715            debug_struct.field("_unknown_fields", &self._unknown_fields);
716        }
717        debug_struct.finish()
718    }
719}
720
721impl std::fmt::Debug for super::bucket::ObjectRetention {
722    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
723        let mut debug_struct = f.debug_struct("ObjectRetention");
724        debug_struct.field("enabled", &self.enabled);
725        if !self._unknown_fields.is_empty() {
726            debug_struct.field("_unknown_fields", &self._unknown_fields);
727        }
728        debug_struct.finish()
729    }
730}
731
732impl std::fmt::Debug for super::bucket::RetentionPolicy {
733    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
734        let mut debug_struct = f.debug_struct("RetentionPolicy");
735        debug_struct.field("effective_time", &self.effective_time);
736        debug_struct.field("is_locked", &self.is_locked);
737        debug_struct.field("retention_duration", &self.retention_duration);
738        if !self._unknown_fields.is_empty() {
739            debug_struct.field("_unknown_fields", &self._unknown_fields);
740        }
741        debug_struct.finish()
742    }
743}
744
745impl std::fmt::Debug for super::bucket::SoftDeletePolicy {
746    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
747        let mut debug_struct = f.debug_struct("SoftDeletePolicy");
748        debug_struct.field("retention_duration", &self.retention_duration);
749        debug_struct.field("effective_time", &self.effective_time);
750        if !self._unknown_fields.is_empty() {
751            debug_struct.field("_unknown_fields", &self._unknown_fields);
752        }
753        debug_struct.finish()
754    }
755}
756
757impl std::fmt::Debug for super::bucket::Versioning {
758    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
759        let mut debug_struct = f.debug_struct("Versioning");
760        debug_struct.field("enabled", &self.enabled);
761        if !self._unknown_fields.is_empty() {
762            debug_struct.field("_unknown_fields", &self._unknown_fields);
763        }
764        debug_struct.finish()
765    }
766}
767
768impl std::fmt::Debug for super::bucket::Website {
769    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
770        let mut debug_struct = f.debug_struct("Website");
771        debug_struct.field("main_page_suffix", &self.main_page_suffix);
772        debug_struct.field("not_found_page", &self.not_found_page);
773        if !self._unknown_fields.is_empty() {
774            debug_struct.field("_unknown_fields", &self._unknown_fields);
775        }
776        debug_struct.finish()
777    }
778}
779
780impl std::fmt::Debug for super::bucket::CustomPlacementConfig {
781    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
782        let mut debug_struct = f.debug_struct("CustomPlacementConfig");
783        debug_struct.field("data_locations", &self.data_locations);
784        if !self._unknown_fields.is_empty() {
785            debug_struct.field("_unknown_fields", &self._unknown_fields);
786        }
787        debug_struct.finish()
788    }
789}
790
791impl std::fmt::Debug for super::bucket::Autoclass {
792    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
793        let mut debug_struct = f.debug_struct("Autoclass");
794        debug_struct.field("enabled", &self.enabled);
795        debug_struct.field("toggle_time", &self.toggle_time);
796        debug_struct.field("terminal_storage_class", &self.terminal_storage_class);
797        debug_struct.field(
798            "terminal_storage_class_update_time",
799            &self.terminal_storage_class_update_time,
800        );
801        if !self._unknown_fields.is_empty() {
802            debug_struct.field("_unknown_fields", &self._unknown_fields);
803        }
804        debug_struct.finish()
805    }
806}
807
808impl std::fmt::Debug for super::bucket::IpFilter {
809    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
810        let mut debug_struct = f.debug_struct("IpFilter");
811        debug_struct.field("mode", &self.mode);
812        debug_struct.field("public_network_source", &self.public_network_source);
813        debug_struct.field("vpc_network_sources", &self.vpc_network_sources);
814        debug_struct.field("allow_cross_org_vpcs", &self.allow_cross_org_vpcs);
815        debug_struct.field(
816            "allow_all_service_agent_access",
817            &self.allow_all_service_agent_access,
818        );
819        if !self._unknown_fields.is_empty() {
820            debug_struct.field("_unknown_fields", &self._unknown_fields);
821        }
822        debug_struct.finish()
823    }
824}
825
826impl std::fmt::Debug for super::bucket::ip_filter::PublicNetworkSource {
827    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
828        let mut debug_struct = f.debug_struct("PublicNetworkSource");
829        debug_struct.field("allowed_ip_cidr_ranges", &self.allowed_ip_cidr_ranges);
830        if !self._unknown_fields.is_empty() {
831            debug_struct.field("_unknown_fields", &self._unknown_fields);
832        }
833        debug_struct.finish()
834    }
835}
836
837impl std::fmt::Debug for super::bucket::ip_filter::VpcNetworkSource {
838    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
839        let mut debug_struct = f.debug_struct("VpcNetworkSource");
840        debug_struct.field("network", &self.network);
841        debug_struct.field("allowed_ip_cidr_ranges", &self.allowed_ip_cidr_ranges);
842        if !self._unknown_fields.is_empty() {
843            debug_struct.field("_unknown_fields", &self._unknown_fields);
844        }
845        debug_struct.finish()
846    }
847}
848
849impl std::fmt::Debug for super::bucket::HierarchicalNamespace {
850    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
851        let mut debug_struct = f.debug_struct("HierarchicalNamespace");
852        debug_struct.field("enabled", &self.enabled);
853        if !self._unknown_fields.is_empty() {
854            debug_struct.field("_unknown_fields", &self._unknown_fields);
855        }
856        debug_struct.finish()
857    }
858}
859
860impl std::fmt::Debug for super::BucketAccessControl {
861    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
862        let mut debug_struct = f.debug_struct("BucketAccessControl");
863        debug_struct.field("role", &self.role);
864        debug_struct.field("id", &self.id);
865        debug_struct.field("entity", &self.entity);
866        debug_struct.field("entity_alt", &self.entity_alt);
867        debug_struct.field("entity_id", &self.entity_id);
868        debug_struct.field("etag", &self.etag);
869        debug_struct.field("email", &self.email);
870        debug_struct.field("domain", &self.domain);
871        debug_struct.field("project_team", &self.project_team);
872        if !self._unknown_fields.is_empty() {
873            debug_struct.field("_unknown_fields", &self._unknown_fields);
874        }
875        debug_struct.finish()
876    }
877}
878
879impl std::fmt::Debug for super::ObjectChecksums {
880    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
881        let mut debug_struct = f.debug_struct("ObjectChecksums");
882        debug_struct.field("crc32c", &self.crc32c);
883        debug_struct.field("md5_hash", &self.md5_hash);
884        if !self._unknown_fields.is_empty() {
885            debug_struct.field("_unknown_fields", &self._unknown_fields);
886        }
887        debug_struct.finish()
888    }
889}
890
891impl std::fmt::Debug for super::ObjectCustomContextPayload {
892    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
893        let mut debug_struct = f.debug_struct("ObjectCustomContextPayload");
894        debug_struct.field("value", &self.value);
895        debug_struct.field("create_time", &self.create_time);
896        debug_struct.field("update_time", &self.update_time);
897        if !self._unknown_fields.is_empty() {
898            debug_struct.field("_unknown_fields", &self._unknown_fields);
899        }
900        debug_struct.finish()
901    }
902}
903
904impl std::fmt::Debug for super::ObjectContexts {
905    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
906        let mut debug_struct = f.debug_struct("ObjectContexts");
907        debug_struct.field("custom", &self.custom);
908        if !self._unknown_fields.is_empty() {
909            debug_struct.field("_unknown_fields", &self._unknown_fields);
910        }
911        debug_struct.finish()
912    }
913}
914
915impl std::fmt::Debug for super::CustomerEncryption {
916    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
917        let mut debug_struct = f.debug_struct("CustomerEncryption");
918        debug_struct.field("encryption_algorithm", &self.encryption_algorithm);
919        debug_struct.field("key_sha256_bytes", &self.key_sha256_bytes);
920        if !self._unknown_fields.is_empty() {
921            debug_struct.field("_unknown_fields", &self._unknown_fields);
922        }
923        debug_struct.finish()
924    }
925}
926
927impl std::fmt::Debug for super::Object {
928    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
929        let mut debug_struct = f.debug_struct("Object");
930        debug_struct.field("name", &self.name);
931        debug_struct.field("bucket", &self.bucket);
932        debug_struct.field("etag", &self.etag);
933        debug_struct.field("generation", &self.generation);
934        debug_struct.field("restore_token", &self.restore_token);
935        debug_struct.field("metageneration", &self.metageneration);
936        debug_struct.field("storage_class", &self.storage_class);
937        debug_struct.field("size", &self.size);
938        debug_struct.field("content_encoding", &self.content_encoding);
939        debug_struct.field("content_disposition", &self.content_disposition);
940        debug_struct.field("cache_control", &self.cache_control);
941        debug_struct.field("acl", &self.acl);
942        debug_struct.field("content_language", &self.content_language);
943        debug_struct.field("delete_time", &self.delete_time);
944        debug_struct.field("finalize_time", &self.finalize_time);
945        debug_struct.field("content_type", &self.content_type);
946        debug_struct.field("create_time", &self.create_time);
947        debug_struct.field("component_count", &self.component_count);
948        debug_struct.field("checksums", &self.checksums);
949        debug_struct.field("update_time", &self.update_time);
950        debug_struct.field("kms_key", &self.kms_key);
951        debug_struct.field("update_storage_class_time", &self.update_storage_class_time);
952        debug_struct.field("temporary_hold", &self.temporary_hold);
953        debug_struct.field("retention_expire_time", &self.retention_expire_time);
954        debug_struct.field("metadata", &self.metadata);
955        debug_struct.field("contexts", &self.contexts);
956        debug_struct.field("event_based_hold", &self.event_based_hold);
957        debug_struct.field("owner", &self.owner);
958        debug_struct.field("customer_encryption", &self.customer_encryption);
959        debug_struct.field("custom_time", &self.custom_time);
960        debug_struct.field("soft_delete_time", &self.soft_delete_time);
961        debug_struct.field("hard_delete_time", &self.hard_delete_time);
962        debug_struct.field("retention", &self.retention);
963        if !self._unknown_fields.is_empty() {
964            debug_struct.field("_unknown_fields", &self._unknown_fields);
965        }
966        debug_struct.finish()
967    }
968}
969
970impl std::fmt::Debug for super::object::Retention {
971    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
972        let mut debug_struct = f.debug_struct("Retention");
973        debug_struct.field("mode", &self.mode);
974        debug_struct.field("retain_until_time", &self.retain_until_time);
975        if !self._unknown_fields.is_empty() {
976            debug_struct.field("_unknown_fields", &self._unknown_fields);
977        }
978        debug_struct.finish()
979    }
980}
981
982impl std::fmt::Debug for super::ObjectAccessControl {
983    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
984        let mut debug_struct = f.debug_struct("ObjectAccessControl");
985        debug_struct.field("role", &self.role);
986        debug_struct.field("id", &self.id);
987        debug_struct.field("entity", &self.entity);
988        debug_struct.field("entity_alt", &self.entity_alt);
989        debug_struct.field("entity_id", &self.entity_id);
990        debug_struct.field("etag", &self.etag);
991        debug_struct.field("email", &self.email);
992        debug_struct.field("domain", &self.domain);
993        debug_struct.field("project_team", &self.project_team);
994        if !self._unknown_fields.is_empty() {
995            debug_struct.field("_unknown_fields", &self._unknown_fields);
996        }
997        debug_struct.finish()
998    }
999}
1000
1001impl std::fmt::Debug for super::ListObjectsResponse {
1002    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1003        let mut debug_struct = f.debug_struct("ListObjectsResponse");
1004        debug_struct.field("objects", &self.objects);
1005        debug_struct.field("prefixes", &self.prefixes);
1006        debug_struct.field("next_page_token", &self.next_page_token);
1007        if !self._unknown_fields.is_empty() {
1008            debug_struct.field("_unknown_fields", &self._unknown_fields);
1009        }
1010        debug_struct.finish()
1011    }
1012}
1013
1014impl std::fmt::Debug for super::ProjectTeam {
1015    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1016        let mut debug_struct = f.debug_struct("ProjectTeam");
1017        debug_struct.field("project_number", &self.project_number);
1018        debug_struct.field("team", &self.team);
1019        if !self._unknown_fields.is_empty() {
1020            debug_struct.field("_unknown_fields", &self._unknown_fields);
1021        }
1022        debug_struct.finish()
1023    }
1024}
1025
1026impl std::fmt::Debug for super::Owner {
1027    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
1028        let mut debug_struct = f.debug_struct("Owner");
1029        debug_struct.field("entity", &self.entity);
1030        debug_struct.field("entity_id", &self.entity_id);
1031        if !self._unknown_fields.is_empty() {
1032            debug_struct.field("_unknown_fields", &self._unknown_fields);
1033        }
1034        debug_struct.finish()
1035    }
1036}