google_cloud_timeseriesinsights_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::BigqueryMapping {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("BigqueryMapping");
23        debug_struct.field("timestamp_column", &self.timestamp_column);
24        debug_struct.field("group_id_column", &self.group_id_column);
25        debug_struct.field("dimension_column", &self.dimension_column);
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::DataSource {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("DataSource");
36        debug_struct.field("uri", &self.uri);
37        debug_struct.field("bq_mapping", &self.bq_mapping);
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::DataSet {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("DataSet");
48        debug_struct.field("name", &self.name);
49        debug_struct.field("data_names", &self.data_names);
50        debug_struct.field("data_sources", &self.data_sources);
51        debug_struct.field("state", &self.state);
52        debug_struct.field("status", &self.status);
53        debug_struct.field("ttl", &self.ttl);
54        if !self._unknown_fields.is_empty() {
55            debug_struct.field("_unknown_fields", &self._unknown_fields);
56        }
57        debug_struct.finish()
58    }
59}
60
61impl std::fmt::Debug for super::EventDimension {
62    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
63        let mut debug_struct = f.debug_struct("EventDimension");
64        debug_struct.field("name", &self.name);
65        debug_struct.field("value", &self.value);
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::Event {
74    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75        let mut debug_struct = f.debug_struct("Event");
76        debug_struct.field("dimensions", &self.dimensions);
77        debug_struct.field("group_id", &self.group_id);
78        debug_struct.field("event_time", &self.event_time);
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::AppendEventsRequest {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("AppendEventsRequest");
89        debug_struct.field("events", &self.events);
90        debug_struct.field("dataset", &self.dataset);
91        if !self._unknown_fields.is_empty() {
92            debug_struct.field("_unknown_fields", &self._unknown_fields);
93        }
94        debug_struct.finish()
95    }
96}
97
98impl std::fmt::Debug for super::AppendEventsResponse {
99    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
100        let mut debug_struct = f.debug_struct("AppendEventsResponse");
101        debug_struct.field("dropped_events", &self.dropped_events);
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::CreateDataSetRequest {
110    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
111        let mut debug_struct = f.debug_struct("CreateDataSetRequest");
112        debug_struct.field("parent", &self.parent);
113        debug_struct.field("dataset", &self.dataset);
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::DeleteDataSetRequest {
122    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
123        let mut debug_struct = f.debug_struct("DeleteDataSetRequest");
124        debug_struct.field("name", &self.name);
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::ListDataSetsRequest {
133    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134        let mut debug_struct = f.debug_struct("ListDataSetsRequest");
135        debug_struct.field("parent", &self.parent);
136        debug_struct.field("page_size", &self.page_size);
137        debug_struct.field("page_token", &self.page_token);
138        if !self._unknown_fields.is_empty() {
139            debug_struct.field("_unknown_fields", &self._unknown_fields);
140        }
141        debug_struct.finish()
142    }
143}
144
145impl std::fmt::Debug for super::ListDataSetsResponse {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("ListDataSetsResponse");
148        debug_struct.field("datasets", &self.datasets);
149        debug_struct.field("next_page_token", &self.next_page_token);
150        if !self._unknown_fields.is_empty() {
151            debug_struct.field("_unknown_fields", &self._unknown_fields);
152        }
153        debug_struct.finish()
154    }
155}
156
157impl std::fmt::Debug for super::PinnedDimension {
158    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
159        let mut debug_struct = f.debug_struct("PinnedDimension");
160        debug_struct.field("name", &self.name);
161        debug_struct.field("value", &self.value);
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::ForecastParams {
170    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171        let mut debug_struct = f.debug_struct("ForecastParams");
172        debug_struct.field("noise_threshold", &self.noise_threshold);
173        debug_struct.field("seasonality_hint", &self.seasonality_hint);
174        debug_struct.field("horizon_duration", &self.horizon_duration);
175        if !self._unknown_fields.is_empty() {
176            debug_struct.field("_unknown_fields", &self._unknown_fields);
177        }
178        debug_struct.finish()
179    }
180}
181
182impl std::fmt::Debug for super::TimeseriesPoint {
183    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
184        let mut debug_struct = f.debug_struct("TimeseriesPoint");
185        debug_struct.field("time", &self.time);
186        debug_struct.field("value", &self.value);
187        if !self._unknown_fields.is_empty() {
188            debug_struct.field("_unknown_fields", &self._unknown_fields);
189        }
190        debug_struct.finish()
191    }
192}
193
194impl std::fmt::Debug for super::Timeseries {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("Timeseries");
197        debug_struct.field("point", &self.point);
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::EvaluatedSlice {
206    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
207        let mut debug_struct = f.debug_struct("EvaluatedSlice");
208        debug_struct.field("dimensions", &self.dimensions);
209        debug_struct.field("detection_point_actual", &self.detection_point_actual);
210        debug_struct.field("detection_point_forecast", &self.detection_point_forecast);
211        debug_struct.field("expected_deviation", &self.expected_deviation);
212        debug_struct.field("anomaly_score", &self.anomaly_score);
213        debug_struct.field("history", &self.history);
214        debug_struct.field("forecast", &self.forecast);
215        debug_struct.field("status", &self.status);
216        if !self._unknown_fields.is_empty() {
217            debug_struct.field("_unknown_fields", &self._unknown_fields);
218        }
219        debug_struct.finish()
220    }
221}
222
223impl std::fmt::Debug for super::SlicingParams {
224    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
225        let mut debug_struct = f.debug_struct("SlicingParams");
226        debug_struct.field("dimension_names", &self.dimension_names);
227        debug_struct.field("pinned_dimensions", &self.pinned_dimensions);
228        if !self._unknown_fields.is_empty() {
229            debug_struct.field("_unknown_fields", &self._unknown_fields);
230        }
231        debug_struct.finish()
232    }
233}
234
235impl std::fmt::Debug for super::TimeseriesParams {
236    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
237        let mut debug_struct = f.debug_struct("TimeseriesParams");
238        debug_struct.field("forecast_history", &self.forecast_history);
239        debug_struct.field("granularity", &self.granularity);
240        debug_struct.field("metric", &self.metric);
241        debug_struct.field("metric_aggregation_method", &self.metric_aggregation_method);
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::QueryDataSetRequest {
250    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
251        let mut debug_struct = f.debug_struct("QueryDataSetRequest");
252        debug_struct.field("name", &self.name);
253        debug_struct.field("detection_time", &self.detection_time);
254        debug_struct.field("num_returned_slices", &self.num_returned_slices);
255        debug_struct.field("slicing_params", &self.slicing_params);
256        debug_struct.field("timeseries_params", &self.timeseries_params);
257        debug_struct.field("forecast_params", &self.forecast_params);
258        debug_struct.field("return_timeseries", &self.return_timeseries);
259        if !self._unknown_fields.is_empty() {
260            debug_struct.field("_unknown_fields", &self._unknown_fields);
261        }
262        debug_struct.finish()
263    }
264}
265
266impl std::fmt::Debug for super::QueryDataSetResponse {
267    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
268        let mut debug_struct = f.debug_struct("QueryDataSetResponse");
269        debug_struct.field("name", &self.name);
270        debug_struct.field("slices", &self.slices);
271        if !self._unknown_fields.is_empty() {
272            debug_struct.field("_unknown_fields", &self._unknown_fields);
273        }
274        debug_struct.finish()
275    }
276}
277
278impl std::fmt::Debug for super::EvaluateSliceRequest {
279    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
280        let mut debug_struct = f.debug_struct("EvaluateSliceRequest");
281        debug_struct.field("dataset", &self.dataset);
282        debug_struct.field("pinned_dimensions", &self.pinned_dimensions);
283        debug_struct.field("detection_time", &self.detection_time);
284        debug_struct.field("timeseries_params", &self.timeseries_params);
285        debug_struct.field("forecast_params", &self.forecast_params);
286        if !self._unknown_fields.is_empty() {
287            debug_struct.field("_unknown_fields", &self._unknown_fields);
288        }
289        debug_struct.finish()
290    }
291}
292
293impl std::fmt::Debug for super::EvaluateTimeseriesRequest {
294    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
295        let mut debug_struct = f.debug_struct("EvaluateTimeseriesRequest");
296        debug_struct.field("parent", &self.parent);
297        debug_struct.field("timeseries", &self.timeseries);
298        debug_struct.field("granularity", &self.granularity);
299        debug_struct.field("forecast_params", &self.forecast_params);
300        if !self._unknown_fields.is_empty() {
301            debug_struct.field("_unknown_fields", &self._unknown_fields);
302        }
303        debug_struct.finish()
304    }
305}