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