google_cloud_memcache_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::Instance {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Instance");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("display_name", &self.display_name);
25        debug_struct.field("labels", &self.labels);
26        debug_struct.field("authorized_network", &self.authorized_network);
27        debug_struct.field("zones", &self.zones);
28        debug_struct.field("node_count", &self.node_count);
29        debug_struct.field("node_config", &self.node_config);
30        debug_struct.field("memcache_version", &self.memcache_version);
31        debug_struct.field("parameters", &self.parameters);
32        debug_struct.field("memcache_nodes", &self.memcache_nodes);
33        debug_struct.field("create_time", &self.create_time);
34        debug_struct.field("update_time", &self.update_time);
35        debug_struct.field("state", &self.state);
36        debug_struct.field("memcache_full_version", &self.memcache_full_version);
37        debug_struct.field("instance_messages", &self.instance_messages);
38        debug_struct.field("discovery_endpoint", &self.discovery_endpoint);
39        debug_struct.field("maintenance_policy", &self.maintenance_policy);
40        debug_struct.field("maintenance_schedule", &self.maintenance_schedule);
41        if !self._unknown_fields.is_empty() {
42            debug_struct.field("_unknown_fields", &self._unknown_fields);
43        }
44        debug_struct.finish()
45    }
46}
47
48impl std::fmt::Debug for super::instance::NodeConfig {
49    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50        let mut debug_struct = f.debug_struct("NodeConfig");
51        debug_struct.field("cpu_count", &self.cpu_count);
52        debug_struct.field("memory_size_mb", &self.memory_size_mb);
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::instance::Node {
61    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
62        let mut debug_struct = f.debug_struct("Node");
63        debug_struct.field("node_id", &self.node_id);
64        debug_struct.field("zone", &self.zone);
65        debug_struct.field("state", &self.state);
66        debug_struct.field("host", &self.host);
67        debug_struct.field("port", &self.port);
68        debug_struct.field("parameters", &self.parameters);
69        if !self._unknown_fields.is_empty() {
70            debug_struct.field("_unknown_fields", &self._unknown_fields);
71        }
72        debug_struct.finish()
73    }
74}
75
76impl std::fmt::Debug for super::instance::InstanceMessage {
77    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
78        let mut debug_struct = f.debug_struct("InstanceMessage");
79        debug_struct.field("code", &self.code);
80        debug_struct.field("message", &self.message);
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::MaintenancePolicy {
89    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
90        let mut debug_struct = f.debug_struct("MaintenancePolicy");
91        debug_struct.field("create_time", &self.create_time);
92        debug_struct.field("update_time", &self.update_time);
93        debug_struct.field("description", &self.description);
94        debug_struct.field("weekly_maintenance_window", &self.weekly_maintenance_window);
95        if !self._unknown_fields.is_empty() {
96            debug_struct.field("_unknown_fields", &self._unknown_fields);
97        }
98        debug_struct.finish()
99    }
100}
101
102impl std::fmt::Debug for super::WeeklyMaintenanceWindow {
103    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
104        let mut debug_struct = f.debug_struct("WeeklyMaintenanceWindow");
105        debug_struct.field("day", &self.day);
106        debug_struct.field("start_time", &self.start_time);
107        debug_struct.field("duration", &self.duration);
108        if !self._unknown_fields.is_empty() {
109            debug_struct.field("_unknown_fields", &self._unknown_fields);
110        }
111        debug_struct.finish()
112    }
113}
114
115impl std::fmt::Debug for super::MaintenanceSchedule {
116    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
117        let mut debug_struct = f.debug_struct("MaintenanceSchedule");
118        debug_struct.field("start_time", &self.start_time);
119        debug_struct.field("end_time", &self.end_time);
120        debug_struct.field("schedule_deadline_time", &self.schedule_deadline_time);
121        if !self._unknown_fields.is_empty() {
122            debug_struct.field("_unknown_fields", &self._unknown_fields);
123        }
124        debug_struct.finish()
125    }
126}
127
128impl std::fmt::Debug for super::RescheduleMaintenanceRequest {
129    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130        let mut debug_struct = f.debug_struct("RescheduleMaintenanceRequest");
131        debug_struct.field("instance", &self.instance);
132        debug_struct.field("reschedule_type", &self.reschedule_type);
133        debug_struct.field("schedule_time", &self.schedule_time);
134        if !self._unknown_fields.is_empty() {
135            debug_struct.field("_unknown_fields", &self._unknown_fields);
136        }
137        debug_struct.finish()
138    }
139}
140
141impl std::fmt::Debug for super::ListInstancesRequest {
142    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
143        let mut debug_struct = f.debug_struct("ListInstancesRequest");
144        debug_struct.field("parent", &self.parent);
145        debug_struct.field("page_size", &self.page_size);
146        debug_struct.field("page_token", &self.page_token);
147        debug_struct.field("filter", &self.filter);
148        debug_struct.field("order_by", &self.order_by);
149        if !self._unknown_fields.is_empty() {
150            debug_struct.field("_unknown_fields", &self._unknown_fields);
151        }
152        debug_struct.finish()
153    }
154}
155
156impl std::fmt::Debug for super::ListInstancesResponse {
157    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
158        let mut debug_struct = f.debug_struct("ListInstancesResponse");
159        debug_struct.field("instances", &self.instances);
160        debug_struct.field("next_page_token", &self.next_page_token);
161        debug_struct.field("unreachable", &self.unreachable);
162        if !self._unknown_fields.is_empty() {
163            debug_struct.field("_unknown_fields", &self._unknown_fields);
164        }
165        debug_struct.finish()
166    }
167}
168
169impl std::fmt::Debug for super::GetInstanceRequest {
170    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171        let mut debug_struct = f.debug_struct("GetInstanceRequest");
172        debug_struct.field("name", &self.name);
173        if !self._unknown_fields.is_empty() {
174            debug_struct.field("_unknown_fields", &self._unknown_fields);
175        }
176        debug_struct.finish()
177    }
178}
179
180impl std::fmt::Debug for super::CreateInstanceRequest {
181    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
182        let mut debug_struct = f.debug_struct("CreateInstanceRequest");
183        debug_struct.field("parent", &self.parent);
184        debug_struct.field("instance_id", &self.instance_id);
185        debug_struct.field("instance", &self.instance);
186        if !self._unknown_fields.is_empty() {
187            debug_struct.field("_unknown_fields", &self._unknown_fields);
188        }
189        debug_struct.finish()
190    }
191}
192
193impl std::fmt::Debug for super::UpdateInstanceRequest {
194    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
195        let mut debug_struct = f.debug_struct("UpdateInstanceRequest");
196        debug_struct.field("update_mask", &self.update_mask);
197        debug_struct.field("instance", &self.instance);
198        if !self._unknown_fields.is_empty() {
199            debug_struct.field("_unknown_fields", &self._unknown_fields);
200        }
201        debug_struct.finish()
202    }
203}
204
205impl std::fmt::Debug for super::DeleteInstanceRequest {
206    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
207        let mut debug_struct = f.debug_struct("DeleteInstanceRequest");
208        debug_struct.field("name", &self.name);
209        if !self._unknown_fields.is_empty() {
210            debug_struct.field("_unknown_fields", &self._unknown_fields);
211        }
212        debug_struct.finish()
213    }
214}
215
216impl std::fmt::Debug for super::ApplyParametersRequest {
217    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
218        let mut debug_struct = f.debug_struct("ApplyParametersRequest");
219        debug_struct.field("name", &self.name);
220        debug_struct.field("node_ids", &self.node_ids);
221        debug_struct.field("apply_all", &self.apply_all);
222        if !self._unknown_fields.is_empty() {
223            debug_struct.field("_unknown_fields", &self._unknown_fields);
224        }
225        debug_struct.finish()
226    }
227}
228
229impl std::fmt::Debug for super::UpdateParametersRequest {
230    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
231        let mut debug_struct = f.debug_struct("UpdateParametersRequest");
232        debug_struct.field("name", &self.name);
233        debug_struct.field("update_mask", &self.update_mask);
234        debug_struct.field("parameters", &self.parameters);
235        if !self._unknown_fields.is_empty() {
236            debug_struct.field("_unknown_fields", &self._unknown_fields);
237        }
238        debug_struct.finish()
239    }
240}
241
242impl std::fmt::Debug for super::MemcacheParameters {
243    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
244        let mut debug_struct = f.debug_struct("MemcacheParameters");
245        debug_struct.field("id", &self.id);
246        debug_struct.field("params", &self.params);
247        if !self._unknown_fields.is_empty() {
248            debug_struct.field("_unknown_fields", &self._unknown_fields);
249        }
250        debug_struct.finish()
251    }
252}
253
254impl std::fmt::Debug for super::OperationMetadata {
255    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
256        let mut debug_struct = f.debug_struct("OperationMetadata");
257        debug_struct.field("create_time", &self.create_time);
258        debug_struct.field("end_time", &self.end_time);
259        debug_struct.field("target", &self.target);
260        debug_struct.field("verb", &self.verb);
261        debug_struct.field("status_detail", &self.status_detail);
262        debug_struct.field("cancel_requested", &self.cancel_requested);
263        debug_struct.field("api_version", &self.api_version);
264        if !self._unknown_fields.is_empty() {
265            debug_struct.field("_unknown_fields", &self._unknown_fields);
266        }
267        debug_struct.finish()
268    }
269}
270
271impl std::fmt::Debug for super::LocationMetadata {
272    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
273        let mut debug_struct = f.debug_struct("LocationMetadata");
274        debug_struct.field("available_zones", &self.available_zones);
275        if !self._unknown_fields.is_empty() {
276            debug_struct.field("_unknown_fields", &self._unknown_fields);
277        }
278        debug_struct.finish()
279    }
280}
281
282impl std::fmt::Debug for super::ZoneMetadata {
283    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
284        let mut debug_struct = f.debug_struct("ZoneMetadata");
285        if !self._unknown_fields.is_empty() {
286            debug_struct.field("_unknown_fields", &self._unknown_fields);
287        }
288        debug_struct.finish()
289    }
290}