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: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<crate::model::ListAttachmentsResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51}
52
53/// Defines the trait used to implement [super::client::CaseService].
54///
55/// Application developers may need to implement this trait to mock
56/// `client::CaseService`.  In other use-cases, application developers only
57/// use `client::CaseService` and need not be concerned with this trait or
58/// its implementations.
59///
60/// Services gain new RPCs routinely. Consequently, this trait gains new methods
61/// too. To avoid breaking applications the trait provides a default
62/// implementation of each method. Most of these implementations just return an
63/// error.
64pub trait CaseService: std::fmt::Debug + Send + Sync {
65    /// Implements [super::client::CaseService::get_case].
66    fn get_case(
67        &self,
68        _req: crate::model::GetCaseRequest,
69        _options: gax::options::RequestOptions,
70    ) -> impl std::future::Future<
71        Output = crate::Result<gax::response::Response<crate::model::Case>>,
72    > + Send {
73        gaxi::unimplemented::unimplemented_stub()
74    }
75
76    /// Implements [super::client::CaseService::list_cases].
77    fn list_cases(
78        &self,
79        _req: crate::model::ListCasesRequest,
80        _options: gax::options::RequestOptions,
81    ) -> impl std::future::Future<
82        Output = crate::Result<gax::response::Response<crate::model::ListCasesResponse>>,
83    > + Send {
84        gaxi::unimplemented::unimplemented_stub()
85    }
86
87    /// Implements [super::client::CaseService::search_cases].
88    fn search_cases(
89        &self,
90        _req: crate::model::SearchCasesRequest,
91        _options: gax::options::RequestOptions,
92    ) -> impl std::future::Future<
93        Output = crate::Result<gax::response::Response<crate::model::SearchCasesResponse>>,
94    > + Send {
95        gaxi::unimplemented::unimplemented_stub()
96    }
97
98    /// Implements [super::client::CaseService::create_case].
99    fn create_case(
100        &self,
101        _req: crate::model::CreateCaseRequest,
102        _options: gax::options::RequestOptions,
103    ) -> impl std::future::Future<
104        Output = crate::Result<gax::response::Response<crate::model::Case>>,
105    > + Send {
106        gaxi::unimplemented::unimplemented_stub()
107    }
108
109    /// Implements [super::client::CaseService::update_case].
110    fn update_case(
111        &self,
112        _req: crate::model::UpdateCaseRequest,
113        _options: gax::options::RequestOptions,
114    ) -> impl std::future::Future<
115        Output = crate::Result<gax::response::Response<crate::model::Case>>,
116    > + Send {
117        gaxi::unimplemented::unimplemented_stub()
118    }
119
120    /// Implements [super::client::CaseService::escalate_case].
121    fn escalate_case(
122        &self,
123        _req: crate::model::EscalateCaseRequest,
124        _options: gax::options::RequestOptions,
125    ) -> impl std::future::Future<
126        Output = crate::Result<gax::response::Response<crate::model::Case>>,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::CaseService::close_case].
132    fn close_case(
133        &self,
134        _req: crate::model::CloseCaseRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<crate::model::Case>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::CaseService::search_case_classifications].
143    fn search_case_classifications(
144        &self,
145        _req: crate::model::SearchCaseClassificationsRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<
149            gax::response::Response<crate::model::SearchCaseClassificationsResponse>,
150        >,
151    > + Send {
152        gaxi::unimplemented::unimplemented_stub()
153    }
154}
155
156/// Defines the trait used to implement [super::client::CommentService].
157///
158/// Application developers may need to implement this trait to mock
159/// `client::CommentService`.  In other use-cases, application developers only
160/// use `client::CommentService` and need not be concerned with this trait or
161/// its implementations.
162///
163/// Services gain new RPCs routinely. Consequently, this trait gains new methods
164/// too. To avoid breaking applications the trait provides a default
165/// implementation of each method. Most of these implementations just return an
166/// error.
167pub trait CommentService: std::fmt::Debug + Send + Sync {
168    /// Implements [super::client::CommentService::list_comments].
169    fn list_comments(
170        &self,
171        _req: crate::model::ListCommentsRequest,
172        _options: gax::options::RequestOptions,
173    ) -> impl std::future::Future<
174        Output = crate::Result<gax::response::Response<crate::model::ListCommentsResponse>>,
175    > + Send {
176        gaxi::unimplemented::unimplemented_stub()
177    }
178
179    /// Implements [super::client::CommentService::create_comment].
180    fn create_comment(
181        &self,
182        _req: crate::model::CreateCommentRequest,
183        _options: gax::options::RequestOptions,
184    ) -> impl std::future::Future<
185        Output = crate::Result<gax::response::Response<crate::model::Comment>>,
186    > + Send {
187        gaxi::unimplemented::unimplemented_stub()
188    }
189}