1#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29pub trait AutoscalingPolicyService: std::fmt::Debug + Send + Sync {
41 fn create_autoscaling_policy(
43 &self,
44 _req: crate::model::CreateAutoscalingPolicyRequest,
45 _options: gax::options::RequestOptions,
46 ) -> impl std::future::Future<
47 Output = crate::Result<gax::response::Response<crate::model::AutoscalingPolicy>>,
48 > + Send {
49 gaxi::unimplemented::unimplemented_stub()
50 }
51
52 fn update_autoscaling_policy(
54 &self,
55 _req: crate::model::UpdateAutoscalingPolicyRequest,
56 _options: gax::options::RequestOptions,
57 ) -> impl std::future::Future<
58 Output = crate::Result<gax::response::Response<crate::model::AutoscalingPolicy>>,
59 > + Send {
60 gaxi::unimplemented::unimplemented_stub()
61 }
62
63 fn get_autoscaling_policy(
65 &self,
66 _req: crate::model::GetAutoscalingPolicyRequest,
67 _options: gax::options::RequestOptions,
68 ) -> impl std::future::Future<
69 Output = crate::Result<gax::response::Response<crate::model::AutoscalingPolicy>>,
70 > + Send {
71 gaxi::unimplemented::unimplemented_stub()
72 }
73
74 fn list_autoscaling_policies(
76 &self,
77 _req: crate::model::ListAutoscalingPoliciesRequest,
78 _options: gax::options::RequestOptions,
79 ) -> impl std::future::Future<
80 Output = crate::Result<
81 gax::response::Response<crate::model::ListAutoscalingPoliciesResponse>,
82 >,
83 > + Send {
84 gaxi::unimplemented::unimplemented_stub()
85 }
86
87 fn delete_autoscaling_policy(
89 &self,
90 _req: crate::model::DeleteAutoscalingPolicyRequest,
91 _options: gax::options::RequestOptions,
92 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
93 gaxi::unimplemented::unimplemented_stub()
94 }
95
96 fn set_iam_policy(
98 &self,
99 _req: iam_v1::model::SetIamPolicyRequest,
100 _options: gax::options::RequestOptions,
101 ) -> impl std::future::Future<
102 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
103 > + Send {
104 gaxi::unimplemented::unimplemented_stub()
105 }
106
107 fn get_iam_policy(
109 &self,
110 _req: iam_v1::model::GetIamPolicyRequest,
111 _options: gax::options::RequestOptions,
112 ) -> impl std::future::Future<
113 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
114 > + Send {
115 gaxi::unimplemented::unimplemented_stub()
116 }
117
118 fn test_iam_permissions(
120 &self,
121 _req: iam_v1::model::TestIamPermissionsRequest,
122 _options: gax::options::RequestOptions,
123 ) -> impl std::future::Future<
124 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
125 > + Send {
126 gaxi::unimplemented::unimplemented_stub()
127 }
128
129 fn list_operations(
131 &self,
132 _req: longrunning::model::ListOperationsRequest,
133 _options: gax::options::RequestOptions,
134 ) -> impl std::future::Future<
135 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
136 > + Send {
137 gaxi::unimplemented::unimplemented_stub()
138 }
139
140 fn get_operation(
142 &self,
143 _req: longrunning::model::GetOperationRequest,
144 _options: gax::options::RequestOptions,
145 ) -> impl std::future::Future<
146 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
147 > + Send {
148 gaxi::unimplemented::unimplemented_stub()
149 }
150
151 fn delete_operation(
153 &self,
154 _req: longrunning::model::DeleteOperationRequest,
155 _options: gax::options::RequestOptions,
156 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
157 gaxi::unimplemented::unimplemented_stub()
158 }
159
160 fn cancel_operation(
162 &self,
163 _req: longrunning::model::CancelOperationRequest,
164 _options: gax::options::RequestOptions,
165 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
166 gaxi::unimplemented::unimplemented_stub()
167 }
168}
169
170pub trait BatchController: std::fmt::Debug + Send + Sync {
182 fn create_batch(
184 &self,
185 _req: crate::model::CreateBatchRequest,
186 _options: gax::options::RequestOptions,
187 ) -> impl std::future::Future<
188 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
189 > + Send {
190 gaxi::unimplemented::unimplemented_stub()
191 }
192
193 fn get_batch(
195 &self,
196 _req: crate::model::GetBatchRequest,
197 _options: gax::options::RequestOptions,
198 ) -> impl std::future::Future<
199 Output = crate::Result<gax::response::Response<crate::model::Batch>>,
200 > + Send {
201 gaxi::unimplemented::unimplemented_stub()
202 }
203
204 fn list_batches(
206 &self,
207 _req: crate::model::ListBatchesRequest,
208 _options: gax::options::RequestOptions,
209 ) -> impl std::future::Future<
210 Output = crate::Result<gax::response::Response<crate::model::ListBatchesResponse>>,
211 > + Send {
212 gaxi::unimplemented::unimplemented_stub()
213 }
214
215 fn delete_batch(
217 &self,
218 _req: crate::model::DeleteBatchRequest,
219 _options: gax::options::RequestOptions,
220 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
221 gaxi::unimplemented::unimplemented_stub()
222 }
223
224 fn set_iam_policy(
226 &self,
227 _req: iam_v1::model::SetIamPolicyRequest,
228 _options: gax::options::RequestOptions,
229 ) -> impl std::future::Future<
230 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
231 > + Send {
232 gaxi::unimplemented::unimplemented_stub()
233 }
234
235 fn get_iam_policy(
237 &self,
238 _req: iam_v1::model::GetIamPolicyRequest,
239 _options: gax::options::RequestOptions,
240 ) -> impl std::future::Future<
241 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
242 > + Send {
243 gaxi::unimplemented::unimplemented_stub()
244 }
245
246 fn test_iam_permissions(
248 &self,
249 _req: iam_v1::model::TestIamPermissionsRequest,
250 _options: gax::options::RequestOptions,
251 ) -> impl std::future::Future<
252 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
253 > + Send {
254 gaxi::unimplemented::unimplemented_stub()
255 }
256
257 fn list_operations(
259 &self,
260 _req: longrunning::model::ListOperationsRequest,
261 _options: gax::options::RequestOptions,
262 ) -> impl std::future::Future<
263 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
264 > + Send {
265 gaxi::unimplemented::unimplemented_stub()
266 }
267
268 fn get_operation(
270 &self,
271 _req: longrunning::model::GetOperationRequest,
272 _options: gax::options::RequestOptions,
273 ) -> impl std::future::Future<
274 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
275 > + Send {
276 gaxi::unimplemented::unimplemented_stub()
277 }
278
279 fn delete_operation(
281 &self,
282 _req: longrunning::model::DeleteOperationRequest,
283 _options: gax::options::RequestOptions,
284 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
285 gaxi::unimplemented::unimplemented_stub()
286 }
287
288 fn cancel_operation(
290 &self,
291 _req: longrunning::model::CancelOperationRequest,
292 _options: gax::options::RequestOptions,
293 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
294 gaxi::unimplemented::unimplemented_stub()
295 }
296
297 fn get_polling_error_policy(
302 &self,
303 _options: &gax::options::RequestOptions,
304 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
305 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
306 }
307
308 fn get_polling_backoff_policy(
313 &self,
314 _options: &gax::options::RequestOptions,
315 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
316 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
317 }
318}
319
320pub trait ClusterController: std::fmt::Debug + Send + Sync {
332 fn create_cluster(
334 &self,
335 _req: crate::model::CreateClusterRequest,
336 _options: gax::options::RequestOptions,
337 ) -> impl std::future::Future<
338 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
339 > + Send {
340 gaxi::unimplemented::unimplemented_stub()
341 }
342
343 fn update_cluster(
345 &self,
346 _req: crate::model::UpdateClusterRequest,
347 _options: gax::options::RequestOptions,
348 ) -> impl std::future::Future<
349 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
350 > + Send {
351 gaxi::unimplemented::unimplemented_stub()
352 }
353
354 fn stop_cluster(
356 &self,
357 _req: crate::model::StopClusterRequest,
358 _options: gax::options::RequestOptions,
359 ) -> impl std::future::Future<
360 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
361 > + Send {
362 gaxi::unimplemented::unimplemented_stub()
363 }
364
365 fn start_cluster(
367 &self,
368 _req: crate::model::StartClusterRequest,
369 _options: gax::options::RequestOptions,
370 ) -> impl std::future::Future<
371 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
372 > + Send {
373 gaxi::unimplemented::unimplemented_stub()
374 }
375
376 fn delete_cluster(
378 &self,
379 _req: crate::model::DeleteClusterRequest,
380 _options: gax::options::RequestOptions,
381 ) -> impl std::future::Future<
382 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
383 > + Send {
384 gaxi::unimplemented::unimplemented_stub()
385 }
386
387 fn get_cluster(
389 &self,
390 _req: crate::model::GetClusterRequest,
391 _options: gax::options::RequestOptions,
392 ) -> impl std::future::Future<
393 Output = crate::Result<gax::response::Response<crate::model::Cluster>>,
394 > + Send {
395 gaxi::unimplemented::unimplemented_stub()
396 }
397
398 fn list_clusters(
400 &self,
401 _req: crate::model::ListClustersRequest,
402 _options: gax::options::RequestOptions,
403 ) -> impl std::future::Future<
404 Output = crate::Result<gax::response::Response<crate::model::ListClustersResponse>>,
405 > + Send {
406 gaxi::unimplemented::unimplemented_stub()
407 }
408
409 fn diagnose_cluster(
411 &self,
412 _req: crate::model::DiagnoseClusterRequest,
413 _options: gax::options::RequestOptions,
414 ) -> impl std::future::Future<
415 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
416 > + Send {
417 gaxi::unimplemented::unimplemented_stub()
418 }
419
420 fn set_iam_policy(
422 &self,
423 _req: iam_v1::model::SetIamPolicyRequest,
424 _options: gax::options::RequestOptions,
425 ) -> impl std::future::Future<
426 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
427 > + Send {
428 gaxi::unimplemented::unimplemented_stub()
429 }
430
431 fn get_iam_policy(
433 &self,
434 _req: iam_v1::model::GetIamPolicyRequest,
435 _options: gax::options::RequestOptions,
436 ) -> impl std::future::Future<
437 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
438 > + Send {
439 gaxi::unimplemented::unimplemented_stub()
440 }
441
442 fn test_iam_permissions(
444 &self,
445 _req: iam_v1::model::TestIamPermissionsRequest,
446 _options: gax::options::RequestOptions,
447 ) -> impl std::future::Future<
448 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
449 > + Send {
450 gaxi::unimplemented::unimplemented_stub()
451 }
452
453 fn list_operations(
455 &self,
456 _req: longrunning::model::ListOperationsRequest,
457 _options: gax::options::RequestOptions,
458 ) -> impl std::future::Future<
459 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
460 > + Send {
461 gaxi::unimplemented::unimplemented_stub()
462 }
463
464 fn get_operation(
466 &self,
467 _req: longrunning::model::GetOperationRequest,
468 _options: gax::options::RequestOptions,
469 ) -> impl std::future::Future<
470 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
471 > + Send {
472 gaxi::unimplemented::unimplemented_stub()
473 }
474
475 fn delete_operation(
477 &self,
478 _req: longrunning::model::DeleteOperationRequest,
479 _options: gax::options::RequestOptions,
480 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
481 gaxi::unimplemented::unimplemented_stub()
482 }
483
484 fn cancel_operation(
486 &self,
487 _req: longrunning::model::CancelOperationRequest,
488 _options: gax::options::RequestOptions,
489 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
490 gaxi::unimplemented::unimplemented_stub()
491 }
492
493 fn get_polling_error_policy(
498 &self,
499 _options: &gax::options::RequestOptions,
500 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
501 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
502 }
503
504 fn get_polling_backoff_policy(
509 &self,
510 _options: &gax::options::RequestOptions,
511 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
512 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
513 }
514}
515
516pub trait JobController: std::fmt::Debug + Send + Sync {
528 fn submit_job(
530 &self,
531 _req: crate::model::SubmitJobRequest,
532 _options: gax::options::RequestOptions,
533 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Job>>>
534 + Send {
535 gaxi::unimplemented::unimplemented_stub()
536 }
537
538 fn submit_job_as_operation(
540 &self,
541 _req: crate::model::SubmitJobRequest,
542 _options: gax::options::RequestOptions,
543 ) -> impl std::future::Future<
544 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
545 > + Send {
546 gaxi::unimplemented::unimplemented_stub()
547 }
548
549 fn get_job(
551 &self,
552 _req: crate::model::GetJobRequest,
553 _options: gax::options::RequestOptions,
554 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Job>>>
555 + Send {
556 gaxi::unimplemented::unimplemented_stub()
557 }
558
559 fn list_jobs(
561 &self,
562 _req: crate::model::ListJobsRequest,
563 _options: gax::options::RequestOptions,
564 ) -> impl std::future::Future<
565 Output = crate::Result<gax::response::Response<crate::model::ListJobsResponse>>,
566 > + Send {
567 gaxi::unimplemented::unimplemented_stub()
568 }
569
570 fn update_job(
572 &self,
573 _req: crate::model::UpdateJobRequest,
574 _options: gax::options::RequestOptions,
575 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Job>>>
576 + Send {
577 gaxi::unimplemented::unimplemented_stub()
578 }
579
580 fn cancel_job(
582 &self,
583 _req: crate::model::CancelJobRequest,
584 _options: gax::options::RequestOptions,
585 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Job>>>
586 + Send {
587 gaxi::unimplemented::unimplemented_stub()
588 }
589
590 fn delete_job(
592 &self,
593 _req: crate::model::DeleteJobRequest,
594 _options: gax::options::RequestOptions,
595 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
596 gaxi::unimplemented::unimplemented_stub()
597 }
598
599 fn set_iam_policy(
601 &self,
602 _req: iam_v1::model::SetIamPolicyRequest,
603 _options: gax::options::RequestOptions,
604 ) -> impl std::future::Future<
605 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
606 > + Send {
607 gaxi::unimplemented::unimplemented_stub()
608 }
609
610 fn get_iam_policy(
612 &self,
613 _req: iam_v1::model::GetIamPolicyRequest,
614 _options: gax::options::RequestOptions,
615 ) -> impl std::future::Future<
616 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
617 > + Send {
618 gaxi::unimplemented::unimplemented_stub()
619 }
620
621 fn test_iam_permissions(
623 &self,
624 _req: iam_v1::model::TestIamPermissionsRequest,
625 _options: gax::options::RequestOptions,
626 ) -> impl std::future::Future<
627 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
628 > + Send {
629 gaxi::unimplemented::unimplemented_stub()
630 }
631
632 fn list_operations(
634 &self,
635 _req: longrunning::model::ListOperationsRequest,
636 _options: gax::options::RequestOptions,
637 ) -> impl std::future::Future<
638 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
639 > + Send {
640 gaxi::unimplemented::unimplemented_stub()
641 }
642
643 fn get_operation(
645 &self,
646 _req: longrunning::model::GetOperationRequest,
647 _options: gax::options::RequestOptions,
648 ) -> impl std::future::Future<
649 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
650 > + Send {
651 gaxi::unimplemented::unimplemented_stub()
652 }
653
654 fn delete_operation(
656 &self,
657 _req: longrunning::model::DeleteOperationRequest,
658 _options: gax::options::RequestOptions,
659 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
660 gaxi::unimplemented::unimplemented_stub()
661 }
662
663 fn cancel_operation(
665 &self,
666 _req: longrunning::model::CancelOperationRequest,
667 _options: gax::options::RequestOptions,
668 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
669 gaxi::unimplemented::unimplemented_stub()
670 }
671
672 fn get_polling_error_policy(
677 &self,
678 _options: &gax::options::RequestOptions,
679 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
680 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
681 }
682
683 fn get_polling_backoff_policy(
688 &self,
689 _options: &gax::options::RequestOptions,
690 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
691 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
692 }
693}
694
695pub trait NodeGroupController: std::fmt::Debug + Send + Sync {
707 fn create_node_group(
709 &self,
710 _req: crate::model::CreateNodeGroupRequest,
711 _options: gax::options::RequestOptions,
712 ) -> impl std::future::Future<
713 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
714 > + Send {
715 gaxi::unimplemented::unimplemented_stub()
716 }
717
718 fn resize_node_group(
720 &self,
721 _req: crate::model::ResizeNodeGroupRequest,
722 _options: gax::options::RequestOptions,
723 ) -> impl std::future::Future<
724 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
725 > + Send {
726 gaxi::unimplemented::unimplemented_stub()
727 }
728
729 fn get_node_group(
731 &self,
732 _req: crate::model::GetNodeGroupRequest,
733 _options: gax::options::RequestOptions,
734 ) -> impl std::future::Future<
735 Output = crate::Result<gax::response::Response<crate::model::NodeGroup>>,
736 > + Send {
737 gaxi::unimplemented::unimplemented_stub()
738 }
739
740 fn set_iam_policy(
742 &self,
743 _req: iam_v1::model::SetIamPolicyRequest,
744 _options: gax::options::RequestOptions,
745 ) -> impl std::future::Future<
746 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
747 > + Send {
748 gaxi::unimplemented::unimplemented_stub()
749 }
750
751 fn get_iam_policy(
753 &self,
754 _req: iam_v1::model::GetIamPolicyRequest,
755 _options: gax::options::RequestOptions,
756 ) -> impl std::future::Future<
757 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
758 > + Send {
759 gaxi::unimplemented::unimplemented_stub()
760 }
761
762 fn test_iam_permissions(
764 &self,
765 _req: iam_v1::model::TestIamPermissionsRequest,
766 _options: gax::options::RequestOptions,
767 ) -> impl std::future::Future<
768 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
769 > + Send {
770 gaxi::unimplemented::unimplemented_stub()
771 }
772
773 fn list_operations(
775 &self,
776 _req: longrunning::model::ListOperationsRequest,
777 _options: gax::options::RequestOptions,
778 ) -> impl std::future::Future<
779 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
780 > + Send {
781 gaxi::unimplemented::unimplemented_stub()
782 }
783
784 fn get_operation(
786 &self,
787 _req: longrunning::model::GetOperationRequest,
788 _options: gax::options::RequestOptions,
789 ) -> impl std::future::Future<
790 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
791 > + Send {
792 gaxi::unimplemented::unimplemented_stub()
793 }
794
795 fn delete_operation(
797 &self,
798 _req: longrunning::model::DeleteOperationRequest,
799 _options: gax::options::RequestOptions,
800 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
801 gaxi::unimplemented::unimplemented_stub()
802 }
803
804 fn cancel_operation(
806 &self,
807 _req: longrunning::model::CancelOperationRequest,
808 _options: gax::options::RequestOptions,
809 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
810 gaxi::unimplemented::unimplemented_stub()
811 }
812
813 fn get_polling_error_policy(
818 &self,
819 _options: &gax::options::RequestOptions,
820 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
821 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
822 }
823
824 fn get_polling_backoff_policy(
829 &self,
830 _options: &gax::options::RequestOptions,
831 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
832 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
833 }
834}
835
836pub trait SessionTemplateController: std::fmt::Debug + Send + Sync {
848 fn create_session_template(
850 &self,
851 _req: crate::model::CreateSessionTemplateRequest,
852 _options: gax::options::RequestOptions,
853 ) -> impl std::future::Future<
854 Output = crate::Result<gax::response::Response<crate::model::SessionTemplate>>,
855 > + Send {
856 gaxi::unimplemented::unimplemented_stub()
857 }
858
859 fn update_session_template(
861 &self,
862 _req: crate::model::UpdateSessionTemplateRequest,
863 _options: gax::options::RequestOptions,
864 ) -> impl std::future::Future<
865 Output = crate::Result<gax::response::Response<crate::model::SessionTemplate>>,
866 > + Send {
867 gaxi::unimplemented::unimplemented_stub()
868 }
869
870 fn get_session_template(
872 &self,
873 _req: crate::model::GetSessionTemplateRequest,
874 _options: gax::options::RequestOptions,
875 ) -> impl std::future::Future<
876 Output = crate::Result<gax::response::Response<crate::model::SessionTemplate>>,
877 > + Send {
878 gaxi::unimplemented::unimplemented_stub()
879 }
880
881 fn list_session_templates(
883 &self,
884 _req: crate::model::ListSessionTemplatesRequest,
885 _options: gax::options::RequestOptions,
886 ) -> impl std::future::Future<
887 Output = crate::Result<gax::response::Response<crate::model::ListSessionTemplatesResponse>>,
888 > + Send {
889 gaxi::unimplemented::unimplemented_stub()
890 }
891
892 fn delete_session_template(
894 &self,
895 _req: crate::model::DeleteSessionTemplateRequest,
896 _options: gax::options::RequestOptions,
897 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
898 gaxi::unimplemented::unimplemented_stub()
899 }
900
901 fn set_iam_policy(
903 &self,
904 _req: iam_v1::model::SetIamPolicyRequest,
905 _options: gax::options::RequestOptions,
906 ) -> impl std::future::Future<
907 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
908 > + Send {
909 gaxi::unimplemented::unimplemented_stub()
910 }
911
912 fn get_iam_policy(
914 &self,
915 _req: iam_v1::model::GetIamPolicyRequest,
916 _options: gax::options::RequestOptions,
917 ) -> impl std::future::Future<
918 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
919 > + Send {
920 gaxi::unimplemented::unimplemented_stub()
921 }
922
923 fn test_iam_permissions(
925 &self,
926 _req: iam_v1::model::TestIamPermissionsRequest,
927 _options: gax::options::RequestOptions,
928 ) -> impl std::future::Future<
929 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
930 > + Send {
931 gaxi::unimplemented::unimplemented_stub()
932 }
933
934 fn list_operations(
936 &self,
937 _req: longrunning::model::ListOperationsRequest,
938 _options: gax::options::RequestOptions,
939 ) -> impl std::future::Future<
940 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
941 > + Send {
942 gaxi::unimplemented::unimplemented_stub()
943 }
944
945 fn get_operation(
947 &self,
948 _req: longrunning::model::GetOperationRequest,
949 _options: gax::options::RequestOptions,
950 ) -> impl std::future::Future<
951 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
952 > + Send {
953 gaxi::unimplemented::unimplemented_stub()
954 }
955
956 fn delete_operation(
958 &self,
959 _req: longrunning::model::DeleteOperationRequest,
960 _options: gax::options::RequestOptions,
961 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
962 gaxi::unimplemented::unimplemented_stub()
963 }
964
965 fn cancel_operation(
967 &self,
968 _req: longrunning::model::CancelOperationRequest,
969 _options: gax::options::RequestOptions,
970 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
971 gaxi::unimplemented::unimplemented_stub()
972 }
973}
974
975pub trait SessionController: std::fmt::Debug + Send + Sync {
987 fn create_session(
989 &self,
990 _req: crate::model::CreateSessionRequest,
991 _options: gax::options::RequestOptions,
992 ) -> impl std::future::Future<
993 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
994 > + Send {
995 gaxi::unimplemented::unimplemented_stub()
996 }
997
998 fn get_session(
1000 &self,
1001 _req: crate::model::GetSessionRequest,
1002 _options: gax::options::RequestOptions,
1003 ) -> impl std::future::Future<
1004 Output = crate::Result<gax::response::Response<crate::model::Session>>,
1005 > + Send {
1006 gaxi::unimplemented::unimplemented_stub()
1007 }
1008
1009 fn list_sessions(
1011 &self,
1012 _req: crate::model::ListSessionsRequest,
1013 _options: gax::options::RequestOptions,
1014 ) -> impl std::future::Future<
1015 Output = crate::Result<gax::response::Response<crate::model::ListSessionsResponse>>,
1016 > + Send {
1017 gaxi::unimplemented::unimplemented_stub()
1018 }
1019
1020 fn terminate_session(
1022 &self,
1023 _req: crate::model::TerminateSessionRequest,
1024 _options: gax::options::RequestOptions,
1025 ) -> impl std::future::Future<
1026 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1027 > + Send {
1028 gaxi::unimplemented::unimplemented_stub()
1029 }
1030
1031 fn delete_session(
1033 &self,
1034 _req: crate::model::DeleteSessionRequest,
1035 _options: gax::options::RequestOptions,
1036 ) -> impl std::future::Future<
1037 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1038 > + Send {
1039 gaxi::unimplemented::unimplemented_stub()
1040 }
1041
1042 fn set_iam_policy(
1044 &self,
1045 _req: iam_v1::model::SetIamPolicyRequest,
1046 _options: gax::options::RequestOptions,
1047 ) -> impl std::future::Future<
1048 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
1049 > + Send {
1050 gaxi::unimplemented::unimplemented_stub()
1051 }
1052
1053 fn get_iam_policy(
1055 &self,
1056 _req: iam_v1::model::GetIamPolicyRequest,
1057 _options: gax::options::RequestOptions,
1058 ) -> impl std::future::Future<
1059 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
1060 > + Send {
1061 gaxi::unimplemented::unimplemented_stub()
1062 }
1063
1064 fn test_iam_permissions(
1066 &self,
1067 _req: iam_v1::model::TestIamPermissionsRequest,
1068 _options: gax::options::RequestOptions,
1069 ) -> impl std::future::Future<
1070 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
1071 > + Send {
1072 gaxi::unimplemented::unimplemented_stub()
1073 }
1074
1075 fn list_operations(
1077 &self,
1078 _req: longrunning::model::ListOperationsRequest,
1079 _options: gax::options::RequestOptions,
1080 ) -> impl std::future::Future<
1081 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
1082 > + Send {
1083 gaxi::unimplemented::unimplemented_stub()
1084 }
1085
1086 fn get_operation(
1088 &self,
1089 _req: longrunning::model::GetOperationRequest,
1090 _options: gax::options::RequestOptions,
1091 ) -> impl std::future::Future<
1092 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1093 > + Send {
1094 gaxi::unimplemented::unimplemented_stub()
1095 }
1096
1097 fn delete_operation(
1099 &self,
1100 _req: longrunning::model::DeleteOperationRequest,
1101 _options: gax::options::RequestOptions,
1102 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
1103 gaxi::unimplemented::unimplemented_stub()
1104 }
1105
1106 fn cancel_operation(
1108 &self,
1109 _req: longrunning::model::CancelOperationRequest,
1110 _options: gax::options::RequestOptions,
1111 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
1112 gaxi::unimplemented::unimplemented_stub()
1113 }
1114
1115 fn get_polling_error_policy(
1120 &self,
1121 _options: &gax::options::RequestOptions,
1122 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
1123 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
1124 }
1125
1126 fn get_polling_backoff_policy(
1131 &self,
1132 _options: &gax::options::RequestOptions,
1133 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
1134 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
1135 }
1136}
1137
1138pub trait WorkflowTemplateService: std::fmt::Debug + Send + Sync {
1150 fn create_workflow_template(
1152 &self,
1153 _req: crate::model::CreateWorkflowTemplateRequest,
1154 _options: gax::options::RequestOptions,
1155 ) -> impl std::future::Future<
1156 Output = crate::Result<gax::response::Response<crate::model::WorkflowTemplate>>,
1157 > + Send {
1158 gaxi::unimplemented::unimplemented_stub()
1159 }
1160
1161 fn get_workflow_template(
1163 &self,
1164 _req: crate::model::GetWorkflowTemplateRequest,
1165 _options: gax::options::RequestOptions,
1166 ) -> impl std::future::Future<
1167 Output = crate::Result<gax::response::Response<crate::model::WorkflowTemplate>>,
1168 > + Send {
1169 gaxi::unimplemented::unimplemented_stub()
1170 }
1171
1172 fn instantiate_workflow_template(
1174 &self,
1175 _req: crate::model::InstantiateWorkflowTemplateRequest,
1176 _options: gax::options::RequestOptions,
1177 ) -> impl std::future::Future<
1178 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1179 > + Send {
1180 gaxi::unimplemented::unimplemented_stub()
1181 }
1182
1183 fn instantiate_inline_workflow_template(
1185 &self,
1186 _req: crate::model::InstantiateInlineWorkflowTemplateRequest,
1187 _options: gax::options::RequestOptions,
1188 ) -> impl std::future::Future<
1189 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1190 > + Send {
1191 gaxi::unimplemented::unimplemented_stub()
1192 }
1193
1194 fn update_workflow_template(
1196 &self,
1197 _req: crate::model::UpdateWorkflowTemplateRequest,
1198 _options: gax::options::RequestOptions,
1199 ) -> impl std::future::Future<
1200 Output = crate::Result<gax::response::Response<crate::model::WorkflowTemplate>>,
1201 > + Send {
1202 gaxi::unimplemented::unimplemented_stub()
1203 }
1204
1205 fn list_workflow_templates(
1207 &self,
1208 _req: crate::model::ListWorkflowTemplatesRequest,
1209 _options: gax::options::RequestOptions,
1210 ) -> impl std::future::Future<
1211 Output = crate::Result<
1212 gax::response::Response<crate::model::ListWorkflowTemplatesResponse>,
1213 >,
1214 > + Send {
1215 gaxi::unimplemented::unimplemented_stub()
1216 }
1217
1218 fn delete_workflow_template(
1220 &self,
1221 _req: crate::model::DeleteWorkflowTemplateRequest,
1222 _options: gax::options::RequestOptions,
1223 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
1224 gaxi::unimplemented::unimplemented_stub()
1225 }
1226
1227 fn set_iam_policy(
1229 &self,
1230 _req: iam_v1::model::SetIamPolicyRequest,
1231 _options: gax::options::RequestOptions,
1232 ) -> impl std::future::Future<
1233 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
1234 > + Send {
1235 gaxi::unimplemented::unimplemented_stub()
1236 }
1237
1238 fn get_iam_policy(
1240 &self,
1241 _req: iam_v1::model::GetIamPolicyRequest,
1242 _options: gax::options::RequestOptions,
1243 ) -> impl std::future::Future<
1244 Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
1245 > + Send {
1246 gaxi::unimplemented::unimplemented_stub()
1247 }
1248
1249 fn test_iam_permissions(
1251 &self,
1252 _req: iam_v1::model::TestIamPermissionsRequest,
1253 _options: gax::options::RequestOptions,
1254 ) -> impl std::future::Future<
1255 Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
1256 > + Send {
1257 gaxi::unimplemented::unimplemented_stub()
1258 }
1259
1260 fn list_operations(
1262 &self,
1263 _req: longrunning::model::ListOperationsRequest,
1264 _options: gax::options::RequestOptions,
1265 ) -> impl std::future::Future<
1266 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
1267 > + Send {
1268 gaxi::unimplemented::unimplemented_stub()
1269 }
1270
1271 fn get_operation(
1273 &self,
1274 _req: longrunning::model::GetOperationRequest,
1275 _options: gax::options::RequestOptions,
1276 ) -> impl std::future::Future<
1277 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
1278 > + Send {
1279 gaxi::unimplemented::unimplemented_stub()
1280 }
1281
1282 fn delete_operation(
1284 &self,
1285 _req: longrunning::model::DeleteOperationRequest,
1286 _options: gax::options::RequestOptions,
1287 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
1288 gaxi::unimplemented::unimplemented_stub()
1289 }
1290
1291 fn cancel_operation(
1293 &self,
1294 _req: longrunning::model::CancelOperationRequest,
1295 _options: gax::options::RequestOptions,
1296 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
1297 gaxi::unimplemented::unimplemented_stub()
1298 }
1299
1300 fn get_polling_error_policy(
1305 &self,
1306 _options: &gax::options::RequestOptions,
1307 ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
1308 std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
1309 }
1310
1311 fn get_polling_backoff_policy(
1316 &self,
1317 _options: &gax::options::RequestOptions,
1318 ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
1319 std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
1320 }
1321}