google_cloud_support_v2/stub.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//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::CaseAttachmentService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::CaseAttachmentService`. In other use-cases, application developers only
33/// use `client::CaseAttachmentService` and need not be concerned with this trait or
34/// its implementations.
35///
36/// Services gain new RPCs routinely. Consequently, this trait gains new methods
37/// too. To avoid breaking applications the trait provides a default
38/// implementation of each method. Most of these implementations just return an
39/// error.
40pub trait CaseAttachmentService: std::fmt::Debug + Send + Sync {
41 /// Implements [super::client::CaseAttachmentService::list_attachments].
42 fn list_attachments(
43 &self,
44 _req: crate::model::ListAttachmentsRequest,
45 _options: crate::RequestOptions,
46 ) -> impl std::future::Future<
47 Output = crate::Result<crate::Response<crate::model::ListAttachmentsResponse>>,
48 > + Send {
49 gaxi::unimplemented::unimplemented_stub()
50 }
51
52 /// Implements [super::client::CaseAttachmentService::get_attachment].
53 fn get_attachment(
54 &self,
55 _req: crate::model::GetAttachmentRequest,
56 _options: crate::RequestOptions,
57 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Attachment>>> + Send
58 {
59 gaxi::unimplemented::unimplemented_stub()
60 }
61}
62
63/// Defines the trait used to implement [super::client::CaseService].
64///
65/// Application developers may need to implement this trait to mock
66/// `client::CaseService`. In other use-cases, application developers only
67/// use `client::CaseService` and need not be concerned with this trait or
68/// its implementations.
69///
70/// Services gain new RPCs routinely. Consequently, this trait gains new methods
71/// too. To avoid breaking applications the trait provides a default
72/// implementation of each method. Most of these implementations just return an
73/// error.
74pub trait CaseService: std::fmt::Debug + Send + Sync {
75 /// Implements [super::client::CaseService::get_case].
76 fn get_case(
77 &self,
78 _req: crate::model::GetCaseRequest,
79 _options: crate::RequestOptions,
80 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
81 {
82 gaxi::unimplemented::unimplemented_stub()
83 }
84
85 /// Implements [super::client::CaseService::list_cases].
86 fn list_cases(
87 &self,
88 _req: crate::model::ListCasesRequest,
89 _options: crate::RequestOptions,
90 ) -> impl std::future::Future<
91 Output = crate::Result<crate::Response<crate::model::ListCasesResponse>>,
92 > + Send {
93 gaxi::unimplemented::unimplemented_stub()
94 }
95
96 /// Implements [super::client::CaseService::search_cases].
97 fn search_cases(
98 &self,
99 _req: crate::model::SearchCasesRequest,
100 _options: crate::RequestOptions,
101 ) -> impl std::future::Future<
102 Output = crate::Result<crate::Response<crate::model::SearchCasesResponse>>,
103 > + Send {
104 gaxi::unimplemented::unimplemented_stub()
105 }
106
107 /// Implements [super::client::CaseService::create_case].
108 fn create_case(
109 &self,
110 _req: crate::model::CreateCaseRequest,
111 _options: crate::RequestOptions,
112 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
113 {
114 gaxi::unimplemented::unimplemented_stub()
115 }
116
117 /// Implements [super::client::CaseService::update_case].
118 fn update_case(
119 &self,
120 _req: crate::model::UpdateCaseRequest,
121 _options: crate::RequestOptions,
122 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
123 {
124 gaxi::unimplemented::unimplemented_stub()
125 }
126
127 /// Implements [super::client::CaseService::escalate_case].
128 fn escalate_case(
129 &self,
130 _req: crate::model::EscalateCaseRequest,
131 _options: crate::RequestOptions,
132 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
133 {
134 gaxi::unimplemented::unimplemented_stub()
135 }
136
137 /// Implements [super::client::CaseService::close_case].
138 fn close_case(
139 &self,
140 _req: crate::model::CloseCaseRequest,
141 _options: crate::RequestOptions,
142 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
143 {
144 gaxi::unimplemented::unimplemented_stub()
145 }
146
147 /// Implements [super::client::CaseService::search_case_classifications].
148 fn search_case_classifications(
149 &self,
150 _req: crate::model::SearchCaseClassificationsRequest,
151 _options: crate::RequestOptions,
152 ) -> impl std::future::Future<
153 Output = crate::Result<crate::Response<crate::model::SearchCaseClassificationsResponse>>,
154 > + Send {
155 gaxi::unimplemented::unimplemented_stub()
156 }
157}
158
159/// Defines the trait used to implement [super::client::CommentService].
160///
161/// Application developers may need to implement this trait to mock
162/// `client::CommentService`. In other use-cases, application developers only
163/// use `client::CommentService` and need not be concerned with this trait or
164/// its implementations.
165///
166/// Services gain new RPCs routinely. Consequently, this trait gains new methods
167/// too. To avoid breaking applications the trait provides a default
168/// implementation of each method. Most of these implementations just return an
169/// error.
170pub trait CommentService: std::fmt::Debug + Send + Sync {
171 /// Implements [super::client::CommentService::list_comments].
172 fn list_comments(
173 &self,
174 _req: crate::model::ListCommentsRequest,
175 _options: crate::RequestOptions,
176 ) -> impl std::future::Future<
177 Output = crate::Result<crate::Response<crate::model::ListCommentsResponse>>,
178 > + Send {
179 gaxi::unimplemented::unimplemented_stub()
180 }
181
182 /// Implements [super::client::CommentService::create_comment].
183 fn create_comment(
184 &self,
185 _req: crate::model::CreateCommentRequest,
186 _options: crate::RequestOptions,
187 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Comment>>> + Send
188 {
189 gaxi::unimplemented::unimplemented_stub()
190 }
191
192 /// Implements [super::client::CommentService::get_comment].
193 fn get_comment(
194 &self,
195 _req: crate::model::GetCommentRequest,
196 _options: crate::RequestOptions,
197 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Comment>>> + Send
198 {
199 gaxi::unimplemented::unimplemented_stub()
200 }
201}