Skip to main content

google_cloud_servicedirectory_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::Endpoint {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Endpoint");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("address", &self.address);
25        debug_struct.field("port", &self.port);
26        debug_struct.field("annotations", &self.annotations);
27        debug_struct.field("network", &self.network);
28        debug_struct.field("uid", &self.uid);
29        if !self._unknown_fields.is_empty() {
30            debug_struct.field("_unknown_fields", &self._unknown_fields);
31        }
32        debug_struct.finish()
33    }
34}
35
36impl std::fmt::Debug for super::ResolveServiceRequest {
37    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
38        let mut debug_struct = f.debug_struct("ResolveServiceRequest");
39        debug_struct.field("name", &self.name);
40        debug_struct.field("max_endpoints", &self.max_endpoints);
41        debug_struct.field("endpoint_filter", &self.endpoint_filter);
42        if !self._unknown_fields.is_empty() {
43            debug_struct.field("_unknown_fields", &self._unknown_fields);
44        }
45        debug_struct.finish()
46    }
47}
48
49impl std::fmt::Debug for super::ResolveServiceResponse {
50    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
51        let mut debug_struct = f.debug_struct("ResolveServiceResponse");
52        debug_struct.field("service", &self.service);
53        if !self._unknown_fields.is_empty() {
54            debug_struct.field("_unknown_fields", &self._unknown_fields);
55        }
56        debug_struct.finish()
57    }
58}
59
60impl std::fmt::Debug for super::Namespace {
61    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
62        let mut debug_struct = f.debug_struct("Namespace");
63        debug_struct.field("name", &self.name);
64        debug_struct.field("labels", &self.labels);
65        debug_struct.field("uid", &self.uid);
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::CreateNamespaceRequest {
74    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75        let mut debug_struct = f.debug_struct("CreateNamespaceRequest");
76        debug_struct.field("parent", &self.parent);
77        debug_struct.field("namespace_id", &self.namespace_id);
78        debug_struct.field("namespace", &self.namespace);
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::ListNamespacesRequest {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("ListNamespacesRequest");
89        debug_struct.field("parent", &self.parent);
90        debug_struct.field("page_size", &self.page_size);
91        debug_struct.field("page_token", &self.page_token);
92        debug_struct.field("filter", &self.filter);
93        debug_struct.field("order_by", &self.order_by);
94        if !self._unknown_fields.is_empty() {
95            debug_struct.field("_unknown_fields", &self._unknown_fields);
96        }
97        debug_struct.finish()
98    }
99}
100
101impl std::fmt::Debug for super::ListNamespacesResponse {
102    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
103        let mut debug_struct = f.debug_struct("ListNamespacesResponse");
104        debug_struct.field("namespaces", &self.namespaces);
105        debug_struct.field("next_page_token", &self.next_page_token);
106        if !self._unknown_fields.is_empty() {
107            debug_struct.field("_unknown_fields", &self._unknown_fields);
108        }
109        debug_struct.finish()
110    }
111}
112
113impl std::fmt::Debug for super::GetNamespaceRequest {
114    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
115        let mut debug_struct = f.debug_struct("GetNamespaceRequest");
116        debug_struct.field("name", &self.name);
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::UpdateNamespaceRequest {
125    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126        let mut debug_struct = f.debug_struct("UpdateNamespaceRequest");
127        debug_struct.field("namespace", &self.namespace);
128        debug_struct.field("update_mask", &self.update_mask);
129        if !self._unknown_fields.is_empty() {
130            debug_struct.field("_unknown_fields", &self._unknown_fields);
131        }
132        debug_struct.finish()
133    }
134}
135
136impl std::fmt::Debug for super::DeleteNamespaceRequest {
137    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
138        let mut debug_struct = f.debug_struct("DeleteNamespaceRequest");
139        debug_struct.field("name", &self.name);
140        if !self._unknown_fields.is_empty() {
141            debug_struct.field("_unknown_fields", &self._unknown_fields);
142        }
143        debug_struct.finish()
144    }
145}
146
147impl std::fmt::Debug for super::CreateServiceRequest {
148    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
149        let mut debug_struct = f.debug_struct("CreateServiceRequest");
150        debug_struct.field("parent", &self.parent);
151        debug_struct.field("service_id", &self.service_id);
152        debug_struct.field("service", &self.service);
153        if !self._unknown_fields.is_empty() {
154            debug_struct.field("_unknown_fields", &self._unknown_fields);
155        }
156        debug_struct.finish()
157    }
158}
159
160impl std::fmt::Debug for super::ListServicesRequest {
161    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162        let mut debug_struct = f.debug_struct("ListServicesRequest");
163        debug_struct.field("parent", &self.parent);
164        debug_struct.field("page_size", &self.page_size);
165        debug_struct.field("page_token", &self.page_token);
166        debug_struct.field("filter", &self.filter);
167        debug_struct.field("order_by", &self.order_by);
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::ListServicesResponse {
176    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
177        let mut debug_struct = f.debug_struct("ListServicesResponse");
178        debug_struct.field("services", &self.services);
179        debug_struct.field("next_page_token", &self.next_page_token);
180        if !self._unknown_fields.is_empty() {
181            debug_struct.field("_unknown_fields", &self._unknown_fields);
182        }
183        debug_struct.finish()
184    }
185}
186
187impl std::fmt::Debug for super::GetServiceRequest {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("GetServiceRequest");
190        debug_struct.field("name", &self.name);
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::UpdateServiceRequest {
199    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
200        let mut debug_struct = f.debug_struct("UpdateServiceRequest");
201        debug_struct.field("service", &self.service);
202        debug_struct.field("update_mask", &self.update_mask);
203        if !self._unknown_fields.is_empty() {
204            debug_struct.field("_unknown_fields", &self._unknown_fields);
205        }
206        debug_struct.finish()
207    }
208}
209
210impl std::fmt::Debug for super::DeleteServiceRequest {
211    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
212        let mut debug_struct = f.debug_struct("DeleteServiceRequest");
213        debug_struct.field("name", &self.name);
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::CreateEndpointRequest {
222    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
223        let mut debug_struct = f.debug_struct("CreateEndpointRequest");
224        debug_struct.field("parent", &self.parent);
225        debug_struct.field("endpoint_id", &self.endpoint_id);
226        debug_struct.field("endpoint", &self.endpoint);
227        if !self._unknown_fields.is_empty() {
228            debug_struct.field("_unknown_fields", &self._unknown_fields);
229        }
230        debug_struct.finish()
231    }
232}
233
234impl std::fmt::Debug for super::ListEndpointsRequest {
235    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
236        let mut debug_struct = f.debug_struct("ListEndpointsRequest");
237        debug_struct.field("parent", &self.parent);
238        debug_struct.field("page_size", &self.page_size);
239        debug_struct.field("page_token", &self.page_token);
240        debug_struct.field("filter", &self.filter);
241        debug_struct.field("order_by", &self.order_by);
242        if !self._unknown_fields.is_empty() {
243            debug_struct.field("_unknown_fields", &self._unknown_fields);
244        }
245        debug_struct.finish()
246    }
247}
248
249impl std::fmt::Debug for super::ListEndpointsResponse {
250    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
251        let mut debug_struct = f.debug_struct("ListEndpointsResponse");
252        debug_struct.field("endpoints", &self.endpoints);
253        debug_struct.field("next_page_token", &self.next_page_token);
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::GetEndpointRequest {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("GetEndpointRequest");
264        debug_struct.field("name", &self.name);
265        if !self._unknown_fields.is_empty() {
266            debug_struct.field("_unknown_fields", &self._unknown_fields);
267        }
268        debug_struct.finish()
269    }
270}
271
272impl std::fmt::Debug for super::UpdateEndpointRequest {
273    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
274        let mut debug_struct = f.debug_struct("UpdateEndpointRequest");
275        debug_struct.field("endpoint", &self.endpoint);
276        debug_struct.field("update_mask", &self.update_mask);
277        if !self._unknown_fields.is_empty() {
278            debug_struct.field("_unknown_fields", &self._unknown_fields);
279        }
280        debug_struct.finish()
281    }
282}
283
284impl std::fmt::Debug for super::DeleteEndpointRequest {
285    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
286        let mut debug_struct = f.debug_struct("DeleteEndpointRequest");
287        debug_struct.field("name", &self.name);
288        if !self._unknown_fields.is_empty() {
289            debug_struct.field("_unknown_fields", &self._unknown_fields);
290        }
291        debug_struct.finish()
292    }
293}
294
295impl std::fmt::Debug for super::Service {
296    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
297        let mut debug_struct = f.debug_struct("Service");
298        debug_struct.field("name", &self.name);
299        debug_struct.field("annotations", &self.annotations);
300        debug_struct.field("endpoints", &self.endpoints);
301        debug_struct.field("uid", &self.uid);
302        if !self._unknown_fields.is_empty() {
303            debug_struct.field("_unknown_fields", &self._unknown_fields);
304        }
305        debug_struct.finish()
306    }
307}