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)]
316pub struct ChannelValidationSuccessCondition {
317 #[prost(message, optional, tag = "1")]
319 pub channel: ::core::option::Option<
320 channel_validation_success_condition::ChannelLocator,
321 >,
322 #[prost(enumeration = "channel_validation_success_condition::Comparator", tag = "2")]
325 pub comparator: i32,
326 #[prost(double, tag = "3")]
331 pub threshold: f64,
332 #[prost(int32, tag = "4")]
336 pub timeout_millis: i32,
337 #[prost(uint32, optional, tag = "5")]
339 pub point_persistence: ::core::option::Option<u32>,
340 #[prost(uint32, optional, tag = "6")]
342 pub time_persistence: ::core::option::Option<u32>,
343}
344pub mod channel_validation_success_condition {
346 #[derive(Clone, PartialEq, ::prost::Message)]
352 pub struct ChannelLocator {
353 #[prost(string, tag = "1")]
357 pub data_source_ref: ::prost::alloc::string::String,
358 #[prost(string, tag = "2")]
361 pub channel_name: ::prost::alloc::string::String,
362 #[prost(map = "string, string", tag = "3")]
366 pub tags: ::std::collections::HashMap<
367 ::prost::alloc::string::String,
368 ::prost::alloc::string::String,
369 >,
370 #[prost(oneof = "channel_locator::AssetOrRun", tags = "4, 5")]
373 pub asset_or_run: ::core::option::Option<channel_locator::AssetOrRun>,
374 }
375 pub mod channel_locator {
377 #[derive(Clone, PartialEq, ::prost::Oneof)]
380 pub enum AssetOrRun {
381 #[prost(message, tag = "4")]
382 Asset(super::super::AssetReference),
383 #[prost(message, tag = "5")]
384 Run(super::super::RunReference),
385 }
386 }
387 #[derive(
394 Clone,
395 Copy,
396 Debug,
397 PartialEq,
398 Eq,
399 Hash,
400 PartialOrd,
401 Ord,
402 ::prost::Enumeration
403 )]
404 #[repr(i32)]
405 pub enum Comparator {
406 Unspecified = 0,
409 GreaterThan = 1,
410 GreaterThanOrEqual = 2,
411 LessThan = 3,
412 LessThanOrEqual = 4,
413 Equal = 5,
414 NotEqual = 6,
415 }
416 impl Comparator {
417 pub fn as_str_name(&self) -> &'static str {
422 match self {
423 Self::Unspecified => "COMPARATOR_UNSPECIFIED",
424 Self::GreaterThan => "COMPARATOR_GREATER_THAN",
425 Self::GreaterThanOrEqual => "COMPARATOR_GREATER_THAN_OR_EQUAL",
426 Self::LessThan => "COMPARATOR_LESS_THAN",
427 Self::LessThanOrEqual => "COMPARATOR_LESS_THAN_OR_EQUAL",
428 Self::Equal => "COMPARATOR_EQUAL",
429 Self::NotEqual => "COMPARATOR_NOT_EQUAL",
430 }
431 }
432 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
434 match value {
435 "COMPARATOR_UNSPECIFIED" => Some(Self::Unspecified),
436 "COMPARATOR_GREATER_THAN" => Some(Self::GreaterThan),
437 "COMPARATOR_GREATER_THAN_OR_EQUAL" => Some(Self::GreaterThanOrEqual),
438 "COMPARATOR_LESS_THAN" => Some(Self::LessThan),
439 "COMPARATOR_LESS_THAN_OR_EQUAL" => Some(Self::LessThanOrEqual),
440 "COMPARATOR_EQUAL" => Some(Self::Equal),
441 "COMPARATOR_NOT_EQUAL" => Some(Self::NotEqual),
442 _ => None,
443 }
444 }
445 }
446}
447#[derive(Clone, PartialEq, ::prost::Message)]
457pub struct WebhookSuccessCondition {
458 #[prost(string, tag = "1")]
460 pub integration_rid: ::prost::alloc::string::String,
461 #[prost(message, optional, tag = "2")]
463 pub delivery_config: ::core::option::Option<WebhookDeliveryConfig>,
464 #[prost(string, tag = "3")]
466 pub event_type: ::prost::alloc::string::String,
467 #[prost(string, tag = "4")]
498 pub payload_template: ::prost::alloc::string::String,
499}
500#[derive(Clone, Copy, PartialEq, ::prost::Message)]
502pub struct WebhookDeliveryConfig {
503 #[prost(int32, optional, tag = "1")]
505 pub max_retries: ::core::option::Option<i32>,
506 #[prost(int64, optional, tag = "2")]
508 pub retry_interval_seconds: ::core::option::Option<i64>,
509 #[prost(bool, optional, tag = "3")]
511 pub exponential_backoff: ::core::option::Option<bool>,
512 #[prost(int64, optional, tag = "4")]
514 pub max_retry_interval_seconds: ::core::option::Option<i64>,
515 #[prost(int64, optional, tag = "5")]
517 pub timeout_seconds: ::core::option::Option<i64>,
518}
519#[derive(Clone, PartialEq, ::prost::Message)]
527pub struct CompletionActionConfig {
528 #[prost(oneof = "completion_action_config::Config", tags = "1, 2, 3, 4, 5")]
529 pub config: ::core::option::Option<completion_action_config::Config>,
530}
531pub mod completion_action_config {
533 #[derive(Clone, PartialEq, ::prost::Oneof)]
534 pub enum Config {
535 #[prost(message, tag = "1")]
536 CreateEvent(super::CreateEventConfig),
537 #[prost(message, tag = "2")]
538 SendNotification(super::SendNotificationConfig),
539 #[prost(message, tag = "3")]
540 CreateRun(super::CreateRunConfig),
541 #[prost(message, tag = "4")]
542 ApplyWorkbookTemplates(super::ApplyWorkbookTemplatesConfig),
543 #[prost(message, tag = "5")]
545 ApplyChecklists(super::ApplyChecklistsConfig),
546 }
547}
548#[derive(Clone, PartialEq, ::prost::Message)]
554pub struct CreateEventConfig {
555 #[prost(string, tag = "1")]
556 pub name: ::prost::alloc::string::String,
557 #[prost(string, optional, tag = "2")]
558 pub description: ::core::option::Option<::prost::alloc::string::String>,
559 #[prost(string, repeated, tag = "3")]
560 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
561 #[prost(map = "string, string", tag = "4")]
564 pub properties: ::std::collections::HashMap<
565 ::prost::alloc::string::String,
566 ::prost::alloc::string::String,
567 >,
568 #[prost(string, repeated, tag = "5")]
571 pub asset_field_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
572 #[prost(message, repeated, tag = "6")]
577 pub asset_references: ::prost::alloc::vec::Vec<AssetReference>,
578 #[prost(message, repeated, tag = "7")]
580 pub property_refs: ::prost::alloc::vec::Vec<PropertyReference>,
581}
582#[derive(Clone, PartialEq, ::prost::Message)]
584pub struct SendNotificationConfig {
585 #[prost(message, optional, tag = "1")]
587 pub integrations: ::core::option::Option<MultiIntegrationReference>,
588 #[prost(message, optional, tag = "2")]
590 pub title: ::core::option::Option<StringReference>,
591 #[prost(message, optional, tag = "3")]
597 pub message: ::core::option::Option<StringReference>,
598}
599#[derive(Clone, PartialEq, ::prost::Message)]
601pub struct CreateRunConfig {
602 #[prost(string, optional, tag = "1")]
604 pub run_output_field_id: ::core::option::Option<::prost::alloc::string::String>,
605 #[prost(message, optional, tag = "2")]
607 pub assets: ::core::option::Option<MultiAssetReference>,
608 #[prost(message, optional, tag = "3")]
610 pub name: ::core::option::Option<StringReference>,
611 #[prost(message, optional, tag = "4")]
613 pub description: ::core::option::Option<StringReference>,
614 #[prost(message, optional, tag = "5")]
616 pub time_range: ::core::option::Option<TimeRangeReference>,
617 #[prost(message, optional, tag = "6")]
619 pub labels: ::core::option::Option<MultiStringReference>,
620 #[prost(message, repeated, tag = "7")]
625 pub properties: ::prost::alloc::vec::Vec<create_run_config::Property>,
626}
627pub mod create_run_config {
629 #[derive(Clone, PartialEq, ::prost::Message)]
630 pub struct Property {
631 #[prost(message, optional, tag = "1")]
632 pub key: ::core::option::Option<super::StringReference>,
633 #[prost(message, optional, tag = "2")]
634 pub value: ::core::option::Option<super::StringReference>,
635 }
636}
637#[derive(Clone, PartialEq, ::prost::Message)]
638pub struct PropertyReference {
639 #[prost(message, optional, tag = "1")]
640 pub key: ::core::option::Option<StringReference>,
641 #[prost(message, optional, tag = "2")]
642 pub value: ::core::option::Option<StringReference>,
643}
644#[derive(Clone, PartialEq, ::prost::Message)]
646pub struct ApplyWorkbookTemplatesConfig {
647 #[prost(message, optional, tag = "1")]
649 pub workbook_templates: ::core::option::Option<MultiWorkbookTemplateReference>,
650 #[prost(message, optional, tag = "2")]
652 pub runs: ::core::option::Option<MultiRunReference>,
653}
654#[derive(Clone, PartialEq, ::prost::Message)]
656pub struct ApplyChecklistsConfig {
657 #[prost(message, optional, tag = "1")]
659 pub checklists: ::core::option::Option<MultiChecklistReference>,
660 #[prost(message, optional, tag = "2")]
662 pub runs: ::core::option::Option<MultiRunReference>,
663}
664#[derive(Clone, PartialEq, ::prost::Message)]
666pub struct ProcedureStepContent {
667 #[prost(oneof = "procedure_step_content::Content", tags = "1, 2, 3, 4")]
669 pub content: ::core::option::Option<procedure_step_content::Content>,
670}
671pub mod procedure_step_content {
673 #[derive(Clone, PartialEq, ::prost::Oneof)]
675 pub enum Content {
676 #[prost(message, tag = "1")]
677 Form(super::FormStep),
678 #[prost(message, tag = "2")]
679 StartIngest(super::StartIngestStep),
680 #[prost(message, tag = "3")]
681 SelectOrCreateAsset(super::SelectOrCreateAssetStep),
682 #[prost(message, tag = "4")]
684 Wait(super::WaitStep),
685 }
686}
687#[derive(Clone, Copy, PartialEq, ::prost::Message)]
688pub struct WaitStep {}
689#[derive(Clone, PartialEq, ::prost::Message)]
691pub struct FormStep {
692 #[prost(message, repeated, tag = "1")]
693 pub fields: ::prost::alloc::vec::Vec<FormField>,
694}
695#[derive(Clone, PartialEq, ::prost::Message)]
698pub struct StartIngestStep {
699 #[prost(message, optional, tag = "1")]
701 pub asset: ::core::option::Option<AssetReference>,
702 #[prost(message, optional, tag = "2")]
704 pub ref_name: ::core::option::Option<StringReference>,
705 #[prost(message, optional, tag = "3")]
707 pub ingest_type_config: ::core::option::Option<start_ingest_step::IngestTypeConfig>,
708 #[prost(string, optional, tag = "4")]
710 pub ingest_job_output_field_id: ::core::option::Option<
711 ::prost::alloc::string::String,
712 >,
713}
714pub mod start_ingest_step {
716 #[derive(Clone, PartialEq, ::prost::Message)]
717 pub struct IngestTypeConfig {
718 #[prost(oneof = "ingest_type_config::Config", tags = "1, 2, 3, 4")]
719 pub config: ::core::option::Option<ingest_type_config::Config>,
720 }
721 pub mod ingest_type_config {
723 #[derive(Clone, PartialEq, ::prost::Message)]
724 pub struct ContainerizedExtractorIngestConfig {
725 #[prost(string, tag = "1")]
727 pub rid: ::prost::alloc::string::String,
728 #[prost(message, repeated, tag = "2")]
730 pub file_input_bindings: ::prost::alloc::vec::Vec<
731 super::super::FileInputBinding,
732 >,
733 }
734 #[derive(Clone, PartialEq, ::prost::Message)]
735 pub struct DataflashIngestConfig {
736 #[prost(message, optional, tag = "1")]
739 pub file_input: ::core::option::Option<super::super::FileReference>,
740 }
741 #[derive(Clone, PartialEq, ::prost::Message)]
742 pub struct CsvIngestConfig {
743 #[prost(message, optional, tag = "1")]
745 pub timestamp_series_name: ::core::option::Option<
746 super::super::StringReference,
747 >,
748 #[prost(message, optional, tag = "2")]
749 pub timestamp_type: ::core::option::Option<
750 super::super::TimestampTypeParameter,
751 >,
752 #[prost(message, optional, tag = "3")]
755 pub file_input: ::core::option::Option<super::super::FileReference>,
756 }
757 #[derive(Clone, PartialEq, ::prost::Message)]
758 pub struct ParquetIngestConfig {
759 #[prost(message, optional, tag = "1")]
761 pub timestamp_series_name: ::core::option::Option<
762 super::super::StringReference,
763 >,
764 #[prost(message, optional, tag = "2")]
765 pub timestamp_type: ::core::option::Option<
766 super::super::TimestampTypeParameter,
767 >,
768 #[prost(message, optional, tag = "3")]
771 pub file_input: ::core::option::Option<super::super::FileReference>,
772 }
773 #[derive(Clone, PartialEq, ::prost::Oneof)]
774 pub enum Config {
775 #[prost(message, tag = "1")]
777 ContainerizedExtractor(ContainerizedExtractorIngestConfig),
778 #[prost(message, tag = "2")]
779 Dataflash(DataflashIngestConfig),
780 #[prost(message, tag = "3")]
781 Csv(CsvIngestConfig),
782 #[prost(message, tag = "4")]
783 Parquet(ParquetIngestConfig),
784 }
785 }
786}
787#[derive(Clone, PartialEq, ::prost::Message)]
788pub struct FileInputBinding {
789 #[prost(string, tag = "1")]
791 pub environment_variable: ::prost::alloc::string::String,
792 #[prost(message, optional, tag = "2")]
794 pub file_reference: ::core::option::Option<FileReference>,
795}
796#[derive(Clone, PartialEq, ::prost::Message)]
797pub struct FileReference {
798 #[prost(oneof = "file_reference::Option", tags = "1")]
799 pub option: ::core::option::Option<file_reference::Option>,
800}
801pub mod file_reference {
803 #[derive(Clone, PartialEq, ::prost::Oneof)]
804 pub enum Option {
805 #[prost(string, tag = "1")]
807 FieldId(::prost::alloc::string::String),
808 }
809}
810#[derive(Clone, PartialEq, ::prost::Message)]
811pub struct TimestampTypeParameter {
812 #[prost(oneof = "timestamp_type_parameter::Option", tags = "1, 2")]
813 pub option: ::core::option::Option<timestamp_type_parameter::Option>,
814}
815pub mod timestamp_type_parameter {
817 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
819 pub struct UserInputOptions {}
820 #[derive(Clone, PartialEq, ::prost::Oneof)]
821 pub enum Option {
822 #[prost(message, tag = "1")]
824 Constant(super::TimestampType),
825 #[prost(message, tag = "2")]
827 UserInput(UserInputOptions),
828 }
829}
830#[derive(Clone, PartialEq, ::prost::Message)]
831pub struct TimestampType {
832 #[prost(oneof = "timestamp_type::Option", tags = "1, 2")]
833 pub option: ::core::option::Option<timestamp_type::Option>,
834}
835pub mod timestamp_type {
837 #[derive(Clone, PartialEq, ::prost::Oneof)]
838 pub enum Option {
839 #[prost(message, tag = "1")]
840 Relative(super::RelativeTimestamp),
841 #[prost(message, tag = "2")]
842 Absolute(super::AbsoluteTimestamp),
843 }
844}
845#[derive(Clone, PartialEq, ::prost::Message)]
846pub struct RelativeTimestamp {
847 #[prost(string, tag = "1")]
848 pub time_unit: ::prost::alloc::string::String,
849 #[prost(message, optional, tag = "2")]
851 pub offset: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
852}
853#[derive(Clone, PartialEq, ::prost::Message)]
854pub struct AbsoluteTimestamp {
855 #[prost(oneof = "absolute_timestamp::Option", tags = "1, 2, 3")]
856 pub option: ::core::option::Option<absolute_timestamp::Option>,
857}
858pub mod absolute_timestamp {
860 #[derive(Clone, PartialEq, ::prost::Oneof)]
861 pub enum Option {
862 #[prost(message, tag = "1")]
863 Iso8601(super::Iso8601Timestamp),
864 #[prost(message, tag = "2")]
865 EpochOfTimeUnit(super::EpochTimestamp),
866 #[prost(message, tag = "3")]
867 CustomFormat(super::CustomTimestamp),
868 }
869}
870#[derive(Clone, Copy, PartialEq, ::prost::Message)]
871pub struct Iso8601Timestamp {}
872#[derive(Clone, PartialEq, ::prost::Message)]
873pub struct EpochTimestamp {
874 #[prost(string, tag = "1")]
875 pub time_unit: ::prost::alloc::string::String,
876}
877#[derive(Clone, PartialEq, ::prost::Message)]
878pub struct CustomTimestamp {
879 #[prost(string, tag = "1")]
881 pub format: ::prost::alloc::string::String,
882 #[prost(int32, optional, tag = "2")]
885 pub default_year: ::core::option::Option<i32>,
886 #[prost(int32, optional, tag = "3")]
889 pub default_day_of_year: ::core::option::Option<i32>,
890}
891#[derive(Clone, PartialEq, ::prost::Message)]
893pub struct SelectOrCreateAssetStep {
894 #[prost(string, optional, tag = "1")]
896 pub asset_output_field_id: ::core::option::Option<::prost::alloc::string::String>,
897 #[prost(message, optional, tag = "2")]
899 pub create_asset_parameters: ::core::option::Option<
900 select_or_create_asset_step::CreateAssetParameters,
901 >,
902 #[prost(oneof = "select_or_create_asset_step::Options", tags = "3")]
905 pub options: ::core::option::Option<select_or_create_asset_step::Options>,
906}
907pub mod select_or_create_asset_step {
909 #[derive(Clone, PartialEq, ::prost::Message)]
913 pub struct CreateAssetParameters {
914 #[prost(message, optional, tag = "2")]
916 pub description: ::core::option::Option<
917 create_asset_parameters::DescriptionParameter,
918 >,
919 #[prost(message, optional, tag = "3")]
921 pub labels: ::core::option::Option<create_asset_parameters::LabelsParameter>,
922 #[prost(message, optional, tag = "4")]
924 pub properties: ::core::option::Option<
925 create_asset_parameters::PropertiesParameter,
926 >,
927 #[prost(map = "string, message", tag = "5")]
929 pub data_scopes: ::std::collections::HashMap<
930 ::prost::alloc::string::String,
931 create_asset_parameters::DataScopeParameter,
932 >,
933 }
934 pub mod create_asset_parameters {
936 #[derive(Clone, PartialEq, ::prost::Message)]
937 pub struct DescriptionParameter {
938 #[prost(oneof = "description_parameter::Option", tags = "1")]
939 pub option: ::core::option::Option<description_parameter::Option>,
940 }
941 pub mod description_parameter {
943 #[derive(Clone, PartialEq, ::prost::Oneof)]
944 pub enum Option {
945 #[prost(string, tag = "1")]
949 Constant(::prost::alloc::string::String),
950 }
951 }
952 #[derive(Clone, PartialEq, ::prost::Message)]
953 pub struct LabelsParameter {
954 #[prost(string, repeated, tag = "1")]
956 pub constant: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
957 #[prost(message, optional, tag = "2")]
960 pub user_input: ::core::option::Option<labels_parameter::UserInputOptions>,
961 }
962 pub mod labels_parameter {
964 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
966 pub struct UserInputOptions {}
967 }
968 #[derive(Clone, PartialEq, ::prost::Message)]
969 pub struct PropertiesParameter {
970 #[prost(map = "string, string", tag = "1")]
972 pub constant: ::std::collections::HashMap<
973 ::prost::alloc::string::String,
974 ::prost::alloc::string::String,
975 >,
976 #[prost(message, optional, tag = "2")]
979 pub user_input: ::core::option::Option<
980 properties_parameter::UserInputOptions,
981 >,
982 }
983 pub mod properties_parameter {
985 #[derive(Clone, PartialEq, ::prost::Message)]
986 pub struct UserInputOptions {
987 #[prost(string, repeated, tag = "1")]
989 pub required_keys: ::prost::alloc::vec::Vec<
990 ::prost::alloc::string::String,
991 >,
992 #[prost(string, repeated, tag = "2")]
996 pub suggested_keys: ::prost::alloc::vec::Vec<
997 ::prost::alloc::string::String,
998 >,
999 }
1000 }
1001 #[derive(Clone, PartialEq, ::prost::Message)]
1002 pub struct DataScopeParameter {
1003 #[prost(message, optional, tag = "21")]
1004 pub series_tags: ::core::option::Option<super::super::TagsParameter>,
1005 #[prost(oneof = "data_scope_parameter::DataSource", tags = "1, 2")]
1006 pub data_source: ::core::option::Option<data_scope_parameter::DataSource>,
1007 }
1008 pub mod data_scope_parameter {
1010 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1014 pub struct NewDataset {}
1015 #[derive(Clone, PartialEq, ::prost::Message)]
1016 pub struct ExistingDataset {
1017 #[prost(oneof = "existing_dataset::Options", tags = "1")]
1020 pub options: ::core::option::Option<existing_dataset::Options>,
1021 }
1022 pub mod existing_dataset {
1024 #[derive(Clone, PartialEq, ::prost::Oneof)]
1027 pub enum Options {
1028 #[prost(message, tag = "1")]
1030 PresetOptions(super::super::super::super::PresetDatasetFieldOptions),
1031 }
1032 }
1033 #[derive(Clone, PartialEq, ::prost::Oneof)]
1034 pub enum DataSource {
1035 #[prost(message, tag = "1")]
1037 NewDataset(NewDataset),
1038 #[prost(message, tag = "2")]
1040 ExistingDataset(ExistingDataset),
1041 }
1042 }
1043 }
1044 #[derive(Clone, PartialEq, ::prost::Oneof)]
1047 pub enum Options {
1048 #[prost(message, tag = "3")]
1053 PresetOptions(super::PresetAssetFieldOptions),
1054 }
1055}
1056#[derive(Clone, PartialEq, ::prost::Message)]
1058pub struct PresetDatasetFieldOptions {
1059 #[prost(message, repeated, tag = "1")]
1061 pub options: ::prost::alloc::vec::Vec<DatasetReference>,
1062 #[prost(message, optional, tag = "2")]
1065 pub default_option: ::core::option::Option<DatasetReference>,
1066}
1067#[derive(Clone, PartialEq, ::prost::Message)]
1069pub struct DatasetReference {
1070 #[prost(oneof = "dataset_reference::Option", tags = "1, 2")]
1071 pub option: ::core::option::Option<dataset_reference::Option>,
1072}
1073pub mod dataset_reference {
1075 #[derive(Clone, PartialEq, ::prost::Oneof)]
1076 pub enum Option {
1077 #[prost(string, tag = "1")]
1079 Rid(::prost::alloc::string::String),
1080 #[prost(string, tag = "2")]
1083 FieldId(::prost::alloc::string::String),
1084 }
1085}
1086#[derive(Clone, PartialEq, ::prost::Message)]
1087pub struct TagsParameter {
1088 #[prost(map = "string, string", tag = "1")]
1090 pub constant: ::std::collections::HashMap<
1091 ::prost::alloc::string::String,
1092 ::prost::alloc::string::String,
1093 >,
1094 #[prost(message, optional, tag = "2")]
1097 pub user_input: ::core::option::Option<tags_parameter::UserInputOptions>,
1098}
1099pub mod tags_parameter {
1101 #[derive(Clone, PartialEq, ::prost::Message)]
1102 pub struct UserInputOptions {
1103 #[prost(string, repeated, tag = "1")]
1105 pub required_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1106 #[prost(string, repeated, tag = "2")]
1110 pub suggested_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1111 }
1112}
1113#[derive(Clone, PartialEq, ::prost::Message)]
1115pub struct MultiStringReference {
1116 #[prost(oneof = "multi_string_reference::Option", tags = "1")]
1117 pub option: ::core::option::Option<multi_string_reference::Option>,
1118}
1119pub mod multi_string_reference {
1121 #[derive(Clone, PartialEq, ::prost::Oneof)]
1122 pub enum Option {
1123 #[prost(string, tag = "1")]
1125 FieldId(::prost::alloc::string::String),
1126 }
1127}
1128#[derive(Clone, PartialEq, ::prost::Message)]
1130pub struct StringReference {
1131 #[prost(oneof = "string_reference::Option", tags = "1, 2")]
1132 pub option: ::core::option::Option<string_reference::Option>,
1133}
1134pub mod string_reference {
1136 #[derive(Clone, PartialEq, ::prost::Oneof)]
1137 pub enum Option {
1138 #[prost(string, tag = "1")]
1140 Constant(::prost::alloc::string::String),
1141 #[prost(string, tag = "2")]
1146 FieldId(::prost::alloc::string::String),
1147 }
1148}
1149#[derive(Clone, PartialEq, ::prost::Message)]
1151pub struct MultiAssetReference {
1152 #[prost(oneof = "multi_asset_reference::Option", tags = "1")]
1153 pub option: ::core::option::Option<multi_asset_reference::Option>,
1154}
1155pub mod multi_asset_reference {
1157 #[derive(Clone, PartialEq, ::prost::Message)]
1158 pub struct AssetReferenceList {
1159 #[prost(message, repeated, tag = "1")]
1160 pub references: ::prost::alloc::vec::Vec<super::AssetReference>,
1161 }
1162 #[derive(Clone, PartialEq, ::prost::Oneof)]
1163 pub enum Option {
1164 #[prost(message, tag = "1")]
1166 List(AssetReferenceList),
1167 }
1168}
1169#[derive(Clone, PartialEq, ::prost::Message)]
1171pub struct AssetReference {
1172 #[prost(oneof = "asset_reference::Option", tags = "1, 2")]
1173 pub option: ::core::option::Option<asset_reference::Option>,
1174}
1175pub mod asset_reference {
1177 #[derive(Clone, PartialEq, ::prost::Oneof)]
1178 pub enum Option {
1179 #[prost(string, tag = "1")]
1181 Rid(::prost::alloc::string::String),
1182 #[prost(string, tag = "2")]
1185 FieldId(::prost::alloc::string::String),
1186 }
1187}
1188#[derive(Clone, PartialEq, ::prost::Message)]
1190pub struct TimeRangeReference {
1191 #[prost(oneof = "time_range_reference::Option", tags = "1")]
1192 pub option: ::core::option::Option<time_range_reference::Option>,
1193}
1194pub mod time_range_reference {
1196 #[derive(Clone, PartialEq, ::prost::Message)]
1197 pub struct IngestJobList {
1198 #[prost(string, repeated, tag = "1")]
1200 pub field_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1201 }
1202 #[derive(Clone, PartialEq, ::prost::Oneof)]
1203 pub enum Option {
1204 #[prost(message, tag = "1")]
1206 FromIngestJobs(IngestJobList),
1207 }
1208}
1209#[derive(Clone, PartialEq, ::prost::Message)]
1211pub struct MultiRunReference {
1212 #[prost(oneof = "multi_run_reference::Option", tags = "1")]
1213 pub option: ::core::option::Option<multi_run_reference::Option>,
1214}
1215pub mod multi_run_reference {
1217 #[derive(Clone, PartialEq, ::prost::Message)]
1218 pub struct RunReferenceList {
1219 #[prost(message, repeated, tag = "1")]
1220 pub references: ::prost::alloc::vec::Vec<super::RunReference>,
1221 }
1222 #[derive(Clone, PartialEq, ::prost::Oneof)]
1223 pub enum Option {
1224 #[prost(message, tag = "1")]
1226 List(RunReferenceList),
1227 }
1228}
1229#[derive(Clone, PartialEq, ::prost::Message)]
1231pub struct RunReference {
1232 #[prost(oneof = "run_reference::Option", tags = "1")]
1233 pub option: ::core::option::Option<run_reference::Option>,
1234}
1235pub mod run_reference {
1237 #[derive(Clone, PartialEq, ::prost::Oneof)]
1238 pub enum Option {
1239 #[prost(string, tag = "1")]
1241 FieldId(::prost::alloc::string::String),
1242 }
1243}
1244#[derive(Clone, PartialEq, ::prost::Message)]
1246pub struct MultiWorkbookTemplateReference {
1247 #[prost(oneof = "multi_workbook_template_reference::Option", tags = "1")]
1248 pub option: ::core::option::Option<multi_workbook_template_reference::Option>,
1249}
1250pub mod multi_workbook_template_reference {
1252 #[derive(Clone, PartialEq, ::prost::Message)]
1253 pub struct WorkbookTemplateReferenceList {
1254 #[prost(message, repeated, tag = "1")]
1255 pub references: ::prost::alloc::vec::Vec<super::WorkbookTemplateReference>,
1256 }
1257 #[derive(Clone, PartialEq, ::prost::Oneof)]
1258 pub enum Option {
1259 #[prost(message, tag = "1")]
1261 List(WorkbookTemplateReferenceList),
1262 }
1263}
1264#[derive(Clone, PartialEq, ::prost::Message)]
1266pub struct WorkbookTemplateReference {
1267 #[prost(oneof = "workbook_template_reference::Option", tags = "1")]
1268 pub option: ::core::option::Option<workbook_template_reference::Option>,
1269}
1270pub mod workbook_template_reference {
1272 #[derive(Clone, PartialEq, ::prost::Oneof)]
1273 pub enum Option {
1274 #[prost(string, tag = "1")]
1278 Rid(::prost::alloc::string::String),
1279 }
1280}
1281#[derive(Clone, PartialEq, ::prost::Message)]
1283pub struct MultiChecklistReference {
1284 #[prost(oneof = "multi_checklist_reference::Option", tags = "1")]
1285 pub option: ::core::option::Option<multi_checklist_reference::Option>,
1286}
1287pub mod multi_checklist_reference {
1289 #[derive(Clone, PartialEq, ::prost::Message)]
1290 pub struct ChecklistReferenceList {
1291 #[prost(message, repeated, tag = "1")]
1292 pub references: ::prost::alloc::vec::Vec<super::ChecklistReference>,
1293 }
1294 #[derive(Clone, PartialEq, ::prost::Oneof)]
1295 pub enum Option {
1296 #[prost(message, tag = "1")]
1298 List(ChecklistReferenceList),
1299 }
1300}
1301#[derive(Clone, PartialEq, ::prost::Message)]
1303pub struct ChecklistReference {
1304 #[prost(oneof = "checklist_reference::Option", tags = "1")]
1305 pub option: ::core::option::Option<checklist_reference::Option>,
1306}
1307pub mod checklist_reference {
1309 #[derive(Clone, PartialEq, ::prost::Oneof)]
1310 pub enum Option {
1311 #[prost(string, tag = "1")]
1315 Rid(::prost::alloc::string::String),
1316 }
1317}
1318#[derive(Clone, PartialEq, ::prost::Message)]
1320pub struct MultiIntegrationReference {
1321 #[prost(oneof = "multi_integration_reference::Option", tags = "1")]
1322 pub option: ::core::option::Option<multi_integration_reference::Option>,
1323}
1324pub mod multi_integration_reference {
1326 #[derive(Clone, PartialEq, ::prost::Message)]
1327 pub struct IntegrationReferenceList {
1328 #[prost(message, repeated, tag = "1")]
1329 pub references: ::prost::alloc::vec::Vec<super::IntegrationReference>,
1330 }
1331 #[derive(Clone, PartialEq, ::prost::Oneof)]
1332 pub enum Option {
1333 #[prost(message, tag = "1")]
1334 List(IntegrationReferenceList),
1335 }
1336}
1337#[derive(Clone, PartialEq, ::prost::Message)]
1339pub struct IntegrationReference {
1340 #[prost(oneof = "integration_reference::Option", tags = "1")]
1341 pub option: ::core::option::Option<integration_reference::Option>,
1342}
1343pub mod integration_reference {
1345 #[derive(Clone, PartialEq, ::prost::Oneof)]
1346 pub enum Option {
1347 #[prost(string, tag = "1")]
1351 Rid(::prost::alloc::string::String),
1352 }
1353}
1354#[derive(Clone, PartialEq, ::prost::Message)]
1356pub struct FormField {
1357 #[prost(string, tag = "1")]
1359 pub id: ::prost::alloc::string::String,
1360 #[prost(string, optional, tag = "11")]
1362 pub label: ::core::option::Option<::prost::alloc::string::String>,
1363 #[prost(string, optional, tag = "12")]
1365 pub description: ::core::option::Option<::prost::alloc::string::String>,
1366 #[prost(oneof = "form_field::Field", tags = "2, 3, 4, 5, 6, 7, 8, 9, 10")]
1367 pub field: ::core::option::Option<form_field::Field>,
1368}
1369pub mod form_field {
1371 #[derive(Clone, PartialEq, ::prost::Oneof)]
1372 pub enum Field {
1373 #[prost(message, tag = "2")]
1374 Asset(super::AssetField),
1375 #[prost(message, tag = "3")]
1376 Checkbox(super::CheckboxField),
1377 #[prost(message, tag = "4")]
1378 Text(super::TextField),
1379 #[prost(message, tag = "5")]
1380 Int(super::IntField),
1381 #[prost(message, tag = "6")]
1382 Double(super::DoubleField),
1383 #[prost(message, tag = "7")]
1384 SingleEnum(super::SingleEnumField),
1385 #[prost(message, tag = "8")]
1386 MultiEnum(super::MultiEnumField),
1387 #[prost(message, tag = "9")]
1388 FileUpload(super::FileUploadField),
1389 #[prost(message, tag = "10")]
1390 MultiFileUpload(super::MultiFileUploadField),
1391 }
1392}
1393#[derive(Clone, PartialEq, ::prost::Message)]
1395pub struct PresetAssetFieldOptions {
1396 #[prost(message, repeated, tag = "1")]
1398 pub options: ::prost::alloc::vec::Vec<AssetReference>,
1399 #[prost(message, optional, tag = "2")]
1402 pub default_option: ::core::option::Option<AssetReference>,
1403}
1404#[derive(Clone, PartialEq, ::prost::Message)]
1406pub struct AssetField {
1407 #[prost(string, tag = "1")]
1410 pub label: ::prost::alloc::string::String,
1411 #[prost(bool, tag = "2")]
1413 pub is_required: bool,
1414 #[prost(oneof = "asset_field::Options", tags = "3")]
1417 pub options: ::core::option::Option<asset_field::Options>,
1418}
1419pub mod asset_field {
1421 #[derive(Clone, PartialEq, ::prost::Oneof)]
1424 pub enum Options {
1425 #[prost(message, tag = "3")]
1430 PresetOptions(super::PresetAssetFieldOptions),
1431 }
1432}
1433#[derive(Clone, PartialEq, ::prost::Message)]
1435pub struct CheckboxField {
1436 #[prost(string, tag = "1")]
1439 pub label: ::prost::alloc::string::String,
1440 #[prost(bool, tag = "2")]
1442 pub is_required: bool,
1443}
1444#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1445pub struct TextFieldSimpleInputType {}
1446#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1447pub struct TextFieldMarkdownInputType {}
1448#[derive(Clone, PartialEq, ::prost::Message)]
1450pub struct TextField {
1451 #[prost(string, tag = "1")]
1454 pub label: ::prost::alloc::string::String,
1455 #[prost(uint32, optional, tag = "4")]
1458 pub min_length: ::core::option::Option<u32>,
1459 #[prost(uint32, optional, tag = "5")]
1461 pub max_length: ::core::option::Option<u32>,
1462 #[prost(oneof = "text_field::InputType", tags = "2, 3")]
1464 pub input_type: ::core::option::Option<text_field::InputType>,
1465}
1466pub mod text_field {
1468 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1470 pub enum InputType {
1471 #[prost(message, tag = "2")]
1473 Simple(super::TextFieldSimpleInputType),
1474 #[prost(message, tag = "3")]
1476 Markdown(super::TextFieldMarkdownInputType),
1477 }
1478}
1479#[derive(Clone, PartialEq, ::prost::Message)]
1481pub struct IntField {
1482 #[prost(string, tag = "1")]
1485 pub label: ::prost::alloc::string::String,
1486 #[prost(bool, tag = "2")]
1488 pub is_required: bool,
1489 #[prost(int64, optional, tag = "3")]
1491 pub gte_value: ::core::option::Option<i64>,
1492 #[prost(int64, optional, tag = "4")]
1494 pub lte_value: ::core::option::Option<i64>,
1495}
1496#[derive(Clone, PartialEq, ::prost::Message)]
1498pub struct DoubleField {
1499 #[prost(string, tag = "1")]
1502 pub label: ::prost::alloc::string::String,
1503 #[prost(bool, tag = "2")]
1505 pub is_required: bool,
1506 #[prost(oneof = "double_field::LowerBound", tags = "3, 4")]
1508 pub lower_bound: ::core::option::Option<double_field::LowerBound>,
1509 #[prost(oneof = "double_field::UpperBound", tags = "5, 6")]
1511 pub upper_bound: ::core::option::Option<double_field::UpperBound>,
1512}
1513pub mod double_field {
1515 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1517 pub enum LowerBound {
1518 #[prost(double, tag = "3")]
1520 GtValue(f64),
1521 #[prost(double, tag = "4")]
1523 GteValue(f64),
1524 }
1525 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1527 pub enum UpperBound {
1528 #[prost(double, tag = "5")]
1530 LtValue(f64),
1531 #[prost(double, tag = "6")]
1533 LteValue(f64),
1534 }
1535}
1536#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1537pub struct EnumFieldButtonsInputType {}
1538#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1539pub struct EnumFieldMenuInputType {}
1540#[derive(Clone, PartialEq, ::prost::Message)]
1542pub struct SingleEnumField {
1543 #[prost(string, tag = "1")]
1546 pub label: ::prost::alloc::string::String,
1547 #[prost(string, repeated, tag = "2")]
1549 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1550 #[prost(bool, tag = "5")]
1552 pub allow_custom: bool,
1553 #[prost(bool, tag = "6")]
1555 pub is_required: bool,
1556 #[prost(oneof = "single_enum_field::InputType", tags = "3, 4")]
1558 pub input_type: ::core::option::Option<single_enum_field::InputType>,
1559}
1560pub mod single_enum_field {
1562 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1564 pub enum InputType {
1565 #[prost(message, tag = "3")]
1567 Buttons(super::EnumFieldButtonsInputType),
1568 #[prost(message, tag = "4")]
1570 Dropdown(super::EnumFieldMenuInputType),
1571 }
1572}
1573#[derive(Clone, PartialEq, ::prost::Message)]
1575pub struct MultiEnumField {
1576 #[prost(string, tag = "1")]
1579 pub label: ::prost::alloc::string::String,
1580 #[prost(string, repeated, tag = "2")]
1582 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1583 #[prost(bool, tag = "6")]
1585 pub allow_custom: bool,
1586 #[prost(uint32, optional, tag = "7")]
1589 pub min_count: ::core::option::Option<u32>,
1590 #[prost(uint32, optional, tag = "8")]
1592 pub max_count: ::core::option::Option<u32>,
1593 #[prost(oneof = "multi_enum_field::InputType", tags = "3, 4")]
1595 pub input_type: ::core::option::Option<multi_enum_field::InputType>,
1596}
1597pub mod multi_enum_field {
1599 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1601 pub enum InputType {
1602 #[prost(message, tag = "3")]
1604 Buttons(super::EnumFieldButtonsInputType),
1605 #[prost(message, tag = "4")]
1607 Dropdown(super::EnumFieldMenuInputType),
1608 }
1609}
1610#[derive(Clone, PartialEq, ::prost::Message)]
1612pub struct FileUploadField {
1613 #[prost(bool, tag = "1")]
1615 pub is_required: bool,
1616 #[prost(string, repeated, tag = "2")]
1618 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1619}
1620#[derive(Clone, PartialEq, ::prost::Message)]
1622pub struct MultiFileUploadField {
1623 #[prost(uint32, optional, tag = "1")]
1625 pub min_count: ::core::option::Option<u32>,
1626 #[prost(uint32, optional, tag = "2")]
1628 pub max_count: ::core::option::Option<u32>,
1629 #[prost(string, repeated, tag = "3")]
1631 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1632}
1633#[derive(Clone, PartialEq, ::prost::Message)]
1635pub struct ProcedureMetadata {
1636 #[prost(string, tag = "1")]
1637 pub rid: ::prost::alloc::string::String,
1638 #[prost(string, tag = "2")]
1639 pub title: ::prost::alloc::string::String,
1640 #[prost(string, optional, tag = "3")]
1641 pub description: ::core::option::Option<::prost::alloc::string::String>,
1642 #[prost(string, repeated, tag = "4")]
1643 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1644 #[prost(map = "string, string", tag = "5")]
1645 pub properties: ::std::collections::HashMap<
1646 ::prost::alloc::string::String,
1647 ::prost::alloc::string::String,
1648 >,
1649 #[prost(bool, tag = "6")]
1650 pub is_archived: bool,
1651 #[prost(bool, tag = "7")]
1652 pub is_published: bool,
1653 #[prost(message, optional, tag = "8")]
1654 pub created_at: ::core::option::Option<
1655 super::super::super::google::protobuf::Timestamp,
1656 >,
1657 #[prost(string, tag = "9")]
1658 pub created_by: ::prost::alloc::string::String,
1659 #[prost(message, optional, tag = "10")]
1660 pub updated_at: ::core::option::Option<
1661 super::super::super::google::protobuf::Timestamp,
1662 >,
1663 #[prost(string, tag = "11")]
1664 pub updated_by: ::prost::alloc::string::String,
1665 #[prost(string, tag = "12")]
1666 pub workspace: ::prost::alloc::string::String,
1667}
1668#[derive(Clone, PartialEq, ::prost::Message)]
1670pub struct Procedure {
1671 #[prost(string, tag = "1")]
1673 pub rid: ::prost::alloc::string::String,
1674 #[prost(string, tag = "2")]
1676 pub commit: ::prost::alloc::string::String,
1677 #[prost(message, optional, tag = "3")]
1679 pub metadata: ::core::option::Option<ProcedureMetadata>,
1680 #[prost(message, optional, tag = "4")]
1682 pub state: ::core::option::Option<ProcedureState>,
1683}
1684#[derive(Clone, PartialEq, ::prost::Message)]
1685pub struct CreateProcedureRequest {
1686 #[prost(string, tag = "1")]
1687 pub title: ::prost::alloc::string::String,
1688 #[prost(string, optional, tag = "2")]
1689 pub description: ::core::option::Option<::prost::alloc::string::String>,
1690 #[prost(string, repeated, tag = "3")]
1691 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1692 #[prost(map = "string, string", tag = "4")]
1693 pub properties: ::std::collections::HashMap<
1694 ::prost::alloc::string::String,
1695 ::prost::alloc::string::String,
1696 >,
1697 #[prost(message, optional, tag = "5")]
1698 pub state: ::core::option::Option<ProcedureState>,
1699 #[prost(bool, optional, tag = "6")]
1700 pub is_published: ::core::option::Option<bool>,
1701 #[prost(string, tag = "7")]
1702 pub workspace: ::prost::alloc::string::String,
1703 #[prost(string, tag = "8")]
1704 pub commit_message: ::prost::alloc::string::String,
1705 #[prost(string, optional, tag = "9")]
1706 pub initial_branch_name: ::core::option::Option<::prost::alloc::string::String>,
1707}
1708#[derive(Clone, PartialEq, ::prost::Message)]
1709pub struct CreateProcedureResponse {
1710 #[prost(message, optional, tag = "1")]
1711 pub procedure: ::core::option::Option<Procedure>,
1712 #[prost(string, optional, tag = "2")]
1713 pub branch_name: ::core::option::Option<::prost::alloc::string::String>,
1714}
1715#[derive(Clone, PartialEq, ::prost::Message)]
1716pub struct GetProcedureRequest {
1717 #[prost(string, tag = "1")]
1718 pub rid: ::prost::alloc::string::String,
1719 #[prost(message, optional, tag = "2")]
1720 pub branch_or_commit: ::core::option::Option<
1721 super::super::versioning::v1::BranchOrCommit,
1722 >,
1723 #[prost(bool, tag = "3")]
1726 pub include_display_graph: bool,
1727}
1728#[derive(Clone, PartialEq, ::prost::Message)]
1729pub struct GetProcedureResponse {
1730 #[prost(message, optional, tag = "1")]
1731 pub procedure: ::core::option::Option<Procedure>,
1732 #[prost(message, optional, tag = "2")]
1734 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1735}
1736#[derive(Clone, PartialEq, ::prost::Message)]
1737pub struct BatchGetProcedureMetadataRequest {
1738 #[prost(string, repeated, tag = "1")]
1739 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1740}
1741#[derive(Clone, PartialEq, ::prost::Message)]
1742pub struct BatchGetProcedureMetadataResponse {
1743 #[prost(message, repeated, tag = "1")]
1744 pub procedure_metadatas: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1745}
1746#[derive(Clone, PartialEq, ::prost::Message)]
1747pub struct UpdateProcedureMetadataRequest {
1748 #[prost(string, tag = "1")]
1749 pub rid: ::prost::alloc::string::String,
1750 #[prost(string, optional, tag = "2")]
1751 pub title: ::core::option::Option<::prost::alloc::string::String>,
1752 #[prost(string, optional, tag = "3")]
1753 pub description: ::core::option::Option<::prost::alloc::string::String>,
1754 #[prost(message, optional, tag = "4")]
1755 pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
1756 #[prost(message, optional, tag = "5")]
1757 pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
1758 #[prost(bool, optional, tag = "6")]
1759 pub is_archived: ::core::option::Option<bool>,
1760 #[prost(bool, optional, tag = "7")]
1761 pub is_published: ::core::option::Option<bool>,
1762}
1763#[derive(Clone, PartialEq, ::prost::Message)]
1764pub struct UpdateProcedureMetadataResponse {
1765 #[prost(message, optional, tag = "1")]
1766 pub procedure_metadata: ::core::option::Option<ProcedureMetadata>,
1767}
1768#[derive(Clone, PartialEq, ::prost::Message)]
1769pub struct ParseNestedProcedureRequest {
1770 #[prost(message, optional, tag = "1")]
1771 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1772 #[prost(bool, tag = "3")]
1775 pub include_display_graph: bool,
1776}
1777#[derive(Clone, PartialEq, ::prost::Message)]
1778pub struct ParseNestedProcedureResponse {
1779 #[prost(message, optional, tag = "1")]
1780 pub procedure: ::core::option::Option<Procedure>,
1781 #[prost(message, optional, tag = "2")]
1783 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1784}
1785#[derive(Clone, PartialEq, ::prost::Message)]
1786pub struct GetProcedureAsNestedRequest {
1787 #[prost(string, tag = "1")]
1788 pub rid: ::prost::alloc::string::String,
1789 #[prost(message, optional, tag = "2")]
1790 pub branch_or_commit: ::core::option::Option<
1791 super::super::versioning::v1::BranchOrCommit,
1792 >,
1793}
1794#[derive(Clone, PartialEq, ::prost::Message)]
1795pub struct GetProcedureAsNestedResponse {
1796 #[prost(message, optional, tag = "1")]
1797 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1798}
1799#[derive(Clone, PartialEq, ::prost::Message)]
1800pub struct MergeToMainRequest {
1801 #[prost(string, tag = "1")]
1802 pub rid: ::prost::alloc::string::String,
1803 #[prost(string, tag = "2")]
1804 pub branch: ::prost::alloc::string::String,
1805 #[prost(string, optional, tag = "3")]
1807 pub latest_commit_on_main: ::core::option::Option<::prost::alloc::string::String>,
1808 #[prost(string, tag = "4")]
1809 pub message: ::prost::alloc::string::String,
1810}
1811#[derive(Clone, PartialEq, ::prost::Message)]
1812pub struct MergeToMainResponse {
1813 #[prost(message, optional, tag = "1")]
1814 pub procedure: ::core::option::Option<Procedure>,
1815}
1816#[derive(Clone, PartialEq, ::prost::Message)]
1817pub struct SaveWorkingStateRequest {
1818 #[prost(string, tag = "1")]
1819 pub rid: ::prost::alloc::string::String,
1820 #[prost(string, optional, tag = "2")]
1821 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1822 #[prost(string, tag = "3")]
1823 pub message: ::prost::alloc::string::String,
1824 #[prost(string, optional, tag = "4")]
1826 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1827 #[prost(message, optional, tag = "5")]
1828 pub state: ::core::option::Option<ProcedureState>,
1829}
1830#[derive(Clone, PartialEq, ::prost::Message)]
1831pub struct SaveWorkingStateResponse {
1832 #[prost(message, optional, tag = "1")]
1833 pub procedure: ::core::option::Option<Procedure>,
1834}
1835#[derive(Clone, PartialEq, ::prost::Message)]
1836pub struct CommitRequest {
1837 #[prost(string, tag = "1")]
1838 pub rid: ::prost::alloc::string::String,
1839 #[prost(string, optional, tag = "2")]
1840 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1841 #[prost(string, optional, tag = "3")]
1843 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1844 #[prost(string, tag = "4")]
1845 pub message: ::prost::alloc::string::String,
1846 #[prost(message, optional, tag = "5")]
1847 pub state: ::core::option::Option<ProcedureState>,
1848}
1849#[derive(Clone, PartialEq, ::prost::Message)]
1850pub struct CommitResponse {
1851 #[prost(message, optional, tag = "1")]
1852 pub procedure: ::core::option::Option<Procedure>,
1853}
1854#[derive(Clone, PartialEq, ::prost::Message)]
1855pub struct ProcedureSearchQuery {
1856 #[prost(oneof = "procedure_search_query::Query", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
1857 pub query: ::core::option::Option<procedure_search_query::Query>,
1858}
1859pub mod procedure_search_query {
1861 #[derive(Clone, PartialEq, ::prost::Message)]
1862 pub struct ProcedureSearchAndQuery {
1863 #[prost(message, repeated, tag = "1")]
1864 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1865 }
1866 #[derive(Clone, PartialEq, ::prost::Message)]
1867 pub struct ProcedureSearchOrQuery {
1868 #[prost(message, repeated, tag = "1")]
1869 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1870 }
1871 #[derive(Clone, PartialEq, ::prost::Oneof)]
1872 pub enum Query {
1873 #[prost(string, tag = "1")]
1874 SearchText(::prost::alloc::string::String),
1875 #[prost(string, tag = "2")]
1876 Label(::prost::alloc::string::String),
1877 #[prost(message, tag = "3")]
1878 Property(super::super::super::types::Property),
1879 #[prost(message, tag = "4")]
1880 And(ProcedureSearchAndQuery),
1881 #[prost(message, tag = "5")]
1882 Or(ProcedureSearchOrQuery),
1883 #[prost(string, tag = "6")]
1884 Workspace(::prost::alloc::string::String),
1885 #[prost(string, tag = "7")]
1886 CreatedBy(::prost::alloc::string::String),
1887 #[prost(bool, tag = "8")]
1888 IsArchived(bool),
1889 }
1890}
1891#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1892pub struct SearchProceduresSortOptions {
1893 #[prost(bool, optional, tag = "1")]
1895 pub is_descending: ::core::option::Option<bool>,
1896 #[prost(enumeration = "SearchProceduresSortField", optional, tag = "2")]
1898 pub sort_field: ::core::option::Option<i32>,
1899}
1900#[derive(Clone, PartialEq, ::prost::Message)]
1901pub struct SearchProceduresRequest {
1902 #[prost(message, optional, tag = "1")]
1903 pub query: ::core::option::Option<ProcedureSearchQuery>,
1904 #[prost(message, optional, tag = "2")]
1906 pub sort_options: ::core::option::Option<SearchProceduresSortOptions>,
1907 #[prost(int32, optional, tag = "3")]
1909 pub page_size: ::core::option::Option<i32>,
1910 #[prost(string, optional, tag = "4")]
1911 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1912}
1913#[derive(Clone, PartialEq, ::prost::Message)]
1914pub struct SearchProceduresResponse {
1915 #[prost(message, repeated, tag = "1")]
1916 pub procedure_metadata: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1917 #[prost(string, optional, tag = "2")]
1918 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1919}
1920#[derive(Clone, PartialEq, ::prost::Message)]
1921pub struct ArchiveProceduresRequest {
1922 #[prost(string, repeated, tag = "1")]
1923 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1924}
1925#[derive(Clone, PartialEq, ::prost::Message)]
1926pub struct ArchiveProceduresResponse {
1927 #[prost(string, repeated, tag = "1")]
1928 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1929}
1930#[derive(Clone, PartialEq, ::prost::Message)]
1931pub struct UnarchiveProceduresRequest {
1932 #[prost(string, repeated, tag = "1")]
1933 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1934}
1935#[derive(Clone, PartialEq, ::prost::Message)]
1936pub struct UnarchiveProceduresResponse {
1937 #[prost(string, repeated, tag = "1")]
1938 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1939}
1940#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1941#[repr(i32)]
1942pub enum SearchProceduresSortField {
1943 Unspecified = 0,
1944 Name = 1,
1945 CreatedAt = 2,
1946 UpdatedAt = 3,
1947}
1948impl SearchProceduresSortField {
1949 pub fn as_str_name(&self) -> &'static str {
1954 match self {
1955 Self::Unspecified => "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED",
1956 Self::Name => "SEARCH_PROCEDURES_SORT_FIELD_NAME",
1957 Self::CreatedAt => "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT",
1958 Self::UpdatedAt => "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT",
1959 }
1960 }
1961 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1963 match value {
1964 "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
1965 "SEARCH_PROCEDURES_SORT_FIELD_NAME" => Some(Self::Name),
1966 "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
1967 "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1968 _ => None,
1969 }
1970 }
1971}
1972#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1973#[repr(i32)]
1974pub enum ProceduresServiceError {
1975 Unspecified = 0,
1976 NotFound = 1,
1977 CommitNotFound = 2,
1978 CannotMergeMain = 3,
1979 CannotCommitToArchivedProcedure = 4,
1980 InvalidGraph = 5,
1981 InvalidSearchToken = 6,
1982}
1983impl ProceduresServiceError {
1984 pub fn as_str_name(&self) -> &'static str {
1989 match self {
1990 Self::Unspecified => "PROCEDURES_SERVICE_ERROR_UNSPECIFIED",
1991 Self::NotFound => "PROCEDURES_SERVICE_ERROR_NOT_FOUND",
1992 Self::CommitNotFound => "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND",
1993 Self::CannotMergeMain => "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN",
1994 Self::CannotCommitToArchivedProcedure => {
1995 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE"
1996 }
1997 Self::InvalidGraph => "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH",
1998 Self::InvalidSearchToken => "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN",
1999 }
2000 }
2001 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2003 match value {
2004 "PROCEDURES_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
2005 "PROCEDURES_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
2006 "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND" => Some(Self::CommitNotFound),
2007 "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN" => Some(Self::CannotMergeMain),
2008 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE" => {
2009 Some(Self::CannotCommitToArchivedProcedure)
2010 }
2011 "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH" => Some(Self::InvalidGraph),
2012 "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
2013 Some(Self::InvalidSearchToken)
2014 }
2015 _ => None,
2016 }
2017 }
2018}
2019pub mod procedures_service_client {
2021 #![allow(
2022 unused_variables,
2023 dead_code,
2024 missing_docs,
2025 clippy::wildcard_imports,
2026 clippy::let_unit_value,
2027 )]
2028 use tonic::codegen::*;
2029 use tonic::codegen::http::Uri;
2030 #[derive(Debug, Clone)]
2033 pub struct ProceduresServiceClient<T> {
2034 inner: tonic::client::Grpc<T>,
2035 }
2036 impl ProceduresServiceClient<tonic::transport::Channel> {
2037 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
2039 where
2040 D: TryInto<tonic::transport::Endpoint>,
2041 D::Error: Into<StdError>,
2042 {
2043 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
2044 Ok(Self::new(conn))
2045 }
2046 }
2047 impl<T> ProceduresServiceClient<T>
2048 where
2049 T: tonic::client::GrpcService<tonic::body::Body>,
2050 T::Error: Into<StdError>,
2051 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
2052 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
2053 {
2054 pub fn new(inner: T) -> Self {
2055 let inner = tonic::client::Grpc::new(inner);
2056 Self { inner }
2057 }
2058 pub fn with_origin(inner: T, origin: Uri) -> Self {
2059 let inner = tonic::client::Grpc::with_origin(inner, origin);
2060 Self { inner }
2061 }
2062 pub fn with_interceptor<F>(
2063 inner: T,
2064 interceptor: F,
2065 ) -> ProceduresServiceClient<InterceptedService<T, F>>
2066 where
2067 F: tonic::service::Interceptor,
2068 T::ResponseBody: Default,
2069 T: tonic::codegen::Service<
2070 http::Request<tonic::body::Body>,
2071 Response = http::Response<
2072 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
2073 >,
2074 >,
2075 <T as tonic::codegen::Service<
2076 http::Request<tonic::body::Body>,
2077 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
2078 {
2079 ProceduresServiceClient::new(InterceptedService::new(inner, interceptor))
2080 }
2081 #[must_use]
2086 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
2087 self.inner = self.inner.send_compressed(encoding);
2088 self
2089 }
2090 #[must_use]
2092 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
2093 self.inner = self.inner.accept_compressed(encoding);
2094 self
2095 }
2096 #[must_use]
2100 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
2101 self.inner = self.inner.max_decoding_message_size(limit);
2102 self
2103 }
2104 #[must_use]
2108 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
2109 self.inner = self.inner.max_encoding_message_size(limit);
2110 self
2111 }
2112 pub async fn create_procedure(
2114 &mut self,
2115 request: impl tonic::IntoRequest<super::CreateProcedureRequest>,
2116 ) -> std::result::Result<
2117 tonic::Response<super::CreateProcedureResponse>,
2118 tonic::Status,
2119 > {
2120 self.inner
2121 .ready()
2122 .await
2123 .map_err(|e| {
2124 tonic::Status::unknown(
2125 format!("Service was not ready: {}", e.into()),
2126 )
2127 })?;
2128 let codec = tonic::codec::ProstCodec::default();
2129 let path = http::uri::PathAndQuery::from_static(
2130 "/nominal.procedures.v1.ProceduresService/CreateProcedure",
2131 );
2132 let mut req = request.into_request();
2133 req.extensions_mut()
2134 .insert(
2135 GrpcMethod::new(
2136 "nominal.procedures.v1.ProceduresService",
2137 "CreateProcedure",
2138 ),
2139 );
2140 self.inner.unary(req, path, codec).await
2141 }
2142 pub async fn get_procedure(
2144 &mut self,
2145 request: impl tonic::IntoRequest<super::GetProcedureRequest>,
2146 ) -> std::result::Result<
2147 tonic::Response<super::GetProcedureResponse>,
2148 tonic::Status,
2149 > {
2150 self.inner
2151 .ready()
2152 .await
2153 .map_err(|e| {
2154 tonic::Status::unknown(
2155 format!("Service was not ready: {}", e.into()),
2156 )
2157 })?;
2158 let codec = tonic::codec::ProstCodec::default();
2159 let path = http::uri::PathAndQuery::from_static(
2160 "/nominal.procedures.v1.ProceduresService/GetProcedure",
2161 );
2162 let mut req = request.into_request();
2163 req.extensions_mut()
2164 .insert(
2165 GrpcMethod::new(
2166 "nominal.procedures.v1.ProceduresService",
2167 "GetProcedure",
2168 ),
2169 );
2170 self.inner.unary(req, path, codec).await
2171 }
2172 pub async fn batch_get_procedure_metadata(
2176 &mut self,
2177 request: impl tonic::IntoRequest<super::BatchGetProcedureMetadataRequest>,
2178 ) -> std::result::Result<
2179 tonic::Response<super::BatchGetProcedureMetadataResponse>,
2180 tonic::Status,
2181 > {
2182 self.inner
2183 .ready()
2184 .await
2185 .map_err(|e| {
2186 tonic::Status::unknown(
2187 format!("Service was not ready: {}", e.into()),
2188 )
2189 })?;
2190 let codec = tonic::codec::ProstCodec::default();
2191 let path = http::uri::PathAndQuery::from_static(
2192 "/nominal.procedures.v1.ProceduresService/BatchGetProcedureMetadata",
2193 );
2194 let mut req = request.into_request();
2195 req.extensions_mut()
2196 .insert(
2197 GrpcMethod::new(
2198 "nominal.procedures.v1.ProceduresService",
2199 "BatchGetProcedureMetadata",
2200 ),
2201 );
2202 self.inner.unary(req, path, codec).await
2203 }
2204 pub async fn update_procedure_metadata(
2206 &mut self,
2207 request: impl tonic::IntoRequest<super::UpdateProcedureMetadataRequest>,
2208 ) -> std::result::Result<
2209 tonic::Response<super::UpdateProcedureMetadataResponse>,
2210 tonic::Status,
2211 > {
2212 self.inner
2213 .ready()
2214 .await
2215 .map_err(|e| {
2216 tonic::Status::unknown(
2217 format!("Service was not ready: {}", e.into()),
2218 )
2219 })?;
2220 let codec = tonic::codec::ProstCodec::default();
2221 let path = http::uri::PathAndQuery::from_static(
2222 "/nominal.procedures.v1.ProceduresService/UpdateProcedureMetadata",
2223 );
2224 let mut req = request.into_request();
2225 req.extensions_mut()
2226 .insert(
2227 GrpcMethod::new(
2228 "nominal.procedures.v1.ProceduresService",
2229 "UpdateProcedureMetadata",
2230 ),
2231 );
2232 self.inner.unary(req, path, codec).await
2233 }
2234 pub async fn parse_nested_procedure(
2236 &mut self,
2237 request: impl tonic::IntoRequest<super::ParseNestedProcedureRequest>,
2238 ) -> std::result::Result<
2239 tonic::Response<super::ParseNestedProcedureResponse>,
2240 tonic::Status,
2241 > {
2242 self.inner
2243 .ready()
2244 .await
2245 .map_err(|e| {
2246 tonic::Status::unknown(
2247 format!("Service was not ready: {}", e.into()),
2248 )
2249 })?;
2250 let codec = tonic::codec::ProstCodec::default();
2251 let path = http::uri::PathAndQuery::from_static(
2252 "/nominal.procedures.v1.ProceduresService/ParseNestedProcedure",
2253 );
2254 let mut req = request.into_request();
2255 req.extensions_mut()
2256 .insert(
2257 GrpcMethod::new(
2258 "nominal.procedures.v1.ProceduresService",
2259 "ParseNestedProcedure",
2260 ),
2261 );
2262 self.inner.unary(req, path, codec).await
2263 }
2264 pub async fn get_procedure_as_nested(
2267 &mut self,
2268 request: impl tonic::IntoRequest<super::GetProcedureAsNestedRequest>,
2269 ) -> std::result::Result<
2270 tonic::Response<super::GetProcedureAsNestedResponse>,
2271 tonic::Status,
2272 > {
2273 self.inner
2274 .ready()
2275 .await
2276 .map_err(|e| {
2277 tonic::Status::unknown(
2278 format!("Service was not ready: {}", e.into()),
2279 )
2280 })?;
2281 let codec = tonic::codec::ProstCodec::default();
2282 let path = http::uri::PathAndQuery::from_static(
2283 "/nominal.procedures.v1.ProceduresService/GetProcedureAsNested",
2284 );
2285 let mut req = request.into_request();
2286 req.extensions_mut()
2287 .insert(
2288 GrpcMethod::new(
2289 "nominal.procedures.v1.ProceduresService",
2290 "GetProcedureAsNested",
2291 ),
2292 );
2293 self.inner.unary(req, path, codec).await
2294 }
2295 pub async fn merge_to_main(
2297 &mut self,
2298 request: impl tonic::IntoRequest<super::MergeToMainRequest>,
2299 ) -> std::result::Result<
2300 tonic::Response<super::MergeToMainResponse>,
2301 tonic::Status,
2302 > {
2303 self.inner
2304 .ready()
2305 .await
2306 .map_err(|e| {
2307 tonic::Status::unknown(
2308 format!("Service was not ready: {}", e.into()),
2309 )
2310 })?;
2311 let codec = tonic::codec::ProstCodec::default();
2312 let path = http::uri::PathAndQuery::from_static(
2313 "/nominal.procedures.v1.ProceduresService/MergeToMain",
2314 );
2315 let mut req = request.into_request();
2316 req.extensions_mut()
2317 .insert(
2318 GrpcMethod::new(
2319 "nominal.procedures.v1.ProceduresService",
2320 "MergeToMain",
2321 ),
2322 );
2323 self.inner.unary(req, path, codec).await
2324 }
2325 pub async fn save_working_state(
2327 &mut self,
2328 request: impl tonic::IntoRequest<super::SaveWorkingStateRequest>,
2329 ) -> std::result::Result<
2330 tonic::Response<super::SaveWorkingStateResponse>,
2331 tonic::Status,
2332 > {
2333 self.inner
2334 .ready()
2335 .await
2336 .map_err(|e| {
2337 tonic::Status::unknown(
2338 format!("Service was not ready: {}", e.into()),
2339 )
2340 })?;
2341 let codec = tonic::codec::ProstCodec::default();
2342 let path = http::uri::PathAndQuery::from_static(
2343 "/nominal.procedures.v1.ProceduresService/SaveWorkingState",
2344 );
2345 let mut req = request.into_request();
2346 req.extensions_mut()
2347 .insert(
2348 GrpcMethod::new(
2349 "nominal.procedures.v1.ProceduresService",
2350 "SaveWorkingState",
2351 ),
2352 );
2353 self.inner.unary(req, path, codec).await
2354 }
2355 pub async fn commit(
2357 &mut self,
2358 request: impl tonic::IntoRequest<super::CommitRequest>,
2359 ) -> std::result::Result<tonic::Response<super::CommitResponse>, tonic::Status> {
2360 self.inner
2361 .ready()
2362 .await
2363 .map_err(|e| {
2364 tonic::Status::unknown(
2365 format!("Service was not ready: {}", e.into()),
2366 )
2367 })?;
2368 let codec = tonic::codec::ProstCodec::default();
2369 let path = http::uri::PathAndQuery::from_static(
2370 "/nominal.procedures.v1.ProceduresService/Commit",
2371 );
2372 let mut req = request.into_request();
2373 req.extensions_mut()
2374 .insert(
2375 GrpcMethod::new("nominal.procedures.v1.ProceduresService", "Commit"),
2376 );
2377 self.inner.unary(req, path, codec).await
2378 }
2379 pub async fn search_procedures(
2381 &mut self,
2382 request: impl tonic::IntoRequest<super::SearchProceduresRequest>,
2383 ) -> std::result::Result<
2384 tonic::Response<super::SearchProceduresResponse>,
2385 tonic::Status,
2386 > {
2387 self.inner
2388 .ready()
2389 .await
2390 .map_err(|e| {
2391 tonic::Status::unknown(
2392 format!("Service was not ready: {}", e.into()),
2393 )
2394 })?;
2395 let codec = tonic::codec::ProstCodec::default();
2396 let path = http::uri::PathAndQuery::from_static(
2397 "/nominal.procedures.v1.ProceduresService/SearchProcedures",
2398 );
2399 let mut req = request.into_request();
2400 req.extensions_mut()
2401 .insert(
2402 GrpcMethod::new(
2403 "nominal.procedures.v1.ProceduresService",
2404 "SearchProcedures",
2405 ),
2406 );
2407 self.inner.unary(req, path, codec).await
2408 }
2409 pub async fn archive_procedures(
2411 &mut self,
2412 request: impl tonic::IntoRequest<super::ArchiveProceduresRequest>,
2413 ) -> std::result::Result<
2414 tonic::Response<super::ArchiveProceduresResponse>,
2415 tonic::Status,
2416 > {
2417 self.inner
2418 .ready()
2419 .await
2420 .map_err(|e| {
2421 tonic::Status::unknown(
2422 format!("Service was not ready: {}", e.into()),
2423 )
2424 })?;
2425 let codec = tonic::codec::ProstCodec::default();
2426 let path = http::uri::PathAndQuery::from_static(
2427 "/nominal.procedures.v1.ProceduresService/ArchiveProcedures",
2428 );
2429 let mut req = request.into_request();
2430 req.extensions_mut()
2431 .insert(
2432 GrpcMethod::new(
2433 "nominal.procedures.v1.ProceduresService",
2434 "ArchiveProcedures",
2435 ),
2436 );
2437 self.inner.unary(req, path, codec).await
2438 }
2439 pub async fn unarchive_procedures(
2441 &mut self,
2442 request: impl tonic::IntoRequest<super::UnarchiveProceduresRequest>,
2443 ) -> std::result::Result<
2444 tonic::Response<super::UnarchiveProceduresResponse>,
2445 tonic::Status,
2446 > {
2447 self.inner
2448 .ready()
2449 .await
2450 .map_err(|e| {
2451 tonic::Status::unknown(
2452 format!("Service was not ready: {}", e.into()),
2453 )
2454 })?;
2455 let codec = tonic::codec::ProstCodec::default();
2456 let path = http::uri::PathAndQuery::from_static(
2457 "/nominal.procedures.v1.ProceduresService/UnarchiveProcedures",
2458 );
2459 let mut req = request.into_request();
2460 req.extensions_mut()
2461 .insert(
2462 GrpcMethod::new(
2463 "nominal.procedures.v1.ProceduresService",
2464 "UnarchiveProcedures",
2465 ),
2466 );
2467 self.inner.unary(req, path, codec).await
2468 }
2469 }
2470}