Skip to main content

google_cloud_webrisk_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::ComputeThreatListDiffRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ComputeThreatListDiffRequest");
23        debug_struct.field("threat_type", &self.threat_type);
24        debug_struct.field("version_token", &self.version_token);
25        debug_struct.field("constraints", &self.constraints);
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::compute_threat_list_diff_request::Constraints {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("Constraints");
36        debug_struct.field("max_diff_entries", &self.max_diff_entries);
37        debug_struct.field("max_database_entries", &self.max_database_entries);
38        debug_struct.field("supported_compressions", &self.supported_compressions);
39        if !self._unknown_fields.is_empty() {
40            debug_struct.field("_unknown_fields", &self._unknown_fields);
41        }
42        debug_struct.finish()
43    }
44}
45
46impl std::fmt::Debug for super::ComputeThreatListDiffResponse {
47    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48        let mut debug_struct = f.debug_struct("ComputeThreatListDiffResponse");
49        debug_struct.field("response_type", &self.response_type);
50        debug_struct.field("additions", &self.additions);
51        debug_struct.field("removals", &self.removals);
52        debug_struct.field("new_version_token", &self.new_version_token);
53        debug_struct.field("checksum", &self.checksum);
54        debug_struct.field("recommended_next_diff", &self.recommended_next_diff);
55        if !self._unknown_fields.is_empty() {
56            debug_struct.field("_unknown_fields", &self._unknown_fields);
57        }
58        debug_struct.finish()
59    }
60}
61
62impl std::fmt::Debug for super::compute_threat_list_diff_response::Checksum {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        let mut debug_struct = f.debug_struct("Checksum");
65        debug_struct.field("sha256", &self.sha256);
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::SearchUrisRequest {
74    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75        let mut debug_struct = f.debug_struct("SearchUrisRequest");
76        debug_struct.field("uri", &self.uri);
77        debug_struct.field("threat_types", &self.threat_types);
78        if !self._unknown_fields.is_empty() {
79            debug_struct.field("_unknown_fields", &self._unknown_fields);
80        }
81        debug_struct.finish()
82    }
83}
84
85impl std::fmt::Debug for super::SearchUrisResponse {
86    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87        let mut debug_struct = f.debug_struct("SearchUrisResponse");
88        debug_struct.field("threat", &self.threat);
89        if !self._unknown_fields.is_empty() {
90            debug_struct.field("_unknown_fields", &self._unknown_fields);
91        }
92        debug_struct.finish()
93    }
94}
95
96impl std::fmt::Debug for super::search_uris_response::ThreatUri {
97    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98        let mut debug_struct = f.debug_struct("ThreatUri");
99        debug_struct.field("threat_types", &self.threat_types);
100        debug_struct.field("expire_time", &self.expire_time);
101        if !self._unknown_fields.is_empty() {
102            debug_struct.field("_unknown_fields", &self._unknown_fields);
103        }
104        debug_struct.finish()
105    }
106}
107
108impl std::fmt::Debug for super::SearchHashesRequest {
109    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
110        let mut debug_struct = f.debug_struct("SearchHashesRequest");
111        debug_struct.field("hash_prefix", &self.hash_prefix);
112        debug_struct.field("threat_types", &self.threat_types);
113        if !self._unknown_fields.is_empty() {
114            debug_struct.field("_unknown_fields", &self._unknown_fields);
115        }
116        debug_struct.finish()
117    }
118}
119
120impl std::fmt::Debug for super::SearchHashesResponse {
121    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
122        let mut debug_struct = f.debug_struct("SearchHashesResponse");
123        debug_struct.field("threats", &self.threats);
124        debug_struct.field("negative_expire_time", &self.negative_expire_time);
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::search_hashes_response::ThreatHash {
133    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134        let mut debug_struct = f.debug_struct("ThreatHash");
135        debug_struct.field("threat_types", &self.threat_types);
136        debug_struct.field("hash", &self.hash);
137        debug_struct.field("expire_time", &self.expire_time);
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::ThreatEntryAdditions {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("ThreatEntryAdditions");
148        debug_struct.field("raw_hashes", &self.raw_hashes);
149        debug_struct.field("rice_hashes", &self.rice_hashes);
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::ThreatEntryRemovals {
158    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
159        let mut debug_struct = f.debug_struct("ThreatEntryRemovals");
160        debug_struct.field("raw_indices", &self.raw_indices);
161        debug_struct.field("rice_indices", &self.rice_indices);
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::RawIndices {
170    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171        let mut debug_struct = f.debug_struct("RawIndices");
172        debug_struct.field("indices", &self.indices);
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::RawHashes {
181    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
182        let mut debug_struct = f.debug_struct("RawHashes");
183        debug_struct.field("prefix_size", &self.prefix_size);
184        debug_struct.field("raw_hashes", &self.raw_hashes);
185        if !self._unknown_fields.is_empty() {
186            debug_struct.field("_unknown_fields", &self._unknown_fields);
187        }
188        debug_struct.finish()
189    }
190}
191
192impl std::fmt::Debug for super::RiceDeltaEncoding {
193    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
194        let mut debug_struct = f.debug_struct("RiceDeltaEncoding");
195        debug_struct.field("first_value", &self.first_value);
196        debug_struct.field("rice_parameter", &self.rice_parameter);
197        debug_struct.field("entry_count", &self.entry_count);
198        debug_struct.field("encoded_data", &self.encoded_data);
199        if !self._unknown_fields.is_empty() {
200            debug_struct.field("_unknown_fields", &self._unknown_fields);
201        }
202        debug_struct.finish()
203    }
204}
205
206impl std::fmt::Debug for super::Submission {
207    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
208        let mut debug_struct = f.debug_struct("Submission");
209        debug_struct.field("uri", &self.uri);
210        debug_struct.field("threat_types", &self.threat_types);
211        if !self._unknown_fields.is_empty() {
212            debug_struct.field("_unknown_fields", &self._unknown_fields);
213        }
214        debug_struct.finish()
215    }
216}
217
218impl std::fmt::Debug for super::ThreatInfo {
219    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
220        let mut debug_struct = f.debug_struct("ThreatInfo");
221        debug_struct.field("abuse_type", &self.abuse_type);
222        debug_struct.field("threat_confidence", &self.threat_confidence);
223        debug_struct.field("threat_justification", &self.threat_justification);
224        if !self._unknown_fields.is_empty() {
225            debug_struct.field("_unknown_fields", &self._unknown_fields);
226        }
227        debug_struct.finish()
228    }
229}
230
231impl std::fmt::Debug for super::threat_info::Confidence {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("Confidence");
234        debug_struct.field("value", &self.value);
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::threat_info::ThreatJustification {
243    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
244        let mut debug_struct = f.debug_struct("ThreatJustification");
245        debug_struct.field("labels", &self.labels);
246        debug_struct.field("comments", &self.comments);
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::ThreatDiscovery {
255    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
256        let mut debug_struct = f.debug_struct("ThreatDiscovery");
257        debug_struct.field("platform", &self.platform);
258        debug_struct.field("region_codes", &self.region_codes);
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::CreateSubmissionRequest {
267    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
268        let mut debug_struct = f.debug_struct("CreateSubmissionRequest");
269        debug_struct.field("parent", &self.parent);
270        debug_struct.field("submission", &self.submission);
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::SubmitUriRequest {
279    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
280        let mut debug_struct = f.debug_struct("SubmitUriRequest");
281        debug_struct.field("parent", &self.parent);
282        debug_struct.field("submission", &self.submission);
283        debug_struct.field("threat_info", &self.threat_info);
284        debug_struct.field("threat_discovery", &self.threat_discovery);
285        if !self._unknown_fields.is_empty() {
286            debug_struct.field("_unknown_fields", &self._unknown_fields);
287        }
288        debug_struct.finish()
289    }
290}
291
292impl std::fmt::Debug for super::SubmitUriMetadata {
293    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
294        let mut debug_struct = f.debug_struct("SubmitUriMetadata");
295        debug_struct.field("state", &self.state);
296        debug_struct.field("create_time", &self.create_time);
297        debug_struct.field("update_time", &self.update_time);
298        if !self._unknown_fields.is_empty() {
299            debug_struct.field("_unknown_fields", &self._unknown_fields);
300        }
301        debug_struct.finish()
302    }
303}