1#![allow(rustdoc::redundant_explicit_links)]
18#![allow(rustdoc::broken_intra_doc_links)]
19#![no_implicit_prelude]
20extern crate async_trait;
21extern crate bytes;
22extern crate gax;
23extern crate gaxi;
24extern crate iam_v1;
25extern crate lazy_static;
26extern crate location;
27extern crate longrunning;
28extern crate lro;
29extern crate reqwest;
30extern crate rpc;
31extern crate serde;
32extern crate serde_json;
33extern crate serde_with;
34extern crate std;
35extern crate tracing;
36extern crate wkt;
37
38mod debug;
39mod deserialize;
40mod serialize;
41
42#[derive(Clone, Default, PartialEq)]
47#[non_exhaustive]
48pub struct Channel {
49 pub name: std::string::String,
53
54 pub uid: std::string::String,
58
59 pub create_time: std::option::Option<wkt::Timestamp>,
61
62 pub update_time: std::option::Option<wkt::Timestamp>,
64
65 pub provider: std::string::String,
70
71 pub state: crate::model::channel::State,
73
74 pub activation_token: std::string::String,
77
78 pub crypto_key_name: std::string::String,
84
85 pub satisfies_pzs: bool,
88
89 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
91
92 pub transport: std::option::Option<crate::model::channel::Transport>,
93
94 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
95}
96
97impl Channel {
98 pub fn new() -> Self {
99 std::default::Default::default()
100 }
101
102 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
104 self.name = v.into();
105 self
106 }
107
108 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
110 self.uid = v.into();
111 self
112 }
113
114 pub fn set_create_time<T>(mut self, v: T) -> Self
116 where
117 T: std::convert::Into<wkt::Timestamp>,
118 {
119 self.create_time = std::option::Option::Some(v.into());
120 self
121 }
122
123 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
125 where
126 T: std::convert::Into<wkt::Timestamp>,
127 {
128 self.create_time = v.map(|x| x.into());
129 self
130 }
131
132 pub fn set_update_time<T>(mut self, v: T) -> Self
134 where
135 T: std::convert::Into<wkt::Timestamp>,
136 {
137 self.update_time = std::option::Option::Some(v.into());
138 self
139 }
140
141 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
143 where
144 T: std::convert::Into<wkt::Timestamp>,
145 {
146 self.update_time = v.map(|x| x.into());
147 self
148 }
149
150 pub fn set_provider<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
152 self.provider = v.into();
153 self
154 }
155
156 pub fn set_state<T: std::convert::Into<crate::model::channel::State>>(mut self, v: T) -> Self {
158 self.state = v.into();
159 self
160 }
161
162 pub fn set_activation_token<T: std::convert::Into<std::string::String>>(
164 mut self,
165 v: T,
166 ) -> Self {
167 self.activation_token = v.into();
168 self
169 }
170
171 pub fn set_crypto_key_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
173 self.crypto_key_name = v.into();
174 self
175 }
176
177 pub fn set_satisfies_pzs<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
179 self.satisfies_pzs = v.into();
180 self
181 }
182
183 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
185 where
186 T: std::iter::IntoIterator<Item = (K, V)>,
187 K: std::convert::Into<std::string::String>,
188 V: std::convert::Into<std::string::String>,
189 {
190 use std::iter::Iterator;
191 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
192 self
193 }
194
195 pub fn set_transport<
200 T: std::convert::Into<std::option::Option<crate::model::channel::Transport>>,
201 >(
202 mut self,
203 v: T,
204 ) -> Self {
205 self.transport = v.into();
206 self
207 }
208
209 pub fn pubsub_topic(&self) -> std::option::Option<&std::string::String> {
213 #[allow(unreachable_patterns)]
214 self.transport.as_ref().and_then(|v| match v {
215 crate::model::channel::Transport::PubsubTopic(v) => std::option::Option::Some(v),
216 _ => std::option::Option::None,
217 })
218 }
219
220 pub fn set_pubsub_topic<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
226 self.transport =
227 std::option::Option::Some(crate::model::channel::Transport::PubsubTopic(v.into()));
228 self
229 }
230}
231
232impl wkt::message::Message for Channel {
233 fn typename() -> &'static str {
234 "type.googleapis.com/google.cloud.eventarc.v1.Channel"
235 }
236}
237
238pub mod channel {
240 #[allow(unused_imports)]
241 use super::*;
242
243 #[derive(Clone, Debug, PartialEq)]
259 #[non_exhaustive]
260 pub enum State {
261 Unspecified,
263 Pending,
267 Active,
272 Inactive,
282 UnknownValue(state::UnknownValue),
287 }
288
289 #[doc(hidden)]
290 pub mod state {
291 #[allow(unused_imports)]
292 use super::*;
293 #[derive(Clone, Debug, PartialEq)]
294 pub struct UnknownValue(pub(crate) wkt::internal::UnknownEnumValue);
295 }
296
297 impl State {
298 pub fn value(&self) -> std::option::Option<i32> {
303 match self {
304 Self::Unspecified => std::option::Option::Some(0),
305 Self::Pending => std::option::Option::Some(1),
306 Self::Active => std::option::Option::Some(2),
307 Self::Inactive => std::option::Option::Some(3),
308 Self::UnknownValue(u) => u.0.value(),
309 }
310 }
311
312 pub fn name(&self) -> std::option::Option<&str> {
317 match self {
318 Self::Unspecified => std::option::Option::Some("STATE_UNSPECIFIED"),
319 Self::Pending => std::option::Option::Some("PENDING"),
320 Self::Active => std::option::Option::Some("ACTIVE"),
321 Self::Inactive => std::option::Option::Some("INACTIVE"),
322 Self::UnknownValue(u) => u.0.name(),
323 }
324 }
325 }
326
327 impl std::default::Default for State {
328 fn default() -> Self {
329 use std::convert::From;
330 Self::from(0)
331 }
332 }
333
334 impl std::fmt::Display for State {
335 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
336 wkt::internal::display_enum(f, self.name(), self.value())
337 }
338 }
339
340 impl std::convert::From<i32> for State {
341 fn from(value: i32) -> Self {
342 match value {
343 0 => Self::Unspecified,
344 1 => Self::Pending,
345 2 => Self::Active,
346 3 => Self::Inactive,
347 _ => Self::UnknownValue(state::UnknownValue(
348 wkt::internal::UnknownEnumValue::Integer(value),
349 )),
350 }
351 }
352 }
353
354 impl std::convert::From<&str> for State {
355 fn from(value: &str) -> Self {
356 use std::string::ToString;
357 match value {
358 "STATE_UNSPECIFIED" => Self::Unspecified,
359 "PENDING" => Self::Pending,
360 "ACTIVE" => Self::Active,
361 "INACTIVE" => Self::Inactive,
362 _ => Self::UnknownValue(state::UnknownValue(
363 wkt::internal::UnknownEnumValue::String(value.to_string()),
364 )),
365 }
366 }
367 }
368
369 impl serde::ser::Serialize for State {
370 fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
371 where
372 S: serde::Serializer,
373 {
374 match self {
375 Self::Unspecified => serializer.serialize_i32(0),
376 Self::Pending => serializer.serialize_i32(1),
377 Self::Active => serializer.serialize_i32(2),
378 Self::Inactive => serializer.serialize_i32(3),
379 Self::UnknownValue(u) => u.0.serialize(serializer),
380 }
381 }
382 }
383
384 impl<'de> serde::de::Deserialize<'de> for State {
385 fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
386 where
387 D: serde::Deserializer<'de>,
388 {
389 deserializer.deserialize_any(wkt::internal::EnumVisitor::<State>::new(
390 ".google.cloud.eventarc.v1.Channel.State",
391 ))
392 }
393 }
394
395 #[derive(Clone, Debug, PartialEq)]
396 #[non_exhaustive]
397 pub enum Transport {
398 PubsubTopic(std::string::String),
402 }
403}
404
405#[derive(Clone, Default, PartialEq)]
410#[non_exhaustive]
411pub struct ChannelConnection {
412 pub name: std::string::String,
414
415 pub uid: std::string::String,
418
419 pub channel: std::string::String,
424
425 pub create_time: std::option::Option<wkt::Timestamp>,
427
428 pub update_time: std::option::Option<wkt::Timestamp>,
430
431 pub activation_token: std::string::String,
435
436 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
438
439 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
440}
441
442impl ChannelConnection {
443 pub fn new() -> Self {
444 std::default::Default::default()
445 }
446
447 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
449 self.name = v.into();
450 self
451 }
452
453 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
455 self.uid = v.into();
456 self
457 }
458
459 pub fn set_channel<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
461 self.channel = v.into();
462 self
463 }
464
465 pub fn set_create_time<T>(mut self, v: T) -> Self
467 where
468 T: std::convert::Into<wkt::Timestamp>,
469 {
470 self.create_time = std::option::Option::Some(v.into());
471 self
472 }
473
474 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
476 where
477 T: std::convert::Into<wkt::Timestamp>,
478 {
479 self.create_time = v.map(|x| x.into());
480 self
481 }
482
483 pub fn set_update_time<T>(mut self, v: T) -> Self
485 where
486 T: std::convert::Into<wkt::Timestamp>,
487 {
488 self.update_time = std::option::Option::Some(v.into());
489 self
490 }
491
492 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
494 where
495 T: std::convert::Into<wkt::Timestamp>,
496 {
497 self.update_time = v.map(|x| x.into());
498 self
499 }
500
501 pub fn set_activation_token<T: std::convert::Into<std::string::String>>(
503 mut self,
504 v: T,
505 ) -> Self {
506 self.activation_token = v.into();
507 self
508 }
509
510 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
512 where
513 T: std::iter::IntoIterator<Item = (K, V)>,
514 K: std::convert::Into<std::string::String>,
515 V: std::convert::Into<std::string::String>,
516 {
517 use std::iter::Iterator;
518 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
519 self
520 }
521}
522
523impl wkt::message::Message for ChannelConnection {
524 fn typename() -> &'static str {
525 "type.googleapis.com/google.cloud.eventarc.v1.ChannelConnection"
526 }
527}
528
529#[derive(Clone, Default, PartialEq)]
531#[non_exhaustive]
532pub struct Provider {
533 pub name: std::string::String,
536
537 pub display_name: std::string::String,
540
541 pub event_types: std::vec::Vec<crate::model::EventType>,
543
544 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
545}
546
547impl Provider {
548 pub fn new() -> Self {
549 std::default::Default::default()
550 }
551
552 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
554 self.name = v.into();
555 self
556 }
557
558 pub fn set_display_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
560 self.display_name = v.into();
561 self
562 }
563
564 pub fn set_event_types<T, V>(mut self, v: T) -> Self
566 where
567 T: std::iter::IntoIterator<Item = V>,
568 V: std::convert::Into<crate::model::EventType>,
569 {
570 use std::iter::Iterator;
571 self.event_types = v.into_iter().map(|i| i.into()).collect();
572 self
573 }
574}
575
576impl wkt::message::Message for Provider {
577 fn typename() -> &'static str {
578 "type.googleapis.com/google.cloud.eventarc.v1.Provider"
579 }
580}
581
582#[derive(Clone, Default, PartialEq)]
584#[non_exhaustive]
585pub struct EventType {
586 pub r#type: std::string::String,
593
594 pub description: std::string::String,
597
598 pub filtering_attributes: std::vec::Vec<crate::model::FilteringAttribute>,
600
601 pub event_schema_uri: std::string::String,
605
606 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
607}
608
609impl EventType {
610 pub fn new() -> Self {
611 std::default::Default::default()
612 }
613
614 pub fn set_type<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
616 self.r#type = v.into();
617 self
618 }
619
620 pub fn set_description<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
622 self.description = v.into();
623 self
624 }
625
626 pub fn set_filtering_attributes<T, V>(mut self, v: T) -> Self
628 where
629 T: std::iter::IntoIterator<Item = V>,
630 V: std::convert::Into<crate::model::FilteringAttribute>,
631 {
632 use std::iter::Iterator;
633 self.filtering_attributes = v.into_iter().map(|i| i.into()).collect();
634 self
635 }
636
637 pub fn set_event_schema_uri<T: std::convert::Into<std::string::String>>(
639 mut self,
640 v: T,
641 ) -> Self {
642 self.event_schema_uri = v.into();
643 self
644 }
645}
646
647impl wkt::message::Message for EventType {
648 fn typename() -> &'static str {
649 "type.googleapis.com/google.cloud.eventarc.v1.EventType"
650 }
651}
652
653#[derive(Clone, Default, PartialEq)]
656#[non_exhaustive]
657pub struct FilteringAttribute {
658 pub attribute: std::string::String,
660
661 pub description: std::string::String,
663
664 pub required: bool,
667
668 pub path_pattern_supported: bool,
671
672 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
673}
674
675impl FilteringAttribute {
676 pub fn new() -> Self {
677 std::default::Default::default()
678 }
679
680 pub fn set_attribute<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
682 self.attribute = v.into();
683 self
684 }
685
686 pub fn set_description<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
688 self.description = v.into();
689 self
690 }
691
692 pub fn set_required<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
694 self.required = v.into();
695 self
696 }
697
698 pub fn set_path_pattern_supported<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
700 self.path_pattern_supported = v.into();
701 self
702 }
703}
704
705impl wkt::message::Message for FilteringAttribute {
706 fn typename() -> &'static str {
707 "type.googleapis.com/google.cloud.eventarc.v1.FilteringAttribute"
708 }
709}
710
711#[derive(Clone, Default, PartialEq)]
715#[non_exhaustive]
716pub struct Enrollment {
717 pub name: std::string::String,
720
721 pub uid: std::string::String,
725
726 pub etag: std::string::String,
730
731 pub create_time: std::option::Option<wkt::Timestamp>,
733
734 pub update_time: std::option::Option<wkt::Timestamp>,
736
737 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
739
740 pub annotations: std::collections::HashMap<std::string::String, std::string::String>,
742
743 pub display_name: std::string::String,
745
746 pub cel_match: std::string::String,
749
750 pub message_bus: std::string::String,
754
755 pub destination: std::string::String,
759
760 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
761}
762
763impl Enrollment {
764 pub fn new() -> Self {
765 std::default::Default::default()
766 }
767
768 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
770 self.name = v.into();
771 self
772 }
773
774 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
776 self.uid = v.into();
777 self
778 }
779
780 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
782 self.etag = v.into();
783 self
784 }
785
786 pub fn set_create_time<T>(mut self, v: T) -> Self
788 where
789 T: std::convert::Into<wkt::Timestamp>,
790 {
791 self.create_time = std::option::Option::Some(v.into());
792 self
793 }
794
795 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
797 where
798 T: std::convert::Into<wkt::Timestamp>,
799 {
800 self.create_time = v.map(|x| x.into());
801 self
802 }
803
804 pub fn set_update_time<T>(mut self, v: T) -> Self
806 where
807 T: std::convert::Into<wkt::Timestamp>,
808 {
809 self.update_time = std::option::Option::Some(v.into());
810 self
811 }
812
813 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
815 where
816 T: std::convert::Into<wkt::Timestamp>,
817 {
818 self.update_time = v.map(|x| x.into());
819 self
820 }
821
822 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
824 where
825 T: std::iter::IntoIterator<Item = (K, V)>,
826 K: std::convert::Into<std::string::String>,
827 V: std::convert::Into<std::string::String>,
828 {
829 use std::iter::Iterator;
830 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
831 self
832 }
833
834 pub fn set_annotations<T, K, V>(mut self, v: T) -> Self
836 where
837 T: std::iter::IntoIterator<Item = (K, V)>,
838 K: std::convert::Into<std::string::String>,
839 V: std::convert::Into<std::string::String>,
840 {
841 use std::iter::Iterator;
842 self.annotations = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
843 self
844 }
845
846 pub fn set_display_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
848 self.display_name = v.into();
849 self
850 }
851
852 pub fn set_cel_match<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
854 self.cel_match = v.into();
855 self
856 }
857
858 pub fn set_message_bus<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
860 self.message_bus = v.into();
861 self
862 }
863
864 pub fn set_destination<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
866 self.destination = v.into();
867 self
868 }
869}
870
871impl wkt::message::Message for Enrollment {
872 fn typename() -> &'static str {
873 "type.googleapis.com/google.cloud.eventarc.v1.Enrollment"
874 }
875}
876
877#[derive(Clone, Default, PartialEq)]
879#[non_exhaustive]
880pub struct GetTriggerRequest {
881 pub name: std::string::String,
883
884 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
885}
886
887impl GetTriggerRequest {
888 pub fn new() -> Self {
889 std::default::Default::default()
890 }
891
892 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
894 self.name = v.into();
895 self
896 }
897}
898
899impl wkt::message::Message for GetTriggerRequest {
900 fn typename() -> &'static str {
901 "type.googleapis.com/google.cloud.eventarc.v1.GetTriggerRequest"
902 }
903}
904
905#[derive(Clone, Default, PartialEq)]
907#[non_exhaustive]
908pub struct ListTriggersRequest {
909 pub parent: std::string::String,
911
912 pub page_size: i32,
916
917 pub page_token: std::string::String,
923
924 pub order_by: std::string::String,
929
930 pub filter: std::string::String,
934
935 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
936}
937
938impl ListTriggersRequest {
939 pub fn new() -> Self {
940 std::default::Default::default()
941 }
942
943 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
945 self.parent = v.into();
946 self
947 }
948
949 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
951 self.page_size = v.into();
952 self
953 }
954
955 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
957 self.page_token = v.into();
958 self
959 }
960
961 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
963 self.order_by = v.into();
964 self
965 }
966
967 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
969 self.filter = v.into();
970 self
971 }
972}
973
974impl wkt::message::Message for ListTriggersRequest {
975 fn typename() -> &'static str {
976 "type.googleapis.com/google.cloud.eventarc.v1.ListTriggersRequest"
977 }
978}
979
980#[derive(Clone, Default, PartialEq)]
982#[non_exhaustive]
983pub struct ListTriggersResponse {
984 pub triggers: std::vec::Vec<crate::model::Trigger>,
986
987 pub next_page_token: std::string::String,
990
991 pub unreachable: std::vec::Vec<std::string::String>,
993
994 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
995}
996
997impl ListTriggersResponse {
998 pub fn new() -> Self {
999 std::default::Default::default()
1000 }
1001
1002 pub fn set_triggers<T, V>(mut self, v: T) -> Self
1004 where
1005 T: std::iter::IntoIterator<Item = V>,
1006 V: std::convert::Into<crate::model::Trigger>,
1007 {
1008 use std::iter::Iterator;
1009 self.triggers = v.into_iter().map(|i| i.into()).collect();
1010 self
1011 }
1012
1013 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1015 self.next_page_token = v.into();
1016 self
1017 }
1018
1019 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
1021 where
1022 T: std::iter::IntoIterator<Item = V>,
1023 V: std::convert::Into<std::string::String>,
1024 {
1025 use std::iter::Iterator;
1026 self.unreachable = v.into_iter().map(|i| i.into()).collect();
1027 self
1028 }
1029}
1030
1031impl wkt::message::Message for ListTriggersResponse {
1032 fn typename() -> &'static str {
1033 "type.googleapis.com/google.cloud.eventarc.v1.ListTriggersResponse"
1034 }
1035}
1036
1037#[doc(hidden)]
1038impl gax::paginator::internal::PageableResponse for ListTriggersResponse {
1039 type PageItem = crate::model::Trigger;
1040
1041 fn items(self) -> std::vec::Vec<Self::PageItem> {
1042 self.triggers
1043 }
1044
1045 fn next_page_token(&self) -> std::string::String {
1046 use std::clone::Clone;
1047 self.next_page_token.clone()
1048 }
1049}
1050
1051#[derive(Clone, Default, PartialEq)]
1053#[non_exhaustive]
1054pub struct CreateTriggerRequest {
1055 pub parent: std::string::String,
1057
1058 pub trigger: std::option::Option<crate::model::Trigger>,
1060
1061 pub trigger_id: std::string::String,
1063
1064 pub validate_only: bool,
1067
1068 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1069}
1070
1071impl CreateTriggerRequest {
1072 pub fn new() -> Self {
1073 std::default::Default::default()
1074 }
1075
1076 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1078 self.parent = v.into();
1079 self
1080 }
1081
1082 pub fn set_trigger<T>(mut self, v: T) -> Self
1084 where
1085 T: std::convert::Into<crate::model::Trigger>,
1086 {
1087 self.trigger = std::option::Option::Some(v.into());
1088 self
1089 }
1090
1091 pub fn set_or_clear_trigger<T>(mut self, v: std::option::Option<T>) -> Self
1093 where
1094 T: std::convert::Into<crate::model::Trigger>,
1095 {
1096 self.trigger = v.map(|x| x.into());
1097 self
1098 }
1099
1100 pub fn set_trigger_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1102 self.trigger_id = v.into();
1103 self
1104 }
1105
1106 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1108 self.validate_only = v.into();
1109 self
1110 }
1111}
1112
1113impl wkt::message::Message for CreateTriggerRequest {
1114 fn typename() -> &'static str {
1115 "type.googleapis.com/google.cloud.eventarc.v1.CreateTriggerRequest"
1116 }
1117}
1118
1119#[derive(Clone, Default, PartialEq)]
1121#[non_exhaustive]
1122pub struct UpdateTriggerRequest {
1123 pub trigger: std::option::Option<crate::model::Trigger>,
1125
1126 pub update_mask: std::option::Option<wkt::FieldMask>,
1130
1131 pub allow_missing: bool,
1134
1135 pub validate_only: bool,
1138
1139 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1140}
1141
1142impl UpdateTriggerRequest {
1143 pub fn new() -> Self {
1144 std::default::Default::default()
1145 }
1146
1147 pub fn set_trigger<T>(mut self, v: T) -> Self
1149 where
1150 T: std::convert::Into<crate::model::Trigger>,
1151 {
1152 self.trigger = std::option::Option::Some(v.into());
1153 self
1154 }
1155
1156 pub fn set_or_clear_trigger<T>(mut self, v: std::option::Option<T>) -> Self
1158 where
1159 T: std::convert::Into<crate::model::Trigger>,
1160 {
1161 self.trigger = v.map(|x| x.into());
1162 self
1163 }
1164
1165 pub fn set_update_mask<T>(mut self, v: T) -> Self
1167 where
1168 T: std::convert::Into<wkt::FieldMask>,
1169 {
1170 self.update_mask = std::option::Option::Some(v.into());
1171 self
1172 }
1173
1174 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
1176 where
1177 T: std::convert::Into<wkt::FieldMask>,
1178 {
1179 self.update_mask = v.map(|x| x.into());
1180 self
1181 }
1182
1183 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1185 self.allow_missing = v.into();
1186 self
1187 }
1188
1189 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1191 self.validate_only = v.into();
1192 self
1193 }
1194}
1195
1196impl wkt::message::Message for UpdateTriggerRequest {
1197 fn typename() -> &'static str {
1198 "type.googleapis.com/google.cloud.eventarc.v1.UpdateTriggerRequest"
1199 }
1200}
1201
1202#[derive(Clone, Default, PartialEq)]
1204#[non_exhaustive]
1205pub struct DeleteTriggerRequest {
1206 pub name: std::string::String,
1208
1209 pub etag: std::string::String,
1212
1213 pub allow_missing: bool,
1216
1217 pub validate_only: bool,
1220
1221 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1222}
1223
1224impl DeleteTriggerRequest {
1225 pub fn new() -> Self {
1226 std::default::Default::default()
1227 }
1228
1229 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1231 self.name = v.into();
1232 self
1233 }
1234
1235 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1237 self.etag = v.into();
1238 self
1239 }
1240
1241 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1243 self.allow_missing = v.into();
1244 self
1245 }
1246
1247 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1249 self.validate_only = v.into();
1250 self
1251 }
1252}
1253
1254impl wkt::message::Message for DeleteTriggerRequest {
1255 fn typename() -> &'static str {
1256 "type.googleapis.com/google.cloud.eventarc.v1.DeleteTriggerRequest"
1257 }
1258}
1259
1260#[derive(Clone, Default, PartialEq)]
1262#[non_exhaustive]
1263pub struct GetChannelRequest {
1264 pub name: std::string::String,
1266
1267 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1268}
1269
1270impl GetChannelRequest {
1271 pub fn new() -> Self {
1272 std::default::Default::default()
1273 }
1274
1275 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1277 self.name = v.into();
1278 self
1279 }
1280}
1281
1282impl wkt::message::Message for GetChannelRequest {
1283 fn typename() -> &'static str {
1284 "type.googleapis.com/google.cloud.eventarc.v1.GetChannelRequest"
1285 }
1286}
1287
1288#[derive(Clone, Default, PartialEq)]
1290#[non_exhaustive]
1291pub struct ListChannelsRequest {
1292 pub parent: std::string::String,
1294
1295 pub page_size: i32,
1299
1300 pub page_token: std::string::String,
1306
1307 pub order_by: std::string::String,
1312
1313 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1314}
1315
1316impl ListChannelsRequest {
1317 pub fn new() -> Self {
1318 std::default::Default::default()
1319 }
1320
1321 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1323 self.parent = v.into();
1324 self
1325 }
1326
1327 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
1329 self.page_size = v.into();
1330 self
1331 }
1332
1333 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1335 self.page_token = v.into();
1336 self
1337 }
1338
1339 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1341 self.order_by = v.into();
1342 self
1343 }
1344}
1345
1346impl wkt::message::Message for ListChannelsRequest {
1347 fn typename() -> &'static str {
1348 "type.googleapis.com/google.cloud.eventarc.v1.ListChannelsRequest"
1349 }
1350}
1351
1352#[derive(Clone, Default, PartialEq)]
1354#[non_exhaustive]
1355pub struct ListChannelsResponse {
1356 pub channels: std::vec::Vec<crate::model::Channel>,
1358
1359 pub next_page_token: std::string::String,
1362
1363 pub unreachable: std::vec::Vec<std::string::String>,
1365
1366 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1367}
1368
1369impl ListChannelsResponse {
1370 pub fn new() -> Self {
1371 std::default::Default::default()
1372 }
1373
1374 pub fn set_channels<T, V>(mut self, v: T) -> Self
1376 where
1377 T: std::iter::IntoIterator<Item = V>,
1378 V: std::convert::Into<crate::model::Channel>,
1379 {
1380 use std::iter::Iterator;
1381 self.channels = v.into_iter().map(|i| i.into()).collect();
1382 self
1383 }
1384
1385 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1387 self.next_page_token = v.into();
1388 self
1389 }
1390
1391 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
1393 where
1394 T: std::iter::IntoIterator<Item = V>,
1395 V: std::convert::Into<std::string::String>,
1396 {
1397 use std::iter::Iterator;
1398 self.unreachable = v.into_iter().map(|i| i.into()).collect();
1399 self
1400 }
1401}
1402
1403impl wkt::message::Message for ListChannelsResponse {
1404 fn typename() -> &'static str {
1405 "type.googleapis.com/google.cloud.eventarc.v1.ListChannelsResponse"
1406 }
1407}
1408
1409#[doc(hidden)]
1410impl gax::paginator::internal::PageableResponse for ListChannelsResponse {
1411 type PageItem = crate::model::Channel;
1412
1413 fn items(self) -> std::vec::Vec<Self::PageItem> {
1414 self.channels
1415 }
1416
1417 fn next_page_token(&self) -> std::string::String {
1418 use std::clone::Clone;
1419 self.next_page_token.clone()
1420 }
1421}
1422
1423#[derive(Clone, Default, PartialEq)]
1425#[non_exhaustive]
1426pub struct CreateChannelRequest {
1427 pub parent: std::string::String,
1429
1430 pub channel: std::option::Option<crate::model::Channel>,
1432
1433 pub channel_id: std::string::String,
1435
1436 pub validate_only: bool,
1439
1440 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1441}
1442
1443impl CreateChannelRequest {
1444 pub fn new() -> Self {
1445 std::default::Default::default()
1446 }
1447
1448 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1450 self.parent = v.into();
1451 self
1452 }
1453
1454 pub fn set_channel<T>(mut self, v: T) -> Self
1456 where
1457 T: std::convert::Into<crate::model::Channel>,
1458 {
1459 self.channel = std::option::Option::Some(v.into());
1460 self
1461 }
1462
1463 pub fn set_or_clear_channel<T>(mut self, v: std::option::Option<T>) -> Self
1465 where
1466 T: std::convert::Into<crate::model::Channel>,
1467 {
1468 self.channel = v.map(|x| x.into());
1469 self
1470 }
1471
1472 pub fn set_channel_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1474 self.channel_id = v.into();
1475 self
1476 }
1477
1478 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1480 self.validate_only = v.into();
1481 self
1482 }
1483}
1484
1485impl wkt::message::Message for CreateChannelRequest {
1486 fn typename() -> &'static str {
1487 "type.googleapis.com/google.cloud.eventarc.v1.CreateChannelRequest"
1488 }
1489}
1490
1491#[derive(Clone, Default, PartialEq)]
1493#[non_exhaustive]
1494pub struct UpdateChannelRequest {
1495 pub channel: std::option::Option<crate::model::Channel>,
1497
1498 pub update_mask: std::option::Option<wkt::FieldMask>,
1502
1503 pub validate_only: bool,
1506
1507 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1508}
1509
1510impl UpdateChannelRequest {
1511 pub fn new() -> Self {
1512 std::default::Default::default()
1513 }
1514
1515 pub fn set_channel<T>(mut self, v: T) -> Self
1517 where
1518 T: std::convert::Into<crate::model::Channel>,
1519 {
1520 self.channel = std::option::Option::Some(v.into());
1521 self
1522 }
1523
1524 pub fn set_or_clear_channel<T>(mut self, v: std::option::Option<T>) -> Self
1526 where
1527 T: std::convert::Into<crate::model::Channel>,
1528 {
1529 self.channel = v.map(|x| x.into());
1530 self
1531 }
1532
1533 pub fn set_update_mask<T>(mut self, v: T) -> Self
1535 where
1536 T: std::convert::Into<wkt::FieldMask>,
1537 {
1538 self.update_mask = std::option::Option::Some(v.into());
1539 self
1540 }
1541
1542 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
1544 where
1545 T: std::convert::Into<wkt::FieldMask>,
1546 {
1547 self.update_mask = v.map(|x| x.into());
1548 self
1549 }
1550
1551 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1553 self.validate_only = v.into();
1554 self
1555 }
1556}
1557
1558impl wkt::message::Message for UpdateChannelRequest {
1559 fn typename() -> &'static str {
1560 "type.googleapis.com/google.cloud.eventarc.v1.UpdateChannelRequest"
1561 }
1562}
1563
1564#[derive(Clone, Default, PartialEq)]
1566#[non_exhaustive]
1567pub struct DeleteChannelRequest {
1568 pub name: std::string::String,
1570
1571 pub validate_only: bool,
1574
1575 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1576}
1577
1578impl DeleteChannelRequest {
1579 pub fn new() -> Self {
1580 std::default::Default::default()
1581 }
1582
1583 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1585 self.name = v.into();
1586 self
1587 }
1588
1589 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
1591 self.validate_only = v.into();
1592 self
1593 }
1594}
1595
1596impl wkt::message::Message for DeleteChannelRequest {
1597 fn typename() -> &'static str {
1598 "type.googleapis.com/google.cloud.eventarc.v1.DeleteChannelRequest"
1599 }
1600}
1601
1602#[derive(Clone, Default, PartialEq)]
1604#[non_exhaustive]
1605pub struct GetProviderRequest {
1606 pub name: std::string::String,
1608
1609 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1610}
1611
1612impl GetProviderRequest {
1613 pub fn new() -> Self {
1614 std::default::Default::default()
1615 }
1616
1617 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1619 self.name = v.into();
1620 self
1621 }
1622}
1623
1624impl wkt::message::Message for GetProviderRequest {
1625 fn typename() -> &'static str {
1626 "type.googleapis.com/google.cloud.eventarc.v1.GetProviderRequest"
1627 }
1628}
1629
1630#[derive(Clone, Default, PartialEq)]
1632#[non_exhaustive]
1633pub struct ListProvidersRequest {
1634 pub parent: std::string::String,
1636
1637 pub page_size: i32,
1639
1640 pub page_token: std::string::String,
1646
1647 pub order_by: std::string::String,
1652
1653 pub filter: std::string::String,
1655
1656 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1657}
1658
1659impl ListProvidersRequest {
1660 pub fn new() -> Self {
1661 std::default::Default::default()
1662 }
1663
1664 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1666 self.parent = v.into();
1667 self
1668 }
1669
1670 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
1672 self.page_size = v.into();
1673 self
1674 }
1675
1676 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1678 self.page_token = v.into();
1679 self
1680 }
1681
1682 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1684 self.order_by = v.into();
1685 self
1686 }
1687
1688 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1690 self.filter = v.into();
1691 self
1692 }
1693}
1694
1695impl wkt::message::Message for ListProvidersRequest {
1696 fn typename() -> &'static str {
1697 "type.googleapis.com/google.cloud.eventarc.v1.ListProvidersRequest"
1698 }
1699}
1700
1701#[derive(Clone, Default, PartialEq)]
1703#[non_exhaustive]
1704pub struct ListProvidersResponse {
1705 pub providers: std::vec::Vec<crate::model::Provider>,
1707
1708 pub next_page_token: std::string::String,
1711
1712 pub unreachable: std::vec::Vec<std::string::String>,
1714
1715 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1716}
1717
1718impl ListProvidersResponse {
1719 pub fn new() -> Self {
1720 std::default::Default::default()
1721 }
1722
1723 pub fn set_providers<T, V>(mut self, v: T) -> Self
1725 where
1726 T: std::iter::IntoIterator<Item = V>,
1727 V: std::convert::Into<crate::model::Provider>,
1728 {
1729 use std::iter::Iterator;
1730 self.providers = v.into_iter().map(|i| i.into()).collect();
1731 self
1732 }
1733
1734 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1736 self.next_page_token = v.into();
1737 self
1738 }
1739
1740 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
1742 where
1743 T: std::iter::IntoIterator<Item = V>,
1744 V: std::convert::Into<std::string::String>,
1745 {
1746 use std::iter::Iterator;
1747 self.unreachable = v.into_iter().map(|i| i.into()).collect();
1748 self
1749 }
1750}
1751
1752impl wkt::message::Message for ListProvidersResponse {
1753 fn typename() -> &'static str {
1754 "type.googleapis.com/google.cloud.eventarc.v1.ListProvidersResponse"
1755 }
1756}
1757
1758#[doc(hidden)]
1759impl gax::paginator::internal::PageableResponse for ListProvidersResponse {
1760 type PageItem = crate::model::Provider;
1761
1762 fn items(self) -> std::vec::Vec<Self::PageItem> {
1763 self.providers
1764 }
1765
1766 fn next_page_token(&self) -> std::string::String {
1767 use std::clone::Clone;
1768 self.next_page_token.clone()
1769 }
1770}
1771
1772#[derive(Clone, Default, PartialEq)]
1774#[non_exhaustive]
1775pub struct GetChannelConnectionRequest {
1776 pub name: std::string::String,
1778
1779 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1780}
1781
1782impl GetChannelConnectionRequest {
1783 pub fn new() -> Self {
1784 std::default::Default::default()
1785 }
1786
1787 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1789 self.name = v.into();
1790 self
1791 }
1792}
1793
1794impl wkt::message::Message for GetChannelConnectionRequest {
1795 fn typename() -> &'static str {
1796 "type.googleapis.com/google.cloud.eventarc.v1.GetChannelConnectionRequest"
1797 }
1798}
1799
1800#[derive(Clone, Default, PartialEq)]
1802#[non_exhaustive]
1803pub struct ListChannelConnectionsRequest {
1804 pub parent: std::string::String,
1806
1807 pub page_size: i32,
1811
1812 pub page_token: std::string::String,
1818
1819 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1820}
1821
1822impl ListChannelConnectionsRequest {
1823 pub fn new() -> Self {
1824 std::default::Default::default()
1825 }
1826
1827 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1829 self.parent = v.into();
1830 self
1831 }
1832
1833 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
1835 self.page_size = v.into();
1836 self
1837 }
1838
1839 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1841 self.page_token = v.into();
1842 self
1843 }
1844}
1845
1846impl wkt::message::Message for ListChannelConnectionsRequest {
1847 fn typename() -> &'static str {
1848 "type.googleapis.com/google.cloud.eventarc.v1.ListChannelConnectionsRequest"
1849 }
1850}
1851
1852#[derive(Clone, Default, PartialEq)]
1854#[non_exhaustive]
1855pub struct ListChannelConnectionsResponse {
1856 pub channel_connections: std::vec::Vec<crate::model::ChannelConnection>,
1859
1860 pub next_page_token: std::string::String,
1864
1865 pub unreachable: std::vec::Vec<std::string::String>,
1867
1868 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1869}
1870
1871impl ListChannelConnectionsResponse {
1872 pub fn new() -> Self {
1873 std::default::Default::default()
1874 }
1875
1876 pub fn set_channel_connections<T, V>(mut self, v: T) -> Self
1878 where
1879 T: std::iter::IntoIterator<Item = V>,
1880 V: std::convert::Into<crate::model::ChannelConnection>,
1881 {
1882 use std::iter::Iterator;
1883 self.channel_connections = v.into_iter().map(|i| i.into()).collect();
1884 self
1885 }
1886
1887 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1889 self.next_page_token = v.into();
1890 self
1891 }
1892
1893 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
1895 where
1896 T: std::iter::IntoIterator<Item = V>,
1897 V: std::convert::Into<std::string::String>,
1898 {
1899 use std::iter::Iterator;
1900 self.unreachable = v.into_iter().map(|i| i.into()).collect();
1901 self
1902 }
1903}
1904
1905impl wkt::message::Message for ListChannelConnectionsResponse {
1906 fn typename() -> &'static str {
1907 "type.googleapis.com/google.cloud.eventarc.v1.ListChannelConnectionsResponse"
1908 }
1909}
1910
1911#[doc(hidden)]
1912impl gax::paginator::internal::PageableResponse for ListChannelConnectionsResponse {
1913 type PageItem = crate::model::ChannelConnection;
1914
1915 fn items(self) -> std::vec::Vec<Self::PageItem> {
1916 self.channel_connections
1917 }
1918
1919 fn next_page_token(&self) -> std::string::String {
1920 use std::clone::Clone;
1921 self.next_page_token.clone()
1922 }
1923}
1924
1925#[derive(Clone, Default, PartialEq)]
1927#[non_exhaustive]
1928pub struct CreateChannelConnectionRequest {
1929 pub parent: std::string::String,
1931
1932 pub channel_connection: std::option::Option<crate::model::ChannelConnection>,
1934
1935 pub channel_connection_id: std::string::String,
1937
1938 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1939}
1940
1941impl CreateChannelConnectionRequest {
1942 pub fn new() -> Self {
1943 std::default::Default::default()
1944 }
1945
1946 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
1948 self.parent = v.into();
1949 self
1950 }
1951
1952 pub fn set_channel_connection<T>(mut self, v: T) -> Self
1954 where
1955 T: std::convert::Into<crate::model::ChannelConnection>,
1956 {
1957 self.channel_connection = std::option::Option::Some(v.into());
1958 self
1959 }
1960
1961 pub fn set_or_clear_channel_connection<T>(mut self, v: std::option::Option<T>) -> Self
1963 where
1964 T: std::convert::Into<crate::model::ChannelConnection>,
1965 {
1966 self.channel_connection = v.map(|x| x.into());
1967 self
1968 }
1969
1970 pub fn set_channel_connection_id<T: std::convert::Into<std::string::String>>(
1972 mut self,
1973 v: T,
1974 ) -> Self {
1975 self.channel_connection_id = v.into();
1976 self
1977 }
1978}
1979
1980impl wkt::message::Message for CreateChannelConnectionRequest {
1981 fn typename() -> &'static str {
1982 "type.googleapis.com/google.cloud.eventarc.v1.CreateChannelConnectionRequest"
1983 }
1984}
1985
1986#[derive(Clone, Default, PartialEq)]
1988#[non_exhaustive]
1989pub struct DeleteChannelConnectionRequest {
1990 pub name: std::string::String,
1992
1993 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
1994}
1995
1996impl DeleteChannelConnectionRequest {
1997 pub fn new() -> Self {
1998 std::default::Default::default()
1999 }
2000
2001 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2003 self.name = v.into();
2004 self
2005 }
2006}
2007
2008impl wkt::message::Message for DeleteChannelConnectionRequest {
2009 fn typename() -> &'static str {
2010 "type.googleapis.com/google.cloud.eventarc.v1.DeleteChannelConnectionRequest"
2011 }
2012}
2013
2014#[derive(Clone, Default, PartialEq)]
2016#[non_exhaustive]
2017pub struct UpdateGoogleChannelConfigRequest {
2018 pub google_channel_config: std::option::Option<crate::model::GoogleChannelConfig>,
2020
2021 pub update_mask: std::option::Option<wkt::FieldMask>,
2025
2026 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2027}
2028
2029impl UpdateGoogleChannelConfigRequest {
2030 pub fn new() -> Self {
2031 std::default::Default::default()
2032 }
2033
2034 pub fn set_google_channel_config<T>(mut self, v: T) -> Self
2036 where
2037 T: std::convert::Into<crate::model::GoogleChannelConfig>,
2038 {
2039 self.google_channel_config = std::option::Option::Some(v.into());
2040 self
2041 }
2042
2043 pub fn set_or_clear_google_channel_config<T>(mut self, v: std::option::Option<T>) -> Self
2045 where
2046 T: std::convert::Into<crate::model::GoogleChannelConfig>,
2047 {
2048 self.google_channel_config = v.map(|x| x.into());
2049 self
2050 }
2051
2052 pub fn set_update_mask<T>(mut self, v: T) -> Self
2054 where
2055 T: std::convert::Into<wkt::FieldMask>,
2056 {
2057 self.update_mask = std::option::Option::Some(v.into());
2058 self
2059 }
2060
2061 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
2063 where
2064 T: std::convert::Into<wkt::FieldMask>,
2065 {
2066 self.update_mask = v.map(|x| x.into());
2067 self
2068 }
2069}
2070
2071impl wkt::message::Message for UpdateGoogleChannelConfigRequest {
2072 fn typename() -> &'static str {
2073 "type.googleapis.com/google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest"
2074 }
2075}
2076
2077#[derive(Clone, Default, PartialEq)]
2079#[non_exhaustive]
2080pub struct GetGoogleChannelConfigRequest {
2081 pub name: std::string::String,
2083
2084 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2085}
2086
2087impl GetGoogleChannelConfigRequest {
2088 pub fn new() -> Self {
2089 std::default::Default::default()
2090 }
2091
2092 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2094 self.name = v.into();
2095 self
2096 }
2097}
2098
2099impl wkt::message::Message for GetGoogleChannelConfigRequest {
2100 fn typename() -> &'static str {
2101 "type.googleapis.com/google.cloud.eventarc.v1.GetGoogleChannelConfigRequest"
2102 }
2103}
2104
2105#[derive(Clone, Default, PartialEq)]
2107#[non_exhaustive]
2108pub struct GetMessageBusRequest {
2109 pub name: std::string::String,
2111
2112 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2113}
2114
2115impl GetMessageBusRequest {
2116 pub fn new() -> Self {
2117 std::default::Default::default()
2118 }
2119
2120 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2122 self.name = v.into();
2123 self
2124 }
2125}
2126
2127impl wkt::message::Message for GetMessageBusRequest {
2128 fn typename() -> &'static str {
2129 "type.googleapis.com/google.cloud.eventarc.v1.GetMessageBusRequest"
2130 }
2131}
2132
2133#[derive(Clone, Default, PartialEq)]
2135#[non_exhaustive]
2136pub struct ListMessageBusesRequest {
2137 pub parent: std::string::String,
2139
2140 pub page_size: i32,
2144
2145 pub page_token: std::string::String,
2151
2152 pub order_by: std::string::String,
2157
2158 pub filter: std::string::String,
2161
2162 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2163}
2164
2165impl ListMessageBusesRequest {
2166 pub fn new() -> Self {
2167 std::default::Default::default()
2168 }
2169
2170 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2172 self.parent = v.into();
2173 self
2174 }
2175
2176 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
2178 self.page_size = v.into();
2179 self
2180 }
2181
2182 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2184 self.page_token = v.into();
2185 self
2186 }
2187
2188 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2190 self.order_by = v.into();
2191 self
2192 }
2193
2194 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2196 self.filter = v.into();
2197 self
2198 }
2199}
2200
2201impl wkt::message::Message for ListMessageBusesRequest {
2202 fn typename() -> &'static str {
2203 "type.googleapis.com/google.cloud.eventarc.v1.ListMessageBusesRequest"
2204 }
2205}
2206
2207#[derive(Clone, Default, PartialEq)]
2209#[non_exhaustive]
2210pub struct ListMessageBusesResponse {
2211 pub message_buses: std::vec::Vec<crate::model::MessageBus>,
2213
2214 pub next_page_token: std::string::String,
2217
2218 pub unreachable: std::vec::Vec<std::string::String>,
2220
2221 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2222}
2223
2224impl ListMessageBusesResponse {
2225 pub fn new() -> Self {
2226 std::default::Default::default()
2227 }
2228
2229 pub fn set_message_buses<T, V>(mut self, v: T) -> Self
2231 where
2232 T: std::iter::IntoIterator<Item = V>,
2233 V: std::convert::Into<crate::model::MessageBus>,
2234 {
2235 use std::iter::Iterator;
2236 self.message_buses = v.into_iter().map(|i| i.into()).collect();
2237 self
2238 }
2239
2240 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2242 self.next_page_token = v.into();
2243 self
2244 }
2245
2246 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
2248 where
2249 T: std::iter::IntoIterator<Item = V>,
2250 V: std::convert::Into<std::string::String>,
2251 {
2252 use std::iter::Iterator;
2253 self.unreachable = v.into_iter().map(|i| i.into()).collect();
2254 self
2255 }
2256}
2257
2258impl wkt::message::Message for ListMessageBusesResponse {
2259 fn typename() -> &'static str {
2260 "type.googleapis.com/google.cloud.eventarc.v1.ListMessageBusesResponse"
2261 }
2262}
2263
2264#[doc(hidden)]
2265impl gax::paginator::internal::PageableResponse for ListMessageBusesResponse {
2266 type PageItem = crate::model::MessageBus;
2267
2268 fn items(self) -> std::vec::Vec<Self::PageItem> {
2269 self.message_buses
2270 }
2271
2272 fn next_page_token(&self) -> std::string::String {
2273 use std::clone::Clone;
2274 self.next_page_token.clone()
2275 }
2276}
2277
2278#[derive(Clone, Default, PartialEq)]
2280#[non_exhaustive]
2281pub struct ListMessageBusEnrollmentsRequest {
2282 pub parent: std::string::String,
2284
2285 pub page_size: i32,
2289
2290 pub page_token: std::string::String,
2296
2297 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2298}
2299
2300impl ListMessageBusEnrollmentsRequest {
2301 pub fn new() -> Self {
2302 std::default::Default::default()
2303 }
2304
2305 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2307 self.parent = v.into();
2308 self
2309 }
2310
2311 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
2313 self.page_size = v.into();
2314 self
2315 }
2316
2317 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2319 self.page_token = v.into();
2320 self
2321 }
2322}
2323
2324impl wkt::message::Message for ListMessageBusEnrollmentsRequest {
2325 fn typename() -> &'static str {
2326 "type.googleapis.com/google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest"
2327 }
2328}
2329
2330#[derive(Clone, Default, PartialEq)]
2332#[non_exhaustive]
2333pub struct ListMessageBusEnrollmentsResponse {
2334 pub enrollments: std::vec::Vec<std::string::String>,
2336
2337 pub next_page_token: std::string::String,
2340
2341 pub unreachable: std::vec::Vec<std::string::String>,
2343
2344 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2345}
2346
2347impl ListMessageBusEnrollmentsResponse {
2348 pub fn new() -> Self {
2349 std::default::Default::default()
2350 }
2351
2352 pub fn set_enrollments<T, V>(mut self, v: T) -> Self
2354 where
2355 T: std::iter::IntoIterator<Item = V>,
2356 V: std::convert::Into<std::string::String>,
2357 {
2358 use std::iter::Iterator;
2359 self.enrollments = v.into_iter().map(|i| i.into()).collect();
2360 self
2361 }
2362
2363 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2365 self.next_page_token = v.into();
2366 self
2367 }
2368
2369 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
2371 where
2372 T: std::iter::IntoIterator<Item = V>,
2373 V: std::convert::Into<std::string::String>,
2374 {
2375 use std::iter::Iterator;
2376 self.unreachable = v.into_iter().map(|i| i.into()).collect();
2377 self
2378 }
2379}
2380
2381impl wkt::message::Message for ListMessageBusEnrollmentsResponse {
2382 fn typename() -> &'static str {
2383 "type.googleapis.com/google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse"
2384 }
2385}
2386
2387#[derive(Clone, Default, PartialEq)]
2389#[non_exhaustive]
2390pub struct CreateMessageBusRequest {
2391 pub parent: std::string::String,
2393
2394 pub message_bus: std::option::Option<crate::model::MessageBus>,
2396
2397 pub message_bus_id: std::string::String,
2400
2401 pub validate_only: bool,
2404
2405 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2406}
2407
2408impl CreateMessageBusRequest {
2409 pub fn new() -> Self {
2410 std::default::Default::default()
2411 }
2412
2413 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2415 self.parent = v.into();
2416 self
2417 }
2418
2419 pub fn set_message_bus<T>(mut self, v: T) -> Self
2421 where
2422 T: std::convert::Into<crate::model::MessageBus>,
2423 {
2424 self.message_bus = std::option::Option::Some(v.into());
2425 self
2426 }
2427
2428 pub fn set_or_clear_message_bus<T>(mut self, v: std::option::Option<T>) -> Self
2430 where
2431 T: std::convert::Into<crate::model::MessageBus>,
2432 {
2433 self.message_bus = v.map(|x| x.into());
2434 self
2435 }
2436
2437 pub fn set_message_bus_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2439 self.message_bus_id = v.into();
2440 self
2441 }
2442
2443 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2445 self.validate_only = v.into();
2446 self
2447 }
2448}
2449
2450impl wkt::message::Message for CreateMessageBusRequest {
2451 fn typename() -> &'static str {
2452 "type.googleapis.com/google.cloud.eventarc.v1.CreateMessageBusRequest"
2453 }
2454}
2455
2456#[derive(Clone, Default, PartialEq)]
2458#[non_exhaustive]
2459pub struct UpdateMessageBusRequest {
2460 pub message_bus: std::option::Option<crate::model::MessageBus>,
2462
2463 pub update_mask: std::option::Option<wkt::FieldMask>,
2467
2468 pub allow_missing: bool,
2471
2472 pub validate_only: bool,
2475
2476 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2477}
2478
2479impl UpdateMessageBusRequest {
2480 pub fn new() -> Self {
2481 std::default::Default::default()
2482 }
2483
2484 pub fn set_message_bus<T>(mut self, v: T) -> Self
2486 where
2487 T: std::convert::Into<crate::model::MessageBus>,
2488 {
2489 self.message_bus = std::option::Option::Some(v.into());
2490 self
2491 }
2492
2493 pub fn set_or_clear_message_bus<T>(mut self, v: std::option::Option<T>) -> Self
2495 where
2496 T: std::convert::Into<crate::model::MessageBus>,
2497 {
2498 self.message_bus = v.map(|x| x.into());
2499 self
2500 }
2501
2502 pub fn set_update_mask<T>(mut self, v: T) -> Self
2504 where
2505 T: std::convert::Into<wkt::FieldMask>,
2506 {
2507 self.update_mask = std::option::Option::Some(v.into());
2508 self
2509 }
2510
2511 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
2513 where
2514 T: std::convert::Into<wkt::FieldMask>,
2515 {
2516 self.update_mask = v.map(|x| x.into());
2517 self
2518 }
2519
2520 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2522 self.allow_missing = v.into();
2523 self
2524 }
2525
2526 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2528 self.validate_only = v.into();
2529 self
2530 }
2531}
2532
2533impl wkt::message::Message for UpdateMessageBusRequest {
2534 fn typename() -> &'static str {
2535 "type.googleapis.com/google.cloud.eventarc.v1.UpdateMessageBusRequest"
2536 }
2537}
2538
2539#[derive(Clone, Default, PartialEq)]
2541#[non_exhaustive]
2542pub struct DeleteMessageBusRequest {
2543 pub name: std::string::String,
2545
2546 pub etag: std::string::String,
2549
2550 pub allow_missing: bool,
2553
2554 pub validate_only: bool,
2557
2558 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2559}
2560
2561impl DeleteMessageBusRequest {
2562 pub fn new() -> Self {
2563 std::default::Default::default()
2564 }
2565
2566 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2568 self.name = v.into();
2569 self
2570 }
2571
2572 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2574 self.etag = v.into();
2575 self
2576 }
2577
2578 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2580 self.allow_missing = v.into();
2581 self
2582 }
2583
2584 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2586 self.validate_only = v.into();
2587 self
2588 }
2589}
2590
2591impl wkt::message::Message for DeleteMessageBusRequest {
2592 fn typename() -> &'static str {
2593 "type.googleapis.com/google.cloud.eventarc.v1.DeleteMessageBusRequest"
2594 }
2595}
2596
2597#[derive(Clone, Default, PartialEq)]
2599#[non_exhaustive]
2600pub struct GetEnrollmentRequest {
2601 pub name: std::string::String,
2603
2604 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2605}
2606
2607impl GetEnrollmentRequest {
2608 pub fn new() -> Self {
2609 std::default::Default::default()
2610 }
2611
2612 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2614 self.name = v.into();
2615 self
2616 }
2617}
2618
2619impl wkt::message::Message for GetEnrollmentRequest {
2620 fn typename() -> &'static str {
2621 "type.googleapis.com/google.cloud.eventarc.v1.GetEnrollmentRequest"
2622 }
2623}
2624
2625#[derive(Clone, Default, PartialEq)]
2627#[non_exhaustive]
2628pub struct ListEnrollmentsRequest {
2629 pub parent: std::string::String,
2631
2632 pub page_size: i32,
2636
2637 pub page_token: std::string::String,
2643
2644 pub order_by: std::string::String,
2649
2650 pub filter: std::string::String,
2653
2654 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2655}
2656
2657impl ListEnrollmentsRequest {
2658 pub fn new() -> Self {
2659 std::default::Default::default()
2660 }
2661
2662 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2664 self.parent = v.into();
2665 self
2666 }
2667
2668 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
2670 self.page_size = v.into();
2671 self
2672 }
2673
2674 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2676 self.page_token = v.into();
2677 self
2678 }
2679
2680 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2682 self.order_by = v.into();
2683 self
2684 }
2685
2686 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2688 self.filter = v.into();
2689 self
2690 }
2691}
2692
2693impl wkt::message::Message for ListEnrollmentsRequest {
2694 fn typename() -> &'static str {
2695 "type.googleapis.com/google.cloud.eventarc.v1.ListEnrollmentsRequest"
2696 }
2697}
2698
2699#[derive(Clone, Default, PartialEq)]
2701#[non_exhaustive]
2702pub struct ListEnrollmentsResponse {
2703 pub enrollments: std::vec::Vec<crate::model::Enrollment>,
2705
2706 pub next_page_token: std::string::String,
2709
2710 pub unreachable: std::vec::Vec<std::string::String>,
2712
2713 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2714}
2715
2716impl ListEnrollmentsResponse {
2717 pub fn new() -> Self {
2718 std::default::Default::default()
2719 }
2720
2721 pub fn set_enrollments<T, V>(mut self, v: T) -> Self
2723 where
2724 T: std::iter::IntoIterator<Item = V>,
2725 V: std::convert::Into<crate::model::Enrollment>,
2726 {
2727 use std::iter::Iterator;
2728 self.enrollments = v.into_iter().map(|i| i.into()).collect();
2729 self
2730 }
2731
2732 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2734 self.next_page_token = v.into();
2735 self
2736 }
2737
2738 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
2740 where
2741 T: std::iter::IntoIterator<Item = V>,
2742 V: std::convert::Into<std::string::String>,
2743 {
2744 use std::iter::Iterator;
2745 self.unreachable = v.into_iter().map(|i| i.into()).collect();
2746 self
2747 }
2748}
2749
2750impl wkt::message::Message for ListEnrollmentsResponse {
2751 fn typename() -> &'static str {
2752 "type.googleapis.com/google.cloud.eventarc.v1.ListEnrollmentsResponse"
2753 }
2754}
2755
2756#[doc(hidden)]
2757impl gax::paginator::internal::PageableResponse for ListEnrollmentsResponse {
2758 type PageItem = crate::model::Enrollment;
2759
2760 fn items(self) -> std::vec::Vec<Self::PageItem> {
2761 self.enrollments
2762 }
2763
2764 fn next_page_token(&self) -> std::string::String {
2765 use std::clone::Clone;
2766 self.next_page_token.clone()
2767 }
2768}
2769
2770#[derive(Clone, Default, PartialEq)]
2772#[non_exhaustive]
2773pub struct CreateEnrollmentRequest {
2774 pub parent: std::string::String,
2776
2777 pub enrollment: std::option::Option<crate::model::Enrollment>,
2779
2780 pub enrollment_id: std::string::String,
2783
2784 pub validate_only: bool,
2787
2788 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2789}
2790
2791impl CreateEnrollmentRequest {
2792 pub fn new() -> Self {
2793 std::default::Default::default()
2794 }
2795
2796 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2798 self.parent = v.into();
2799 self
2800 }
2801
2802 pub fn set_enrollment<T>(mut self, v: T) -> Self
2804 where
2805 T: std::convert::Into<crate::model::Enrollment>,
2806 {
2807 self.enrollment = std::option::Option::Some(v.into());
2808 self
2809 }
2810
2811 pub fn set_or_clear_enrollment<T>(mut self, v: std::option::Option<T>) -> Self
2813 where
2814 T: std::convert::Into<crate::model::Enrollment>,
2815 {
2816 self.enrollment = v.map(|x| x.into());
2817 self
2818 }
2819
2820 pub fn set_enrollment_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2822 self.enrollment_id = v.into();
2823 self
2824 }
2825
2826 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2828 self.validate_only = v.into();
2829 self
2830 }
2831}
2832
2833impl wkt::message::Message for CreateEnrollmentRequest {
2834 fn typename() -> &'static str {
2835 "type.googleapis.com/google.cloud.eventarc.v1.CreateEnrollmentRequest"
2836 }
2837}
2838
2839#[derive(Clone, Default, PartialEq)]
2841#[non_exhaustive]
2842pub struct UpdateEnrollmentRequest {
2843 pub enrollment: std::option::Option<crate::model::Enrollment>,
2845
2846 pub update_mask: std::option::Option<wkt::FieldMask>,
2850
2851 pub allow_missing: bool,
2854
2855 pub validate_only: bool,
2858
2859 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2860}
2861
2862impl UpdateEnrollmentRequest {
2863 pub fn new() -> Self {
2864 std::default::Default::default()
2865 }
2866
2867 pub fn set_enrollment<T>(mut self, v: T) -> Self
2869 where
2870 T: std::convert::Into<crate::model::Enrollment>,
2871 {
2872 self.enrollment = std::option::Option::Some(v.into());
2873 self
2874 }
2875
2876 pub fn set_or_clear_enrollment<T>(mut self, v: std::option::Option<T>) -> Self
2878 where
2879 T: std::convert::Into<crate::model::Enrollment>,
2880 {
2881 self.enrollment = v.map(|x| x.into());
2882 self
2883 }
2884
2885 pub fn set_update_mask<T>(mut self, v: T) -> Self
2887 where
2888 T: std::convert::Into<wkt::FieldMask>,
2889 {
2890 self.update_mask = std::option::Option::Some(v.into());
2891 self
2892 }
2893
2894 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
2896 where
2897 T: std::convert::Into<wkt::FieldMask>,
2898 {
2899 self.update_mask = v.map(|x| x.into());
2900 self
2901 }
2902
2903 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2905 self.allow_missing = v.into();
2906 self
2907 }
2908
2909 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2911 self.validate_only = v.into();
2912 self
2913 }
2914}
2915
2916impl wkt::message::Message for UpdateEnrollmentRequest {
2917 fn typename() -> &'static str {
2918 "type.googleapis.com/google.cloud.eventarc.v1.UpdateEnrollmentRequest"
2919 }
2920}
2921
2922#[derive(Clone, Default, PartialEq)]
2924#[non_exhaustive]
2925pub struct DeleteEnrollmentRequest {
2926 pub name: std::string::String,
2928
2929 pub etag: std::string::String,
2932
2933 pub allow_missing: bool,
2936
2937 pub validate_only: bool,
2940
2941 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2942}
2943
2944impl DeleteEnrollmentRequest {
2945 pub fn new() -> Self {
2946 std::default::Default::default()
2947 }
2948
2949 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2951 self.name = v.into();
2952 self
2953 }
2954
2955 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2957 self.etag = v.into();
2958 self
2959 }
2960
2961 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2963 self.allow_missing = v.into();
2964 self
2965 }
2966
2967 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
2969 self.validate_only = v.into();
2970 self
2971 }
2972}
2973
2974impl wkt::message::Message for DeleteEnrollmentRequest {
2975 fn typename() -> &'static str {
2976 "type.googleapis.com/google.cloud.eventarc.v1.DeleteEnrollmentRequest"
2977 }
2978}
2979
2980#[derive(Clone, Default, PartialEq)]
2982#[non_exhaustive]
2983pub struct GetPipelineRequest {
2984 pub name: std::string::String,
2986
2987 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
2988}
2989
2990impl GetPipelineRequest {
2991 pub fn new() -> Self {
2992 std::default::Default::default()
2993 }
2994
2995 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
2997 self.name = v.into();
2998 self
2999 }
3000}
3001
3002impl wkt::message::Message for GetPipelineRequest {
3003 fn typename() -> &'static str {
3004 "type.googleapis.com/google.cloud.eventarc.v1.GetPipelineRequest"
3005 }
3006}
3007
3008#[derive(Clone, Default, PartialEq)]
3010#[non_exhaustive]
3011pub struct ListPipelinesRequest {
3012 pub parent: std::string::String,
3014
3015 pub page_size: i32,
3019
3020 pub page_token: std::string::String,
3026
3027 pub order_by: std::string::String,
3032
3033 pub filter: std::string::String,
3036
3037 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3038}
3039
3040impl ListPipelinesRequest {
3041 pub fn new() -> Self {
3042 std::default::Default::default()
3043 }
3044
3045 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3047 self.parent = v.into();
3048 self
3049 }
3050
3051 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
3053 self.page_size = v.into();
3054 self
3055 }
3056
3057 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3059 self.page_token = v.into();
3060 self
3061 }
3062
3063 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3065 self.order_by = v.into();
3066 self
3067 }
3068
3069 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3071 self.filter = v.into();
3072 self
3073 }
3074}
3075
3076impl wkt::message::Message for ListPipelinesRequest {
3077 fn typename() -> &'static str {
3078 "type.googleapis.com/google.cloud.eventarc.v1.ListPipelinesRequest"
3079 }
3080}
3081
3082#[derive(Clone, Default, PartialEq)]
3084#[non_exhaustive]
3085pub struct ListPipelinesResponse {
3086 pub pipelines: std::vec::Vec<crate::model::Pipeline>,
3088
3089 pub next_page_token: std::string::String,
3092
3093 pub unreachable: std::vec::Vec<std::string::String>,
3095
3096 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3097}
3098
3099impl ListPipelinesResponse {
3100 pub fn new() -> Self {
3101 std::default::Default::default()
3102 }
3103
3104 pub fn set_pipelines<T, V>(mut self, v: T) -> Self
3106 where
3107 T: std::iter::IntoIterator<Item = V>,
3108 V: std::convert::Into<crate::model::Pipeline>,
3109 {
3110 use std::iter::Iterator;
3111 self.pipelines = v.into_iter().map(|i| i.into()).collect();
3112 self
3113 }
3114
3115 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3117 self.next_page_token = v.into();
3118 self
3119 }
3120
3121 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
3123 where
3124 T: std::iter::IntoIterator<Item = V>,
3125 V: std::convert::Into<std::string::String>,
3126 {
3127 use std::iter::Iterator;
3128 self.unreachable = v.into_iter().map(|i| i.into()).collect();
3129 self
3130 }
3131}
3132
3133impl wkt::message::Message for ListPipelinesResponse {
3134 fn typename() -> &'static str {
3135 "type.googleapis.com/google.cloud.eventarc.v1.ListPipelinesResponse"
3136 }
3137}
3138
3139#[doc(hidden)]
3140impl gax::paginator::internal::PageableResponse for ListPipelinesResponse {
3141 type PageItem = crate::model::Pipeline;
3142
3143 fn items(self) -> std::vec::Vec<Self::PageItem> {
3144 self.pipelines
3145 }
3146
3147 fn next_page_token(&self) -> std::string::String {
3148 use std::clone::Clone;
3149 self.next_page_token.clone()
3150 }
3151}
3152
3153#[derive(Clone, Default, PartialEq)]
3155#[non_exhaustive]
3156pub struct CreatePipelineRequest {
3157 pub parent: std::string::String,
3159
3160 pub pipeline: std::option::Option<crate::model::Pipeline>,
3162
3163 pub pipeline_id: std::string::String,
3166
3167 pub validate_only: bool,
3170
3171 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3172}
3173
3174impl CreatePipelineRequest {
3175 pub fn new() -> Self {
3176 std::default::Default::default()
3177 }
3178
3179 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3181 self.parent = v.into();
3182 self
3183 }
3184
3185 pub fn set_pipeline<T>(mut self, v: T) -> Self
3187 where
3188 T: std::convert::Into<crate::model::Pipeline>,
3189 {
3190 self.pipeline = std::option::Option::Some(v.into());
3191 self
3192 }
3193
3194 pub fn set_or_clear_pipeline<T>(mut self, v: std::option::Option<T>) -> Self
3196 where
3197 T: std::convert::Into<crate::model::Pipeline>,
3198 {
3199 self.pipeline = v.map(|x| x.into());
3200 self
3201 }
3202
3203 pub fn set_pipeline_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3205 self.pipeline_id = v.into();
3206 self
3207 }
3208
3209 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3211 self.validate_only = v.into();
3212 self
3213 }
3214}
3215
3216impl wkt::message::Message for CreatePipelineRequest {
3217 fn typename() -> &'static str {
3218 "type.googleapis.com/google.cloud.eventarc.v1.CreatePipelineRequest"
3219 }
3220}
3221
3222#[derive(Clone, Default, PartialEq)]
3224#[non_exhaustive]
3225pub struct UpdatePipelineRequest {
3226 pub pipeline: std::option::Option<crate::model::Pipeline>,
3228
3229 pub update_mask: std::option::Option<wkt::FieldMask>,
3233
3234 pub allow_missing: bool,
3237
3238 pub validate_only: bool,
3241
3242 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3243}
3244
3245impl UpdatePipelineRequest {
3246 pub fn new() -> Self {
3247 std::default::Default::default()
3248 }
3249
3250 pub fn set_pipeline<T>(mut self, v: T) -> Self
3252 where
3253 T: std::convert::Into<crate::model::Pipeline>,
3254 {
3255 self.pipeline = std::option::Option::Some(v.into());
3256 self
3257 }
3258
3259 pub fn set_or_clear_pipeline<T>(mut self, v: std::option::Option<T>) -> Self
3261 where
3262 T: std::convert::Into<crate::model::Pipeline>,
3263 {
3264 self.pipeline = v.map(|x| x.into());
3265 self
3266 }
3267
3268 pub fn set_update_mask<T>(mut self, v: T) -> Self
3270 where
3271 T: std::convert::Into<wkt::FieldMask>,
3272 {
3273 self.update_mask = std::option::Option::Some(v.into());
3274 self
3275 }
3276
3277 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
3279 where
3280 T: std::convert::Into<wkt::FieldMask>,
3281 {
3282 self.update_mask = v.map(|x| x.into());
3283 self
3284 }
3285
3286 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3288 self.allow_missing = v.into();
3289 self
3290 }
3291
3292 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3294 self.validate_only = v.into();
3295 self
3296 }
3297}
3298
3299impl wkt::message::Message for UpdatePipelineRequest {
3300 fn typename() -> &'static str {
3301 "type.googleapis.com/google.cloud.eventarc.v1.UpdatePipelineRequest"
3302 }
3303}
3304
3305#[derive(Clone, Default, PartialEq)]
3307#[non_exhaustive]
3308pub struct DeletePipelineRequest {
3309 pub name: std::string::String,
3311
3312 pub etag: std::string::String,
3315
3316 pub allow_missing: bool,
3319
3320 pub validate_only: bool,
3323
3324 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3325}
3326
3327impl DeletePipelineRequest {
3328 pub fn new() -> Self {
3329 std::default::Default::default()
3330 }
3331
3332 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3334 self.name = v.into();
3335 self
3336 }
3337
3338 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3340 self.etag = v.into();
3341 self
3342 }
3343
3344 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3346 self.allow_missing = v.into();
3347 self
3348 }
3349
3350 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3352 self.validate_only = v.into();
3353 self
3354 }
3355}
3356
3357impl wkt::message::Message for DeletePipelineRequest {
3358 fn typename() -> &'static str {
3359 "type.googleapis.com/google.cloud.eventarc.v1.DeletePipelineRequest"
3360 }
3361}
3362
3363#[derive(Clone, Default, PartialEq)]
3365#[non_exhaustive]
3366pub struct GetGoogleApiSourceRequest {
3367 pub name: std::string::String,
3369
3370 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3371}
3372
3373impl GetGoogleApiSourceRequest {
3374 pub fn new() -> Self {
3375 std::default::Default::default()
3376 }
3377
3378 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3380 self.name = v.into();
3381 self
3382 }
3383}
3384
3385impl wkt::message::Message for GetGoogleApiSourceRequest {
3386 fn typename() -> &'static str {
3387 "type.googleapis.com/google.cloud.eventarc.v1.GetGoogleApiSourceRequest"
3388 }
3389}
3390
3391#[derive(Clone, Default, PartialEq)]
3393#[non_exhaustive]
3394pub struct ListGoogleApiSourcesRequest {
3395 pub parent: std::string::String,
3397
3398 pub page_size: i32,
3402
3403 pub page_token: std::string::String,
3409
3410 pub order_by: std::string::String,
3415
3416 pub filter: std::string::String,
3419
3420 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3421}
3422
3423impl ListGoogleApiSourcesRequest {
3424 pub fn new() -> Self {
3425 std::default::Default::default()
3426 }
3427
3428 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3430 self.parent = v.into();
3431 self
3432 }
3433
3434 pub fn set_page_size<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
3436 self.page_size = v.into();
3437 self
3438 }
3439
3440 pub fn set_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3442 self.page_token = v.into();
3443 self
3444 }
3445
3446 pub fn set_order_by<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3448 self.order_by = v.into();
3449 self
3450 }
3451
3452 pub fn set_filter<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3454 self.filter = v.into();
3455 self
3456 }
3457}
3458
3459impl wkt::message::Message for ListGoogleApiSourcesRequest {
3460 fn typename() -> &'static str {
3461 "type.googleapis.com/google.cloud.eventarc.v1.ListGoogleApiSourcesRequest"
3462 }
3463}
3464
3465#[derive(Clone, Default, PartialEq)]
3467#[non_exhaustive]
3468pub struct ListGoogleApiSourcesResponse {
3469 pub google_api_sources: std::vec::Vec<crate::model::GoogleApiSource>,
3471
3472 pub next_page_token: std::string::String,
3475
3476 pub unreachable: std::vec::Vec<std::string::String>,
3478
3479 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3480}
3481
3482impl ListGoogleApiSourcesResponse {
3483 pub fn new() -> Self {
3484 std::default::Default::default()
3485 }
3486
3487 pub fn set_google_api_sources<T, V>(mut self, v: T) -> Self
3489 where
3490 T: std::iter::IntoIterator<Item = V>,
3491 V: std::convert::Into<crate::model::GoogleApiSource>,
3492 {
3493 use std::iter::Iterator;
3494 self.google_api_sources = v.into_iter().map(|i| i.into()).collect();
3495 self
3496 }
3497
3498 pub fn set_next_page_token<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3500 self.next_page_token = v.into();
3501 self
3502 }
3503
3504 pub fn set_unreachable<T, V>(mut self, v: T) -> Self
3506 where
3507 T: std::iter::IntoIterator<Item = V>,
3508 V: std::convert::Into<std::string::String>,
3509 {
3510 use std::iter::Iterator;
3511 self.unreachable = v.into_iter().map(|i| i.into()).collect();
3512 self
3513 }
3514}
3515
3516impl wkt::message::Message for ListGoogleApiSourcesResponse {
3517 fn typename() -> &'static str {
3518 "type.googleapis.com/google.cloud.eventarc.v1.ListGoogleApiSourcesResponse"
3519 }
3520}
3521
3522#[doc(hidden)]
3523impl gax::paginator::internal::PageableResponse for ListGoogleApiSourcesResponse {
3524 type PageItem = crate::model::GoogleApiSource;
3525
3526 fn items(self) -> std::vec::Vec<Self::PageItem> {
3527 self.google_api_sources
3528 }
3529
3530 fn next_page_token(&self) -> std::string::String {
3531 use std::clone::Clone;
3532 self.next_page_token.clone()
3533 }
3534}
3535
3536#[derive(Clone, Default, PartialEq)]
3538#[non_exhaustive]
3539pub struct CreateGoogleApiSourceRequest {
3540 pub parent: std::string::String,
3542
3543 pub google_api_source: std::option::Option<crate::model::GoogleApiSource>,
3545
3546 pub google_api_source_id: std::string::String,
3549
3550 pub validate_only: bool,
3553
3554 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3555}
3556
3557impl CreateGoogleApiSourceRequest {
3558 pub fn new() -> Self {
3559 std::default::Default::default()
3560 }
3561
3562 pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3564 self.parent = v.into();
3565 self
3566 }
3567
3568 pub fn set_google_api_source<T>(mut self, v: T) -> Self
3570 where
3571 T: std::convert::Into<crate::model::GoogleApiSource>,
3572 {
3573 self.google_api_source = std::option::Option::Some(v.into());
3574 self
3575 }
3576
3577 pub fn set_or_clear_google_api_source<T>(mut self, v: std::option::Option<T>) -> Self
3579 where
3580 T: std::convert::Into<crate::model::GoogleApiSource>,
3581 {
3582 self.google_api_source = v.map(|x| x.into());
3583 self
3584 }
3585
3586 pub fn set_google_api_source_id<T: std::convert::Into<std::string::String>>(
3588 mut self,
3589 v: T,
3590 ) -> Self {
3591 self.google_api_source_id = v.into();
3592 self
3593 }
3594
3595 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3597 self.validate_only = v.into();
3598 self
3599 }
3600}
3601
3602impl wkt::message::Message for CreateGoogleApiSourceRequest {
3603 fn typename() -> &'static str {
3604 "type.googleapis.com/google.cloud.eventarc.v1.CreateGoogleApiSourceRequest"
3605 }
3606}
3607
3608#[derive(Clone, Default, PartialEq)]
3610#[non_exhaustive]
3611pub struct UpdateGoogleApiSourceRequest {
3612 pub google_api_source: std::option::Option<crate::model::GoogleApiSource>,
3614
3615 pub update_mask: std::option::Option<wkt::FieldMask>,
3619
3620 pub allow_missing: bool,
3624
3625 pub validate_only: bool,
3628
3629 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3630}
3631
3632impl UpdateGoogleApiSourceRequest {
3633 pub fn new() -> Self {
3634 std::default::Default::default()
3635 }
3636
3637 pub fn set_google_api_source<T>(mut self, v: T) -> Self
3639 where
3640 T: std::convert::Into<crate::model::GoogleApiSource>,
3641 {
3642 self.google_api_source = std::option::Option::Some(v.into());
3643 self
3644 }
3645
3646 pub fn set_or_clear_google_api_source<T>(mut self, v: std::option::Option<T>) -> Self
3648 where
3649 T: std::convert::Into<crate::model::GoogleApiSource>,
3650 {
3651 self.google_api_source = v.map(|x| x.into());
3652 self
3653 }
3654
3655 pub fn set_update_mask<T>(mut self, v: T) -> Self
3657 where
3658 T: std::convert::Into<wkt::FieldMask>,
3659 {
3660 self.update_mask = std::option::Option::Some(v.into());
3661 self
3662 }
3663
3664 pub fn set_or_clear_update_mask<T>(mut self, v: std::option::Option<T>) -> Self
3666 where
3667 T: std::convert::Into<wkt::FieldMask>,
3668 {
3669 self.update_mask = v.map(|x| x.into());
3670 self
3671 }
3672
3673 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3675 self.allow_missing = v.into();
3676 self
3677 }
3678
3679 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3681 self.validate_only = v.into();
3682 self
3683 }
3684}
3685
3686impl wkt::message::Message for UpdateGoogleApiSourceRequest {
3687 fn typename() -> &'static str {
3688 "type.googleapis.com/google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest"
3689 }
3690}
3691
3692#[derive(Clone, Default, PartialEq)]
3694#[non_exhaustive]
3695pub struct DeleteGoogleApiSourceRequest {
3696 pub name: std::string::String,
3698
3699 pub etag: std::string::String,
3702
3703 pub allow_missing: bool,
3706
3707 pub validate_only: bool,
3710
3711 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3712}
3713
3714impl DeleteGoogleApiSourceRequest {
3715 pub fn new() -> Self {
3716 std::default::Default::default()
3717 }
3718
3719 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3721 self.name = v.into();
3722 self
3723 }
3724
3725 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3727 self.etag = v.into();
3728 self
3729 }
3730
3731 pub fn set_allow_missing<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3733 self.allow_missing = v.into();
3734 self
3735 }
3736
3737 pub fn set_validate_only<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3739 self.validate_only = v.into();
3740 self
3741 }
3742}
3743
3744impl wkt::message::Message for DeleteGoogleApiSourceRequest {
3745 fn typename() -> &'static str {
3746 "type.googleapis.com/google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest"
3747 }
3748}
3749
3750#[derive(Clone, Default, PartialEq)]
3752#[non_exhaustive]
3753pub struct OperationMetadata {
3754 pub create_time: std::option::Option<wkt::Timestamp>,
3756
3757 pub end_time: std::option::Option<wkt::Timestamp>,
3759
3760 pub target: std::string::String,
3762
3763 pub verb: std::string::String,
3765
3766 pub status_message: std::string::String,
3768
3769 pub requested_cancellation: bool,
3777
3778 pub api_version: std::string::String,
3780
3781 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3782}
3783
3784impl OperationMetadata {
3785 pub fn new() -> Self {
3786 std::default::Default::default()
3787 }
3788
3789 pub fn set_create_time<T>(mut self, v: T) -> Self
3791 where
3792 T: std::convert::Into<wkt::Timestamp>,
3793 {
3794 self.create_time = std::option::Option::Some(v.into());
3795 self
3796 }
3797
3798 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
3800 where
3801 T: std::convert::Into<wkt::Timestamp>,
3802 {
3803 self.create_time = v.map(|x| x.into());
3804 self
3805 }
3806
3807 pub fn set_end_time<T>(mut self, v: T) -> Self
3809 where
3810 T: std::convert::Into<wkt::Timestamp>,
3811 {
3812 self.end_time = std::option::Option::Some(v.into());
3813 self
3814 }
3815
3816 pub fn set_or_clear_end_time<T>(mut self, v: std::option::Option<T>) -> Self
3818 where
3819 T: std::convert::Into<wkt::Timestamp>,
3820 {
3821 self.end_time = v.map(|x| x.into());
3822 self
3823 }
3824
3825 pub fn set_target<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3827 self.target = v.into();
3828 self
3829 }
3830
3831 pub fn set_verb<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3833 self.verb = v.into();
3834 self
3835 }
3836
3837 pub fn set_status_message<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3839 self.status_message = v.into();
3840 self
3841 }
3842
3843 pub fn set_requested_cancellation<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
3845 self.requested_cancellation = v.into();
3846 self
3847 }
3848
3849 pub fn set_api_version<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3851 self.api_version = v.into();
3852 self
3853 }
3854}
3855
3856impl wkt::message::Message for OperationMetadata {
3857 fn typename() -> &'static str {
3858 "type.googleapis.com/google.cloud.eventarc.v1.OperationMetadata"
3859 }
3860}
3861
3862#[derive(Clone, Default, PartialEq)]
3864#[non_exhaustive]
3865pub struct GoogleApiSource {
3866 pub name: std::string::String,
3869
3870 pub uid: std::string::String,
3874
3875 pub etag: std::string::String,
3879
3880 pub create_time: std::option::Option<wkt::Timestamp>,
3882
3883 pub update_time: std::option::Option<wkt::Timestamp>,
3885
3886 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
3888
3889 pub annotations: std::collections::HashMap<std::string::String, std::string::String>,
3891
3892 pub display_name: std::string::String,
3894
3895 pub destination: std::string::String,
3900
3901 pub crypto_key_name: std::string::String,
3907
3908 pub logging_config: std::option::Option<crate::model::LoggingConfig>,
3910
3911 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
3912}
3913
3914impl GoogleApiSource {
3915 pub fn new() -> Self {
3916 std::default::Default::default()
3917 }
3918
3919 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3921 self.name = v.into();
3922 self
3923 }
3924
3925 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3927 self.uid = v.into();
3928 self
3929 }
3930
3931 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3933 self.etag = v.into();
3934 self
3935 }
3936
3937 pub fn set_create_time<T>(mut self, v: T) -> Self
3939 where
3940 T: std::convert::Into<wkt::Timestamp>,
3941 {
3942 self.create_time = std::option::Option::Some(v.into());
3943 self
3944 }
3945
3946 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
3948 where
3949 T: std::convert::Into<wkt::Timestamp>,
3950 {
3951 self.create_time = v.map(|x| x.into());
3952 self
3953 }
3954
3955 pub fn set_update_time<T>(mut self, v: T) -> Self
3957 where
3958 T: std::convert::Into<wkt::Timestamp>,
3959 {
3960 self.update_time = std::option::Option::Some(v.into());
3961 self
3962 }
3963
3964 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
3966 where
3967 T: std::convert::Into<wkt::Timestamp>,
3968 {
3969 self.update_time = v.map(|x| x.into());
3970 self
3971 }
3972
3973 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
3975 where
3976 T: std::iter::IntoIterator<Item = (K, V)>,
3977 K: std::convert::Into<std::string::String>,
3978 V: std::convert::Into<std::string::String>,
3979 {
3980 use std::iter::Iterator;
3981 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
3982 self
3983 }
3984
3985 pub fn set_annotations<T, K, V>(mut self, v: T) -> Self
3987 where
3988 T: std::iter::IntoIterator<Item = (K, V)>,
3989 K: std::convert::Into<std::string::String>,
3990 V: std::convert::Into<std::string::String>,
3991 {
3992 use std::iter::Iterator;
3993 self.annotations = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
3994 self
3995 }
3996
3997 pub fn set_display_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
3999 self.display_name = v.into();
4000 self
4001 }
4002
4003 pub fn set_destination<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4005 self.destination = v.into();
4006 self
4007 }
4008
4009 pub fn set_crypto_key_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4011 self.crypto_key_name = v.into();
4012 self
4013 }
4014
4015 pub fn set_logging_config<T>(mut self, v: T) -> Self
4017 where
4018 T: std::convert::Into<crate::model::LoggingConfig>,
4019 {
4020 self.logging_config = std::option::Option::Some(v.into());
4021 self
4022 }
4023
4024 pub fn set_or_clear_logging_config<T>(mut self, v: std::option::Option<T>) -> Self
4026 where
4027 T: std::convert::Into<crate::model::LoggingConfig>,
4028 {
4029 self.logging_config = v.map(|x| x.into());
4030 self
4031 }
4032}
4033
4034impl wkt::message::Message for GoogleApiSource {
4035 fn typename() -> &'static str {
4036 "type.googleapis.com/google.cloud.eventarc.v1.GoogleApiSource"
4037 }
4038}
4039
4040#[derive(Clone, Default, PartialEq)]
4046#[non_exhaustive]
4047pub struct GoogleChannelConfig {
4048 pub name: std::string::String,
4053
4054 pub update_time: std::option::Option<wkt::Timestamp>,
4056
4057 pub crypto_key_name: std::string::String,
4063
4064 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
4066
4067 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4068}
4069
4070impl GoogleChannelConfig {
4071 pub fn new() -> Self {
4072 std::default::Default::default()
4073 }
4074
4075 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4077 self.name = v.into();
4078 self
4079 }
4080
4081 pub fn set_update_time<T>(mut self, v: T) -> Self
4083 where
4084 T: std::convert::Into<wkt::Timestamp>,
4085 {
4086 self.update_time = std::option::Option::Some(v.into());
4087 self
4088 }
4089
4090 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
4092 where
4093 T: std::convert::Into<wkt::Timestamp>,
4094 {
4095 self.update_time = v.map(|x| x.into());
4096 self
4097 }
4098
4099 pub fn set_crypto_key_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4101 self.crypto_key_name = v.into();
4102 self
4103 }
4104
4105 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
4107 where
4108 T: std::iter::IntoIterator<Item = (K, V)>,
4109 K: std::convert::Into<std::string::String>,
4110 V: std::convert::Into<std::string::String>,
4111 {
4112 use std::iter::Iterator;
4113 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
4114 self
4115 }
4116}
4117
4118impl wkt::message::Message for GoogleChannelConfig {
4119 fn typename() -> &'static str {
4120 "type.googleapis.com/google.cloud.eventarc.v1.GoogleChannelConfig"
4121 }
4122}
4123
4124#[derive(Clone, Default, PartialEq)]
4127#[non_exhaustive]
4128pub struct LoggingConfig {
4129 pub log_severity: crate::model::logging_config::LogSeverity,
4133
4134 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4135}
4136
4137impl LoggingConfig {
4138 pub fn new() -> Self {
4139 std::default::Default::default()
4140 }
4141
4142 pub fn set_log_severity<T: std::convert::Into<crate::model::logging_config::LogSeverity>>(
4144 mut self,
4145 v: T,
4146 ) -> Self {
4147 self.log_severity = v.into();
4148 self
4149 }
4150}
4151
4152impl wkt::message::Message for LoggingConfig {
4153 fn typename() -> &'static str {
4154 "type.googleapis.com/google.cloud.eventarc.v1.LoggingConfig"
4155 }
4156}
4157
4158pub mod logging_config {
4160 #[allow(unused_imports)]
4161 use super::*;
4162
4163 #[derive(Clone, Debug, PartialEq)]
4182 #[non_exhaustive]
4183 pub enum LogSeverity {
4184 Unspecified,
4188 None,
4191 Debug,
4193 Info,
4195 Notice,
4198 Warning,
4200 Error,
4202 Critical,
4204 Alert,
4206 Emergency,
4208 UnknownValue(log_severity::UnknownValue),
4213 }
4214
4215 #[doc(hidden)]
4216 pub mod log_severity {
4217 #[allow(unused_imports)]
4218 use super::*;
4219 #[derive(Clone, Debug, PartialEq)]
4220 pub struct UnknownValue(pub(crate) wkt::internal::UnknownEnumValue);
4221 }
4222
4223 impl LogSeverity {
4224 pub fn value(&self) -> std::option::Option<i32> {
4229 match self {
4230 Self::Unspecified => std::option::Option::Some(0),
4231 Self::None => std::option::Option::Some(1),
4232 Self::Debug => std::option::Option::Some(2),
4233 Self::Info => std::option::Option::Some(3),
4234 Self::Notice => std::option::Option::Some(4),
4235 Self::Warning => std::option::Option::Some(5),
4236 Self::Error => std::option::Option::Some(6),
4237 Self::Critical => std::option::Option::Some(7),
4238 Self::Alert => std::option::Option::Some(8),
4239 Self::Emergency => std::option::Option::Some(9),
4240 Self::UnknownValue(u) => u.0.value(),
4241 }
4242 }
4243
4244 pub fn name(&self) -> std::option::Option<&str> {
4249 match self {
4250 Self::Unspecified => std::option::Option::Some("LOG_SEVERITY_UNSPECIFIED"),
4251 Self::None => std::option::Option::Some("NONE"),
4252 Self::Debug => std::option::Option::Some("DEBUG"),
4253 Self::Info => std::option::Option::Some("INFO"),
4254 Self::Notice => std::option::Option::Some("NOTICE"),
4255 Self::Warning => std::option::Option::Some("WARNING"),
4256 Self::Error => std::option::Option::Some("ERROR"),
4257 Self::Critical => std::option::Option::Some("CRITICAL"),
4258 Self::Alert => std::option::Option::Some("ALERT"),
4259 Self::Emergency => std::option::Option::Some("EMERGENCY"),
4260 Self::UnknownValue(u) => u.0.name(),
4261 }
4262 }
4263 }
4264
4265 impl std::default::Default for LogSeverity {
4266 fn default() -> Self {
4267 use std::convert::From;
4268 Self::from(0)
4269 }
4270 }
4271
4272 impl std::fmt::Display for LogSeverity {
4273 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
4274 wkt::internal::display_enum(f, self.name(), self.value())
4275 }
4276 }
4277
4278 impl std::convert::From<i32> for LogSeverity {
4279 fn from(value: i32) -> Self {
4280 match value {
4281 0 => Self::Unspecified,
4282 1 => Self::None,
4283 2 => Self::Debug,
4284 3 => Self::Info,
4285 4 => Self::Notice,
4286 5 => Self::Warning,
4287 6 => Self::Error,
4288 7 => Self::Critical,
4289 8 => Self::Alert,
4290 9 => Self::Emergency,
4291 _ => Self::UnknownValue(log_severity::UnknownValue(
4292 wkt::internal::UnknownEnumValue::Integer(value),
4293 )),
4294 }
4295 }
4296 }
4297
4298 impl std::convert::From<&str> for LogSeverity {
4299 fn from(value: &str) -> Self {
4300 use std::string::ToString;
4301 match value {
4302 "LOG_SEVERITY_UNSPECIFIED" => Self::Unspecified,
4303 "NONE" => Self::None,
4304 "DEBUG" => Self::Debug,
4305 "INFO" => Self::Info,
4306 "NOTICE" => Self::Notice,
4307 "WARNING" => Self::Warning,
4308 "ERROR" => Self::Error,
4309 "CRITICAL" => Self::Critical,
4310 "ALERT" => Self::Alert,
4311 "EMERGENCY" => Self::Emergency,
4312 _ => Self::UnknownValue(log_severity::UnknownValue(
4313 wkt::internal::UnknownEnumValue::String(value.to_string()),
4314 )),
4315 }
4316 }
4317 }
4318
4319 impl serde::ser::Serialize for LogSeverity {
4320 fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
4321 where
4322 S: serde::Serializer,
4323 {
4324 match self {
4325 Self::Unspecified => serializer.serialize_i32(0),
4326 Self::None => serializer.serialize_i32(1),
4327 Self::Debug => serializer.serialize_i32(2),
4328 Self::Info => serializer.serialize_i32(3),
4329 Self::Notice => serializer.serialize_i32(4),
4330 Self::Warning => serializer.serialize_i32(5),
4331 Self::Error => serializer.serialize_i32(6),
4332 Self::Critical => serializer.serialize_i32(7),
4333 Self::Alert => serializer.serialize_i32(8),
4334 Self::Emergency => serializer.serialize_i32(9),
4335 Self::UnknownValue(u) => u.0.serialize(serializer),
4336 }
4337 }
4338 }
4339
4340 impl<'de> serde::de::Deserialize<'de> for LogSeverity {
4341 fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
4342 where
4343 D: serde::Deserializer<'de>,
4344 {
4345 deserializer.deserialize_any(wkt::internal::EnumVisitor::<LogSeverity>::new(
4346 ".google.cloud.eventarc.v1.LoggingConfig.LogSeverity",
4347 ))
4348 }
4349 }
4350}
4351
4352#[derive(Clone, Default, PartialEq)]
4357#[non_exhaustive]
4358pub struct MessageBus {
4359 pub name: std::string::String,
4362
4363 pub uid: std::string::String,
4367
4368 pub etag: std::string::String,
4372
4373 pub create_time: std::option::Option<wkt::Timestamp>,
4375
4376 pub update_time: std::option::Option<wkt::Timestamp>,
4378
4379 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
4381
4382 pub annotations: std::collections::HashMap<std::string::String, std::string::String>,
4384
4385 pub display_name: std::string::String,
4387
4388 pub crypto_key_name: std::string::String,
4394
4395 pub logging_config: std::option::Option<crate::model::LoggingConfig>,
4399
4400 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4401}
4402
4403impl MessageBus {
4404 pub fn new() -> Self {
4405 std::default::Default::default()
4406 }
4407
4408 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4410 self.name = v.into();
4411 self
4412 }
4413
4414 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4416 self.uid = v.into();
4417 self
4418 }
4419
4420 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4422 self.etag = v.into();
4423 self
4424 }
4425
4426 pub fn set_create_time<T>(mut self, v: T) -> Self
4428 where
4429 T: std::convert::Into<wkt::Timestamp>,
4430 {
4431 self.create_time = std::option::Option::Some(v.into());
4432 self
4433 }
4434
4435 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
4437 where
4438 T: std::convert::Into<wkt::Timestamp>,
4439 {
4440 self.create_time = v.map(|x| x.into());
4441 self
4442 }
4443
4444 pub fn set_update_time<T>(mut self, v: T) -> Self
4446 where
4447 T: std::convert::Into<wkt::Timestamp>,
4448 {
4449 self.update_time = std::option::Option::Some(v.into());
4450 self
4451 }
4452
4453 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
4455 where
4456 T: std::convert::Into<wkt::Timestamp>,
4457 {
4458 self.update_time = v.map(|x| x.into());
4459 self
4460 }
4461
4462 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
4464 where
4465 T: std::iter::IntoIterator<Item = (K, V)>,
4466 K: std::convert::Into<std::string::String>,
4467 V: std::convert::Into<std::string::String>,
4468 {
4469 use std::iter::Iterator;
4470 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
4471 self
4472 }
4473
4474 pub fn set_annotations<T, K, V>(mut self, v: T) -> Self
4476 where
4477 T: std::iter::IntoIterator<Item = (K, V)>,
4478 K: std::convert::Into<std::string::String>,
4479 V: std::convert::Into<std::string::String>,
4480 {
4481 use std::iter::Iterator;
4482 self.annotations = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
4483 self
4484 }
4485
4486 pub fn set_display_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4488 self.display_name = v.into();
4489 self
4490 }
4491
4492 pub fn set_crypto_key_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4494 self.crypto_key_name = v.into();
4495 self
4496 }
4497
4498 pub fn set_logging_config<T>(mut self, v: T) -> Self
4500 where
4501 T: std::convert::Into<crate::model::LoggingConfig>,
4502 {
4503 self.logging_config = std::option::Option::Some(v.into());
4504 self
4505 }
4506
4507 pub fn set_or_clear_logging_config<T>(mut self, v: std::option::Option<T>) -> Self
4509 where
4510 T: std::convert::Into<crate::model::LoggingConfig>,
4511 {
4512 self.logging_config = v.map(|x| x.into());
4513 self
4514 }
4515}
4516
4517impl wkt::message::Message for MessageBus {
4518 fn typename() -> &'static str {
4519 "type.googleapis.com/google.cloud.eventarc.v1.MessageBus"
4520 }
4521}
4522
4523#[derive(Clone, Default, PartialEq)]
4525#[non_exhaustive]
4526pub struct NetworkConfig {
4527 pub network_attachment: std::string::String,
4531
4532 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4533}
4534
4535impl NetworkConfig {
4536 pub fn new() -> Self {
4537 std::default::Default::default()
4538 }
4539
4540 pub fn set_network_attachment<T: std::convert::Into<std::string::String>>(
4542 mut self,
4543 v: T,
4544 ) -> Self {
4545 self.network_attachment = v.into();
4546 self
4547 }
4548}
4549
4550impl wkt::message::Message for NetworkConfig {
4551 fn typename() -> &'static str {
4552 "type.googleapis.com/google.cloud.eventarc.v1.NetworkConfig"
4553 }
4554}
4555
4556#[derive(Clone, Default, PartialEq)]
4558#[non_exhaustive]
4559pub struct Pipeline {
4560 pub name: std::string::String,
4564
4565 pub create_time: std::option::Option<wkt::Timestamp>,
4570
4571 pub update_time: std::option::Option<wkt::Timestamp>,
4576
4577 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
4581
4582 pub uid: std::string::String,
4586
4587 pub annotations: std::collections::HashMap<std::string::String, std::string::String>,
4590
4591 pub display_name: std::string::String,
4593
4594 pub destinations: std::vec::Vec<crate::model::pipeline::Destination>,
4597
4598 pub mediations: std::vec::Vec<crate::model::pipeline::Mediation>,
4601
4602 pub crypto_key_name: std::string::String,
4607
4608 pub input_payload_format: std::option::Option<crate::model::pipeline::MessagePayloadFormat>,
4617
4618 pub logging_config: std::option::Option<crate::model::LoggingConfig>,
4620
4621 pub retry_policy: std::option::Option<crate::model::pipeline::RetryPolicy>,
4623
4624 pub etag: std::string::String,
4628
4629 pub satisfies_pzs: bool,
4632
4633 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4634}
4635
4636impl Pipeline {
4637 pub fn new() -> Self {
4638 std::default::Default::default()
4639 }
4640
4641 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4643 self.name = v.into();
4644 self
4645 }
4646
4647 pub fn set_create_time<T>(mut self, v: T) -> Self
4649 where
4650 T: std::convert::Into<wkt::Timestamp>,
4651 {
4652 self.create_time = std::option::Option::Some(v.into());
4653 self
4654 }
4655
4656 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
4658 where
4659 T: std::convert::Into<wkt::Timestamp>,
4660 {
4661 self.create_time = v.map(|x| x.into());
4662 self
4663 }
4664
4665 pub fn set_update_time<T>(mut self, v: T) -> Self
4667 where
4668 T: std::convert::Into<wkt::Timestamp>,
4669 {
4670 self.update_time = std::option::Option::Some(v.into());
4671 self
4672 }
4673
4674 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
4676 where
4677 T: std::convert::Into<wkt::Timestamp>,
4678 {
4679 self.update_time = v.map(|x| x.into());
4680 self
4681 }
4682
4683 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
4685 where
4686 T: std::iter::IntoIterator<Item = (K, V)>,
4687 K: std::convert::Into<std::string::String>,
4688 V: std::convert::Into<std::string::String>,
4689 {
4690 use std::iter::Iterator;
4691 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
4692 self
4693 }
4694
4695 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4697 self.uid = v.into();
4698 self
4699 }
4700
4701 pub fn set_annotations<T, K, V>(mut self, v: T) -> Self
4703 where
4704 T: std::iter::IntoIterator<Item = (K, V)>,
4705 K: std::convert::Into<std::string::String>,
4706 V: std::convert::Into<std::string::String>,
4707 {
4708 use std::iter::Iterator;
4709 self.annotations = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
4710 self
4711 }
4712
4713 pub fn set_display_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4715 self.display_name = v.into();
4716 self
4717 }
4718
4719 pub fn set_destinations<T, V>(mut self, v: T) -> Self
4721 where
4722 T: std::iter::IntoIterator<Item = V>,
4723 V: std::convert::Into<crate::model::pipeline::Destination>,
4724 {
4725 use std::iter::Iterator;
4726 self.destinations = v.into_iter().map(|i| i.into()).collect();
4727 self
4728 }
4729
4730 pub fn set_mediations<T, V>(mut self, v: T) -> Self
4732 where
4733 T: std::iter::IntoIterator<Item = V>,
4734 V: std::convert::Into<crate::model::pipeline::Mediation>,
4735 {
4736 use std::iter::Iterator;
4737 self.mediations = v.into_iter().map(|i| i.into()).collect();
4738 self
4739 }
4740
4741 pub fn set_crypto_key_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4743 self.crypto_key_name = v.into();
4744 self
4745 }
4746
4747 pub fn set_input_payload_format<T>(mut self, v: T) -> Self
4749 where
4750 T: std::convert::Into<crate::model::pipeline::MessagePayloadFormat>,
4751 {
4752 self.input_payload_format = std::option::Option::Some(v.into());
4753 self
4754 }
4755
4756 pub fn set_or_clear_input_payload_format<T>(mut self, v: std::option::Option<T>) -> Self
4758 where
4759 T: std::convert::Into<crate::model::pipeline::MessagePayloadFormat>,
4760 {
4761 self.input_payload_format = v.map(|x| x.into());
4762 self
4763 }
4764
4765 pub fn set_logging_config<T>(mut self, v: T) -> Self
4767 where
4768 T: std::convert::Into<crate::model::LoggingConfig>,
4769 {
4770 self.logging_config = std::option::Option::Some(v.into());
4771 self
4772 }
4773
4774 pub fn set_or_clear_logging_config<T>(mut self, v: std::option::Option<T>) -> Self
4776 where
4777 T: std::convert::Into<crate::model::LoggingConfig>,
4778 {
4779 self.logging_config = v.map(|x| x.into());
4780 self
4781 }
4782
4783 pub fn set_retry_policy<T>(mut self, v: T) -> Self
4785 where
4786 T: std::convert::Into<crate::model::pipeline::RetryPolicy>,
4787 {
4788 self.retry_policy = std::option::Option::Some(v.into());
4789 self
4790 }
4791
4792 pub fn set_or_clear_retry_policy<T>(mut self, v: std::option::Option<T>) -> Self
4794 where
4795 T: std::convert::Into<crate::model::pipeline::RetryPolicy>,
4796 {
4797 self.retry_policy = v.map(|x| x.into());
4798 self
4799 }
4800
4801 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
4803 self.etag = v.into();
4804 self
4805 }
4806
4807 pub fn set_satisfies_pzs<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
4809 self.satisfies_pzs = v.into();
4810 self
4811 }
4812}
4813
4814impl wkt::message::Message for Pipeline {
4815 fn typename() -> &'static str {
4816 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline"
4817 }
4818}
4819
4820pub mod pipeline {
4822 #[allow(unused_imports)]
4823 use super::*;
4824
4825 #[derive(Clone, Default, PartialEq)]
4827 #[non_exhaustive]
4828 pub struct MessagePayloadFormat {
4829 pub kind: std::option::Option<crate::model::pipeline::message_payload_format::Kind>,
4834
4835 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4836 }
4837
4838 impl MessagePayloadFormat {
4839 pub fn new() -> Self {
4840 std::default::Default::default()
4841 }
4842
4843 pub fn set_kind<
4848 T: std::convert::Into<
4849 std::option::Option<crate::model::pipeline::message_payload_format::Kind>,
4850 >,
4851 >(
4852 mut self,
4853 v: T,
4854 ) -> Self {
4855 self.kind = v.into();
4856 self
4857 }
4858
4859 pub fn protobuf(
4863 &self,
4864 ) -> std::option::Option<
4865 &std::boxed::Box<crate::model::pipeline::message_payload_format::ProtobufFormat>,
4866 > {
4867 #[allow(unreachable_patterns)]
4868 self.kind.as_ref().and_then(|v| match v {
4869 crate::model::pipeline::message_payload_format::Kind::Protobuf(v) => {
4870 std::option::Option::Some(v)
4871 }
4872 _ => std::option::Option::None,
4873 })
4874 }
4875
4876 pub fn set_protobuf<
4882 T: std::convert::Into<
4883 std::boxed::Box<crate::model::pipeline::message_payload_format::ProtobufFormat>,
4884 >,
4885 >(
4886 mut self,
4887 v: T,
4888 ) -> Self {
4889 self.kind = std::option::Option::Some(
4890 crate::model::pipeline::message_payload_format::Kind::Protobuf(v.into()),
4891 );
4892 self
4893 }
4894
4895 pub fn avro(
4899 &self,
4900 ) -> std::option::Option<
4901 &std::boxed::Box<crate::model::pipeline::message_payload_format::AvroFormat>,
4902 > {
4903 #[allow(unreachable_patterns)]
4904 self.kind.as_ref().and_then(|v| match v {
4905 crate::model::pipeline::message_payload_format::Kind::Avro(v) => {
4906 std::option::Option::Some(v)
4907 }
4908 _ => std::option::Option::None,
4909 })
4910 }
4911
4912 pub fn set_avro<
4918 T: std::convert::Into<
4919 std::boxed::Box<crate::model::pipeline::message_payload_format::AvroFormat>,
4920 >,
4921 >(
4922 mut self,
4923 v: T,
4924 ) -> Self {
4925 self.kind = std::option::Option::Some(
4926 crate::model::pipeline::message_payload_format::Kind::Avro(v.into()),
4927 );
4928 self
4929 }
4930
4931 pub fn json(
4935 &self,
4936 ) -> std::option::Option<
4937 &std::boxed::Box<crate::model::pipeline::message_payload_format::JsonFormat>,
4938 > {
4939 #[allow(unreachable_patterns)]
4940 self.kind.as_ref().and_then(|v| match v {
4941 crate::model::pipeline::message_payload_format::Kind::Json(v) => {
4942 std::option::Option::Some(v)
4943 }
4944 _ => std::option::Option::None,
4945 })
4946 }
4947
4948 pub fn set_json<
4954 T: std::convert::Into<
4955 std::boxed::Box<crate::model::pipeline::message_payload_format::JsonFormat>,
4956 >,
4957 >(
4958 mut self,
4959 v: T,
4960 ) -> Self {
4961 self.kind = std::option::Option::Some(
4962 crate::model::pipeline::message_payload_format::Kind::Json(v.into()),
4963 );
4964 self
4965 }
4966 }
4967
4968 impl wkt::message::Message for MessagePayloadFormat {
4969 fn typename() -> &'static str {
4970 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat"
4971 }
4972 }
4973
4974 pub mod message_payload_format {
4976 #[allow(unused_imports)]
4977 use super::*;
4978
4979 #[derive(Clone, Default, PartialEq)]
4981 #[non_exhaustive]
4982 pub struct JsonFormat {
4983 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
4984 }
4985
4986 impl JsonFormat {
4987 pub fn new() -> Self {
4988 std::default::Default::default()
4989 }
4990 }
4991
4992 impl wkt::message::Message for JsonFormat {
4993 fn typename() -> &'static str {
4994 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat"
4995 }
4996 }
4997
4998 #[derive(Clone, Default, PartialEq)]
5000 #[non_exhaustive]
5001 pub struct ProtobufFormat {
5002 pub schema_definition: std::string::String,
5004
5005 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5006 }
5007
5008 impl ProtobufFormat {
5009 pub fn new() -> Self {
5010 std::default::Default::default()
5011 }
5012
5013 pub fn set_schema_definition<T: std::convert::Into<std::string::String>>(
5015 mut self,
5016 v: T,
5017 ) -> Self {
5018 self.schema_definition = v.into();
5019 self
5020 }
5021 }
5022
5023 impl wkt::message::Message for ProtobufFormat {
5024 fn typename() -> &'static str {
5025 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat"
5026 }
5027 }
5028
5029 #[derive(Clone, Default, PartialEq)]
5031 #[non_exhaustive]
5032 pub struct AvroFormat {
5033 pub schema_definition: std::string::String,
5035
5036 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5037 }
5038
5039 impl AvroFormat {
5040 pub fn new() -> Self {
5041 std::default::Default::default()
5042 }
5043
5044 pub fn set_schema_definition<T: std::convert::Into<std::string::String>>(
5046 mut self,
5047 v: T,
5048 ) -> Self {
5049 self.schema_definition = v.into();
5050 self
5051 }
5052 }
5053
5054 impl wkt::message::Message for AvroFormat {
5055 fn typename() -> &'static str {
5056 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat"
5057 }
5058 }
5059
5060 #[derive(Clone, Debug, PartialEq)]
5065 #[non_exhaustive]
5066 pub enum Kind {
5067 Protobuf(
5069 std::boxed::Box<crate::model::pipeline::message_payload_format::ProtobufFormat>,
5070 ),
5071 Avro(std::boxed::Box<crate::model::pipeline::message_payload_format::AvroFormat>),
5073 Json(std::boxed::Box<crate::model::pipeline::message_payload_format::JsonFormat>),
5075 }
5076 }
5077
5078 #[derive(Clone, Default, PartialEq)]
5080 #[non_exhaustive]
5081 pub struct Destination {
5082 pub network_config: std::option::Option<crate::model::pipeline::destination::NetworkConfig>,
5085
5086 pub authentication_config:
5092 std::option::Option<crate::model::pipeline::destination::AuthenticationConfig>,
5093
5094 pub output_payload_format:
5099 std::option::Option<crate::model::pipeline::MessagePayloadFormat>,
5100
5101 pub destination_descriptor:
5103 std::option::Option<crate::model::pipeline::destination::DestinationDescriptor>,
5104
5105 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5106 }
5107
5108 impl Destination {
5109 pub fn new() -> Self {
5110 std::default::Default::default()
5111 }
5112
5113 pub fn set_network_config<T>(mut self, v: T) -> Self
5115 where
5116 T: std::convert::Into<crate::model::pipeline::destination::NetworkConfig>,
5117 {
5118 self.network_config = std::option::Option::Some(v.into());
5119 self
5120 }
5121
5122 pub fn set_or_clear_network_config<T>(mut self, v: std::option::Option<T>) -> Self
5124 where
5125 T: std::convert::Into<crate::model::pipeline::destination::NetworkConfig>,
5126 {
5127 self.network_config = v.map(|x| x.into());
5128 self
5129 }
5130
5131 pub fn set_authentication_config<T>(mut self, v: T) -> Self
5133 where
5134 T: std::convert::Into<crate::model::pipeline::destination::AuthenticationConfig>,
5135 {
5136 self.authentication_config = std::option::Option::Some(v.into());
5137 self
5138 }
5139
5140 pub fn set_or_clear_authentication_config<T>(mut self, v: std::option::Option<T>) -> Self
5142 where
5143 T: std::convert::Into<crate::model::pipeline::destination::AuthenticationConfig>,
5144 {
5145 self.authentication_config = v.map(|x| x.into());
5146 self
5147 }
5148
5149 pub fn set_output_payload_format<T>(mut self, v: T) -> Self
5151 where
5152 T: std::convert::Into<crate::model::pipeline::MessagePayloadFormat>,
5153 {
5154 self.output_payload_format = std::option::Option::Some(v.into());
5155 self
5156 }
5157
5158 pub fn set_or_clear_output_payload_format<T>(mut self, v: std::option::Option<T>) -> Self
5160 where
5161 T: std::convert::Into<crate::model::pipeline::MessagePayloadFormat>,
5162 {
5163 self.output_payload_format = v.map(|x| x.into());
5164 self
5165 }
5166
5167 pub fn set_destination_descriptor<
5172 T: std::convert::Into<
5173 std::option::Option<crate::model::pipeline::destination::DestinationDescriptor>,
5174 >,
5175 >(
5176 mut self,
5177 v: T,
5178 ) -> Self {
5179 self.destination_descriptor = v.into();
5180 self
5181 }
5182
5183 pub fn http_endpoint(
5187 &self,
5188 ) -> std::option::Option<&std::boxed::Box<crate::model::pipeline::destination::HttpEndpoint>>
5189 {
5190 #[allow(unreachable_patterns)]
5191 self.destination_descriptor.as_ref().and_then(|v| match v {
5192 crate::model::pipeline::destination::DestinationDescriptor::HttpEndpoint(v) => {
5193 std::option::Option::Some(v)
5194 }
5195 _ => std::option::Option::None,
5196 })
5197 }
5198
5199 pub fn set_http_endpoint<
5205 T: std::convert::Into<std::boxed::Box<crate::model::pipeline::destination::HttpEndpoint>>,
5206 >(
5207 mut self,
5208 v: T,
5209 ) -> Self {
5210 self.destination_descriptor = std::option::Option::Some(
5211 crate::model::pipeline::destination::DestinationDescriptor::HttpEndpoint(v.into()),
5212 );
5213 self
5214 }
5215
5216 pub fn workflow(&self) -> std::option::Option<&std::string::String> {
5220 #[allow(unreachable_patterns)]
5221 self.destination_descriptor.as_ref().and_then(|v| match v {
5222 crate::model::pipeline::destination::DestinationDescriptor::Workflow(v) => {
5223 std::option::Option::Some(v)
5224 }
5225 _ => std::option::Option::None,
5226 })
5227 }
5228
5229 pub fn set_workflow<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
5235 self.destination_descriptor = std::option::Option::Some(
5236 crate::model::pipeline::destination::DestinationDescriptor::Workflow(v.into()),
5237 );
5238 self
5239 }
5240
5241 pub fn message_bus(&self) -> std::option::Option<&std::string::String> {
5245 #[allow(unreachable_patterns)]
5246 self.destination_descriptor.as_ref().and_then(|v| match v {
5247 crate::model::pipeline::destination::DestinationDescriptor::MessageBus(v) => {
5248 std::option::Option::Some(v)
5249 }
5250 _ => std::option::Option::None,
5251 })
5252 }
5253
5254 pub fn set_message_bus<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
5260 self.destination_descriptor = std::option::Option::Some(
5261 crate::model::pipeline::destination::DestinationDescriptor::MessageBus(v.into()),
5262 );
5263 self
5264 }
5265
5266 pub fn topic(&self) -> std::option::Option<&std::string::String> {
5270 #[allow(unreachable_patterns)]
5271 self.destination_descriptor.as_ref().and_then(|v| match v {
5272 crate::model::pipeline::destination::DestinationDescriptor::Topic(v) => {
5273 std::option::Option::Some(v)
5274 }
5275 _ => std::option::Option::None,
5276 })
5277 }
5278
5279 pub fn set_topic<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
5285 self.destination_descriptor = std::option::Option::Some(
5286 crate::model::pipeline::destination::DestinationDescriptor::Topic(v.into()),
5287 );
5288 self
5289 }
5290 }
5291
5292 impl wkt::message::Message for Destination {
5293 fn typename() -> &'static str {
5294 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination"
5295 }
5296 }
5297
5298 pub mod destination {
5300 #[allow(unused_imports)]
5301 use super::*;
5302
5303 #[derive(Clone, Default, PartialEq)]
5306 #[non_exhaustive]
5307 pub struct NetworkConfig {
5308 pub network_attachment: std::string::String,
5312
5313 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5314 }
5315
5316 impl NetworkConfig {
5317 pub fn new() -> Self {
5318 std::default::Default::default()
5319 }
5320
5321 pub fn set_network_attachment<T: std::convert::Into<std::string::String>>(
5323 mut self,
5324 v: T,
5325 ) -> Self {
5326 self.network_attachment = v.into();
5327 self
5328 }
5329 }
5330
5331 impl wkt::message::Message for NetworkConfig {
5332 fn typename() -> &'static str {
5333 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig"
5334 }
5335 }
5336
5337 #[derive(Clone, Default, PartialEq)]
5339 #[non_exhaustive]
5340 pub struct HttpEndpoint {
5341 pub uri: std::string::String,
5347
5348 pub message_binding_template: std::string::String,
5520
5521 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5522 }
5523
5524 impl HttpEndpoint {
5525 pub fn new() -> Self {
5526 std::default::Default::default()
5527 }
5528
5529 pub fn set_uri<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
5531 self.uri = v.into();
5532 self
5533 }
5534
5535 pub fn set_message_binding_template<T: std::convert::Into<std::string::String>>(
5537 mut self,
5538 v: T,
5539 ) -> Self {
5540 self.message_binding_template = v.into();
5541 self
5542 }
5543 }
5544
5545 impl wkt::message::Message for HttpEndpoint {
5546 fn typename() -> &'static str {
5547 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination.HttpEndpoint"
5548 }
5549 }
5550
5551 #[derive(Clone, Default, PartialEq)]
5553 #[non_exhaustive]
5554 pub struct AuthenticationConfig {
5555
5556 pub authentication_method_descriptor: std::option::Option<crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor>,
5558
5559 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5560 }
5561
5562 impl AuthenticationConfig {
5563 pub fn new() -> Self {
5564 std::default::Default::default()
5565 }
5566
5567 pub fn set_authentication_method_descriptor<T: std::convert::Into<std::option::Option<crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor>>>(mut self, v: T) -> Self
5572 {
5573 self.authentication_method_descriptor = v.into();
5574 self
5575 }
5576
5577 pub fn google_oidc(
5581 &self,
5582 ) -> std::option::Option<
5583 &std::boxed::Box<
5584 crate::model::pipeline::destination::authentication_config::OidcToken,
5585 >,
5586 > {
5587 #[allow(unreachable_patterns)]
5588 self.authentication_method_descriptor.as_ref().and_then(|v| match v {
5589 crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor::GoogleOidc(v) => std::option::Option::Some(v),
5590 _ => std::option::Option::None,
5591 })
5592 }
5593
5594 pub fn set_google_oidc<
5600 T: std::convert::Into<
5601 std::boxed::Box<
5602 crate::model::pipeline::destination::authentication_config::OidcToken,
5603 >,
5604 >,
5605 >(
5606 mut self,
5607 v: T,
5608 ) -> Self {
5609 self.authentication_method_descriptor = std::option::Option::Some(
5610 crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor::GoogleOidc(
5611 v.into()
5612 )
5613 );
5614 self
5615 }
5616
5617 pub fn oauth_token(
5621 &self,
5622 ) -> std::option::Option<
5623 &std::boxed::Box<
5624 crate::model::pipeline::destination::authentication_config::OAuthToken,
5625 >,
5626 > {
5627 #[allow(unreachable_patterns)]
5628 self.authentication_method_descriptor.as_ref().and_then(|v| match v {
5629 crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor::OauthToken(v) => std::option::Option::Some(v),
5630 _ => std::option::Option::None,
5631 })
5632 }
5633
5634 pub fn set_oauth_token<
5640 T: std::convert::Into<
5641 std::boxed::Box<
5642 crate::model::pipeline::destination::authentication_config::OAuthToken,
5643 >,
5644 >,
5645 >(
5646 mut self,
5647 v: T,
5648 ) -> Self {
5649 self.authentication_method_descriptor = std::option::Option::Some(
5650 crate::model::pipeline::destination::authentication_config::AuthenticationMethodDescriptor::OauthToken(
5651 v.into()
5652 )
5653 );
5654 self
5655 }
5656 }
5657
5658 impl wkt::message::Message for AuthenticationConfig {
5659 fn typename() -> &'static str {
5660 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig"
5661 }
5662 }
5663
5664 pub mod authentication_config {
5666 #[allow(unused_imports)]
5667 use super::*;
5668
5669 #[derive(Clone, Default, PartialEq)]
5674 #[non_exhaustive]
5675 pub struct OidcToken {
5676 pub service_account: std::string::String,
5684
5685 pub audience: std::string::String,
5689
5690 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5691 }
5692
5693 impl OidcToken {
5694 pub fn new() -> Self {
5695 std::default::Default::default()
5696 }
5697
5698 pub fn set_service_account<T: std::convert::Into<std::string::String>>(
5700 mut self,
5701 v: T,
5702 ) -> Self {
5703 self.service_account = v.into();
5704 self
5705 }
5706
5707 pub fn set_audience<T: std::convert::Into<std::string::String>>(
5709 mut self,
5710 v: T,
5711 ) -> Self {
5712 self.audience = v.into();
5713 self
5714 }
5715 }
5716
5717 impl wkt::message::Message for OidcToken {
5718 fn typename() -> &'static str {
5719 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OidcToken"
5720 }
5721 }
5722
5723 #[derive(Clone, Default, PartialEq)]
5728 #[non_exhaustive]
5729 pub struct OAuthToken {
5730 pub service_account: std::string::String,
5739
5740 pub scope: std::string::String,
5744
5745 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5746 }
5747
5748 impl OAuthToken {
5749 pub fn new() -> Self {
5750 std::default::Default::default()
5751 }
5752
5753 pub fn set_service_account<T: std::convert::Into<std::string::String>>(
5755 mut self,
5756 v: T,
5757 ) -> Self {
5758 self.service_account = v.into();
5759 self
5760 }
5761
5762 pub fn set_scope<T: std::convert::Into<std::string::String>>(
5764 mut self,
5765 v: T,
5766 ) -> Self {
5767 self.scope = v.into();
5768 self
5769 }
5770 }
5771
5772 impl wkt::message::Message for OAuthToken {
5773 fn typename() -> &'static str {
5774 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken"
5775 }
5776 }
5777
5778 #[derive(Clone, Debug, PartialEq)]
5780 #[non_exhaustive]
5781 pub enum AuthenticationMethodDescriptor {
5782 GoogleOidc(
5785 std::boxed::Box<
5786 crate::model::pipeline::destination::authentication_config::OidcToken,
5787 >,
5788 ),
5789 OauthToken(
5797 std::boxed::Box<
5798 crate::model::pipeline::destination::authentication_config::OAuthToken,
5799 >,
5800 ),
5801 }
5802 }
5803
5804 #[derive(Clone, Debug, PartialEq)]
5806 #[non_exhaustive]
5807 pub enum DestinationDescriptor {
5808 HttpEndpoint(std::boxed::Box<crate::model::pipeline::destination::HttpEndpoint>),
5814 Workflow(std::string::String),
5819 MessageBus(std::string::String),
5824 Topic(std::string::String),
5828 }
5829 }
5830
5831 #[derive(Clone, Default, PartialEq)]
5833 #[non_exhaustive]
5834 pub struct Mediation {
5835 pub mediation_descriptor:
5837 std::option::Option<crate::model::pipeline::mediation::MediationDescriptor>,
5838
5839 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5840 }
5841
5842 impl Mediation {
5843 pub fn new() -> Self {
5844 std::default::Default::default()
5845 }
5846
5847 pub fn set_mediation_descriptor<
5852 T: std::convert::Into<
5853 std::option::Option<crate::model::pipeline::mediation::MediationDescriptor>,
5854 >,
5855 >(
5856 mut self,
5857 v: T,
5858 ) -> Self {
5859 self.mediation_descriptor = v.into();
5860 self
5861 }
5862
5863 pub fn transformation(
5867 &self,
5868 ) -> std::option::Option<&std::boxed::Box<crate::model::pipeline::mediation::Transformation>>
5869 {
5870 #[allow(unreachable_patterns)]
5871 self.mediation_descriptor.as_ref().and_then(|v| match v {
5872 crate::model::pipeline::mediation::MediationDescriptor::Transformation(v) => {
5873 std::option::Option::Some(v)
5874 }
5875 _ => std::option::Option::None,
5876 })
5877 }
5878
5879 pub fn set_transformation<
5885 T: std::convert::Into<std::boxed::Box<crate::model::pipeline::mediation::Transformation>>,
5886 >(
5887 mut self,
5888 v: T,
5889 ) -> Self {
5890 self.mediation_descriptor = std::option::Option::Some(
5891 crate::model::pipeline::mediation::MediationDescriptor::Transformation(v.into()),
5892 );
5893 self
5894 }
5895 }
5896
5897 impl wkt::message::Message for Mediation {
5898 fn typename() -> &'static str {
5899 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Mediation"
5900 }
5901 }
5902
5903 pub mod mediation {
5905 #[allow(unused_imports)]
5906 use super::*;
5907
5908 #[derive(Clone, Default, PartialEq)]
5910 #[non_exhaustive]
5911 pub struct Transformation {
5912 pub transformation_template: std::string::String,
5990
5991 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
5992 }
5993
5994 impl Transformation {
5995 pub fn new() -> Self {
5996 std::default::Default::default()
5997 }
5998
5999 pub fn set_transformation_template<T: std::convert::Into<std::string::String>>(
6001 mut self,
6002 v: T,
6003 ) -> Self {
6004 self.transformation_template = v.into();
6005 self
6006 }
6007 }
6008
6009 impl wkt::message::Message for Transformation {
6010 fn typename() -> &'static str {
6011 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.Mediation.Transformation"
6012 }
6013 }
6014
6015 #[derive(Clone, Debug, PartialEq)]
6017 #[non_exhaustive]
6018 pub enum MediationDescriptor {
6019 Transformation(std::boxed::Box<crate::model::pipeline::mediation::Transformation>),
6021 }
6022 }
6023
6024 #[derive(Clone, Default, PartialEq)]
6033 #[non_exhaustive]
6034 pub struct RetryPolicy {
6035 pub max_attempts: i32,
6038
6039 pub min_retry_delay: std::option::Option<wkt::Duration>,
6043
6044 pub max_retry_delay: std::option::Option<wkt::Duration>,
6048
6049 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6050 }
6051
6052 impl RetryPolicy {
6053 pub fn new() -> Self {
6054 std::default::Default::default()
6055 }
6056
6057 pub fn set_max_attempts<T: std::convert::Into<i32>>(mut self, v: T) -> Self {
6059 self.max_attempts = v.into();
6060 self
6061 }
6062
6063 pub fn set_min_retry_delay<T>(mut self, v: T) -> Self
6065 where
6066 T: std::convert::Into<wkt::Duration>,
6067 {
6068 self.min_retry_delay = std::option::Option::Some(v.into());
6069 self
6070 }
6071
6072 pub fn set_or_clear_min_retry_delay<T>(mut self, v: std::option::Option<T>) -> Self
6074 where
6075 T: std::convert::Into<wkt::Duration>,
6076 {
6077 self.min_retry_delay = v.map(|x| x.into());
6078 self
6079 }
6080
6081 pub fn set_max_retry_delay<T>(mut self, v: T) -> Self
6083 where
6084 T: std::convert::Into<wkt::Duration>,
6085 {
6086 self.max_retry_delay = std::option::Option::Some(v.into());
6087 self
6088 }
6089
6090 pub fn set_or_clear_max_retry_delay<T>(mut self, v: std::option::Option<T>) -> Self
6092 where
6093 T: std::convert::Into<wkt::Duration>,
6094 {
6095 self.max_retry_delay = v.map(|x| x.into());
6096 self
6097 }
6098 }
6099
6100 impl wkt::message::Message for RetryPolicy {
6101 fn typename() -> &'static str {
6102 "type.googleapis.com/google.cloud.eventarc.v1.Pipeline.RetryPolicy"
6103 }
6104 }
6105}
6106
6107#[derive(Clone, Default, PartialEq)]
6109#[non_exhaustive]
6110pub struct Trigger {
6111 pub name: std::string::String,
6115
6116 pub uid: std::string::String,
6120
6121 pub create_time: std::option::Option<wkt::Timestamp>,
6123
6124 pub update_time: std::option::Option<wkt::Timestamp>,
6126
6127 pub event_filters: std::vec::Vec<crate::model::EventFilter>,
6131
6132 pub service_account: std::string::String,
6141
6142 pub destination: std::option::Option<crate::model::Destination>,
6144
6145 pub transport: std::option::Option<crate::model::Transport>,
6150
6151 pub labels: std::collections::HashMap<std::string::String, std::string::String>,
6154
6155 pub channel: std::string::String,
6159
6160 pub conditions: std::collections::HashMap<std::string::String, crate::model::StateCondition>,
6162
6163 pub event_data_content_type: std::string::String,
6167
6168 pub satisfies_pzs: bool,
6171
6172 pub etag: std::string::String,
6176
6177 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6178}
6179
6180impl Trigger {
6181 pub fn new() -> Self {
6182 std::default::Default::default()
6183 }
6184
6185 pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6187 self.name = v.into();
6188 self
6189 }
6190
6191 pub fn set_uid<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6193 self.uid = v.into();
6194 self
6195 }
6196
6197 pub fn set_create_time<T>(mut self, v: T) -> Self
6199 where
6200 T: std::convert::Into<wkt::Timestamp>,
6201 {
6202 self.create_time = std::option::Option::Some(v.into());
6203 self
6204 }
6205
6206 pub fn set_or_clear_create_time<T>(mut self, v: std::option::Option<T>) -> Self
6208 where
6209 T: std::convert::Into<wkt::Timestamp>,
6210 {
6211 self.create_time = v.map(|x| x.into());
6212 self
6213 }
6214
6215 pub fn set_update_time<T>(mut self, v: T) -> Self
6217 where
6218 T: std::convert::Into<wkt::Timestamp>,
6219 {
6220 self.update_time = std::option::Option::Some(v.into());
6221 self
6222 }
6223
6224 pub fn set_or_clear_update_time<T>(mut self, v: std::option::Option<T>) -> Self
6226 where
6227 T: std::convert::Into<wkt::Timestamp>,
6228 {
6229 self.update_time = v.map(|x| x.into());
6230 self
6231 }
6232
6233 pub fn set_event_filters<T, V>(mut self, v: T) -> Self
6235 where
6236 T: std::iter::IntoIterator<Item = V>,
6237 V: std::convert::Into<crate::model::EventFilter>,
6238 {
6239 use std::iter::Iterator;
6240 self.event_filters = v.into_iter().map(|i| i.into()).collect();
6241 self
6242 }
6243
6244 pub fn set_service_account<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6246 self.service_account = v.into();
6247 self
6248 }
6249
6250 pub fn set_destination<T>(mut self, v: T) -> Self
6252 where
6253 T: std::convert::Into<crate::model::Destination>,
6254 {
6255 self.destination = std::option::Option::Some(v.into());
6256 self
6257 }
6258
6259 pub fn set_or_clear_destination<T>(mut self, v: std::option::Option<T>) -> Self
6261 where
6262 T: std::convert::Into<crate::model::Destination>,
6263 {
6264 self.destination = v.map(|x| x.into());
6265 self
6266 }
6267
6268 pub fn set_transport<T>(mut self, v: T) -> Self
6270 where
6271 T: std::convert::Into<crate::model::Transport>,
6272 {
6273 self.transport = std::option::Option::Some(v.into());
6274 self
6275 }
6276
6277 pub fn set_or_clear_transport<T>(mut self, v: std::option::Option<T>) -> Self
6279 where
6280 T: std::convert::Into<crate::model::Transport>,
6281 {
6282 self.transport = v.map(|x| x.into());
6283 self
6284 }
6285
6286 pub fn set_labels<T, K, V>(mut self, v: T) -> Self
6288 where
6289 T: std::iter::IntoIterator<Item = (K, V)>,
6290 K: std::convert::Into<std::string::String>,
6291 V: std::convert::Into<std::string::String>,
6292 {
6293 use std::iter::Iterator;
6294 self.labels = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
6295 self
6296 }
6297
6298 pub fn set_channel<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6300 self.channel = v.into();
6301 self
6302 }
6303
6304 pub fn set_conditions<T, K, V>(mut self, v: T) -> Self
6306 where
6307 T: std::iter::IntoIterator<Item = (K, V)>,
6308 K: std::convert::Into<std::string::String>,
6309 V: std::convert::Into<crate::model::StateCondition>,
6310 {
6311 use std::iter::Iterator;
6312 self.conditions = v.into_iter().map(|(k, v)| (k.into(), v.into())).collect();
6313 self
6314 }
6315
6316 pub fn set_event_data_content_type<T: std::convert::Into<std::string::String>>(
6318 mut self,
6319 v: T,
6320 ) -> Self {
6321 self.event_data_content_type = v.into();
6322 self
6323 }
6324
6325 pub fn set_satisfies_pzs<T: std::convert::Into<bool>>(mut self, v: T) -> Self {
6327 self.satisfies_pzs = v.into();
6328 self
6329 }
6330
6331 pub fn set_etag<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6333 self.etag = v.into();
6334 self
6335 }
6336}
6337
6338impl wkt::message::Message for Trigger {
6339 fn typename() -> &'static str {
6340 "type.googleapis.com/google.cloud.eventarc.v1.Trigger"
6341 }
6342}
6343
6344#[derive(Clone, Default, PartialEq)]
6346#[non_exhaustive]
6347pub struct EventFilter {
6348 pub attribute: std::string::String,
6355
6356 pub value: std::string::String,
6358
6359 pub operator: std::string::String,
6365
6366 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6367}
6368
6369impl EventFilter {
6370 pub fn new() -> Self {
6371 std::default::Default::default()
6372 }
6373
6374 pub fn set_attribute<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6376 self.attribute = v.into();
6377 self
6378 }
6379
6380 pub fn set_value<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6382 self.value = v.into();
6383 self
6384 }
6385
6386 pub fn set_operator<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6388 self.operator = v.into();
6389 self
6390 }
6391}
6392
6393impl wkt::message::Message for EventFilter {
6394 fn typename() -> &'static str {
6395 "type.googleapis.com/google.cloud.eventarc.v1.EventFilter"
6396 }
6397}
6398
6399#[derive(Clone, Default, PartialEq)]
6401#[non_exhaustive]
6402pub struct StateCondition {
6403 pub code: rpc::model::Code,
6405
6406 pub message: std::string::String,
6408
6409 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6410}
6411
6412impl StateCondition {
6413 pub fn new() -> Self {
6414 std::default::Default::default()
6415 }
6416
6417 pub fn set_code<T: std::convert::Into<rpc::model::Code>>(mut self, v: T) -> Self {
6419 self.code = v.into();
6420 self
6421 }
6422
6423 pub fn set_message<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6425 self.message = v.into();
6426 self
6427 }
6428}
6429
6430impl wkt::message::Message for StateCondition {
6431 fn typename() -> &'static str {
6432 "type.googleapis.com/google.cloud.eventarc.v1.StateCondition"
6433 }
6434}
6435
6436#[derive(Clone, Default, PartialEq)]
6438#[non_exhaustive]
6439pub struct Destination {
6440 pub network_config: std::option::Option<crate::model::NetworkConfig>,
6444
6445 pub descriptor: std::option::Option<crate::model::destination::Descriptor>,
6446
6447 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6448}
6449
6450impl Destination {
6451 pub fn new() -> Self {
6452 std::default::Default::default()
6453 }
6454
6455 pub fn set_network_config<T>(mut self, v: T) -> Self
6457 where
6458 T: std::convert::Into<crate::model::NetworkConfig>,
6459 {
6460 self.network_config = std::option::Option::Some(v.into());
6461 self
6462 }
6463
6464 pub fn set_or_clear_network_config<T>(mut self, v: std::option::Option<T>) -> Self
6466 where
6467 T: std::convert::Into<crate::model::NetworkConfig>,
6468 {
6469 self.network_config = v.map(|x| x.into());
6470 self
6471 }
6472
6473 pub fn set_descriptor<
6478 T: std::convert::Into<std::option::Option<crate::model::destination::Descriptor>>,
6479 >(
6480 mut self,
6481 v: T,
6482 ) -> Self {
6483 self.descriptor = v.into();
6484 self
6485 }
6486
6487 pub fn cloud_run(&self) -> std::option::Option<&std::boxed::Box<crate::model::CloudRun>> {
6491 #[allow(unreachable_patterns)]
6492 self.descriptor.as_ref().and_then(|v| match v {
6493 crate::model::destination::Descriptor::CloudRun(v) => std::option::Option::Some(v),
6494 _ => std::option::Option::None,
6495 })
6496 }
6497
6498 pub fn set_cloud_run<T: std::convert::Into<std::boxed::Box<crate::model::CloudRun>>>(
6504 mut self,
6505 v: T,
6506 ) -> Self {
6507 self.descriptor =
6508 std::option::Option::Some(crate::model::destination::Descriptor::CloudRun(v.into()));
6509 self
6510 }
6511
6512 pub fn cloud_function(&self) -> std::option::Option<&std::string::String> {
6516 #[allow(unreachable_patterns)]
6517 self.descriptor.as_ref().and_then(|v| match v {
6518 crate::model::destination::Descriptor::CloudFunction(v) => std::option::Option::Some(v),
6519 _ => std::option::Option::None,
6520 })
6521 }
6522
6523 pub fn set_cloud_function<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6529 self.descriptor = std::option::Option::Some(
6530 crate::model::destination::Descriptor::CloudFunction(v.into()),
6531 );
6532 self
6533 }
6534
6535 pub fn gke(&self) -> std::option::Option<&std::boxed::Box<crate::model::Gke>> {
6539 #[allow(unreachable_patterns)]
6540 self.descriptor.as_ref().and_then(|v| match v {
6541 crate::model::destination::Descriptor::Gke(v) => std::option::Option::Some(v),
6542 _ => std::option::Option::None,
6543 })
6544 }
6545
6546 pub fn set_gke<T: std::convert::Into<std::boxed::Box<crate::model::Gke>>>(
6552 mut self,
6553 v: T,
6554 ) -> Self {
6555 self.descriptor =
6556 std::option::Option::Some(crate::model::destination::Descriptor::Gke(v.into()));
6557 self
6558 }
6559
6560 pub fn workflow(&self) -> std::option::Option<&std::string::String> {
6564 #[allow(unreachable_patterns)]
6565 self.descriptor.as_ref().and_then(|v| match v {
6566 crate::model::destination::Descriptor::Workflow(v) => std::option::Option::Some(v),
6567 _ => std::option::Option::None,
6568 })
6569 }
6570
6571 pub fn set_workflow<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6577 self.descriptor =
6578 std::option::Option::Some(crate::model::destination::Descriptor::Workflow(v.into()));
6579 self
6580 }
6581
6582 pub fn http_endpoint(
6586 &self,
6587 ) -> std::option::Option<&std::boxed::Box<crate::model::HttpEndpoint>> {
6588 #[allow(unreachable_patterns)]
6589 self.descriptor.as_ref().and_then(|v| match v {
6590 crate::model::destination::Descriptor::HttpEndpoint(v) => std::option::Option::Some(v),
6591 _ => std::option::Option::None,
6592 })
6593 }
6594
6595 pub fn set_http_endpoint<T: std::convert::Into<std::boxed::Box<crate::model::HttpEndpoint>>>(
6601 mut self,
6602 v: T,
6603 ) -> Self {
6604 self.descriptor = std::option::Option::Some(
6605 crate::model::destination::Descriptor::HttpEndpoint(v.into()),
6606 );
6607 self
6608 }
6609}
6610
6611impl wkt::message::Message for Destination {
6612 fn typename() -> &'static str {
6613 "type.googleapis.com/google.cloud.eventarc.v1.Destination"
6614 }
6615}
6616
6617pub mod destination {
6619 #[allow(unused_imports)]
6620 use super::*;
6621
6622 #[derive(Clone, Debug, PartialEq)]
6623 #[non_exhaustive]
6624 pub enum Descriptor {
6625 CloudRun(std::boxed::Box<crate::model::CloudRun>),
6628 CloudFunction(std::string::String),
6636 Gke(std::boxed::Box<crate::model::Gke>),
6639 Workflow(std::string::String),
6644 HttpEndpoint(std::boxed::Box<crate::model::HttpEndpoint>),
6646 }
6647}
6648
6649#[derive(Clone, Default, PartialEq)]
6652#[non_exhaustive]
6653pub struct Transport {
6654 pub intermediary: std::option::Option<crate::model::transport::Intermediary>,
6655
6656 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6657}
6658
6659impl Transport {
6660 pub fn new() -> Self {
6661 std::default::Default::default()
6662 }
6663
6664 pub fn set_intermediary<
6669 T: std::convert::Into<std::option::Option<crate::model::transport::Intermediary>>,
6670 >(
6671 mut self,
6672 v: T,
6673 ) -> Self {
6674 self.intermediary = v.into();
6675 self
6676 }
6677
6678 pub fn pubsub(&self) -> std::option::Option<&std::boxed::Box<crate::model::Pubsub>> {
6682 #[allow(unreachable_patterns)]
6683 self.intermediary.as_ref().and_then(|v| match v {
6684 crate::model::transport::Intermediary::Pubsub(v) => std::option::Option::Some(v),
6685 _ => std::option::Option::None,
6686 })
6687 }
6688
6689 pub fn set_pubsub<T: std::convert::Into<std::boxed::Box<crate::model::Pubsub>>>(
6695 mut self,
6696 v: T,
6697 ) -> Self {
6698 self.intermediary =
6699 std::option::Option::Some(crate::model::transport::Intermediary::Pubsub(v.into()));
6700 self
6701 }
6702}
6703
6704impl wkt::message::Message for Transport {
6705 fn typename() -> &'static str {
6706 "type.googleapis.com/google.cloud.eventarc.v1.Transport"
6707 }
6708}
6709
6710pub mod transport {
6712 #[allow(unused_imports)]
6713 use super::*;
6714
6715 #[derive(Clone, Debug, PartialEq)]
6716 #[non_exhaustive]
6717 pub enum Intermediary {
6718 Pubsub(std::boxed::Box<crate::model::Pubsub>),
6721 }
6722}
6723
6724#[derive(Clone, Default, PartialEq)]
6726#[non_exhaustive]
6727pub struct CloudRun {
6728 pub service: std::string::String,
6734
6735 pub path: std::string::String,
6741
6742 pub region: std::string::String,
6744
6745 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6746}
6747
6748impl CloudRun {
6749 pub fn new() -> Self {
6750 std::default::Default::default()
6751 }
6752
6753 pub fn set_service<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6755 self.service = v.into();
6756 self
6757 }
6758
6759 pub fn set_path<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6761 self.path = v.into();
6762 self
6763 }
6764
6765 pub fn set_region<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6767 self.region = v.into();
6768 self
6769 }
6770}
6771
6772impl wkt::message::Message for CloudRun {
6773 fn typename() -> &'static str {
6774 "type.googleapis.com/google.cloud.eventarc.v1.CloudRun"
6775 }
6776}
6777
6778#[derive(Clone, Default, PartialEq)]
6780#[non_exhaustive]
6781pub struct Gke {
6782 pub cluster: std::string::String,
6785
6786 pub location: std::string::String,
6791
6792 pub namespace: std::string::String,
6794
6795 pub service: std::string::String,
6797
6798 pub path: std::string::String,
6804
6805 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6806}
6807
6808impl Gke {
6809 pub fn new() -> Self {
6810 std::default::Default::default()
6811 }
6812
6813 pub fn set_cluster<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6815 self.cluster = v.into();
6816 self
6817 }
6818
6819 pub fn set_location<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6821 self.location = v.into();
6822 self
6823 }
6824
6825 pub fn set_namespace<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6827 self.namespace = v.into();
6828 self
6829 }
6830
6831 pub fn set_service<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6833 self.service = v.into();
6834 self
6835 }
6836
6837 pub fn set_path<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6839 self.path = v.into();
6840 self
6841 }
6842}
6843
6844impl wkt::message::Message for Gke {
6845 fn typename() -> &'static str {
6846 "type.googleapis.com/google.cloud.eventarc.v1.GKE"
6847 }
6848}
6849
6850#[derive(Clone, Default, PartialEq)]
6852#[non_exhaustive]
6853pub struct Pubsub {
6854 pub topic: std::string::String,
6862
6863 pub subscription: std::string::String,
6867
6868 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6869}
6870
6871impl Pubsub {
6872 pub fn new() -> Self {
6873 std::default::Default::default()
6874 }
6875
6876 pub fn set_topic<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6878 self.topic = v.into();
6879 self
6880 }
6881
6882 pub fn set_subscription<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6884 self.subscription = v.into();
6885 self
6886 }
6887}
6888
6889impl wkt::message::Message for Pubsub {
6890 fn typename() -> &'static str {
6891 "type.googleapis.com/google.cloud.eventarc.v1.Pubsub"
6892 }
6893}
6894
6895#[derive(Clone, Default, PartialEq)]
6897#[non_exhaustive]
6898pub struct HttpEndpoint {
6899 pub uri: std::string::String,
6908
6909 pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
6910}
6911
6912impl HttpEndpoint {
6913 pub fn new() -> Self {
6914 std::default::Default::default()
6915 }
6916
6917 pub fn set_uri<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
6919 self.uri = v.into();
6920 self
6921 }
6922}
6923
6924impl wkt::message::Message for HttpEndpoint {
6925 fn typename() -> &'static str {
6926 "type.googleapis.com/google.cloud.eventarc.v1.HttpEndpoint"
6927 }
6928}