google_cloud_api_cloudquotas_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::ListQuotaInfosRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ListQuotaInfosRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("page_size", &self.page_size);
25        debug_struct.field("page_token", &self.page_token);
26        if !self._unknown_fields.is_empty() {
27            debug_struct.field("_unknown_fields", &self._unknown_fields);
28        }
29        debug_struct.finish()
30    }
31}
32
33impl std::fmt::Debug for super::ListQuotaInfosResponse {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("ListQuotaInfosResponse");
36        debug_struct.field("quota_infos", &self.quota_infos);
37        debug_struct.field("next_page_token", &self.next_page_token);
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::GetQuotaInfoRequest {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("GetQuotaInfoRequest");
48        debug_struct.field("name", &self.name);
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::ListQuotaPreferencesRequest {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("ListQuotaPreferencesRequest");
59        debug_struct.field("parent", &self.parent);
60        debug_struct.field("page_size", &self.page_size);
61        debug_struct.field("page_token", &self.page_token);
62        debug_struct.field("filter", &self.filter);
63        debug_struct.field("order_by", &self.order_by);
64        if !self._unknown_fields.is_empty() {
65            debug_struct.field("_unknown_fields", &self._unknown_fields);
66        }
67        debug_struct.finish()
68    }
69}
70
71impl std::fmt::Debug for super::ListQuotaPreferencesResponse {
72    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73        let mut debug_struct = f.debug_struct("ListQuotaPreferencesResponse");
74        debug_struct.field("quota_preferences", &self.quota_preferences);
75        debug_struct.field("next_page_token", &self.next_page_token);
76        debug_struct.field("unreachable", &self.unreachable);
77        if !self._unknown_fields.is_empty() {
78            debug_struct.field("_unknown_fields", &self._unknown_fields);
79        }
80        debug_struct.finish()
81    }
82}
83
84impl std::fmt::Debug for super::GetQuotaPreferenceRequest {
85    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
86        let mut debug_struct = f.debug_struct("GetQuotaPreferenceRequest");
87        debug_struct.field("name", &self.name);
88        if !self._unknown_fields.is_empty() {
89            debug_struct.field("_unknown_fields", &self._unknown_fields);
90        }
91        debug_struct.finish()
92    }
93}
94
95impl std::fmt::Debug for super::CreateQuotaPreferenceRequest {
96    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97        let mut debug_struct = f.debug_struct("CreateQuotaPreferenceRequest");
98        debug_struct.field("parent", &self.parent);
99        debug_struct.field("quota_preference_id", &self.quota_preference_id);
100        debug_struct.field("quota_preference", &self.quota_preference);
101        debug_struct.field("ignore_safety_checks", &self.ignore_safety_checks);
102        if !self._unknown_fields.is_empty() {
103            debug_struct.field("_unknown_fields", &self._unknown_fields);
104        }
105        debug_struct.finish()
106    }
107}
108
109impl std::fmt::Debug for super::UpdateQuotaPreferenceRequest {
110    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
111        let mut debug_struct = f.debug_struct("UpdateQuotaPreferenceRequest");
112        debug_struct.field("update_mask", &self.update_mask);
113        debug_struct.field("quota_preference", &self.quota_preference);
114        debug_struct.field("allow_missing", &self.allow_missing);
115        debug_struct.field("validate_only", &self.validate_only);
116        debug_struct.field("ignore_safety_checks", &self.ignore_safety_checks);
117        if !self._unknown_fields.is_empty() {
118            debug_struct.field("_unknown_fields", &self._unknown_fields);
119        }
120        debug_struct.finish()
121    }
122}
123
124impl std::fmt::Debug for super::QuotaInfo {
125    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126        let mut debug_struct = f.debug_struct("QuotaInfo");
127        debug_struct.field("name", &self.name);
128        debug_struct.field("quota_id", &self.quota_id);
129        debug_struct.field("metric", &self.metric);
130        debug_struct.field("service", &self.service);
131        debug_struct.field("is_precise", &self.is_precise);
132        debug_struct.field("refresh_interval", &self.refresh_interval);
133        debug_struct.field("container_type", &self.container_type);
134        debug_struct.field("dimensions", &self.dimensions);
135        debug_struct.field("metric_display_name", &self.metric_display_name);
136        debug_struct.field("quota_display_name", &self.quota_display_name);
137        debug_struct.field("metric_unit", &self.metric_unit);
138        debug_struct.field(
139            "quota_increase_eligibility",
140            &self.quota_increase_eligibility,
141        );
142        debug_struct.field("is_fixed", &self.is_fixed);
143        debug_struct.field("dimensions_infos", &self.dimensions_infos);
144        debug_struct.field("is_concurrent", &self.is_concurrent);
145        debug_struct.field("service_request_quota_uri", &self.service_request_quota_uri);
146        if !self._unknown_fields.is_empty() {
147            debug_struct.field("_unknown_fields", &self._unknown_fields);
148        }
149        debug_struct.finish()
150    }
151}
152
153impl std::fmt::Debug for super::QuotaIncreaseEligibility {
154    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
155        let mut debug_struct = f.debug_struct("QuotaIncreaseEligibility");
156        debug_struct.field("is_eligible", &self.is_eligible);
157        debug_struct.field("ineligibility_reason", &self.ineligibility_reason);
158        if !self._unknown_fields.is_empty() {
159            debug_struct.field("_unknown_fields", &self._unknown_fields);
160        }
161        debug_struct.finish()
162    }
163}
164
165impl std::fmt::Debug for super::QuotaPreference {
166    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
167        let mut debug_struct = f.debug_struct("QuotaPreference");
168        debug_struct.field("name", &self.name);
169        debug_struct.field("dimensions", &self.dimensions);
170        debug_struct.field("quota_config", &self.quota_config);
171        debug_struct.field("etag", &self.etag);
172        debug_struct.field("create_time", &self.create_time);
173        debug_struct.field("update_time", &self.update_time);
174        debug_struct.field("service", &self.service);
175        debug_struct.field("quota_id", &self.quota_id);
176        debug_struct.field("reconciling", &self.reconciling);
177        debug_struct.field("justification", &self.justification);
178        debug_struct.field("contact_email", &self.contact_email);
179        if !self._unknown_fields.is_empty() {
180            debug_struct.field("_unknown_fields", &self._unknown_fields);
181        }
182        debug_struct.finish()
183    }
184}
185
186impl std::fmt::Debug for super::QuotaConfig {
187    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
188        let mut debug_struct = f.debug_struct("QuotaConfig");
189        debug_struct.field("preferred_value", &self.preferred_value);
190        debug_struct.field("state_detail", &self.state_detail);
191        debug_struct.field("granted_value", &self.granted_value);
192        debug_struct.field("trace_id", &self.trace_id);
193        debug_struct.field("annotations", &self.annotations);
194        debug_struct.field("request_origin", &self.request_origin);
195        if !self._unknown_fields.is_empty() {
196            debug_struct.field("_unknown_fields", &self._unknown_fields);
197        }
198        debug_struct.finish()
199    }
200}
201
202impl std::fmt::Debug for super::DimensionsInfo {
203    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
204        let mut debug_struct = f.debug_struct("DimensionsInfo");
205        debug_struct.field("dimensions", &self.dimensions);
206        debug_struct.field("details", &self.details);
207        debug_struct.field("applicable_locations", &self.applicable_locations);
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::QuotaDetails {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("QuotaDetails");
218        debug_struct.field("value", &self.value);
219        debug_struct.field("rollout_info", &self.rollout_info);
220        if !self._unknown_fields.is_empty() {
221            debug_struct.field("_unknown_fields", &self._unknown_fields);
222        }
223        debug_struct.finish()
224    }
225}
226
227impl std::fmt::Debug for super::RolloutInfo {
228    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
229        let mut debug_struct = f.debug_struct("RolloutInfo");
230        debug_struct.field("ongoing_rollout", &self.ongoing_rollout);
231        if !self._unknown_fields.is_empty() {
232            debug_struct.field("_unknown_fields", &self._unknown_fields);
233        }
234        debug_struct.finish()
235    }
236}