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