google_cloud_devicestreaming_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::DeviceMessage {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("DeviceMessage");
23        debug_struct.field("contents", &self.contents);
24        if !self._unknown_fields.is_empty() {
25            debug_struct.field("_unknown_fields", &self._unknown_fields);
26        }
27        debug_struct.finish()
28    }
29}
30
31impl std::fmt::Debug for super::AdbMessage {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        let mut debug_struct = f.debug_struct("AdbMessage");
34        debug_struct.field("contents", &self.contents);
35        if !self._unknown_fields.is_empty() {
36            debug_struct.field("_unknown_fields", &self._unknown_fields);
37        }
38        debug_struct.finish()
39    }
40}
41
42impl std::fmt::Debug for super::StatusUpdate {
43    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44        let mut debug_struct = f.debug_struct("StatusUpdate");
45        debug_struct.field("state", &self.state);
46        debug_struct.field("properties", &self.properties);
47        debug_struct.field("features", &self.features);
48        if !self._unknown_fields.is_empty() {
49            debug_struct.field("_unknown_fields", &self._unknown_fields);
50        }
51        debug_struct.finish()
52    }
53}
54
55impl std::fmt::Debug for super::StreamStatus {
56    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
57        let mut debug_struct = f.debug_struct("StreamStatus");
58        debug_struct.field("stream_id", &self.stream_id);
59        debug_struct.field("status", &self.status);
60        if !self._unknown_fields.is_empty() {
61            debug_struct.field("_unknown_fields", &self._unknown_fields);
62        }
63        debug_struct.finish()
64    }
65}
66
67impl std::fmt::Debug for super::Open {
68    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
69        let mut debug_struct = f.debug_struct("Open");
70        debug_struct.field("stream_id", &self.stream_id);
71        debug_struct.field("service", &self.service);
72        if !self._unknown_fields.is_empty() {
73            debug_struct.field("_unknown_fields", &self._unknown_fields);
74        }
75        debug_struct.finish()
76    }
77}
78
79impl std::fmt::Debug for super::StreamData {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        let mut debug_struct = f.debug_struct("StreamData");
82        debug_struct.field("stream_id", &self.stream_id);
83        debug_struct.field("contents", &self.contents);
84        if !self._unknown_fields.is_empty() {
85            debug_struct.field("_unknown_fields", &self._unknown_fields);
86        }
87        debug_struct.finish()
88    }
89}
90
91impl std::fmt::Debug for super::Okay {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("Okay");
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::Fail {
102    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
103        let mut debug_struct = f.debug_struct("Fail");
104        debug_struct.field("reason", &self.reason);
105        if !self._unknown_fields.is_empty() {
106            debug_struct.field("_unknown_fields", &self._unknown_fields);
107        }
108        debug_struct.finish()
109    }
110}
111
112impl std::fmt::Debug for super::Close {
113    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
114        let mut debug_struct = f.debug_struct("Close");
115        if !self._unknown_fields.is_empty() {
116            debug_struct.field("_unknown_fields", &self._unknown_fields);
117        }
118        debug_struct.finish()
119    }
120}
121
122impl std::fmt::Debug for super::CreateDeviceSessionRequest {
123    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124        let mut debug_struct = f.debug_struct("CreateDeviceSessionRequest");
125        debug_struct.field("parent", &self.parent);
126        debug_struct.field("device_session", &self.device_session);
127        debug_struct.field("device_session_id", &self.device_session_id);
128        if !self._unknown_fields.is_empty() {
129            debug_struct.field("_unknown_fields", &self._unknown_fields);
130        }
131        debug_struct.finish()
132    }
133}
134
135impl std::fmt::Debug for super::ListDeviceSessionsRequest {
136    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
137        let mut debug_struct = f.debug_struct("ListDeviceSessionsRequest");
138        debug_struct.field("parent", &self.parent);
139        debug_struct.field("page_size", &self.page_size);
140        debug_struct.field("page_token", &self.page_token);
141        debug_struct.field("filter", &self.filter);
142        if !self._unknown_fields.is_empty() {
143            debug_struct.field("_unknown_fields", &self._unknown_fields);
144        }
145        debug_struct.finish()
146    }
147}
148
149impl std::fmt::Debug for super::ListDeviceSessionsResponse {
150    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
151        let mut debug_struct = f.debug_struct("ListDeviceSessionsResponse");
152        debug_struct.field("device_sessions", &self.device_sessions);
153        debug_struct.field("next_page_token", &self.next_page_token);
154        if !self._unknown_fields.is_empty() {
155            debug_struct.field("_unknown_fields", &self._unknown_fields);
156        }
157        debug_struct.finish()
158    }
159}
160
161impl std::fmt::Debug for super::GetDeviceSessionRequest {
162    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
163        let mut debug_struct = f.debug_struct("GetDeviceSessionRequest");
164        debug_struct.field("name", &self.name);
165        if !self._unknown_fields.is_empty() {
166            debug_struct.field("_unknown_fields", &self._unknown_fields);
167        }
168        debug_struct.finish()
169    }
170}
171
172impl std::fmt::Debug for super::CancelDeviceSessionRequest {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("CancelDeviceSessionRequest");
175        debug_struct.field("name", &self.name);
176        if !self._unknown_fields.is_empty() {
177            debug_struct.field("_unknown_fields", &self._unknown_fields);
178        }
179        debug_struct.finish()
180    }
181}
182
183impl std::fmt::Debug for super::UpdateDeviceSessionRequest {
184    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
185        let mut debug_struct = f.debug_struct("UpdateDeviceSessionRequest");
186        debug_struct.field("device_session", &self.device_session);
187        debug_struct.field("update_mask", &self.update_mask);
188        if !self._unknown_fields.is_empty() {
189            debug_struct.field("_unknown_fields", &self._unknown_fields);
190        }
191        debug_struct.finish()
192    }
193}
194
195impl std::fmt::Debug for super::DeviceSession {
196    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
197        let mut debug_struct = f.debug_struct("DeviceSession");
198        debug_struct.field("name", &self.name);
199        debug_struct.field("display_name", &self.display_name);
200        debug_struct.field("state", &self.state);
201        debug_struct.field("state_histories", &self.state_histories);
202        debug_struct.field("inactivity_timeout", &self.inactivity_timeout);
203        debug_struct.field("create_time", &self.create_time);
204        debug_struct.field("active_start_time", &self.active_start_time);
205        debug_struct.field("android_device", &self.android_device);
206        debug_struct.field("expiration", &self.expiration);
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::device_session::SessionStateEvent {
215    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
216        let mut debug_struct = f.debug_struct("SessionStateEvent");
217        debug_struct.field("session_state", &self.session_state);
218        debug_struct.field("event_time", &self.event_time);
219        debug_struct.field("state_message", &self.state_message);
220        if !self._unknown_fields.is_empty() {
221            debug_struct.field("_unknown_fields", &self._unknown_fields);
222        }
223        debug_struct.finish()
224    }
225}
226
227impl std::fmt::Debug for super::AndroidDevice {
228    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
229        let mut debug_struct = f.debug_struct("AndroidDevice");
230        debug_struct.field("android_model_id", &self.android_model_id);
231        debug_struct.field("android_version_id", &self.android_version_id);
232        debug_struct.field("locale", &self.locale);
233        debug_struct.field("orientation", &self.orientation);
234        if !self._unknown_fields.is_empty() {
235            debug_struct.field("_unknown_fields", &self._unknown_fields);
236        }
237        debug_struct.finish()
238    }
239}