Skip to main content

google_cloud_recommender_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::Insight {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Insight");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("description", &self.description);
25        debug_struct.field("target_resources", &self.target_resources);
26        debug_struct.field("insight_subtype", &self.insight_subtype);
27        debug_struct.field("content", &self.content);
28        debug_struct.field("last_refresh_time", &self.last_refresh_time);
29        debug_struct.field("observation_period", &self.observation_period);
30        debug_struct.field("state_info", &self.state_info);
31        debug_struct.field("category", &self.category);
32        debug_struct.field("severity", &self.severity);
33        debug_struct.field("etag", &self.etag);
34        debug_struct.field(
35            "associated_recommendations",
36            &self.associated_recommendations,
37        );
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::insight::RecommendationReference {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("RecommendationReference");
48        debug_struct.field("recommendation", &self.recommendation);
49        if !self._unknown_fields.is_empty() {
50            debug_struct.field("_unknown_fields", &self._unknown_fields);
51        }
52        debug_struct.finish()
53    }
54}
55
56impl std::fmt::Debug for super::InsightStateInfo {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("InsightStateInfo");
59        debug_struct.field("state", &self.state);
60        debug_struct.field("state_metadata", &self.state_metadata);
61        if !self._unknown_fields.is_empty() {
62            debug_struct.field("_unknown_fields", &self._unknown_fields);
63        }
64        debug_struct.finish()
65    }
66}
67
68impl std::fmt::Debug for super::InsightTypeConfig {
69    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70        let mut debug_struct = f.debug_struct("InsightTypeConfig");
71        debug_struct.field("name", &self.name);
72        debug_struct.field(
73            "insight_type_generation_config",
74            &self.insight_type_generation_config,
75        );
76        debug_struct.field("etag", &self.etag);
77        debug_struct.field("update_time", &self.update_time);
78        debug_struct.field("revision_id", &self.revision_id);
79        debug_struct.field("annotations", &self.annotations);
80        debug_struct.field("display_name", &self.display_name);
81        if !self._unknown_fields.is_empty() {
82            debug_struct.field("_unknown_fields", &self._unknown_fields);
83        }
84        debug_struct.finish()
85    }
86}
87
88impl std::fmt::Debug for super::InsightTypeGenerationConfig {
89    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
90        let mut debug_struct = f.debug_struct("InsightTypeGenerationConfig");
91        debug_struct.field("params", &self.params);
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::Recommendation {
100    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
101        let mut debug_struct = f.debug_struct("Recommendation");
102        debug_struct.field("name", &self.name);
103        debug_struct.field("description", &self.description);
104        debug_struct.field("recommender_subtype", &self.recommender_subtype);
105        debug_struct.field("last_refresh_time", &self.last_refresh_time);
106        debug_struct.field("primary_impact", &self.primary_impact);
107        debug_struct.field("additional_impact", &self.additional_impact);
108        debug_struct.field("priority", &self.priority);
109        debug_struct.field("content", &self.content);
110        debug_struct.field("state_info", &self.state_info);
111        debug_struct.field("etag", &self.etag);
112        debug_struct.field("associated_insights", &self.associated_insights);
113        debug_struct.field("xor_group_id", &self.xor_group_id);
114        if !self._unknown_fields.is_empty() {
115            debug_struct.field("_unknown_fields", &self._unknown_fields);
116        }
117        debug_struct.finish()
118    }
119}
120
121impl std::fmt::Debug for super::recommendation::InsightReference {
122    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
123        let mut debug_struct = f.debug_struct("InsightReference");
124        debug_struct.field("insight", &self.insight);
125        if !self._unknown_fields.is_empty() {
126            debug_struct.field("_unknown_fields", &self._unknown_fields);
127        }
128        debug_struct.finish()
129    }
130}
131
132impl std::fmt::Debug for super::RecommendationContent {
133    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134        let mut debug_struct = f.debug_struct("RecommendationContent");
135        debug_struct.field("operation_groups", &self.operation_groups);
136        debug_struct.field("overview", &self.overview);
137        if !self._unknown_fields.is_empty() {
138            debug_struct.field("_unknown_fields", &self._unknown_fields);
139        }
140        debug_struct.finish()
141    }
142}
143
144impl std::fmt::Debug for super::OperationGroup {
145    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
146        let mut debug_struct = f.debug_struct("OperationGroup");
147        debug_struct.field("operations", &self.operations);
148        if !self._unknown_fields.is_empty() {
149            debug_struct.field("_unknown_fields", &self._unknown_fields);
150        }
151        debug_struct.finish()
152    }
153}
154
155impl std::fmt::Debug for super::Operation {
156    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
157        let mut debug_struct = f.debug_struct("Operation");
158        debug_struct.field("action", &self.action);
159        debug_struct.field("resource_type", &self.resource_type);
160        debug_struct.field("resource", &self.resource);
161        debug_struct.field("path", &self.path);
162        debug_struct.field("source_resource", &self.source_resource);
163        debug_struct.field("source_path", &self.source_path);
164        debug_struct.field("path_filters", &self.path_filters);
165        debug_struct.field("path_value_matchers", &self.path_value_matchers);
166        debug_struct.field("path_value", &self.path_value);
167        if !self._unknown_fields.is_empty() {
168            debug_struct.field("_unknown_fields", &self._unknown_fields);
169        }
170        debug_struct.finish()
171    }
172}
173
174impl std::fmt::Debug for super::ValueMatcher {
175    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
176        let mut debug_struct = f.debug_struct("ValueMatcher");
177        debug_struct.field("match_variant", &self.match_variant);
178        if !self._unknown_fields.is_empty() {
179            debug_struct.field("_unknown_fields", &self._unknown_fields);
180        }
181        debug_struct.finish()
182    }
183}
184
185impl std::fmt::Debug for super::CostProjection {
186    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
187        let mut debug_struct = f.debug_struct("CostProjection");
188        debug_struct.field("cost", &self.cost);
189        debug_struct.field("duration", &self.duration);
190        debug_struct.field("cost_in_local_currency", &self.cost_in_local_currency);
191        if !self._unknown_fields.is_empty() {
192            debug_struct.field("_unknown_fields", &self._unknown_fields);
193        }
194        debug_struct.finish()
195    }
196}
197
198impl std::fmt::Debug for super::SecurityProjection {
199    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
200        let mut debug_struct = f.debug_struct("SecurityProjection");
201        debug_struct.field("details", &self.details);
202        if !self._unknown_fields.is_empty() {
203            debug_struct.field("_unknown_fields", &self._unknown_fields);
204        }
205        debug_struct.finish()
206    }
207}
208
209impl std::fmt::Debug for super::SustainabilityProjection {
210    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
211        let mut debug_struct = f.debug_struct("SustainabilityProjection");
212        debug_struct.field("kg_c_o2e", &self.kg_c_o2e);
213        debug_struct.field("duration", &self.duration);
214        if !self._unknown_fields.is_empty() {
215            debug_struct.field("_unknown_fields", &self._unknown_fields);
216        }
217        debug_struct.finish()
218    }
219}
220
221impl std::fmt::Debug for super::ReliabilityProjection {
222    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
223        let mut debug_struct = f.debug_struct("ReliabilityProjection");
224        debug_struct.field("risks", &self.risks);
225        debug_struct.field("details", &self.details);
226        if !self._unknown_fields.is_empty() {
227            debug_struct.field("_unknown_fields", &self._unknown_fields);
228        }
229        debug_struct.finish()
230    }
231}
232
233impl std::fmt::Debug for super::Impact {
234    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
235        let mut debug_struct = f.debug_struct("Impact");
236        debug_struct.field("category", &self.category);
237        debug_struct.field("projection", &self.projection);
238        if !self._unknown_fields.is_empty() {
239            debug_struct.field("_unknown_fields", &self._unknown_fields);
240        }
241        debug_struct.finish()
242    }
243}
244
245impl std::fmt::Debug for super::RecommendationStateInfo {
246    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
247        let mut debug_struct = f.debug_struct("RecommendationStateInfo");
248        debug_struct.field("state", &self.state);
249        debug_struct.field("state_metadata", &self.state_metadata);
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::RecommenderConfig {
258    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259        let mut debug_struct = f.debug_struct("RecommenderConfig");
260        debug_struct.field("name", &self.name);
261        debug_struct.field(
262            "recommender_generation_config",
263            &self.recommender_generation_config,
264        );
265        debug_struct.field("etag", &self.etag);
266        debug_struct.field("update_time", &self.update_time);
267        debug_struct.field("revision_id", &self.revision_id);
268        debug_struct.field("annotations", &self.annotations);
269        debug_struct.field("display_name", &self.display_name);
270        if !self._unknown_fields.is_empty() {
271            debug_struct.field("_unknown_fields", &self._unknown_fields);
272        }
273        debug_struct.finish()
274    }
275}
276
277impl std::fmt::Debug for super::RecommenderGenerationConfig {
278    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
279        let mut debug_struct = f.debug_struct("RecommenderGenerationConfig");
280        debug_struct.field("params", &self.params);
281        if !self._unknown_fields.is_empty() {
282            debug_struct.field("_unknown_fields", &self._unknown_fields);
283        }
284        debug_struct.finish()
285    }
286}
287
288impl std::fmt::Debug for super::ListInsightsRequest {
289    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
290        let mut debug_struct = f.debug_struct("ListInsightsRequest");
291        debug_struct.field("parent", &self.parent);
292        debug_struct.field("page_size", &self.page_size);
293        debug_struct.field("page_token", &self.page_token);
294        debug_struct.field("filter", &self.filter);
295        if !self._unknown_fields.is_empty() {
296            debug_struct.field("_unknown_fields", &self._unknown_fields);
297        }
298        debug_struct.finish()
299    }
300}
301
302impl std::fmt::Debug for super::ListInsightsResponse {
303    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304        let mut debug_struct = f.debug_struct("ListInsightsResponse");
305        debug_struct.field("insights", &self.insights);
306        debug_struct.field("next_page_token", &self.next_page_token);
307        if !self._unknown_fields.is_empty() {
308            debug_struct.field("_unknown_fields", &self._unknown_fields);
309        }
310        debug_struct.finish()
311    }
312}
313
314impl std::fmt::Debug for super::GetInsightRequest {
315    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
316        let mut debug_struct = f.debug_struct("GetInsightRequest");
317        debug_struct.field("name", &self.name);
318        if !self._unknown_fields.is_empty() {
319            debug_struct.field("_unknown_fields", &self._unknown_fields);
320        }
321        debug_struct.finish()
322    }
323}
324
325impl std::fmt::Debug for super::MarkInsightAcceptedRequest {
326    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
327        let mut debug_struct = f.debug_struct("MarkInsightAcceptedRequest");
328        debug_struct.field("name", &self.name);
329        debug_struct.field("state_metadata", &self.state_metadata);
330        debug_struct.field("etag", &self.etag);
331        if !self._unknown_fields.is_empty() {
332            debug_struct.field("_unknown_fields", &self._unknown_fields);
333        }
334        debug_struct.finish()
335    }
336}
337
338impl std::fmt::Debug for super::ListRecommendationsRequest {
339    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
340        let mut debug_struct = f.debug_struct("ListRecommendationsRequest");
341        debug_struct.field("parent", &self.parent);
342        debug_struct.field("page_size", &self.page_size);
343        debug_struct.field("page_token", &self.page_token);
344        debug_struct.field("filter", &self.filter);
345        if !self._unknown_fields.is_empty() {
346            debug_struct.field("_unknown_fields", &self._unknown_fields);
347        }
348        debug_struct.finish()
349    }
350}
351
352impl std::fmt::Debug for super::ListRecommendationsResponse {
353    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
354        let mut debug_struct = f.debug_struct("ListRecommendationsResponse");
355        debug_struct.field("recommendations", &self.recommendations);
356        debug_struct.field("next_page_token", &self.next_page_token);
357        if !self._unknown_fields.is_empty() {
358            debug_struct.field("_unknown_fields", &self._unknown_fields);
359        }
360        debug_struct.finish()
361    }
362}
363
364impl std::fmt::Debug for super::GetRecommendationRequest {
365    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
366        let mut debug_struct = f.debug_struct("GetRecommendationRequest");
367        debug_struct.field("name", &self.name);
368        if !self._unknown_fields.is_empty() {
369            debug_struct.field("_unknown_fields", &self._unknown_fields);
370        }
371        debug_struct.finish()
372    }
373}
374
375impl std::fmt::Debug for super::MarkRecommendationDismissedRequest {
376    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
377        let mut debug_struct = f.debug_struct("MarkRecommendationDismissedRequest");
378        debug_struct.field("name", &self.name);
379        debug_struct.field("etag", &self.etag);
380        if !self._unknown_fields.is_empty() {
381            debug_struct.field("_unknown_fields", &self._unknown_fields);
382        }
383        debug_struct.finish()
384    }
385}
386
387impl std::fmt::Debug for super::MarkRecommendationClaimedRequest {
388    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
389        let mut debug_struct = f.debug_struct("MarkRecommendationClaimedRequest");
390        debug_struct.field("name", &self.name);
391        debug_struct.field("state_metadata", &self.state_metadata);
392        debug_struct.field("etag", &self.etag);
393        if !self._unknown_fields.is_empty() {
394            debug_struct.field("_unknown_fields", &self._unknown_fields);
395        }
396        debug_struct.finish()
397    }
398}
399
400impl std::fmt::Debug for super::MarkRecommendationSucceededRequest {
401    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
402        let mut debug_struct = f.debug_struct("MarkRecommendationSucceededRequest");
403        debug_struct.field("name", &self.name);
404        debug_struct.field("state_metadata", &self.state_metadata);
405        debug_struct.field("etag", &self.etag);
406        if !self._unknown_fields.is_empty() {
407            debug_struct.field("_unknown_fields", &self._unknown_fields);
408        }
409        debug_struct.finish()
410    }
411}
412
413impl std::fmt::Debug for super::MarkRecommendationFailedRequest {
414    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
415        let mut debug_struct = f.debug_struct("MarkRecommendationFailedRequest");
416        debug_struct.field("name", &self.name);
417        debug_struct.field("state_metadata", &self.state_metadata);
418        debug_struct.field("etag", &self.etag);
419        if !self._unknown_fields.is_empty() {
420            debug_struct.field("_unknown_fields", &self._unknown_fields);
421        }
422        debug_struct.finish()
423    }
424}
425
426impl std::fmt::Debug for super::GetRecommenderConfigRequest {
427    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
428        let mut debug_struct = f.debug_struct("GetRecommenderConfigRequest");
429        debug_struct.field("name", &self.name);
430        if !self._unknown_fields.is_empty() {
431            debug_struct.field("_unknown_fields", &self._unknown_fields);
432        }
433        debug_struct.finish()
434    }
435}
436
437impl std::fmt::Debug for super::UpdateRecommenderConfigRequest {
438    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
439        let mut debug_struct = f.debug_struct("UpdateRecommenderConfigRequest");
440        debug_struct.field("recommender_config", &self.recommender_config);
441        debug_struct.field("update_mask", &self.update_mask);
442        debug_struct.field("validate_only", &self.validate_only);
443        if !self._unknown_fields.is_empty() {
444            debug_struct.field("_unknown_fields", &self._unknown_fields);
445        }
446        debug_struct.finish()
447    }
448}
449
450impl std::fmt::Debug for super::GetInsightTypeConfigRequest {
451    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
452        let mut debug_struct = f.debug_struct("GetInsightTypeConfigRequest");
453        debug_struct.field("name", &self.name);
454        if !self._unknown_fields.is_empty() {
455            debug_struct.field("_unknown_fields", &self._unknown_fields);
456        }
457        debug_struct.finish()
458    }
459}
460
461impl std::fmt::Debug for super::UpdateInsightTypeConfigRequest {
462    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
463        let mut debug_struct = f.debug_struct("UpdateInsightTypeConfigRequest");
464        debug_struct.field("insight_type_config", &self.insight_type_config);
465        debug_struct.field("update_mask", &self.update_mask);
466        debug_struct.field("validate_only", &self.validate_only);
467        if !self._unknown_fields.is_empty() {
468            debug_struct.field("_unknown_fields", &self._unknown_fields);
469        }
470        debug_struct.finish()
471    }
472}