Skip to main content

google_cloud_retail_v2/
stub.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::AnalyticsService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::AnalyticsService`.  In other use-cases, application developers only
33/// use `client::AnalyticsService` and need not be concerned with this trait or
34/// its implementations.
35///
36/// Services gain new RPCs routinely. Consequently, this trait gains new methods
37/// too. To avoid breaking applications the trait provides a default
38/// implementation of each method. Most of these implementations just return an
39/// error.
40pub trait AnalyticsService: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::AnalyticsService::export_analytics_metrics].
42    fn export_analytics_metrics(
43        &self,
44        _req: crate::model::ExportAnalyticsMetricsRequest,
45        _options: crate::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::AnalyticsService::list_operations].
53    fn list_operations(
54        &self,
55        _req: google_cloud_longrunning::model::ListOperationsRequest,
56        _options: crate::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<
59            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
60        >,
61    > + Send {
62        gaxi::unimplemented::unimplemented_stub()
63    }
64
65    /// Implements [super::client::AnalyticsService::get_operation].
66    fn get_operation(
67        &self,
68        _req: google_cloud_longrunning::model::GetOperationRequest,
69        _options: crate::RequestOptions,
70    ) -> impl std::future::Future<
71        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
72    > + Send {
73        gaxi::unimplemented::unimplemented_stub()
74    }
75
76    /// Returns the polling error policy.
77    ///
78    /// When mocking, this method is typically irrelevant. Do not try to verify
79    /// it is called by your mocks.
80    fn get_polling_error_policy(
81        &self,
82        _options: &crate::RequestOptions,
83    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
84        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
85    }
86
87    /// Returns the polling backoff policy.
88    ///
89    /// When mocking, this method is typically irrelevant. Do not try to verify
90    /// it is called by your mocks.
91    fn get_polling_backoff_policy(
92        &self,
93        _options: &crate::RequestOptions,
94    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
95        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
96    }
97
98    #[doc(hidden)]
99    /// Returns the poller options.
100    ///
101    /// When mocking, this method is typically irrelevant. Do not try to verify
102    /// it is called by your mocks.
103    fn get_poller_options(
104        &self,
105        _options: &crate::RequestOptions,
106    ) -> google_cloud_lro::PollerOptions {
107        google_cloud_lro::PollerOptions::default()
108    }
109}
110
111/// Defines the trait used to implement [super::client::CatalogService].
112///
113/// Application developers may need to implement this trait to mock
114/// `client::CatalogService`.  In other use-cases, application developers only
115/// use `client::CatalogService` and need not be concerned with this trait or
116/// its implementations.
117///
118/// Services gain new RPCs routinely. Consequently, this trait gains new methods
119/// too. To avoid breaking applications the trait provides a default
120/// implementation of each method. Most of these implementations just return an
121/// error.
122pub trait CatalogService: std::fmt::Debug + Send + Sync {
123    /// Implements [super::client::CatalogService::list_catalogs].
124    fn list_catalogs(
125        &self,
126        _req: crate::model::ListCatalogsRequest,
127        _options: crate::RequestOptions,
128    ) -> impl std::future::Future<
129        Output = crate::Result<crate::Response<crate::model::ListCatalogsResponse>>,
130    > + Send {
131        gaxi::unimplemented::unimplemented_stub()
132    }
133
134    /// Implements [super::client::CatalogService::update_catalog].
135    fn update_catalog(
136        &self,
137        _req: crate::model::UpdateCatalogRequest,
138        _options: crate::RequestOptions,
139    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Catalog>>> + Send
140    {
141        gaxi::unimplemented::unimplemented_stub()
142    }
143
144    /// Implements [super::client::CatalogService::set_default_branch].
145    fn set_default_branch(
146        &self,
147        _req: crate::model::SetDefaultBranchRequest,
148        _options: crate::RequestOptions,
149    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::CatalogService::get_default_branch].
154    fn get_default_branch(
155        &self,
156        _req: crate::model::GetDefaultBranchRequest,
157        _options: crate::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<crate::Response<crate::model::GetDefaultBranchResponse>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::CatalogService::get_completion_config].
165    fn get_completion_config(
166        &self,
167        _req: crate::model::GetCompletionConfigRequest,
168        _options: crate::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<crate::Response<crate::model::CompletionConfig>>,
171    > + Send {
172        gaxi::unimplemented::unimplemented_stub()
173    }
174
175    /// Implements [super::client::CatalogService::update_completion_config].
176    fn update_completion_config(
177        &self,
178        _req: crate::model::UpdateCompletionConfigRequest,
179        _options: crate::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<crate::Response<crate::model::CompletionConfig>>,
182    > + Send {
183        gaxi::unimplemented::unimplemented_stub()
184    }
185
186    /// Implements [super::client::CatalogService::get_attributes_config].
187    fn get_attributes_config(
188        &self,
189        _req: crate::model::GetAttributesConfigRequest,
190        _options: crate::RequestOptions,
191    ) -> impl std::future::Future<
192        Output = crate::Result<crate::Response<crate::model::AttributesConfig>>,
193    > + Send {
194        gaxi::unimplemented::unimplemented_stub()
195    }
196
197    /// Implements [super::client::CatalogService::update_attributes_config].
198    fn update_attributes_config(
199        &self,
200        _req: crate::model::UpdateAttributesConfigRequest,
201        _options: crate::RequestOptions,
202    ) -> impl std::future::Future<
203        Output = crate::Result<crate::Response<crate::model::AttributesConfig>>,
204    > + Send {
205        gaxi::unimplemented::unimplemented_stub()
206    }
207
208    /// Implements [super::client::CatalogService::add_catalog_attribute].
209    fn add_catalog_attribute(
210        &self,
211        _req: crate::model::AddCatalogAttributeRequest,
212        _options: crate::RequestOptions,
213    ) -> impl std::future::Future<
214        Output = crate::Result<crate::Response<crate::model::AttributesConfig>>,
215    > + Send {
216        gaxi::unimplemented::unimplemented_stub()
217    }
218
219    /// Implements [super::client::CatalogService::remove_catalog_attribute].
220    fn remove_catalog_attribute(
221        &self,
222        _req: crate::model::RemoveCatalogAttributeRequest,
223        _options: crate::RequestOptions,
224    ) -> impl std::future::Future<
225        Output = crate::Result<crate::Response<crate::model::AttributesConfig>>,
226    > + Send {
227        gaxi::unimplemented::unimplemented_stub()
228    }
229
230    /// Implements [super::client::CatalogService::replace_catalog_attribute].
231    fn replace_catalog_attribute(
232        &self,
233        _req: crate::model::ReplaceCatalogAttributeRequest,
234        _options: crate::RequestOptions,
235    ) -> impl std::future::Future<
236        Output = crate::Result<crate::Response<crate::model::AttributesConfig>>,
237    > + Send {
238        gaxi::unimplemented::unimplemented_stub()
239    }
240
241    /// Implements [super::client::CatalogService::list_operations].
242    fn list_operations(
243        &self,
244        _req: google_cloud_longrunning::model::ListOperationsRequest,
245        _options: crate::RequestOptions,
246    ) -> impl std::future::Future<
247        Output = crate::Result<
248            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
249        >,
250    > + Send {
251        gaxi::unimplemented::unimplemented_stub()
252    }
253
254    /// Implements [super::client::CatalogService::get_operation].
255    fn get_operation(
256        &self,
257        _req: google_cloud_longrunning::model::GetOperationRequest,
258        _options: crate::RequestOptions,
259    ) -> impl std::future::Future<
260        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
261    > + Send {
262        gaxi::unimplemented::unimplemented_stub()
263    }
264}
265
266/// Defines the trait used to implement [super::client::CompletionService].
267///
268/// Application developers may need to implement this trait to mock
269/// `client::CompletionService`.  In other use-cases, application developers only
270/// use `client::CompletionService` and need not be concerned with this trait or
271/// its implementations.
272///
273/// Services gain new RPCs routinely. Consequently, this trait gains new methods
274/// too. To avoid breaking applications the trait provides a default
275/// implementation of each method. Most of these implementations just return an
276/// error.
277pub trait CompletionService: std::fmt::Debug + Send + Sync {
278    /// Implements [super::client::CompletionService::complete_query].
279    fn complete_query(
280        &self,
281        _req: crate::model::CompleteQueryRequest,
282        _options: crate::RequestOptions,
283    ) -> impl std::future::Future<
284        Output = crate::Result<crate::Response<crate::model::CompleteQueryResponse>>,
285    > + Send {
286        gaxi::unimplemented::unimplemented_stub()
287    }
288
289    /// Implements [super::client::CompletionService::import_completion_data].
290    fn import_completion_data(
291        &self,
292        _req: crate::model::ImportCompletionDataRequest,
293        _options: crate::RequestOptions,
294    ) -> impl std::future::Future<
295        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
296    > + Send {
297        gaxi::unimplemented::unimplemented_stub()
298    }
299
300    /// Implements [super::client::CompletionService::list_operations].
301    fn list_operations(
302        &self,
303        _req: google_cloud_longrunning::model::ListOperationsRequest,
304        _options: crate::RequestOptions,
305    ) -> impl std::future::Future<
306        Output = crate::Result<
307            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
308        >,
309    > + Send {
310        gaxi::unimplemented::unimplemented_stub()
311    }
312
313    /// Implements [super::client::CompletionService::get_operation].
314    fn get_operation(
315        &self,
316        _req: google_cloud_longrunning::model::GetOperationRequest,
317        _options: crate::RequestOptions,
318    ) -> impl std::future::Future<
319        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
320    > + Send {
321        gaxi::unimplemented::unimplemented_stub()
322    }
323
324    /// Returns the polling error policy.
325    ///
326    /// When mocking, this method is typically irrelevant. Do not try to verify
327    /// it is called by your mocks.
328    fn get_polling_error_policy(
329        &self,
330        _options: &crate::RequestOptions,
331    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
332        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
333    }
334
335    /// Returns the polling backoff policy.
336    ///
337    /// When mocking, this method is typically irrelevant. Do not try to verify
338    /// it is called by your mocks.
339    fn get_polling_backoff_policy(
340        &self,
341        _options: &crate::RequestOptions,
342    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
343        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
344    }
345
346    #[doc(hidden)]
347    /// Returns the poller options.
348    ///
349    /// When mocking, this method is typically irrelevant. Do not try to verify
350    /// it is called by your mocks.
351    fn get_poller_options(
352        &self,
353        _options: &crate::RequestOptions,
354    ) -> google_cloud_lro::PollerOptions {
355        google_cloud_lro::PollerOptions::default()
356    }
357}
358
359/// Defines the trait used to implement [super::client::ControlService].
360///
361/// Application developers may need to implement this trait to mock
362/// `client::ControlService`.  In other use-cases, application developers only
363/// use `client::ControlService` and need not be concerned with this trait or
364/// its implementations.
365///
366/// Services gain new RPCs routinely. Consequently, this trait gains new methods
367/// too. To avoid breaking applications the trait provides a default
368/// implementation of each method. Most of these implementations just return an
369/// error.
370pub trait ControlService: std::fmt::Debug + Send + Sync {
371    /// Implements [super::client::ControlService::create_control].
372    fn create_control(
373        &self,
374        _req: crate::model::CreateControlRequest,
375        _options: crate::RequestOptions,
376    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
377    {
378        gaxi::unimplemented::unimplemented_stub()
379    }
380
381    /// Implements [super::client::ControlService::delete_control].
382    fn delete_control(
383        &self,
384        _req: crate::model::DeleteControlRequest,
385        _options: crate::RequestOptions,
386    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
387        gaxi::unimplemented::unimplemented_stub()
388    }
389
390    /// Implements [super::client::ControlService::update_control].
391    fn update_control(
392        &self,
393        _req: crate::model::UpdateControlRequest,
394        _options: crate::RequestOptions,
395    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
396    {
397        gaxi::unimplemented::unimplemented_stub()
398    }
399
400    /// Implements [super::client::ControlService::get_control].
401    fn get_control(
402        &self,
403        _req: crate::model::GetControlRequest,
404        _options: crate::RequestOptions,
405    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
406    {
407        gaxi::unimplemented::unimplemented_stub()
408    }
409
410    /// Implements [super::client::ControlService::list_controls].
411    fn list_controls(
412        &self,
413        _req: crate::model::ListControlsRequest,
414        _options: crate::RequestOptions,
415    ) -> impl std::future::Future<
416        Output = crate::Result<crate::Response<crate::model::ListControlsResponse>>,
417    > + Send {
418        gaxi::unimplemented::unimplemented_stub()
419    }
420
421    /// Implements [super::client::ControlService::list_operations].
422    fn list_operations(
423        &self,
424        _req: google_cloud_longrunning::model::ListOperationsRequest,
425        _options: crate::RequestOptions,
426    ) -> impl std::future::Future<
427        Output = crate::Result<
428            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
429        >,
430    > + Send {
431        gaxi::unimplemented::unimplemented_stub()
432    }
433
434    /// Implements [super::client::ControlService::get_operation].
435    fn get_operation(
436        &self,
437        _req: google_cloud_longrunning::model::GetOperationRequest,
438        _options: crate::RequestOptions,
439    ) -> impl std::future::Future<
440        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
441    > + Send {
442        gaxi::unimplemented::unimplemented_stub()
443    }
444}
445
446/// Defines the trait used to implement [super::client::ConversationalSearchService].
447///
448/// Application developers may need to implement this trait to mock
449/// `client::ConversationalSearchService`.  In other use-cases, application developers only
450/// use `client::ConversationalSearchService` and need not be concerned with this trait or
451/// its implementations.
452///
453/// Services gain new RPCs routinely. Consequently, this trait gains new methods
454/// too. To avoid breaking applications the trait provides a default
455/// implementation of each method. Most of these implementations just return an
456/// error.
457pub trait ConversationalSearchService: std::fmt::Debug + Send + Sync {
458    /// Implements [super::client::ConversationalSearchService::list_operations].
459    fn list_operations(
460        &self,
461        _req: google_cloud_longrunning::model::ListOperationsRequest,
462        _options: crate::RequestOptions,
463    ) -> impl std::future::Future<
464        Output = crate::Result<
465            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
466        >,
467    > + Send {
468        gaxi::unimplemented::unimplemented_stub()
469    }
470
471    /// Implements [super::client::ConversationalSearchService::get_operation].
472    fn get_operation(
473        &self,
474        _req: google_cloud_longrunning::model::GetOperationRequest,
475        _options: crate::RequestOptions,
476    ) -> impl std::future::Future<
477        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
478    > + Send {
479        gaxi::unimplemented::unimplemented_stub()
480    }
481}
482
483/// Defines the trait used to implement [super::client::GenerativeQuestionService].
484///
485/// Application developers may need to implement this trait to mock
486/// `client::GenerativeQuestionService`.  In other use-cases, application developers only
487/// use `client::GenerativeQuestionService` and need not be concerned with this trait or
488/// its implementations.
489///
490/// Services gain new RPCs routinely. Consequently, this trait gains new methods
491/// too. To avoid breaking applications the trait provides a default
492/// implementation of each method. Most of these implementations just return an
493/// error.
494pub trait GenerativeQuestionService: std::fmt::Debug + Send + Sync {
495    /// Implements [super::client::GenerativeQuestionService::update_generative_questions_feature_config].
496    fn update_generative_questions_feature_config(
497        &self,
498        _req: crate::model::UpdateGenerativeQuestionsFeatureConfigRequest,
499        _options: crate::RequestOptions,
500    ) -> impl std::future::Future<
501        Output = crate::Result<crate::Response<crate::model::GenerativeQuestionsFeatureConfig>>,
502    > + Send {
503        gaxi::unimplemented::unimplemented_stub()
504    }
505
506    /// Implements [super::client::GenerativeQuestionService::get_generative_questions_feature_config].
507    fn get_generative_questions_feature_config(
508        &self,
509        _req: crate::model::GetGenerativeQuestionsFeatureConfigRequest,
510        _options: crate::RequestOptions,
511    ) -> impl std::future::Future<
512        Output = crate::Result<crate::Response<crate::model::GenerativeQuestionsFeatureConfig>>,
513    > + Send {
514        gaxi::unimplemented::unimplemented_stub()
515    }
516
517    /// Implements [super::client::GenerativeQuestionService::list_generative_question_configs].
518    fn list_generative_question_configs(
519        &self,
520        _req: crate::model::ListGenerativeQuestionConfigsRequest,
521        _options: crate::RequestOptions,
522    ) -> impl std::future::Future<
523        Output = crate::Result<
524            crate::Response<crate::model::ListGenerativeQuestionConfigsResponse>,
525        >,
526    > + Send {
527        gaxi::unimplemented::unimplemented_stub()
528    }
529
530    /// Implements [super::client::GenerativeQuestionService::update_generative_question_config].
531    fn update_generative_question_config(
532        &self,
533        _req: crate::model::UpdateGenerativeQuestionConfigRequest,
534        _options: crate::RequestOptions,
535    ) -> impl std::future::Future<
536        Output = crate::Result<crate::Response<crate::model::GenerativeQuestionConfig>>,
537    > + Send {
538        gaxi::unimplemented::unimplemented_stub()
539    }
540
541    /// Implements [super::client::GenerativeQuestionService::batch_update_generative_question_configs].
542    fn batch_update_generative_question_configs(
543        &self,
544        _req: crate::model::BatchUpdateGenerativeQuestionConfigsRequest,
545        _options: crate::RequestOptions,
546    ) -> impl std::future::Future<
547        Output = crate::Result<
548            crate::Response<crate::model::BatchUpdateGenerativeQuestionConfigsResponse>,
549        >,
550    > + Send {
551        gaxi::unimplemented::unimplemented_stub()
552    }
553
554    /// Implements [super::client::GenerativeQuestionService::list_operations].
555    fn list_operations(
556        &self,
557        _req: google_cloud_longrunning::model::ListOperationsRequest,
558        _options: crate::RequestOptions,
559    ) -> impl std::future::Future<
560        Output = crate::Result<
561            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
562        >,
563    > + Send {
564        gaxi::unimplemented::unimplemented_stub()
565    }
566
567    /// Implements [super::client::GenerativeQuestionService::get_operation].
568    fn get_operation(
569        &self,
570        _req: google_cloud_longrunning::model::GetOperationRequest,
571        _options: crate::RequestOptions,
572    ) -> impl std::future::Future<
573        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
574    > + Send {
575        gaxi::unimplemented::unimplemented_stub()
576    }
577}
578
579/// Defines the trait used to implement [super::client::ModelService].
580///
581/// Application developers may need to implement this trait to mock
582/// `client::ModelService`.  In other use-cases, application developers only
583/// use `client::ModelService` and need not be concerned with this trait or
584/// its implementations.
585///
586/// Services gain new RPCs routinely. Consequently, this trait gains new methods
587/// too. To avoid breaking applications the trait provides a default
588/// implementation of each method. Most of these implementations just return an
589/// error.
590pub trait ModelService: std::fmt::Debug + Send + Sync {
591    /// Implements [super::client::ModelService::create_model].
592    fn create_model(
593        &self,
594        _req: crate::model::CreateModelRequest,
595        _options: crate::RequestOptions,
596    ) -> impl std::future::Future<
597        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
598    > + Send {
599        gaxi::unimplemented::unimplemented_stub()
600    }
601
602    /// Implements [super::client::ModelService::get_model].
603    fn get_model(
604        &self,
605        _req: crate::model::GetModelRequest,
606        _options: crate::RequestOptions,
607    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Model>>> + Send
608    {
609        gaxi::unimplemented::unimplemented_stub()
610    }
611
612    /// Implements [super::client::ModelService::pause_model].
613    fn pause_model(
614        &self,
615        _req: crate::model::PauseModelRequest,
616        _options: crate::RequestOptions,
617    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Model>>> + Send
618    {
619        gaxi::unimplemented::unimplemented_stub()
620    }
621
622    /// Implements [super::client::ModelService::resume_model].
623    fn resume_model(
624        &self,
625        _req: crate::model::ResumeModelRequest,
626        _options: crate::RequestOptions,
627    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Model>>> + Send
628    {
629        gaxi::unimplemented::unimplemented_stub()
630    }
631
632    /// Implements [super::client::ModelService::delete_model].
633    fn delete_model(
634        &self,
635        _req: crate::model::DeleteModelRequest,
636        _options: crate::RequestOptions,
637    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
638        gaxi::unimplemented::unimplemented_stub()
639    }
640
641    /// Implements [super::client::ModelService::list_models].
642    fn list_models(
643        &self,
644        _req: crate::model::ListModelsRequest,
645        _options: crate::RequestOptions,
646    ) -> impl std::future::Future<
647        Output = crate::Result<crate::Response<crate::model::ListModelsResponse>>,
648    > + Send {
649        gaxi::unimplemented::unimplemented_stub()
650    }
651
652    /// Implements [super::client::ModelService::update_model].
653    fn update_model(
654        &self,
655        _req: crate::model::UpdateModelRequest,
656        _options: crate::RequestOptions,
657    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Model>>> + Send
658    {
659        gaxi::unimplemented::unimplemented_stub()
660    }
661
662    /// Implements [super::client::ModelService::tune_model].
663    fn tune_model(
664        &self,
665        _req: crate::model::TuneModelRequest,
666        _options: crate::RequestOptions,
667    ) -> impl std::future::Future<
668        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
669    > + Send {
670        gaxi::unimplemented::unimplemented_stub()
671    }
672
673    /// Implements [super::client::ModelService::list_operations].
674    fn list_operations(
675        &self,
676        _req: google_cloud_longrunning::model::ListOperationsRequest,
677        _options: crate::RequestOptions,
678    ) -> impl std::future::Future<
679        Output = crate::Result<
680            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
681        >,
682    > + Send {
683        gaxi::unimplemented::unimplemented_stub()
684    }
685
686    /// Implements [super::client::ModelService::get_operation].
687    fn get_operation(
688        &self,
689        _req: google_cloud_longrunning::model::GetOperationRequest,
690        _options: crate::RequestOptions,
691    ) -> impl std::future::Future<
692        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
693    > + Send {
694        gaxi::unimplemented::unimplemented_stub()
695    }
696
697    /// Returns the polling error policy.
698    ///
699    /// When mocking, this method is typically irrelevant. Do not try to verify
700    /// it is called by your mocks.
701    fn get_polling_error_policy(
702        &self,
703        _options: &crate::RequestOptions,
704    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
705        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
706    }
707
708    /// Returns the polling backoff policy.
709    ///
710    /// When mocking, this method is typically irrelevant. Do not try to verify
711    /// it is called by your mocks.
712    fn get_polling_backoff_policy(
713        &self,
714        _options: &crate::RequestOptions,
715    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
716        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
717    }
718
719    #[doc(hidden)]
720    /// Returns the poller options.
721    ///
722    /// When mocking, this method is typically irrelevant. Do not try to verify
723    /// it is called by your mocks.
724    fn get_poller_options(
725        &self,
726        _options: &crate::RequestOptions,
727    ) -> google_cloud_lro::PollerOptions {
728        google_cloud_lro::PollerOptions::default()
729    }
730}
731
732/// Defines the trait used to implement [super::client::PredictionService].
733///
734/// Application developers may need to implement this trait to mock
735/// `client::PredictionService`.  In other use-cases, application developers only
736/// use `client::PredictionService` and need not be concerned with this trait or
737/// its implementations.
738///
739/// Services gain new RPCs routinely. Consequently, this trait gains new methods
740/// too. To avoid breaking applications the trait provides a default
741/// implementation of each method. Most of these implementations just return an
742/// error.
743pub trait PredictionService: std::fmt::Debug + Send + Sync {
744    /// Implements [super::client::PredictionService::predict].
745    fn predict(
746        &self,
747        _req: crate::model::PredictRequest,
748        _options: crate::RequestOptions,
749    ) -> impl std::future::Future<
750        Output = crate::Result<crate::Response<crate::model::PredictResponse>>,
751    > + Send {
752        gaxi::unimplemented::unimplemented_stub()
753    }
754
755    /// Implements [super::client::PredictionService::list_operations].
756    fn list_operations(
757        &self,
758        _req: google_cloud_longrunning::model::ListOperationsRequest,
759        _options: crate::RequestOptions,
760    ) -> impl std::future::Future<
761        Output = crate::Result<
762            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
763        >,
764    > + Send {
765        gaxi::unimplemented::unimplemented_stub()
766    }
767
768    /// Implements [super::client::PredictionService::get_operation].
769    fn get_operation(
770        &self,
771        _req: google_cloud_longrunning::model::GetOperationRequest,
772        _options: crate::RequestOptions,
773    ) -> impl std::future::Future<
774        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
775    > + Send {
776        gaxi::unimplemented::unimplemented_stub()
777    }
778}
779
780/// Defines the trait used to implement [super::client::ProductService].
781///
782/// Application developers may need to implement this trait to mock
783/// `client::ProductService`.  In other use-cases, application developers only
784/// use `client::ProductService` and need not be concerned with this trait or
785/// its implementations.
786///
787/// Services gain new RPCs routinely. Consequently, this trait gains new methods
788/// too. To avoid breaking applications the trait provides a default
789/// implementation of each method. Most of these implementations just return an
790/// error.
791pub trait ProductService: std::fmt::Debug + Send + Sync {
792    /// Implements [super::client::ProductService::create_product].
793    fn create_product(
794        &self,
795        _req: crate::model::CreateProductRequest,
796        _options: crate::RequestOptions,
797    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Product>>> + Send
798    {
799        gaxi::unimplemented::unimplemented_stub()
800    }
801
802    /// Implements [super::client::ProductService::get_product].
803    fn get_product(
804        &self,
805        _req: crate::model::GetProductRequest,
806        _options: crate::RequestOptions,
807    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Product>>> + Send
808    {
809        gaxi::unimplemented::unimplemented_stub()
810    }
811
812    /// Implements [super::client::ProductService::list_products].
813    fn list_products(
814        &self,
815        _req: crate::model::ListProductsRequest,
816        _options: crate::RequestOptions,
817    ) -> impl std::future::Future<
818        Output = crate::Result<crate::Response<crate::model::ListProductsResponse>>,
819    > + Send {
820        gaxi::unimplemented::unimplemented_stub()
821    }
822
823    /// Implements [super::client::ProductService::update_product].
824    fn update_product(
825        &self,
826        _req: crate::model::UpdateProductRequest,
827        _options: crate::RequestOptions,
828    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Product>>> + Send
829    {
830        gaxi::unimplemented::unimplemented_stub()
831    }
832
833    /// Implements [super::client::ProductService::delete_product].
834    fn delete_product(
835        &self,
836        _req: crate::model::DeleteProductRequest,
837        _options: crate::RequestOptions,
838    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
839        gaxi::unimplemented::unimplemented_stub()
840    }
841
842    /// Implements [super::client::ProductService::purge_products].
843    fn purge_products(
844        &self,
845        _req: crate::model::PurgeProductsRequest,
846        _options: crate::RequestOptions,
847    ) -> impl std::future::Future<
848        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
849    > + Send {
850        gaxi::unimplemented::unimplemented_stub()
851    }
852
853    /// Implements [super::client::ProductService::import_products].
854    fn import_products(
855        &self,
856        _req: crate::model::ImportProductsRequest,
857        _options: crate::RequestOptions,
858    ) -> impl std::future::Future<
859        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
860    > + Send {
861        gaxi::unimplemented::unimplemented_stub()
862    }
863
864    /// Implements [super::client::ProductService::set_inventory].
865    fn set_inventory(
866        &self,
867        _req: crate::model::SetInventoryRequest,
868        _options: crate::RequestOptions,
869    ) -> impl std::future::Future<
870        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
871    > + Send {
872        gaxi::unimplemented::unimplemented_stub()
873    }
874
875    /// Implements [super::client::ProductService::add_fulfillment_places].
876    fn add_fulfillment_places(
877        &self,
878        _req: crate::model::AddFulfillmentPlacesRequest,
879        _options: crate::RequestOptions,
880    ) -> impl std::future::Future<
881        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
882    > + Send {
883        gaxi::unimplemented::unimplemented_stub()
884    }
885
886    /// Implements [super::client::ProductService::remove_fulfillment_places].
887    fn remove_fulfillment_places(
888        &self,
889        _req: crate::model::RemoveFulfillmentPlacesRequest,
890        _options: crate::RequestOptions,
891    ) -> impl std::future::Future<
892        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
893    > + Send {
894        gaxi::unimplemented::unimplemented_stub()
895    }
896
897    /// Implements [super::client::ProductService::add_local_inventories].
898    fn add_local_inventories(
899        &self,
900        _req: crate::model::AddLocalInventoriesRequest,
901        _options: crate::RequestOptions,
902    ) -> impl std::future::Future<
903        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
904    > + Send {
905        gaxi::unimplemented::unimplemented_stub()
906    }
907
908    /// Implements [super::client::ProductService::remove_local_inventories].
909    fn remove_local_inventories(
910        &self,
911        _req: crate::model::RemoveLocalInventoriesRequest,
912        _options: crate::RequestOptions,
913    ) -> impl std::future::Future<
914        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
915    > + Send {
916        gaxi::unimplemented::unimplemented_stub()
917    }
918
919    /// Implements [super::client::ProductService::list_operations].
920    fn list_operations(
921        &self,
922        _req: google_cloud_longrunning::model::ListOperationsRequest,
923        _options: crate::RequestOptions,
924    ) -> impl std::future::Future<
925        Output = crate::Result<
926            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
927        >,
928    > + Send {
929        gaxi::unimplemented::unimplemented_stub()
930    }
931
932    /// Implements [super::client::ProductService::get_operation].
933    fn get_operation(
934        &self,
935        _req: google_cloud_longrunning::model::GetOperationRequest,
936        _options: crate::RequestOptions,
937    ) -> impl std::future::Future<
938        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
939    > + Send {
940        gaxi::unimplemented::unimplemented_stub()
941    }
942
943    /// Returns the polling error policy.
944    ///
945    /// When mocking, this method is typically irrelevant. Do not try to verify
946    /// it is called by your mocks.
947    fn get_polling_error_policy(
948        &self,
949        _options: &crate::RequestOptions,
950    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
951        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
952    }
953
954    /// Returns the polling backoff policy.
955    ///
956    /// When mocking, this method is typically irrelevant. Do not try to verify
957    /// it is called by your mocks.
958    fn get_polling_backoff_policy(
959        &self,
960        _options: &crate::RequestOptions,
961    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
962        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
963    }
964
965    #[doc(hidden)]
966    /// Returns the poller options.
967    ///
968    /// When mocking, this method is typically irrelevant. Do not try to verify
969    /// it is called by your mocks.
970    fn get_poller_options(
971        &self,
972        _options: &crate::RequestOptions,
973    ) -> google_cloud_lro::PollerOptions {
974        google_cloud_lro::PollerOptions::default()
975    }
976}
977
978/// Defines the trait used to implement [super::client::SearchService].
979///
980/// Application developers may need to implement this trait to mock
981/// `client::SearchService`.  In other use-cases, application developers only
982/// use `client::SearchService` and need not be concerned with this trait or
983/// its implementations.
984///
985/// Services gain new RPCs routinely. Consequently, this trait gains new methods
986/// too. To avoid breaking applications the trait provides a default
987/// implementation of each method. Most of these implementations just return an
988/// error.
989pub trait SearchService: std::fmt::Debug + Send + Sync {
990    /// Implements [super::client::SearchService::search].
991    fn search(
992        &self,
993        _req: crate::model::SearchRequest,
994        _options: crate::RequestOptions,
995    ) -> impl std::future::Future<
996        Output = crate::Result<crate::Response<crate::model::SearchResponse>>,
997    > + Send {
998        gaxi::unimplemented::unimplemented_stub()
999    }
1000
1001    /// Implements [super::client::SearchService::list_operations].
1002    fn list_operations(
1003        &self,
1004        _req: google_cloud_longrunning::model::ListOperationsRequest,
1005        _options: crate::RequestOptions,
1006    ) -> impl std::future::Future<
1007        Output = crate::Result<
1008            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1009        >,
1010    > + Send {
1011        gaxi::unimplemented::unimplemented_stub()
1012    }
1013
1014    /// Implements [super::client::SearchService::get_operation].
1015    fn get_operation(
1016        &self,
1017        _req: google_cloud_longrunning::model::GetOperationRequest,
1018        _options: crate::RequestOptions,
1019    ) -> impl std::future::Future<
1020        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1021    > + Send {
1022        gaxi::unimplemented::unimplemented_stub()
1023    }
1024}
1025
1026/// Defines the trait used to implement [super::client::ServingConfigService].
1027///
1028/// Application developers may need to implement this trait to mock
1029/// `client::ServingConfigService`.  In other use-cases, application developers only
1030/// use `client::ServingConfigService` and need not be concerned with this trait or
1031/// its implementations.
1032///
1033/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1034/// too. To avoid breaking applications the trait provides a default
1035/// implementation of each method. Most of these implementations just return an
1036/// error.
1037pub trait ServingConfigService: std::fmt::Debug + Send + Sync {
1038    /// Implements [super::client::ServingConfigService::create_serving_config].
1039    fn create_serving_config(
1040        &self,
1041        _req: crate::model::CreateServingConfigRequest,
1042        _options: crate::RequestOptions,
1043    ) -> impl std::future::Future<
1044        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1045    > + Send {
1046        gaxi::unimplemented::unimplemented_stub()
1047    }
1048
1049    /// Implements [super::client::ServingConfigService::delete_serving_config].
1050    fn delete_serving_config(
1051        &self,
1052        _req: crate::model::DeleteServingConfigRequest,
1053        _options: crate::RequestOptions,
1054    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1055        gaxi::unimplemented::unimplemented_stub()
1056    }
1057
1058    /// Implements [super::client::ServingConfigService::update_serving_config].
1059    fn update_serving_config(
1060        &self,
1061        _req: crate::model::UpdateServingConfigRequest,
1062        _options: crate::RequestOptions,
1063    ) -> impl std::future::Future<
1064        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1065    > + Send {
1066        gaxi::unimplemented::unimplemented_stub()
1067    }
1068
1069    /// Implements [super::client::ServingConfigService::get_serving_config].
1070    fn get_serving_config(
1071        &self,
1072        _req: crate::model::GetServingConfigRequest,
1073        _options: crate::RequestOptions,
1074    ) -> impl std::future::Future<
1075        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1076    > + Send {
1077        gaxi::unimplemented::unimplemented_stub()
1078    }
1079
1080    /// Implements [super::client::ServingConfigService::list_serving_configs].
1081    fn list_serving_configs(
1082        &self,
1083        _req: crate::model::ListServingConfigsRequest,
1084        _options: crate::RequestOptions,
1085    ) -> impl std::future::Future<
1086        Output = crate::Result<crate::Response<crate::model::ListServingConfigsResponse>>,
1087    > + Send {
1088        gaxi::unimplemented::unimplemented_stub()
1089    }
1090
1091    /// Implements [super::client::ServingConfigService::add_control].
1092    fn add_control(
1093        &self,
1094        _req: crate::model::AddControlRequest,
1095        _options: crate::RequestOptions,
1096    ) -> impl std::future::Future<
1097        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1098    > + Send {
1099        gaxi::unimplemented::unimplemented_stub()
1100    }
1101
1102    /// Implements [super::client::ServingConfigService::remove_control].
1103    fn remove_control(
1104        &self,
1105        _req: crate::model::RemoveControlRequest,
1106        _options: crate::RequestOptions,
1107    ) -> impl std::future::Future<
1108        Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1109    > + Send {
1110        gaxi::unimplemented::unimplemented_stub()
1111    }
1112
1113    /// Implements [super::client::ServingConfigService::list_operations].
1114    fn list_operations(
1115        &self,
1116        _req: google_cloud_longrunning::model::ListOperationsRequest,
1117        _options: crate::RequestOptions,
1118    ) -> impl std::future::Future<
1119        Output = crate::Result<
1120            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1121        >,
1122    > + Send {
1123        gaxi::unimplemented::unimplemented_stub()
1124    }
1125
1126    /// Implements [super::client::ServingConfigService::get_operation].
1127    fn get_operation(
1128        &self,
1129        _req: google_cloud_longrunning::model::GetOperationRequest,
1130        _options: crate::RequestOptions,
1131    ) -> impl std::future::Future<
1132        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1133    > + Send {
1134        gaxi::unimplemented::unimplemented_stub()
1135    }
1136}
1137
1138/// Defines the trait used to implement [super::client::UserEventService].
1139///
1140/// Application developers may need to implement this trait to mock
1141/// `client::UserEventService`.  In other use-cases, application developers only
1142/// use `client::UserEventService` and need not be concerned with this trait or
1143/// its implementations.
1144///
1145/// Services gain new RPCs routinely. Consequently, this trait gains new methods
1146/// too. To avoid breaking applications the trait provides a default
1147/// implementation of each method. Most of these implementations just return an
1148/// error.
1149pub trait UserEventService: std::fmt::Debug + Send + Sync {
1150    /// Implements [super::client::UserEventService::write_user_event].
1151    fn write_user_event(
1152        &self,
1153        _req: crate::model::WriteUserEventRequest,
1154        _options: crate::RequestOptions,
1155    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::UserEvent>>> + Send
1156    {
1157        gaxi::unimplemented::unimplemented_stub()
1158    }
1159
1160    /// Implements [super::client::UserEventService::collect_user_event].
1161    fn collect_user_event(
1162        &self,
1163        _req: crate::model::CollectUserEventRequest,
1164        _options: crate::RequestOptions,
1165    ) -> impl std::future::Future<
1166        Output = crate::Result<crate::Response<google_cloud_api::model::HttpBody>>,
1167    > + Send {
1168        gaxi::unimplemented::unimplemented_stub()
1169    }
1170
1171    /// Implements [super::client::UserEventService::purge_user_events].
1172    fn purge_user_events(
1173        &self,
1174        _req: crate::model::PurgeUserEventsRequest,
1175        _options: crate::RequestOptions,
1176    ) -> impl std::future::Future<
1177        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1178    > + Send {
1179        gaxi::unimplemented::unimplemented_stub()
1180    }
1181
1182    /// Implements [super::client::UserEventService::import_user_events].
1183    fn import_user_events(
1184        &self,
1185        _req: crate::model::ImportUserEventsRequest,
1186        _options: crate::RequestOptions,
1187    ) -> impl std::future::Future<
1188        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1189    > + Send {
1190        gaxi::unimplemented::unimplemented_stub()
1191    }
1192
1193    /// Implements [super::client::UserEventService::rejoin_user_events].
1194    fn rejoin_user_events(
1195        &self,
1196        _req: crate::model::RejoinUserEventsRequest,
1197        _options: crate::RequestOptions,
1198    ) -> impl std::future::Future<
1199        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1200    > + Send {
1201        gaxi::unimplemented::unimplemented_stub()
1202    }
1203
1204    /// Implements [super::client::UserEventService::list_operations].
1205    fn list_operations(
1206        &self,
1207        _req: google_cloud_longrunning::model::ListOperationsRequest,
1208        _options: crate::RequestOptions,
1209    ) -> impl std::future::Future<
1210        Output = crate::Result<
1211            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1212        >,
1213    > + Send {
1214        gaxi::unimplemented::unimplemented_stub()
1215    }
1216
1217    /// Implements [super::client::UserEventService::get_operation].
1218    fn get_operation(
1219        &self,
1220        _req: google_cloud_longrunning::model::GetOperationRequest,
1221        _options: crate::RequestOptions,
1222    ) -> impl std::future::Future<
1223        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1224    > + Send {
1225        gaxi::unimplemented::unimplemented_stub()
1226    }
1227
1228    /// Returns the polling error policy.
1229    ///
1230    /// When mocking, this method is typically irrelevant. Do not try to verify
1231    /// it is called by your mocks.
1232    fn get_polling_error_policy(
1233        &self,
1234        _options: &crate::RequestOptions,
1235    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1236        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1237    }
1238
1239    /// Returns the polling backoff policy.
1240    ///
1241    /// When mocking, this method is typically irrelevant. Do not try to verify
1242    /// it is called by your mocks.
1243    fn get_polling_backoff_policy(
1244        &self,
1245        _options: &crate::RequestOptions,
1246    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1247        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1248    }
1249
1250    #[doc(hidden)]
1251    /// Returns the poller options.
1252    ///
1253    /// When mocking, this method is typically irrelevant. Do not try to verify
1254    /// it is called by your mocks.
1255    fn get_poller_options(
1256        &self,
1257        _options: &crate::RequestOptions,
1258    ) -> google_cloud_lro::PollerOptions {
1259        google_cloud_lro::PollerOptions::default()
1260    }
1261}