google_cloud_deploy_v1/
stub.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::CloudDeploy].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::CloudDeploy`.  In other use-cases, application developers only
33/// use `client::CloudDeploy` 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 CloudDeploy: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::CloudDeploy::list_delivery_pipelines].
42    fn list_delivery_pipelines(
43        &self,
44        _req: crate::model::ListDeliveryPipelinesRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<
48            gax::response::Response<crate::model::ListDeliveryPipelinesResponse>,
49        >,
50    > + Send {
51        gaxi::unimplemented::unimplemented_stub()
52    }
53
54    /// Implements [super::client::CloudDeploy::get_delivery_pipeline].
55    fn get_delivery_pipeline(
56        &self,
57        _req: crate::model::GetDeliveryPipelineRequest,
58        _options: gax::options::RequestOptions,
59    ) -> impl std::future::Future<
60        Output = crate::Result<gax::response::Response<crate::model::DeliveryPipeline>>,
61    > + Send {
62        gaxi::unimplemented::unimplemented_stub()
63    }
64
65    /// Implements [super::client::CloudDeploy::create_delivery_pipeline].
66    fn create_delivery_pipeline(
67        &self,
68        _req: crate::model::CreateDeliveryPipelineRequest,
69        _options: gax::options::RequestOptions,
70    ) -> impl std::future::Future<
71        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
72    > + Send {
73        gaxi::unimplemented::unimplemented_stub()
74    }
75
76    /// Implements [super::client::CloudDeploy::update_delivery_pipeline].
77    fn update_delivery_pipeline(
78        &self,
79        _req: crate::model::UpdateDeliveryPipelineRequest,
80        _options: gax::options::RequestOptions,
81    ) -> impl std::future::Future<
82        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
83    > + Send {
84        gaxi::unimplemented::unimplemented_stub()
85    }
86
87    /// Implements [super::client::CloudDeploy::delete_delivery_pipeline].
88    fn delete_delivery_pipeline(
89        &self,
90        _req: crate::model::DeleteDeliveryPipelineRequest,
91        _options: gax::options::RequestOptions,
92    ) -> impl std::future::Future<
93        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
94    > + Send {
95        gaxi::unimplemented::unimplemented_stub()
96    }
97
98    /// Implements [super::client::CloudDeploy::list_targets].
99    fn list_targets(
100        &self,
101        _req: crate::model::ListTargetsRequest,
102        _options: gax::options::RequestOptions,
103    ) -> impl std::future::Future<
104        Output = crate::Result<gax::response::Response<crate::model::ListTargetsResponse>>,
105    > + Send {
106        gaxi::unimplemented::unimplemented_stub()
107    }
108
109    /// Implements [super::client::CloudDeploy::rollback_target].
110    fn rollback_target(
111        &self,
112        _req: crate::model::RollbackTargetRequest,
113        _options: gax::options::RequestOptions,
114    ) -> impl std::future::Future<
115        Output = crate::Result<gax::response::Response<crate::model::RollbackTargetResponse>>,
116    > + Send {
117        gaxi::unimplemented::unimplemented_stub()
118    }
119
120    /// Implements [super::client::CloudDeploy::get_target].
121    fn get_target(
122        &self,
123        _req: crate::model::GetTargetRequest,
124        _options: gax::options::RequestOptions,
125    ) -> impl std::future::Future<
126        Output = crate::Result<gax::response::Response<crate::model::Target>>,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::CloudDeploy::create_target].
132    fn create_target(
133        &self,
134        _req: crate::model::CreateTargetRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::CloudDeploy::update_target].
143    fn update_target(
144        &self,
145        _req: crate::model::UpdateTargetRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
149    > + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::CloudDeploy::delete_target].
154    fn delete_target(
155        &self,
156        _req: crate::model::DeleteTargetRequest,
157        _options: gax::options::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::CloudDeploy::list_custom_target_types].
165    fn list_custom_target_types(
166        &self,
167        _req: crate::model::ListCustomTargetTypesRequest,
168        _options: gax::options::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<
171            gax::response::Response<crate::model::ListCustomTargetTypesResponse>,
172        >,
173    > + Send {
174        gaxi::unimplemented::unimplemented_stub()
175    }
176
177    /// Implements [super::client::CloudDeploy::get_custom_target_type].
178    fn get_custom_target_type(
179        &self,
180        _req: crate::model::GetCustomTargetTypeRequest,
181        _options: gax::options::RequestOptions,
182    ) -> impl std::future::Future<
183        Output = crate::Result<gax::response::Response<crate::model::CustomTargetType>>,
184    > + Send {
185        gaxi::unimplemented::unimplemented_stub()
186    }
187
188    /// Implements [super::client::CloudDeploy::create_custom_target_type].
189    fn create_custom_target_type(
190        &self,
191        _req: crate::model::CreateCustomTargetTypeRequest,
192        _options: gax::options::RequestOptions,
193    ) -> impl std::future::Future<
194        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
195    > + Send {
196        gaxi::unimplemented::unimplemented_stub()
197    }
198
199    /// Implements [super::client::CloudDeploy::update_custom_target_type].
200    fn update_custom_target_type(
201        &self,
202        _req: crate::model::UpdateCustomTargetTypeRequest,
203        _options: gax::options::RequestOptions,
204    ) -> impl std::future::Future<
205        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
206    > + Send {
207        gaxi::unimplemented::unimplemented_stub()
208    }
209
210    /// Implements [super::client::CloudDeploy::delete_custom_target_type].
211    fn delete_custom_target_type(
212        &self,
213        _req: crate::model::DeleteCustomTargetTypeRequest,
214        _options: gax::options::RequestOptions,
215    ) -> impl std::future::Future<
216        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
217    > + Send {
218        gaxi::unimplemented::unimplemented_stub()
219    }
220
221    /// Implements [super::client::CloudDeploy::list_releases].
222    fn list_releases(
223        &self,
224        _req: crate::model::ListReleasesRequest,
225        _options: gax::options::RequestOptions,
226    ) -> impl std::future::Future<
227        Output = crate::Result<gax::response::Response<crate::model::ListReleasesResponse>>,
228    > + Send {
229        gaxi::unimplemented::unimplemented_stub()
230    }
231
232    /// Implements [super::client::CloudDeploy::get_release].
233    fn get_release(
234        &self,
235        _req: crate::model::GetReleaseRequest,
236        _options: gax::options::RequestOptions,
237    ) -> impl std::future::Future<
238        Output = crate::Result<gax::response::Response<crate::model::Release>>,
239    > + Send {
240        gaxi::unimplemented::unimplemented_stub()
241    }
242
243    /// Implements [super::client::CloudDeploy::create_release].
244    fn create_release(
245        &self,
246        _req: crate::model::CreateReleaseRequest,
247        _options: gax::options::RequestOptions,
248    ) -> impl std::future::Future<
249        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
250    > + Send {
251        gaxi::unimplemented::unimplemented_stub()
252    }
253
254    /// Implements [super::client::CloudDeploy::abandon_release].
255    fn abandon_release(
256        &self,
257        _req: crate::model::AbandonReleaseRequest,
258        _options: gax::options::RequestOptions,
259    ) -> impl std::future::Future<
260        Output = crate::Result<gax::response::Response<crate::model::AbandonReleaseResponse>>,
261    > + Send {
262        gaxi::unimplemented::unimplemented_stub()
263    }
264
265    /// Implements [super::client::CloudDeploy::create_deploy_policy].
266    fn create_deploy_policy(
267        &self,
268        _req: crate::model::CreateDeployPolicyRequest,
269        _options: gax::options::RequestOptions,
270    ) -> impl std::future::Future<
271        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
272    > + Send {
273        gaxi::unimplemented::unimplemented_stub()
274    }
275
276    /// Implements [super::client::CloudDeploy::update_deploy_policy].
277    fn update_deploy_policy(
278        &self,
279        _req: crate::model::UpdateDeployPolicyRequest,
280        _options: gax::options::RequestOptions,
281    ) -> impl std::future::Future<
282        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
283    > + Send {
284        gaxi::unimplemented::unimplemented_stub()
285    }
286
287    /// Implements [super::client::CloudDeploy::delete_deploy_policy].
288    fn delete_deploy_policy(
289        &self,
290        _req: crate::model::DeleteDeployPolicyRequest,
291        _options: gax::options::RequestOptions,
292    ) -> impl std::future::Future<
293        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
294    > + Send {
295        gaxi::unimplemented::unimplemented_stub()
296    }
297
298    /// Implements [super::client::CloudDeploy::list_deploy_policies].
299    fn list_deploy_policies(
300        &self,
301        _req: crate::model::ListDeployPoliciesRequest,
302        _options: gax::options::RequestOptions,
303    ) -> impl std::future::Future<
304        Output = crate::Result<gax::response::Response<crate::model::ListDeployPoliciesResponse>>,
305    > + Send {
306        gaxi::unimplemented::unimplemented_stub()
307    }
308
309    /// Implements [super::client::CloudDeploy::get_deploy_policy].
310    fn get_deploy_policy(
311        &self,
312        _req: crate::model::GetDeployPolicyRequest,
313        _options: gax::options::RequestOptions,
314    ) -> impl std::future::Future<
315        Output = crate::Result<gax::response::Response<crate::model::DeployPolicy>>,
316    > + Send {
317        gaxi::unimplemented::unimplemented_stub()
318    }
319
320    /// Implements [super::client::CloudDeploy::approve_rollout].
321    fn approve_rollout(
322        &self,
323        _req: crate::model::ApproveRolloutRequest,
324        _options: gax::options::RequestOptions,
325    ) -> impl std::future::Future<
326        Output = crate::Result<gax::response::Response<crate::model::ApproveRolloutResponse>>,
327    > + Send {
328        gaxi::unimplemented::unimplemented_stub()
329    }
330
331    /// Implements [super::client::CloudDeploy::advance_rollout].
332    fn advance_rollout(
333        &self,
334        _req: crate::model::AdvanceRolloutRequest,
335        _options: gax::options::RequestOptions,
336    ) -> impl std::future::Future<
337        Output = crate::Result<gax::response::Response<crate::model::AdvanceRolloutResponse>>,
338    > + Send {
339        gaxi::unimplemented::unimplemented_stub()
340    }
341
342    /// Implements [super::client::CloudDeploy::cancel_rollout].
343    fn cancel_rollout(
344        &self,
345        _req: crate::model::CancelRolloutRequest,
346        _options: gax::options::RequestOptions,
347    ) -> impl std::future::Future<
348        Output = crate::Result<gax::response::Response<crate::model::CancelRolloutResponse>>,
349    > + Send {
350        gaxi::unimplemented::unimplemented_stub()
351    }
352
353    /// Implements [super::client::CloudDeploy::list_rollouts].
354    fn list_rollouts(
355        &self,
356        _req: crate::model::ListRolloutsRequest,
357        _options: gax::options::RequestOptions,
358    ) -> impl std::future::Future<
359        Output = crate::Result<gax::response::Response<crate::model::ListRolloutsResponse>>,
360    > + Send {
361        gaxi::unimplemented::unimplemented_stub()
362    }
363
364    /// Implements [super::client::CloudDeploy::get_rollout].
365    fn get_rollout(
366        &self,
367        _req: crate::model::GetRolloutRequest,
368        _options: gax::options::RequestOptions,
369    ) -> impl std::future::Future<
370        Output = crate::Result<gax::response::Response<crate::model::Rollout>>,
371    > + Send {
372        gaxi::unimplemented::unimplemented_stub()
373    }
374
375    /// Implements [super::client::CloudDeploy::create_rollout].
376    fn create_rollout(
377        &self,
378        _req: crate::model::CreateRolloutRequest,
379        _options: gax::options::RequestOptions,
380    ) -> impl std::future::Future<
381        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
382    > + Send {
383        gaxi::unimplemented::unimplemented_stub()
384    }
385
386    /// Implements [super::client::CloudDeploy::ignore_job].
387    fn ignore_job(
388        &self,
389        _req: crate::model::IgnoreJobRequest,
390        _options: gax::options::RequestOptions,
391    ) -> impl std::future::Future<
392        Output = crate::Result<gax::response::Response<crate::model::IgnoreJobResponse>>,
393    > + Send {
394        gaxi::unimplemented::unimplemented_stub()
395    }
396
397    /// Implements [super::client::CloudDeploy::retry_job].
398    fn retry_job(
399        &self,
400        _req: crate::model::RetryJobRequest,
401        _options: gax::options::RequestOptions,
402    ) -> impl std::future::Future<
403        Output = crate::Result<gax::response::Response<crate::model::RetryJobResponse>>,
404    > + Send {
405        gaxi::unimplemented::unimplemented_stub()
406    }
407
408    /// Implements [super::client::CloudDeploy::list_job_runs].
409    fn list_job_runs(
410        &self,
411        _req: crate::model::ListJobRunsRequest,
412        _options: gax::options::RequestOptions,
413    ) -> impl std::future::Future<
414        Output = crate::Result<gax::response::Response<crate::model::ListJobRunsResponse>>,
415    > + Send {
416        gaxi::unimplemented::unimplemented_stub()
417    }
418
419    /// Implements [super::client::CloudDeploy::get_job_run].
420    fn get_job_run(
421        &self,
422        _req: crate::model::GetJobRunRequest,
423        _options: gax::options::RequestOptions,
424    ) -> impl std::future::Future<
425        Output = crate::Result<gax::response::Response<crate::model::JobRun>>,
426    > + Send {
427        gaxi::unimplemented::unimplemented_stub()
428    }
429
430    /// Implements [super::client::CloudDeploy::terminate_job_run].
431    fn terminate_job_run(
432        &self,
433        _req: crate::model::TerminateJobRunRequest,
434        _options: gax::options::RequestOptions,
435    ) -> impl std::future::Future<
436        Output = crate::Result<gax::response::Response<crate::model::TerminateJobRunResponse>>,
437    > + Send {
438        gaxi::unimplemented::unimplemented_stub()
439    }
440
441    /// Implements [super::client::CloudDeploy::get_config].
442    fn get_config(
443        &self,
444        _req: crate::model::GetConfigRequest,
445        _options: gax::options::RequestOptions,
446    ) -> impl std::future::Future<
447        Output = crate::Result<gax::response::Response<crate::model::Config>>,
448    > + Send {
449        gaxi::unimplemented::unimplemented_stub()
450    }
451
452    /// Implements [super::client::CloudDeploy::create_automation].
453    fn create_automation(
454        &self,
455        _req: crate::model::CreateAutomationRequest,
456        _options: gax::options::RequestOptions,
457    ) -> impl std::future::Future<
458        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
459    > + Send {
460        gaxi::unimplemented::unimplemented_stub()
461    }
462
463    /// Implements [super::client::CloudDeploy::update_automation].
464    fn update_automation(
465        &self,
466        _req: crate::model::UpdateAutomationRequest,
467        _options: gax::options::RequestOptions,
468    ) -> impl std::future::Future<
469        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
470    > + Send {
471        gaxi::unimplemented::unimplemented_stub()
472    }
473
474    /// Implements [super::client::CloudDeploy::delete_automation].
475    fn delete_automation(
476        &self,
477        _req: crate::model::DeleteAutomationRequest,
478        _options: gax::options::RequestOptions,
479    ) -> impl std::future::Future<
480        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
481    > + Send {
482        gaxi::unimplemented::unimplemented_stub()
483    }
484
485    /// Implements [super::client::CloudDeploy::get_automation].
486    fn get_automation(
487        &self,
488        _req: crate::model::GetAutomationRequest,
489        _options: gax::options::RequestOptions,
490    ) -> impl std::future::Future<
491        Output = crate::Result<gax::response::Response<crate::model::Automation>>,
492    > + Send {
493        gaxi::unimplemented::unimplemented_stub()
494    }
495
496    /// Implements [super::client::CloudDeploy::list_automations].
497    fn list_automations(
498        &self,
499        _req: crate::model::ListAutomationsRequest,
500        _options: gax::options::RequestOptions,
501    ) -> impl std::future::Future<
502        Output = crate::Result<gax::response::Response<crate::model::ListAutomationsResponse>>,
503    > + Send {
504        gaxi::unimplemented::unimplemented_stub()
505    }
506
507    /// Implements [super::client::CloudDeploy::get_automation_run].
508    fn get_automation_run(
509        &self,
510        _req: crate::model::GetAutomationRunRequest,
511        _options: gax::options::RequestOptions,
512    ) -> impl std::future::Future<
513        Output = crate::Result<gax::response::Response<crate::model::AutomationRun>>,
514    > + Send {
515        gaxi::unimplemented::unimplemented_stub()
516    }
517
518    /// Implements [super::client::CloudDeploy::list_automation_runs].
519    fn list_automation_runs(
520        &self,
521        _req: crate::model::ListAutomationRunsRequest,
522        _options: gax::options::RequestOptions,
523    ) -> impl std::future::Future<
524        Output = crate::Result<gax::response::Response<crate::model::ListAutomationRunsResponse>>,
525    > + Send {
526        gaxi::unimplemented::unimplemented_stub()
527    }
528
529    /// Implements [super::client::CloudDeploy::cancel_automation_run].
530    fn cancel_automation_run(
531        &self,
532        _req: crate::model::CancelAutomationRunRequest,
533        _options: gax::options::RequestOptions,
534    ) -> impl std::future::Future<
535        Output = crate::Result<gax::response::Response<crate::model::CancelAutomationRunResponse>>,
536    > + Send {
537        gaxi::unimplemented::unimplemented_stub()
538    }
539
540    /// Implements [super::client::CloudDeploy::list_locations].
541    fn list_locations(
542        &self,
543        _req: location::model::ListLocationsRequest,
544        _options: gax::options::RequestOptions,
545    ) -> impl std::future::Future<
546        Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
547    > + Send {
548        gaxi::unimplemented::unimplemented_stub()
549    }
550
551    /// Implements [super::client::CloudDeploy::get_location].
552    fn get_location(
553        &self,
554        _req: location::model::GetLocationRequest,
555        _options: gax::options::RequestOptions,
556    ) -> impl std::future::Future<
557        Output = crate::Result<gax::response::Response<location::model::Location>>,
558    > + Send {
559        gaxi::unimplemented::unimplemented_stub()
560    }
561
562    /// Implements [super::client::CloudDeploy::set_iam_policy].
563    fn set_iam_policy(
564        &self,
565        _req: iam_v1::model::SetIamPolicyRequest,
566        _options: gax::options::RequestOptions,
567    ) -> impl std::future::Future<
568        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
569    > + Send {
570        gaxi::unimplemented::unimplemented_stub()
571    }
572
573    /// Implements [super::client::CloudDeploy::get_iam_policy].
574    fn get_iam_policy(
575        &self,
576        _req: iam_v1::model::GetIamPolicyRequest,
577        _options: gax::options::RequestOptions,
578    ) -> impl std::future::Future<
579        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
580    > + Send {
581        gaxi::unimplemented::unimplemented_stub()
582    }
583
584    /// Implements [super::client::CloudDeploy::test_iam_permissions].
585    fn test_iam_permissions(
586        &self,
587        _req: iam_v1::model::TestIamPermissionsRequest,
588        _options: gax::options::RequestOptions,
589    ) -> impl std::future::Future<
590        Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
591    > + Send {
592        gaxi::unimplemented::unimplemented_stub()
593    }
594
595    /// Implements [super::client::CloudDeploy::list_operations].
596    fn list_operations(
597        &self,
598        _req: longrunning::model::ListOperationsRequest,
599        _options: gax::options::RequestOptions,
600    ) -> impl std::future::Future<
601        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
602    > + Send {
603        gaxi::unimplemented::unimplemented_stub()
604    }
605
606    /// Implements [super::client::CloudDeploy::get_operation].
607    fn get_operation(
608        &self,
609        _req: longrunning::model::GetOperationRequest,
610        _options: gax::options::RequestOptions,
611    ) -> impl std::future::Future<
612        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
613    > + Send {
614        gaxi::unimplemented::unimplemented_stub()
615    }
616
617    /// Implements [super::client::CloudDeploy::delete_operation].
618    fn delete_operation(
619        &self,
620        _req: longrunning::model::DeleteOperationRequest,
621        _options: gax::options::RequestOptions,
622    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
623        gaxi::unimplemented::unimplemented_stub()
624    }
625
626    /// Implements [super::client::CloudDeploy::cancel_operation].
627    fn cancel_operation(
628        &self,
629        _req: longrunning::model::CancelOperationRequest,
630        _options: gax::options::RequestOptions,
631    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
632        gaxi::unimplemented::unimplemented_stub()
633    }
634
635    /// Returns the polling error policy.
636    ///
637    /// When mocking, this method is typically irrelevant. Do not try to verify
638    /// it is called by your mocks.
639    fn get_polling_error_policy(
640        &self,
641        _options: &gax::options::RequestOptions,
642    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
643        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
644    }
645
646    /// Returns the polling backoff policy.
647    ///
648    /// When mocking, this method is typically irrelevant. Do not try to verify
649    /// it is called by your mocks.
650    fn get_polling_backoff_policy(
651        &self,
652        _options: &gax::options::RequestOptions,
653    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
654        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
655    }
656}