google_cloud_bigquery_datatransfer_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::DataSourceParameter {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("DataSourceParameter");
23        debug_struct.field("param_id", &self.param_id);
24        debug_struct.field("display_name", &self.display_name);
25        debug_struct.field("description", &self.description);
26        debug_struct.field("r#type", &self.r#type);
27        debug_struct.field("required", &self.required);
28        debug_struct.field("repeated", &self.repeated);
29        debug_struct.field("validation_regex", &self.validation_regex);
30        debug_struct.field("allowed_values", &self.allowed_values);
31        debug_struct.field("min_value", &self.min_value);
32        debug_struct.field("max_value", &self.max_value);
33        debug_struct.field("fields", &self.fields);
34        debug_struct.field("validation_description", &self.validation_description);
35        debug_struct.field("validation_help_url", &self.validation_help_url);
36        debug_struct.field("immutable", &self.immutable);
37        debug_struct.field("recurse", &self.recurse);
38        debug_struct.field("deprecated", &self.deprecated);
39        if !self._unknown_fields.is_empty() {
40            debug_struct.field("_unknown_fields", &self._unknown_fields);
41        }
42        debug_struct.finish()
43    }
44}
45
46impl std::fmt::Debug for super::DataSource {
47    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48        let mut debug_struct = f.debug_struct("DataSource");
49        debug_struct.field("name", &self.name);
50        debug_struct.field("data_source_id", &self.data_source_id);
51        debug_struct.field("display_name", &self.display_name);
52        debug_struct.field("description", &self.description);
53        debug_struct.field("client_id", &self.client_id);
54        debug_struct.field("scopes", &self.scopes);
55        debug_struct.field("transfer_type", &self.transfer_type);
56        debug_struct.field(
57            "supports_multiple_transfers",
58            &self.supports_multiple_transfers,
59        );
60        debug_struct.field("update_deadline_seconds", &self.update_deadline_seconds);
61        debug_struct.field("default_schedule", &self.default_schedule);
62        debug_struct.field("supports_custom_schedule", &self.supports_custom_schedule);
63        debug_struct.field("parameters", &self.parameters);
64        debug_struct.field("help_url", &self.help_url);
65        debug_struct.field("authorization_type", &self.authorization_type);
66        debug_struct.field("data_refresh_type", &self.data_refresh_type);
67        debug_struct.field(
68            "default_data_refresh_window_days",
69            &self.default_data_refresh_window_days,
70        );
71        debug_struct.field("manual_runs_disabled", &self.manual_runs_disabled);
72        debug_struct.field("minimum_schedule_interval", &self.minimum_schedule_interval);
73        if !self._unknown_fields.is_empty() {
74            debug_struct.field("_unknown_fields", &self._unknown_fields);
75        }
76        debug_struct.finish()
77    }
78}
79
80impl std::fmt::Debug for super::GetDataSourceRequest {
81    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82        let mut debug_struct = f.debug_struct("GetDataSourceRequest");
83        debug_struct.field("name", &self.name);
84        if !self._unknown_fields.is_empty() {
85            debug_struct.field("_unknown_fields", &self._unknown_fields);
86        }
87        debug_struct.finish()
88    }
89}
90
91impl std::fmt::Debug for super::ListDataSourcesRequest {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("ListDataSourcesRequest");
94        debug_struct.field("parent", &self.parent);
95        debug_struct.field("page_token", &self.page_token);
96        debug_struct.field("page_size", &self.page_size);
97        if !self._unknown_fields.is_empty() {
98            debug_struct.field("_unknown_fields", &self._unknown_fields);
99        }
100        debug_struct.finish()
101    }
102}
103
104impl std::fmt::Debug for super::ListDataSourcesResponse {
105    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
106        let mut debug_struct = f.debug_struct("ListDataSourcesResponse");
107        debug_struct.field("data_sources", &self.data_sources);
108        debug_struct.field("next_page_token", &self.next_page_token);
109        if !self._unknown_fields.is_empty() {
110            debug_struct.field("_unknown_fields", &self._unknown_fields);
111        }
112        debug_struct.finish()
113    }
114}
115
116impl std::fmt::Debug for super::CreateTransferConfigRequest {
117    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
118        let mut debug_struct = f.debug_struct("CreateTransferConfigRequest");
119        debug_struct.field("parent", &self.parent);
120        debug_struct.field("transfer_config", &self.transfer_config);
121        debug_struct.field("authorization_code", &self.authorization_code);
122        debug_struct.field("version_info", &self.version_info);
123        debug_struct.field("service_account_name", &self.service_account_name);
124        if !self._unknown_fields.is_empty() {
125            debug_struct.field("_unknown_fields", &self._unknown_fields);
126        }
127        debug_struct.finish()
128    }
129}
130
131impl std::fmt::Debug for super::UpdateTransferConfigRequest {
132    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
133        let mut debug_struct = f.debug_struct("UpdateTransferConfigRequest");
134        debug_struct.field("transfer_config", &self.transfer_config);
135        debug_struct.field("authorization_code", &self.authorization_code);
136        debug_struct.field("update_mask", &self.update_mask);
137        debug_struct.field("version_info", &self.version_info);
138        debug_struct.field("service_account_name", &self.service_account_name);
139        if !self._unknown_fields.is_empty() {
140            debug_struct.field("_unknown_fields", &self._unknown_fields);
141        }
142        debug_struct.finish()
143    }
144}
145
146impl std::fmt::Debug for super::GetTransferConfigRequest {
147    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
148        let mut debug_struct = f.debug_struct("GetTransferConfigRequest");
149        debug_struct.field("name", &self.name);
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::DeleteTransferConfigRequest {
158    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
159        let mut debug_struct = f.debug_struct("DeleteTransferConfigRequest");
160        debug_struct.field("name", &self.name);
161        if !self._unknown_fields.is_empty() {
162            debug_struct.field("_unknown_fields", &self._unknown_fields);
163        }
164        debug_struct.finish()
165    }
166}
167
168impl std::fmt::Debug for super::GetTransferRunRequest {
169    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
170        let mut debug_struct = f.debug_struct("GetTransferRunRequest");
171        debug_struct.field("name", &self.name);
172        if !self._unknown_fields.is_empty() {
173            debug_struct.field("_unknown_fields", &self._unknown_fields);
174        }
175        debug_struct.finish()
176    }
177}
178
179impl std::fmt::Debug for super::DeleteTransferRunRequest {
180    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
181        let mut debug_struct = f.debug_struct("DeleteTransferRunRequest");
182        debug_struct.field("name", &self.name);
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::ListTransferConfigsRequest {
191    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192        let mut debug_struct = f.debug_struct("ListTransferConfigsRequest");
193        debug_struct.field("parent", &self.parent);
194        debug_struct.field("data_source_ids", &self.data_source_ids);
195        debug_struct.field("page_token", &self.page_token);
196        debug_struct.field("page_size", &self.page_size);
197        if !self._unknown_fields.is_empty() {
198            debug_struct.field("_unknown_fields", &self._unknown_fields);
199        }
200        debug_struct.finish()
201    }
202}
203
204impl std::fmt::Debug for super::ListTransferConfigsResponse {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("ListTransferConfigsResponse");
207        debug_struct.field("transfer_configs", &self.transfer_configs);
208        debug_struct.field("next_page_token", &self.next_page_token);
209        if !self._unknown_fields.is_empty() {
210            debug_struct.field("_unknown_fields", &self._unknown_fields);
211        }
212        debug_struct.finish()
213    }
214}
215
216impl std::fmt::Debug for super::ListTransferRunsRequest {
217    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
218        let mut debug_struct = f.debug_struct("ListTransferRunsRequest");
219        debug_struct.field("parent", &self.parent);
220        debug_struct.field("states", &self.states);
221        debug_struct.field("page_token", &self.page_token);
222        debug_struct.field("page_size", &self.page_size);
223        debug_struct.field("run_attempt", &self.run_attempt);
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::ListTransferRunsResponse {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("ListTransferRunsResponse");
234        debug_struct.field("transfer_runs", &self.transfer_runs);
235        debug_struct.field("next_page_token", &self.next_page_token);
236        if !self._unknown_fields.is_empty() {
237            debug_struct.field("_unknown_fields", &self._unknown_fields);
238        }
239        debug_struct.finish()
240    }
241}
242
243impl std::fmt::Debug for super::ListTransferLogsRequest {
244    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
245        let mut debug_struct = f.debug_struct("ListTransferLogsRequest");
246        debug_struct.field("parent", &self.parent);
247        debug_struct.field("page_token", &self.page_token);
248        debug_struct.field("page_size", &self.page_size);
249        debug_struct.field("message_types", &self.message_types);
250        if !self._unknown_fields.is_empty() {
251            debug_struct.field("_unknown_fields", &self._unknown_fields);
252        }
253        debug_struct.finish()
254    }
255}
256
257impl std::fmt::Debug for super::ListTransferLogsResponse {
258    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259        let mut debug_struct = f.debug_struct("ListTransferLogsResponse");
260        debug_struct.field("transfer_messages", &self.transfer_messages);
261        debug_struct.field("next_page_token", &self.next_page_token);
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::CheckValidCredsRequest {
270    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
271        let mut debug_struct = f.debug_struct("CheckValidCredsRequest");
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::CheckValidCredsResponse {
281    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
282        let mut debug_struct = f.debug_struct("CheckValidCredsResponse");
283        debug_struct.field("has_valid_creds", &self.has_valid_creds);
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::ScheduleTransferRunsRequest {
292    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
293        let mut debug_struct = f.debug_struct("ScheduleTransferRunsRequest");
294        debug_struct.field("parent", &self.parent);
295        debug_struct.field("start_time", &self.start_time);
296        debug_struct.field("end_time", &self.end_time);
297        if !self._unknown_fields.is_empty() {
298            debug_struct.field("_unknown_fields", &self._unknown_fields);
299        }
300        debug_struct.finish()
301    }
302}
303
304impl std::fmt::Debug for super::ScheduleTransferRunsResponse {
305    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
306        let mut debug_struct = f.debug_struct("ScheduleTransferRunsResponse");
307        debug_struct.field("runs", &self.runs);
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::StartManualTransferRunsRequest {
316    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
317        let mut debug_struct = f.debug_struct("StartManualTransferRunsRequest");
318        debug_struct.field("parent", &self.parent);
319        debug_struct.field("time", &self.time);
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::start_manual_transfer_runs_request::TimeRange {
328    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
329        let mut debug_struct = f.debug_struct("TimeRange");
330        debug_struct.field("start_time", &self.start_time);
331        debug_struct.field("end_time", &self.end_time);
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::StartManualTransferRunsResponse {
340    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
341        let mut debug_struct = f.debug_struct("StartManualTransferRunsResponse");
342        debug_struct.field("runs", &self.runs);
343        if !self._unknown_fields.is_empty() {
344            debug_struct.field("_unknown_fields", &self._unknown_fields);
345        }
346        debug_struct.finish()
347    }
348}
349
350impl std::fmt::Debug for super::EnrollDataSourcesRequest {
351    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
352        let mut debug_struct = f.debug_struct("EnrollDataSourcesRequest");
353        debug_struct.field("name", &self.name);
354        debug_struct.field("data_source_ids", &self.data_source_ids);
355        if !self._unknown_fields.is_empty() {
356            debug_struct.field("_unknown_fields", &self._unknown_fields);
357        }
358        debug_struct.finish()
359    }
360}
361
362impl std::fmt::Debug for super::UnenrollDataSourcesRequest {
363    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
364        let mut debug_struct = f.debug_struct("UnenrollDataSourcesRequest");
365        debug_struct.field("name", &self.name);
366        debug_struct.field("data_source_ids", &self.data_source_ids);
367        if !self._unknown_fields.is_empty() {
368            debug_struct.field("_unknown_fields", &self._unknown_fields);
369        }
370        debug_struct.finish()
371    }
372}
373
374impl std::fmt::Debug for super::EmailPreferences {
375    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
376        let mut debug_struct = f.debug_struct("EmailPreferences");
377        debug_struct.field("enable_failure_email", &self.enable_failure_email);
378        if !self._unknown_fields.is_empty() {
379            debug_struct.field("_unknown_fields", &self._unknown_fields);
380        }
381        debug_struct.finish()
382    }
383}
384
385impl std::fmt::Debug for super::ScheduleOptions {
386    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
387        let mut debug_struct = f.debug_struct("ScheduleOptions");
388        debug_struct.field("disable_auto_scheduling", &self.disable_auto_scheduling);
389        debug_struct.field("start_time", &self.start_time);
390        debug_struct.field("end_time", &self.end_time);
391        if !self._unknown_fields.is_empty() {
392            debug_struct.field("_unknown_fields", &self._unknown_fields);
393        }
394        debug_struct.finish()
395    }
396}
397
398impl std::fmt::Debug for super::ScheduleOptionsV2 {
399    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
400        let mut debug_struct = f.debug_struct("ScheduleOptionsV2");
401        debug_struct.field("schedule", &self.schedule);
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::TimeBasedSchedule {
410    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
411        let mut debug_struct = f.debug_struct("TimeBasedSchedule");
412        debug_struct.field("schedule", &self.schedule);
413        debug_struct.field("start_time", &self.start_time);
414        debug_struct.field("end_time", &self.end_time);
415        if !self._unknown_fields.is_empty() {
416            debug_struct.field("_unknown_fields", &self._unknown_fields);
417        }
418        debug_struct.finish()
419    }
420}
421
422impl std::fmt::Debug for super::ManualSchedule {
423    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
424        let mut debug_struct = f.debug_struct("ManualSchedule");
425        if !self._unknown_fields.is_empty() {
426            debug_struct.field("_unknown_fields", &self._unknown_fields);
427        }
428        debug_struct.finish()
429    }
430}
431
432impl std::fmt::Debug for super::EventDrivenSchedule {
433    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
434        let mut debug_struct = f.debug_struct("EventDrivenSchedule");
435        debug_struct.field("pubsub_subscription", &self.pubsub_subscription);
436        if !self._unknown_fields.is_empty() {
437            debug_struct.field("_unknown_fields", &self._unknown_fields);
438        }
439        debug_struct.finish()
440    }
441}
442
443impl std::fmt::Debug for super::UserInfo {
444    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
445        let mut debug_struct = f.debug_struct("UserInfo");
446        debug_struct.field("email", &self.email);
447        if !self._unknown_fields.is_empty() {
448            debug_struct.field("_unknown_fields", &self._unknown_fields);
449        }
450        debug_struct.finish()
451    }
452}
453
454impl std::fmt::Debug for super::TransferConfig {
455    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
456        let mut debug_struct = f.debug_struct("TransferConfig");
457        debug_struct.field("name", &self.name);
458        debug_struct.field("display_name", &self.display_name);
459        debug_struct.field("data_source_id", &self.data_source_id);
460        debug_struct.field("params", &self.params);
461        debug_struct.field("schedule", &self.schedule);
462        debug_struct.field("schedule_options", &self.schedule_options);
463        debug_struct.field("schedule_options_v2", &self.schedule_options_v2);
464        debug_struct.field("data_refresh_window_days", &self.data_refresh_window_days);
465        debug_struct.field("disabled", &self.disabled);
466        debug_struct.field("update_time", &self.update_time);
467        debug_struct.field("next_run_time", &self.next_run_time);
468        debug_struct.field("state", &self.state);
469        debug_struct.field("user_id", &self.user_id);
470        debug_struct.field("dataset_region", &self.dataset_region);
471        debug_struct.field("notification_pubsub_topic", &self.notification_pubsub_topic);
472        debug_struct.field("email_preferences", &self.email_preferences);
473        debug_struct.field("owner_info", &self.owner_info);
474        debug_struct.field("encryption_configuration", &self.encryption_configuration);
475        debug_struct.field("error", &self.error);
476        debug_struct.field("destination", &self.destination);
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::EncryptionConfiguration {
485    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
486        let mut debug_struct = f.debug_struct("EncryptionConfiguration");
487        debug_struct.field("kms_key_name", &self.kms_key_name);
488        if !self._unknown_fields.is_empty() {
489            debug_struct.field("_unknown_fields", &self._unknown_fields);
490        }
491        debug_struct.finish()
492    }
493}
494
495impl std::fmt::Debug for super::TransferRun {
496    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
497        let mut debug_struct = f.debug_struct("TransferRun");
498        debug_struct.field("name", &self.name);
499        debug_struct.field("schedule_time", &self.schedule_time);
500        debug_struct.field("run_time", &self.run_time);
501        debug_struct.field("error_status", &self.error_status);
502        debug_struct.field("start_time", &self.start_time);
503        debug_struct.field("end_time", &self.end_time);
504        debug_struct.field("update_time", &self.update_time);
505        debug_struct.field("params", &self.params);
506        debug_struct.field("data_source_id", &self.data_source_id);
507        debug_struct.field("state", &self.state);
508        debug_struct.field("user_id", &self.user_id);
509        debug_struct.field("schedule", &self.schedule);
510        debug_struct.field("notification_pubsub_topic", &self.notification_pubsub_topic);
511        debug_struct.field("email_preferences", &self.email_preferences);
512        debug_struct.field("destination", &self.destination);
513        if !self._unknown_fields.is_empty() {
514            debug_struct.field("_unknown_fields", &self._unknown_fields);
515        }
516        debug_struct.finish()
517    }
518}
519
520impl std::fmt::Debug for super::TransferMessage {
521    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
522        let mut debug_struct = f.debug_struct("TransferMessage");
523        debug_struct.field("message_time", &self.message_time);
524        debug_struct.field("severity", &self.severity);
525        debug_struct.field("message_text", &self.message_text);
526        if !self._unknown_fields.is_empty() {
527            debug_struct.field("_unknown_fields", &self._unknown_fields);
528        }
529        debug_struct.finish()
530    }
531}