1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct ProcedureState {
5 #[prost(map = "string, message", tag = "1")]
7 pub global_fields: ::std::collections::HashMap<
8 ::prost::alloc::string::String,
9 FormField,
10 >,
11 #[prost(message, repeated, tag = "5")]
14 pub new_global_fields: ::prost::alloc::vec::Vec<FormField>,
15 #[prost(map = "string, message", tag = "2")]
17 pub nodes: ::std::collections::HashMap<
18 ::prost::alloc::string::String,
19 ProcedureNode,
20 >,
21 #[prost(map = "string, message", tag = "3")]
25 pub section_edges: ::std::collections::HashMap<
26 ::prost::alloc::string::String,
27 NodeList,
28 >,
29 #[prost(map = "string, message", tag = "4")]
33 pub step_edges: ::std::collections::HashMap<
34 ::prost::alloc::string::String,
35 NodeList,
36 >,
37}
38#[derive(Clone, PartialEq, ::prost::Message)]
40pub struct ProcedureDisplayGraph {
41 #[prost(string, repeated, tag = "1")]
44 pub top_level_nodes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
45 #[prost(map = "string, message", tag = "2")]
47 pub section_to_sorted_children: ::std::collections::HashMap<
48 ::prost::alloc::string::String,
49 NodeList,
50 >,
51}
52#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct NestedProcedure {
57 #[prost(string, tag = "1")]
59 pub title: ::prost::alloc::string::String,
60 #[prost(string, optional, tag = "2")]
62 pub description: ::core::option::Option<::prost::alloc::string::String>,
63 #[prost(message, repeated, tag = "3")]
65 pub steps: ::prost::alloc::vec::Vec<NestedProcedureNode>,
66 #[prost(map = "string, message", tag = "4")]
68 pub global_fields: ::std::collections::HashMap<
69 ::prost::alloc::string::String,
70 FormField,
71 >,
72 #[prost(message, repeated, tag = "5")]
75 pub new_global_fields: ::prost::alloc::vec::Vec<FormField>,
76}
77#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct NodeList {
80 #[prost(string, repeated, tag = "1")]
81 pub node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
82}
83#[derive(Clone, PartialEq, ::prost::Message)]
85pub struct ProcedureNode {
86 #[prost(oneof = "procedure_node::Node", tags = "1, 2")]
87 pub node: ::core::option::Option<procedure_node::Node>,
88}
89pub mod procedure_node {
91 #[derive(Clone, PartialEq, ::prost::Oneof)]
92 pub enum Node {
93 #[prost(message, tag = "1")]
95 Section(super::ProcedureSectionNode),
96 #[prost(message, tag = "2")]
99 Step(super::ProcedureStepNode),
100 }
101}
102#[derive(Clone, PartialEq, ::prost::Message)]
104pub struct ProcedureSectionNode {
105 #[prost(string, tag = "1")]
107 pub id: ::prost::alloc::string::String,
108 #[prost(string, tag = "2")]
110 pub title: ::prost::alloc::string::String,
111 #[prost(string, optional, tag = "3")]
113 pub description: ::core::option::Option<::prost::alloc::string::String>,
114}
115#[derive(Clone, PartialEq, ::prost::Message)]
117pub struct ProcedureStepNode {
118 #[prost(string, tag = "1")]
120 pub id: ::prost::alloc::string::String,
121 #[prost(string, tag = "2")]
123 pub title: ::prost::alloc::string::String,
124 #[prost(message, optional, tag = "3")]
126 pub content: ::core::option::Option<ProcedureStepContent>,
127 #[prost(string, optional, tag = "5")]
129 pub description: ::core::option::Option<::prost::alloc::string::String>,
130 #[prost(bool, optional, tag = "6")]
132 pub is_required: ::core::option::Option<bool>,
133 #[prost(message, optional, tag = "7")]
136 pub auto_start: ::core::option::Option<AutoStartConfig>,
137 #[prost(message, optional, tag = "8")]
140 pub initial_auto_proceed_config: ::core::option::Option<AutoProceedConfig>,
141 #[prost(message, optional, tag = "9")]
144 pub success_condition: ::core::option::Option<SuccessCondition>,
145 #[prost(message, repeated, tag = "10")]
148 pub completion_action_configs: ::prost::alloc::vec::Vec<CompletionActionConfig>,
149 #[prost(string, repeated, tag = "11")]
151 pub attachments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
152}
153#[derive(Clone, PartialEq, ::prost::Message)]
155pub struct NestedProcedureNode {
156 #[prost(string, tag = "5")]
158 pub id: ::prost::alloc::string::String,
159 #[prost(string, tag = "1")]
161 pub title: ::prost::alloc::string::String,
162 #[prost(string, optional, tag = "2")]
164 pub description: ::core::option::Option<::prost::alloc::string::String>,
165 #[prost(message, repeated, tag = "3")]
167 pub steps: ::prost::alloc::vec::Vec<NestedProcedureNode>,
168 #[prost(message, optional, tag = "4")]
170 pub step: ::core::option::Option<nested_procedure_node::NestedStepNode>,
171}
172pub mod nested_procedure_node {
174 #[derive(Clone, PartialEq, ::prost::Message)]
176 pub struct NestedStepNode {
177 #[prost(bool, optional, tag = "2")]
178 pub is_required: ::core::option::Option<bool>,
179 #[prost(message, optional, tag = "3")]
180 pub auto_start: ::core::option::Option<super::AutoStartConfig>,
181 #[prost(message, optional, tag = "4")]
182 pub initial_auto_proceed_config: ::core::option::Option<
183 super::AutoProceedConfig,
184 >,
185 #[prost(message, optional, tag = "5")]
186 pub success_condition: ::core::option::Option<super::SuccessCondition>,
187 #[prost(message, repeated, tag = "6")]
188 pub completion_action_configs: ::prost::alloc::vec::Vec<
189 super::CompletionActionConfig,
190 >,
191 #[prost(string, repeated, tag = "51")]
193 pub attachments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
194 #[prost(oneof = "nested_step_node::Content", tags = "7, 8, 9, 10")]
196 pub content: ::core::option::Option<nested_step_node::Content>,
197 }
198 pub mod nested_step_node {
200 #[derive(Clone, PartialEq, ::prost::Oneof)]
202 pub enum Content {
203 #[prost(message, tag = "7")]
204 Form(super::super::FormStep),
205 #[prost(message, tag = "8")]
206 StartIngest(super::super::StartIngestStep),
207 #[prost(message, tag = "9")]
208 SelectOrCreateAsset(super::super::SelectOrCreateAssetStep),
209 #[prost(message, tag = "10")]
210 Wait(super::super::WaitStep),
211 }
212 }
213}
214#[derive(Clone, Copy, PartialEq, ::prost::Message)]
218pub struct AutoStartConfig {
219 #[prost(oneof = "auto_start_config::Config", tags = "1, 2")]
220 pub config: ::core::option::Option<auto_start_config::Config>,
221}
222pub mod auto_start_config {
224 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
225 pub struct AllParents {}
226 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
227 pub struct Disabled {}
228 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
229 pub enum Config {
230 #[prost(message, tag = "1")]
232 AllParents(AllParents),
233 #[prost(message, tag = "2")]
235 Disabled(Disabled),
236 }
237}
238#[derive(Clone, Copy, PartialEq, ::prost::Message)]
242pub struct AutoProceedConfig {
243 #[prost(oneof = "auto_proceed_config::Config", tags = "1, 2")]
244 pub config: ::core::option::Option<auto_proceed_config::Config>,
245}
246pub mod auto_proceed_config {
248 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
249 pub struct Disabled {}
250 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
251 pub struct Enabled {}
252 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
253 pub enum Config {
254 #[prost(message, tag = "1")]
256 Disabled(Disabled),
257 #[prost(message, tag = "2")]
260 Enabled(Enabled),
261 }
262}
263#[derive(Clone, PartialEq, ::prost::Message)]
265pub struct SuccessCondition {
266 #[prost(oneof = "success_condition::Condition", tags = "1, 2, 3, 4, 5")]
267 pub condition: ::core::option::Option<success_condition::Condition>,
268}
269pub mod success_condition {
271 #[derive(Clone, PartialEq, ::prost::Oneof)]
272 pub enum Condition {
273 #[prost(message, tag = "1")]
274 And(super::AndSuccessCondition),
275 #[prost(message, tag = "2")]
276 Timer(super::TimerSuccessCondition),
277 #[prost(message, tag = "3")]
278 IngestJob(super::IngestJobSuccessCondition),
279 #[prost(message, tag = "4")]
280 ChannelValidation(super::ChannelValidationSuccessCondition),
281 #[prost(message, tag = "5")]
283 Webhook(super::WebhookSuccessCondition),
284 }
285}
286#[derive(Clone, PartialEq, ::prost::Message)]
288pub struct AndSuccessCondition {
289 #[prost(message, repeated, tag = "1")]
290 pub conditions: ::prost::alloc::vec::Vec<SuccessCondition>,
291}
292#[derive(Clone, Copy, PartialEq, ::prost::Message)]
294pub struct TimerSuccessCondition {
295 #[prost(int32, tag = "1")]
298 pub duration_seconds: i32,
299}
300#[derive(Clone, PartialEq, ::prost::Message)]
303pub struct IngestJobSuccessCondition {
304 #[prost(string, tag = "1")]
306 pub field_id: ::prost::alloc::string::String,
307}
308#[derive(Clone, PartialEq, ::prost::Message)]
312pub struct ChannelValidationSuccessCondition {
313 #[prost(message, optional, tag = "1")]
315 pub channel: ::core::option::Option<
316 channel_validation_success_condition::ChannelLocator,
317 >,
318 #[prost(enumeration = "channel_validation_success_condition::Comparator", tag = "2")]
321 pub comparator: i32,
322 #[prost(double, tag = "3")]
327 pub threshold: f64,
328 #[prost(int32, tag = "4")]
332 pub timeout_millis: i32,
333 #[prost(uint32, optional, tag = "5")]
335 pub point_persistence: ::core::option::Option<u32>,
336 #[prost(uint32, optional, tag = "6")]
338 pub time_persistence: ::core::option::Option<u32>,
339}
340pub mod channel_validation_success_condition {
342 #[derive(Clone, PartialEq, ::prost::Message)]
348 pub struct ChannelLocator {
349 #[prost(string, tag = "1")]
355 pub data_source_ref: ::prost::alloc::string::String,
356 #[prost(string, tag = "2")]
359 pub channel_name: ::prost::alloc::string::String,
360 #[prost(map = "string, string", tag = "3")]
364 pub tags: ::std::collections::HashMap<
365 ::prost::alloc::string::String,
366 ::prost::alloc::string::String,
367 >,
368 #[prost(oneof = "channel_locator::AssetOrRun", tags = "4, 5")]
371 pub asset_or_run: ::core::option::Option<channel_locator::AssetOrRun>,
372 }
373 pub mod channel_locator {
375 #[derive(Clone, PartialEq, ::prost::Oneof)]
378 pub enum AssetOrRun {
379 #[prost(message, tag = "4")]
380 Asset(super::super::AssetReference),
381 #[prost(message, tag = "5")]
382 Run(super::super::RunReference),
383 }
384 }
385 #[derive(
392 Clone,
393 Copy,
394 Debug,
395 PartialEq,
396 Eq,
397 Hash,
398 PartialOrd,
399 Ord,
400 ::prost::Enumeration
401 )]
402 #[repr(i32)]
403 pub enum Comparator {
404 Unspecified = 0,
407 GreaterThan = 1,
408 GreaterThanOrEqual = 2,
409 LessThan = 3,
410 LessThanOrEqual = 4,
411 Equal = 5,
412 NotEqual = 6,
413 }
414 impl Comparator {
415 pub fn as_str_name(&self) -> &'static str {
420 match self {
421 Self::Unspecified => "COMPARATOR_UNSPECIFIED",
422 Self::GreaterThan => "COMPARATOR_GREATER_THAN",
423 Self::GreaterThanOrEqual => "COMPARATOR_GREATER_THAN_OR_EQUAL",
424 Self::LessThan => "COMPARATOR_LESS_THAN",
425 Self::LessThanOrEqual => "COMPARATOR_LESS_THAN_OR_EQUAL",
426 Self::Equal => "COMPARATOR_EQUAL",
427 Self::NotEqual => "COMPARATOR_NOT_EQUAL",
428 }
429 }
430 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
432 match value {
433 "COMPARATOR_UNSPECIFIED" => Some(Self::Unspecified),
434 "COMPARATOR_GREATER_THAN" => Some(Self::GreaterThan),
435 "COMPARATOR_GREATER_THAN_OR_EQUAL" => Some(Self::GreaterThanOrEqual),
436 "COMPARATOR_LESS_THAN" => Some(Self::LessThan),
437 "COMPARATOR_LESS_THAN_OR_EQUAL" => Some(Self::LessThanOrEqual),
438 "COMPARATOR_EQUAL" => Some(Self::Equal),
439 "COMPARATOR_NOT_EQUAL" => Some(Self::NotEqual),
440 _ => None,
441 }
442 }
443 }
444}
445#[derive(Clone, PartialEq, ::prost::Message)]
455pub struct WebhookSuccessCondition {
456 #[prost(string, tag = "1")]
458 pub integration_rid: ::prost::alloc::string::String,
459 #[prost(message, optional, tag = "2")]
461 pub delivery_config: ::core::option::Option<WebhookDeliveryConfig>,
462 #[prost(string, tag = "3")]
464 pub event_type: ::prost::alloc::string::String,
465 #[prost(string, tag = "4")]
496 pub payload_template: ::prost::alloc::string::String,
497}
498#[derive(Clone, Copy, PartialEq, ::prost::Message)]
500pub struct WebhookDeliveryConfig {
501 #[prost(int32, optional, tag = "1")]
503 pub max_retries: ::core::option::Option<i32>,
504 #[prost(int64, optional, tag = "2")]
506 pub retry_interval_seconds: ::core::option::Option<i64>,
507 #[prost(bool, optional, tag = "3")]
509 pub exponential_backoff: ::core::option::Option<bool>,
510 #[prost(int64, optional, tag = "4")]
512 pub max_retry_interval_seconds: ::core::option::Option<i64>,
513 #[prost(int64, optional, tag = "5")]
515 pub timeout_seconds: ::core::option::Option<i64>,
516}
517#[derive(Clone, PartialEq, ::prost::Message)]
525pub struct CompletionActionConfig {
526 #[prost(oneof = "completion_action_config::Config", tags = "1, 2, 3, 4, 5")]
527 pub config: ::core::option::Option<completion_action_config::Config>,
528}
529pub mod completion_action_config {
531 #[derive(Clone, PartialEq, ::prost::Oneof)]
532 pub enum Config {
533 #[prost(message, tag = "1")]
534 CreateEvent(super::CreateEventConfig),
535 #[prost(message, tag = "2")]
536 SendNotification(super::SendNotificationConfig),
537 #[prost(message, tag = "3")]
538 CreateRun(super::CreateRunConfig),
539 #[prost(message, tag = "4")]
540 ApplyWorkbookTemplates(super::ApplyWorkbookTemplatesConfig),
541 #[prost(message, tag = "5")]
543 ApplyChecklists(super::ApplyChecklistsConfig),
544 }
545}
546#[derive(Clone, PartialEq, ::prost::Message)]
552pub struct CreateEventConfig {
553 #[prost(string, tag = "1")]
554 pub name: ::prost::alloc::string::String,
555 #[prost(string, optional, tag = "2")]
556 pub description: ::core::option::Option<::prost::alloc::string::String>,
557 #[prost(string, repeated, tag = "3")]
558 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
559 #[prost(map = "string, string", tag = "4")]
562 pub properties: ::std::collections::HashMap<
563 ::prost::alloc::string::String,
564 ::prost::alloc::string::String,
565 >,
566 #[prost(string, repeated, tag = "5")]
569 pub asset_field_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
570 #[prost(message, repeated, tag = "6")]
575 pub asset_references: ::prost::alloc::vec::Vec<AssetReference>,
576 #[prost(message, repeated, tag = "7")]
578 pub property_refs: ::prost::alloc::vec::Vec<PropertyReference>,
579}
580#[derive(Clone, PartialEq, ::prost::Message)]
582pub struct SendNotificationConfig {
583 #[prost(message, optional, tag = "1")]
585 pub integrations: ::core::option::Option<MultiIntegrationReference>,
586 #[prost(message, optional, tag = "2")]
588 pub title: ::core::option::Option<StringReference>,
589 #[prost(message, optional, tag = "3")]
595 pub message: ::core::option::Option<StringReference>,
596}
597#[derive(Clone, PartialEq, ::prost::Message)]
599pub struct CreateRunConfig {
600 #[prost(string, optional, tag = "1")]
602 pub run_output_field_id: ::core::option::Option<::prost::alloc::string::String>,
603 #[prost(message, optional, tag = "2")]
605 pub assets: ::core::option::Option<MultiAssetReference>,
606 #[prost(message, optional, tag = "3")]
608 pub name: ::core::option::Option<StringReference>,
609 #[prost(message, optional, tag = "4")]
611 pub description: ::core::option::Option<StringReference>,
612 #[prost(message, optional, tag = "5")]
614 pub time_range: ::core::option::Option<TimeRangeReference>,
615 #[prost(message, optional, tag = "6")]
617 pub labels: ::core::option::Option<MultiStringReference>,
618 #[prost(message, repeated, tag = "7")]
623 pub properties: ::prost::alloc::vec::Vec<create_run_config::Property>,
624}
625pub mod create_run_config {
627 #[derive(Clone, PartialEq, ::prost::Message)]
628 pub struct Property {
629 #[prost(message, optional, tag = "1")]
630 pub key: ::core::option::Option<super::StringReference>,
631 #[prost(message, optional, tag = "2")]
632 pub value: ::core::option::Option<super::StringReference>,
633 }
634}
635#[derive(Clone, PartialEq, ::prost::Message)]
643pub struct UpdateRunConfig {
644 #[prost(message, optional, tag = "1")]
646 pub runs: ::core::option::Option<MultiRunReference>,
647 #[prost(message, optional, tag = "2")]
650 pub name: ::core::option::Option<StringReference>,
651 #[prost(message, optional, tag = "3")]
652 pub description: ::core::option::Option<StringReference>,
653 #[prost(message, optional, tag = "4")]
654 pub time_range: ::core::option::Option<TimeRangeReference>,
655 #[prost(message, optional, tag = "5")]
657 pub labels: ::core::option::Option<MultiStringReference>,
658 #[prost(message, repeated, tag = "6")]
660 pub properties: ::prost::alloc::vec::Vec<PropertyReference>,
661 #[prost(bool, optional, tag = "7")]
663 pub strict_overwrite: ::core::option::Option<bool>,
664}
665#[derive(Clone, PartialEq, ::prost::Message)]
666pub struct PropertyReference {
667 #[prost(message, optional, tag = "1")]
668 pub key: ::core::option::Option<StringReference>,
669 #[prost(message, optional, tag = "2")]
670 pub value: ::core::option::Option<StringReference>,
671}
672#[derive(Clone, PartialEq, ::prost::Message)]
674pub struct ApplyWorkbookTemplatesConfig {
675 #[prost(message, optional, tag = "1")]
677 pub workbook_templates: ::core::option::Option<MultiWorkbookTemplateReference>,
678 #[prost(message, optional, tag = "2")]
680 pub runs: ::core::option::Option<MultiRunReference>,
681}
682#[derive(Clone, PartialEq, ::prost::Message)]
684pub struct ApplyChecklistsConfig {
685 #[prost(message, optional, tag = "1")]
687 pub checklists: ::core::option::Option<MultiChecklistReference>,
688 #[prost(message, optional, tag = "2")]
690 pub runs: ::core::option::Option<MultiRunReference>,
691}
692#[derive(Clone, PartialEq, ::prost::Message)]
694pub struct ProcedureStepContent {
695 #[prost(oneof = "procedure_step_content::Content", tags = "1, 2, 3, 4")]
697 pub content: ::core::option::Option<procedure_step_content::Content>,
698}
699pub mod procedure_step_content {
701 #[derive(Clone, PartialEq, ::prost::Oneof)]
703 pub enum Content {
704 #[prost(message, tag = "1")]
705 Form(super::FormStep),
706 #[prost(message, tag = "2")]
707 StartIngest(super::StartIngestStep),
708 #[prost(message, tag = "3")]
709 SelectOrCreateAsset(super::SelectOrCreateAssetStep),
710 #[prost(message, tag = "4")]
712 Wait(super::WaitStep),
713 }
714}
715#[derive(Clone, Copy, PartialEq, ::prost::Message)]
716pub struct WaitStep {}
717#[derive(Clone, PartialEq, ::prost::Message)]
719pub struct FormStep {
720 #[prost(message, repeated, tag = "1")]
721 pub fields: ::prost::alloc::vec::Vec<FormField>,
722}
723#[derive(Clone, PartialEq, ::prost::Message)]
726pub struct StartIngestStep {
727 #[prost(message, optional, tag = "1")]
729 pub asset: ::core::option::Option<AssetReference>,
730 #[prost(message, optional, tag = "2")]
732 pub ref_name: ::core::option::Option<StringReference>,
733 #[prost(message, optional, tag = "3")]
735 pub ingest_type_config: ::core::option::Option<start_ingest_step::IngestTypeConfig>,
736 #[prost(string, optional, tag = "4")]
738 pub ingest_job_output_field_id: ::core::option::Option<
739 ::prost::alloc::string::String,
740 >,
741}
742pub mod start_ingest_step {
744 #[derive(Clone, PartialEq, ::prost::Message)]
745 pub struct IngestTypeConfig {
746 #[prost(oneof = "ingest_type_config::Config", tags = "1, 2, 3, 4")]
747 pub config: ::core::option::Option<ingest_type_config::Config>,
748 }
749 pub mod ingest_type_config {
751 #[derive(Clone, PartialEq, ::prost::Message)]
752 pub struct ContainerizedExtractorIngestConfig {
753 #[prost(string, tag = "1")]
755 pub rid: ::prost::alloc::string::String,
756 #[prost(message, repeated, tag = "2")]
758 pub file_input_bindings: ::prost::alloc::vec::Vec<
759 super::super::FileInputBinding,
760 >,
761 }
762 #[derive(Clone, PartialEq, ::prost::Message)]
763 pub struct DataflashIngestConfig {
764 #[prost(message, optional, tag = "1")]
767 pub file_input: ::core::option::Option<super::super::FileReference>,
768 }
769 #[derive(Clone, PartialEq, ::prost::Message)]
770 pub struct CsvIngestConfig {
771 #[prost(message, optional, tag = "1")]
773 pub timestamp_series_name: ::core::option::Option<
774 super::super::StringReference,
775 >,
776 #[prost(message, optional, tag = "2")]
777 pub timestamp_type: ::core::option::Option<
778 super::super::TimestampTypeParameter,
779 >,
780 #[prost(message, optional, tag = "3")]
783 pub file_input: ::core::option::Option<super::super::FileReference>,
784 }
785 #[derive(Clone, PartialEq, ::prost::Message)]
786 pub struct ParquetIngestConfig {
787 #[prost(message, optional, tag = "1")]
789 pub timestamp_series_name: ::core::option::Option<
790 super::super::StringReference,
791 >,
792 #[prost(message, optional, tag = "2")]
793 pub timestamp_type: ::core::option::Option<
794 super::super::TimestampTypeParameter,
795 >,
796 #[prost(message, optional, tag = "3")]
799 pub file_input: ::core::option::Option<super::super::FileReference>,
800 }
801 #[derive(Clone, PartialEq, ::prost::Oneof)]
802 pub enum Config {
803 #[prost(message, tag = "1")]
805 ContainerizedExtractor(ContainerizedExtractorIngestConfig),
806 #[prost(message, tag = "2")]
807 Dataflash(DataflashIngestConfig),
808 #[prost(message, tag = "3")]
809 Csv(CsvIngestConfig),
810 #[prost(message, tag = "4")]
811 Parquet(ParquetIngestConfig),
812 }
813 }
814}
815#[derive(Clone, PartialEq, ::prost::Message)]
816pub struct FileInputBinding {
817 #[prost(string, tag = "1")]
819 pub environment_variable: ::prost::alloc::string::String,
820 #[prost(message, optional, tag = "2")]
822 pub file_reference: ::core::option::Option<FileReference>,
823}
824#[derive(Clone, PartialEq, ::prost::Message)]
825pub struct FileReference {
826 #[prost(oneof = "file_reference::Option", tags = "1")]
827 pub option: ::core::option::Option<file_reference::Option>,
828}
829pub mod file_reference {
831 #[derive(Clone, PartialEq, ::prost::Oneof)]
832 pub enum Option {
833 #[prost(string, tag = "1")]
835 FieldId(::prost::alloc::string::String),
836 }
837}
838#[derive(Clone, PartialEq, ::prost::Message)]
839pub struct TimestampTypeParameter {
840 #[prost(oneof = "timestamp_type_parameter::Option", tags = "1, 2")]
841 pub option: ::core::option::Option<timestamp_type_parameter::Option>,
842}
843pub mod timestamp_type_parameter {
845 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
847 pub struct UserInputOptions {}
848 #[derive(Clone, PartialEq, ::prost::Oneof)]
849 pub enum Option {
850 #[prost(message, tag = "1")]
852 Constant(super::TimestampType),
853 #[prost(message, tag = "2")]
855 UserInput(UserInputOptions),
856 }
857}
858#[derive(Clone, PartialEq, ::prost::Message)]
859pub struct TimestampType {
860 #[prost(oneof = "timestamp_type::Option", tags = "1, 2")]
861 pub option: ::core::option::Option<timestamp_type::Option>,
862}
863pub mod timestamp_type {
865 #[derive(Clone, PartialEq, ::prost::Oneof)]
866 pub enum Option {
867 #[prost(message, tag = "1")]
868 Relative(super::RelativeTimestamp),
869 #[prost(message, tag = "2")]
870 Absolute(super::AbsoluteTimestamp),
871 }
872}
873#[derive(Clone, PartialEq, ::prost::Message)]
874pub struct RelativeTimestamp {
875 #[prost(string, tag = "1")]
876 pub time_unit: ::prost::alloc::string::String,
877 #[prost(message, optional, tag = "2")]
879 pub offset: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
880}
881#[derive(Clone, PartialEq, ::prost::Message)]
882pub struct AbsoluteTimestamp {
883 #[prost(oneof = "absolute_timestamp::Option", tags = "1, 2, 3")]
884 pub option: ::core::option::Option<absolute_timestamp::Option>,
885}
886pub mod absolute_timestamp {
888 #[derive(Clone, PartialEq, ::prost::Oneof)]
889 pub enum Option {
890 #[prost(message, tag = "1")]
891 Iso8601(super::Iso8601Timestamp),
892 #[prost(message, tag = "2")]
893 EpochOfTimeUnit(super::EpochTimestamp),
894 #[prost(message, tag = "3")]
895 CustomFormat(super::CustomTimestamp),
896 }
897}
898#[derive(Clone, Copy, PartialEq, ::prost::Message)]
899pub struct Iso8601Timestamp {}
900#[derive(Clone, PartialEq, ::prost::Message)]
901pub struct EpochTimestamp {
902 #[prost(string, tag = "1")]
903 pub time_unit: ::prost::alloc::string::String,
904}
905#[derive(Clone, PartialEq, ::prost::Message)]
906pub struct CustomTimestamp {
907 #[prost(string, tag = "1")]
909 pub format: ::prost::alloc::string::String,
910 #[prost(int32, optional, tag = "2")]
913 pub default_year: ::core::option::Option<i32>,
914 #[prost(int32, optional, tag = "3")]
917 pub default_day_of_year: ::core::option::Option<i32>,
918}
919#[derive(Clone, PartialEq, ::prost::Message)]
921pub struct SelectOrCreateAssetStep {
922 #[prost(string, optional, tag = "1")]
924 pub asset_output_field_id: ::core::option::Option<::prost::alloc::string::String>,
925 #[prost(message, optional, tag = "2")]
927 pub create_asset_parameters: ::core::option::Option<
928 select_or_create_asset_step::CreateAssetParameters,
929 >,
930 #[prost(oneof = "select_or_create_asset_step::Options", tags = "3")]
933 pub options: ::core::option::Option<select_or_create_asset_step::Options>,
934}
935pub mod select_or_create_asset_step {
937 #[derive(Clone, PartialEq, ::prost::Message)]
941 pub struct CreateAssetParameters {
942 #[prost(message, optional, tag = "2")]
944 pub description: ::core::option::Option<
945 create_asset_parameters::DescriptionParameter,
946 >,
947 #[prost(message, optional, tag = "3")]
949 pub labels: ::core::option::Option<create_asset_parameters::LabelsParameter>,
950 #[prost(message, optional, tag = "4")]
952 pub properties: ::core::option::Option<
953 create_asset_parameters::PropertiesParameter,
954 >,
955 #[prost(map = "string, message", tag = "5")]
957 pub data_scopes: ::std::collections::HashMap<
958 ::prost::alloc::string::String,
959 create_asset_parameters::DataScopeParameter,
960 >,
961 }
962 pub mod create_asset_parameters {
964 #[derive(Clone, PartialEq, ::prost::Message)]
965 pub struct DescriptionParameter {
966 #[prost(oneof = "description_parameter::Option", tags = "1")]
967 pub option: ::core::option::Option<description_parameter::Option>,
968 }
969 pub mod description_parameter {
971 #[derive(Clone, PartialEq, ::prost::Oneof)]
972 pub enum Option {
973 #[prost(string, tag = "1")]
977 Constant(::prost::alloc::string::String),
978 }
979 }
980 #[derive(Clone, PartialEq, ::prost::Message)]
981 pub struct LabelsParameter {
982 #[prost(string, repeated, tag = "1")]
984 pub constant: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
985 #[prost(message, optional, tag = "2")]
988 pub user_input: ::core::option::Option<labels_parameter::UserInputOptions>,
989 }
990 pub mod labels_parameter {
992 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
994 pub struct UserInputOptions {}
995 }
996 #[derive(Clone, PartialEq, ::prost::Message)]
997 pub struct PropertiesParameter {
998 #[prost(map = "string, string", tag = "1")]
1000 pub constant: ::std::collections::HashMap<
1001 ::prost::alloc::string::String,
1002 ::prost::alloc::string::String,
1003 >,
1004 #[prost(message, optional, tag = "2")]
1007 pub user_input: ::core::option::Option<
1008 properties_parameter::UserInputOptions,
1009 >,
1010 }
1011 pub mod properties_parameter {
1013 #[derive(Clone, PartialEq, ::prost::Message)]
1014 pub struct UserInputOptions {
1015 #[prost(string, repeated, tag = "1")]
1017 pub required_keys: ::prost::alloc::vec::Vec<
1018 ::prost::alloc::string::String,
1019 >,
1020 #[prost(string, repeated, tag = "2")]
1024 pub suggested_keys: ::prost::alloc::vec::Vec<
1025 ::prost::alloc::string::String,
1026 >,
1027 }
1028 }
1029 #[derive(Clone, PartialEq, ::prost::Message)]
1030 pub struct DataScopeParameter {
1031 #[prost(message, optional, tag = "21")]
1032 pub series_tags: ::core::option::Option<super::super::TagsParameter>,
1033 #[prost(oneof = "data_scope_parameter::DataSource", tags = "1, 2")]
1034 pub data_source: ::core::option::Option<data_scope_parameter::DataSource>,
1035 }
1036 pub mod data_scope_parameter {
1038 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1042 pub struct NewDataset {}
1043 #[derive(Clone, PartialEq, ::prost::Message)]
1044 pub struct ExistingDataset {
1045 #[prost(oneof = "existing_dataset::Options", tags = "1")]
1048 pub options: ::core::option::Option<existing_dataset::Options>,
1049 }
1050 pub mod existing_dataset {
1052 #[derive(Clone, PartialEq, ::prost::Oneof)]
1055 pub enum Options {
1056 #[prost(message, tag = "1")]
1058 PresetOptions(super::super::super::super::PresetDatasetFieldOptions),
1059 }
1060 }
1061 #[derive(Clone, PartialEq, ::prost::Oneof)]
1062 pub enum DataSource {
1063 #[prost(message, tag = "1")]
1065 NewDataset(NewDataset),
1066 #[prost(message, tag = "2")]
1068 ExistingDataset(ExistingDataset),
1069 }
1070 }
1071 }
1072 #[derive(Clone, PartialEq, ::prost::Oneof)]
1075 pub enum Options {
1076 #[prost(message, tag = "3")]
1081 PresetOptions(super::PresetAssetFieldOptions),
1082 }
1083}
1084#[derive(Clone, PartialEq, ::prost::Message)]
1086pub struct PresetDatasetFieldOptions {
1087 #[prost(message, repeated, tag = "1")]
1089 pub options: ::prost::alloc::vec::Vec<DatasetReference>,
1090 #[prost(message, optional, tag = "2")]
1093 pub default_option: ::core::option::Option<DatasetReference>,
1094}
1095#[derive(Clone, PartialEq, ::prost::Message)]
1097pub struct DatasetReference {
1098 #[prost(oneof = "dataset_reference::Option", tags = "1, 2")]
1099 pub option: ::core::option::Option<dataset_reference::Option>,
1100}
1101pub mod dataset_reference {
1103 #[derive(Clone, PartialEq, ::prost::Oneof)]
1104 pub enum Option {
1105 #[prost(string, tag = "1")]
1107 Rid(::prost::alloc::string::String),
1108 #[prost(string, tag = "2")]
1111 FieldId(::prost::alloc::string::String),
1112 }
1113}
1114#[derive(Clone, PartialEq, ::prost::Message)]
1115pub struct TagsParameter {
1116 #[prost(map = "string, string", tag = "1")]
1118 pub constant: ::std::collections::HashMap<
1119 ::prost::alloc::string::String,
1120 ::prost::alloc::string::String,
1121 >,
1122 #[prost(message, optional, tag = "2")]
1125 pub user_input: ::core::option::Option<tags_parameter::UserInputOptions>,
1126}
1127pub mod tags_parameter {
1129 #[derive(Clone, PartialEq, ::prost::Message)]
1130 pub struct UserInputOptions {
1131 #[prost(string, repeated, tag = "1")]
1133 pub required_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1134 #[prost(string, repeated, tag = "2")]
1138 pub suggested_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1139 }
1140}
1141#[derive(Clone, PartialEq, ::prost::Message)]
1143pub struct MultiStringReference {
1144 #[prost(oneof = "multi_string_reference::Option", tags = "1")]
1145 pub option: ::core::option::Option<multi_string_reference::Option>,
1146}
1147pub mod multi_string_reference {
1149 #[derive(Clone, PartialEq, ::prost::Oneof)]
1150 pub enum Option {
1151 #[prost(string, tag = "1")]
1153 FieldId(::prost::alloc::string::String),
1154 }
1155}
1156#[derive(Clone, PartialEq, ::prost::Message)]
1158pub struct StringReference {
1159 #[prost(oneof = "string_reference::Option", tags = "1, 2")]
1160 pub option: ::core::option::Option<string_reference::Option>,
1161}
1162pub mod string_reference {
1164 #[derive(Clone, PartialEq, ::prost::Oneof)]
1165 pub enum Option {
1166 #[prost(string, tag = "1")]
1168 Constant(::prost::alloc::string::String),
1169 #[prost(string, tag = "2")]
1174 FieldId(::prost::alloc::string::String),
1175 }
1176}
1177#[derive(Clone, PartialEq, ::prost::Message)]
1179pub struct MultiAssetReference {
1180 #[prost(oneof = "multi_asset_reference::Option", tags = "1")]
1181 pub option: ::core::option::Option<multi_asset_reference::Option>,
1182}
1183pub mod multi_asset_reference {
1185 #[derive(Clone, PartialEq, ::prost::Message)]
1186 pub struct AssetReferenceList {
1187 #[prost(message, repeated, tag = "1")]
1188 pub references: ::prost::alloc::vec::Vec<super::AssetReference>,
1189 }
1190 #[derive(Clone, PartialEq, ::prost::Oneof)]
1191 pub enum Option {
1192 #[prost(message, tag = "1")]
1194 List(AssetReferenceList),
1195 }
1196}
1197#[derive(Clone, PartialEq, ::prost::Message)]
1199pub struct AssetReference {
1200 #[prost(oneof = "asset_reference::Option", tags = "1, 2")]
1201 pub option: ::core::option::Option<asset_reference::Option>,
1202}
1203pub mod asset_reference {
1205 #[derive(Clone, PartialEq, ::prost::Oneof)]
1206 pub enum Option {
1207 #[prost(string, tag = "1")]
1209 Rid(::prost::alloc::string::String),
1210 #[prost(string, tag = "2")]
1213 FieldId(::prost::alloc::string::String),
1214 }
1215}
1216#[derive(Clone, PartialEq, ::prost::Message)]
1218pub struct TimeRangeReference {
1219 #[prost(oneof = "time_range_reference::Option", tags = "1")]
1220 pub option: ::core::option::Option<time_range_reference::Option>,
1221}
1222pub mod time_range_reference {
1224 #[derive(Clone, PartialEq, ::prost::Message)]
1225 pub struct IngestJobList {
1226 #[prost(string, repeated, tag = "1")]
1228 pub field_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1229 }
1230 #[derive(Clone, PartialEq, ::prost::Message)]
1231 pub struct RangeLiteral {
1232 #[prost(message, optional, tag = "1")]
1233 pub start: ::core::option::Option<super::TimestampReference>,
1234 #[prost(message, optional, tag = "2")]
1235 pub end: ::core::option::Option<super::TimestampReference>,
1236 }
1237 #[derive(Clone, PartialEq, ::prost::Oneof)]
1238 pub enum Option {
1239 #[prost(message, tag = "1")]
1243 FromIngestJobs(IngestJobList),
1244 }
1245}
1246#[derive(Clone, PartialEq, ::prost::Message)]
1247pub struct TimestampReference {
1248 #[prost(oneof = "timestamp_reference::Option", tags = "1, 2")]
1249 pub option: ::core::option::Option<timestamp_reference::Option>,
1250}
1251pub mod timestamp_reference {
1253 #[derive(Clone, PartialEq, ::prost::Oneof)]
1254 pub enum Option {
1255 #[prost(string, tag = "1")]
1258 FieldId(::prost::alloc::string::String),
1259 #[prost(message, tag = "2")]
1261 Constant(super::super::super::super::google::protobuf::Timestamp),
1262 }
1263}
1264#[derive(Clone, PartialEq, ::prost::Message)]
1266pub struct MultiRunReference {
1267 #[prost(oneof = "multi_run_reference::Option", tags = "1")]
1268 pub option: ::core::option::Option<multi_run_reference::Option>,
1269}
1270pub mod multi_run_reference {
1272 #[derive(Clone, PartialEq, ::prost::Message)]
1273 pub struct RunReferenceList {
1274 #[prost(message, repeated, tag = "1")]
1275 pub references: ::prost::alloc::vec::Vec<super::RunReference>,
1276 }
1277 #[derive(Clone, PartialEq, ::prost::Oneof)]
1278 pub enum Option {
1279 #[prost(message, tag = "1")]
1281 List(RunReferenceList),
1282 }
1283}
1284#[derive(Clone, PartialEq, ::prost::Message)]
1286pub struct RunReference {
1287 #[prost(oneof = "run_reference::Option", tags = "1")]
1288 pub option: ::core::option::Option<run_reference::Option>,
1289}
1290pub mod run_reference {
1292 #[derive(Clone, PartialEq, ::prost::Oneof)]
1293 pub enum Option {
1294 #[prost(string, tag = "1")]
1296 FieldId(::prost::alloc::string::String),
1297 }
1298}
1299#[derive(Clone, PartialEq, ::prost::Message)]
1301pub struct MultiWorkbookTemplateReference {
1302 #[prost(oneof = "multi_workbook_template_reference::Option", tags = "1")]
1303 pub option: ::core::option::Option<multi_workbook_template_reference::Option>,
1304}
1305pub mod multi_workbook_template_reference {
1307 #[derive(Clone, PartialEq, ::prost::Message)]
1308 pub struct WorkbookTemplateReferenceList {
1309 #[prost(message, repeated, tag = "1")]
1310 pub references: ::prost::alloc::vec::Vec<super::WorkbookTemplateReference>,
1311 }
1312 #[derive(Clone, PartialEq, ::prost::Oneof)]
1313 pub enum Option {
1314 #[prost(message, tag = "1")]
1316 List(WorkbookTemplateReferenceList),
1317 }
1318}
1319#[derive(Clone, PartialEq, ::prost::Message)]
1321pub struct WorkbookTemplateReference {
1322 #[prost(oneof = "workbook_template_reference::Option", tags = "1")]
1323 pub option: ::core::option::Option<workbook_template_reference::Option>,
1324}
1325pub mod workbook_template_reference {
1327 #[derive(Clone, PartialEq, ::prost::Oneof)]
1328 pub enum Option {
1329 #[prost(string, tag = "1")]
1333 Rid(::prost::alloc::string::String),
1334 }
1335}
1336#[derive(Clone, PartialEq, ::prost::Message)]
1338pub struct MultiChecklistReference {
1339 #[prost(oneof = "multi_checklist_reference::Option", tags = "1")]
1340 pub option: ::core::option::Option<multi_checklist_reference::Option>,
1341}
1342pub mod multi_checklist_reference {
1344 #[derive(Clone, PartialEq, ::prost::Message)]
1345 pub struct ChecklistReferenceList {
1346 #[prost(message, repeated, tag = "1")]
1347 pub references: ::prost::alloc::vec::Vec<super::ChecklistReference>,
1348 }
1349 #[derive(Clone, PartialEq, ::prost::Oneof)]
1350 pub enum Option {
1351 #[prost(message, tag = "1")]
1353 List(ChecklistReferenceList),
1354 }
1355}
1356#[derive(Clone, PartialEq, ::prost::Message)]
1358pub struct ChecklistReference {
1359 #[prost(oneof = "checklist_reference::Option", tags = "1")]
1360 pub option: ::core::option::Option<checklist_reference::Option>,
1361}
1362pub mod checklist_reference {
1364 #[derive(Clone, PartialEq, ::prost::Oneof)]
1365 pub enum Option {
1366 #[prost(string, tag = "1")]
1370 Rid(::prost::alloc::string::String),
1371 }
1372}
1373#[derive(Clone, PartialEq, ::prost::Message)]
1375pub struct MultiIntegrationReference {
1376 #[prost(oneof = "multi_integration_reference::Option", tags = "1")]
1377 pub option: ::core::option::Option<multi_integration_reference::Option>,
1378}
1379pub mod multi_integration_reference {
1381 #[derive(Clone, PartialEq, ::prost::Message)]
1382 pub struct IntegrationReferenceList {
1383 #[prost(message, repeated, tag = "1")]
1384 pub references: ::prost::alloc::vec::Vec<super::IntegrationReference>,
1385 }
1386 #[derive(Clone, PartialEq, ::prost::Oneof)]
1387 pub enum Option {
1388 #[prost(message, tag = "1")]
1389 List(IntegrationReferenceList),
1390 }
1391}
1392#[derive(Clone, PartialEq, ::prost::Message)]
1394pub struct IntegrationReference {
1395 #[prost(oneof = "integration_reference::Option", tags = "1")]
1396 pub option: ::core::option::Option<integration_reference::Option>,
1397}
1398pub mod integration_reference {
1400 #[derive(Clone, PartialEq, ::prost::Oneof)]
1401 pub enum Option {
1402 #[prost(string, tag = "1")]
1406 Rid(::prost::alloc::string::String),
1407 }
1408}
1409#[derive(Clone, PartialEq, ::prost::Message)]
1411pub struct FormField {
1412 #[prost(string, tag = "1")]
1414 pub id: ::prost::alloc::string::String,
1415 #[prost(string, optional, tag = "11")]
1417 pub label: ::core::option::Option<::prost::alloc::string::String>,
1418 #[prost(string, optional, tag = "12")]
1420 pub description: ::core::option::Option<::prost::alloc::string::String>,
1421 #[prost(oneof = "form_field::Field", tags = "2, 3, 4, 5, 6, 7, 8, 9, 10")]
1422 pub field: ::core::option::Option<form_field::Field>,
1423}
1424pub mod form_field {
1426 #[derive(Clone, PartialEq, ::prost::Oneof)]
1427 pub enum Field {
1428 #[prost(message, tag = "2")]
1429 Asset(super::AssetField),
1430 #[prost(message, tag = "3")]
1431 Checkbox(super::CheckboxField),
1432 #[prost(message, tag = "4")]
1433 Text(super::TextField),
1434 #[prost(message, tag = "5")]
1435 Int(super::IntField),
1436 #[prost(message, tag = "6")]
1437 Double(super::DoubleField),
1438 #[prost(message, tag = "7")]
1439 SingleEnum(super::SingleEnumField),
1440 #[prost(message, tag = "8")]
1441 MultiEnum(super::MultiEnumField),
1442 #[prost(message, tag = "9")]
1443 FileUpload(super::FileUploadField),
1444 #[prost(message, tag = "10")]
1445 MultiFileUpload(super::MultiFileUploadField),
1446 }
1447}
1448#[derive(Clone, PartialEq, ::prost::Message)]
1450pub struct PresetAssetFieldOptions {
1451 #[prost(message, repeated, tag = "1")]
1453 pub options: ::prost::alloc::vec::Vec<AssetReference>,
1454 #[prost(message, optional, tag = "2")]
1457 pub default_option: ::core::option::Option<AssetReference>,
1458}
1459#[derive(Clone, PartialEq, ::prost::Message)]
1461pub struct AssetField {
1462 #[prost(string, tag = "1")]
1465 pub label: ::prost::alloc::string::String,
1466 #[prost(bool, tag = "2")]
1468 pub is_required: bool,
1469 #[prost(oneof = "asset_field::Options", tags = "3")]
1472 pub options: ::core::option::Option<asset_field::Options>,
1473}
1474pub mod asset_field {
1476 #[derive(Clone, PartialEq, ::prost::Oneof)]
1479 pub enum Options {
1480 #[prost(message, tag = "3")]
1485 PresetOptions(super::PresetAssetFieldOptions),
1486 }
1487}
1488#[derive(Clone, PartialEq, ::prost::Message)]
1490pub struct CheckboxField {
1491 #[prost(string, tag = "1")]
1494 pub label: ::prost::alloc::string::String,
1495 #[prost(bool, tag = "2")]
1497 pub is_required: bool,
1498}
1499#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1500pub struct TextFieldSimpleInputType {}
1501#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1502pub struct TextFieldMarkdownInputType {}
1503#[derive(Clone, PartialEq, ::prost::Message)]
1505pub struct TextField {
1506 #[prost(string, tag = "1")]
1509 pub label: ::prost::alloc::string::String,
1510 #[prost(uint32, optional, tag = "4")]
1513 pub min_length: ::core::option::Option<u32>,
1514 #[prost(uint32, optional, tag = "5")]
1516 pub max_length: ::core::option::Option<u32>,
1517 #[prost(oneof = "text_field::InputType", tags = "2, 3")]
1519 pub input_type: ::core::option::Option<text_field::InputType>,
1520}
1521pub mod text_field {
1523 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1525 pub enum InputType {
1526 #[prost(message, tag = "2")]
1528 Simple(super::TextFieldSimpleInputType),
1529 #[prost(message, tag = "3")]
1531 Markdown(super::TextFieldMarkdownInputType),
1532 }
1533}
1534#[derive(Clone, PartialEq, ::prost::Message)]
1536pub struct IntField {
1537 #[prost(string, tag = "1")]
1540 pub label: ::prost::alloc::string::String,
1541 #[prost(bool, tag = "2")]
1543 pub is_required: bool,
1544 #[prost(int64, optional, tag = "3")]
1546 pub gte_value: ::core::option::Option<i64>,
1547 #[prost(int64, optional, tag = "4")]
1549 pub lte_value: ::core::option::Option<i64>,
1550}
1551#[derive(Clone, PartialEq, ::prost::Message)]
1553pub struct DoubleField {
1554 #[prost(string, tag = "1")]
1557 pub label: ::prost::alloc::string::String,
1558 #[prost(bool, tag = "2")]
1560 pub is_required: bool,
1561 #[prost(oneof = "double_field::LowerBound", tags = "3, 4")]
1563 pub lower_bound: ::core::option::Option<double_field::LowerBound>,
1564 #[prost(oneof = "double_field::UpperBound", tags = "5, 6")]
1566 pub upper_bound: ::core::option::Option<double_field::UpperBound>,
1567}
1568pub mod double_field {
1570 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1572 pub enum LowerBound {
1573 #[prost(double, tag = "3")]
1575 GtValue(f64),
1576 #[prost(double, tag = "4")]
1578 GteValue(f64),
1579 }
1580 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1582 pub enum UpperBound {
1583 #[prost(double, tag = "5")]
1585 LtValue(f64),
1586 #[prost(double, tag = "6")]
1588 LteValue(f64),
1589 }
1590}
1591#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1592pub struct EnumFieldButtonsInputType {}
1593#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1594pub struct EnumFieldMenuInputType {}
1595#[derive(Clone, PartialEq, ::prost::Message)]
1597pub struct SingleEnumField {
1598 #[prost(string, tag = "1")]
1601 pub label: ::prost::alloc::string::String,
1602 #[prost(string, repeated, tag = "2")]
1604 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1605 #[prost(bool, tag = "5")]
1607 pub allow_custom: bool,
1608 #[prost(bool, tag = "6")]
1610 pub is_required: bool,
1611 #[prost(oneof = "single_enum_field::InputType", tags = "3, 4")]
1613 pub input_type: ::core::option::Option<single_enum_field::InputType>,
1614}
1615pub mod single_enum_field {
1617 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1619 pub enum InputType {
1620 #[prost(message, tag = "3")]
1622 Buttons(super::EnumFieldButtonsInputType),
1623 #[prost(message, tag = "4")]
1625 Dropdown(super::EnumFieldMenuInputType),
1626 }
1627}
1628#[derive(Clone, PartialEq, ::prost::Message)]
1630pub struct MultiEnumField {
1631 #[prost(string, tag = "1")]
1634 pub label: ::prost::alloc::string::String,
1635 #[prost(string, repeated, tag = "2")]
1637 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1638 #[prost(bool, tag = "6")]
1640 pub allow_custom: bool,
1641 #[prost(uint32, optional, tag = "7")]
1644 pub min_count: ::core::option::Option<u32>,
1645 #[prost(uint32, optional, tag = "8")]
1647 pub max_count: ::core::option::Option<u32>,
1648 #[prost(oneof = "multi_enum_field::InputType", tags = "3, 4")]
1650 pub input_type: ::core::option::Option<multi_enum_field::InputType>,
1651}
1652pub mod multi_enum_field {
1654 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1656 pub enum InputType {
1657 #[prost(message, tag = "3")]
1659 Buttons(super::EnumFieldButtonsInputType),
1660 #[prost(message, tag = "4")]
1662 Dropdown(super::EnumFieldMenuInputType),
1663 }
1664}
1665#[derive(Clone, PartialEq, ::prost::Message)]
1667pub struct FileUploadField {
1668 #[prost(bool, tag = "1")]
1670 pub is_required: bool,
1671 #[prost(string, repeated, tag = "2")]
1673 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1674}
1675#[derive(Clone, PartialEq, ::prost::Message)]
1677pub struct MultiFileUploadField {
1678 #[prost(uint32, optional, tag = "1")]
1680 pub min_count: ::core::option::Option<u32>,
1681 #[prost(uint32, optional, tag = "2")]
1683 pub max_count: ::core::option::Option<u32>,
1684 #[prost(string, repeated, tag = "3")]
1686 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1687}
1688#[derive(Clone, PartialEq, ::prost::Message)]
1690pub struct ProcedureMetadata {
1691 #[prost(string, tag = "1")]
1692 pub rid: ::prost::alloc::string::String,
1693 #[prost(string, tag = "2")]
1694 pub title: ::prost::alloc::string::String,
1695 #[prost(string, optional, tag = "3")]
1696 pub description: ::core::option::Option<::prost::alloc::string::String>,
1697 #[prost(string, repeated, tag = "4")]
1698 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1699 #[prost(map = "string, string", tag = "5")]
1700 pub properties: ::std::collections::HashMap<
1701 ::prost::alloc::string::String,
1702 ::prost::alloc::string::String,
1703 >,
1704 #[prost(bool, tag = "6")]
1705 pub is_archived: bool,
1706 #[prost(bool, tag = "7")]
1707 pub is_published: bool,
1708 #[prost(message, optional, tag = "8")]
1709 pub created_at: ::core::option::Option<
1710 super::super::super::google::protobuf::Timestamp,
1711 >,
1712 #[prost(string, tag = "9")]
1713 pub created_by: ::prost::alloc::string::String,
1714 #[prost(message, optional, tag = "10")]
1715 pub updated_at: ::core::option::Option<
1716 super::super::super::google::protobuf::Timestamp,
1717 >,
1718 #[prost(string, tag = "11")]
1719 pub updated_by: ::prost::alloc::string::String,
1720 #[prost(string, tag = "12")]
1721 pub workspace: ::prost::alloc::string::String,
1722}
1723#[derive(Clone, PartialEq, ::prost::Message)]
1725pub struct Procedure {
1726 #[prost(string, tag = "1")]
1728 pub rid: ::prost::alloc::string::String,
1729 #[prost(string, tag = "2")]
1731 pub commit: ::prost::alloc::string::String,
1732 #[prost(message, optional, tag = "3")]
1734 pub metadata: ::core::option::Option<ProcedureMetadata>,
1735 #[prost(message, optional, tag = "4")]
1737 pub state: ::core::option::Option<ProcedureState>,
1738}
1739#[derive(Clone, PartialEq, ::prost::Message)]
1740pub struct CreateProcedureRequest {
1741 #[prost(string, tag = "1")]
1742 pub title: ::prost::alloc::string::String,
1743 #[prost(string, optional, tag = "2")]
1744 pub description: ::core::option::Option<::prost::alloc::string::String>,
1745 #[prost(string, repeated, tag = "3")]
1746 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1747 #[prost(map = "string, string", tag = "4")]
1748 pub properties: ::std::collections::HashMap<
1749 ::prost::alloc::string::String,
1750 ::prost::alloc::string::String,
1751 >,
1752 #[prost(message, optional, tag = "5")]
1753 pub state: ::core::option::Option<ProcedureState>,
1754 #[prost(bool, optional, tag = "6")]
1755 pub is_published: ::core::option::Option<bool>,
1756 #[prost(string, tag = "7")]
1757 pub workspace: ::prost::alloc::string::String,
1758 #[prost(string, tag = "8")]
1759 pub commit_message: ::prost::alloc::string::String,
1760 #[prost(string, optional, tag = "9")]
1761 pub initial_branch_name: ::core::option::Option<::prost::alloc::string::String>,
1762}
1763#[derive(Clone, PartialEq, ::prost::Message)]
1764pub struct CreateProcedureResponse {
1765 #[prost(message, optional, tag = "1")]
1766 pub procedure: ::core::option::Option<Procedure>,
1767 #[prost(string, optional, tag = "2")]
1768 pub branch_name: ::core::option::Option<::prost::alloc::string::String>,
1769}
1770#[derive(Clone, PartialEq, ::prost::Message)]
1771pub struct GetProcedureRequest {
1772 #[prost(string, tag = "1")]
1773 pub rid: ::prost::alloc::string::String,
1774 #[prost(message, optional, tag = "2")]
1775 pub branch_or_commit: ::core::option::Option<
1776 super::super::versioning::v1::BranchOrCommit,
1777 >,
1778 #[prost(bool, tag = "3")]
1781 pub include_display_graph: bool,
1782}
1783#[derive(Clone, PartialEq, ::prost::Message)]
1784pub struct GetProcedureResponse {
1785 #[prost(message, optional, tag = "1")]
1786 pub procedure: ::core::option::Option<Procedure>,
1787 #[prost(message, optional, tag = "2")]
1789 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1790}
1791#[derive(Clone, PartialEq, ::prost::Message)]
1792pub struct BatchGetProcedureMetadataRequest {
1793 #[prost(string, repeated, tag = "1")]
1794 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1795}
1796#[derive(Clone, PartialEq, ::prost::Message)]
1797pub struct BatchGetProcedureMetadataResponse {
1798 #[prost(message, repeated, tag = "1")]
1799 pub procedure_metadatas: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1800}
1801#[derive(Clone, PartialEq, ::prost::Message)]
1802pub struct UpdateProcedureMetadataRequest {
1803 #[prost(string, tag = "1")]
1804 pub rid: ::prost::alloc::string::String,
1805 #[prost(string, optional, tag = "2")]
1806 pub title: ::core::option::Option<::prost::alloc::string::String>,
1807 #[prost(string, optional, tag = "3")]
1808 pub description: ::core::option::Option<::prost::alloc::string::String>,
1809 #[prost(message, optional, tag = "4")]
1810 pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
1811 #[prost(message, optional, tag = "5")]
1812 pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
1813 #[prost(bool, optional, tag = "6")]
1814 pub is_archived: ::core::option::Option<bool>,
1815 #[prost(bool, optional, tag = "7")]
1816 pub is_published: ::core::option::Option<bool>,
1817}
1818#[derive(Clone, PartialEq, ::prost::Message)]
1819pub struct UpdateProcedureMetadataResponse {
1820 #[prost(message, optional, tag = "1")]
1821 pub procedure_metadata: ::core::option::Option<ProcedureMetadata>,
1822}
1823#[derive(Clone, PartialEq, ::prost::Message)]
1824pub struct ParseNestedProcedureRequest {
1825 #[prost(message, optional, tag = "1")]
1826 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1827 #[prost(bool, tag = "3")]
1830 pub include_display_graph: bool,
1831}
1832#[derive(Clone, PartialEq, ::prost::Message)]
1833pub struct ParseNestedProcedureResponse {
1834 #[prost(message, optional, tag = "1")]
1835 pub procedure: ::core::option::Option<Procedure>,
1836 #[prost(message, optional, tag = "2")]
1838 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1839}
1840#[derive(Clone, PartialEq, ::prost::Message)]
1841pub struct GetProcedureAsNestedRequest {
1842 #[prost(string, tag = "1")]
1843 pub rid: ::prost::alloc::string::String,
1844 #[prost(message, optional, tag = "2")]
1845 pub branch_or_commit: ::core::option::Option<
1846 super::super::versioning::v1::BranchOrCommit,
1847 >,
1848}
1849#[derive(Clone, PartialEq, ::prost::Message)]
1850pub struct GetProcedureAsNestedResponse {
1851 #[prost(message, optional, tag = "1")]
1852 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1853}
1854#[derive(Clone, PartialEq, ::prost::Message)]
1855pub struct MergeToMainRequest {
1856 #[prost(string, tag = "1")]
1857 pub rid: ::prost::alloc::string::String,
1858 #[prost(string, tag = "2")]
1859 pub branch: ::prost::alloc::string::String,
1860 #[prost(string, optional, tag = "3")]
1862 pub latest_commit_on_main: ::core::option::Option<::prost::alloc::string::String>,
1863 #[prost(string, tag = "4")]
1864 pub message: ::prost::alloc::string::String,
1865}
1866#[derive(Clone, PartialEq, ::prost::Message)]
1867pub struct MergeToMainResponse {
1868 #[prost(message, optional, tag = "1")]
1869 pub procedure: ::core::option::Option<Procedure>,
1870}
1871#[derive(Clone, PartialEq, ::prost::Message)]
1872pub struct SaveWorkingStateRequest {
1873 #[prost(string, tag = "1")]
1874 pub rid: ::prost::alloc::string::String,
1875 #[prost(string, optional, tag = "2")]
1876 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1877 #[prost(string, tag = "3")]
1878 pub message: ::prost::alloc::string::String,
1879 #[prost(string, optional, tag = "4")]
1881 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1882 #[prost(message, optional, tag = "5")]
1883 pub state: ::core::option::Option<ProcedureState>,
1884}
1885#[derive(Clone, PartialEq, ::prost::Message)]
1886pub struct SaveWorkingStateResponse {
1887 #[prost(message, optional, tag = "1")]
1888 pub procedure: ::core::option::Option<Procedure>,
1889}
1890#[derive(Clone, PartialEq, ::prost::Message)]
1891pub struct CommitRequest {
1892 #[prost(string, tag = "1")]
1893 pub rid: ::prost::alloc::string::String,
1894 #[prost(string, optional, tag = "2")]
1895 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1896 #[prost(string, optional, tag = "3")]
1898 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1899 #[prost(string, tag = "4")]
1900 pub message: ::prost::alloc::string::String,
1901 #[prost(message, optional, tag = "5")]
1902 pub state: ::core::option::Option<ProcedureState>,
1903}
1904#[derive(Clone, PartialEq, ::prost::Message)]
1905pub struct CommitResponse {
1906 #[prost(message, optional, tag = "1")]
1907 pub procedure: ::core::option::Option<Procedure>,
1908}
1909#[derive(Clone, PartialEq, ::prost::Message)]
1910pub struct ProcedureSearchQuery {
1911 #[prost(oneof = "procedure_search_query::Query", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
1912 pub query: ::core::option::Option<procedure_search_query::Query>,
1913}
1914pub mod procedure_search_query {
1916 #[derive(Clone, PartialEq, ::prost::Message)]
1917 pub struct ProcedureSearchAndQuery {
1918 #[prost(message, repeated, tag = "1")]
1919 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1920 }
1921 #[derive(Clone, PartialEq, ::prost::Message)]
1922 pub struct ProcedureSearchOrQuery {
1923 #[prost(message, repeated, tag = "1")]
1924 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1925 }
1926 #[derive(Clone, PartialEq, ::prost::Oneof)]
1927 pub enum Query {
1928 #[prost(string, tag = "1")]
1929 SearchText(::prost::alloc::string::String),
1930 #[prost(string, tag = "2")]
1931 Label(::prost::alloc::string::String),
1932 #[prost(message, tag = "3")]
1933 Property(super::super::super::types::Property),
1934 #[prost(message, tag = "4")]
1935 And(ProcedureSearchAndQuery),
1936 #[prost(message, tag = "5")]
1937 Or(ProcedureSearchOrQuery),
1938 #[prost(string, tag = "6")]
1939 Workspace(::prost::alloc::string::String),
1940 #[prost(string, tag = "7")]
1941 CreatedBy(::prost::alloc::string::String),
1942 #[prost(bool, tag = "8")]
1943 IsArchived(bool),
1944 }
1945}
1946#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1947pub struct SearchProceduresSortOptions {
1948 #[prost(bool, optional, tag = "1")]
1950 pub is_descending: ::core::option::Option<bool>,
1951 #[prost(enumeration = "SearchProceduresSortField", optional, tag = "2")]
1953 pub sort_field: ::core::option::Option<i32>,
1954}
1955#[derive(Clone, PartialEq, ::prost::Message)]
1956pub struct SearchProceduresRequest {
1957 #[prost(message, optional, tag = "1")]
1958 pub query: ::core::option::Option<ProcedureSearchQuery>,
1959 #[prost(message, optional, tag = "2")]
1961 pub sort_options: ::core::option::Option<SearchProceduresSortOptions>,
1962 #[prost(int32, optional, tag = "3")]
1964 pub page_size: ::core::option::Option<i32>,
1965 #[prost(string, optional, tag = "4")]
1966 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1967}
1968#[derive(Clone, PartialEq, ::prost::Message)]
1969pub struct SearchProceduresResponse {
1970 #[prost(message, repeated, tag = "1")]
1971 pub procedure_metadata: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1972 #[prost(string, optional, tag = "2")]
1973 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1974}
1975#[derive(Clone, PartialEq, ::prost::Message)]
1976pub struct ArchiveProceduresRequest {
1977 #[prost(string, repeated, tag = "1")]
1978 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1979}
1980#[derive(Clone, PartialEq, ::prost::Message)]
1981pub struct ArchiveProceduresResponse {
1982 #[prost(string, repeated, tag = "1")]
1983 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1984}
1985#[derive(Clone, PartialEq, ::prost::Message)]
1986pub struct UnarchiveProceduresRequest {
1987 #[prost(string, repeated, tag = "1")]
1988 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1989}
1990#[derive(Clone, PartialEq, ::prost::Message)]
1991pub struct UnarchiveProceduresResponse {
1992 #[prost(string, repeated, tag = "1")]
1993 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1994}
1995#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1996#[repr(i32)]
1997pub enum SearchProceduresSortField {
1998 Unspecified = 0,
1999 Name = 1,
2000 CreatedAt = 2,
2001 UpdatedAt = 3,
2002}
2003impl SearchProceduresSortField {
2004 pub fn as_str_name(&self) -> &'static str {
2009 match self {
2010 Self::Unspecified => "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED",
2011 Self::Name => "SEARCH_PROCEDURES_SORT_FIELD_NAME",
2012 Self::CreatedAt => "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT",
2013 Self::UpdatedAt => "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT",
2014 }
2015 }
2016 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2018 match value {
2019 "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
2020 "SEARCH_PROCEDURES_SORT_FIELD_NAME" => Some(Self::Name),
2021 "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
2022 "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
2023 _ => None,
2024 }
2025 }
2026}
2027#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2028#[repr(i32)]
2029pub enum ProceduresServiceError {
2030 Unspecified = 0,
2031 NotFound = 1,
2032 CommitNotFound = 2,
2033 CannotMergeMain = 3,
2034 CannotCommitToArchivedProcedure = 4,
2035 InvalidGraph = 5,
2036 InvalidSearchToken = 6,
2037}
2038impl ProceduresServiceError {
2039 pub fn as_str_name(&self) -> &'static str {
2044 match self {
2045 Self::Unspecified => "PROCEDURES_SERVICE_ERROR_UNSPECIFIED",
2046 Self::NotFound => "PROCEDURES_SERVICE_ERROR_NOT_FOUND",
2047 Self::CommitNotFound => "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND",
2048 Self::CannotMergeMain => "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN",
2049 Self::CannotCommitToArchivedProcedure => {
2050 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE"
2051 }
2052 Self::InvalidGraph => "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH",
2053 Self::InvalidSearchToken => "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN",
2054 }
2055 }
2056 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2058 match value {
2059 "PROCEDURES_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
2060 "PROCEDURES_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
2061 "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND" => Some(Self::CommitNotFound),
2062 "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN" => Some(Self::CannotMergeMain),
2063 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE" => {
2064 Some(Self::CannotCommitToArchivedProcedure)
2065 }
2066 "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH" => Some(Self::InvalidGraph),
2067 "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
2068 Some(Self::InvalidSearchToken)
2069 }
2070 _ => None,
2071 }
2072 }
2073}
2074pub mod procedures_service_client {
2076 #![allow(
2077 unused_variables,
2078 dead_code,
2079 missing_docs,
2080 clippy::wildcard_imports,
2081 clippy::let_unit_value,
2082 )]
2083 use tonic::codegen::*;
2084 use tonic::codegen::http::Uri;
2085 #[derive(Debug, Clone)]
2088 pub struct ProceduresServiceClient<T> {
2089 inner: tonic::client::Grpc<T>,
2090 }
2091 impl ProceduresServiceClient<tonic::transport::Channel> {
2092 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
2094 where
2095 D: TryInto<tonic::transport::Endpoint>,
2096 D::Error: Into<StdError>,
2097 {
2098 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
2099 Ok(Self::new(conn))
2100 }
2101 }
2102 impl<T> ProceduresServiceClient<T>
2103 where
2104 T: tonic::client::GrpcService<tonic::body::Body>,
2105 T::Error: Into<StdError>,
2106 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
2107 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
2108 {
2109 pub fn new(inner: T) -> Self {
2110 let inner = tonic::client::Grpc::new(inner);
2111 Self { inner }
2112 }
2113 pub fn with_origin(inner: T, origin: Uri) -> Self {
2114 let inner = tonic::client::Grpc::with_origin(inner, origin);
2115 Self { inner }
2116 }
2117 pub fn with_interceptor<F>(
2118 inner: T,
2119 interceptor: F,
2120 ) -> ProceduresServiceClient<InterceptedService<T, F>>
2121 where
2122 F: tonic::service::Interceptor,
2123 T::ResponseBody: Default,
2124 T: tonic::codegen::Service<
2125 http::Request<tonic::body::Body>,
2126 Response = http::Response<
2127 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
2128 >,
2129 >,
2130 <T as tonic::codegen::Service<
2131 http::Request<tonic::body::Body>,
2132 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
2133 {
2134 ProceduresServiceClient::new(InterceptedService::new(inner, interceptor))
2135 }
2136 #[must_use]
2141 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
2142 self.inner = self.inner.send_compressed(encoding);
2143 self
2144 }
2145 #[must_use]
2147 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
2148 self.inner = self.inner.accept_compressed(encoding);
2149 self
2150 }
2151 #[must_use]
2155 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
2156 self.inner = self.inner.max_decoding_message_size(limit);
2157 self
2158 }
2159 #[must_use]
2163 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
2164 self.inner = self.inner.max_encoding_message_size(limit);
2165 self
2166 }
2167 pub async fn create_procedure(
2169 &mut self,
2170 request: impl tonic::IntoRequest<super::CreateProcedureRequest>,
2171 ) -> std::result::Result<
2172 tonic::Response<super::CreateProcedureResponse>,
2173 tonic::Status,
2174 > {
2175 self.inner
2176 .ready()
2177 .await
2178 .map_err(|e| {
2179 tonic::Status::unknown(
2180 format!("Service was not ready: {}", e.into()),
2181 )
2182 })?;
2183 let codec = tonic::codec::ProstCodec::default();
2184 let path = http::uri::PathAndQuery::from_static(
2185 "/nominal.procedures.v1.ProceduresService/CreateProcedure",
2186 );
2187 let mut req = request.into_request();
2188 req.extensions_mut()
2189 .insert(
2190 GrpcMethod::new(
2191 "nominal.procedures.v1.ProceduresService",
2192 "CreateProcedure",
2193 ),
2194 );
2195 self.inner.unary(req, path, codec).await
2196 }
2197 pub async fn get_procedure(
2199 &mut self,
2200 request: impl tonic::IntoRequest<super::GetProcedureRequest>,
2201 ) -> std::result::Result<
2202 tonic::Response<super::GetProcedureResponse>,
2203 tonic::Status,
2204 > {
2205 self.inner
2206 .ready()
2207 .await
2208 .map_err(|e| {
2209 tonic::Status::unknown(
2210 format!("Service was not ready: {}", e.into()),
2211 )
2212 })?;
2213 let codec = tonic::codec::ProstCodec::default();
2214 let path = http::uri::PathAndQuery::from_static(
2215 "/nominal.procedures.v1.ProceduresService/GetProcedure",
2216 );
2217 let mut req = request.into_request();
2218 req.extensions_mut()
2219 .insert(
2220 GrpcMethod::new(
2221 "nominal.procedures.v1.ProceduresService",
2222 "GetProcedure",
2223 ),
2224 );
2225 self.inner.unary(req, path, codec).await
2226 }
2227 pub async fn batch_get_procedure_metadata(
2231 &mut self,
2232 request: impl tonic::IntoRequest<super::BatchGetProcedureMetadataRequest>,
2233 ) -> std::result::Result<
2234 tonic::Response<super::BatchGetProcedureMetadataResponse>,
2235 tonic::Status,
2236 > {
2237 self.inner
2238 .ready()
2239 .await
2240 .map_err(|e| {
2241 tonic::Status::unknown(
2242 format!("Service was not ready: {}", e.into()),
2243 )
2244 })?;
2245 let codec = tonic::codec::ProstCodec::default();
2246 let path = http::uri::PathAndQuery::from_static(
2247 "/nominal.procedures.v1.ProceduresService/BatchGetProcedureMetadata",
2248 );
2249 let mut req = request.into_request();
2250 req.extensions_mut()
2251 .insert(
2252 GrpcMethod::new(
2253 "nominal.procedures.v1.ProceduresService",
2254 "BatchGetProcedureMetadata",
2255 ),
2256 );
2257 self.inner.unary(req, path, codec).await
2258 }
2259 pub async fn update_procedure_metadata(
2261 &mut self,
2262 request: impl tonic::IntoRequest<super::UpdateProcedureMetadataRequest>,
2263 ) -> std::result::Result<
2264 tonic::Response<super::UpdateProcedureMetadataResponse>,
2265 tonic::Status,
2266 > {
2267 self.inner
2268 .ready()
2269 .await
2270 .map_err(|e| {
2271 tonic::Status::unknown(
2272 format!("Service was not ready: {}", e.into()),
2273 )
2274 })?;
2275 let codec = tonic::codec::ProstCodec::default();
2276 let path = http::uri::PathAndQuery::from_static(
2277 "/nominal.procedures.v1.ProceduresService/UpdateProcedureMetadata",
2278 );
2279 let mut req = request.into_request();
2280 req.extensions_mut()
2281 .insert(
2282 GrpcMethod::new(
2283 "nominal.procedures.v1.ProceduresService",
2284 "UpdateProcedureMetadata",
2285 ),
2286 );
2287 self.inner.unary(req, path, codec).await
2288 }
2289 pub async fn parse_nested_procedure(
2291 &mut self,
2292 request: impl tonic::IntoRequest<super::ParseNestedProcedureRequest>,
2293 ) -> std::result::Result<
2294 tonic::Response<super::ParseNestedProcedureResponse>,
2295 tonic::Status,
2296 > {
2297 self.inner
2298 .ready()
2299 .await
2300 .map_err(|e| {
2301 tonic::Status::unknown(
2302 format!("Service was not ready: {}", e.into()),
2303 )
2304 })?;
2305 let codec = tonic::codec::ProstCodec::default();
2306 let path = http::uri::PathAndQuery::from_static(
2307 "/nominal.procedures.v1.ProceduresService/ParseNestedProcedure",
2308 );
2309 let mut req = request.into_request();
2310 req.extensions_mut()
2311 .insert(
2312 GrpcMethod::new(
2313 "nominal.procedures.v1.ProceduresService",
2314 "ParseNestedProcedure",
2315 ),
2316 );
2317 self.inner.unary(req, path, codec).await
2318 }
2319 pub async fn get_procedure_as_nested(
2322 &mut self,
2323 request: impl tonic::IntoRequest<super::GetProcedureAsNestedRequest>,
2324 ) -> std::result::Result<
2325 tonic::Response<super::GetProcedureAsNestedResponse>,
2326 tonic::Status,
2327 > {
2328 self.inner
2329 .ready()
2330 .await
2331 .map_err(|e| {
2332 tonic::Status::unknown(
2333 format!("Service was not ready: {}", e.into()),
2334 )
2335 })?;
2336 let codec = tonic::codec::ProstCodec::default();
2337 let path = http::uri::PathAndQuery::from_static(
2338 "/nominal.procedures.v1.ProceduresService/GetProcedureAsNested",
2339 );
2340 let mut req = request.into_request();
2341 req.extensions_mut()
2342 .insert(
2343 GrpcMethod::new(
2344 "nominal.procedures.v1.ProceduresService",
2345 "GetProcedureAsNested",
2346 ),
2347 );
2348 self.inner.unary(req, path, codec).await
2349 }
2350 pub async fn merge_to_main(
2352 &mut self,
2353 request: impl tonic::IntoRequest<super::MergeToMainRequest>,
2354 ) -> std::result::Result<
2355 tonic::Response<super::MergeToMainResponse>,
2356 tonic::Status,
2357 > {
2358 self.inner
2359 .ready()
2360 .await
2361 .map_err(|e| {
2362 tonic::Status::unknown(
2363 format!("Service was not ready: {}", e.into()),
2364 )
2365 })?;
2366 let codec = tonic::codec::ProstCodec::default();
2367 let path = http::uri::PathAndQuery::from_static(
2368 "/nominal.procedures.v1.ProceduresService/MergeToMain",
2369 );
2370 let mut req = request.into_request();
2371 req.extensions_mut()
2372 .insert(
2373 GrpcMethod::new(
2374 "nominal.procedures.v1.ProceduresService",
2375 "MergeToMain",
2376 ),
2377 );
2378 self.inner.unary(req, path, codec).await
2379 }
2380 pub async fn save_working_state(
2382 &mut self,
2383 request: impl tonic::IntoRequest<super::SaveWorkingStateRequest>,
2384 ) -> std::result::Result<
2385 tonic::Response<super::SaveWorkingStateResponse>,
2386 tonic::Status,
2387 > {
2388 self.inner
2389 .ready()
2390 .await
2391 .map_err(|e| {
2392 tonic::Status::unknown(
2393 format!("Service was not ready: {}", e.into()),
2394 )
2395 })?;
2396 let codec = tonic::codec::ProstCodec::default();
2397 let path = http::uri::PathAndQuery::from_static(
2398 "/nominal.procedures.v1.ProceduresService/SaveWorkingState",
2399 );
2400 let mut req = request.into_request();
2401 req.extensions_mut()
2402 .insert(
2403 GrpcMethod::new(
2404 "nominal.procedures.v1.ProceduresService",
2405 "SaveWorkingState",
2406 ),
2407 );
2408 self.inner.unary(req, path, codec).await
2409 }
2410 pub async fn commit(
2412 &mut self,
2413 request: impl tonic::IntoRequest<super::CommitRequest>,
2414 ) -> std::result::Result<tonic::Response<super::CommitResponse>, tonic::Status> {
2415 self.inner
2416 .ready()
2417 .await
2418 .map_err(|e| {
2419 tonic::Status::unknown(
2420 format!("Service was not ready: {}", e.into()),
2421 )
2422 })?;
2423 let codec = tonic::codec::ProstCodec::default();
2424 let path = http::uri::PathAndQuery::from_static(
2425 "/nominal.procedures.v1.ProceduresService/Commit",
2426 );
2427 let mut req = request.into_request();
2428 req.extensions_mut()
2429 .insert(
2430 GrpcMethod::new("nominal.procedures.v1.ProceduresService", "Commit"),
2431 );
2432 self.inner.unary(req, path, codec).await
2433 }
2434 pub async fn search_procedures(
2436 &mut self,
2437 request: impl tonic::IntoRequest<super::SearchProceduresRequest>,
2438 ) -> std::result::Result<
2439 tonic::Response<super::SearchProceduresResponse>,
2440 tonic::Status,
2441 > {
2442 self.inner
2443 .ready()
2444 .await
2445 .map_err(|e| {
2446 tonic::Status::unknown(
2447 format!("Service was not ready: {}", e.into()),
2448 )
2449 })?;
2450 let codec = tonic::codec::ProstCodec::default();
2451 let path = http::uri::PathAndQuery::from_static(
2452 "/nominal.procedures.v1.ProceduresService/SearchProcedures",
2453 );
2454 let mut req = request.into_request();
2455 req.extensions_mut()
2456 .insert(
2457 GrpcMethod::new(
2458 "nominal.procedures.v1.ProceduresService",
2459 "SearchProcedures",
2460 ),
2461 );
2462 self.inner.unary(req, path, codec).await
2463 }
2464 pub async fn archive_procedures(
2466 &mut self,
2467 request: impl tonic::IntoRequest<super::ArchiveProceduresRequest>,
2468 ) -> std::result::Result<
2469 tonic::Response<super::ArchiveProceduresResponse>,
2470 tonic::Status,
2471 > {
2472 self.inner
2473 .ready()
2474 .await
2475 .map_err(|e| {
2476 tonic::Status::unknown(
2477 format!("Service was not ready: {}", e.into()),
2478 )
2479 })?;
2480 let codec = tonic::codec::ProstCodec::default();
2481 let path = http::uri::PathAndQuery::from_static(
2482 "/nominal.procedures.v1.ProceduresService/ArchiveProcedures",
2483 );
2484 let mut req = request.into_request();
2485 req.extensions_mut()
2486 .insert(
2487 GrpcMethod::new(
2488 "nominal.procedures.v1.ProceduresService",
2489 "ArchiveProcedures",
2490 ),
2491 );
2492 self.inner.unary(req, path, codec).await
2493 }
2494 pub async fn unarchive_procedures(
2496 &mut self,
2497 request: impl tonic::IntoRequest<super::UnarchiveProceduresRequest>,
2498 ) -> std::result::Result<
2499 tonic::Response<super::UnarchiveProceduresResponse>,
2500 tonic::Status,
2501 > {
2502 self.inner
2503 .ready()
2504 .await
2505 .map_err(|e| {
2506 tonic::Status::unknown(
2507 format!("Service was not ready: {}", e.into()),
2508 )
2509 })?;
2510 let codec = tonic::codec::ProstCodec::default();
2511 let path = http::uri::PathAndQuery::from_static(
2512 "/nominal.procedures.v1.ProceduresService/UnarchiveProcedures",
2513 );
2514 let mut req = request.into_request();
2515 req.extensions_mut()
2516 .insert(
2517 GrpcMethod::new(
2518 "nominal.procedures.v1.ProceduresService",
2519 "UnarchiveProcedures",
2520 ),
2521 );
2522 self.inner.unary(req, path, codec).await
2523 }
2524 }
2525}