1#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29#[cfg(feature = "assistant-service")]
41#[cfg_attr(docsrs, doc(cfg(feature = "assistant-service")))]
42pub trait AssistantService: std::fmt::Debug + Send + Sync {
43 fn list_operations(
45 &self,
46 _req: google_cloud_longrunning::model::ListOperationsRequest,
47 _options: crate::RequestOptions,
48 ) -> impl std::future::Future<
49 Output = crate::Result<
50 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
51 >,
52 > + Send {
53 gaxi::unimplemented::unimplemented_stub()
54 }
55
56 fn get_operation(
58 &self,
59 _req: google_cloud_longrunning::model::GetOperationRequest,
60 _options: crate::RequestOptions,
61 ) -> impl std::future::Future<
62 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
63 > + Send {
64 gaxi::unimplemented::unimplemented_stub()
65 }
66
67 fn cancel_operation(
69 &self,
70 _req: google_cloud_longrunning::model::CancelOperationRequest,
71 _options: crate::RequestOptions,
72 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
73 gaxi::unimplemented::unimplemented_stub()
74 }
75}
76
77#[cfg(feature = "cmek-config-service")]
89#[cfg_attr(docsrs, doc(cfg(feature = "cmek-config-service")))]
90pub trait CmekConfigService: std::fmt::Debug + Send + Sync {
91 fn update_cmek_config(
93 &self,
94 _req: crate::model::UpdateCmekConfigRequest,
95 _options: crate::RequestOptions,
96 ) -> impl std::future::Future<
97 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
98 > + Send {
99 gaxi::unimplemented::unimplemented_stub()
100 }
101
102 fn get_cmek_config(
104 &self,
105 _req: crate::model::GetCmekConfigRequest,
106 _options: crate::RequestOptions,
107 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::CmekConfig>>> + Send
108 {
109 gaxi::unimplemented::unimplemented_stub()
110 }
111
112 fn list_cmek_configs(
114 &self,
115 _req: crate::model::ListCmekConfigsRequest,
116 _options: crate::RequestOptions,
117 ) -> impl std::future::Future<
118 Output = crate::Result<crate::Response<crate::model::ListCmekConfigsResponse>>,
119 > + Send {
120 gaxi::unimplemented::unimplemented_stub()
121 }
122
123 fn delete_cmek_config(
125 &self,
126 _req: crate::model::DeleteCmekConfigRequest,
127 _options: crate::RequestOptions,
128 ) -> impl std::future::Future<
129 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
130 > + Send {
131 gaxi::unimplemented::unimplemented_stub()
132 }
133
134 fn list_operations(
136 &self,
137 _req: google_cloud_longrunning::model::ListOperationsRequest,
138 _options: crate::RequestOptions,
139 ) -> impl std::future::Future<
140 Output = crate::Result<
141 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
142 >,
143 > + Send {
144 gaxi::unimplemented::unimplemented_stub()
145 }
146
147 fn get_operation(
149 &self,
150 _req: google_cloud_longrunning::model::GetOperationRequest,
151 _options: crate::RequestOptions,
152 ) -> impl std::future::Future<
153 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
154 > + Send {
155 gaxi::unimplemented::unimplemented_stub()
156 }
157
158 fn cancel_operation(
160 &self,
161 _req: google_cloud_longrunning::model::CancelOperationRequest,
162 _options: crate::RequestOptions,
163 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
164 gaxi::unimplemented::unimplemented_stub()
165 }
166
167 fn get_polling_error_policy(
172 &self,
173 _options: &crate::RequestOptions,
174 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
175 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
176 }
177
178 fn get_polling_backoff_policy(
183 &self,
184 _options: &crate::RequestOptions,
185 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
186 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
187 }
188}
189
190#[cfg(feature = "completion-service")]
202#[cfg_attr(docsrs, doc(cfg(feature = "completion-service")))]
203pub trait CompletionService: std::fmt::Debug + Send + Sync {
204 fn complete_query(
206 &self,
207 _req: crate::model::CompleteQueryRequest,
208 _options: crate::RequestOptions,
209 ) -> impl std::future::Future<
210 Output = crate::Result<crate::Response<crate::model::CompleteQueryResponse>>,
211 > + Send {
212 gaxi::unimplemented::unimplemented_stub()
213 }
214
215 fn import_suggestion_deny_list_entries(
217 &self,
218 _req: crate::model::ImportSuggestionDenyListEntriesRequest,
219 _options: crate::RequestOptions,
220 ) -> impl std::future::Future<
221 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
222 > + Send {
223 gaxi::unimplemented::unimplemented_stub()
224 }
225
226 fn purge_suggestion_deny_list_entries(
228 &self,
229 _req: crate::model::PurgeSuggestionDenyListEntriesRequest,
230 _options: crate::RequestOptions,
231 ) -> impl std::future::Future<
232 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
233 > + Send {
234 gaxi::unimplemented::unimplemented_stub()
235 }
236
237 fn import_completion_suggestions(
239 &self,
240 _req: crate::model::ImportCompletionSuggestionsRequest,
241 _options: crate::RequestOptions,
242 ) -> impl std::future::Future<
243 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
244 > + Send {
245 gaxi::unimplemented::unimplemented_stub()
246 }
247
248 fn purge_completion_suggestions(
250 &self,
251 _req: crate::model::PurgeCompletionSuggestionsRequest,
252 _options: crate::RequestOptions,
253 ) -> impl std::future::Future<
254 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
255 > + Send {
256 gaxi::unimplemented::unimplemented_stub()
257 }
258
259 fn list_operations(
261 &self,
262 _req: google_cloud_longrunning::model::ListOperationsRequest,
263 _options: crate::RequestOptions,
264 ) -> impl std::future::Future<
265 Output = crate::Result<
266 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
267 >,
268 > + Send {
269 gaxi::unimplemented::unimplemented_stub()
270 }
271
272 fn get_operation(
274 &self,
275 _req: google_cloud_longrunning::model::GetOperationRequest,
276 _options: crate::RequestOptions,
277 ) -> impl std::future::Future<
278 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
279 > + Send {
280 gaxi::unimplemented::unimplemented_stub()
281 }
282
283 fn cancel_operation(
285 &self,
286 _req: google_cloud_longrunning::model::CancelOperationRequest,
287 _options: crate::RequestOptions,
288 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
289 gaxi::unimplemented::unimplemented_stub()
290 }
291
292 fn get_polling_error_policy(
297 &self,
298 _options: &crate::RequestOptions,
299 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
300 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
301 }
302
303 fn get_polling_backoff_policy(
308 &self,
309 _options: &crate::RequestOptions,
310 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
311 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
312 }
313}
314
315#[cfg(feature = "control-service")]
327#[cfg_attr(docsrs, doc(cfg(feature = "control-service")))]
328pub trait ControlService: std::fmt::Debug + Send + Sync {
329 fn create_control(
331 &self,
332 _req: crate::model::CreateControlRequest,
333 _options: crate::RequestOptions,
334 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
335 {
336 gaxi::unimplemented::unimplemented_stub()
337 }
338
339 fn delete_control(
341 &self,
342 _req: crate::model::DeleteControlRequest,
343 _options: crate::RequestOptions,
344 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
345 gaxi::unimplemented::unimplemented_stub()
346 }
347
348 fn update_control(
350 &self,
351 _req: crate::model::UpdateControlRequest,
352 _options: crate::RequestOptions,
353 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
354 {
355 gaxi::unimplemented::unimplemented_stub()
356 }
357
358 fn get_control(
360 &self,
361 _req: crate::model::GetControlRequest,
362 _options: crate::RequestOptions,
363 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Control>>> + Send
364 {
365 gaxi::unimplemented::unimplemented_stub()
366 }
367
368 fn list_controls(
370 &self,
371 _req: crate::model::ListControlsRequest,
372 _options: crate::RequestOptions,
373 ) -> impl std::future::Future<
374 Output = crate::Result<crate::Response<crate::model::ListControlsResponse>>,
375 > + Send {
376 gaxi::unimplemented::unimplemented_stub()
377 }
378
379 fn list_operations(
381 &self,
382 _req: google_cloud_longrunning::model::ListOperationsRequest,
383 _options: crate::RequestOptions,
384 ) -> impl std::future::Future<
385 Output = crate::Result<
386 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
387 >,
388 > + Send {
389 gaxi::unimplemented::unimplemented_stub()
390 }
391
392 fn get_operation(
394 &self,
395 _req: google_cloud_longrunning::model::GetOperationRequest,
396 _options: crate::RequestOptions,
397 ) -> impl std::future::Future<
398 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
399 > + Send {
400 gaxi::unimplemented::unimplemented_stub()
401 }
402
403 fn cancel_operation(
405 &self,
406 _req: google_cloud_longrunning::model::CancelOperationRequest,
407 _options: crate::RequestOptions,
408 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
409 gaxi::unimplemented::unimplemented_stub()
410 }
411}
412
413#[cfg(feature = "conversational-search-service")]
425#[cfg_attr(docsrs, doc(cfg(feature = "conversational-search-service")))]
426pub trait ConversationalSearchService: std::fmt::Debug + Send + Sync {
427 fn converse_conversation(
429 &self,
430 _req: crate::model::ConverseConversationRequest,
431 _options: crate::RequestOptions,
432 ) -> impl std::future::Future<
433 Output = crate::Result<crate::Response<crate::model::ConverseConversationResponse>>,
434 > + Send {
435 gaxi::unimplemented::unimplemented_stub()
436 }
437
438 fn create_conversation(
440 &self,
441 _req: crate::model::CreateConversationRequest,
442 _options: crate::RequestOptions,
443 ) -> impl std::future::Future<
444 Output = crate::Result<crate::Response<crate::model::Conversation>>,
445 > + Send {
446 gaxi::unimplemented::unimplemented_stub()
447 }
448
449 fn delete_conversation(
451 &self,
452 _req: crate::model::DeleteConversationRequest,
453 _options: crate::RequestOptions,
454 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
455 gaxi::unimplemented::unimplemented_stub()
456 }
457
458 fn update_conversation(
460 &self,
461 _req: crate::model::UpdateConversationRequest,
462 _options: crate::RequestOptions,
463 ) -> impl std::future::Future<
464 Output = crate::Result<crate::Response<crate::model::Conversation>>,
465 > + Send {
466 gaxi::unimplemented::unimplemented_stub()
467 }
468
469 fn get_conversation(
471 &self,
472 _req: crate::model::GetConversationRequest,
473 _options: crate::RequestOptions,
474 ) -> impl std::future::Future<
475 Output = crate::Result<crate::Response<crate::model::Conversation>>,
476 > + Send {
477 gaxi::unimplemented::unimplemented_stub()
478 }
479
480 fn list_conversations(
482 &self,
483 _req: crate::model::ListConversationsRequest,
484 _options: crate::RequestOptions,
485 ) -> impl std::future::Future<
486 Output = crate::Result<crate::Response<crate::model::ListConversationsResponse>>,
487 > + Send {
488 gaxi::unimplemented::unimplemented_stub()
489 }
490
491 fn answer_query(
493 &self,
494 _req: crate::model::AnswerQueryRequest,
495 _options: crate::RequestOptions,
496 ) -> impl std::future::Future<
497 Output = crate::Result<crate::Response<crate::model::AnswerQueryResponse>>,
498 > + Send {
499 gaxi::unimplemented::unimplemented_stub()
500 }
501
502 fn get_answer(
504 &self,
505 _req: crate::model::GetAnswerRequest,
506 _options: crate::RequestOptions,
507 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Answer>>> + Send
508 {
509 gaxi::unimplemented::unimplemented_stub()
510 }
511
512 fn create_session(
514 &self,
515 _req: crate::model::CreateSessionRequest,
516 _options: crate::RequestOptions,
517 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
518 {
519 gaxi::unimplemented::unimplemented_stub()
520 }
521
522 fn delete_session(
524 &self,
525 _req: crate::model::DeleteSessionRequest,
526 _options: crate::RequestOptions,
527 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
528 gaxi::unimplemented::unimplemented_stub()
529 }
530
531 fn update_session(
533 &self,
534 _req: crate::model::UpdateSessionRequest,
535 _options: crate::RequestOptions,
536 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
537 {
538 gaxi::unimplemented::unimplemented_stub()
539 }
540
541 fn get_session(
543 &self,
544 _req: crate::model::GetSessionRequest,
545 _options: crate::RequestOptions,
546 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
547 {
548 gaxi::unimplemented::unimplemented_stub()
549 }
550
551 fn list_sessions(
553 &self,
554 _req: crate::model::ListSessionsRequest,
555 _options: crate::RequestOptions,
556 ) -> impl std::future::Future<
557 Output = crate::Result<crate::Response<crate::model::ListSessionsResponse>>,
558 > + Send {
559 gaxi::unimplemented::unimplemented_stub()
560 }
561
562 fn list_operations(
564 &self,
565 _req: google_cloud_longrunning::model::ListOperationsRequest,
566 _options: crate::RequestOptions,
567 ) -> impl std::future::Future<
568 Output = crate::Result<
569 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
570 >,
571 > + Send {
572 gaxi::unimplemented::unimplemented_stub()
573 }
574
575 fn get_operation(
577 &self,
578 _req: google_cloud_longrunning::model::GetOperationRequest,
579 _options: crate::RequestOptions,
580 ) -> impl std::future::Future<
581 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
582 > + Send {
583 gaxi::unimplemented::unimplemented_stub()
584 }
585
586 fn cancel_operation(
588 &self,
589 _req: google_cloud_longrunning::model::CancelOperationRequest,
590 _options: crate::RequestOptions,
591 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
592 gaxi::unimplemented::unimplemented_stub()
593 }
594}
595
596#[cfg(feature = "data-store-service")]
608#[cfg_attr(docsrs, doc(cfg(feature = "data-store-service")))]
609pub trait DataStoreService: std::fmt::Debug + Send + Sync {
610 fn create_data_store(
612 &self,
613 _req: crate::model::CreateDataStoreRequest,
614 _options: crate::RequestOptions,
615 ) -> impl std::future::Future<
616 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
617 > + Send {
618 gaxi::unimplemented::unimplemented_stub()
619 }
620
621 fn get_data_store(
623 &self,
624 _req: crate::model::GetDataStoreRequest,
625 _options: crate::RequestOptions,
626 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::DataStore>>> + Send
627 {
628 gaxi::unimplemented::unimplemented_stub()
629 }
630
631 fn list_data_stores(
633 &self,
634 _req: crate::model::ListDataStoresRequest,
635 _options: crate::RequestOptions,
636 ) -> impl std::future::Future<
637 Output = crate::Result<crate::Response<crate::model::ListDataStoresResponse>>,
638 > + Send {
639 gaxi::unimplemented::unimplemented_stub()
640 }
641
642 fn delete_data_store(
644 &self,
645 _req: crate::model::DeleteDataStoreRequest,
646 _options: crate::RequestOptions,
647 ) -> impl std::future::Future<
648 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
649 > + Send {
650 gaxi::unimplemented::unimplemented_stub()
651 }
652
653 fn update_data_store(
655 &self,
656 _req: crate::model::UpdateDataStoreRequest,
657 _options: crate::RequestOptions,
658 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::DataStore>>> + Send
659 {
660 gaxi::unimplemented::unimplemented_stub()
661 }
662
663 fn list_operations(
665 &self,
666 _req: google_cloud_longrunning::model::ListOperationsRequest,
667 _options: crate::RequestOptions,
668 ) -> impl std::future::Future<
669 Output = crate::Result<
670 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
671 >,
672 > + Send {
673 gaxi::unimplemented::unimplemented_stub()
674 }
675
676 fn get_operation(
678 &self,
679 _req: google_cloud_longrunning::model::GetOperationRequest,
680 _options: crate::RequestOptions,
681 ) -> impl std::future::Future<
682 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
683 > + Send {
684 gaxi::unimplemented::unimplemented_stub()
685 }
686
687 fn cancel_operation(
689 &self,
690 _req: google_cloud_longrunning::model::CancelOperationRequest,
691 _options: crate::RequestOptions,
692 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
693 gaxi::unimplemented::unimplemented_stub()
694 }
695
696 fn get_polling_error_policy(
701 &self,
702 _options: &crate::RequestOptions,
703 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
704 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
705 }
706
707 fn get_polling_backoff_policy(
712 &self,
713 _options: &crate::RequestOptions,
714 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
715 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
716 }
717}
718
719#[cfg(feature = "document-service")]
731#[cfg_attr(docsrs, doc(cfg(feature = "document-service")))]
732pub trait DocumentService: std::fmt::Debug + Send + Sync {
733 fn get_document(
735 &self,
736 _req: crate::model::GetDocumentRequest,
737 _options: crate::RequestOptions,
738 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
739 {
740 gaxi::unimplemented::unimplemented_stub()
741 }
742
743 fn list_documents(
745 &self,
746 _req: crate::model::ListDocumentsRequest,
747 _options: crate::RequestOptions,
748 ) -> impl std::future::Future<
749 Output = crate::Result<crate::Response<crate::model::ListDocumentsResponse>>,
750 > + Send {
751 gaxi::unimplemented::unimplemented_stub()
752 }
753
754 fn create_document(
756 &self,
757 _req: crate::model::CreateDocumentRequest,
758 _options: crate::RequestOptions,
759 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
760 {
761 gaxi::unimplemented::unimplemented_stub()
762 }
763
764 fn update_document(
766 &self,
767 _req: crate::model::UpdateDocumentRequest,
768 _options: crate::RequestOptions,
769 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Document>>> + Send
770 {
771 gaxi::unimplemented::unimplemented_stub()
772 }
773
774 fn delete_document(
776 &self,
777 _req: crate::model::DeleteDocumentRequest,
778 _options: crate::RequestOptions,
779 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
780 gaxi::unimplemented::unimplemented_stub()
781 }
782
783 fn import_documents(
785 &self,
786 _req: crate::model::ImportDocumentsRequest,
787 _options: crate::RequestOptions,
788 ) -> impl std::future::Future<
789 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
790 > + Send {
791 gaxi::unimplemented::unimplemented_stub()
792 }
793
794 fn purge_documents(
796 &self,
797 _req: crate::model::PurgeDocumentsRequest,
798 _options: crate::RequestOptions,
799 ) -> impl std::future::Future<
800 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
801 > + Send {
802 gaxi::unimplemented::unimplemented_stub()
803 }
804
805 fn batch_get_documents_metadata(
807 &self,
808 _req: crate::model::BatchGetDocumentsMetadataRequest,
809 _options: crate::RequestOptions,
810 ) -> impl std::future::Future<
811 Output = crate::Result<crate::Response<crate::model::BatchGetDocumentsMetadataResponse>>,
812 > + Send {
813 gaxi::unimplemented::unimplemented_stub()
814 }
815
816 fn list_operations(
818 &self,
819 _req: google_cloud_longrunning::model::ListOperationsRequest,
820 _options: crate::RequestOptions,
821 ) -> impl std::future::Future<
822 Output = crate::Result<
823 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
824 >,
825 > + Send {
826 gaxi::unimplemented::unimplemented_stub()
827 }
828
829 fn get_operation(
831 &self,
832 _req: google_cloud_longrunning::model::GetOperationRequest,
833 _options: crate::RequestOptions,
834 ) -> impl std::future::Future<
835 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
836 > + Send {
837 gaxi::unimplemented::unimplemented_stub()
838 }
839
840 fn cancel_operation(
842 &self,
843 _req: google_cloud_longrunning::model::CancelOperationRequest,
844 _options: crate::RequestOptions,
845 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
846 gaxi::unimplemented::unimplemented_stub()
847 }
848
849 fn get_polling_error_policy(
854 &self,
855 _options: &crate::RequestOptions,
856 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
857 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
858 }
859
860 fn get_polling_backoff_policy(
865 &self,
866 _options: &crate::RequestOptions,
867 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
868 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
869 }
870}
871
872#[cfg(feature = "engine-service")]
884#[cfg_attr(docsrs, doc(cfg(feature = "engine-service")))]
885pub trait EngineService: std::fmt::Debug + Send + Sync {
886 fn create_engine(
888 &self,
889 _req: crate::model::CreateEngineRequest,
890 _options: crate::RequestOptions,
891 ) -> impl std::future::Future<
892 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
893 > + Send {
894 gaxi::unimplemented::unimplemented_stub()
895 }
896
897 fn delete_engine(
899 &self,
900 _req: crate::model::DeleteEngineRequest,
901 _options: crate::RequestOptions,
902 ) -> impl std::future::Future<
903 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
904 > + Send {
905 gaxi::unimplemented::unimplemented_stub()
906 }
907
908 fn update_engine(
910 &self,
911 _req: crate::model::UpdateEngineRequest,
912 _options: crate::RequestOptions,
913 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Engine>>> + Send
914 {
915 gaxi::unimplemented::unimplemented_stub()
916 }
917
918 fn get_engine(
920 &self,
921 _req: crate::model::GetEngineRequest,
922 _options: crate::RequestOptions,
923 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Engine>>> + Send
924 {
925 gaxi::unimplemented::unimplemented_stub()
926 }
927
928 fn list_engines(
930 &self,
931 _req: crate::model::ListEnginesRequest,
932 _options: crate::RequestOptions,
933 ) -> impl std::future::Future<
934 Output = crate::Result<crate::Response<crate::model::ListEnginesResponse>>,
935 > + Send {
936 gaxi::unimplemented::unimplemented_stub()
937 }
938
939 fn list_operations(
941 &self,
942 _req: google_cloud_longrunning::model::ListOperationsRequest,
943 _options: crate::RequestOptions,
944 ) -> impl std::future::Future<
945 Output = crate::Result<
946 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
947 >,
948 > + Send {
949 gaxi::unimplemented::unimplemented_stub()
950 }
951
952 fn get_operation(
954 &self,
955 _req: google_cloud_longrunning::model::GetOperationRequest,
956 _options: crate::RequestOptions,
957 ) -> impl std::future::Future<
958 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
959 > + Send {
960 gaxi::unimplemented::unimplemented_stub()
961 }
962
963 fn cancel_operation(
965 &self,
966 _req: google_cloud_longrunning::model::CancelOperationRequest,
967 _options: crate::RequestOptions,
968 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
969 gaxi::unimplemented::unimplemented_stub()
970 }
971
972 fn get_polling_error_policy(
977 &self,
978 _options: &crate::RequestOptions,
979 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
980 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
981 }
982
983 fn get_polling_backoff_policy(
988 &self,
989 _options: &crate::RequestOptions,
990 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
991 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
992 }
993}
994
995#[cfg(feature = "grounded-generation-service")]
1007#[cfg_attr(docsrs, doc(cfg(feature = "grounded-generation-service")))]
1008pub trait GroundedGenerationService: std::fmt::Debug + Send + Sync {
1009 fn generate_grounded_content(
1011 &self,
1012 _req: crate::model::GenerateGroundedContentRequest,
1013 _options: crate::RequestOptions,
1014 ) -> impl std::future::Future<
1015 Output = crate::Result<crate::Response<crate::model::GenerateGroundedContentResponse>>,
1016 > + Send {
1017 gaxi::unimplemented::unimplemented_stub()
1018 }
1019
1020 fn check_grounding(
1022 &self,
1023 _req: crate::model::CheckGroundingRequest,
1024 _options: crate::RequestOptions,
1025 ) -> impl std::future::Future<
1026 Output = crate::Result<crate::Response<crate::model::CheckGroundingResponse>>,
1027 > + Send {
1028 gaxi::unimplemented::unimplemented_stub()
1029 }
1030
1031 fn list_operations(
1033 &self,
1034 _req: google_cloud_longrunning::model::ListOperationsRequest,
1035 _options: crate::RequestOptions,
1036 ) -> impl std::future::Future<
1037 Output = crate::Result<
1038 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1039 >,
1040 > + Send {
1041 gaxi::unimplemented::unimplemented_stub()
1042 }
1043
1044 fn get_operation(
1046 &self,
1047 _req: google_cloud_longrunning::model::GetOperationRequest,
1048 _options: crate::RequestOptions,
1049 ) -> impl std::future::Future<
1050 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1051 > + Send {
1052 gaxi::unimplemented::unimplemented_stub()
1053 }
1054
1055 fn cancel_operation(
1057 &self,
1058 _req: google_cloud_longrunning::model::CancelOperationRequest,
1059 _options: crate::RequestOptions,
1060 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1061 gaxi::unimplemented::unimplemented_stub()
1062 }
1063}
1064
1065#[cfg(feature = "identity-mapping-store-service")]
1077#[cfg_attr(docsrs, doc(cfg(feature = "identity-mapping-store-service")))]
1078pub trait IdentityMappingStoreService: std::fmt::Debug + Send + Sync {
1079 fn create_identity_mapping_store(
1081 &self,
1082 _req: crate::model::CreateIdentityMappingStoreRequest,
1083 _options: crate::RequestOptions,
1084 ) -> impl std::future::Future<
1085 Output = crate::Result<crate::Response<crate::model::IdentityMappingStore>>,
1086 > + Send {
1087 gaxi::unimplemented::unimplemented_stub()
1088 }
1089
1090 fn get_identity_mapping_store(
1092 &self,
1093 _req: crate::model::GetIdentityMappingStoreRequest,
1094 _options: crate::RequestOptions,
1095 ) -> impl std::future::Future<
1096 Output = crate::Result<crate::Response<crate::model::IdentityMappingStore>>,
1097 > + Send {
1098 gaxi::unimplemented::unimplemented_stub()
1099 }
1100
1101 fn delete_identity_mapping_store(
1103 &self,
1104 _req: crate::model::DeleteIdentityMappingStoreRequest,
1105 _options: crate::RequestOptions,
1106 ) -> impl std::future::Future<
1107 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1108 > + Send {
1109 gaxi::unimplemented::unimplemented_stub()
1110 }
1111
1112 fn import_identity_mappings(
1114 &self,
1115 _req: crate::model::ImportIdentityMappingsRequest,
1116 _options: crate::RequestOptions,
1117 ) -> impl std::future::Future<
1118 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1119 > + Send {
1120 gaxi::unimplemented::unimplemented_stub()
1121 }
1122
1123 fn purge_identity_mappings(
1125 &self,
1126 _req: crate::model::PurgeIdentityMappingsRequest,
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 fn list_identity_mappings(
1136 &self,
1137 _req: crate::model::ListIdentityMappingsRequest,
1138 _options: crate::RequestOptions,
1139 ) -> impl std::future::Future<
1140 Output = crate::Result<crate::Response<crate::model::ListIdentityMappingsResponse>>,
1141 > + Send {
1142 gaxi::unimplemented::unimplemented_stub()
1143 }
1144
1145 fn list_identity_mapping_stores(
1147 &self,
1148 _req: crate::model::ListIdentityMappingStoresRequest,
1149 _options: crate::RequestOptions,
1150 ) -> impl std::future::Future<
1151 Output = crate::Result<crate::Response<crate::model::ListIdentityMappingStoresResponse>>,
1152 > + Send {
1153 gaxi::unimplemented::unimplemented_stub()
1154 }
1155
1156 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 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 fn cancel_operation(
1182 &self,
1183 _req: google_cloud_longrunning::model::CancelOperationRequest,
1184 _options: crate::RequestOptions,
1185 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1186 gaxi::unimplemented::unimplemented_stub()
1187 }
1188
1189 fn get_polling_error_policy(
1194 &self,
1195 _options: &crate::RequestOptions,
1196 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1197 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1198 }
1199
1200 fn get_polling_backoff_policy(
1205 &self,
1206 _options: &crate::RequestOptions,
1207 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1208 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1209 }
1210}
1211
1212#[cfg(feature = "project-service")]
1224#[cfg_attr(docsrs, doc(cfg(feature = "project-service")))]
1225pub trait ProjectService: std::fmt::Debug + Send + Sync {
1226 fn provision_project(
1228 &self,
1229 _req: crate::model::ProvisionProjectRequest,
1230 _options: crate::RequestOptions,
1231 ) -> impl std::future::Future<
1232 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1233 > + Send {
1234 gaxi::unimplemented::unimplemented_stub()
1235 }
1236
1237 fn list_operations(
1239 &self,
1240 _req: google_cloud_longrunning::model::ListOperationsRequest,
1241 _options: crate::RequestOptions,
1242 ) -> impl std::future::Future<
1243 Output = crate::Result<
1244 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1245 >,
1246 > + Send {
1247 gaxi::unimplemented::unimplemented_stub()
1248 }
1249
1250 fn get_operation(
1252 &self,
1253 _req: google_cloud_longrunning::model::GetOperationRequest,
1254 _options: crate::RequestOptions,
1255 ) -> impl std::future::Future<
1256 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1257 > + Send {
1258 gaxi::unimplemented::unimplemented_stub()
1259 }
1260
1261 fn cancel_operation(
1263 &self,
1264 _req: google_cloud_longrunning::model::CancelOperationRequest,
1265 _options: crate::RequestOptions,
1266 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1267 gaxi::unimplemented::unimplemented_stub()
1268 }
1269
1270 fn get_polling_error_policy(
1275 &self,
1276 _options: &crate::RequestOptions,
1277 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1278 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1279 }
1280
1281 fn get_polling_backoff_policy(
1286 &self,
1287 _options: &crate::RequestOptions,
1288 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1289 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1290 }
1291}
1292
1293#[cfg(feature = "rank-service")]
1305#[cfg_attr(docsrs, doc(cfg(feature = "rank-service")))]
1306pub trait RankService: std::fmt::Debug + Send + Sync {
1307 fn rank(
1309 &self,
1310 _req: crate::model::RankRequest,
1311 _options: crate::RequestOptions,
1312 ) -> impl std::future::Future<
1313 Output = crate::Result<crate::Response<crate::model::RankResponse>>,
1314 > + Send {
1315 gaxi::unimplemented::unimplemented_stub()
1316 }
1317
1318 fn list_operations(
1320 &self,
1321 _req: google_cloud_longrunning::model::ListOperationsRequest,
1322 _options: crate::RequestOptions,
1323 ) -> impl std::future::Future<
1324 Output = crate::Result<
1325 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1326 >,
1327 > + Send {
1328 gaxi::unimplemented::unimplemented_stub()
1329 }
1330
1331 fn get_operation(
1333 &self,
1334 _req: google_cloud_longrunning::model::GetOperationRequest,
1335 _options: crate::RequestOptions,
1336 ) -> impl std::future::Future<
1337 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1338 > + Send {
1339 gaxi::unimplemented::unimplemented_stub()
1340 }
1341
1342 fn cancel_operation(
1344 &self,
1345 _req: google_cloud_longrunning::model::CancelOperationRequest,
1346 _options: crate::RequestOptions,
1347 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1348 gaxi::unimplemented::unimplemented_stub()
1349 }
1350}
1351
1352#[cfg(feature = "recommendation-service")]
1364#[cfg_attr(docsrs, doc(cfg(feature = "recommendation-service")))]
1365pub trait RecommendationService: std::fmt::Debug + Send + Sync {
1366 fn recommend(
1368 &self,
1369 _req: crate::model::RecommendRequest,
1370 _options: crate::RequestOptions,
1371 ) -> impl std::future::Future<
1372 Output = crate::Result<crate::Response<crate::model::RecommendResponse>>,
1373 > + Send {
1374 gaxi::unimplemented::unimplemented_stub()
1375 }
1376
1377 fn list_operations(
1379 &self,
1380 _req: google_cloud_longrunning::model::ListOperationsRequest,
1381 _options: crate::RequestOptions,
1382 ) -> impl std::future::Future<
1383 Output = crate::Result<
1384 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1385 >,
1386 > + Send {
1387 gaxi::unimplemented::unimplemented_stub()
1388 }
1389
1390 fn get_operation(
1392 &self,
1393 _req: google_cloud_longrunning::model::GetOperationRequest,
1394 _options: crate::RequestOptions,
1395 ) -> impl std::future::Future<
1396 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1397 > + Send {
1398 gaxi::unimplemented::unimplemented_stub()
1399 }
1400
1401 fn cancel_operation(
1403 &self,
1404 _req: google_cloud_longrunning::model::CancelOperationRequest,
1405 _options: crate::RequestOptions,
1406 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1407 gaxi::unimplemented::unimplemented_stub()
1408 }
1409}
1410
1411#[cfg(feature = "schema-service")]
1423#[cfg_attr(docsrs, doc(cfg(feature = "schema-service")))]
1424pub trait SchemaService: std::fmt::Debug + Send + Sync {
1425 fn get_schema(
1427 &self,
1428 _req: crate::model::GetSchemaRequest,
1429 _options: crate::RequestOptions,
1430 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Schema>>> + Send
1431 {
1432 gaxi::unimplemented::unimplemented_stub()
1433 }
1434
1435 fn list_schemas(
1437 &self,
1438 _req: crate::model::ListSchemasRequest,
1439 _options: crate::RequestOptions,
1440 ) -> impl std::future::Future<
1441 Output = crate::Result<crate::Response<crate::model::ListSchemasResponse>>,
1442 > + Send {
1443 gaxi::unimplemented::unimplemented_stub()
1444 }
1445
1446 fn create_schema(
1448 &self,
1449 _req: crate::model::CreateSchemaRequest,
1450 _options: crate::RequestOptions,
1451 ) -> impl std::future::Future<
1452 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1453 > + Send {
1454 gaxi::unimplemented::unimplemented_stub()
1455 }
1456
1457 fn update_schema(
1459 &self,
1460 _req: crate::model::UpdateSchemaRequest,
1461 _options: crate::RequestOptions,
1462 ) -> impl std::future::Future<
1463 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1464 > + Send {
1465 gaxi::unimplemented::unimplemented_stub()
1466 }
1467
1468 fn delete_schema(
1470 &self,
1471 _req: crate::model::DeleteSchemaRequest,
1472 _options: crate::RequestOptions,
1473 ) -> impl std::future::Future<
1474 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1475 > + Send {
1476 gaxi::unimplemented::unimplemented_stub()
1477 }
1478
1479 fn list_operations(
1481 &self,
1482 _req: google_cloud_longrunning::model::ListOperationsRequest,
1483 _options: crate::RequestOptions,
1484 ) -> impl std::future::Future<
1485 Output = crate::Result<
1486 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1487 >,
1488 > + Send {
1489 gaxi::unimplemented::unimplemented_stub()
1490 }
1491
1492 fn get_operation(
1494 &self,
1495 _req: google_cloud_longrunning::model::GetOperationRequest,
1496 _options: crate::RequestOptions,
1497 ) -> impl std::future::Future<
1498 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1499 > + Send {
1500 gaxi::unimplemented::unimplemented_stub()
1501 }
1502
1503 fn cancel_operation(
1505 &self,
1506 _req: google_cloud_longrunning::model::CancelOperationRequest,
1507 _options: crate::RequestOptions,
1508 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1509 gaxi::unimplemented::unimplemented_stub()
1510 }
1511
1512 fn get_polling_error_policy(
1517 &self,
1518 _options: &crate::RequestOptions,
1519 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1520 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1521 }
1522
1523 fn get_polling_backoff_policy(
1528 &self,
1529 _options: &crate::RequestOptions,
1530 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1531 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1532 }
1533}
1534
1535#[cfg(feature = "search-service")]
1547#[cfg_attr(docsrs, doc(cfg(feature = "search-service")))]
1548pub trait SearchService: std::fmt::Debug + Send + Sync {
1549 fn search(
1551 &self,
1552 _req: crate::model::SearchRequest,
1553 _options: crate::RequestOptions,
1554 ) -> impl std::future::Future<
1555 Output = crate::Result<crate::Response<crate::model::SearchResponse>>,
1556 > + Send {
1557 gaxi::unimplemented::unimplemented_stub()
1558 }
1559
1560 fn search_lite(
1562 &self,
1563 _req: crate::model::SearchRequest,
1564 _options: crate::RequestOptions,
1565 ) -> impl std::future::Future<
1566 Output = crate::Result<crate::Response<crate::model::SearchResponse>>,
1567 > + Send {
1568 gaxi::unimplemented::unimplemented_stub()
1569 }
1570
1571 fn list_operations(
1573 &self,
1574 _req: google_cloud_longrunning::model::ListOperationsRequest,
1575 _options: crate::RequestOptions,
1576 ) -> impl std::future::Future<
1577 Output = crate::Result<
1578 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1579 >,
1580 > + Send {
1581 gaxi::unimplemented::unimplemented_stub()
1582 }
1583
1584 fn get_operation(
1586 &self,
1587 _req: google_cloud_longrunning::model::GetOperationRequest,
1588 _options: crate::RequestOptions,
1589 ) -> impl std::future::Future<
1590 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1591 > + Send {
1592 gaxi::unimplemented::unimplemented_stub()
1593 }
1594
1595 fn cancel_operation(
1597 &self,
1598 _req: google_cloud_longrunning::model::CancelOperationRequest,
1599 _options: crate::RequestOptions,
1600 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1601 gaxi::unimplemented::unimplemented_stub()
1602 }
1603}
1604
1605#[cfg(feature = "search-tuning-service")]
1617#[cfg_attr(docsrs, doc(cfg(feature = "search-tuning-service")))]
1618pub trait SearchTuningService: std::fmt::Debug + Send + Sync {
1619 fn train_custom_model(
1621 &self,
1622 _req: crate::model::TrainCustomModelRequest,
1623 _options: crate::RequestOptions,
1624 ) -> impl std::future::Future<
1625 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1626 > + Send {
1627 gaxi::unimplemented::unimplemented_stub()
1628 }
1629
1630 fn list_custom_models(
1632 &self,
1633 _req: crate::model::ListCustomModelsRequest,
1634 _options: crate::RequestOptions,
1635 ) -> impl std::future::Future<
1636 Output = crate::Result<crate::Response<crate::model::ListCustomModelsResponse>>,
1637 > + Send {
1638 gaxi::unimplemented::unimplemented_stub()
1639 }
1640
1641 fn list_operations(
1643 &self,
1644 _req: google_cloud_longrunning::model::ListOperationsRequest,
1645 _options: crate::RequestOptions,
1646 ) -> impl std::future::Future<
1647 Output = crate::Result<
1648 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1649 >,
1650 > + Send {
1651 gaxi::unimplemented::unimplemented_stub()
1652 }
1653
1654 fn get_operation(
1656 &self,
1657 _req: google_cloud_longrunning::model::GetOperationRequest,
1658 _options: crate::RequestOptions,
1659 ) -> impl std::future::Future<
1660 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1661 > + Send {
1662 gaxi::unimplemented::unimplemented_stub()
1663 }
1664
1665 fn cancel_operation(
1667 &self,
1668 _req: google_cloud_longrunning::model::CancelOperationRequest,
1669 _options: crate::RequestOptions,
1670 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1671 gaxi::unimplemented::unimplemented_stub()
1672 }
1673
1674 fn get_polling_error_policy(
1679 &self,
1680 _options: &crate::RequestOptions,
1681 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
1682 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
1683 }
1684
1685 fn get_polling_backoff_policy(
1690 &self,
1691 _options: &crate::RequestOptions,
1692 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
1693 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
1694 }
1695}
1696
1697#[cfg(feature = "serving-config-service")]
1709#[cfg_attr(docsrs, doc(cfg(feature = "serving-config-service")))]
1710pub trait ServingConfigService: std::fmt::Debug + Send + Sync {
1711 fn update_serving_config(
1713 &self,
1714 _req: crate::model::UpdateServingConfigRequest,
1715 _options: crate::RequestOptions,
1716 ) -> impl std::future::Future<
1717 Output = crate::Result<crate::Response<crate::model::ServingConfig>>,
1718 > + Send {
1719 gaxi::unimplemented::unimplemented_stub()
1720 }
1721
1722 fn list_operations(
1724 &self,
1725 _req: google_cloud_longrunning::model::ListOperationsRequest,
1726 _options: crate::RequestOptions,
1727 ) -> impl std::future::Future<
1728 Output = crate::Result<
1729 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1730 >,
1731 > + Send {
1732 gaxi::unimplemented::unimplemented_stub()
1733 }
1734
1735 fn get_operation(
1737 &self,
1738 _req: google_cloud_longrunning::model::GetOperationRequest,
1739 _options: crate::RequestOptions,
1740 ) -> impl std::future::Future<
1741 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1742 > + Send {
1743 gaxi::unimplemented::unimplemented_stub()
1744 }
1745
1746 fn cancel_operation(
1748 &self,
1749 _req: google_cloud_longrunning::model::CancelOperationRequest,
1750 _options: crate::RequestOptions,
1751 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1752 gaxi::unimplemented::unimplemented_stub()
1753 }
1754}
1755
1756#[cfg(feature = "session-service")]
1768#[cfg_attr(docsrs, doc(cfg(feature = "session-service")))]
1769pub trait SessionService: std::fmt::Debug + Send + Sync {
1770 fn create_session(
1772 &self,
1773 _req: crate::model::CreateSessionRequest,
1774 _options: crate::RequestOptions,
1775 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1776 {
1777 gaxi::unimplemented::unimplemented_stub()
1778 }
1779
1780 fn delete_session(
1782 &self,
1783 _req: crate::model::DeleteSessionRequest,
1784 _options: crate::RequestOptions,
1785 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1786 gaxi::unimplemented::unimplemented_stub()
1787 }
1788
1789 fn update_session(
1791 &self,
1792 _req: crate::model::UpdateSessionRequest,
1793 _options: crate::RequestOptions,
1794 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1795 {
1796 gaxi::unimplemented::unimplemented_stub()
1797 }
1798
1799 fn get_session(
1801 &self,
1802 _req: crate::model::GetSessionRequest,
1803 _options: crate::RequestOptions,
1804 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Session>>> + Send
1805 {
1806 gaxi::unimplemented::unimplemented_stub()
1807 }
1808
1809 fn list_sessions(
1811 &self,
1812 _req: crate::model::ListSessionsRequest,
1813 _options: crate::RequestOptions,
1814 ) -> impl std::future::Future<
1815 Output = crate::Result<crate::Response<crate::model::ListSessionsResponse>>,
1816 > + Send {
1817 gaxi::unimplemented::unimplemented_stub()
1818 }
1819
1820 fn list_operations(
1822 &self,
1823 _req: google_cloud_longrunning::model::ListOperationsRequest,
1824 _options: crate::RequestOptions,
1825 ) -> impl std::future::Future<
1826 Output = crate::Result<
1827 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
1828 >,
1829 > + Send {
1830 gaxi::unimplemented::unimplemented_stub()
1831 }
1832
1833 fn get_operation(
1835 &self,
1836 _req: google_cloud_longrunning::model::GetOperationRequest,
1837 _options: crate::RequestOptions,
1838 ) -> impl std::future::Future<
1839 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1840 > + Send {
1841 gaxi::unimplemented::unimplemented_stub()
1842 }
1843
1844 fn cancel_operation(
1846 &self,
1847 _req: google_cloud_longrunning::model::CancelOperationRequest,
1848 _options: crate::RequestOptions,
1849 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
1850 gaxi::unimplemented::unimplemented_stub()
1851 }
1852}
1853
1854#[cfg(feature = "site-search-engine-service")]
1866#[cfg_attr(docsrs, doc(cfg(feature = "site-search-engine-service")))]
1867pub trait SiteSearchEngineService: std::fmt::Debug + Send + Sync {
1868 fn get_site_search_engine(
1870 &self,
1871 _req: crate::model::GetSiteSearchEngineRequest,
1872 _options: crate::RequestOptions,
1873 ) -> impl std::future::Future<
1874 Output = crate::Result<crate::Response<crate::model::SiteSearchEngine>>,
1875 > + Send {
1876 gaxi::unimplemented::unimplemented_stub()
1877 }
1878
1879 fn create_target_site(
1881 &self,
1882 _req: crate::model::CreateTargetSiteRequest,
1883 _options: crate::RequestOptions,
1884 ) -> impl std::future::Future<
1885 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1886 > + Send {
1887 gaxi::unimplemented::unimplemented_stub()
1888 }
1889
1890 fn batch_create_target_sites(
1892 &self,
1893 _req: crate::model::BatchCreateTargetSitesRequest,
1894 _options: crate::RequestOptions,
1895 ) -> impl std::future::Future<
1896 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1897 > + Send {
1898 gaxi::unimplemented::unimplemented_stub()
1899 }
1900
1901 fn get_target_site(
1903 &self,
1904 _req: crate::model::GetTargetSiteRequest,
1905 _options: crate::RequestOptions,
1906 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::TargetSite>>> + Send
1907 {
1908 gaxi::unimplemented::unimplemented_stub()
1909 }
1910
1911 fn update_target_site(
1913 &self,
1914 _req: crate::model::UpdateTargetSiteRequest,
1915 _options: crate::RequestOptions,
1916 ) -> impl std::future::Future<
1917 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1918 > + Send {
1919 gaxi::unimplemented::unimplemented_stub()
1920 }
1921
1922 fn delete_target_site(
1924 &self,
1925 _req: crate::model::DeleteTargetSiteRequest,
1926 _options: crate::RequestOptions,
1927 ) -> impl std::future::Future<
1928 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1929 > + Send {
1930 gaxi::unimplemented::unimplemented_stub()
1931 }
1932
1933 fn list_target_sites(
1935 &self,
1936 _req: crate::model::ListTargetSitesRequest,
1937 _options: crate::RequestOptions,
1938 ) -> impl std::future::Future<
1939 Output = crate::Result<crate::Response<crate::model::ListTargetSitesResponse>>,
1940 > + Send {
1941 gaxi::unimplemented::unimplemented_stub()
1942 }
1943
1944 fn create_sitemap(
1946 &self,
1947 _req: crate::model::CreateSitemapRequest,
1948 _options: crate::RequestOptions,
1949 ) -> impl std::future::Future<
1950 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1951 > + Send {
1952 gaxi::unimplemented::unimplemented_stub()
1953 }
1954
1955 fn delete_sitemap(
1957 &self,
1958 _req: crate::model::DeleteSitemapRequest,
1959 _options: crate::RequestOptions,
1960 ) -> impl std::future::Future<
1961 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1962 > + Send {
1963 gaxi::unimplemented::unimplemented_stub()
1964 }
1965
1966 fn fetch_sitemaps(
1968 &self,
1969 _req: crate::model::FetchSitemapsRequest,
1970 _options: crate::RequestOptions,
1971 ) -> impl std::future::Future<
1972 Output = crate::Result<crate::Response<crate::model::FetchSitemapsResponse>>,
1973 > + Send {
1974 gaxi::unimplemented::unimplemented_stub()
1975 }
1976
1977 fn enable_advanced_site_search(
1979 &self,
1980 _req: crate::model::EnableAdvancedSiteSearchRequest,
1981 _options: crate::RequestOptions,
1982 ) -> impl std::future::Future<
1983 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1984 > + Send {
1985 gaxi::unimplemented::unimplemented_stub()
1986 }
1987
1988 fn disable_advanced_site_search(
1990 &self,
1991 _req: crate::model::DisableAdvancedSiteSearchRequest,
1992 _options: crate::RequestOptions,
1993 ) -> impl std::future::Future<
1994 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1995 > + Send {
1996 gaxi::unimplemented::unimplemented_stub()
1997 }
1998
1999 fn recrawl_uris(
2001 &self,
2002 _req: crate::model::RecrawlUrisRequest,
2003 _options: crate::RequestOptions,
2004 ) -> impl std::future::Future<
2005 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2006 > + Send {
2007 gaxi::unimplemented::unimplemented_stub()
2008 }
2009
2010 fn batch_verify_target_sites(
2012 &self,
2013 _req: crate::model::BatchVerifyTargetSitesRequest,
2014 _options: crate::RequestOptions,
2015 ) -> impl std::future::Future<
2016 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2017 > + Send {
2018 gaxi::unimplemented::unimplemented_stub()
2019 }
2020
2021 fn fetch_domain_verification_status(
2023 &self,
2024 _req: crate::model::FetchDomainVerificationStatusRequest,
2025 _options: crate::RequestOptions,
2026 ) -> impl std::future::Future<
2027 Output = crate::Result<
2028 crate::Response<crate::model::FetchDomainVerificationStatusResponse>,
2029 >,
2030 > + Send {
2031 gaxi::unimplemented::unimplemented_stub()
2032 }
2033
2034 fn list_operations(
2036 &self,
2037 _req: google_cloud_longrunning::model::ListOperationsRequest,
2038 _options: crate::RequestOptions,
2039 ) -> impl std::future::Future<
2040 Output = crate::Result<
2041 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2042 >,
2043 > + Send {
2044 gaxi::unimplemented::unimplemented_stub()
2045 }
2046
2047 fn get_operation(
2049 &self,
2050 _req: google_cloud_longrunning::model::GetOperationRequest,
2051 _options: crate::RequestOptions,
2052 ) -> impl std::future::Future<
2053 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2054 > + Send {
2055 gaxi::unimplemented::unimplemented_stub()
2056 }
2057
2058 fn cancel_operation(
2060 &self,
2061 _req: google_cloud_longrunning::model::CancelOperationRequest,
2062 _options: crate::RequestOptions,
2063 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2064 gaxi::unimplemented::unimplemented_stub()
2065 }
2066
2067 fn get_polling_error_policy(
2072 &self,
2073 _options: &crate::RequestOptions,
2074 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2075 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2076 }
2077
2078 fn get_polling_backoff_policy(
2083 &self,
2084 _options: &crate::RequestOptions,
2085 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2086 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2087 }
2088}
2089
2090#[cfg(feature = "user-event-service")]
2102#[cfg_attr(docsrs, doc(cfg(feature = "user-event-service")))]
2103pub trait UserEventService: std::fmt::Debug + Send + Sync {
2104 fn write_user_event(
2106 &self,
2107 _req: crate::model::WriteUserEventRequest,
2108 _options: crate::RequestOptions,
2109 ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::UserEvent>>> + Send
2110 {
2111 gaxi::unimplemented::unimplemented_stub()
2112 }
2113
2114 fn collect_user_event(
2116 &self,
2117 _req: crate::model::CollectUserEventRequest,
2118 _options: crate::RequestOptions,
2119 ) -> impl std::future::Future<
2120 Output = crate::Result<crate::Response<google_cloud_api::model::HttpBody>>,
2121 > + Send {
2122 gaxi::unimplemented::unimplemented_stub()
2123 }
2124
2125 fn purge_user_events(
2127 &self,
2128 _req: crate::model::PurgeUserEventsRequest,
2129 _options: crate::RequestOptions,
2130 ) -> impl std::future::Future<
2131 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2132 > + Send {
2133 gaxi::unimplemented::unimplemented_stub()
2134 }
2135
2136 fn import_user_events(
2138 &self,
2139 _req: crate::model::ImportUserEventsRequest,
2140 _options: crate::RequestOptions,
2141 ) -> impl std::future::Future<
2142 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2143 > + Send {
2144 gaxi::unimplemented::unimplemented_stub()
2145 }
2146
2147 fn list_operations(
2149 &self,
2150 _req: google_cloud_longrunning::model::ListOperationsRequest,
2151 _options: crate::RequestOptions,
2152 ) -> impl std::future::Future<
2153 Output = crate::Result<
2154 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2155 >,
2156 > + Send {
2157 gaxi::unimplemented::unimplemented_stub()
2158 }
2159
2160 fn get_operation(
2162 &self,
2163 _req: google_cloud_longrunning::model::GetOperationRequest,
2164 _options: crate::RequestOptions,
2165 ) -> impl std::future::Future<
2166 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2167 > + Send {
2168 gaxi::unimplemented::unimplemented_stub()
2169 }
2170
2171 fn cancel_operation(
2173 &self,
2174 _req: google_cloud_longrunning::model::CancelOperationRequest,
2175 _options: crate::RequestOptions,
2176 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2177 gaxi::unimplemented::unimplemented_stub()
2178 }
2179
2180 fn get_polling_error_policy(
2185 &self,
2186 _options: &crate::RequestOptions,
2187 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2188 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2189 }
2190
2191 fn get_polling_backoff_policy(
2196 &self,
2197 _options: &crate::RequestOptions,
2198 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2199 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2200 }
2201}
2202
2203#[cfg(feature = "user-license-service")]
2215#[cfg_attr(docsrs, doc(cfg(feature = "user-license-service")))]
2216pub trait UserLicenseService: std::fmt::Debug + Send + Sync {
2217 fn list_user_licenses(
2219 &self,
2220 _req: crate::model::ListUserLicensesRequest,
2221 _options: crate::RequestOptions,
2222 ) -> impl std::future::Future<
2223 Output = crate::Result<crate::Response<crate::model::ListUserLicensesResponse>>,
2224 > + Send {
2225 gaxi::unimplemented::unimplemented_stub()
2226 }
2227
2228 fn batch_update_user_licenses(
2230 &self,
2231 _req: crate::model::BatchUpdateUserLicensesRequest,
2232 _options: crate::RequestOptions,
2233 ) -> impl std::future::Future<
2234 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2235 > + Send {
2236 gaxi::unimplemented::unimplemented_stub()
2237 }
2238
2239 fn list_operations(
2241 &self,
2242 _req: google_cloud_longrunning::model::ListOperationsRequest,
2243 _options: crate::RequestOptions,
2244 ) -> impl std::future::Future<
2245 Output = crate::Result<
2246 crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
2247 >,
2248 > + Send {
2249 gaxi::unimplemented::unimplemented_stub()
2250 }
2251
2252 fn get_operation(
2254 &self,
2255 _req: google_cloud_longrunning::model::GetOperationRequest,
2256 _options: crate::RequestOptions,
2257 ) -> impl std::future::Future<
2258 Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
2259 > + Send {
2260 gaxi::unimplemented::unimplemented_stub()
2261 }
2262
2263 fn cancel_operation(
2265 &self,
2266 _req: google_cloud_longrunning::model::CancelOperationRequest,
2267 _options: crate::RequestOptions,
2268 ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
2269 gaxi::unimplemented::unimplemented_stub()
2270 }
2271
2272 fn get_polling_error_policy(
2277 &self,
2278 _options: &crate::RequestOptions,
2279 ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
2280 std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
2281 }
2282
2283 fn get_polling_backoff_policy(
2288 &self,
2289 _options: &crate::RequestOptions,
2290 ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
2291 std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
2292 }
2293}