Skip to main content

google_cloud_apigateway_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::Api {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Api");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("create_time", &self.create_time);
25        debug_struct.field("update_time", &self.update_time);
26        debug_struct.field("labels", &self.labels);
27        debug_struct.field("display_name", &self.display_name);
28        debug_struct.field("managed_service", &self.managed_service);
29        debug_struct.field("state", &self.state);
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::ApiConfig {
38    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39        let mut debug_struct = f.debug_struct("ApiConfig");
40        debug_struct.field("name", &self.name);
41        debug_struct.field("create_time", &self.create_time);
42        debug_struct.field("update_time", &self.update_time);
43        debug_struct.field("labels", &self.labels);
44        debug_struct.field("display_name", &self.display_name);
45        debug_struct.field("gateway_service_account", &self.gateway_service_account);
46        debug_struct.field("service_config_id", &self.service_config_id);
47        debug_struct.field("state", &self.state);
48        debug_struct.field("openapi_documents", &self.openapi_documents);
49        debug_struct.field("grpc_services", &self.grpc_services);
50        debug_struct.field("managed_service_configs", &self.managed_service_configs);
51        if !self._unknown_fields.is_empty() {
52            debug_struct.field("_unknown_fields", &self._unknown_fields);
53        }
54        debug_struct.finish()
55    }
56}
57
58impl std::fmt::Debug for super::api_config::File {
59    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
60        let mut debug_struct = f.debug_struct("File");
61        debug_struct.field("path", &self.path);
62        debug_struct.field("contents", &self.contents);
63        if !self._unknown_fields.is_empty() {
64            debug_struct.field("_unknown_fields", &self._unknown_fields);
65        }
66        debug_struct.finish()
67    }
68}
69
70impl std::fmt::Debug for super::api_config::OpenApiDocument {
71    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
72        let mut debug_struct = f.debug_struct("OpenApiDocument");
73        debug_struct.field("document", &self.document);
74        if !self._unknown_fields.is_empty() {
75            debug_struct.field("_unknown_fields", &self._unknown_fields);
76        }
77        debug_struct.finish()
78    }
79}
80
81impl std::fmt::Debug for super::api_config::GrpcServiceDefinition {
82    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
83        let mut debug_struct = f.debug_struct("GrpcServiceDefinition");
84        debug_struct.field("file_descriptor_set", &self.file_descriptor_set);
85        debug_struct.field("source", &self.source);
86        if !self._unknown_fields.is_empty() {
87            debug_struct.field("_unknown_fields", &self._unknown_fields);
88        }
89        debug_struct.finish()
90    }
91}
92
93impl std::fmt::Debug for super::Gateway {
94    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95        let mut debug_struct = f.debug_struct("Gateway");
96        debug_struct.field("name", &self.name);
97        debug_struct.field("create_time", &self.create_time);
98        debug_struct.field("update_time", &self.update_time);
99        debug_struct.field("labels", &self.labels);
100        debug_struct.field("display_name", &self.display_name);
101        debug_struct.field("api_config", &self.api_config);
102        debug_struct.field("state", &self.state);
103        debug_struct.field("default_hostname", &self.default_hostname);
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::ListGatewaysRequest {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("ListGatewaysRequest");
114        debug_struct.field("parent", &self.parent);
115        debug_struct.field("page_size", &self.page_size);
116        debug_struct.field("page_token", &self.page_token);
117        debug_struct.field("filter", &self.filter);
118        debug_struct.field("order_by", &self.order_by);
119        if !self._unknown_fields.is_empty() {
120            debug_struct.field("_unknown_fields", &self._unknown_fields);
121        }
122        debug_struct.finish()
123    }
124}
125
126impl std::fmt::Debug for super::ListGatewaysResponse {
127    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
128        let mut debug_struct = f.debug_struct("ListGatewaysResponse");
129        debug_struct.field("gateways", &self.gateways);
130        debug_struct.field("next_page_token", &self.next_page_token);
131        debug_struct.field("unreachable_locations", &self.unreachable_locations);
132        if !self._unknown_fields.is_empty() {
133            debug_struct.field("_unknown_fields", &self._unknown_fields);
134        }
135        debug_struct.finish()
136    }
137}
138
139impl std::fmt::Debug for super::GetGatewayRequest {
140    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
141        let mut debug_struct = f.debug_struct("GetGatewayRequest");
142        debug_struct.field("name", &self.name);
143        if !self._unknown_fields.is_empty() {
144            debug_struct.field("_unknown_fields", &self._unknown_fields);
145        }
146        debug_struct.finish()
147    }
148}
149
150impl std::fmt::Debug for super::CreateGatewayRequest {
151    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152        let mut debug_struct = f.debug_struct("CreateGatewayRequest");
153        debug_struct.field("parent", &self.parent);
154        debug_struct.field("gateway_id", &self.gateway_id);
155        debug_struct.field("gateway", &self.gateway);
156        if !self._unknown_fields.is_empty() {
157            debug_struct.field("_unknown_fields", &self._unknown_fields);
158        }
159        debug_struct.finish()
160    }
161}
162
163impl std::fmt::Debug for super::UpdateGatewayRequest {
164    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
165        let mut debug_struct = f.debug_struct("UpdateGatewayRequest");
166        debug_struct.field("update_mask", &self.update_mask);
167        debug_struct.field("gateway", &self.gateway);
168        if !self._unknown_fields.is_empty() {
169            debug_struct.field("_unknown_fields", &self._unknown_fields);
170        }
171        debug_struct.finish()
172    }
173}
174
175impl std::fmt::Debug for super::DeleteGatewayRequest {
176    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
177        let mut debug_struct = f.debug_struct("DeleteGatewayRequest");
178        debug_struct.field("name", &self.name);
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::ListApisRequest {
187    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
188        let mut debug_struct = f.debug_struct("ListApisRequest");
189        debug_struct.field("parent", &self.parent);
190        debug_struct.field("page_size", &self.page_size);
191        debug_struct.field("page_token", &self.page_token);
192        debug_struct.field("filter", &self.filter);
193        debug_struct.field("order_by", &self.order_by);
194        if !self._unknown_fields.is_empty() {
195            debug_struct.field("_unknown_fields", &self._unknown_fields);
196        }
197        debug_struct.finish()
198    }
199}
200
201impl std::fmt::Debug for super::ListApisResponse {
202    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
203        let mut debug_struct = f.debug_struct("ListApisResponse");
204        debug_struct.field("apis", &self.apis);
205        debug_struct.field("next_page_token", &self.next_page_token);
206        debug_struct.field("unreachable_locations", &self.unreachable_locations);
207        if !self._unknown_fields.is_empty() {
208            debug_struct.field("_unknown_fields", &self._unknown_fields);
209        }
210        debug_struct.finish()
211    }
212}
213
214impl std::fmt::Debug for super::GetApiRequest {
215    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
216        let mut debug_struct = f.debug_struct("GetApiRequest");
217        debug_struct.field("name", &self.name);
218        if !self._unknown_fields.is_empty() {
219            debug_struct.field("_unknown_fields", &self._unknown_fields);
220        }
221        debug_struct.finish()
222    }
223}
224
225impl std::fmt::Debug for super::CreateApiRequest {
226    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
227        let mut debug_struct = f.debug_struct("CreateApiRequest");
228        debug_struct.field("parent", &self.parent);
229        debug_struct.field("api_id", &self.api_id);
230        debug_struct.field("api", &self.api);
231        if !self._unknown_fields.is_empty() {
232            debug_struct.field("_unknown_fields", &self._unknown_fields);
233        }
234        debug_struct.finish()
235    }
236}
237
238impl std::fmt::Debug for super::UpdateApiRequest {
239    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
240        let mut debug_struct = f.debug_struct("UpdateApiRequest");
241        debug_struct.field("update_mask", &self.update_mask);
242        debug_struct.field("api", &self.api);
243        if !self._unknown_fields.is_empty() {
244            debug_struct.field("_unknown_fields", &self._unknown_fields);
245        }
246        debug_struct.finish()
247    }
248}
249
250impl std::fmt::Debug for super::DeleteApiRequest {
251    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
252        let mut debug_struct = f.debug_struct("DeleteApiRequest");
253        debug_struct.field("name", &self.name);
254        if !self._unknown_fields.is_empty() {
255            debug_struct.field("_unknown_fields", &self._unknown_fields);
256        }
257        debug_struct.finish()
258    }
259}
260
261impl std::fmt::Debug for super::ListApiConfigsRequest {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("ListApiConfigsRequest");
264        debug_struct.field("parent", &self.parent);
265        debug_struct.field("page_size", &self.page_size);
266        debug_struct.field("page_token", &self.page_token);
267        debug_struct.field("filter", &self.filter);
268        debug_struct.field("order_by", &self.order_by);
269        if !self._unknown_fields.is_empty() {
270            debug_struct.field("_unknown_fields", &self._unknown_fields);
271        }
272        debug_struct.finish()
273    }
274}
275
276impl std::fmt::Debug for super::ListApiConfigsResponse {
277    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278        let mut debug_struct = f.debug_struct("ListApiConfigsResponse");
279        debug_struct.field("api_configs", &self.api_configs);
280        debug_struct.field("next_page_token", &self.next_page_token);
281        debug_struct.field("unreachable_locations", &self.unreachable_locations);
282        if !self._unknown_fields.is_empty() {
283            debug_struct.field("_unknown_fields", &self._unknown_fields);
284        }
285        debug_struct.finish()
286    }
287}
288
289impl std::fmt::Debug for super::GetApiConfigRequest {
290    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
291        let mut debug_struct = f.debug_struct("GetApiConfigRequest");
292        debug_struct.field("name", &self.name);
293        debug_struct.field("view", &self.view);
294        if !self._unknown_fields.is_empty() {
295            debug_struct.field("_unknown_fields", &self._unknown_fields);
296        }
297        debug_struct.finish()
298    }
299}
300
301impl std::fmt::Debug for super::CreateApiConfigRequest {
302    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
303        let mut debug_struct = f.debug_struct("CreateApiConfigRequest");
304        debug_struct.field("parent", &self.parent);
305        debug_struct.field("api_config_id", &self.api_config_id);
306        debug_struct.field("api_config", &self.api_config);
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::UpdateApiConfigRequest {
315    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
316        let mut debug_struct = f.debug_struct("UpdateApiConfigRequest");
317        debug_struct.field("update_mask", &self.update_mask);
318        debug_struct.field("api_config", &self.api_config);
319        if !self._unknown_fields.is_empty() {
320            debug_struct.field("_unknown_fields", &self._unknown_fields);
321        }
322        debug_struct.finish()
323    }
324}
325
326impl std::fmt::Debug for super::DeleteApiConfigRequest {
327    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
328        let mut debug_struct = f.debug_struct("DeleteApiConfigRequest");
329        debug_struct.field("name", &self.name);
330        if !self._unknown_fields.is_empty() {
331            debug_struct.field("_unknown_fields", &self._unknown_fields);
332        }
333        debug_struct.finish()
334    }
335}
336
337impl std::fmt::Debug for super::OperationMetadata {
338    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
339        let mut debug_struct = f.debug_struct("OperationMetadata");
340        debug_struct.field("create_time", &self.create_time);
341        debug_struct.field("end_time", &self.end_time);
342        debug_struct.field("target", &self.target);
343        debug_struct.field("verb", &self.verb);
344        debug_struct.field("status_message", &self.status_message);
345        debug_struct.field("requested_cancellation", &self.requested_cancellation);
346        debug_struct.field("api_version", &self.api_version);
347        debug_struct.field("diagnostics", &self.diagnostics);
348        if !self._unknown_fields.is_empty() {
349            debug_struct.field("_unknown_fields", &self._unknown_fields);
350        }
351        debug_struct.finish()
352    }
353}
354
355impl std::fmt::Debug for super::operation_metadata::Diagnostic {
356    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
357        let mut debug_struct = f.debug_struct("Diagnostic");
358        debug_struct.field("location", &self.location);
359        debug_struct.field("message", &self.message);
360        if !self._unknown_fields.is_empty() {
361            debug_struct.field("_unknown_fields", &self._unknown_fields);
362        }
363        debug_struct.finish()
364    }
365}