Skip to main content

google_cloud_discoveryengine_v1/
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::AssistantService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::AssistantService`.  In other use-cases, application developers only
33/// use `client::AssistantService` 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.
40#[cfg(feature = "assistant-service")]
41#[cfg_attr(docsrs, doc(cfg(feature = "assistant-service")))]
42pub trait AssistantService: std::fmt::Debug + Send + Sync {
43    /// Implements [super::client::AssistantService::list_operations].
44    fn list_operations(
45        &self,
46        _req: google_cloud_longrunning::model::ListOperationsRequest,
47        _options: crate::RequestOptions,
48    ) -> impl std::future::Future<
49        Output = crate::Result<
50            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
51        >,
52    > + Send {
53        gaxi::unimplemented::unimplemented_stub()
54    }
55
56    /// Implements [super::client::AssistantService::get_operation].
57    fn get_operation(
58        &self,
59        _req: google_cloud_longrunning::model::GetOperationRequest,
60        _options: crate::RequestOptions,
61    ) -> impl std::future::Future<
62        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
63    > + Send {
64        gaxi::unimplemented::unimplemented_stub()
65    }
66
67    /// Implements [super::client::AssistantService::cancel_operation].
68    fn cancel_operation(
69        &self,
70        _req: google_cloud_longrunning::model::CancelOperationRequest,
71        _options: crate::RequestOptions,
72    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
73        gaxi::unimplemented::unimplemented_stub()
74    }
75}
76
77/// Defines the trait used to implement [super::client::CmekConfigService].
78///
79/// Application developers may need to implement this trait to mock
80/// `client::CmekConfigService`.  In other use-cases, application developers only
81/// use `client::CmekConfigService` and need not be concerned with this trait or
82/// its implementations.
83///
84/// Services gain new RPCs routinely. Consequently, this trait gains new methods
85/// too. To avoid breaking applications the trait provides a default
86/// implementation of each method. Most of these implementations just return an
87/// error.
88#[cfg(feature = "cmek-config-service")]
89#[cfg_attr(docsrs, doc(cfg(feature = "cmek-config-service")))]
90pub trait CmekConfigService: std::fmt::Debug + Send + Sync {
91    /// Implements [super::client::CmekConfigService::update_cmek_config].
92    fn update_cmek_config(
93        &self,
94        _req: crate::model::UpdateCmekConfigRequest,
95        _options: crate::RequestOptions,
96    ) -> impl std::future::Future<
97        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
98    > + Send {
99        gaxi::unimplemented::unimplemented_stub()
100    }
101
102    /// Implements [super::client::CmekConfigService::get_cmek_config].
103    fn get_cmek_config(
104        &self,
105        _req: crate::model::GetCmekConfigRequest,
106        _options: crate::RequestOptions,
107    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::CmekConfig>>> + Send
108    {
109        gaxi::unimplemented::unimplemented_stub()
110    }
111
112    /// Implements [super::client::CmekConfigService::list_cmek_configs].
113    fn list_cmek_configs(
114        &self,
115        _req: crate::model::ListCmekConfigsRequest,
116        _options: crate::RequestOptions,
117    ) -> impl std::future::Future<
118        Output = crate::Result<crate::Response<crate::model::ListCmekConfigsResponse>>,
119    > + Send {
120        gaxi::unimplemented::unimplemented_stub()
121    }
122
123    /// Implements [super::client::CmekConfigService::delete_cmek_config].
124    fn delete_cmek_config(
125        &self,
126        _req: crate::model::DeleteCmekConfigRequest,
127        _options: crate::RequestOptions,
128    ) -> impl std::future::Future<
129        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
130    > + Send {
131        gaxi::unimplemented::unimplemented_stub()
132    }
133
134    /// Implements [super::client::CmekConfigService::list_operations].
135    fn list_operations(
136        &self,
137        _req: google_cloud_longrunning::model::ListOperationsRequest,
138        _options: crate::RequestOptions,
139    ) -> impl std::future::Future<
140        Output = crate::Result<
141            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
142        >,
143    > + Send {
144        gaxi::unimplemented::unimplemented_stub()
145    }
146
147    /// Implements [super::client::CmekConfigService::get_operation].
148    fn get_operation(
149        &self,
150        _req: google_cloud_longrunning::model::GetOperationRequest,
151        _options: crate::RequestOptions,
152    ) -> impl std::future::Future<
153        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
154    > + Send {
155        gaxi::unimplemented::unimplemented_stub()
156    }
157
158    /// Implements [super::client::CmekConfigService::cancel_operation].
159    fn cancel_operation(
160        &self,
161        _req: google_cloud_longrunning::model::CancelOperationRequest,
162        _options: crate::RequestOptions,
163    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
164        gaxi::unimplemented::unimplemented_stub()
165    }
166
167    /// Returns the polling error policy.
168    ///
169    /// When mocking, this method is typically irrelevant. Do not try to verify
170    /// it is called by your mocks.
171    fn get_polling_error_policy(
172        &self,
173        _options: &crate::RequestOptions,
174    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
175        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
176    }
177
178    /// Returns the polling backoff policy.
179    ///
180    /// When mocking, this method is typically irrelevant. Do not try to verify
181    /// it is called by your mocks.
182    fn get_polling_backoff_policy(
183        &self,
184        _options: &crate::RequestOptions,
185    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
186        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
187    }
188}
189
190/// Defines the trait used to implement [super::client::CompletionService].
191///
192/// Application developers may need to implement this trait to mock
193/// `client::CompletionService`.  In other use-cases, application developers only
194/// use `client::CompletionService` and need not be concerned with this trait or
195/// its implementations.
196///
197/// Services gain new RPCs routinely. Consequently, this trait gains new methods
198/// too. To avoid breaking applications the trait provides a default
199/// implementation of each method. Most of these implementations just return an
200/// error.
201#[cfg(feature = "completion-service")]
202#[cfg_attr(docsrs, doc(cfg(feature = "completion-service")))]
203pub trait CompletionService: std::fmt::Debug + Send + Sync {
204    /// Implements [super::client::CompletionService::complete_query].
205    fn complete_query(
206        &self,
207        _req: crate::model::CompleteQueryRequest,
208        _options: crate::RequestOptions,
209    ) -> impl std::future::Future<
210        Output = crate::Result<crate::Response<crate::model::CompleteQueryResponse>>,
211    > + Send {
212        gaxi::unimplemented::unimplemented_stub()
213    }
214
215    /// Implements [super::client::CompletionService::import_suggestion_deny_list_entries].
216    fn import_suggestion_deny_list_entries(
217        &self,
218        _req: crate::model::ImportSuggestionDenyListEntriesRequest,
219        _options: crate::RequestOptions,
220    ) -> impl std::future::Future<
221        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
222    > + Send {
223        gaxi::unimplemented::unimplemented_stub()
224    }
225
226    /// Implements [super::client::CompletionService::purge_suggestion_deny_list_entries].
227    fn purge_suggestion_deny_list_entries(
228        &self,
229        _req: crate::model::PurgeSuggestionDenyListEntriesRequest,
230        _options: crate::RequestOptions,
231    ) -> impl std::future::Future<
232        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
233    > + Send {
234        gaxi::unimplemented::unimplemented_stub()
235    }
236
237    /// Implements [super::client::CompletionService::import_completion_suggestions].
238    fn import_completion_suggestions(
239        &self,
240        _req: crate::model::ImportCompletionSuggestionsRequest,
241        _options: crate::RequestOptions,
242    ) -> impl std::future::Future<
243        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
244    > + Send {
245        gaxi::unimplemented::unimplemented_stub()
246    }
247
248    /// Implements [super::client::CompletionService::purge_completion_suggestions].
249    fn purge_completion_suggestions(
250        &self,
251        _req: crate::model::PurgeCompletionSuggestionsRequest,
252        _options: crate::RequestOptions,
253    ) -> impl std::future::Future<
254        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
255    > + Send {
256        gaxi::unimplemented::unimplemented_stub()
257    }
258
259    /// Implements [super::client::CompletionService::list_operations].
260    fn list_operations(
261        &self,
262        _req: google_cloud_longrunning::model::ListOperationsRequest,
263        _options: crate::RequestOptions,
264    ) -> impl std::future::Future<
265        Output = crate::Result<
266            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
267        >,
268    > + Send {
269        gaxi::unimplemented::unimplemented_stub()
270    }
271
272    /// Implements [super::client::CompletionService::get_operation].
273    fn get_operation(
274        &self,
275        _req: google_cloud_longrunning::model::GetOperationRequest,
276        _options: crate::RequestOptions,
277    ) -> impl std::future::Future<
278        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
279    > + Send {
280        gaxi::unimplemented::unimplemented_stub()
281    }
282
283    /// Implements [super::client::CompletionService::cancel_operation].
284    fn cancel_operation(
285        &self,
286        _req: google_cloud_longrunning::model::CancelOperationRequest,
287        _options: crate::RequestOptions,
288    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
289        gaxi::unimplemented::unimplemented_stub()
290    }
291
292    /// Returns the polling error policy.
293    ///
294    /// When mocking, this method is typically irrelevant. Do not try to verify
295    /// it is called by your mocks.
296    fn get_polling_error_policy(
297        &self,
298        _options: &crate::RequestOptions,
299    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
300        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
301    }
302
303    /// Returns the polling backoff policy.
304    ///
305    /// When mocking, this method is typically irrelevant. Do not try to verify
306    /// it is called by your mocks.
307    fn get_polling_backoff_policy(
308        &self,
309        _options: &crate::RequestOptions,
310    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
311        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
312    }
313}
314
315/// Defines the trait used to implement [super::client::ControlService].
316///
317/// Application developers may need to implement this trait to mock
318/// `client::ControlService`.  In other use-cases, application developers only
319/// use `client::ControlService` and need not be concerned with this trait or
320/// its implementations.
321///
322/// Services gain new RPCs routinely. Consequently, this trait gains new methods
323/// too. To avoid breaking applications the trait provides a default
324/// implementation of each method. Most of these implementations just return an
325/// error.
326#[cfg(feature = "control-service")]
327#[cfg_attr(docsrs, doc(cfg(feature = "control-service")))]
328pub trait ControlService: std::fmt::Debug + Send + Sync {
329    /// Implements [super::client::ControlService::create_control].
330    fn create_control(
331        &self,
332        _req: crate::model::CreateControlRequest,
333        _options: crate::RequestOptions,
334    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
335    {
336        gaxi::unimplemented::unimplemented_stub()
337    }
338
339    /// Implements [super::client::ControlService::delete_control].
340    fn delete_control(
341        &self,
342        _req: crate::model::DeleteControlRequest,
343        _options: crate::RequestOptions,
344    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
345        gaxi::unimplemented::unimplemented_stub()
346    }
347
348    /// Implements [super::client::ControlService::update_control].
349    fn update_control(
350        &self,
351        _req: crate::model::UpdateControlRequest,
352        _options: crate::RequestOptions,
353    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
354    {
355        gaxi::unimplemented::unimplemented_stub()
356    }
357
358    /// Implements [super::client::ControlService::get_control].
359    fn get_control(
360        &self,
361        _req: crate::model::GetControlRequest,
362        _options: crate::RequestOptions,
363    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
364    {
365        gaxi::unimplemented::unimplemented_stub()
366    }
367
368    /// Implements [super::client::ControlService::list_controls].
369    fn list_controls(
370        &self,
371        _req: crate::model::ListControlsRequest,
372        _options: crate::RequestOptions,
373    ) -> impl std::future::Future<
374        Output = crate::Result<crate::Response<crate::model::ListControlsResponse>>,
375    > + Send {
376        gaxi::unimplemented::unimplemented_stub()
377    }
378
379    /// Implements [super::client::ControlService::list_operations].
380    fn list_operations(
381        &self,
382        _req: google_cloud_longrunning::model::ListOperationsRequest,
383        _options: crate::RequestOptions,
384    ) -> impl std::future::Future<
385        Output = crate::Result<
386            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
387        >,
388    > + Send {
389        gaxi::unimplemented::unimplemented_stub()
390    }
391
392    /// Implements [super::client::ControlService::get_operation].
393    fn get_operation(
394        &self,
395        _req: google_cloud_longrunning::model::GetOperationRequest,
396        _options: crate::RequestOptions,
397    ) -> impl std::future::Future<
398        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
399    > + Send {
400        gaxi::unimplemented::unimplemented_stub()
401    }
402
403    /// Implements [super::client::ControlService::cancel_operation].
404    fn cancel_operation(
405        &self,
406        _req: google_cloud_longrunning::model::CancelOperationRequest,
407        _options: crate::RequestOptions,
408    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
409        gaxi::unimplemented::unimplemented_stub()
410    }
411}
412
413/// Defines the trait used to implement [super::client::ConversationalSearchService].
414///
415/// Application developers may need to implement this trait to mock
416/// `client::ConversationalSearchService`.  In other use-cases, application developers only
417/// use `client::ConversationalSearchService` and need not be concerned with this trait or
418/// its implementations.
419///
420/// Services gain new RPCs routinely. Consequently, this trait gains new methods
421/// too. To avoid breaking applications the trait provides a default
422/// implementation of each method. Most of these implementations just return an
423/// error.
424#[cfg(feature = "conversational-search-service")]
425#[cfg_attr(docsrs, doc(cfg(feature = "conversational-search-service")))]
426pub trait ConversationalSearchService: std::fmt::Debug + Send + Sync {
427    /// Implements [super::client::ConversationalSearchService::converse_conversation].
428    fn converse_conversation(
429        &self,
430        _req: crate::model::ConverseConversationRequest,
431        _options: crate::RequestOptions,
432    ) -> impl std::future::Future<
433        Output = crate::Result<crate::Response<crate::model::ConverseConversationResponse>>,
434    > + Send {
435        gaxi::unimplemented::unimplemented_stub()
436    }
437
438    /// Implements [super::client::ConversationalSearchService::create_conversation].
439    fn create_conversation(
440        &self,
441        _req: crate::model::CreateConversationRequest,
442        _options: crate::RequestOptions,
443    ) -> impl std::future::Future<
444        Output = crate::Result<crate::Response<crate::model::Conversation>>,
445    > + Send {
446        gaxi::unimplemented::unimplemented_stub()
447    }
448
449    /// Implements [super::client::ConversationalSearchService::delete_conversation].
450    fn delete_conversation(
451        &self,
452        _req: crate::model::DeleteConversationRequest,
453        _options: crate::RequestOptions,
454    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
455        gaxi::unimplemented::unimplemented_stub()
456    }
457
458    /// Implements [super::client::ConversationalSearchService::update_conversation].
459    fn update_conversation(
460        &self,
461        _req: crate::model::UpdateConversationRequest,
462        _options: crate::RequestOptions,
463    ) -> impl std::future::Future<
464        Output = crate::Result<crate::Response<crate::model::Conversation>>,
465    > + Send {
466        gaxi::unimplemented::unimplemented_stub()
467    }
468
469    /// Implements [super::client::ConversationalSearchService::get_conversation].
470    fn get_conversation(
471        &self,
472        _req: crate::model::GetConversationRequest,
473        _options: crate::RequestOptions,
474    ) -> impl std::future::Future<
475        Output = crate::Result<crate::Response<crate::model::Conversation>>,
476    > + Send {
477        gaxi::unimplemented::unimplemented_stub()
478    }
479
480    /// Implements [super::client::ConversationalSearchService::list_conversations].
481    fn list_conversations(
482        &self,
483        _req: crate::model::ListConversationsRequest,
484        _options: crate::RequestOptions,
485    ) -> impl std::future::Future<
486        Output = crate::Result<crate::Response<crate::model::ListConversationsResponse>>,
487    > + Send {
488        gaxi::unimplemented::unimplemented_stub()
489    }
490
491    /// Implements [super::client::ConversationalSearchService::answer_query].
492    fn answer_query(
493        &self,
494        _req: crate::model::AnswerQueryRequest,
495        _options: crate::RequestOptions,
496    ) -> impl std::future::Future<
497        Output = crate::Result<crate::Response<crate::model::AnswerQueryResponse>>,
498    > + Send {
499        gaxi::unimplemented::unimplemented_stub()
500    }
501
502    /// Implements [super::client::ConversationalSearchService::get_answer].
503    fn get_answer(
504        &self,
505        _req: crate::model::GetAnswerRequest,
506        _options: crate::RequestOptions,
507    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Answer>>> + Send
508    {
509        gaxi::unimplemented::unimplemented_stub()
510    }
511
512    /// Implements [super::client::ConversationalSearchService::create_session].
513    fn create_session(
514        &self,
515        _req: crate::model::CreateSessionRequest,
516        _options: crate::RequestOptions,
517    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
518    {
519        gaxi::unimplemented::unimplemented_stub()
520    }
521
522    /// Implements [super::client::ConversationalSearchService::delete_session].
523    fn delete_session(
524        &self,
525        _req: crate::model::DeleteSessionRequest,
526        _options: crate::RequestOptions,
527    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
528        gaxi::unimplemented::unimplemented_stub()
529    }
530
531    /// Implements [super::client::ConversationalSearchService::update_session].
532    fn update_session(
533        &self,
534        _req: crate::model::UpdateSessionRequest,
535        _options: crate::RequestOptions,
536    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
537    {
538        gaxi::unimplemented::unimplemented_stub()
539    }
540
541    /// Implements [super::client::ConversationalSearchService::get_session].
542    fn get_session(
543        &self,
544        _req: crate::model::GetSessionRequest,
545        _options: crate::RequestOptions,
546    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
547    {
548        gaxi::unimplemented::unimplemented_stub()
549    }
550
551    /// Implements [super::client::ConversationalSearchService::list_sessions].
552    fn list_sessions(
553        &self,
554        _req: crate::model::ListSessionsRequest,
555        _options: crate::RequestOptions,
556    ) -> impl std::future::Future<
557        Output = crate::Result<crate::Response<crate::model::ListSessionsResponse>>,
558    > + Send {
559        gaxi::unimplemented::unimplemented_stub()
560    }
561
562    /// Implements [super::client::ConversationalSearchService::list_operations].
563    fn list_operations(
564        &self,
565        _req: google_cloud_longrunning::model::ListOperationsRequest,
566        _options: crate::RequestOptions,
567    ) -> impl std::future::Future<
568        Output = crate::Result<
569            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
570        >,
571    > + Send {
572        gaxi::unimplemented::unimplemented_stub()
573    }
574
575    /// Implements [super::client::ConversationalSearchService::get_operation].
576    fn get_operation(
577        &self,
578        _req: google_cloud_longrunning::model::GetOperationRequest,
579        _options: crate::RequestOptions,
580    ) -> impl std::future::Future<
581        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
582    > + Send {
583        gaxi::unimplemented::unimplemented_stub()
584    }
585
586    /// Implements [super::client::ConversationalSearchService::cancel_operation].
587    fn cancel_operation(
588        &self,
589        _req: google_cloud_longrunning::model::CancelOperationRequest,
590        _options: crate::RequestOptions,
591    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
592        gaxi::unimplemented::unimplemented_stub()
593    }
594}
595
596/// Defines the trait used to implement [super::client::DataStoreService].
597///
598/// Application developers may need to implement this trait to mock
599/// `client::DataStoreService`.  In other use-cases, application developers only
600/// use `client::DataStoreService` and need not be concerned with this trait or
601/// its implementations.
602///
603/// Services gain new RPCs routinely. Consequently, this trait gains new methods
604/// too. To avoid breaking applications the trait provides a default
605/// implementation of each method. Most of these implementations just return an
606/// error.
607#[cfg(feature = "data-store-service")]
608#[cfg_attr(docsrs, doc(cfg(feature = "data-store-service")))]
609pub trait DataStoreService: std::fmt::Debug + Send + Sync {
610    /// Implements [super::client::DataStoreService::create_data_store].
611    fn create_data_store(
612        &self,
613        _req: crate::model::CreateDataStoreRequest,
614        _options: crate::RequestOptions,
615    ) -> impl std::future::Future<
616        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
617    > + Send {
618        gaxi::unimplemented::unimplemented_stub()
619    }
620
621    /// Implements [super::client::DataStoreService::get_data_store].
622    fn get_data_store(
623        &self,
624        _req: crate::model::GetDataStoreRequest,
625        _options: crate::RequestOptions,
626    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::DataStore>>> + Send
627    {
628        gaxi::unimplemented::unimplemented_stub()
629    }
630
631    /// Implements [super::client::DataStoreService::list_data_stores].
632    fn list_data_stores(
633        &self,
634        _req: crate::model::ListDataStoresRequest,
635        _options: crate::RequestOptions,
636    ) -> impl std::future::Future<
637        Output = crate::Result<crate::Response<crate::model::ListDataStoresResponse>>,
638    > + Send {
639        gaxi::unimplemented::unimplemented_stub()
640    }
641
642    /// Implements [super::client::DataStoreService::delete_data_store].
643    fn delete_data_store(
644        &self,
645        _req: crate::model::DeleteDataStoreRequest,
646        _options: crate::RequestOptions,
647    ) -> impl std::future::Future<
648        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
649    > + Send {
650        gaxi::unimplemented::unimplemented_stub()
651    }
652
653    /// Implements [super::client::DataStoreService::update_data_store].
654    fn update_data_store(
655        &self,
656        _req: crate::model::UpdateDataStoreRequest,
657        _options: crate::RequestOptions,
658    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::DataStore>>> + Send
659    {
660        gaxi::unimplemented::unimplemented_stub()
661    }
662
663    /// Implements [super::client::DataStoreService::list_operations].
664    fn list_operations(
665        &self,
666        _req: google_cloud_longrunning::model::ListOperationsRequest,
667        _options: crate::RequestOptions,
668    ) -> impl std::future::Future<
669        Output = crate::Result<
670            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
671        >,
672    > + Send {
673        gaxi::unimplemented::unimplemented_stub()
674    }
675
676    /// Implements [super::client::DataStoreService::get_operation].
677    fn get_operation(
678        &self,
679        _req: google_cloud_longrunning::model::GetOperationRequest,
680        _options: crate::RequestOptions,
681    ) -> impl std::future::Future<
682        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
683    > + Send {
684        gaxi::unimplemented::unimplemented_stub()
685    }
686
687    /// Implements [super::client::DataStoreService::cancel_operation].
688    fn cancel_operation(
689        &self,
690        _req: google_cloud_longrunning::model::CancelOperationRequest,
691        _options: crate::RequestOptions,
692    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
693        gaxi::unimplemented::unimplemented_stub()
694    }
695
696    /// Returns the polling error policy.
697    ///
698    /// When mocking, this method is typically irrelevant. Do not try to verify
699    /// it is called by your mocks.
700    fn get_polling_error_policy(
701        &self,
702        _options: &crate::RequestOptions,
703    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
704        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
705    }
706
707    /// Returns the polling backoff policy.
708    ///
709    /// When mocking, this method is typically irrelevant. Do not try to verify
710    /// it is called by your mocks.
711    fn get_polling_backoff_policy(
712        &self,
713        _options: &crate::RequestOptions,
714    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
715        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
716    }
717}
718
719/// Defines the trait used to implement [super::client::DocumentService].
720///
721/// Application developers may need to implement this trait to mock
722/// `client::DocumentService`.  In other use-cases, application developers only
723/// use `client::DocumentService` and need not be concerned with this trait or
724/// its implementations.
725///
726/// Services gain new RPCs routinely. Consequently, this trait gains new methods
727/// too. To avoid breaking applications the trait provides a default
728/// implementation of each method. Most of these implementations just return an
729/// error.
730#[cfg(feature = "document-service")]
731#[cfg_attr(docsrs, doc(cfg(feature = "document-service")))]
732pub trait DocumentService: std::fmt::Debug + Send + Sync {
733    /// Implements [super::client::DocumentService::get_document].
734    fn get_document(
735        &self,
736        _req: crate::model::GetDocumentRequest,
737        _options: crate::RequestOptions,
738    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
739    {
740        gaxi::unimplemented::unimplemented_stub()
741    }
742
743    /// Implements [super::client::DocumentService::list_documents].
744    fn list_documents(
745        &self,
746        _req: crate::model::ListDocumentsRequest,
747        _options: crate::RequestOptions,
748    ) -> impl std::future::Future<
749        Output = crate::Result<crate::Response<crate::model::ListDocumentsResponse>>,
750    > + Send {
751        gaxi::unimplemented::unimplemented_stub()
752    }
753
754    /// Implements [super::client::DocumentService::create_document].
755    fn create_document(
756        &self,
757        _req: crate::model::CreateDocumentRequest,
758        _options: crate::RequestOptions,
759    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
760    {
761        gaxi::unimplemented::unimplemented_stub()
762    }
763
764    /// Implements [super::client::DocumentService::update_document].
765    fn update_document(
766        &self,
767        _req: crate::model::UpdateDocumentRequest,
768        _options: crate::RequestOptions,
769    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
770    {
771        gaxi::unimplemented::unimplemented_stub()
772    }
773
774    /// Implements [super::client::DocumentService::delete_document].
775    fn delete_document(
776        &self,
777        _req: crate::model::DeleteDocumentRequest,
778        _options: crate::RequestOptions,
779    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
780        gaxi::unimplemented::unimplemented_stub()
781    }
782
783    /// Implements [super::client::DocumentService::import_documents].
784    fn import_documents(
785        &self,
786        _req: crate::model::ImportDocumentsRequest,
787        _options: crate::RequestOptions,
788    ) -> impl std::future::Future<
789        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
790    > + Send {
791        gaxi::unimplemented::unimplemented_stub()
792    }
793
794    /// Implements [super::client::DocumentService::purge_documents].
795    fn purge_documents(
796        &self,
797        _req: crate::model::PurgeDocumentsRequest,
798        _options: crate::RequestOptions,
799    ) -> impl std::future::Future<
800        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
801    > + Send {
802        gaxi::unimplemented::unimplemented_stub()
803    }
804
805    /// Implements [super::client::DocumentService::batch_get_documents_metadata].
806    fn batch_get_documents_metadata(
807        &self,
808        _req: crate::model::BatchGetDocumentsMetadataRequest,
809        _options: crate::RequestOptions,
810    ) -> impl std::future::Future<
811        Output = crate::Result<crate::Response<crate::model::BatchGetDocumentsMetadataResponse>>,
812    > + Send {
813        gaxi::unimplemented::unimplemented_stub()
814    }
815
816    /// Implements [super::client::DocumentService::list_operations].
817    fn list_operations(
818        &self,
819        _req: google_cloud_longrunning::model::ListOperationsRequest,
820        _options: crate::RequestOptions,
821    ) -> impl std::future::Future<
822        Output = crate::Result<
823            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
824        >,
825    > + Send {
826        gaxi::unimplemented::unimplemented_stub()
827    }
828
829    /// Implements [super::client::DocumentService::get_operation].
830    fn get_operation(
831        &self,
832        _req: google_cloud_longrunning::model::GetOperationRequest,
833        _options: crate::RequestOptions,
834    ) -> impl std::future::Future<
835        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
836    > + Send {
837        gaxi::unimplemented::unimplemented_stub()
838    }
839
840    /// Implements [super::client::DocumentService::cancel_operation].
841    fn cancel_operation(
842        &self,
843        _req: google_cloud_longrunning::model::CancelOperationRequest,
844        _options: crate::RequestOptions,
845    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
846        gaxi::unimplemented::unimplemented_stub()
847    }
848
849    /// Returns the polling error policy.
850    ///
851    /// When mocking, this method is typically irrelevant. Do not try to verify
852    /// it is called by your mocks.
853    fn get_polling_error_policy(
854        &self,
855        _options: &crate::RequestOptions,
856    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
857        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
858    }
859
860    /// Returns the polling backoff policy.
861    ///
862    /// When mocking, this method is typically irrelevant. Do not try to verify
863    /// it is called by your mocks.
864    fn get_polling_backoff_policy(
865        &self,
866        _options: &crate::RequestOptions,
867    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
868        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
869    }
870}
871
872/// Defines the trait used to implement [super::client::EngineService].
873///
874/// Application developers may need to implement this trait to mock
875/// `client::EngineService`.  In other use-cases, application developers only
876/// use `client::EngineService` and need not be concerned with this trait or
877/// its implementations.
878///
879/// Services gain new RPCs routinely. Consequently, this trait gains new methods
880/// too. To avoid breaking applications the trait provides a default
881/// implementation of each method. Most of these implementations just return an
882/// error.
883#[cfg(feature = "engine-service")]
884#[cfg_attr(docsrs, doc(cfg(feature = "engine-service")))]
885pub trait EngineService: std::fmt::Debug + Send + Sync {
886    /// Implements [super::client::EngineService::create_engine].
887    fn create_engine(
888        &self,
889        _req: crate::model::CreateEngineRequest,
890        _options: crate::RequestOptions,
891    ) -> impl std::future::Future<
892        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
893    > + Send {
894        gaxi::unimplemented::unimplemented_stub()
895    }
896
897    /// Implements [super::client::EngineService::delete_engine].
898    fn delete_engine(
899        &self,
900        _req: crate::model::DeleteEngineRequest,
901        _options: crate::RequestOptions,
902    ) -> impl std::future::Future<
903        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
904    > + Send {
905        gaxi::unimplemented::unimplemented_stub()
906    }
907
908    /// Implements [super::client::EngineService::update_engine].
909    fn update_engine(
910        &self,
911        _req: crate::model::UpdateEngineRequest,
912        _options: crate::RequestOptions,
913    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Engine>>> + Send
914    {
915        gaxi::unimplemented::unimplemented_stub()
916    }
917
918    /// Implements [super::client::EngineService::get_engine].
919    fn get_engine(
920        &self,
921        _req: crate::model::GetEngineRequest,
922        _options: crate::RequestOptions,
923    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Engine>>> + Send
924    {
925        gaxi::unimplemented::unimplemented_stub()
926    }
927
928    /// Implements [super::client::EngineService::list_engines].
929    fn list_engines(
930        &self,
931        _req: crate::model::ListEnginesRequest,
932        _options: crate::RequestOptions,
933    ) -> impl std::future::Future<
934        Output = crate::Result<crate::Response<crate::model::ListEnginesResponse>>,
935    > + Send {
936        gaxi::unimplemented::unimplemented_stub()
937    }
938
939    /// Implements [super::client::EngineService::list_operations].
940    fn list_operations(
941        &self,
942        _req: google_cloud_longrunning::model::ListOperationsRequest,
943        _options: crate::RequestOptions,
944    ) -> impl std::future::Future<
945        Output = crate::Result<
946            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
947        >,
948    > + Send {
949        gaxi::unimplemented::unimplemented_stub()
950    }
951
952    /// Implements [super::client::EngineService::get_operation].
953    fn get_operation(
954        &self,
955        _req: google_cloud_longrunning::model::GetOperationRequest,
956        _options: crate::RequestOptions,
957    ) -> impl std::future::Future<
958        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
959    > + Send {
960        gaxi::unimplemented::unimplemented_stub()
961    }
962
963    /// Implements [super::client::EngineService::cancel_operation].
964    fn cancel_operation(
965        &self,
966        _req: google_cloud_longrunning::model::CancelOperationRequest,
967        _options: crate::RequestOptions,
968    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
969        gaxi::unimplemented::unimplemented_stub()
970    }
971
972    /// Returns the polling error policy.
973    ///
974    /// When mocking, this method is typically irrelevant. Do not try to verify
975    /// it is called by your mocks.
976    fn get_polling_error_policy(
977        &self,
978        _options: &crate::RequestOptions,
979    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
980        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
981    }
982
983    /// Returns the polling backoff policy.
984    ///
985    /// When mocking, this method is typically irrelevant. Do not try to verify
986    /// it is called by your mocks.
987    fn get_polling_backoff_policy(
988        &self,
989        _options: &crate::RequestOptions,
990    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
991        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
992    }
993}
994
995/// Defines the trait used to implement [super::client::GroundedGenerationService].
996///
997/// Application developers may need to implement this trait to mock
998/// `client::GroundedGenerationService`.  In other use-cases, application developers only
999/// use `client::GroundedGenerationService` and need not be concerned with this trait or
1000/// its implementations.
1001///
1002/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1003/// too. To avoid breaking applications the trait provides a default
1004/// implementation of each method. Most of these implementations just return an
1005/// error.
1006#[cfg(feature = "grounded-generation-service")]
1007#[cfg_attr(docsrs, doc(cfg(feature = "grounded-generation-service")))]
1008pub trait GroundedGenerationService: std::fmt::Debug + Send + Sync {
1009    /// Implements [super::client::GroundedGenerationService::generate_grounded_content].
1010    fn generate_grounded_content(
1011        &self,
1012        _req: crate::model::GenerateGroundedContentRequest,
1013        _options: crate::RequestOptions,
1014    ) -> impl std::future::Future<
1015        Output = crate::Result<crate::Response<crate::model::GenerateGroundedContentResponse>>,
1016    > + Send {
1017        gaxi::unimplemented::unimplemented_stub()
1018    }
1019
1020    /// Implements [super::client::GroundedGenerationService::check_grounding].
1021    fn check_grounding(
1022        &self,
1023        _req: crate::model::CheckGroundingRequest,
1024        _options: crate::RequestOptions,
1025    ) -> impl std::future::Future<
1026        Output = crate::Result<crate::Response<crate::model::CheckGroundingResponse>>,
1027    > + Send {
1028        gaxi::unimplemented::unimplemented_stub()
1029    }
1030
1031    /// Implements [super::client::GroundedGenerationService::list_operations].
1032    fn list_operations(
1033        &self,
1034        _req: google_cloud_longrunning::model::ListOperationsRequest,
1035        _options: crate::RequestOptions,
1036    ) -> impl std::future::Future<
1037        Output = crate::Result<
1038            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1039        >,
1040    > + Send {
1041        gaxi::unimplemented::unimplemented_stub()
1042    }
1043
1044    /// Implements [super::client::GroundedGenerationService::get_operation].
1045    fn get_operation(
1046        &self,
1047        _req: google_cloud_longrunning::model::GetOperationRequest,
1048        _options: crate::RequestOptions,
1049    ) -> impl std::future::Future<
1050        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1051    > + Send {
1052        gaxi::unimplemented::unimplemented_stub()
1053    }
1054
1055    /// Implements [super::client::GroundedGenerationService::cancel_operation].
1056    fn cancel_operation(
1057        &self,
1058        _req: google_cloud_longrunning::model::CancelOperationRequest,
1059        _options: crate::RequestOptions,
1060    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1061        gaxi::unimplemented::unimplemented_stub()
1062    }
1063}
1064
1065/// Defines the trait used to implement [super::client::IdentityMappingStoreService].
1066///
1067/// Application developers may need to implement this trait to mock
1068/// `client::IdentityMappingStoreService`.  In other use-cases, application developers only
1069/// use `client::IdentityMappingStoreService` and need not be concerned with this trait or
1070/// its implementations.
1071///
1072/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1073/// too. To avoid breaking applications the trait provides a default
1074/// implementation of each method. Most of these implementations just return an
1075/// error.
1076#[cfg(feature = "identity-mapping-store-service")]
1077#[cfg_attr(docsrs, doc(cfg(feature = "identity-mapping-store-service")))]
1078pub trait IdentityMappingStoreService: std::fmt::Debug + Send + Sync {
1079    /// Implements [super::client::IdentityMappingStoreService::create_identity_mapping_store].
1080    fn create_identity_mapping_store(
1081        &self,
1082        _req: crate::model::CreateIdentityMappingStoreRequest,
1083        _options: crate::RequestOptions,
1084    ) -> impl std::future::Future<
1085        Output = crate::Result<crate::Response<crate::model::IdentityMappingStore>>,
1086    > + Send {
1087        gaxi::unimplemented::unimplemented_stub()
1088    }
1089
1090    /// Implements [super::client::IdentityMappingStoreService::get_identity_mapping_store].
1091    fn get_identity_mapping_store(
1092        &self,
1093        _req: crate::model::GetIdentityMappingStoreRequest,
1094        _options: crate::RequestOptions,
1095    ) -> impl std::future::Future<
1096        Output = crate::Result<crate::Response<crate::model::IdentityMappingStore>>,
1097    > + Send {
1098        gaxi::unimplemented::unimplemented_stub()
1099    }
1100
1101    /// Implements [super::client::IdentityMappingStoreService::delete_identity_mapping_store].
1102    fn delete_identity_mapping_store(
1103        &self,
1104        _req: crate::model::DeleteIdentityMappingStoreRequest,
1105        _options: crate::RequestOptions,
1106    ) -> impl std::future::Future<
1107        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1108    > + Send {
1109        gaxi::unimplemented::unimplemented_stub()
1110    }
1111
1112    /// Implements [super::client::IdentityMappingStoreService::import_identity_mappings].
1113    fn import_identity_mappings(
1114        &self,
1115        _req: crate::model::ImportIdentityMappingsRequest,
1116        _options: crate::RequestOptions,
1117    ) -> impl std::future::Future<
1118        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1119    > + Send {
1120        gaxi::unimplemented::unimplemented_stub()
1121    }
1122
1123    /// Implements [super::client::IdentityMappingStoreService::purge_identity_mappings].
1124    fn purge_identity_mappings(
1125        &self,
1126        _req: crate::model::PurgeIdentityMappingsRequest,
1127        _options: crate::RequestOptions,
1128    ) -> impl std::future::Future<
1129        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1130    > + Send {
1131        gaxi::unimplemented::unimplemented_stub()
1132    }
1133
1134    /// Implements [super::client::IdentityMappingStoreService::list_identity_mappings].
1135    fn list_identity_mappings(
1136        &self,
1137        _req: crate::model::ListIdentityMappingsRequest,
1138        _options: crate::RequestOptions,
1139    ) -> impl std::future::Future<
1140        Output = crate::Result<crate::Response<crate::model::ListIdentityMappingsResponse>>,
1141    > + Send {
1142        gaxi::unimplemented::unimplemented_stub()
1143    }
1144
1145    /// Implements [super::client::IdentityMappingStoreService::list_identity_mapping_stores].
1146    fn list_identity_mapping_stores(
1147        &self,
1148        _req: crate::model::ListIdentityMappingStoresRequest,
1149        _options: crate::RequestOptions,
1150    ) -> impl std::future::Future<
1151        Output = crate::Result<crate::Response<crate::model::ListIdentityMappingStoresResponse>>,
1152    > + Send {
1153        gaxi::unimplemented::unimplemented_stub()
1154    }
1155
1156    /// Implements [super::client::IdentityMappingStoreService::list_operations].
1157    fn list_operations(
1158        &self,
1159        _req: google_cloud_longrunning::model::ListOperationsRequest,
1160        _options: crate::RequestOptions,
1161    ) -> impl std::future::Future<
1162        Output = crate::Result<
1163            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1164        >,
1165    > + Send {
1166        gaxi::unimplemented::unimplemented_stub()
1167    }
1168
1169    /// Implements [super::client::IdentityMappingStoreService::get_operation].
1170    fn get_operation(
1171        &self,
1172        _req: google_cloud_longrunning::model::GetOperationRequest,
1173        _options: crate::RequestOptions,
1174    ) -> impl std::future::Future<
1175        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1176    > + Send {
1177        gaxi::unimplemented::unimplemented_stub()
1178    }
1179
1180    /// Implements [super::client::IdentityMappingStoreService::cancel_operation].
1181    fn cancel_operation(
1182        &self,
1183        _req: google_cloud_longrunning::model::CancelOperationRequest,
1184        _options: crate::RequestOptions,
1185    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1186        gaxi::unimplemented::unimplemented_stub()
1187    }
1188
1189    /// Returns the polling error policy.
1190    ///
1191    /// When mocking, this method is typically irrelevant. Do not try to verify
1192    /// it is called by your mocks.
1193    fn get_polling_error_policy(
1194        &self,
1195        _options: &crate::RequestOptions,
1196    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1197        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1198    }
1199
1200    /// Returns the polling backoff policy.
1201    ///
1202    /// When mocking, this method is typically irrelevant. Do not try to verify
1203    /// it is called by your mocks.
1204    fn get_polling_backoff_policy(
1205        &self,
1206        _options: &crate::RequestOptions,
1207    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1208        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1209    }
1210}
1211
1212/// Defines the trait used to implement [super::client::ProjectService].
1213///
1214/// Application developers may need to implement this trait to mock
1215/// `client::ProjectService`.  In other use-cases, application developers only
1216/// use `client::ProjectService` and need not be concerned with this trait or
1217/// its implementations.
1218///
1219/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1220/// too. To avoid breaking applications the trait provides a default
1221/// implementation of each method. Most of these implementations just return an
1222/// error.
1223#[cfg(feature = "project-service")]
1224#[cfg_attr(docsrs, doc(cfg(feature = "project-service")))]
1225pub trait ProjectService: std::fmt::Debug + Send + Sync {
1226    /// Implements [super::client::ProjectService::provision_project].
1227    fn provision_project(
1228        &self,
1229        _req: crate::model::ProvisionProjectRequest,
1230        _options: crate::RequestOptions,
1231    ) -> impl std::future::Future<
1232        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1233    > + Send {
1234        gaxi::unimplemented::unimplemented_stub()
1235    }
1236
1237    /// Implements [super::client::ProjectService::list_operations].
1238    fn list_operations(
1239        &self,
1240        _req: google_cloud_longrunning::model::ListOperationsRequest,
1241        _options: crate::RequestOptions,
1242    ) -> impl std::future::Future<
1243        Output = crate::Result<
1244            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1245        >,
1246    > + Send {
1247        gaxi::unimplemented::unimplemented_stub()
1248    }
1249
1250    /// Implements [super::client::ProjectService::get_operation].
1251    fn get_operation(
1252        &self,
1253        _req: google_cloud_longrunning::model::GetOperationRequest,
1254        _options: crate::RequestOptions,
1255    ) -> impl std::future::Future<
1256        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1257    > + Send {
1258        gaxi::unimplemented::unimplemented_stub()
1259    }
1260
1261    /// Implements [super::client::ProjectService::cancel_operation].
1262    fn cancel_operation(
1263        &self,
1264        _req: google_cloud_longrunning::model::CancelOperationRequest,
1265        _options: crate::RequestOptions,
1266    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1267        gaxi::unimplemented::unimplemented_stub()
1268    }
1269
1270    /// Returns the polling error policy.
1271    ///
1272    /// When mocking, this method is typically irrelevant. Do not try to verify
1273    /// it is called by your mocks.
1274    fn get_polling_error_policy(
1275        &self,
1276        _options: &crate::RequestOptions,
1277    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1278        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1279    }
1280
1281    /// Returns the polling backoff policy.
1282    ///
1283    /// When mocking, this method is typically irrelevant. Do not try to verify
1284    /// it is called by your mocks.
1285    fn get_polling_backoff_policy(
1286        &self,
1287        _options: &crate::RequestOptions,
1288    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1289        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1290    }
1291}
1292
1293/// Defines the trait used to implement [super::client::RankService].
1294///
1295/// Application developers may need to implement this trait to mock
1296/// `client::RankService`.  In other use-cases, application developers only
1297/// use `client::RankService` and need not be concerned with this trait or
1298/// its implementations.
1299///
1300/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1301/// too. To avoid breaking applications the trait provides a default
1302/// implementation of each method. Most of these implementations just return an
1303/// error.
1304#[cfg(feature = "rank-service")]
1305#[cfg_attr(docsrs, doc(cfg(feature = "rank-service")))]
1306pub trait RankService: std::fmt::Debug + Send + Sync {
1307    /// Implements [super::client::RankService::rank].
1308    fn rank(
1309        &self,
1310        _req: crate::model::RankRequest,
1311        _options: crate::RequestOptions,
1312    ) -> impl std::future::Future<
1313        Output = crate::Result<crate::Response<crate::model::RankResponse>>,
1314    > + Send {
1315        gaxi::unimplemented::unimplemented_stub()
1316    }
1317
1318    /// Implements [super::client::RankService::list_operations].
1319    fn list_operations(
1320        &self,
1321        _req: google_cloud_longrunning::model::ListOperationsRequest,
1322        _options: crate::RequestOptions,
1323    ) -> impl std::future::Future<
1324        Output = crate::Result<
1325            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1326        >,
1327    > + Send {
1328        gaxi::unimplemented::unimplemented_stub()
1329    }
1330
1331    /// Implements [super::client::RankService::get_operation].
1332    fn get_operation(
1333        &self,
1334        _req: google_cloud_longrunning::model::GetOperationRequest,
1335        _options: crate::RequestOptions,
1336    ) -> impl std::future::Future<
1337        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1338    > + Send {
1339        gaxi::unimplemented::unimplemented_stub()
1340    }
1341
1342    /// Implements [super::client::RankService::cancel_operation].
1343    fn cancel_operation(
1344        &self,
1345        _req: google_cloud_longrunning::model::CancelOperationRequest,
1346        _options: crate::RequestOptions,
1347    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1348        gaxi::unimplemented::unimplemented_stub()
1349    }
1350}
1351
1352/// Defines the trait used to implement [super::client::RecommendationService].
1353///
1354/// Application developers may need to implement this trait to mock
1355/// `client::RecommendationService`.  In other use-cases, application developers only
1356/// use `client::RecommendationService` and need not be concerned with this trait or
1357/// its implementations.
1358///
1359/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1360/// too. To avoid breaking applications the trait provides a default
1361/// implementation of each method. Most of these implementations just return an
1362/// error.
1363#[cfg(feature = "recommendation-service")]
1364#[cfg_attr(docsrs, doc(cfg(feature = "recommendation-service")))]
1365pub trait RecommendationService: std::fmt::Debug + Send + Sync {
1366    /// Implements [super::client::RecommendationService::recommend].
1367    fn recommend(
1368        &self,
1369        _req: crate::model::RecommendRequest,
1370        _options: crate::RequestOptions,
1371    ) -> impl std::future::Future<
1372        Output = crate::Result<crate::Response<crate::model::RecommendResponse>>,
1373    > + Send {
1374        gaxi::unimplemented::unimplemented_stub()
1375    }
1376
1377    /// Implements [super::client::RecommendationService::list_operations].
1378    fn list_operations(
1379        &self,
1380        _req: google_cloud_longrunning::model::ListOperationsRequest,
1381        _options: crate::RequestOptions,
1382    ) -> impl std::future::Future<
1383        Output = crate::Result<
1384            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1385        >,
1386    > + Send {
1387        gaxi::unimplemented::unimplemented_stub()
1388    }
1389
1390    /// Implements [super::client::RecommendationService::get_operation].
1391    fn get_operation(
1392        &self,
1393        _req: google_cloud_longrunning::model::GetOperationRequest,
1394        _options: crate::RequestOptions,
1395    ) -> impl std::future::Future<
1396        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1397    > + Send {
1398        gaxi::unimplemented::unimplemented_stub()
1399    }
1400
1401    /// Implements [super::client::RecommendationService::cancel_operation].
1402    fn cancel_operation(
1403        &self,
1404        _req: google_cloud_longrunning::model::CancelOperationRequest,
1405        _options: crate::RequestOptions,
1406    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1407        gaxi::unimplemented::unimplemented_stub()
1408    }
1409}
1410
1411/// Defines the trait used to implement [super::client::SchemaService].
1412///
1413/// Application developers may need to implement this trait to mock
1414/// `client::SchemaService`.  In other use-cases, application developers only
1415/// use `client::SchemaService` and need not be concerned with this trait or
1416/// its implementations.
1417///
1418/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1419/// too. To avoid breaking applications the trait provides a default
1420/// implementation of each method. Most of these implementations just return an
1421/// error.
1422#[cfg(feature = "schema-service")]
1423#[cfg_attr(docsrs, doc(cfg(feature = "schema-service")))]
1424pub trait SchemaService: std::fmt::Debug + Send + Sync {
1425    /// Implements [super::client::SchemaService::get_schema].
1426    fn get_schema(
1427        &self,
1428        _req: crate::model::GetSchemaRequest,
1429        _options: crate::RequestOptions,
1430    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Schema>>> + Send
1431    {
1432        gaxi::unimplemented::unimplemented_stub()
1433    }
1434
1435    /// Implements [super::client::SchemaService::list_schemas].
1436    fn list_schemas(
1437        &self,
1438        _req: crate::model::ListSchemasRequest,
1439        _options: crate::RequestOptions,
1440    ) -> impl std::future::Future<
1441        Output = crate::Result<crate::Response<crate::model::ListSchemasResponse>>,
1442    > + Send {
1443        gaxi::unimplemented::unimplemented_stub()
1444    }
1445
1446    /// Implements [super::client::SchemaService::create_schema].
1447    fn create_schema(
1448        &self,
1449        _req: crate::model::CreateSchemaRequest,
1450        _options: crate::RequestOptions,
1451    ) -> impl std::future::Future<
1452        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1453    > + Send {
1454        gaxi::unimplemented::unimplemented_stub()
1455    }
1456
1457    /// Implements [super::client::SchemaService::update_schema].
1458    fn update_schema(
1459        &self,
1460        _req: crate::model::UpdateSchemaRequest,
1461        _options: crate::RequestOptions,
1462    ) -> impl std::future::Future<
1463        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1464    > + Send {
1465        gaxi::unimplemented::unimplemented_stub()
1466    }
1467
1468    /// Implements [super::client::SchemaService::delete_schema].
1469    fn delete_schema(
1470        &self,
1471        _req: crate::model::DeleteSchemaRequest,
1472        _options: crate::RequestOptions,
1473    ) -> impl std::future::Future<
1474        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1475    > + Send {
1476        gaxi::unimplemented::unimplemented_stub()
1477    }
1478
1479    /// Implements [super::client::SchemaService::list_operations].
1480    fn list_operations(
1481        &self,
1482        _req: google_cloud_longrunning::model::ListOperationsRequest,
1483        _options: crate::RequestOptions,
1484    ) -> impl std::future::Future<
1485        Output = crate::Result<
1486            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1487        >,
1488    > + Send {
1489        gaxi::unimplemented::unimplemented_stub()
1490    }
1491
1492    /// Implements [super::client::SchemaService::get_operation].
1493    fn get_operation(
1494        &self,
1495        _req: google_cloud_longrunning::model::GetOperationRequest,
1496        _options: crate::RequestOptions,
1497    ) -> impl std::future::Future<
1498        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1499    > + Send {
1500        gaxi::unimplemented::unimplemented_stub()
1501    }
1502
1503    /// Implements [super::client::SchemaService::cancel_operation].
1504    fn cancel_operation(
1505        &self,
1506        _req: google_cloud_longrunning::model::CancelOperationRequest,
1507        _options: crate::RequestOptions,
1508    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1509        gaxi::unimplemented::unimplemented_stub()
1510    }
1511
1512    /// Returns the polling error policy.
1513    ///
1514    /// When mocking, this method is typically irrelevant. Do not try to verify
1515    /// it is called by your mocks.
1516    fn get_polling_error_policy(
1517        &self,
1518        _options: &crate::RequestOptions,
1519    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1520        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1521    }
1522
1523    /// Returns the polling backoff policy.
1524    ///
1525    /// When mocking, this method is typically irrelevant. Do not try to verify
1526    /// it is called by your mocks.
1527    fn get_polling_backoff_policy(
1528        &self,
1529        _options: &crate::RequestOptions,
1530    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1531        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1532    }
1533}
1534
1535/// Defines the trait used to implement [super::client::SearchService].
1536///
1537/// Application developers may need to implement this trait to mock
1538/// `client::SearchService`.  In other use-cases, application developers only
1539/// use `client::SearchService` and need not be concerned with this trait or
1540/// its implementations.
1541///
1542/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1543/// too. To avoid breaking applications the trait provides a default
1544/// implementation of each method. Most of these implementations just return an
1545/// error.
1546#[cfg(feature = "search-service")]
1547#[cfg_attr(docsrs, doc(cfg(feature = "search-service")))]
1548pub trait SearchService: std::fmt::Debug + Send + Sync {
1549    /// Implements [super::client::SearchService::search].
1550    fn search(
1551        &self,
1552        _req: crate::model::SearchRequest,
1553        _options: crate::RequestOptions,
1554    ) -> impl std::future::Future<
1555        Output = crate::Result<crate::Response<crate::model::SearchResponse>>,
1556    > + Send {
1557        gaxi::unimplemented::unimplemented_stub()
1558    }
1559
1560    /// Implements [super::client::SearchService::search_lite].
1561    fn search_lite(
1562        &self,
1563        _req: crate::model::SearchRequest,
1564        _options: crate::RequestOptions,
1565    ) -> impl std::future::Future<
1566        Output = crate::Result<crate::Response<crate::model::SearchResponse>>,
1567    > + Send {
1568        gaxi::unimplemented::unimplemented_stub()
1569    }
1570
1571    /// Implements [super::client::SearchService::list_operations].
1572    fn list_operations(
1573        &self,
1574        _req: google_cloud_longrunning::model::ListOperationsRequest,
1575        _options: crate::RequestOptions,
1576    ) -> impl std::future::Future<
1577        Output = crate::Result<
1578            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1579        >,
1580    > + Send {
1581        gaxi::unimplemented::unimplemented_stub()
1582    }
1583
1584    /// Implements [super::client::SearchService::get_operation].
1585    fn get_operation(
1586        &self,
1587        _req: google_cloud_longrunning::model::GetOperationRequest,
1588        _options: crate::RequestOptions,
1589    ) -> impl std::future::Future<
1590        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1591    > + Send {
1592        gaxi::unimplemented::unimplemented_stub()
1593    }
1594
1595    /// Implements [super::client::SearchService::cancel_operation].
1596    fn cancel_operation(
1597        &self,
1598        _req: google_cloud_longrunning::model::CancelOperationRequest,
1599        _options: crate::RequestOptions,
1600    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1601        gaxi::unimplemented::unimplemented_stub()
1602    }
1603}
1604
1605/// Defines the trait used to implement [super::client::SearchTuningService].
1606///
1607/// Application developers may need to implement this trait to mock
1608/// `client::SearchTuningService`.  In other use-cases, application developers only
1609/// use `client::SearchTuningService` and need not be concerned with this trait or
1610/// its implementations.
1611///
1612/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1613/// too. To avoid breaking applications the trait provides a default
1614/// implementation of each method. Most of these implementations just return an
1615/// error.
1616#[cfg(feature = "search-tuning-service")]
1617#[cfg_attr(docsrs, doc(cfg(feature = "search-tuning-service")))]
1618pub trait SearchTuningService: std::fmt::Debug + Send + Sync {
1619    /// Implements [super::client::SearchTuningService::train_custom_model].
1620    fn train_custom_model(
1621        &self,
1622        _req: crate::model::TrainCustomModelRequest,
1623        _options: crate::RequestOptions,
1624    ) -> impl std::future::Future<
1625        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1626    > + Send {
1627        gaxi::unimplemented::unimplemented_stub()
1628    }
1629
1630    /// Implements [super::client::SearchTuningService::list_custom_models].
1631    fn list_custom_models(
1632        &self,
1633        _req: crate::model::ListCustomModelsRequest,
1634        _options: crate::RequestOptions,
1635    ) -> impl std::future::Future<
1636        Output = crate::Result<crate::Response<crate::model::ListCustomModelsResponse>>,
1637    > + Send {
1638        gaxi::unimplemented::unimplemented_stub()
1639    }
1640
1641    /// Implements [super::client::SearchTuningService::list_operations].
1642    fn list_operations(
1643        &self,
1644        _req: google_cloud_longrunning::model::ListOperationsRequest,
1645        _options: crate::RequestOptions,
1646    ) -> impl std::future::Future<
1647        Output = crate::Result<
1648            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1649        >,
1650    > + Send {
1651        gaxi::unimplemented::unimplemented_stub()
1652    }
1653
1654    /// Implements [super::client::SearchTuningService::get_operation].
1655    fn get_operation(
1656        &self,
1657        _req: google_cloud_longrunning::model::GetOperationRequest,
1658        _options: crate::RequestOptions,
1659    ) -> impl std::future::Future<
1660        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1661    > + Send {
1662        gaxi::unimplemented::unimplemented_stub()
1663    }
1664
1665    /// Implements [super::client::SearchTuningService::cancel_operation].
1666    fn cancel_operation(
1667        &self,
1668        _req: google_cloud_longrunning::model::CancelOperationRequest,
1669        _options: crate::RequestOptions,
1670    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1671        gaxi::unimplemented::unimplemented_stub()
1672    }
1673
1674    /// Returns the polling error policy.
1675    ///
1676    /// When mocking, this method is typically irrelevant. Do not try to verify
1677    /// it is called by your mocks.
1678    fn get_polling_error_policy(
1679        &self,
1680        _options: &crate::RequestOptions,
1681    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1682        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1683    }
1684
1685    /// Returns the polling backoff policy.
1686    ///
1687    /// When mocking, this method is typically irrelevant. Do not try to verify
1688    /// it is called by your mocks.
1689    fn get_polling_backoff_policy(
1690        &self,
1691        _options: &crate::RequestOptions,
1692    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1693        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1694    }
1695}
1696
1697/// Defines the trait used to implement [super::client::ServingConfigService].
1698///
1699/// Application developers may need to implement this trait to mock
1700/// `client::ServingConfigService`.  In other use-cases, application developers only
1701/// use `client::ServingConfigService` and need not be concerned with this trait or
1702/// its implementations.
1703///
1704/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1705/// too. To avoid breaking applications the trait provides a default
1706/// implementation of each method. Most of these implementations just return an
1707/// error.
1708#[cfg(feature = "serving-config-service")]
1709#[cfg_attr(docsrs, doc(cfg(feature = "serving-config-service")))]
1710pub trait ServingConfigService: std::fmt::Debug + Send + Sync {
1711    /// Implements [super::client::ServingConfigService::update_serving_config].
1712    fn update_serving_config(
1713        &self,
1714        _req: crate::model::UpdateServingConfigRequest,
1715        _options: crate::RequestOptions,
1716    ) -> impl std::future::Future<
1717        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1718    > + Send {
1719        gaxi::unimplemented::unimplemented_stub()
1720    }
1721
1722    /// Implements [super::client::ServingConfigService::list_operations].
1723    fn list_operations(
1724        &self,
1725        _req: google_cloud_longrunning::model::ListOperationsRequest,
1726        _options: crate::RequestOptions,
1727    ) -> impl std::future::Future<
1728        Output = crate::Result<
1729            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1730        >,
1731    > + Send {
1732        gaxi::unimplemented::unimplemented_stub()
1733    }
1734
1735    /// Implements [super::client::ServingConfigService::get_operation].
1736    fn get_operation(
1737        &self,
1738        _req: google_cloud_longrunning::model::GetOperationRequest,
1739        _options: crate::RequestOptions,
1740    ) -> impl std::future::Future<
1741        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1742    > + Send {
1743        gaxi::unimplemented::unimplemented_stub()
1744    }
1745
1746    /// Implements [super::client::ServingConfigService::cancel_operation].
1747    fn cancel_operation(
1748        &self,
1749        _req: google_cloud_longrunning::model::CancelOperationRequest,
1750        _options: crate::RequestOptions,
1751    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1752        gaxi::unimplemented::unimplemented_stub()
1753    }
1754}
1755
1756/// Defines the trait used to implement [super::client::SessionService].
1757///
1758/// Application developers may need to implement this trait to mock
1759/// `client::SessionService`.  In other use-cases, application developers only
1760/// use `client::SessionService` and need not be concerned with this trait or
1761/// its implementations.
1762///
1763/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1764/// too. To avoid breaking applications the trait provides a default
1765/// implementation of each method. Most of these implementations just return an
1766/// error.
1767#[cfg(feature = "session-service")]
1768#[cfg_attr(docsrs, doc(cfg(feature = "session-service")))]
1769pub trait SessionService: std::fmt::Debug + Send + Sync {
1770    /// Implements [super::client::SessionService::create_session].
1771    fn create_session(
1772        &self,
1773        _req: crate::model::CreateSessionRequest,
1774        _options: crate::RequestOptions,
1775    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1776    {
1777        gaxi::unimplemented::unimplemented_stub()
1778    }
1779
1780    /// Implements [super::client::SessionService::delete_session].
1781    fn delete_session(
1782        &self,
1783        _req: crate::model::DeleteSessionRequest,
1784        _options: crate::RequestOptions,
1785    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1786        gaxi::unimplemented::unimplemented_stub()
1787    }
1788
1789    /// Implements [super::client::SessionService::update_session].
1790    fn update_session(
1791        &self,
1792        _req: crate::model::UpdateSessionRequest,
1793        _options: crate::RequestOptions,
1794    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1795    {
1796        gaxi::unimplemented::unimplemented_stub()
1797    }
1798
1799    /// Implements [super::client::SessionService::get_session].
1800    fn get_session(
1801        &self,
1802        _req: crate::model::GetSessionRequest,
1803        _options: crate::RequestOptions,
1804    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1805    {
1806        gaxi::unimplemented::unimplemented_stub()
1807    }
1808
1809    /// Implements [super::client::SessionService::list_sessions].
1810    fn list_sessions(
1811        &self,
1812        _req: crate::model::ListSessionsRequest,
1813        _options: crate::RequestOptions,
1814    ) -> impl std::future::Future<
1815        Output = crate::Result<crate::Response<crate::model::ListSessionsResponse>>,
1816    > + Send {
1817        gaxi::unimplemented::unimplemented_stub()
1818    }
1819
1820    /// Implements [super::client::SessionService::list_operations].
1821    fn list_operations(
1822        &self,
1823        _req: google_cloud_longrunning::model::ListOperationsRequest,
1824        _options: crate::RequestOptions,
1825    ) -> impl std::future::Future<
1826        Output = crate::Result<
1827            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1828        >,
1829    > + Send {
1830        gaxi::unimplemented::unimplemented_stub()
1831    }
1832
1833    /// Implements [super::client::SessionService::get_operation].
1834    fn get_operation(
1835        &self,
1836        _req: google_cloud_longrunning::model::GetOperationRequest,
1837        _options: crate::RequestOptions,
1838    ) -> impl std::future::Future<
1839        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1840    > + Send {
1841        gaxi::unimplemented::unimplemented_stub()
1842    }
1843
1844    /// Implements [super::client::SessionService::cancel_operation].
1845    fn cancel_operation(
1846        &self,
1847        _req: google_cloud_longrunning::model::CancelOperationRequest,
1848        _options: crate::RequestOptions,
1849    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1850        gaxi::unimplemented::unimplemented_stub()
1851    }
1852}
1853
1854/// Defines the trait used to implement [super::client::SiteSearchEngineService].
1855///
1856/// Application developers may need to implement this trait to mock
1857/// `client::SiteSearchEngineService`.  In other use-cases, application developers only
1858/// use `client::SiteSearchEngineService` and need not be concerned with this trait or
1859/// its implementations.
1860///
1861/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1862/// too. To avoid breaking applications the trait provides a default
1863/// implementation of each method. Most of these implementations just return an
1864/// error.
1865#[cfg(feature = "site-search-engine-service")]
1866#[cfg_attr(docsrs, doc(cfg(feature = "site-search-engine-service")))]
1867pub trait SiteSearchEngineService: std::fmt::Debug + Send + Sync {
1868    /// Implements [super::client::SiteSearchEngineService::get_site_search_engine].
1869    fn get_site_search_engine(
1870        &self,
1871        _req: crate::model::GetSiteSearchEngineRequest,
1872        _options: crate::RequestOptions,
1873    ) -> impl std::future::Future<
1874        Output = crate::Result<crate::Response<crate::model::SiteSearchEngine>>,
1875    > + Send {
1876        gaxi::unimplemented::unimplemented_stub()
1877    }
1878
1879    /// Implements [super::client::SiteSearchEngineService::create_target_site].
1880    fn create_target_site(
1881        &self,
1882        _req: crate::model::CreateTargetSiteRequest,
1883        _options: crate::RequestOptions,
1884    ) -> impl std::future::Future<
1885        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1886    > + Send {
1887        gaxi::unimplemented::unimplemented_stub()
1888    }
1889
1890    /// Implements [super::client::SiteSearchEngineService::batch_create_target_sites].
1891    fn batch_create_target_sites(
1892        &self,
1893        _req: crate::model::BatchCreateTargetSitesRequest,
1894        _options: crate::RequestOptions,
1895    ) -> impl std::future::Future<
1896        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1897    > + Send {
1898        gaxi::unimplemented::unimplemented_stub()
1899    }
1900
1901    /// Implements [super::client::SiteSearchEngineService::get_target_site].
1902    fn get_target_site(
1903        &self,
1904        _req: crate::model::GetTargetSiteRequest,
1905        _options: crate::RequestOptions,
1906    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::TargetSite>>> + Send
1907    {
1908        gaxi::unimplemented::unimplemented_stub()
1909    }
1910
1911    /// Implements [super::client::SiteSearchEngineService::update_target_site].
1912    fn update_target_site(
1913        &self,
1914        _req: crate::model::UpdateTargetSiteRequest,
1915        _options: crate::RequestOptions,
1916    ) -> impl std::future::Future<
1917        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1918    > + Send {
1919        gaxi::unimplemented::unimplemented_stub()
1920    }
1921
1922    /// Implements [super::client::SiteSearchEngineService::delete_target_site].
1923    fn delete_target_site(
1924        &self,
1925        _req: crate::model::DeleteTargetSiteRequest,
1926        _options: crate::RequestOptions,
1927    ) -> impl std::future::Future<
1928        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1929    > + Send {
1930        gaxi::unimplemented::unimplemented_stub()
1931    }
1932
1933    /// Implements [super::client::SiteSearchEngineService::list_target_sites].
1934    fn list_target_sites(
1935        &self,
1936        _req: crate::model::ListTargetSitesRequest,
1937        _options: crate::RequestOptions,
1938    ) -> impl std::future::Future<
1939        Output = crate::Result<crate::Response<crate::model::ListTargetSitesResponse>>,
1940    > + Send {
1941        gaxi::unimplemented::unimplemented_stub()
1942    }
1943
1944    /// Implements [super::client::SiteSearchEngineService::create_sitemap].
1945    fn create_sitemap(
1946        &self,
1947        _req: crate::model::CreateSitemapRequest,
1948        _options: crate::RequestOptions,
1949    ) -> impl std::future::Future<
1950        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1951    > + Send {
1952        gaxi::unimplemented::unimplemented_stub()
1953    }
1954
1955    /// Implements [super::client::SiteSearchEngineService::delete_sitemap].
1956    fn delete_sitemap(
1957        &self,
1958        _req: crate::model::DeleteSitemapRequest,
1959        _options: crate::RequestOptions,
1960    ) -> impl std::future::Future<
1961        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1962    > + Send {
1963        gaxi::unimplemented::unimplemented_stub()
1964    }
1965
1966    /// Implements [super::client::SiteSearchEngineService::fetch_sitemaps].
1967    fn fetch_sitemaps(
1968        &self,
1969        _req: crate::model::FetchSitemapsRequest,
1970        _options: crate::RequestOptions,
1971    ) -> impl std::future::Future<
1972        Output = crate::Result<crate::Response<crate::model::FetchSitemapsResponse>>,
1973    > + Send {
1974        gaxi::unimplemented::unimplemented_stub()
1975    }
1976
1977    /// Implements [super::client::SiteSearchEngineService::enable_advanced_site_search].
1978    fn enable_advanced_site_search(
1979        &self,
1980        _req: crate::model::EnableAdvancedSiteSearchRequest,
1981        _options: crate::RequestOptions,
1982    ) -> impl std::future::Future<
1983        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1984    > + Send {
1985        gaxi::unimplemented::unimplemented_stub()
1986    }
1987
1988    /// Implements [super::client::SiteSearchEngineService::disable_advanced_site_search].
1989    fn disable_advanced_site_search(
1990        &self,
1991        _req: crate::model::DisableAdvancedSiteSearchRequest,
1992        _options: crate::RequestOptions,
1993    ) -> impl std::future::Future<
1994        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1995    > + Send {
1996        gaxi::unimplemented::unimplemented_stub()
1997    }
1998
1999    /// Implements [super::client::SiteSearchEngineService::recrawl_uris].
2000    fn recrawl_uris(
2001        &self,
2002        _req: crate::model::RecrawlUrisRequest,
2003        _options: crate::RequestOptions,
2004    ) -> impl std::future::Future<
2005        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2006    > + Send {
2007        gaxi::unimplemented::unimplemented_stub()
2008    }
2009
2010    /// Implements [super::client::SiteSearchEngineService::batch_verify_target_sites].
2011    fn batch_verify_target_sites(
2012        &self,
2013        _req: crate::model::BatchVerifyTargetSitesRequest,
2014        _options: crate::RequestOptions,
2015    ) -> impl std::future::Future<
2016        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2017    > + Send {
2018        gaxi::unimplemented::unimplemented_stub()
2019    }
2020
2021    /// Implements [super::client::SiteSearchEngineService::fetch_domain_verification_status].
2022    fn fetch_domain_verification_status(
2023        &self,
2024        _req: crate::model::FetchDomainVerificationStatusRequest,
2025        _options: crate::RequestOptions,
2026    ) -> impl std::future::Future<
2027        Output = crate::Result<
2028            crate::Response<crate::model::FetchDomainVerificationStatusResponse>,
2029        >,
2030    > + Send {
2031        gaxi::unimplemented::unimplemented_stub()
2032    }
2033
2034    /// Implements [super::client::SiteSearchEngineService::list_operations].
2035    fn list_operations(
2036        &self,
2037        _req: google_cloud_longrunning::model::ListOperationsRequest,
2038        _options: crate::RequestOptions,
2039    ) -> impl std::future::Future<
2040        Output = crate::Result<
2041            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2042        >,
2043    > + Send {
2044        gaxi::unimplemented::unimplemented_stub()
2045    }
2046
2047    /// Implements [super::client::SiteSearchEngineService::get_operation].
2048    fn get_operation(
2049        &self,
2050        _req: google_cloud_longrunning::model::GetOperationRequest,
2051        _options: crate::RequestOptions,
2052    ) -> impl std::future::Future<
2053        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2054    > + Send {
2055        gaxi::unimplemented::unimplemented_stub()
2056    }
2057
2058    /// Implements [super::client::SiteSearchEngineService::cancel_operation].
2059    fn cancel_operation(
2060        &self,
2061        _req: google_cloud_longrunning::model::CancelOperationRequest,
2062        _options: crate::RequestOptions,
2063    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2064        gaxi::unimplemented::unimplemented_stub()
2065    }
2066
2067    /// Returns the polling error policy.
2068    ///
2069    /// When mocking, this method is typically irrelevant. Do not try to verify
2070    /// it is called by your mocks.
2071    fn get_polling_error_policy(
2072        &self,
2073        _options: &crate::RequestOptions,
2074    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2075        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2076    }
2077
2078    /// Returns the polling backoff policy.
2079    ///
2080    /// When mocking, this method is typically irrelevant. Do not try to verify
2081    /// it is called by your mocks.
2082    fn get_polling_backoff_policy(
2083        &self,
2084        _options: &crate::RequestOptions,
2085    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2086        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2087    }
2088}
2089
2090/// Defines the trait used to implement [super::client::UserEventService].
2091///
2092/// Application developers may need to implement this trait to mock
2093/// `client::UserEventService`.  In other use-cases, application developers only
2094/// use `client::UserEventService` and need not be concerned with this trait or
2095/// its implementations.
2096///
2097/// Services gain new RPCs routinely. Consequently, this trait gains new methods
2098/// too. To avoid breaking applications the trait provides a default
2099/// implementation of each method. Most of these implementations just return an
2100/// error.
2101#[cfg(feature = "user-event-service")]
2102#[cfg_attr(docsrs, doc(cfg(feature = "user-event-service")))]
2103pub trait UserEventService: std::fmt::Debug + Send + Sync {
2104    /// Implements [super::client::UserEventService::write_user_event].
2105    fn write_user_event(
2106        &self,
2107        _req: crate::model::WriteUserEventRequest,
2108        _options: crate::RequestOptions,
2109    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::UserEvent>>> + Send
2110    {
2111        gaxi::unimplemented::unimplemented_stub()
2112    }
2113
2114    /// Implements [super::client::UserEventService::collect_user_event].
2115    fn collect_user_event(
2116        &self,
2117        _req: crate::model::CollectUserEventRequest,
2118        _options: crate::RequestOptions,
2119    ) -> impl std::future::Future<
2120        Output = crate::Result<crate::Response<google_cloud_api::model::HttpBody>>,
2121    > + Send {
2122        gaxi::unimplemented::unimplemented_stub()
2123    }
2124
2125    /// Implements [super::client::UserEventService::purge_user_events].
2126    fn purge_user_events(
2127        &self,
2128        _req: crate::model::PurgeUserEventsRequest,
2129        _options: crate::RequestOptions,
2130    ) -> impl std::future::Future<
2131        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2132    > + Send {
2133        gaxi::unimplemented::unimplemented_stub()
2134    }
2135
2136    /// Implements [super::client::UserEventService::import_user_events].
2137    fn import_user_events(
2138        &self,
2139        _req: crate::model::ImportUserEventsRequest,
2140        _options: crate::RequestOptions,
2141    ) -> impl std::future::Future<
2142        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2143    > + Send {
2144        gaxi::unimplemented::unimplemented_stub()
2145    }
2146
2147    /// Implements [super::client::UserEventService::list_operations].
2148    fn list_operations(
2149        &self,
2150        _req: google_cloud_longrunning::model::ListOperationsRequest,
2151        _options: crate::RequestOptions,
2152    ) -> impl std::future::Future<
2153        Output = crate::Result<
2154            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2155        >,
2156    > + Send {
2157        gaxi::unimplemented::unimplemented_stub()
2158    }
2159
2160    /// Implements [super::client::UserEventService::get_operation].
2161    fn get_operation(
2162        &self,
2163        _req: google_cloud_longrunning::model::GetOperationRequest,
2164        _options: crate::RequestOptions,
2165    ) -> impl std::future::Future<
2166        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2167    > + Send {
2168        gaxi::unimplemented::unimplemented_stub()
2169    }
2170
2171    /// Implements [super::client::UserEventService::cancel_operation].
2172    fn cancel_operation(
2173        &self,
2174        _req: google_cloud_longrunning::model::CancelOperationRequest,
2175        _options: crate::RequestOptions,
2176    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2177        gaxi::unimplemented::unimplemented_stub()
2178    }
2179
2180    /// Returns the polling error policy.
2181    ///
2182    /// When mocking, this method is typically irrelevant. Do not try to verify
2183    /// it is called by your mocks.
2184    fn get_polling_error_policy(
2185        &self,
2186        _options: &crate::RequestOptions,
2187    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2188        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2189    }
2190
2191    /// Returns the polling backoff policy.
2192    ///
2193    /// When mocking, this method is typically irrelevant. Do not try to verify
2194    /// it is called by your mocks.
2195    fn get_polling_backoff_policy(
2196        &self,
2197        _options: &crate::RequestOptions,
2198    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2199        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2200    }
2201}
2202
2203/// Defines the trait used to implement [super::client::UserLicenseService].
2204///
2205/// Application developers may need to implement this trait to mock
2206/// `client::UserLicenseService`.  In other use-cases, application developers only
2207/// use `client::UserLicenseService` and need not be concerned with this trait or
2208/// its implementations.
2209///
2210/// Services gain new RPCs routinely. Consequently, this trait gains new methods
2211/// too. To avoid breaking applications the trait provides a default
2212/// implementation of each method. Most of these implementations just return an
2213/// error.
2214#[cfg(feature = "user-license-service")]
2215#[cfg_attr(docsrs, doc(cfg(feature = "user-license-service")))]
2216pub trait UserLicenseService: std::fmt::Debug + Send + Sync {
2217    /// Implements [super::client::UserLicenseService::list_user_licenses].
2218    fn list_user_licenses(
2219        &self,
2220        _req: crate::model::ListUserLicensesRequest,
2221        _options: crate::RequestOptions,
2222    ) -> impl std::future::Future<
2223        Output = crate::Result<crate::Response<crate::model::ListUserLicensesResponse>>,
2224    > + Send {
2225        gaxi::unimplemented::unimplemented_stub()
2226    }
2227
2228    /// Implements [super::client::UserLicenseService::batch_update_user_licenses].
2229    fn batch_update_user_licenses(
2230        &self,
2231        _req: crate::model::BatchUpdateUserLicensesRequest,
2232        _options: crate::RequestOptions,
2233    ) -> impl std::future::Future<
2234        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2235    > + Send {
2236        gaxi::unimplemented::unimplemented_stub()
2237    }
2238
2239    /// Implements [super::client::UserLicenseService::list_operations].
2240    fn list_operations(
2241        &self,
2242        _req: google_cloud_longrunning::model::ListOperationsRequest,
2243        _options: crate::RequestOptions,
2244    ) -> impl std::future::Future<
2245        Output = crate::Result<
2246            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2247        >,
2248    > + Send {
2249        gaxi::unimplemented::unimplemented_stub()
2250    }
2251
2252    /// Implements [super::client::UserLicenseService::get_operation].
2253    fn get_operation(
2254        &self,
2255        _req: google_cloud_longrunning::model::GetOperationRequest,
2256        _options: crate::RequestOptions,
2257    ) -> impl std::future::Future<
2258        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2259    > + Send {
2260        gaxi::unimplemented::unimplemented_stub()
2261    }
2262
2263    /// Implements [super::client::UserLicenseService::cancel_operation].
2264    fn cancel_operation(
2265        &self,
2266        _req: google_cloud_longrunning::model::CancelOperationRequest,
2267        _options: crate::RequestOptions,
2268    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2269        gaxi::unimplemented::unimplemented_stub()
2270    }
2271
2272    /// Returns the polling error policy.
2273    ///
2274    /// When mocking, this method is typically irrelevant. Do not try to verify
2275    /// it is called by your mocks.
2276    fn get_polling_error_policy(
2277        &self,
2278        _options: &crate::RequestOptions,
2279    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2280        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2281    }
2282
2283    /// Returns the polling backoff policy.
2284    ///
2285    /// When mocking, this method is typically irrelevant. Do not try to verify
2286    /// it is called by your mocks.
2287    fn get_polling_backoff_policy(
2288        &self,
2289        _options: &crate::RequestOptions,
2290    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2291        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2292    }
2293}