google_cloud_build_v2/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::OperationMetadata {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("OperationMetadata");
23        debug_struct.field("create_time", &self.create_time);
24        debug_struct.field("end_time", &self.end_time);
25        debug_struct.field("target", &self.target);
26        debug_struct.field("verb", &self.verb);
27        debug_struct.field("status_message", &self.status_message);
28        debug_struct.field("requested_cancellation", &self.requested_cancellation);
29        debug_struct.field("api_version", &self.api_version);
30        if !self._unknown_fields.is_empty() {
31            debug_struct.field("_unknown_fields", &self._unknown_fields);
32        }
33        debug_struct.finish()
34    }
35}
36
37impl std::fmt::Debug for super::RunWorkflowCustomOperationMetadata {
38    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39        let mut debug_struct = f.debug_struct("RunWorkflowCustomOperationMetadata");
40        debug_struct.field("create_time", &self.create_time);
41        debug_struct.field("end_time", &self.end_time);
42        debug_struct.field("verb", &self.verb);
43        debug_struct.field("requested_cancellation", &self.requested_cancellation);
44        debug_struct.field("api_version", &self.api_version);
45        debug_struct.field("target", &self.target);
46        debug_struct.field("pipeline_run_id", &self.pipeline_run_id);
47        if !self._unknown_fields.is_empty() {
48            debug_struct.field("_unknown_fields", &self._unknown_fields);
49        }
50        debug_struct.finish()
51    }
52}
53
54impl std::fmt::Debug for super::Connection {
55    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56        let mut debug_struct = f.debug_struct("Connection");
57        debug_struct.field("name", &self.name);
58        debug_struct.field("create_time", &self.create_time);
59        debug_struct.field("update_time", &self.update_time);
60        debug_struct.field("installation_state", &self.installation_state);
61        debug_struct.field("disabled", &self.disabled);
62        debug_struct.field("reconciling", &self.reconciling);
63        debug_struct.field("annotations", &self.annotations);
64        debug_struct.field("etag", &self.etag);
65        debug_struct.field("connection_config", &self.connection_config);
66        if !self._unknown_fields.is_empty() {
67            debug_struct.field("_unknown_fields", &self._unknown_fields);
68        }
69        debug_struct.finish()
70    }
71}
72
73impl std::fmt::Debug for super::InstallationState {
74    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75        let mut debug_struct = f.debug_struct("InstallationState");
76        debug_struct.field("stage", &self.stage);
77        debug_struct.field("message", &self.message);
78        debug_struct.field("action_uri", &self.action_uri);
79        if !self._unknown_fields.is_empty() {
80            debug_struct.field("_unknown_fields", &self._unknown_fields);
81        }
82        debug_struct.finish()
83    }
84}
85
86impl std::fmt::Debug for super::FetchLinkableRepositoriesRequest {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("FetchLinkableRepositoriesRequest");
89        debug_struct.field("connection", &self.connection);
90        debug_struct.field("page_size", &self.page_size);
91        debug_struct.field("page_token", &self.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::FetchLinkableRepositoriesResponse {
100    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
101        let mut debug_struct = f.debug_struct("FetchLinkableRepositoriesResponse");
102        debug_struct.field("repositories", &self.repositories);
103        debug_struct.field("next_page_token", &self.next_page_token);
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::GitHubConfig {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("GitHubConfig");
114        debug_struct.field("authorizer_credential", &self.authorizer_credential);
115        debug_struct.field("app_installation_id", &self.app_installation_id);
116        if !self._unknown_fields.is_empty() {
117            debug_struct.field("_unknown_fields", &self._unknown_fields);
118        }
119        debug_struct.finish()
120    }
121}
122
123impl std::fmt::Debug for super::GitHubEnterpriseConfig {
124    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125        let mut debug_struct = f.debug_struct("GitHubEnterpriseConfig");
126        debug_struct.field("host_uri", &self.host_uri);
127        debug_struct.field("api_key", &self.api_key);
128        debug_struct.field("app_id", &self.app_id);
129        debug_struct.field("app_slug", &self.app_slug);
130        debug_struct.field(
131            "private_key_secret_version",
132            &self.private_key_secret_version,
133        );
134        debug_struct.field(
135            "webhook_secret_secret_version",
136            &self.webhook_secret_secret_version,
137        );
138        debug_struct.field("app_installation_id", &self.app_installation_id);
139        debug_struct.field("service_directory_config", &self.service_directory_config);
140        debug_struct.field("ssl_ca", &self.ssl_ca);
141        debug_struct.field("server_version", &self.server_version);
142        if !self._unknown_fields.is_empty() {
143            debug_struct.field("_unknown_fields", &self._unknown_fields);
144        }
145        debug_struct.finish()
146    }
147}
148
149impl std::fmt::Debug for super::GitLabConfig {
150    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
151        let mut debug_struct = f.debug_struct("GitLabConfig");
152        debug_struct.field("host_uri", &self.host_uri);
153        debug_struct.field(
154            "webhook_secret_secret_version",
155            &self.webhook_secret_secret_version,
156        );
157        debug_struct.field(
158            "read_authorizer_credential",
159            &self.read_authorizer_credential,
160        );
161        debug_struct.field("authorizer_credential", &self.authorizer_credential);
162        debug_struct.field("service_directory_config", &self.service_directory_config);
163        debug_struct.field("ssl_ca", &self.ssl_ca);
164        debug_struct.field("server_version", &self.server_version);
165        if !self._unknown_fields.is_empty() {
166            debug_struct.field("_unknown_fields", &self._unknown_fields);
167        }
168        debug_struct.finish()
169    }
170}
171
172impl std::fmt::Debug for super::BitbucketDataCenterConfig {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("BitbucketDataCenterConfig");
175        debug_struct.field("host_uri", &self.host_uri);
176        debug_struct.field(
177            "webhook_secret_secret_version",
178            &self.webhook_secret_secret_version,
179        );
180        debug_struct.field(
181            "read_authorizer_credential",
182            &self.read_authorizer_credential,
183        );
184        debug_struct.field("authorizer_credential", &self.authorizer_credential);
185        debug_struct.field("service_directory_config", &self.service_directory_config);
186        debug_struct.field("ssl_ca", &self.ssl_ca);
187        debug_struct.field("server_version", &self.server_version);
188        if !self._unknown_fields.is_empty() {
189            debug_struct.field("_unknown_fields", &self._unknown_fields);
190        }
191        debug_struct.finish()
192    }
193}
194
195impl std::fmt::Debug for super::BitbucketCloudConfig {
196    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
197        let mut debug_struct = f.debug_struct("BitbucketCloudConfig");
198        debug_struct.field("workspace", &self.workspace);
199        debug_struct.field(
200            "webhook_secret_secret_version",
201            &self.webhook_secret_secret_version,
202        );
203        debug_struct.field(
204            "read_authorizer_credential",
205            &self.read_authorizer_credential,
206        );
207        debug_struct.field("authorizer_credential", &self.authorizer_credential);
208        if !self._unknown_fields.is_empty() {
209            debug_struct.field("_unknown_fields", &self._unknown_fields);
210        }
211        debug_struct.finish()
212    }
213}
214
215impl std::fmt::Debug for super::ServiceDirectoryConfig {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("ServiceDirectoryConfig");
218        debug_struct.field("service", &self.service);
219        if !self._unknown_fields.is_empty() {
220            debug_struct.field("_unknown_fields", &self._unknown_fields);
221        }
222        debug_struct.finish()
223    }
224}
225
226impl std::fmt::Debug for super::Repository {
227    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
228        let mut debug_struct = f.debug_struct("Repository");
229        debug_struct.field("name", &self.name);
230        debug_struct.field("remote_uri", &self.remote_uri);
231        debug_struct.field("create_time", &self.create_time);
232        debug_struct.field("update_time", &self.update_time);
233        debug_struct.field("annotations", &self.annotations);
234        debug_struct.field("etag", &self.etag);
235        debug_struct.field("webhook_id", &self.webhook_id);
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::OAuthCredential {
244    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
245        let mut debug_struct = f.debug_struct("OAuthCredential");
246        debug_struct.field(
247            "oauth_token_secret_version",
248            &self.oauth_token_secret_version,
249        );
250        debug_struct.field("username", &self.username);
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::UserCredential {
259    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
260        let mut debug_struct = f.debug_struct("UserCredential");
261        debug_struct.field("user_token_secret_version", &self.user_token_secret_version);
262        debug_struct.field("username", &self.username);
263        if !self._unknown_fields.is_empty() {
264            debug_struct.field("_unknown_fields", &self._unknown_fields);
265        }
266        debug_struct.finish()
267    }
268}
269
270impl std::fmt::Debug for super::CreateConnectionRequest {
271    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
272        let mut debug_struct = f.debug_struct("CreateConnectionRequest");
273        debug_struct.field("parent", &self.parent);
274        debug_struct.field("connection", &self.connection);
275        debug_struct.field("connection_id", &self.connection_id);
276        if !self._unknown_fields.is_empty() {
277            debug_struct.field("_unknown_fields", &self._unknown_fields);
278        }
279        debug_struct.finish()
280    }
281}
282
283impl std::fmt::Debug for super::GetConnectionRequest {
284    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
285        let mut debug_struct = f.debug_struct("GetConnectionRequest");
286        debug_struct.field("name", &self.name);
287        if !self._unknown_fields.is_empty() {
288            debug_struct.field("_unknown_fields", &self._unknown_fields);
289        }
290        debug_struct.finish()
291    }
292}
293
294impl std::fmt::Debug for super::ListConnectionsRequest {
295    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
296        let mut debug_struct = f.debug_struct("ListConnectionsRequest");
297        debug_struct.field("parent", &self.parent);
298        debug_struct.field("page_size", &self.page_size);
299        debug_struct.field("page_token", &self.page_token);
300        if !self._unknown_fields.is_empty() {
301            debug_struct.field("_unknown_fields", &self._unknown_fields);
302        }
303        debug_struct.finish()
304    }
305}
306
307impl std::fmt::Debug for super::ListConnectionsResponse {
308    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
309        let mut debug_struct = f.debug_struct("ListConnectionsResponse");
310        debug_struct.field("connections", &self.connections);
311        debug_struct.field("next_page_token", &self.next_page_token);
312        if !self._unknown_fields.is_empty() {
313            debug_struct.field("_unknown_fields", &self._unknown_fields);
314        }
315        debug_struct.finish()
316    }
317}
318
319impl std::fmt::Debug for super::UpdateConnectionRequest {
320    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
321        let mut debug_struct = f.debug_struct("UpdateConnectionRequest");
322        debug_struct.field("connection", &self.connection);
323        debug_struct.field("update_mask", &self.update_mask);
324        debug_struct.field("allow_missing", &self.allow_missing);
325        debug_struct.field("etag", &self.etag);
326        if !self._unknown_fields.is_empty() {
327            debug_struct.field("_unknown_fields", &self._unknown_fields);
328        }
329        debug_struct.finish()
330    }
331}
332
333impl std::fmt::Debug for super::DeleteConnectionRequest {
334    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
335        let mut debug_struct = f.debug_struct("DeleteConnectionRequest");
336        debug_struct.field("name", &self.name);
337        debug_struct.field("etag", &self.etag);
338        debug_struct.field("validate_only", &self.validate_only);
339        if !self._unknown_fields.is_empty() {
340            debug_struct.field("_unknown_fields", &self._unknown_fields);
341        }
342        debug_struct.finish()
343    }
344}
345
346impl std::fmt::Debug for super::CreateRepositoryRequest {
347    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
348        let mut debug_struct = f.debug_struct("CreateRepositoryRequest");
349        debug_struct.field("parent", &self.parent);
350        debug_struct.field("repository", &self.repository);
351        debug_struct.field("repository_id", &self.repository_id);
352        if !self._unknown_fields.is_empty() {
353            debug_struct.field("_unknown_fields", &self._unknown_fields);
354        }
355        debug_struct.finish()
356    }
357}
358
359impl std::fmt::Debug for super::BatchCreateRepositoriesRequest {
360    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
361        let mut debug_struct = f.debug_struct("BatchCreateRepositoriesRequest");
362        debug_struct.field("parent", &self.parent);
363        debug_struct.field("requests", &self.requests);
364        if !self._unknown_fields.is_empty() {
365            debug_struct.field("_unknown_fields", &self._unknown_fields);
366        }
367        debug_struct.finish()
368    }
369}
370
371impl std::fmt::Debug for super::BatchCreateRepositoriesResponse {
372    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
373        let mut debug_struct = f.debug_struct("BatchCreateRepositoriesResponse");
374        debug_struct.field("repositories", &self.repositories);
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::GetRepositoryRequest {
383    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
384        let mut debug_struct = f.debug_struct("GetRepositoryRequest");
385        debug_struct.field("name", &self.name);
386        if !self._unknown_fields.is_empty() {
387            debug_struct.field("_unknown_fields", &self._unknown_fields);
388        }
389        debug_struct.finish()
390    }
391}
392
393impl std::fmt::Debug for super::ListRepositoriesRequest {
394    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
395        let mut debug_struct = f.debug_struct("ListRepositoriesRequest");
396        debug_struct.field("parent", &self.parent);
397        debug_struct.field("page_size", &self.page_size);
398        debug_struct.field("page_token", &self.page_token);
399        debug_struct.field("filter", &self.filter);
400        if !self._unknown_fields.is_empty() {
401            debug_struct.field("_unknown_fields", &self._unknown_fields);
402        }
403        debug_struct.finish()
404    }
405}
406
407impl std::fmt::Debug for super::ListRepositoriesResponse {
408    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
409        let mut debug_struct = f.debug_struct("ListRepositoriesResponse");
410        debug_struct.field("repositories", &self.repositories);
411        debug_struct.field("next_page_token", &self.next_page_token);
412        if !self._unknown_fields.is_empty() {
413            debug_struct.field("_unknown_fields", &self._unknown_fields);
414        }
415        debug_struct.finish()
416    }
417}
418
419impl std::fmt::Debug for super::DeleteRepositoryRequest {
420    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
421        let mut debug_struct = f.debug_struct("DeleteRepositoryRequest");
422        debug_struct.field("name", &self.name);
423        debug_struct.field("etag", &self.etag);
424        debug_struct.field("validate_only", &self.validate_only);
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::FetchReadWriteTokenRequest {
433    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
434        let mut debug_struct = f.debug_struct("FetchReadWriteTokenRequest");
435        debug_struct.field("repository", &self.repository);
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::FetchReadTokenRequest {
444    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
445        let mut debug_struct = f.debug_struct("FetchReadTokenRequest");
446        debug_struct.field("repository", &self.repository);
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::FetchReadTokenResponse {
455    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
456        let mut debug_struct = f.debug_struct("FetchReadTokenResponse");
457        debug_struct.field("token", &self.token);
458        debug_struct.field("expiration_time", &self.expiration_time);
459        if !self._unknown_fields.is_empty() {
460            debug_struct.field("_unknown_fields", &self._unknown_fields);
461        }
462        debug_struct.finish()
463    }
464}
465
466impl std::fmt::Debug for super::FetchReadWriteTokenResponse {
467    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
468        let mut debug_struct = f.debug_struct("FetchReadWriteTokenResponse");
469        debug_struct.field("token", &self.token);
470        debug_struct.field("expiration_time", &self.expiration_time);
471        if !self._unknown_fields.is_empty() {
472            debug_struct.field("_unknown_fields", &self._unknown_fields);
473        }
474        debug_struct.finish()
475    }
476}
477
478impl std::fmt::Debug for super::ProcessWebhookRequest {
479    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
480        let mut debug_struct = f.debug_struct("ProcessWebhookRequest");
481        debug_struct.field("parent", &self.parent);
482        debug_struct.field("body", &self.body);
483        debug_struct.field("webhook_key", &self.webhook_key);
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::FetchGitRefsRequest {
492    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
493        let mut debug_struct = f.debug_struct("FetchGitRefsRequest");
494        debug_struct.field("repository", &self.repository);
495        debug_struct.field("ref_type", &self.ref_type);
496        if !self._unknown_fields.is_empty() {
497            debug_struct.field("_unknown_fields", &self._unknown_fields);
498        }
499        debug_struct.finish()
500    }
501}
502
503impl std::fmt::Debug for super::FetchGitRefsResponse {
504    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
505        let mut debug_struct = f.debug_struct("FetchGitRefsResponse");
506        debug_struct.field("ref_names", &self.ref_names);
507        if !self._unknown_fields.is_empty() {
508            debug_struct.field("_unknown_fields", &self._unknown_fields);
509        }
510        debug_struct.finish()
511    }
512}