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)]
636pub struct PropertyReference {
637 #[prost(message, optional, tag = "1")]
638 pub key: ::core::option::Option<StringReference>,
639 #[prost(message, optional, tag = "2")]
640 pub value: ::core::option::Option<StringReference>,
641}
642#[derive(Clone, PartialEq, ::prost::Message)]
644pub struct ApplyWorkbookTemplatesConfig {
645 #[prost(message, optional, tag = "1")]
647 pub workbook_templates: ::core::option::Option<MultiWorkbookTemplateReference>,
648 #[prost(message, optional, tag = "2")]
650 pub runs: ::core::option::Option<MultiRunReference>,
651}
652#[derive(Clone, PartialEq, ::prost::Message)]
654pub struct ApplyChecklistsConfig {
655 #[prost(message, optional, tag = "1")]
657 pub checklists: ::core::option::Option<MultiChecklistReference>,
658 #[prost(message, optional, tag = "2")]
660 pub runs: ::core::option::Option<MultiRunReference>,
661}
662#[derive(Clone, PartialEq, ::prost::Message)]
664pub struct ProcedureStepContent {
665 #[prost(oneof = "procedure_step_content::Content", tags = "1, 2, 3, 4")]
667 pub content: ::core::option::Option<procedure_step_content::Content>,
668}
669pub mod procedure_step_content {
671 #[derive(Clone, PartialEq, ::prost::Oneof)]
673 pub enum Content {
674 #[prost(message, tag = "1")]
675 Form(super::FormStep),
676 #[prost(message, tag = "2")]
677 StartIngest(super::StartIngestStep),
678 #[prost(message, tag = "3")]
679 SelectOrCreateAsset(super::SelectOrCreateAssetStep),
680 #[prost(message, tag = "4")]
682 Wait(super::WaitStep),
683 }
684}
685#[derive(Clone, Copy, PartialEq, ::prost::Message)]
686pub struct WaitStep {}
687#[derive(Clone, PartialEq, ::prost::Message)]
689pub struct FormStep {
690 #[prost(message, repeated, tag = "1")]
691 pub fields: ::prost::alloc::vec::Vec<FormField>,
692}
693#[derive(Clone, PartialEq, ::prost::Message)]
696pub struct StartIngestStep {
697 #[prost(message, optional, tag = "1")]
699 pub asset: ::core::option::Option<AssetReference>,
700 #[prost(message, optional, tag = "2")]
702 pub ref_name: ::core::option::Option<StringReference>,
703 #[prost(message, optional, tag = "3")]
705 pub ingest_type_config: ::core::option::Option<start_ingest_step::IngestTypeConfig>,
706 #[prost(string, optional, tag = "4")]
708 pub ingest_job_output_field_id: ::core::option::Option<
709 ::prost::alloc::string::String,
710 >,
711}
712pub mod start_ingest_step {
714 #[derive(Clone, PartialEq, ::prost::Message)]
715 pub struct IngestTypeConfig {
716 #[prost(oneof = "ingest_type_config::Config", tags = "1, 2, 3, 4")]
717 pub config: ::core::option::Option<ingest_type_config::Config>,
718 }
719 pub mod ingest_type_config {
721 #[derive(Clone, PartialEq, ::prost::Message)]
722 pub struct ContainerizedExtractorIngestConfig {
723 #[prost(string, tag = "1")]
725 pub rid: ::prost::alloc::string::String,
726 #[prost(message, repeated, tag = "2")]
728 pub file_input_bindings: ::prost::alloc::vec::Vec<
729 super::super::FileInputBinding,
730 >,
731 }
732 #[derive(Clone, PartialEq, ::prost::Message)]
733 pub struct DataflashIngestConfig {
734 #[prost(message, optional, tag = "1")]
737 pub file_input: ::core::option::Option<super::super::FileReference>,
738 }
739 #[derive(Clone, PartialEq, ::prost::Message)]
740 pub struct CsvIngestConfig {
741 #[prost(message, optional, tag = "1")]
743 pub timestamp_series_name: ::core::option::Option<
744 super::super::StringReference,
745 >,
746 #[prost(message, optional, tag = "2")]
747 pub timestamp_type: ::core::option::Option<
748 super::super::TimestampTypeParameter,
749 >,
750 #[prost(message, optional, tag = "3")]
753 pub file_input: ::core::option::Option<super::super::FileReference>,
754 }
755 #[derive(Clone, PartialEq, ::prost::Message)]
756 pub struct ParquetIngestConfig {
757 #[prost(message, optional, tag = "1")]
759 pub timestamp_series_name: ::core::option::Option<
760 super::super::StringReference,
761 >,
762 #[prost(message, optional, tag = "2")]
763 pub timestamp_type: ::core::option::Option<
764 super::super::TimestampTypeParameter,
765 >,
766 #[prost(message, optional, tag = "3")]
769 pub file_input: ::core::option::Option<super::super::FileReference>,
770 }
771 #[derive(Clone, PartialEq, ::prost::Oneof)]
772 pub enum Config {
773 #[prost(message, tag = "1")]
775 ContainerizedExtractor(ContainerizedExtractorIngestConfig),
776 #[prost(message, tag = "2")]
777 Dataflash(DataflashIngestConfig),
778 #[prost(message, tag = "3")]
779 Csv(CsvIngestConfig),
780 #[prost(message, tag = "4")]
781 Parquet(ParquetIngestConfig),
782 }
783 }
784}
785#[derive(Clone, PartialEq, ::prost::Message)]
786pub struct FileInputBinding {
787 #[prost(string, tag = "1")]
789 pub environment_variable: ::prost::alloc::string::String,
790 #[prost(message, optional, tag = "2")]
792 pub file_reference: ::core::option::Option<FileReference>,
793}
794#[derive(Clone, PartialEq, ::prost::Message)]
795pub struct FileReference {
796 #[prost(oneof = "file_reference::Option", tags = "1")]
797 pub option: ::core::option::Option<file_reference::Option>,
798}
799pub mod file_reference {
801 #[derive(Clone, PartialEq, ::prost::Oneof)]
802 pub enum Option {
803 #[prost(string, tag = "1")]
805 FieldId(::prost::alloc::string::String),
806 }
807}
808#[derive(Clone, PartialEq, ::prost::Message)]
809pub struct TimestampTypeParameter {
810 #[prost(oneof = "timestamp_type_parameter::Option", tags = "1, 2")]
811 pub option: ::core::option::Option<timestamp_type_parameter::Option>,
812}
813pub mod timestamp_type_parameter {
815 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
817 pub struct UserInputOptions {}
818 #[derive(Clone, PartialEq, ::prost::Oneof)]
819 pub enum Option {
820 #[prost(message, tag = "1")]
822 Constant(super::TimestampType),
823 #[prost(message, tag = "2")]
825 UserInput(UserInputOptions),
826 }
827}
828#[derive(Clone, PartialEq, ::prost::Message)]
829pub struct TimestampType {
830 #[prost(oneof = "timestamp_type::Option", tags = "1, 2")]
831 pub option: ::core::option::Option<timestamp_type::Option>,
832}
833pub mod timestamp_type {
835 #[derive(Clone, PartialEq, ::prost::Oneof)]
836 pub enum Option {
837 #[prost(message, tag = "1")]
838 Relative(super::RelativeTimestamp),
839 #[prost(message, tag = "2")]
840 Absolute(super::AbsoluteTimestamp),
841 }
842}
843#[derive(Clone, PartialEq, ::prost::Message)]
844pub struct RelativeTimestamp {
845 #[prost(string, tag = "1")]
846 pub time_unit: ::prost::alloc::string::String,
847 #[prost(message, optional, tag = "2")]
849 pub offset: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
850}
851#[derive(Clone, PartialEq, ::prost::Message)]
852pub struct AbsoluteTimestamp {
853 #[prost(oneof = "absolute_timestamp::Option", tags = "1, 2, 3")]
854 pub option: ::core::option::Option<absolute_timestamp::Option>,
855}
856pub mod absolute_timestamp {
858 #[derive(Clone, PartialEq, ::prost::Oneof)]
859 pub enum Option {
860 #[prost(message, tag = "1")]
861 Iso8601(super::Iso8601Timestamp),
862 #[prost(message, tag = "2")]
863 EpochOfTimeUnit(super::EpochTimestamp),
864 #[prost(message, tag = "3")]
865 CustomFormat(super::CustomTimestamp),
866 }
867}
868#[derive(Clone, Copy, PartialEq, ::prost::Message)]
869pub struct Iso8601Timestamp {}
870#[derive(Clone, PartialEq, ::prost::Message)]
871pub struct EpochTimestamp {
872 #[prost(string, tag = "1")]
873 pub time_unit: ::prost::alloc::string::String,
874}
875#[derive(Clone, PartialEq, ::prost::Message)]
876pub struct CustomTimestamp {
877 #[prost(string, tag = "1")]
879 pub format: ::prost::alloc::string::String,
880 #[prost(int32, optional, tag = "2")]
883 pub default_year: ::core::option::Option<i32>,
884 #[prost(int32, optional, tag = "3")]
887 pub default_day_of_year: ::core::option::Option<i32>,
888}
889#[derive(Clone, PartialEq, ::prost::Message)]
891pub struct SelectOrCreateAssetStep {
892 #[prost(string, optional, tag = "1")]
894 pub asset_output_field_id: ::core::option::Option<::prost::alloc::string::String>,
895 #[prost(message, optional, tag = "2")]
897 pub create_asset_parameters: ::core::option::Option<
898 select_or_create_asset_step::CreateAssetParameters,
899 >,
900 #[prost(oneof = "select_or_create_asset_step::Options", tags = "3")]
903 pub options: ::core::option::Option<select_or_create_asset_step::Options>,
904}
905pub mod select_or_create_asset_step {
907 #[derive(Clone, PartialEq, ::prost::Message)]
911 pub struct CreateAssetParameters {
912 #[prost(message, optional, tag = "2")]
914 pub description: ::core::option::Option<
915 create_asset_parameters::DescriptionParameter,
916 >,
917 #[prost(message, optional, tag = "3")]
919 pub labels: ::core::option::Option<create_asset_parameters::LabelsParameter>,
920 #[prost(message, optional, tag = "4")]
922 pub properties: ::core::option::Option<
923 create_asset_parameters::PropertiesParameter,
924 >,
925 #[prost(map = "string, message", tag = "5")]
927 pub data_scopes: ::std::collections::HashMap<
928 ::prost::alloc::string::String,
929 create_asset_parameters::DataScopeParameter,
930 >,
931 }
932 pub mod create_asset_parameters {
934 #[derive(Clone, PartialEq, ::prost::Message)]
935 pub struct DescriptionParameter {
936 #[prost(oneof = "description_parameter::Option", tags = "1")]
937 pub option: ::core::option::Option<description_parameter::Option>,
938 }
939 pub mod description_parameter {
941 #[derive(Clone, PartialEq, ::prost::Oneof)]
942 pub enum Option {
943 #[prost(string, tag = "1")]
947 Constant(::prost::alloc::string::String),
948 }
949 }
950 #[derive(Clone, PartialEq, ::prost::Message)]
951 pub struct LabelsParameter {
952 #[prost(string, repeated, tag = "1")]
954 pub constant: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
955 #[prost(message, optional, tag = "2")]
958 pub user_input: ::core::option::Option<labels_parameter::UserInputOptions>,
959 }
960 pub mod labels_parameter {
962 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
964 pub struct UserInputOptions {}
965 }
966 #[derive(Clone, PartialEq, ::prost::Message)]
967 pub struct PropertiesParameter {
968 #[prost(map = "string, string", tag = "1")]
970 pub constant: ::std::collections::HashMap<
971 ::prost::alloc::string::String,
972 ::prost::alloc::string::String,
973 >,
974 #[prost(message, optional, tag = "2")]
977 pub user_input: ::core::option::Option<
978 properties_parameter::UserInputOptions,
979 >,
980 }
981 pub mod properties_parameter {
983 #[derive(Clone, PartialEq, ::prost::Message)]
984 pub struct UserInputOptions {
985 #[prost(string, repeated, tag = "1")]
987 pub required_keys: ::prost::alloc::vec::Vec<
988 ::prost::alloc::string::String,
989 >,
990 #[prost(string, repeated, tag = "2")]
994 pub suggested_keys: ::prost::alloc::vec::Vec<
995 ::prost::alloc::string::String,
996 >,
997 }
998 }
999 #[derive(Clone, PartialEq, ::prost::Message)]
1000 pub struct DataScopeParameter {
1001 #[prost(message, optional, tag = "21")]
1002 pub series_tags: ::core::option::Option<super::super::TagsParameter>,
1003 #[prost(oneof = "data_scope_parameter::DataSource", tags = "1, 2")]
1004 pub data_source: ::core::option::Option<data_scope_parameter::DataSource>,
1005 }
1006 pub mod data_scope_parameter {
1008 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1012 pub struct NewDataset {}
1013 #[derive(Clone, PartialEq, ::prost::Message)]
1014 pub struct ExistingDataset {
1015 #[prost(oneof = "existing_dataset::Options", tags = "1")]
1018 pub options: ::core::option::Option<existing_dataset::Options>,
1019 }
1020 pub mod existing_dataset {
1022 #[derive(Clone, PartialEq, ::prost::Oneof)]
1025 pub enum Options {
1026 #[prost(message, tag = "1")]
1028 PresetOptions(super::super::super::super::PresetDatasetFieldOptions),
1029 }
1030 }
1031 #[derive(Clone, PartialEq, ::prost::Oneof)]
1032 pub enum DataSource {
1033 #[prost(message, tag = "1")]
1035 NewDataset(NewDataset),
1036 #[prost(message, tag = "2")]
1038 ExistingDataset(ExistingDataset),
1039 }
1040 }
1041 }
1042 #[derive(Clone, PartialEq, ::prost::Oneof)]
1045 pub enum Options {
1046 #[prost(message, tag = "3")]
1051 PresetOptions(super::PresetAssetFieldOptions),
1052 }
1053}
1054#[derive(Clone, PartialEq, ::prost::Message)]
1056pub struct PresetDatasetFieldOptions {
1057 #[prost(message, repeated, tag = "1")]
1059 pub options: ::prost::alloc::vec::Vec<DatasetReference>,
1060 #[prost(message, optional, tag = "2")]
1063 pub default_option: ::core::option::Option<DatasetReference>,
1064}
1065#[derive(Clone, PartialEq, ::prost::Message)]
1067pub struct DatasetReference {
1068 #[prost(oneof = "dataset_reference::Option", tags = "1, 2")]
1069 pub option: ::core::option::Option<dataset_reference::Option>,
1070}
1071pub mod dataset_reference {
1073 #[derive(Clone, PartialEq, ::prost::Oneof)]
1074 pub enum Option {
1075 #[prost(string, tag = "1")]
1077 Rid(::prost::alloc::string::String),
1078 #[prost(string, tag = "2")]
1081 FieldId(::prost::alloc::string::String),
1082 }
1083}
1084#[derive(Clone, PartialEq, ::prost::Message)]
1085pub struct TagsParameter {
1086 #[prost(map = "string, string", tag = "1")]
1088 pub constant: ::std::collections::HashMap<
1089 ::prost::alloc::string::String,
1090 ::prost::alloc::string::String,
1091 >,
1092 #[prost(message, optional, tag = "2")]
1095 pub user_input: ::core::option::Option<tags_parameter::UserInputOptions>,
1096}
1097pub mod tags_parameter {
1099 #[derive(Clone, PartialEq, ::prost::Message)]
1100 pub struct UserInputOptions {
1101 #[prost(string, repeated, tag = "1")]
1103 pub required_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1104 #[prost(string, repeated, tag = "2")]
1108 pub suggested_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1109 }
1110}
1111#[derive(Clone, PartialEq, ::prost::Message)]
1113pub struct MultiStringReference {
1114 #[prost(oneof = "multi_string_reference::Option", tags = "1")]
1115 pub option: ::core::option::Option<multi_string_reference::Option>,
1116}
1117pub mod multi_string_reference {
1119 #[derive(Clone, PartialEq, ::prost::Oneof)]
1120 pub enum Option {
1121 #[prost(string, tag = "1")]
1123 FieldId(::prost::alloc::string::String),
1124 }
1125}
1126#[derive(Clone, PartialEq, ::prost::Message)]
1128pub struct StringReference {
1129 #[prost(oneof = "string_reference::Option", tags = "1, 2")]
1130 pub option: ::core::option::Option<string_reference::Option>,
1131}
1132pub mod string_reference {
1134 #[derive(Clone, PartialEq, ::prost::Oneof)]
1135 pub enum Option {
1136 #[prost(string, tag = "1")]
1138 Constant(::prost::alloc::string::String),
1139 #[prost(string, tag = "2")]
1144 FieldId(::prost::alloc::string::String),
1145 }
1146}
1147#[derive(Clone, PartialEq, ::prost::Message)]
1149pub struct MultiAssetReference {
1150 #[prost(oneof = "multi_asset_reference::Option", tags = "1")]
1151 pub option: ::core::option::Option<multi_asset_reference::Option>,
1152}
1153pub mod multi_asset_reference {
1155 #[derive(Clone, PartialEq, ::prost::Message)]
1156 pub struct AssetReferenceList {
1157 #[prost(message, repeated, tag = "1")]
1158 pub references: ::prost::alloc::vec::Vec<super::AssetReference>,
1159 }
1160 #[derive(Clone, PartialEq, ::prost::Oneof)]
1161 pub enum Option {
1162 #[prost(message, tag = "1")]
1164 List(AssetReferenceList),
1165 }
1166}
1167#[derive(Clone, PartialEq, ::prost::Message)]
1169pub struct AssetReference {
1170 #[prost(oneof = "asset_reference::Option", tags = "1, 2")]
1171 pub option: ::core::option::Option<asset_reference::Option>,
1172}
1173pub mod asset_reference {
1175 #[derive(Clone, PartialEq, ::prost::Oneof)]
1176 pub enum Option {
1177 #[prost(string, tag = "1")]
1179 Rid(::prost::alloc::string::String),
1180 #[prost(string, tag = "2")]
1183 FieldId(::prost::alloc::string::String),
1184 }
1185}
1186#[derive(Clone, PartialEq, ::prost::Message)]
1188pub struct TimeRangeReference {
1189 #[prost(oneof = "time_range_reference::Option", tags = "1")]
1190 pub option: ::core::option::Option<time_range_reference::Option>,
1191}
1192pub mod time_range_reference {
1194 #[derive(Clone, PartialEq, ::prost::Message)]
1195 pub struct IngestJobList {
1196 #[prost(string, repeated, tag = "1")]
1198 pub field_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1199 }
1200 #[derive(Clone, PartialEq, ::prost::Oneof)]
1201 pub enum Option {
1202 #[prost(message, tag = "1")]
1204 FromIngestJobs(IngestJobList),
1205 }
1206}
1207#[derive(Clone, PartialEq, ::prost::Message)]
1209pub struct MultiRunReference {
1210 #[prost(oneof = "multi_run_reference::Option", tags = "1")]
1211 pub option: ::core::option::Option<multi_run_reference::Option>,
1212}
1213pub mod multi_run_reference {
1215 #[derive(Clone, PartialEq, ::prost::Message)]
1216 pub struct RunReferenceList {
1217 #[prost(message, repeated, tag = "1")]
1218 pub references: ::prost::alloc::vec::Vec<super::RunReference>,
1219 }
1220 #[derive(Clone, PartialEq, ::prost::Oneof)]
1221 pub enum Option {
1222 #[prost(message, tag = "1")]
1224 List(RunReferenceList),
1225 }
1226}
1227#[derive(Clone, PartialEq, ::prost::Message)]
1229pub struct RunReference {
1230 #[prost(oneof = "run_reference::Option", tags = "1")]
1231 pub option: ::core::option::Option<run_reference::Option>,
1232}
1233pub mod run_reference {
1235 #[derive(Clone, PartialEq, ::prost::Oneof)]
1236 pub enum Option {
1237 #[prost(string, tag = "1")]
1239 FieldId(::prost::alloc::string::String),
1240 }
1241}
1242#[derive(Clone, PartialEq, ::prost::Message)]
1244pub struct MultiWorkbookTemplateReference {
1245 #[prost(oneof = "multi_workbook_template_reference::Option", tags = "1")]
1246 pub option: ::core::option::Option<multi_workbook_template_reference::Option>,
1247}
1248pub mod multi_workbook_template_reference {
1250 #[derive(Clone, PartialEq, ::prost::Message)]
1251 pub struct WorkbookTemplateReferenceList {
1252 #[prost(message, repeated, tag = "1")]
1253 pub references: ::prost::alloc::vec::Vec<super::WorkbookTemplateReference>,
1254 }
1255 #[derive(Clone, PartialEq, ::prost::Oneof)]
1256 pub enum Option {
1257 #[prost(message, tag = "1")]
1259 List(WorkbookTemplateReferenceList),
1260 }
1261}
1262#[derive(Clone, PartialEq, ::prost::Message)]
1264pub struct WorkbookTemplateReference {
1265 #[prost(oneof = "workbook_template_reference::Option", tags = "1")]
1266 pub option: ::core::option::Option<workbook_template_reference::Option>,
1267}
1268pub mod workbook_template_reference {
1270 #[derive(Clone, PartialEq, ::prost::Oneof)]
1271 pub enum Option {
1272 #[prost(string, tag = "1")]
1276 Rid(::prost::alloc::string::String),
1277 }
1278}
1279#[derive(Clone, PartialEq, ::prost::Message)]
1281pub struct MultiChecklistReference {
1282 #[prost(oneof = "multi_checklist_reference::Option", tags = "1")]
1283 pub option: ::core::option::Option<multi_checklist_reference::Option>,
1284}
1285pub mod multi_checklist_reference {
1287 #[derive(Clone, PartialEq, ::prost::Message)]
1288 pub struct ChecklistReferenceList {
1289 #[prost(message, repeated, tag = "1")]
1290 pub references: ::prost::alloc::vec::Vec<super::ChecklistReference>,
1291 }
1292 #[derive(Clone, PartialEq, ::prost::Oneof)]
1293 pub enum Option {
1294 #[prost(message, tag = "1")]
1296 List(ChecklistReferenceList),
1297 }
1298}
1299#[derive(Clone, PartialEq, ::prost::Message)]
1301pub struct ChecklistReference {
1302 #[prost(oneof = "checklist_reference::Option", tags = "1")]
1303 pub option: ::core::option::Option<checklist_reference::Option>,
1304}
1305pub mod checklist_reference {
1307 #[derive(Clone, PartialEq, ::prost::Oneof)]
1308 pub enum Option {
1309 #[prost(string, tag = "1")]
1313 Rid(::prost::alloc::string::String),
1314 }
1315}
1316#[derive(Clone, PartialEq, ::prost::Message)]
1318pub struct MultiIntegrationReference {
1319 #[prost(oneof = "multi_integration_reference::Option", tags = "1")]
1320 pub option: ::core::option::Option<multi_integration_reference::Option>,
1321}
1322pub mod multi_integration_reference {
1324 #[derive(Clone, PartialEq, ::prost::Message)]
1325 pub struct IntegrationReferenceList {
1326 #[prost(message, repeated, tag = "1")]
1327 pub references: ::prost::alloc::vec::Vec<super::IntegrationReference>,
1328 }
1329 #[derive(Clone, PartialEq, ::prost::Oneof)]
1330 pub enum Option {
1331 #[prost(message, tag = "1")]
1332 List(IntegrationReferenceList),
1333 }
1334}
1335#[derive(Clone, PartialEq, ::prost::Message)]
1337pub struct IntegrationReference {
1338 #[prost(oneof = "integration_reference::Option", tags = "1")]
1339 pub option: ::core::option::Option<integration_reference::Option>,
1340}
1341pub mod integration_reference {
1343 #[derive(Clone, PartialEq, ::prost::Oneof)]
1344 pub enum Option {
1345 #[prost(string, tag = "1")]
1349 Rid(::prost::alloc::string::String),
1350 }
1351}
1352#[derive(Clone, PartialEq, ::prost::Message)]
1354pub struct FormField {
1355 #[prost(string, tag = "1")]
1357 pub id: ::prost::alloc::string::String,
1358 #[prost(string, optional, tag = "11")]
1360 pub label: ::core::option::Option<::prost::alloc::string::String>,
1361 #[prost(string, optional, tag = "12")]
1363 pub description: ::core::option::Option<::prost::alloc::string::String>,
1364 #[prost(oneof = "form_field::Field", tags = "2, 3, 4, 5, 6, 7, 8, 9, 10")]
1365 pub field: ::core::option::Option<form_field::Field>,
1366}
1367pub mod form_field {
1369 #[derive(Clone, PartialEq, ::prost::Oneof)]
1370 pub enum Field {
1371 #[prost(message, tag = "2")]
1372 Asset(super::AssetField),
1373 #[prost(message, tag = "3")]
1374 Checkbox(super::CheckboxField),
1375 #[prost(message, tag = "4")]
1376 Text(super::TextField),
1377 #[prost(message, tag = "5")]
1378 Int(super::IntField),
1379 #[prost(message, tag = "6")]
1380 Double(super::DoubleField),
1381 #[prost(message, tag = "7")]
1382 SingleEnum(super::SingleEnumField),
1383 #[prost(message, tag = "8")]
1384 MultiEnum(super::MultiEnumField),
1385 #[prost(message, tag = "9")]
1386 FileUpload(super::FileUploadField),
1387 #[prost(message, tag = "10")]
1388 MultiFileUpload(super::MultiFileUploadField),
1389 }
1390}
1391#[derive(Clone, PartialEq, ::prost::Message)]
1393pub struct PresetAssetFieldOptions {
1394 #[prost(message, repeated, tag = "1")]
1396 pub options: ::prost::alloc::vec::Vec<AssetReference>,
1397 #[prost(message, optional, tag = "2")]
1400 pub default_option: ::core::option::Option<AssetReference>,
1401}
1402#[derive(Clone, PartialEq, ::prost::Message)]
1404pub struct AssetField {
1405 #[prost(string, tag = "1")]
1408 pub label: ::prost::alloc::string::String,
1409 #[prost(bool, tag = "2")]
1411 pub is_required: bool,
1412 #[prost(oneof = "asset_field::Options", tags = "3")]
1415 pub options: ::core::option::Option<asset_field::Options>,
1416}
1417pub mod asset_field {
1419 #[derive(Clone, PartialEq, ::prost::Oneof)]
1422 pub enum Options {
1423 #[prost(message, tag = "3")]
1428 PresetOptions(super::PresetAssetFieldOptions),
1429 }
1430}
1431#[derive(Clone, PartialEq, ::prost::Message)]
1433pub struct CheckboxField {
1434 #[prost(string, tag = "1")]
1437 pub label: ::prost::alloc::string::String,
1438 #[prost(bool, tag = "2")]
1440 pub is_required: bool,
1441}
1442#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1443pub struct TextFieldSimpleInputType {}
1444#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1445pub struct TextFieldMarkdownInputType {}
1446#[derive(Clone, PartialEq, ::prost::Message)]
1448pub struct TextField {
1449 #[prost(string, tag = "1")]
1452 pub label: ::prost::alloc::string::String,
1453 #[prost(uint32, optional, tag = "4")]
1456 pub min_length: ::core::option::Option<u32>,
1457 #[prost(uint32, optional, tag = "5")]
1459 pub max_length: ::core::option::Option<u32>,
1460 #[prost(oneof = "text_field::InputType", tags = "2, 3")]
1462 pub input_type: ::core::option::Option<text_field::InputType>,
1463}
1464pub mod text_field {
1466 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1468 pub enum InputType {
1469 #[prost(message, tag = "2")]
1471 Simple(super::TextFieldSimpleInputType),
1472 #[prost(message, tag = "3")]
1474 Markdown(super::TextFieldMarkdownInputType),
1475 }
1476}
1477#[derive(Clone, PartialEq, ::prost::Message)]
1479pub struct IntField {
1480 #[prost(string, tag = "1")]
1483 pub label: ::prost::alloc::string::String,
1484 #[prost(bool, tag = "2")]
1486 pub is_required: bool,
1487 #[prost(int64, optional, tag = "3")]
1489 pub gte_value: ::core::option::Option<i64>,
1490 #[prost(int64, optional, tag = "4")]
1492 pub lte_value: ::core::option::Option<i64>,
1493}
1494#[derive(Clone, PartialEq, ::prost::Message)]
1496pub struct DoubleField {
1497 #[prost(string, tag = "1")]
1500 pub label: ::prost::alloc::string::String,
1501 #[prost(bool, tag = "2")]
1503 pub is_required: bool,
1504 #[prost(oneof = "double_field::LowerBound", tags = "3, 4")]
1506 pub lower_bound: ::core::option::Option<double_field::LowerBound>,
1507 #[prost(oneof = "double_field::UpperBound", tags = "5, 6")]
1509 pub upper_bound: ::core::option::Option<double_field::UpperBound>,
1510}
1511pub mod double_field {
1513 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1515 pub enum LowerBound {
1516 #[prost(double, tag = "3")]
1518 GtValue(f64),
1519 #[prost(double, tag = "4")]
1521 GteValue(f64),
1522 }
1523 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1525 pub enum UpperBound {
1526 #[prost(double, tag = "5")]
1528 LtValue(f64),
1529 #[prost(double, tag = "6")]
1531 LteValue(f64),
1532 }
1533}
1534#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1535pub struct EnumFieldButtonsInputType {}
1536#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1537pub struct EnumFieldMenuInputType {}
1538#[derive(Clone, PartialEq, ::prost::Message)]
1540pub struct SingleEnumField {
1541 #[prost(string, tag = "1")]
1544 pub label: ::prost::alloc::string::String,
1545 #[prost(string, repeated, tag = "2")]
1547 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1548 #[prost(bool, tag = "5")]
1550 pub allow_custom: bool,
1551 #[prost(bool, tag = "6")]
1553 pub is_required: bool,
1554 #[prost(oneof = "single_enum_field::InputType", tags = "3, 4")]
1556 pub input_type: ::core::option::Option<single_enum_field::InputType>,
1557}
1558pub mod single_enum_field {
1560 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1562 pub enum InputType {
1563 #[prost(message, tag = "3")]
1565 Buttons(super::EnumFieldButtonsInputType),
1566 #[prost(message, tag = "4")]
1568 Dropdown(super::EnumFieldMenuInputType),
1569 }
1570}
1571#[derive(Clone, PartialEq, ::prost::Message)]
1573pub struct MultiEnumField {
1574 #[prost(string, tag = "1")]
1577 pub label: ::prost::alloc::string::String,
1578 #[prost(string, repeated, tag = "2")]
1580 pub options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1581 #[prost(bool, tag = "6")]
1583 pub allow_custom: bool,
1584 #[prost(uint32, optional, tag = "7")]
1587 pub min_count: ::core::option::Option<u32>,
1588 #[prost(uint32, optional, tag = "8")]
1590 pub max_count: ::core::option::Option<u32>,
1591 #[prost(oneof = "multi_enum_field::InputType", tags = "3, 4")]
1593 pub input_type: ::core::option::Option<multi_enum_field::InputType>,
1594}
1595pub mod multi_enum_field {
1597 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1599 pub enum InputType {
1600 #[prost(message, tag = "3")]
1602 Buttons(super::EnumFieldButtonsInputType),
1603 #[prost(message, tag = "4")]
1605 Dropdown(super::EnumFieldMenuInputType),
1606 }
1607}
1608#[derive(Clone, PartialEq, ::prost::Message)]
1610pub struct FileUploadField {
1611 #[prost(bool, tag = "1")]
1613 pub is_required: bool,
1614 #[prost(string, repeated, tag = "2")]
1616 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1617}
1618#[derive(Clone, PartialEq, ::prost::Message)]
1620pub struct MultiFileUploadField {
1621 #[prost(uint32, optional, tag = "1")]
1623 pub min_count: ::core::option::Option<u32>,
1624 #[prost(uint32, optional, tag = "2")]
1626 pub max_count: ::core::option::Option<u32>,
1627 #[prost(string, repeated, tag = "3")]
1629 pub suffix_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1630}
1631#[derive(Clone, PartialEq, ::prost::Message)]
1633pub struct ProcedureMetadata {
1634 #[prost(string, tag = "1")]
1635 pub rid: ::prost::alloc::string::String,
1636 #[prost(string, tag = "2")]
1637 pub title: ::prost::alloc::string::String,
1638 #[prost(string, optional, tag = "3")]
1639 pub description: ::core::option::Option<::prost::alloc::string::String>,
1640 #[prost(string, repeated, tag = "4")]
1641 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1642 #[prost(map = "string, string", tag = "5")]
1643 pub properties: ::std::collections::HashMap<
1644 ::prost::alloc::string::String,
1645 ::prost::alloc::string::String,
1646 >,
1647 #[prost(bool, tag = "6")]
1648 pub is_archived: bool,
1649 #[prost(bool, tag = "7")]
1650 pub is_published: bool,
1651 #[prost(message, optional, tag = "8")]
1652 pub created_at: ::core::option::Option<
1653 super::super::super::google::protobuf::Timestamp,
1654 >,
1655 #[prost(string, tag = "9")]
1656 pub created_by: ::prost::alloc::string::String,
1657 #[prost(message, optional, tag = "10")]
1658 pub updated_at: ::core::option::Option<
1659 super::super::super::google::protobuf::Timestamp,
1660 >,
1661 #[prost(string, tag = "11")]
1662 pub updated_by: ::prost::alloc::string::String,
1663 #[prost(string, tag = "12")]
1664 pub workspace: ::prost::alloc::string::String,
1665}
1666#[derive(Clone, PartialEq, ::prost::Message)]
1668pub struct Procedure {
1669 #[prost(string, tag = "1")]
1671 pub rid: ::prost::alloc::string::String,
1672 #[prost(string, tag = "2")]
1674 pub commit: ::prost::alloc::string::String,
1675 #[prost(message, optional, tag = "3")]
1677 pub metadata: ::core::option::Option<ProcedureMetadata>,
1678 #[prost(message, optional, tag = "4")]
1680 pub state: ::core::option::Option<ProcedureState>,
1681}
1682#[derive(Clone, PartialEq, ::prost::Message)]
1683pub struct CreateProcedureRequest {
1684 #[prost(string, tag = "1")]
1685 pub title: ::prost::alloc::string::String,
1686 #[prost(string, optional, tag = "2")]
1687 pub description: ::core::option::Option<::prost::alloc::string::String>,
1688 #[prost(string, repeated, tag = "3")]
1689 pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1690 #[prost(map = "string, string", tag = "4")]
1691 pub properties: ::std::collections::HashMap<
1692 ::prost::alloc::string::String,
1693 ::prost::alloc::string::String,
1694 >,
1695 #[prost(message, optional, tag = "5")]
1696 pub state: ::core::option::Option<ProcedureState>,
1697 #[prost(bool, optional, tag = "6")]
1698 pub is_published: ::core::option::Option<bool>,
1699 #[prost(string, tag = "7")]
1700 pub workspace: ::prost::alloc::string::String,
1701 #[prost(string, tag = "8")]
1702 pub commit_message: ::prost::alloc::string::String,
1703 #[prost(string, optional, tag = "9")]
1704 pub initial_branch_name: ::core::option::Option<::prost::alloc::string::String>,
1705}
1706#[derive(Clone, PartialEq, ::prost::Message)]
1707pub struct CreateProcedureResponse {
1708 #[prost(message, optional, tag = "1")]
1709 pub procedure: ::core::option::Option<Procedure>,
1710 #[prost(string, optional, tag = "2")]
1711 pub branch_name: ::core::option::Option<::prost::alloc::string::String>,
1712}
1713#[derive(Clone, PartialEq, ::prost::Message)]
1714pub struct GetProcedureRequest {
1715 #[prost(string, tag = "1")]
1716 pub rid: ::prost::alloc::string::String,
1717 #[prost(message, optional, tag = "2")]
1718 pub branch_or_commit: ::core::option::Option<
1719 super::super::versioning::v1::BranchOrCommit,
1720 >,
1721 #[prost(bool, tag = "3")]
1724 pub include_display_graph: bool,
1725}
1726#[derive(Clone, PartialEq, ::prost::Message)]
1727pub struct GetProcedureResponse {
1728 #[prost(message, optional, tag = "1")]
1729 pub procedure: ::core::option::Option<Procedure>,
1730 #[prost(message, optional, tag = "2")]
1732 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1733}
1734#[derive(Clone, PartialEq, ::prost::Message)]
1735pub struct BatchGetProcedureMetadataRequest {
1736 #[prost(string, repeated, tag = "1")]
1737 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1738}
1739#[derive(Clone, PartialEq, ::prost::Message)]
1740pub struct BatchGetProcedureMetadataResponse {
1741 #[prost(message, repeated, tag = "1")]
1742 pub procedure_metadatas: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1743}
1744#[derive(Clone, PartialEq, ::prost::Message)]
1745pub struct UpdateProcedureMetadataRequest {
1746 #[prost(string, tag = "1")]
1747 pub rid: ::prost::alloc::string::String,
1748 #[prost(string, optional, tag = "2")]
1749 pub title: ::core::option::Option<::prost::alloc::string::String>,
1750 #[prost(string, optional, tag = "3")]
1751 pub description: ::core::option::Option<::prost::alloc::string::String>,
1752 #[prost(message, optional, tag = "4")]
1753 pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
1754 #[prost(message, optional, tag = "5")]
1755 pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
1756 #[prost(bool, optional, tag = "6")]
1757 pub is_archived: ::core::option::Option<bool>,
1758 #[prost(bool, optional, tag = "7")]
1759 pub is_published: ::core::option::Option<bool>,
1760}
1761#[derive(Clone, PartialEq, ::prost::Message)]
1762pub struct UpdateProcedureMetadataResponse {
1763 #[prost(message, optional, tag = "1")]
1764 pub procedure_metadata: ::core::option::Option<ProcedureMetadata>,
1765}
1766#[derive(Clone, PartialEq, ::prost::Message)]
1767pub struct ParseNestedProcedureRequest {
1768 #[prost(message, optional, tag = "1")]
1769 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1770 #[prost(bool, tag = "3")]
1773 pub include_display_graph: bool,
1774}
1775#[derive(Clone, PartialEq, ::prost::Message)]
1776pub struct ParseNestedProcedureResponse {
1777 #[prost(message, optional, tag = "1")]
1778 pub procedure: ::core::option::Option<Procedure>,
1779 #[prost(message, optional, tag = "2")]
1781 pub display_graph: ::core::option::Option<ProcedureDisplayGraph>,
1782}
1783#[derive(Clone, PartialEq, ::prost::Message)]
1784pub struct GetProcedureAsNestedRequest {
1785 #[prost(string, tag = "1")]
1786 pub rid: ::prost::alloc::string::String,
1787 #[prost(message, optional, tag = "2")]
1788 pub branch_or_commit: ::core::option::Option<
1789 super::super::versioning::v1::BranchOrCommit,
1790 >,
1791}
1792#[derive(Clone, PartialEq, ::prost::Message)]
1793pub struct GetProcedureAsNestedResponse {
1794 #[prost(message, optional, tag = "1")]
1795 pub nested_procedure: ::core::option::Option<NestedProcedure>,
1796}
1797#[derive(Clone, PartialEq, ::prost::Message)]
1798pub struct MergeToMainRequest {
1799 #[prost(string, tag = "1")]
1800 pub rid: ::prost::alloc::string::String,
1801 #[prost(string, tag = "2")]
1802 pub branch: ::prost::alloc::string::String,
1803 #[prost(string, optional, tag = "3")]
1805 pub latest_commit_on_main: ::core::option::Option<::prost::alloc::string::String>,
1806 #[prost(string, tag = "4")]
1807 pub message: ::prost::alloc::string::String,
1808}
1809#[derive(Clone, PartialEq, ::prost::Message)]
1810pub struct MergeToMainResponse {
1811 #[prost(message, optional, tag = "1")]
1812 pub procedure: ::core::option::Option<Procedure>,
1813}
1814#[derive(Clone, PartialEq, ::prost::Message)]
1815pub struct SaveWorkingStateRequest {
1816 #[prost(string, tag = "1")]
1817 pub rid: ::prost::alloc::string::String,
1818 #[prost(string, optional, tag = "2")]
1819 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1820 #[prost(string, tag = "3")]
1821 pub message: ::prost::alloc::string::String,
1822 #[prost(string, optional, tag = "4")]
1824 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1825 #[prost(message, optional, tag = "5")]
1826 pub state: ::core::option::Option<ProcedureState>,
1827}
1828#[derive(Clone, PartialEq, ::prost::Message)]
1829pub struct SaveWorkingStateResponse {
1830 #[prost(message, optional, tag = "1")]
1831 pub procedure: ::core::option::Option<Procedure>,
1832}
1833#[derive(Clone, PartialEq, ::prost::Message)]
1834pub struct CommitRequest {
1835 #[prost(string, tag = "1")]
1836 pub rid: ::prost::alloc::string::String,
1837 #[prost(string, optional, tag = "2")]
1838 pub branch: ::core::option::Option<::prost::alloc::string::String>,
1839 #[prost(string, optional, tag = "3")]
1841 pub latest_commit_on_branch: ::core::option::Option<::prost::alloc::string::String>,
1842 #[prost(string, tag = "4")]
1843 pub message: ::prost::alloc::string::String,
1844 #[prost(message, optional, tag = "5")]
1845 pub state: ::core::option::Option<ProcedureState>,
1846}
1847#[derive(Clone, PartialEq, ::prost::Message)]
1848pub struct CommitResponse {
1849 #[prost(message, optional, tag = "1")]
1850 pub procedure: ::core::option::Option<Procedure>,
1851}
1852#[derive(Clone, PartialEq, ::prost::Message)]
1853pub struct ProcedureSearchQuery {
1854 #[prost(oneof = "procedure_search_query::Query", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
1855 pub query: ::core::option::Option<procedure_search_query::Query>,
1856}
1857pub mod procedure_search_query {
1859 #[derive(Clone, PartialEq, ::prost::Message)]
1860 pub struct ProcedureSearchAndQuery {
1861 #[prost(message, repeated, tag = "1")]
1862 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1863 }
1864 #[derive(Clone, PartialEq, ::prost::Message)]
1865 pub struct ProcedureSearchOrQuery {
1866 #[prost(message, repeated, tag = "1")]
1867 pub queries: ::prost::alloc::vec::Vec<super::ProcedureSearchQuery>,
1868 }
1869 #[derive(Clone, PartialEq, ::prost::Oneof)]
1870 pub enum Query {
1871 #[prost(string, tag = "1")]
1872 SearchText(::prost::alloc::string::String),
1873 #[prost(string, tag = "2")]
1874 Label(::prost::alloc::string::String),
1875 #[prost(message, tag = "3")]
1876 Property(super::super::super::types::Property),
1877 #[prost(message, tag = "4")]
1878 And(ProcedureSearchAndQuery),
1879 #[prost(message, tag = "5")]
1880 Or(ProcedureSearchOrQuery),
1881 #[prost(string, tag = "6")]
1882 Workspace(::prost::alloc::string::String),
1883 #[prost(string, tag = "7")]
1884 CreatedBy(::prost::alloc::string::String),
1885 #[prost(bool, tag = "8")]
1886 IsArchived(bool),
1887 }
1888}
1889#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1890pub struct SearchProceduresSortOptions {
1891 #[prost(bool, optional, tag = "1")]
1893 pub is_descending: ::core::option::Option<bool>,
1894 #[prost(enumeration = "SearchProceduresSortField", optional, tag = "2")]
1896 pub sort_field: ::core::option::Option<i32>,
1897}
1898#[derive(Clone, PartialEq, ::prost::Message)]
1899pub struct SearchProceduresRequest {
1900 #[prost(message, optional, tag = "1")]
1901 pub query: ::core::option::Option<ProcedureSearchQuery>,
1902 #[prost(message, optional, tag = "2")]
1904 pub sort_options: ::core::option::Option<SearchProceduresSortOptions>,
1905 #[prost(int32, optional, tag = "3")]
1907 pub page_size: ::core::option::Option<i32>,
1908 #[prost(string, optional, tag = "4")]
1909 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1910}
1911#[derive(Clone, PartialEq, ::prost::Message)]
1912pub struct SearchProceduresResponse {
1913 #[prost(message, repeated, tag = "1")]
1914 pub procedure_metadata: ::prost::alloc::vec::Vec<ProcedureMetadata>,
1915 #[prost(string, optional, tag = "2")]
1916 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
1917}
1918#[derive(Clone, PartialEq, ::prost::Message)]
1919pub struct ArchiveProceduresRequest {
1920 #[prost(string, repeated, tag = "1")]
1921 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1922}
1923#[derive(Clone, PartialEq, ::prost::Message)]
1924pub struct ArchiveProceduresResponse {
1925 #[prost(string, repeated, tag = "1")]
1926 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1927}
1928#[derive(Clone, PartialEq, ::prost::Message)]
1929pub struct UnarchiveProceduresRequest {
1930 #[prost(string, repeated, tag = "1")]
1931 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1932}
1933#[derive(Clone, PartialEq, ::prost::Message)]
1934pub struct UnarchiveProceduresResponse {
1935 #[prost(string, repeated, tag = "1")]
1936 pub procedure_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1937}
1938#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1939#[repr(i32)]
1940pub enum SearchProceduresSortField {
1941 Unspecified = 0,
1942 Name = 1,
1943 CreatedAt = 2,
1944 UpdatedAt = 3,
1945}
1946impl SearchProceduresSortField {
1947 pub fn as_str_name(&self) -> &'static str {
1952 match self {
1953 Self::Unspecified => "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED",
1954 Self::Name => "SEARCH_PROCEDURES_SORT_FIELD_NAME",
1955 Self::CreatedAt => "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT",
1956 Self::UpdatedAt => "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT",
1957 }
1958 }
1959 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1961 match value {
1962 "SEARCH_PROCEDURES_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
1963 "SEARCH_PROCEDURES_SORT_FIELD_NAME" => Some(Self::Name),
1964 "SEARCH_PROCEDURES_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
1965 "SEARCH_PROCEDURES_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
1966 _ => None,
1967 }
1968 }
1969}
1970#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1971#[repr(i32)]
1972pub enum ProceduresServiceError {
1973 Unspecified = 0,
1974 NotFound = 1,
1975 CommitNotFound = 2,
1976 CannotMergeMain = 3,
1977 CannotCommitToArchivedProcedure = 4,
1978 InvalidGraph = 5,
1979 InvalidSearchToken = 6,
1980}
1981impl ProceduresServiceError {
1982 pub fn as_str_name(&self) -> &'static str {
1987 match self {
1988 Self::Unspecified => "PROCEDURES_SERVICE_ERROR_UNSPECIFIED",
1989 Self::NotFound => "PROCEDURES_SERVICE_ERROR_NOT_FOUND",
1990 Self::CommitNotFound => "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND",
1991 Self::CannotMergeMain => "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN",
1992 Self::CannotCommitToArchivedProcedure => {
1993 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE"
1994 }
1995 Self::InvalidGraph => "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH",
1996 Self::InvalidSearchToken => "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN",
1997 }
1998 }
1999 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2001 match value {
2002 "PROCEDURES_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
2003 "PROCEDURES_SERVICE_ERROR_NOT_FOUND" => Some(Self::NotFound),
2004 "PROCEDURES_SERVICE_ERROR_COMMIT_NOT_FOUND" => Some(Self::CommitNotFound),
2005 "PROCEDURES_SERVICE_ERROR_CANNOT_MERGE_MAIN" => Some(Self::CannotMergeMain),
2006 "PROCEDURES_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_PROCEDURE" => {
2007 Some(Self::CannotCommitToArchivedProcedure)
2008 }
2009 "PROCEDURES_SERVICE_ERROR_INVALID_GRAPH" => Some(Self::InvalidGraph),
2010 "PROCEDURES_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
2011 Some(Self::InvalidSearchToken)
2012 }
2013 _ => None,
2014 }
2015 }
2016}
2017pub mod procedures_service_client {
2019 #![allow(
2020 unused_variables,
2021 dead_code,
2022 missing_docs,
2023 clippy::wildcard_imports,
2024 clippy::let_unit_value,
2025 )]
2026 use tonic::codegen::*;
2027 use tonic::codegen::http::Uri;
2028 #[derive(Debug, Clone)]
2031 pub struct ProceduresServiceClient<T> {
2032 inner: tonic::client::Grpc<T>,
2033 }
2034 impl ProceduresServiceClient<tonic::transport::Channel> {
2035 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
2037 where
2038 D: TryInto<tonic::transport::Endpoint>,
2039 D::Error: Into<StdError>,
2040 {
2041 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
2042 Ok(Self::new(conn))
2043 }
2044 }
2045 impl<T> ProceduresServiceClient<T>
2046 where
2047 T: tonic::client::GrpcService<tonic::body::Body>,
2048 T::Error: Into<StdError>,
2049 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
2050 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
2051 {
2052 pub fn new(inner: T) -> Self {
2053 let inner = tonic::client::Grpc::new(inner);
2054 Self { inner }
2055 }
2056 pub fn with_origin(inner: T, origin: Uri) -> Self {
2057 let inner = tonic::client::Grpc::with_origin(inner, origin);
2058 Self { inner }
2059 }
2060 pub fn with_interceptor<F>(
2061 inner: T,
2062 interceptor: F,
2063 ) -> ProceduresServiceClient<InterceptedService<T, F>>
2064 where
2065 F: tonic::service::Interceptor,
2066 T::ResponseBody: Default,
2067 T: tonic::codegen::Service<
2068 http::Request<tonic::body::Body>,
2069 Response = http::Response<
2070 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
2071 >,
2072 >,
2073 <T as tonic::codegen::Service<
2074 http::Request<tonic::body::Body>,
2075 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
2076 {
2077 ProceduresServiceClient::new(InterceptedService::new(inner, interceptor))
2078 }
2079 #[must_use]
2084 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
2085 self.inner = self.inner.send_compressed(encoding);
2086 self
2087 }
2088 #[must_use]
2090 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
2091 self.inner = self.inner.accept_compressed(encoding);
2092 self
2093 }
2094 #[must_use]
2098 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
2099 self.inner = self.inner.max_decoding_message_size(limit);
2100 self
2101 }
2102 #[must_use]
2106 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
2107 self.inner = self.inner.max_encoding_message_size(limit);
2108 self
2109 }
2110 pub async fn create_procedure(
2112 &mut self,
2113 request: impl tonic::IntoRequest<super::CreateProcedureRequest>,
2114 ) -> std::result::Result<
2115 tonic::Response<super::CreateProcedureResponse>,
2116 tonic::Status,
2117 > {
2118 self.inner
2119 .ready()
2120 .await
2121 .map_err(|e| {
2122 tonic::Status::unknown(
2123 format!("Service was not ready: {}", e.into()),
2124 )
2125 })?;
2126 let codec = tonic::codec::ProstCodec::default();
2127 let path = http::uri::PathAndQuery::from_static(
2128 "/nominal.procedures.v1.ProceduresService/CreateProcedure",
2129 );
2130 let mut req = request.into_request();
2131 req.extensions_mut()
2132 .insert(
2133 GrpcMethod::new(
2134 "nominal.procedures.v1.ProceduresService",
2135 "CreateProcedure",
2136 ),
2137 );
2138 self.inner.unary(req, path, codec).await
2139 }
2140 pub async fn get_procedure(
2142 &mut self,
2143 request: impl tonic::IntoRequest<super::GetProcedureRequest>,
2144 ) -> std::result::Result<
2145 tonic::Response<super::GetProcedureResponse>,
2146 tonic::Status,
2147 > {
2148 self.inner
2149 .ready()
2150 .await
2151 .map_err(|e| {
2152 tonic::Status::unknown(
2153 format!("Service was not ready: {}", e.into()),
2154 )
2155 })?;
2156 let codec = tonic::codec::ProstCodec::default();
2157 let path = http::uri::PathAndQuery::from_static(
2158 "/nominal.procedures.v1.ProceduresService/GetProcedure",
2159 );
2160 let mut req = request.into_request();
2161 req.extensions_mut()
2162 .insert(
2163 GrpcMethod::new(
2164 "nominal.procedures.v1.ProceduresService",
2165 "GetProcedure",
2166 ),
2167 );
2168 self.inner.unary(req, path, codec).await
2169 }
2170 pub async fn batch_get_procedure_metadata(
2174 &mut self,
2175 request: impl tonic::IntoRequest<super::BatchGetProcedureMetadataRequest>,
2176 ) -> std::result::Result<
2177 tonic::Response<super::BatchGetProcedureMetadataResponse>,
2178 tonic::Status,
2179 > {
2180 self.inner
2181 .ready()
2182 .await
2183 .map_err(|e| {
2184 tonic::Status::unknown(
2185 format!("Service was not ready: {}", e.into()),
2186 )
2187 })?;
2188 let codec = tonic::codec::ProstCodec::default();
2189 let path = http::uri::PathAndQuery::from_static(
2190 "/nominal.procedures.v1.ProceduresService/BatchGetProcedureMetadata",
2191 );
2192 let mut req = request.into_request();
2193 req.extensions_mut()
2194 .insert(
2195 GrpcMethod::new(
2196 "nominal.procedures.v1.ProceduresService",
2197 "BatchGetProcedureMetadata",
2198 ),
2199 );
2200 self.inner.unary(req, path, codec).await
2201 }
2202 pub async fn update_procedure_metadata(
2204 &mut self,
2205 request: impl tonic::IntoRequest<super::UpdateProcedureMetadataRequest>,
2206 ) -> std::result::Result<
2207 tonic::Response<super::UpdateProcedureMetadataResponse>,
2208 tonic::Status,
2209 > {
2210 self.inner
2211 .ready()
2212 .await
2213 .map_err(|e| {
2214 tonic::Status::unknown(
2215 format!("Service was not ready: {}", e.into()),
2216 )
2217 })?;
2218 let codec = tonic::codec::ProstCodec::default();
2219 let path = http::uri::PathAndQuery::from_static(
2220 "/nominal.procedures.v1.ProceduresService/UpdateProcedureMetadata",
2221 );
2222 let mut req = request.into_request();
2223 req.extensions_mut()
2224 .insert(
2225 GrpcMethod::new(
2226 "nominal.procedures.v1.ProceduresService",
2227 "UpdateProcedureMetadata",
2228 ),
2229 );
2230 self.inner.unary(req, path, codec).await
2231 }
2232 pub async fn parse_nested_procedure(
2234 &mut self,
2235 request: impl tonic::IntoRequest<super::ParseNestedProcedureRequest>,
2236 ) -> std::result::Result<
2237 tonic::Response<super::ParseNestedProcedureResponse>,
2238 tonic::Status,
2239 > {
2240 self.inner
2241 .ready()
2242 .await
2243 .map_err(|e| {
2244 tonic::Status::unknown(
2245 format!("Service was not ready: {}", e.into()),
2246 )
2247 })?;
2248 let codec = tonic::codec::ProstCodec::default();
2249 let path = http::uri::PathAndQuery::from_static(
2250 "/nominal.procedures.v1.ProceduresService/ParseNestedProcedure",
2251 );
2252 let mut req = request.into_request();
2253 req.extensions_mut()
2254 .insert(
2255 GrpcMethod::new(
2256 "nominal.procedures.v1.ProceduresService",
2257 "ParseNestedProcedure",
2258 ),
2259 );
2260 self.inner.unary(req, path, codec).await
2261 }
2262 pub async fn get_procedure_as_nested(
2265 &mut self,
2266 request: impl tonic::IntoRequest<super::GetProcedureAsNestedRequest>,
2267 ) -> std::result::Result<
2268 tonic::Response<super::GetProcedureAsNestedResponse>,
2269 tonic::Status,
2270 > {
2271 self.inner
2272 .ready()
2273 .await
2274 .map_err(|e| {
2275 tonic::Status::unknown(
2276 format!("Service was not ready: {}", e.into()),
2277 )
2278 })?;
2279 let codec = tonic::codec::ProstCodec::default();
2280 let path = http::uri::PathAndQuery::from_static(
2281 "/nominal.procedures.v1.ProceduresService/GetProcedureAsNested",
2282 );
2283 let mut req = request.into_request();
2284 req.extensions_mut()
2285 .insert(
2286 GrpcMethod::new(
2287 "nominal.procedures.v1.ProceduresService",
2288 "GetProcedureAsNested",
2289 ),
2290 );
2291 self.inner.unary(req, path, codec).await
2292 }
2293 pub async fn merge_to_main(
2295 &mut self,
2296 request: impl tonic::IntoRequest<super::MergeToMainRequest>,
2297 ) -> std::result::Result<
2298 tonic::Response<super::MergeToMainResponse>,
2299 tonic::Status,
2300 > {
2301 self.inner
2302 .ready()
2303 .await
2304 .map_err(|e| {
2305 tonic::Status::unknown(
2306 format!("Service was not ready: {}", e.into()),
2307 )
2308 })?;
2309 let codec = tonic::codec::ProstCodec::default();
2310 let path = http::uri::PathAndQuery::from_static(
2311 "/nominal.procedures.v1.ProceduresService/MergeToMain",
2312 );
2313 let mut req = request.into_request();
2314 req.extensions_mut()
2315 .insert(
2316 GrpcMethod::new(
2317 "nominal.procedures.v1.ProceduresService",
2318 "MergeToMain",
2319 ),
2320 );
2321 self.inner.unary(req, path, codec).await
2322 }
2323 pub async fn save_working_state(
2325 &mut self,
2326 request: impl tonic::IntoRequest<super::SaveWorkingStateRequest>,
2327 ) -> std::result::Result<
2328 tonic::Response<super::SaveWorkingStateResponse>,
2329 tonic::Status,
2330 > {
2331 self.inner
2332 .ready()
2333 .await
2334 .map_err(|e| {
2335 tonic::Status::unknown(
2336 format!("Service was not ready: {}", e.into()),
2337 )
2338 })?;
2339 let codec = tonic::codec::ProstCodec::default();
2340 let path = http::uri::PathAndQuery::from_static(
2341 "/nominal.procedures.v1.ProceduresService/SaveWorkingState",
2342 );
2343 let mut req = request.into_request();
2344 req.extensions_mut()
2345 .insert(
2346 GrpcMethod::new(
2347 "nominal.procedures.v1.ProceduresService",
2348 "SaveWorkingState",
2349 ),
2350 );
2351 self.inner.unary(req, path, codec).await
2352 }
2353 pub async fn commit(
2355 &mut self,
2356 request: impl tonic::IntoRequest<super::CommitRequest>,
2357 ) -> std::result::Result<tonic::Response<super::CommitResponse>, tonic::Status> {
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/Commit",
2369 );
2370 let mut req = request.into_request();
2371 req.extensions_mut()
2372 .insert(
2373 GrpcMethod::new("nominal.procedures.v1.ProceduresService", "Commit"),
2374 );
2375 self.inner.unary(req, path, codec).await
2376 }
2377 pub async fn search_procedures(
2379 &mut self,
2380 request: impl tonic::IntoRequest<super::SearchProceduresRequest>,
2381 ) -> std::result::Result<
2382 tonic::Response<super::SearchProceduresResponse>,
2383 tonic::Status,
2384 > {
2385 self.inner
2386 .ready()
2387 .await
2388 .map_err(|e| {
2389 tonic::Status::unknown(
2390 format!("Service was not ready: {}", e.into()),
2391 )
2392 })?;
2393 let codec = tonic::codec::ProstCodec::default();
2394 let path = http::uri::PathAndQuery::from_static(
2395 "/nominal.procedures.v1.ProceduresService/SearchProcedures",
2396 );
2397 let mut req = request.into_request();
2398 req.extensions_mut()
2399 .insert(
2400 GrpcMethod::new(
2401 "nominal.procedures.v1.ProceduresService",
2402 "SearchProcedures",
2403 ),
2404 );
2405 self.inner.unary(req, path, codec).await
2406 }
2407 pub async fn archive_procedures(
2409 &mut self,
2410 request: impl tonic::IntoRequest<super::ArchiveProceduresRequest>,
2411 ) -> std::result::Result<
2412 tonic::Response<super::ArchiveProceduresResponse>,
2413 tonic::Status,
2414 > {
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/ArchiveProcedures",
2426 );
2427 let mut req = request.into_request();
2428 req.extensions_mut()
2429 .insert(
2430 GrpcMethod::new(
2431 "nominal.procedures.v1.ProceduresService",
2432 "ArchiveProcedures",
2433 ),
2434 );
2435 self.inner.unary(req, path, codec).await
2436 }
2437 pub async fn unarchive_procedures(
2439 &mut self,
2440 request: impl tonic::IntoRequest<super::UnarchiveProceduresRequest>,
2441 ) -> std::result::Result<
2442 tonic::Response<super::UnarchiveProceduresResponse>,
2443 tonic::Status,
2444 > {
2445 self.inner
2446 .ready()
2447 .await
2448 .map_err(|e| {
2449 tonic::Status::unknown(
2450 format!("Service was not ready: {}", e.into()),
2451 )
2452 })?;
2453 let codec = tonic::codec::ProstCodec::default();
2454 let path = http::uri::PathAndQuery::from_static(
2455 "/nominal.procedures.v1.ProceduresService/UnarchiveProcedures",
2456 );
2457 let mut req = request.into_request();
2458 req.extensions_mut()
2459 .insert(
2460 GrpcMethod::new(
2461 "nominal.procedures.v1.ProceduresService",
2462 "UnarchiveProcedures",
2463 ),
2464 );
2465 self.inner.unary(req, path, codec).await
2466 }
2467 }
2468}